Re: [Sugar-devel] [SoaS] Recommendations for running Sugar on standard hardware (non-XOs)?

2014-04-08 Thread Martin Langhoff
Uff, that is fairly dated! I would install latest Fedora with the Sugar Desktop Group as my first attempt. It won't be "OLPC-pretty", it'll expect users to log in with username/password, but other than that it should work. hth, m On Tue, Apr 8, 2014 at 12:39 PM, Christoph Derndorfer wrote: > H

Re: [Sugar-devel] shipped languages/locales

2014-03-26 Thread Martin Langhoff
On Wed, Mar 26, 2014 at 7:59 AM, Gonzalo Odiard wrote: > I think was done to preserve space. > Not sure if that is a concern now. > Yep. It was definitely a concern for XO-1 and for XO-1.5 images for 2GB machines. m -- martin.langh...@gmail.com - ask interesting questions - don't get dis

Re: [Sugar-devel] Sugar Performance testing

2014-03-10 Thread Martin Langhoff
On Mon, Mar 10, 2014 at 8:46 AM, Gonzalo Odiard wrote: > Activity startup time is in the shell.log if sugar have debug enabled. +100 on Gonzalo's recommendations. Also a couple of notes, from memory, - Gobject Introspection turned out to be slow to instantiate (IIRC, dsd posted analysis this to

Re: [Sugar-devel] One for Grandma and Grandpa

2014-03-05 Thread Martin Langhoff
On Wed, Mar 5, 2014 at 12:11 PM, Christian Stroetmann wrote: > The referenced summary on marc.info can not be understood without prior > knowledge and reading the whole threads. Oh, I think anyone reading your trolling emails should get some background on you based on your prior posts ( http://ma

Re: [Sugar-devel] One for Grandma and Grandpa

2014-03-05 Thread Martin Langhoff
On Wed, Mar 5, 2014 at 10:07 AM, Martin Langhoff wrote: > Your website is also a piece of art. Actually, I feel bad. Seems like Apple stole his copyrighted ideas, right down to the ID, http://www.ontolinux.com/community/hardware.htm Christian, you should get in touch with Steve J

Re: [Sugar-devel] One for Grandma and Grandpa

2014-03-05 Thread Martin Langhoff
On Sat, Mar 1, 2014 at 10:33 AM, Christian Stroetmann wrote: > Please, respect our trademarks and our copyrights. Hi Christian! Have you registered your trademarks anywhere? USPTO doesn't know about them, but you could have a registration elsewhere. And I googled your name/email address, and I

Re: [Sugar-devel] One for Grandma and Grandpa

2014-03-01 Thread Martin Langhoff
On Sat, Mar 1, 2014 at 11:11 AM, Christian Stroetmann wrote: > Yes indeed we have created a new concept that is basically the > transformation of the Sugar learning environment developed solely for very If all you have is a concept, and you are trying to register trademarks based on the work of S

Re: [Sugar-devel] Fwd: [b2g] Introducing B2G to x86

2014-02-28 Thread Martin Langhoff
On Fri, Feb 28, 2014 at 12:00 PM, Christian Stroetmann wrote: > In this respect I wrote before, that I do not think that Lego is in control > over its registered trademark 'LEGO' anymore, This has nothing to do with Sugar, nor OLPC. Perhaps a mailing list about trademarks is more appropriate (hin

Re: [Sugar-devel] Feature proposal: ability to start an activity from inside another

2014-01-21 Thread Martin Langhoff
On Tue, Jan 21, 2014 at 3:48 PM, Sam Parkinson wrote: > - Android has a really simple system where you can say go to > www.abc.blogs.org in any app that can open it. That opens it in a web > browser or in the blogs.org app if installed. This works because the > blogs.org app says it can handle the

Re: [Sugar-devel] Mails caught as spam

2013-12-19 Thread Martin Langhoff
Same here -- sugar-devel, IAEP and server-devel. Taught my gmail some manners. thanks for the heads up, m On Thu, Dec 19, 2013 at 8:43 AM, Peter Robinson wrote: > On Thu, Dec 19, 2013 at 12:11 PM, Gonzalo Odiard wrote: >> Today I have found almost 10 mails from sugar-devel >> caught as spam

Re: [Sugar-devel] Private vs Public conversations.

2013-10-29 Thread Martin Langhoff
On Mon, Oct 28, 2013 at 11:01 PM, David Farning wrote: > I would like to thank everyone who has provided valuable feedback by > participating on this thread. Ahem. You are casting fugly accusations, you can't stand back and thank everyone for their valuable feedback. > 2. Martin's point about th

Re: [Sugar-devel] Private vs Public conversations.

2013-10-28 Thread Martin Langhoff
On Mon, Oct 28, 2013 at 8:14 PM, David Farning wrote: > In a private conversation with an Association employee they told me > that they conciser Activity Central a competitor because Activity > Central increased deployments expectations. Their strategy with regard > to Activity Central was to _not

Re: [Sugar-devel] Private vs Public conversations.

2013-10-28 Thread Martin Langhoff
On Wed, Oct 23, 2013 at 12:26 PM, Walter Bender wrote: > On Wed, Oct 23, 2013 at 12:04 PM, David Farning > wrote: >> I just wanted to bump this line of questions as, it is the critical > > I don't speak on behalf of the Association, but I think your positions > are overstated. As far as I know, t

Re: [Sugar-devel] Activity Central's Sugar related priorities.

2013-10-07 Thread Martin Langhoff
On Mon, Oct 7, 2013 at 12:41 PM, David Farning wrote: > As a more incremental approach, Activity Central will continue our > deployment-centric work by porting Dextrose to Ubuntu. >From a "deploy to XOs PoV" that sounds like a ton of work. You'll grind against a lot of little problems. Fedora is

Re: [Sugar-devel] Fwd: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0 stable

2013-08-11 Thread Martin Langhoff
On Sun, Aug 11, 2013 at 1:15 PM, Jerry Vonau wrote: > Good to hear from you Martin. Just to finish this thread off, I was not able > to reproduce this behavior with the XO-1s that I have. This appears to > affect Anna's machines only. Thanks for the hints to what might be the root > cause. Thanks

Re: [Sugar-devel] Fwd: [XSCE] Re: Client side Moodle transparent auth broken in 13.2.0 stable

2013-08-11 Thread Martin Langhoff
On Tue, Aug 6, 2013 at 3:32 PM, Jerry Vonau wrote: > This behavior was noted with XO-1s only, all others(1.5,1.75,4) appear work > fine in testing. That is _very_ weird. Does the affected unit have any problem reading its own serial number or uuid? Does the Sugar Control Panel show the serial num

Re: [Sugar-devel] Features: Background image in Home View

2013-03-25 Thread Martin Langhoff
On Mon, Mar 25, 2013 at 11:48 AM, Manuel Quiñones wrote: > My first impression is that this feature can potentially hurt the > clean design of Sugar at some points: > > - the icons color semantic > - high contrast, accesibility Agreed. IMHO it can be improved by applying a "washout" -- mix the im

Re: [Sugar-devel] Window handling for non-Python activities

2013-02-25 Thread Martin Langhoff
On Mon, Feb 25, 2013 at 12:22 PM, Daniel Drake wrote: > This didn't happen on older versions of Sugar (haven't checked why, > maybe the "failed to start" screen didn't exist before?) This patch seems related: http://git.sugarlabs.org/sugar/mainline/commit/dc8f6ed7852f919fe7123d458706fb82430257e9

Re: [Sugar-devel] Query regarding "xorg-x11-drv-dove" package, on XO-4

2013-02-21 Thread Martin Langhoff
Thanks for the report! Jon Nettlelton is working on that particular driver, and there was a big overhaul that landed in OS29. Could you create a ticket on dev.laptop.org, against 13.1.0? This has nothing to do with Sugar itself... thanks! m On Thu, Feb 21, 2013 at 12:07 PM, Ajay Garg wrote:

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Martin Langhoff
On Thu, Jan 24, 2013 at 12:02 PM, Gonzalo Odiard wrote: > Write does not know what is the ebook switch state, that logic is in the > osk. And that's correct. ebook mode is one reason to show the OSK. There are other reasons -- for example, - accesibility - typing in a different language from

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Martin Langhoff
On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox wrote: > i believe sugar already has code to detect the two modes, since > that's how it knows whether to present the OSK or not. Yep. Ajay, I think Write shows you the way :-) m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect

Re: [Sugar-devel] Issue on the XO when trying to register to a XS

2012-12-31 Thread Martin Langhoff
On Mon, Dec 31, 2012 at 6:20 AM, wrote: > Do you already know this issue? > What could be the next step to analyze the issue? What happens if you retry registration from the XO? OS versions on XO, XS? If the XO OS is recent, nothing comes to mind, except a transient network issue. Older XO OSs

Re: [Sugar-devel] [TRANSIENT] Peer XOs NOT shown in Neighborhood view when Power Management is enabled

2012-12-19 Thread Martin Langhoff
On Wed, Dec 19, 2012 at 5:14 AM, Jerry Vonau wrote: > Think I found the problem, in powerd we're setting WOL based on this > string: > > if grep -qi ": :14B2" /proc/net/tcp > > but that string is not present in /proc/net/tcp so WOL is not set > according to ethtool, but that string can be

Re: [Sugar-devel] Porting Sugar on Android (Ice cream sandwich)

2012-12-11 Thread Martin Langhoff
: > Thanks, Martin. Btw, where did you deduce the name "Rajiv" from? :) > > RJv > > On Wed, Dec 12, 2012 at 1:13 AM, Martin Langhoff > wrote: >> >> Implement a shell -- replacing the standard Android shell -- that >> has the main features of Sugar sh

Re: [Sugar-devel] Porting Sugar on Android (Ice cream sandwich)

2012-12-11 Thread Martin Langhoff
Hi Rajiv, your plan seems to have good goals, but is missing some understanding of what you can and cannot do. You cannot run Sugar (a Python-based window manager, based on traditional Linux sw stack) on the Android stack. Way too different. To reach your goals, however, you could try something

Re: [Sugar-devel] Major bugs for "Software-Update"

2012-11-29 Thread Martin Langhoff
On Tue, Nov 27, 2012 at 11:42 AM, Ajay Garg wrote: > http://bugs.sugarlabs.org/ticket/4274 > http://bugs.sugarlabs.org/ticket/4275 Looks like I can play this game too :-/ # 4281 - Activity updater - crashes updating activity m -- martin.langh...@gmail.com mar...@laptop.org -- Software Archite

Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-21 Thread Martin Langhoff
On Wed, Nov 21, 2012 at 3:07 AM, Alan Jhonn Aguiar Schwyn wrote: >> is there a way to block suspend when a class of USB device is plugged? > > This will be very important.. Disable the "automatic power-save" (AKA power > off usb..) It is already done in many cases. > if one device is using the u

Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-20 Thread Martin Langhoff
On Wed, Nov 21, 2012 at 2:40 AM, James Cameron wrote: >> I don't think having an end-user with no experience with USB IDs add >> an entry to the usb-inhibits file, or having to remember to turn off >> a major feature is the correct long term solution IMHO. You guys are driving OOB, so you short-t

Re: [Sugar-devel] [TRANSIENT ISSUE] 3G-Modem not being recognised

2012-11-20 Thread Martin Langhoff
Ajay, folks, please indicate OS version, XO model, steps to repro (even if intermittent), and collect kernel logs so we can see WTH is going on. Otherwise we can only say "maybe" and speculate -- good stuff for idle converstation at a bar, but not productive if you want to see the problem diagnos

Re: [Sugar-devel] Renaming the Telescope activity to Scope

2012-11-19 Thread Martin Langhoff
On Mon, Nov 19, 2012 at 11:58 PM, Chris Leonard wrote: > As I recall, this activity was already renamed once from xoscope after > it became clear it was colliding in name space with an oscilloscpe > activity. Renames are a pain in infrastructure, and in upgrade handling for users. I would say pr

Re: [Sugar-devel] [sugar-build] Recent improvements

2012-11-18 Thread Martin Langhoff
On Fri, Nov 16, 2012 at 12:10 PM, Daniel Narvaez wrote: > * Much cleaner source code. I got rid of jhbuild and replaced it with > a simple python script which covers our need (and it's much easier to > customize). Whooo! After _years_ of discussion about getting rid of jhbuild, it's done! I

Re: [Sugar-devel] [FEATURE-BROKEN] "Send to Friend" feature not working in os11

2012-11-16 Thread Martin Langhoff
How about filing a bug? :-) m On Fri, Nov 16, 2012 at 12:26 PM, Ajay Garg wrote: > Hi all. > > On XO-1.75s, os11 image, the "Send to Friend" feature isn't working. > > Is it a known issue? > Doing a simple textual "send to" search on bugs.sugarlabs.org did not yield > anything useful. > > > Reg

Re: [Sugar-devel] Datastore is broken

2012-11-08 Thread Martin Langhoff
Thanks for the heads up! Fix attached, m On Thu, Nov 8, 2012 at 1:11 PM, Daniel Narvaez wrote: > Not sure if it breaks anything but it doesn't sound good, with the latest git: > > Traceback (most recent call last): > File > "/home/buildbot/slave/fedora-17-32bit/build/install/lib/python2.7/s

Re: [Sugar-devel] Datastore is broken

2012-11-07 Thread Martin Langhoff
Hmmm, mkdir??? I'd suggest touch /home/user/.sugar/default/datastore/index m On Wed, Nov 7, 2012 at 2:35 PM, Ignacio Rodríguez wrote: > ¡For repair!: > mkdir /home/user/.sugar/default/datastore/index > :) > > > 2012/11/7 Martin Langhoff >> >> On

Re: [Sugar-devel] Datastore is broken

2012-11-07 Thread Martin Langhoff
On Wed, Nov 7, 2012 at 11:51 AM, Simon Schampijer wrote: > On 11/07/2012 02:45 PM, Daniel Narvaez wrote: >> Buildbot tests are failing, apparently because of a datastore issue I owe you two a beer. A mighty big beer. Thanks for spotting this thinko before it landed in an OS build. > We fail bec

Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-11-07 Thread Martin Langhoff
On Wed, Nov 7, 2012 at 2:31 AM, Simon Schampijer wrote: > Thanks Martin, Sam and Manuel for your work on this. The datastore runs here > fine. I pushed the changes. Will be available in 0.97.2. Great! I was going to write a longer thank-you for the review, but I ran out of space. :-) m -- ma

Re: [Sugar-devel] Multi-touch test activity

2012-11-06 Thread Martin Langhoff
On Sun, Nov 4, 2012 at 8:29 PM, Bert Freudenberg wrote: > Ah, thanks. I wasn't even going to file a bug report about the aliasing > because that is a limitation inherent to the kind of sensor we have. There are of course limitations, but we are in the process of tuning and tightening things on t

Re: [Sugar-devel] [PATCH] Sort the activities in the home in alphabetic order

2012-10-04 Thread Martin Langhoff
On Thu, Oct 4, 2012 at 3:15 PM, Gary Martin wrote: > Martin, could you clarify this example a little more, > did you have some specific documentation task in mind? I want to clarify that I see this patch as a big improvement, even with localized sorting. +100. We often prepare some screenshots f

Re: [Sugar-devel] [PATCH] Sort the activities in the home in alphabetic order

2012-10-04 Thread Martin Langhoff
On Thu, Oct 4, 2012 at 11:25 AM, Gonzalo Odiard wrote: > You have less consistency only if you change the language. I generally agree. My only worry is that documentation screenshots will be all over the place. > Have sense use the same order in the listview and in the favorites view too. yeah.

Re: [Sugar-devel] [PATCH] Sort the activities in the home in alphabetic order

2012-10-04 Thread Martin Langhoff
On Thu, Oct 4, 2012 at 10:33 AM, Gonzalo Odiard wrote: > We are sorting by localized name. > It's true than the order will be different if you use a different language, > but we think is better for the users. Less consistency in icon location better? How? I agree alphabetical is better for list

Re: [Sugar-devel] [PATCH] Sort the activities in the home in alphabetic order

2012-10-04 Thread Martin Langhoff
On Thu, Oct 4, 2012 at 8:06 AM, wrote: > The change is done in the favorites view and in the list view What was the sorting before in the fav view? More importantly -- Is this sorting over the English names, or the localized names? I am not sure what we would desire, but I'll note that if it's

Re: [Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 5:12 PM, Manuel Quiñones wrote: > And enlarging a bit: > > http://dev.laptop.org/~manuq/shell-port/icon-hover2.png > http://dev.laptop.org/~manuq/shell-port/icon-tap2.png I am partial towards the enlarged ones :-) cheers, m -- martin.langh...@gmail.com mar...@laptop.

Re: [Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 4:53 PM, Manuel Quiñones wrote: > Add a light grey background, which is the same size as the grey > outline that appears when the icon is hovered. Yes! This stuff is needed. Touch feedback needs to be bright, clear, and clearly larger than your finger so that you see it.

Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 11:54 AM, Peter Robinson wrote: > You can still port to gstreamer 1.0 on 13.1.0 and just test with non > ugly codecs (vorbis / webm etc). Yep. Work now with the ugly codecs. Once vmeta is ready we'll have to retest & debug, as it seems to be more fragile. Extra work :-(

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 6:52 AM, Manuel Kaufmann wrote: > On Tue, Oct 2, 2012 at 5:35 PM, Martin Langhoff > wrote: >> Actually, the answer is to avoid datetime. It's fine for high level >> work; when you care about times defined as epoch values, you > > Yes, you ar

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Tue, Oct 2, 2012 at 3:51 PM, Martin Langhoff wrote: > Works as pseudocode. But I took a quick look at the datetime docs and > it is... horrible. We want to be doing math on the epoch (seconds > since 1970). > > They refuse to document it properly, but the answer t

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Tue, Oct 2, 2012 at 2:52 PM, Manuel Kaufmann wrote: > On Tue, Oct 2, 2012 at 1:43 PM, Martin Langhoff > wrote: >>> +except: >>> +logging.warning('/proc/uptime could not be read') >>> +uptime = None > > Should

Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Tue, Oct 2, 2012 at 9:59 AM, Manuel Kaufmann wrote: > +try: > +uptime_proc = open('/proc/uptime', 'r').read() > +uptime_seconds = float(uptime_proc.split()[0]) > +uptime = datetime.timedelta(seconds=uptime_seconds) > +except: > +lo

Re: [Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Tue, Oct 2, 2012 at 8:24 AM, Manuel Kaufmann wrote: > On Tue, Oct 2, 2012 at 6:40 AM, Martin Langhoff > wrote: >> Good, but not enough. Compare mtime also to our boot time (ie: now - >> uptime). If the file is from before we booted, needs to be nuked. > > You say tha

Re: [Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Mon, Oct 1, 2012 at 3:14 PM, Manuel Kaufmann wrote: > This patch is a workaround to that behaviour. Every time that Browse > is started it looks for all the ".goutputstream" files in the > "instance" directory and checks its mtime. If it greater than 1 day it > removes the old temporary file.

Re: [Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-10-01 Thread Martin Langhoff
On Mon, Oct 1, 2012 at 12:59 PM, Martin Langhoff wrote: >> From that section I understand that we are encoding the data into >> utf-8 if value is "unicode", but if it is just a "basestring", why we >> are doing "str()"? > > That's ac

Re: [Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-10-01 Thread Martin Langhoff
On Mon, Oct 1, 2012 at 12:46 PM, Manuel Kaufmann wrote: > Sorry for the Top-Posting, maybe you didn't see the section that I > included in my last email. Ah, yeah, didn't catch that. > From that section I understand that we are encoding the data into > utf-8 if value is "unicode", but if it is j

Re: [Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-10-01 Thread Martin Langhoff
tadata files atomically, to avoid corrupting existing data in case of an error With this patch, we no longer corrupt metadata when trying to edit/update a ds entry with the system hitting ENOSPC. Signed-off-by: Martin Langhoff -- now, if you read carefully, it is the same thing I say in th

Re: [Sugar-devel] [PATCH 1/7] Add ds_clean flag to trigger index rebuilds #2095, #2317

2012-10-01 Thread Martin Langhoff
On Sun, Sep 30, 2012 at 12:24 PM, Manuel Kaufmann wrote: > On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff wrote: >> This gives us more complete coverage of cases where ENOSPC or >> other errors are hit when creating/updating datastore entries. > > I reviewed this patch a

Re: [Sugar-devel] [PATCH 4/7] metadatareader: ignore ".hidden" files

2012-10-01 Thread Martin Langhoff
On Mon, Oct 1, 2012 at 7:06 AM, Manuel Kaufmann wrote: > Just a comment: this patch removes the possibility to have a property > named "..property", right? is this OK? I hope it is. I don't know, I'm not an experienced Sugar hacker :-) What I can tell you is that I have never seen a property, in

Re: [Sugar-devel] last-minute feature proposal for 0.98

2012-09-28 Thread Martin Langhoff
On Fri, Sep 28, 2012 at 12:26 PM, Manuel Quiñones wrote: > 2012/9/28 Walter Bender : >> I am hoping to get this into the OLPC 13.1 build. Any change of >> getting it into Sugar 0.98? > > Looks like a good addition for me and patch looks fine. Hmmm, lunch time! Ah, ooops! I would add the field to

Re: [Sugar-devel] [PATCH Browse] Display only the URL in the URL entry SL #3553

2012-09-27 Thread Martin Langhoff
On Thu, Sep 27, 2012 at 11:46 AM, Gary Martin wrote: > + exposing URLs for touch users. The cursor hover is the only way to expose > URLs when browsing (unless tap to editing them) Tap-to-switch-to-URL-and-edit, starting with "full URL is selected" is fine IMHO. You are missing a key "-", which

Re: [Sugar-devel] Performace in os3

2012-09-27 Thread Martin Langhoff
On Thu, Sep 27, 2012 at 10:40 AM, Manuel Kaufmann wrote: > I'm working on my 1.75 XO with os3 and I feel it really slow. There > are some examples: At least part of this will be due to a much slower video driver we are using temporarily. But yeah, it hurts and we need to have that fixed. m --

Re: [Sugar-devel] [PATCH Browse] Display only the URL in the URL entry SL #3553

2012-09-27 Thread Martin Langhoff
#x27;t find the discussion now. > CC both > > Gonzalo > > On Thu, Sep 27, 2012 at 11:25 AM, Martin Langhoff > wrote: >> >> Is this really an improvement in behaviour? >> >> - The tabs are often too small to show the title. >> - The title is more impo

Re: [Sugar-devel] [PATCH Browse] Display only the URL in the URL entry SL #3553

2012-09-27 Thread Martin Langhoff
Is this really an improvement in behaviour? - The tabs are often too small to show the title. - The title is more important for the user than the URL. No? cheers, m On Mon, Sep 24, 2012 at 5:09 PM, Manuel Kaufmann wrote: > The Title of the current page is no longer shown in the URL > entry.

[Sugar-devel] using logging vs logger

2012-09-26 Thread Martin Langhoff
Sugar{,-toolkit,toolkit3,datastore} sources have a mix of direct calls to the logging module, and calls to it via the sugar logger instance of the logging module, which is configured. Early in sugar-session, I understand the use of logging before sugar.logger is setup. But after that... is there a

[Sugar-devel] [PATCH] RFC: Optimizer: simplify, avoid hashing files, remove 'checksums' dir

2012-09-26 Thread Martin Langhoff
This patch changes the strategy used by optimize. Instead of maintaining a 'checksum' field for every file, and maintaining metadata about whether they are linked in the 'checksums' dir, it will only ever hash files that match size _exactly_ with a new file. A DS that does not see 2 files of ident

Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-26 Thread Martin Langhoff
On Sat, Sep 22, 2012 at 10:09 PM, Martin Langhoff wrote: > On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff > wrote: >> Reviews are boring. Testing is more fun! rpms for ARM at Reviews are boring, but necessary. As these patches have seen some reviews, and the ml is a bit awkward

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-25 Thread Martin Langhoff
On Tue, Sep 25, 2012 at 12:43 PM, Manuel Kaufmann wrote: > ** Message: console message: @0: Not allowed to load local resource: > file:///home/humitos/src/browse/browse.png > > What do you think? Should I go for the file:// approach anyway? Hmmm, security, tiny performance tweak, what should I c

Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-22 Thread Martin Langhoff
On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff wrote: > Reviews are boring. Testing is more fun! rpms for ARM at > >http://dev.laptop.org/~martin/ds-enospc/ New rpms for testing, including "datastore: handle low-disk and ENOSPC conditions gracefully - v2". This is

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-21 Thread Martin Langhoff
On Fri, Sep 21, 2012 at 6:56 PM, Manuel Kaufmann wrote: > I'm not sure to understand what you are saying here. I'm not doing > this each time the function is called. Here, I just showed what I did > to get the base64 file encoded. I mean, I did this just once and I put > the result inside the HTML

[Sugar-devel] [PATCH 7/7] datastore: handle low-disk and ENOSPC conditions gracefully

2012-09-21 Thread Martin Langhoff
edora and OLPC builds, this is a tmpfs). It is only moved to disk if we are not in low-disk-space-available conditions. Signed-off-by: Martin Langhoff --- This is v2 of the patch, making sure the move to internal disk works in more cases, and that failure is recorded. Thanks Sam for the report!

Re: [Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-09-21 Thread Martin Langhoff
On Thu, Sep 20, 2012 at 11:55 PM, Martin Langhoff wrote: > -f = open(os.path.join(metadata_path, key), 'w') > -try: > -if isinstance(value, unicode): > -value = value.encode('utf-8') > -

Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-21 Thread Martin Langhoff
On Thu, Sep 20, 2012 at 11:55 PM, Martin Langhoff wrote: > In conditions of very low disk space available, or ENOSPC, the datastore > misbehaves grossly: Reviews are boring. Testing is more fun! rpms for ARM at http://dev.laptop.org/~martin/ds-enospc/ How to test: - Set Sugar to v

[Sugar-devel] [PATCH 5/7] indexstore: exit on _flush() errors, work on tmpdir

2012-09-21 Thread Martin Langhoff
is is normally caused by running into ENOSPC during a session, and is unrecoverable. dbus will respawn the process, the new spawn has a chance at cleanup, moving things to tmpfs. Signed-off-by: Martin Langhoff --- This is v2 of the patch, making sure that later sessions rebuild the on-disk

[Sugar-devel] [PATCH 7/7] datastore: handle low-disk and ENOSPC conditions gracefully

2012-09-20 Thread Martin Langhoff
edora and OLPC builds, this is a tmpfs). It is only moved to disk if we are not in low-disk-space-available conditions. Signed-off-by: Martin Langhoff --- src/carquinyol/datastore.py | 87 +++ 1 file changed, 71 insertions(+), 16 deletions(-) diff --

[Sugar-devel] [PATCH 6/7] datastore: make delete() more reliable, log properly

2012-09-20 Thread Martin Langhoff
- use try/except to catch and log errors in datastore.log (instead of echoing them to callers over dbus) - use rmtree() to more reliably remove the entry - get_entry_path() before we delete all the related metadata. Signed-off-by: Martin Langhoff --- src/carquinyol/datastore.py

[Sugar-devel] [PATCH 5/7] indexstore: exit on _flush() errors, work on tmpdir

2012-09-20 Thread Martin Langhoff
is is normally caused by running into ENOSPC during a session, and is unrecoverable. dbus will respawn the process, the new spawn has a chance at cleanup, moving things to tmpfs. Signed-off-by: Martin Langhoff --- src/carquinyol/indexstore.py | 52

[Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317

2012-09-20 Thread Martin Langhoff
the system hitting ENOSPC. Signed-off-by: Martin Langhoff --- src/carquinyol/metadatastore.py | 51 ++- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/src/carquinyol/metadatastore.py b/src/carquinyol/metadatastore.py index 5967017..52cc10f

[Sugar-devel] [PATCH 4/7] metadatareader: ignore ".hidden" files

2012-09-20 Thread Martin Langhoff
Ignore any file with a filename starting with a '.' -- metadatastore writes its tempfiles prefixed with a '.' . Signed-off-by: Martin Langhoff --- Note: this one needs a bit of testing. --- src/carquinyol/metadatareader.c |7 ++- 1 file changed, 2 insertions(+),

[Sugar-devel] [PATCH 2/7] Remove invalid/corrupt on-disk entries #2317

2012-09-20 Thread Martin Langhoff
When operating close to ENOSPC, we sometimes end up with incomplete or invalid on-disk entries. So we prune these during index rebuild. Signed-off-by: Martin Langhoff --- src/carquinyol/datastore.py |8 1 file changed, 8 insertions(+) diff --git a/src/carquinyol/datastore.py b/src

[Sugar-devel] [PATCH 1/7] Add ds_clean flag to trigger index rebuilds #2095, #2317

2012-09-20 Thread Martin Langhoff
(Xapian DB). With this patch, failure to complete create/update/delete forces an index rebuild on restart. Signed-off-by: Martin Langhoff --- src/carquinyol/datastore.py | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/carquinyol/datastor

[Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-09-20 Thread Martin Langhoff
ses where we do rebuild it - the index recovers gracefully on restart when there is free disk space Martin Langhoff (7): Add ds_clean flag to trigger index rebuilds #2095, #2317 Remove invalid/corrupt on-disk entries #2317 metadatastore: store/change files on disk defensively #2317 metadat

[Sugar-devel] Datastore vs ENOSPC patches, progress

2012-09-20 Thread Martin Langhoff
Things I am working on - Add ds_clean flag to trigger index rebuilds - patch posted for review - Remove invalid corrupt disk entries - patch posted for review - When hitting ENOSPC, use a tmpfs for index database -- working on it... m -- martin.langh...@gmail.com mar...@laptop.org -- So

[Sugar-devel] [PATCH 2/2] Remove invalid/corrupt on-disk entries #2317

2012-09-20 Thread Martin Langhoff
When operating close to ENOSPC, we sometimes end up with incomplete or invalid on-disk entries. So we prune these during index rebuild. --- src/carquinyol/datastore.py |7 +++ 1 file changed, 7 insertions(+) diff --git a/src/carquinyol/datastore.py b/src/carquinyol/datastore.py index 6ede

[Sugar-devel] [PATCH 1/2] Add ds_clean flag to trigger index rebuilds #2095, #2317

2012-09-20 Thread Martin Langhoff
This gives us more complete coverage of cases where ENOSPC or other errors are hit when creating/updating datastore entries. Without this patch, using the Journal on ENOSPC sometimes leads to an "empty" Journal after restart. Datastore entries exist on disk but are not in the index (Xapian DB). W

Re: [Sugar-devel] [PATCH Browse] Error page SL #3500

2012-09-19 Thread Martin Langhoff
On Wed, Sep 19, 2012 at 6:54 AM, Manuel Kaufmann wrote: > On Tue, Sep 18, 2012 at 10:58 PM, James Cameron wrote: >> Neat. What method did you use to convert the image? > > Python... It is my best friend :) > import base64 base64.b64encode(open('browse-logo.png', 'r').read()) You have

Re: [Sugar-devel] Debugging sugar-datastore (and similar dbus-connected services)

2012-09-19 Thread Martin Langhoff
On Wed, Sep 19, 2012 at 4:54 PM, Gonzalo Odiard wrote: > You already have the line > export SUGAR_LOGGER_LEVEL=debug > uncommented in .sugar/debug, right? Yes. And with that, datastore.log is very chatty, which is good. But when the datastore code hits an unhandled exception, the exception does

Re: [Sugar-devel] Debugging sugar-datastore (and similar dbus-connected services)

2012-09-19 Thread Martin Langhoff
On Wed, Sep 19, 2012 at 4:15 PM, Martin Langhoff wrote: > I'm debugging odd situations w Sugar datastore, and I wonder whether > there is any tricks to debugging python programs that are run under > dbus. > > I can see the sugar-datastore PID growing steadily while I test, whi

[Sugar-devel] Debugging sugar-datastore (and similar dbus-connected services)

2012-09-19 Thread Martin Langhoff
I'm debugging odd situations w Sugar datastore, and I wonder whether there is any tricks to debugging python programs that are run under dbus. I can see the sugar-datastore PID growing steadily while I test, which means that it's dying and respawning plenty, likely from unhandled exceptions... th

Re: [Sugar-devel] Adventures in the land of ENOSPC

2012-09-19 Thread Martin Langhoff
On Sat, Sep 15, 2012 at 8:03 AM, Sascha Silbe wrote: > Martin Langhoff writes: > >> Manuel Kaufmann has been looking at SL#394, and looking at the bug >> report, it struck me that it was reported backwards. I would have >> written: "I filled up my disk and it

Re: [Sugar-devel] Not enough space adventure

2012-09-18 Thread Martin Langhoff
On Tue, Sep 18, 2012 at 8:42 AM, Manuel Kaufmann wrote: > We where discussing about this last week[1] and we found the "root" > issue of this problem: Sugar is not handling ENOSPC error. This could > cause some problems at boot time when the XO is restarted, but as we > discussed[2], Linux has mad

Re: [Sugar-devel] Problem downloading a lease.sig file on an XO

2012-09-13 Thread Martin Langhoff
On Wed, Sep 12, 2012 at 9:22 PM, Samuel Greenfeld wrote: >> 1. Is there a security problem/concern with having our project's lease.sig >> file publicly available? (we only generate activations for non-stolen XOs) Should be ok, as long as you're comfortable with the validity period (ie: not too lo

[Sugar-devel] Adventures in the land of ENOSPC

2012-09-13 Thread Martin Langhoff
Manuel Kaufmann has been looking at SL#394, and looking at the bug report, it struck me that it was reported backwards. I would have written: "I filled up my disk and it knocked the system out, Sugar would not start again, etc. Oh, btw, it was with Browse". Maybe I'm the only one who thinks this w

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Martin Langhoff
On Wed, Sep 12, 2012 at 8:24 AM, Manuel Kaufmann wrote: > On Wed, Sep 12, 2012 at 9:21 AM, Martin Langhoff > wrote: >> That's very good handling on webkit's side. And does it remove the >> file? IOWs, when you get the signal, what do you see in the tmpfs? Is >&g

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Martin Langhoff
On Wed, Sep 12, 2012 at 8:20 AM, Manuel Kaufmann wrote: > OK. I was taking a look at the datastore source code and I understood > that the file is copied, using the traditional way and when the copy > finishes the source file is unlinked. Ouch! I haven't reviewed the code (have to run some person

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-12 Thread Martin Langhoff
On Wed, Sep 12, 2012 at 7:50 AM, Manuel Kaufmann wrote: > I'm attaching an example that downloads a file with WebKit. > > I tried it setting up a tmpfs with 1Mb as you suggested and aftert > that, I ran this script. WebKit tells us about the insufficient space > on the disk by raising the "error"

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Martin Langhoff
On Tue, Sep 11, 2012 at 9:07 PM, Manuel Kaufmann wrote: > This is what I got: > > [olpc@xo-07-30-50 ~]$ mkdir /tmp/foo > [olpc@xo-07-30-50 ~]$ sudo mount -t tmpfs -o size=1M none /tmp/foo > [olpc@xo-07-30-50 ~]$ python > Python 2.7.3 (default, Apr 30 2012, 23:07:00) > [GCC 4.7.0 20120416 (Red Hat

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Martin Langhoff
On Tue, Sep 11, 2012 at 4:32 PM, Manuel Kaufmann wrote: > I didn't find an exception raised by Sugar when this happens. The > check is done[1] when a new Model is created[2] or updated[3] inside > the Journal, and if there are less than 50Mb a ModelAlert is shown but > no exception is raised. Mayb

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-11 Thread Martin Langhoff
On Tue, Sep 11, 2012 at 9:01 AM, Manuel Kaufmann wrote: > If we are going to use this approach, I have to change the logic about > "where" I should check this. +200. I hadn't realized this. The main two things you absolutely need are - check at the start of the download that it'll fit (with X r

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Martin Langhoff
On Mon, Sep 10, 2012 at 6:39 PM, James Cameron wrote: > Some users pay for data by volume. I don't think that cancelling a > download is the right approach. It should be paused, giving the user > a chance to clean up. Rather complex -- I haven't seen any webbrowser correctly implement that corr

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Martin Langhoff
On Mon, Sep 10, 2012 at 6:02 PM, Manuel Kaufmann wrote: > On Mon, Sep 10, 2012 at 9:49 PM, Martin Langhoff > wrote: >> Perhaps it is a stupid question but... in many HTTP requests you get >> the size of the transfer in the HTTP headers, in the form of the >> Content-Len

Re: [Sugar-devel] [DESIGN] set zoom to initial value in Browse

2012-09-10 Thread Martin Langhoff
On Mon, Sep 10, 2012 at 10:07 AM, Gonzalo Odiard wrote: > "Actual size" is used in Read too. http://imgs.xkcd.com/store/imgs/actual_size_200.png m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stu

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Martin Langhoff
On Mon, Sep 10, 2012 at 5:49 PM, Martin Langhoff wrote: > Perhaps it is a stupid question but... in many HTTP requests you get s/question/suggestion/ m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distrac

Re: [Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394

2012-09-10 Thread Martin Langhoff
On Mon, Sep 10, 2012 at 5:33 PM, Manuel Kaufmann wrote: > If there are less than 50Mb free on the Hard Disk the downloading > process is canceled and this is informed to the user via an Alert. Perhaps it is a stupid question but... in many HTTP requests you get the size of the transfer in the HTT

  1   2   3   4   5   6   7   8   >