Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-02 Thread Gary C Martin
On 2 Apr 2009, at 10:50, Martin Langhoff wrote:

 On Thu, Apr 2, 2009 at 3:08 AM, Gary C Martin g...@garycmartin.com  
 wrote:
 Sorry to rush on this, but barring objections, I get the feeling  
 this is
 getting close to happening in the next 24hrs...

  http://dev.sugarlabs.org/attachment/ticket/645/simple_static_page_v3.png

 Objection! :-) Please re-add the link to 'Local Schoolserver'.

OK :-)

Silly question, so I've added a link to http://schoolserver/ which  
will be a broken link unless you are in a school environment with a  
school server set to that name. Could distros (like SoaS, or XO  
targeted builds), change the resolution order through /etc/host.conf  
(maybe also /etc/nsswitch.conf) so that the check for schoolserver go  
first to a dns server? If that fails to resolve, a local host file  
entry could then try to go to the schools moodle server at 
http://schools.sugarlabs.org/

Hmmm, I guess that's going to mess with browser cookies, but just  
thought I'd raise the question.

I might look at some other old html tricks (but not for this release)  
that could avoid the broken link. Some dhtml tricks might work hiding  
the potential error page in a hidden frame and auto switching to the  
public server URL if the local URL fails.

 BTW, did you mean to CC the list? We've dropped to a private thread...

Ooops, back on list.

--G

 cheers,


 m
 -- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-02 Thread Sean DALY
remember the URL should be http://www.sugarlabs.org and not http://sugarlabs.org

thanks


On Thu, Apr 2, 2009 at 5:03 PM, Gary C Martin g...@garycmartin.com wrote:
 On 2 Apr 2009, at 10:50, Martin Langhoff wrote:

 On Thu, Apr 2, 2009 at 3:08 AM, Gary C Martin g...@garycmartin.com
 wrote:
 Sorry to rush on this, but barring objections, I get the feeling
 this is
 getting close to happening in the next 24hrs...

  http://dev.sugarlabs.org/attachment/ticket/645/simple_static_page_v3.png

 Objection! :-) Please re-add the link to 'Local Schoolserver'.

 OK :-)

 Silly question, so I've added a link to http://schoolserver/ which
 will be a broken link unless you are in a school environment with a
 school server set to that name. Could distros (like SoaS, or XO
 targeted builds), change the resolution order through /etc/host.conf
 (maybe also /etc/nsswitch.conf) so that the check for schoolserver go
 first to a dns server? If that fails to resolve, a local host file
 entry could then try to go to the schools moodle server at 
 http://schools.sugarlabs.org/

 Hmmm, I guess that's going to mess with browser cookies, but just
 thought I'd raise the question.

 I might look at some other old html tricks (but not for this release)
 that could avoid the broken link. Some dhtml tricks might work hiding
 the potential error page in a hidden frame and auto switching to the
 public server URL if the local URL fails.

 BTW, did you mean to CC the list? We've dropped to a private thread...

 Ooops, back on list.

 --G

 cheers,


 m
 --
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-02 Thread Martin Langhoff
On Thu, Apr 2, 2009 at 5:03 PM, Gary C Martin g...@garycmartin.com wrote:
 Silly question, so I've added a link to http://schoolserver/ which will be a
 broken link unless you are in a school environment with a school server set
 to that name. Could distros (like SoaS, or XO targeted builds), change the
 resolution order through /etc/host.conf (maybe also /etc/nsswitch.conf) so

Messing with nsswitch is a bit messy. My plan is to have a svc
announcement (bonjour style) so the python code in Browse could check
whether there's an XS service on the network and do something magic --
like catch the browser opening http://schoolserver/ and change it to
the url obtained via bonjour.

It's iffy though :-/ and will probably break other stuff.

 Hmmm, I guess that's going to mess with browser cookies, but just thought
 I'd raise the question.

The schoolserver redirects to the fqdn immediately so that the right
cookies kick in. At least that's not a problem :-)

cheers,


martin
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-02 Thread Luke Faraone
On Thu, Apr 2, 2009 at 12:16 PM, Eben Eliason e...@laptop.org wrote:

 We should really start referring to this as the collaboration
 server, especially if we're going to include it as a link available
 in all distributions/environments. Ideally, we'd fall back to some
 page which describes the benefits of having a collaboration server and
 point to links for setting one up, if there isn't one available. I
 have no idea how to do that.


You can probably use the dnsResolve() function (commonly used in
PAChttp://en.wikipedia.org/wiki/Proxy_auto-configfiles). Some code
we might be able to use/modify:
http://forums.devarticles.com/javascript-development-22/dns-lookup-using-javascript-74973.html

I don't know javascript, but if nobody else bothers I'll look into it.

-- 
Luke Faraone
http://luke.faraone.cc
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-01 Thread Martin Langhoff
On Wed, Apr 1, 2009 at 8:11 AM, Martin Langhoff
martin.langh...@gmail.com wrote:
 Kudos for the release! One note though:

 On Wed, Apr 1, 2009 at 8:01 AM, Simon Schampijer si...@schampijer.de wrote:
 * Make sugarlabs.org the default homepage

 Um. This means that Browse out-of-the-box doesn't behave well in
 disconnected or XS-driven environments.

Going back on the actual trac entry, it seems like it still retains a
local page, and that the changelog is misleading. Sorry about the
noise.

I just hope that it's still a local page, with links that make it
useful out-of-the-box for small deployments, like 'Activities' and
'Schoolserver' (hint, hint! ;-) ) as well as Sugarlabs.

cheers,


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [RELEASE] Browse-106

2009-04-01 Thread Simon Schampijer
Martin Langhoff wrote:
 Kudos for the release! One note though:
 
 On Wed, Apr 1, 2009 at 8:01 AM, Simon Schampijer si...@schampijer.de wrote:
 * Make sugarlabs.org the default homepage
 
 Um. This means that Browse out-of-the-box doesn't behave well in
 disconnected or XS-driven environments.
 
 IMHO having the local homepage is a good thing, and making it link
 (promimently) to Sugarlabs is an even better thing. But no local
 homepage is a bit of a bummer.
 
 cheers,
 
 
 
 m

#645 does handle getting in the local page. The sugarlabs.org page is 
just there in the meantime.

Cheers,
Simon

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel