Re: [Dorset] Cross-platform python development for windows.

2018-03-05 Thread Maqjor Mrx
I couldn't figure out how to use wine for it, but I managed to get a 
Windows 10 VM up and running, and once I had PyInstaller on it it 
compiled flawlessly.


Thanks for all your support!


Rafi


On 03.03.2018 20:52, Hamish MB wrote:

Pyinstaller sounds like a good idea. He's already written it by the sounds of 
it. Is that Go code? I've heard a lot about Go recently.

Hamish
On 3 Mar 2018, at 18:10, Ralph Corderoy 
> wrote:

Hi Rafi,

  I've been looking into things like Py2exe and Pyinstaller, but they
  all require Windows to freeze .exe. Any Idea how I'd go about it on my
  machine? Perhaps using wine somehow?

https://github.com/pyinstaller/pyinstaller/wiki/FAQ#features says to use
WINE for production from Linux, and links to a mailing-list thread.
Good luck.

Or, you could use a language that ships a cross-compiling compiler by
default, and includes producing Windows EXEs.  :-)
https://tour.golang.org/welcome/1

 $ cat hellow.go
 package main

 import (
 "fmt"
 )

 func main() {
 fmt.Println("Hello, playground")
 }
 $ GOOS=windows go build
 $ file a.out.exe
 a.out.exe: PE32+ executable (console) x86-64 (stripped to external
 PDB), for MS Windows
 $

Cheers, Ralph.



--
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

[Dorset] Bournemouth Pub Meeting Tonight, Tuesday 2018-03-06.

2018-03-05 Thread Ralph Corderoy
Hi,

It's the pub meet tonight at The Broadway, 8pm-ish.  For those that
haven't been before look out for a flip of laptops, or Terry's stuffed
penguin.  

 http://dorset.lug.org.uk/wiki/doku.php?id=meetings%3Apub
 http://dorset.lug.org.uk/wiki/doku.php?id=members#terry_coles

We are ideally in the pub's "snug", a small room off the right end of
the bar.  That seems the favourite for the early birds to bag.  Or we
might be to the far left of the bar in the corner, near a mains socket,
though that can get a blast of stale smoke; revenge from the frigid
gaspers when the door opens.  We like corners.

See you there.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-03-05 Thread Terry Coles
On Monday, 5 March 2018 12:40:40 GMT Ralph Corderoy wrote:
> It needs to be a few steps printed big and stuck on a wall away from the
> booth to avoid clogging the area.  The QR code should be present because
> you might be surprised how many phones handle it without an explicit
> app, and it's a convenience for those users;  they're on the rise.

I 've just back from discussing all this with the Manager.

> > BTW.  iPhones 'just connect'
> 
> Today.  :-)

Point taken.
 
> It's annoying that Management are wary of web-site contractor time and
> money, but not volunteer time.

To be fair, they're not that wary and the guy has a contract to update the 
site on a regular basis.  The Manager can add content, but not change the 
overall architecture.  He is going to discuss this with the contractor and 
look into registering WMTGuide.com as a subdomain, with SSL Certificate too.

The main problem is that they have a budget for the website but it has largely 
been allocated.

> Aren't you mixing two things here?
> 
> Android is attempting a HTTPS probe to check for being captive.  You've
> proved responding to that with a self-signed certificate doesn't work.
> You're hoping that if it's a signed certificate by an authority known to
> the browser then, even though it's a certificate for a completely
> different domain to the one being contacted, that Android will be happy
> with the 204 response it expected.
> 
> You don't need HTTPS for accessing the guide;  that's already working
> with HTTP.
> 
> If the certificate is for a domain diffrent to the one Android contacts
> then it could be for hadrian-way.co.uk, say.  I suggested
> wimborne-modeltown.com because that's the one it owns, though held
> captive by a contractor.  :-)  To just test the idea out, and hope it
> quickly fails, giving certainty, you could get one for
> hadrian-way.co.uk, say.  If that's still a problem I may be able to dish
> one up in a few days.

See above.

> See https://letsencrypt.org/getting-started/ for all the options.  Have
> WMT really *no* non-contractor access to the site, e.g. to update some
> page's data in a CMS?  If they can upload files then the Manual Mode
> described on that page might be useful.  Or you could do that for
> hadrian-way.co.uk.

See above.

-- 



Terry Coles

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-03-05 Thread Terry Coles
On Sunday, 4 March 2018 21:07:41 GMT Stephen Wolff wrote:
> i don’t think you’ll be able to get another certificate for
> wimborne-modeltown.com. You might be able to get one for a subdomain or
> a wildcard (ie *.modeltown.com). You’re likely to need some way to

This will be the first certificate for wimborne-modeltown.com.  I've suggested 
that they will need to make the site secure soon anyway.

> verify that you ‘own’ the domain - which for letsencrypt would need
> to be either a DNS record of some sort under wimborne-modeltown.com or a
> file served somewhere under wimborne-modeltown.com (so you’d need to
> work with the contractor in some way)

Understood.

> which server? it could be used on the local network server for an https
> site - it doesn’t have to be on the webserver. a ‘certificate’
> will consist of 3 files (sometimes combined into one - depending on
> server config). You’d need to put the files into certain locations
> with certain permissions on the local webserver, and set up local DNS to
> point the sub-domain, but no, you wouldn’t need the certificate on the
> public webserver.

That's what I'm hoping to do.

> As Chrome is about to label all http sites insecure - maybe the person
> looking after the site will have to sort out a certificate - so will
> have one you could use on the local network?

See above.

-- 



Terry Coles

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-03-05 Thread Ralph Corderoy
Hi Terry,

> The problem is that the people who man the pay-booth have no idea
> about any of this and struggle to explain the procedure to people
> who've tried to get onto our WiFi network, so the thinking is that
> it'll be less hassle anyway.

It needs to be a few steps printed big and stuck on a wall away from the
booth to avoid clogging the area.  The QR code should be present because
you might be surprised how many phones handle it without an explicit
app, and it's a convenience for those users;  they're on the rise.

> BTW.  iPhones 'just connect'

Today.  :-)

It's annoying that Management are wary of web-site contractor time and
money, but not volunteer time.

> I don't suppose it would work if we got a Certificate for wimborne-
> modeltown.com and added that to the DNS on the internal server, then
> simply told them to go to WMT.com which would also be available on
> that server?  (Maybe by redirection.)

Aren't you mixing two things here?

Android is attempting a HTTPS probe to check for being captive.  You've
proved responding to that with a self-signed certificate doesn't work.
You're hoping that if it's a signed certificate by an authority known to
the browser then, even though it's a certificate for a completely
different domain to the one being contacted, that Android will be happy
with the 204 response it expected.

You don't need HTTPS for accessing the guide;  that's already working
with HTTP.

If the certificate is for a domain diffrent to the one Android contacts
then it could be for hadrian-way.co.uk, say.  I suggested
wimborne-modeltown.com because that's the one it owns, though held
captive by a contractor.  :-)  To just test the idea out, and hope it
quickly fails, giving certainty, you could get one for
hadrian-way.co.uk, say.  If that's still a problem I may be able to dish
one up in a few days.

> So.  If we got a certificate for wimborne-modeltown.com, would the
> server need to have that Certificate installed (more contractor work).

See https://letsencrypt.org/getting-started/ for all the options.  Have
WMT really *no* non-contractor access to the site, e.g. to update some
page's data in a CMS?  If they can upload files then the Manual Mode
described on that page might be useful.  Or you could do that for
hadrian-way.co.uk.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR