QEMU image for firmware 703

2008-06-13 Thread Urko Fernandez
The school federation in my region lend me one of the two XO-1 they got
with the G1G1 program. I'm going to give a presentation next week and
I'm trying to get collaboration between sugar-jhbuild and the XO with no
success. Both are connected to xochat.org but only sugar-jhbuild sees
the other. 
I'm trying to find an 703 Qemu image (ext3) but all I can find is
firmware 625 here:
http://olpc.download.redhat.com/olpc/streams/development/
and the jffs version of 703 here:
http://download.laptop.org/xo-1/os/official/703/

Is some of the joyride versions posted here the 703 firmware?
http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/

Thanks,

Urko

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: QEMU image for firmware 703

2008-06-13 Thread Morgan Collett
On Fri, Jun 13, 2008 at 09:44, Urko Fernandez [EMAIL PROTECTED] wrote:
 The school federation in my region lend me one of the two XO-1 they got
 with the G1G1 program. I'm going to give a presentation next week and
 I'm trying to get collaboration between sugar-jhbuild and the XO with no
 success. Both are connected to xochat.org but only sugar-jhbuild sees
 the other.
 I'm trying to find an 703 Qemu image (ext3) but all I can find is
 firmware 625 here:
 http://olpc.download.redhat.com/olpc/streams/development/

That URL is to an old stream of builds.

 and the jffs version of 703 here:
 http://download.laptop.org/xo-1/os/official/703/

http://pilgrim.laptop.org/~pilgrim/olpc/streams/update.1/build703/
links to the ext3 image.

 Is some of the joyride versions posted here the 703 firmware?
 http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/

Joyride builds are the unstable builds, whereas the Update.1 builds
are the builds which resulted in 703 (release 8.1.0) and 708 which is
the release candidate for the next stable version, 8.1.1.

Regards
Morgan
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


boot-anim

2008-06-13 Thread Neil Graham
As it stands now there seems to be no 100% reliable way to judge the 
compressed size of things on jffs2.

I  cast my eye to the boot-anim,  uncompressed it comes to about 60 Meg, is 
there space being wasted there?

http://lists.laptop.org/pipermail/library/2007-July/70.html says 
 JFFS2 compresses 4K chunks using zlib.  So it's not just per-file
 compression, it's compressing bits of a file.  It doesn't compress files
 where compression doesn't help.  And there's a 68 byte overhead per
 compressed chunk.  Plus probably some fixed overhead per file.

doing some tests using mkfs.jffs2 on a filesystem with a single file of zeros 
at varying sizes gave me.

 409600 -- 11656
 819200 -- 23256
1228800 -- 34856 
1638400 -- 46456

each growth of 100 4k blocks added 11600 bytes.  I'll go out on a limb and say 
the best case on jffs2 is turning a 4k block into 116 bytes,  about 35:1 
compression, or down to 2.8% if you prefer

This is why the boot-anim bothers me.  If it were all zeros it should be 
taking up just over 1.5 meg.  It compresses really well, but it can't go 
beyond that limit.  

Running the jffs2size.py script on /usr/share/boot-anim reveals. 

 no compression : 60480336, 60480K
  estimated jffs2: 1983630, 1983K (3%)
  mkfs.jffs2 : 2344068, 2344K (3%)
  zipped : 389259, 389K (0%)
  .tar.gz: 399360, 399K (0%)
  .tar.bz2   : 184320, 184K (0%)

It looks like there's easily a meg to be had there, two meg looks doable.

Where to go from here is another issue.  total flexibility and 90% of the size 
gain could be had by using pngs (not sure if there is a speed issue there)

If there were to be a simple runlengh encoding,  the bulk of the size would go 
and jffs2 would crunch the remainder.   wadeb whipped up a tiny rle 
compressor/decompressor pair.

gzipping at a file level removes the block overhead and the size drops to 
about 380k.

For smallest size, lzma compressed rle files. appear to be the best.  lzma 
isn't in the default install. It is small at 90k and has potential other user 
applications.

   6325  frame00.565.gz
   2283  frame00.565.lzma
 15236  frame00.565.rle
   1841  frame00.565.rle.gz
   1451  frame00.565.rle.lzma
 
 28097  ul_warning.565.lzma
 30594  ul_warning.565.rle.gz
 22935  ul_warning.565.rle.lzma

The final compression method is colour-of-the-bikeshed stuff,  the important 
thing here is freeing up the 2 meg.  Whether the actual saving can be1.9MB or 
2.2MB is less important.
  
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: Upgrade G1G1 using autoreinstallation method

2008-06-13 Thread Jim Gettys
One of the AP's (or some other machine), will have to be configured to
dchp.   - Jim


On Fri, 2008-06-13 at 07:10 +1000, David Leeming wrote:
 Thanks - solved. It's all there on the wiki, yes (blush). We have a lot of
 time pressures imposed by the political realities here, with 20+ countries
 each with their own government and process to go through, etc. I do
 appreciate your help! 
 
 Do you also know about access points, it was stressed at the Countries
 meeting in Boston that 30+ XOs in one classroom do not collaborate very
 efficiently and the preferred method is to use an AP to enable
 collaboration/sharing in the classroom, even if there is no Internet access.
 We have had some D-Link DWL2100 APs sent to us for this purpose and what
 happens is that if there is no Internet connection the XOs do not associate
 themselves persistently with the APs but hang up and go looking for the
 mesh. Do you know anything about that?
 
 David Leeming
 
 -Original Message-
 From: Bert Freudenberg [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, 12 June 2008 7:28 p.m.
 To: David Leeming
 Cc: [EMAIL PROTECTED]
 Subject: Re: Upgrade G1G1 using autoreinstallation method
 
 
 On 12.06.2008, at 05:53, David Leeming wrote:
 
  How can I upgrade G1G1 XO-1s using the auto-reinstallation method  
  with a flash drive? We have 100 to update here in PNG and it is  
  impossible to use olpc-update as the connectivity is so poor. We  
  have a flash drive with the new image 703 on it, and I successfully  
  updated a B4. But when I try a G1G1 laptop, even with pressing the  
  game keys it just boots normally without updating. I know I have  
  some gaps in my knowledge regarding the keys and security for the  
  G1G1 laptops, but unfortunately I need a quick answer. Much  
  appreciate any help.
 
 Make sure it is the signed build (called 703 not update.1-703),  
 and remember you need an activity pack, too. See here:
 
   http://wiki.laptop.org/go/Secure_Upgrade
 
 - Bert -
 
 
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel
-- 
Jim Gettys [EMAIL PROTECTED]
One Laptop Per Child

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Koji Tags for 8.2.0

2008-06-13 Thread C. Scott Ananian
On Fri, Jun 13, 2008 at 12:23 AM, Michael Stone [EMAIL PROTECTED] wrote:
 Questions? Complaints? Pet peeves?

I'd rather rename our build roots to either correspond to fedora
releases or to olpc releases.  It seems that the 'olpc2, olpc3, ...'
numbering is a historical accident only, and just erects another
barrier to someone trying to understand how to contribute.  A new
developer might ask, I want to tag something for the 8.2 release,
what branch should I use? and then have to be told the arcane history
of olpc buildroots to understand why the answer is olpc3 and not
olpc4 (say).

Historically, we've shifted build roots only when we've moved from one
fedora major release to another.  So, olpc-f9, olpc-f10 would be
one naming scheme which is slightly easier to explain: you just have
to explain that 8.2 is based on fedora 9.  If the builds are named
after olpc releases (olpc-8.2, etc) they need no explanation,
although that means that we create a new build root for (say)
olpc-8.3 even if it weren't strictly necessary.  (Keeping the
olpc-8.2 build root for the 8.3 release would bring us back into
confusion-land.)

The one complaint I hear over and over again is that our version/build
numbering scheme is too complex and baroque.  Absent compelling
evidence to the contrary, I'd prefer to keep the names as simple as
possible, with as few different numbering schemes as possible, and
where we must have numbers, as far as possible use already existing
numbers (like fedora builds) instead of inventing our own.
 --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Release Status Report - 8.2.0

2008-06-13 Thread C. Scott Ananian
On Thu, Jun 12, 2008 at 7:40 PM, Chris Ball [EMAIL PROTECTED] wrote:
 Before we can ship power management, though, we should also fix:
  * the SD corruption bug (#6532) -- if we can't fix it in time, we can
inhibit suspend when an SD card is plugged in.
  * pushing wakeup decisions to the EC (#6010) -- this will make the
wakeup logic more reliable.

I'd claim that #6532 is not a *blocker*, it is just a desired feature.
 I think that we should ship low-power mode in 8.2 even if that means
we grey out the option to turn it on when an sd card is mounted.

#6010 I'm a little more ambivalent on; I'd need more opinions on
whether wakeup is unreliable enough to make an explicit low-power
mode unworkable.  If it means that sometimes it takes two power button
presses to wake up, that's probably not a blocker.  If it is so hard
to wake up that people regularly think the machine is hung and
hard-power-off instead, that's probably a blocker.

I'm not saying these bugs aren't important, I'm just trying to clarify
our WE DON'T SHIP 8.2 UNTIL... list.I'd like to say that
low-power mode is a must-have for 8.2.  I think we don't ship 8.2
until low-power mode doesn't eat SD cards is on the don't ship
list, but the way we get there might be by disabling low-power mode in
some situations -- it depends on how hard the SD corruption bug is to
fix.
 --scott

-- 
 ( http://cscott.net/ )
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Release Status Report - 8.2.0

2008-06-13 Thread pgf
c. scott ananian wrote:
  On Thu, Jun 12, 2008 at 7:40 PM, Chris Ball [EMAIL PROTECTED] wrote:
   Before we can ship power management, though, we should also fix:
* the SD corruption bug (#6532) -- if we can't fix it in time, we can
  inhibit suspend when an SD card is plugged in.
* pushing wakeup decisions to the EC (#6010) -- this will make the
  wakeup logic more reliable.
  
  I'd claim that #6532 is not a *blocker*, it is just a desired feature.
   I think that we should ship low-power mode in 8.2 even if that means
  we grey out the option to turn it on when an sd card is mounted.

if we can guarantee that we won't corrupt user data, then i agree
that it's not a blocker.  but if not, i'd say it is.

  #6010 I'm a little more ambivalent on; I'd need more opinions on
  whether wakeup is unreliable enough to make an explicit low-power
  mode unworkable.  If it means that sometimes it takes two power button
  presses to wake up, that's probably not a blocker.  If it is so hard
  to wake up that people regularly think the machine is hung and
  hard-power-off instead, that's probably a blocker.

is there background missing from trac?  i don't read anything in #6010
other than we wake up only to go right back to sleep too often,
which seems even more benign (leaving power usage aside) than
you're describing.

paul
=-
 paul fox, [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: thread summary: On Cerebro, Telepathy, yokes and whites

2008-06-13 Thread Kim Quirk
Greg,
I am adding the 'testing' mailing list. We can use this 'real life'
information for generating Use Cases and test cases but we will
probably need to simplify it.  There are too many things going on in
this particular case. We have some use cases for school scenarios in
some of these links:

http://wiki.laptop.org/go/Tests/Connectivity_and_Collaboration - use
cases in classroom
http://wiki.laptop.org/go/Networking_scenarios - major types of scenarios
http://wiki.laptop.org/go/Collaboration_Network_Testbed - 100 laptop testbed

As well as generating use cases, this 'real life' scenario tells us
that we have not conveyed what SHOULD work properly to people on the
ground - as what they are trying to do is not even possible in today's
builds. We've known that communications is a problem, but it
emphasizes that we need to figure out some solutions... and telling
this particular teacher, for instance, that what they are trying to do
won't work, is not the right answer.

Also, from a support perspective, it is really important when we get
feedback or help requests directly from teachers in country that we
try to get them in touch with their local support people - or we try
to include the local tech support people. As Wad as identified in the
past, if we try to help people where we really don't understand the
local constraints or the RF layout we are more likely to make things
worse than to actually provide help. With large country deployments,
the first level of help needs to come from in house support.

Thanks for bringing this up, Greg. It emphasizes a lot of things we
need to address.

Kim


On Fri, Jun 13, 2008 at 8:49 AM, Greg Smith (gregmsmi)
[EMAIL PROTECTED] wrote:
 Hi Poly et al,

 Thanks for the summary and documentation.

 After the last round on this subject
 http://lists.laptop.org/pipermail/devel/2008-May/thread.html#13898

 I exchanged some e-mails with a teacher in Uruguay to get a better sense
 of exactly how they want to use the XO in class to collaborate. See:
 http://lists.laptop.org/pipermail/olpc-sur/2008-May/000118.html

 Here is the use case I got out of that exchange:
 - The class has 10 - 25 kids in the second grade each with an XO. There
 are 100 - 200 Xos in the school. Each class can join a different channel
 and time share (TDM :-)to keep the number of Xos per channel to a
 minimum.
 - One class (10 - 25) connects its Xos to the mesh (they do it by
 clicking the round mesh icon but they will do whatever works)
 - There is a wireless access point in the school and they see several
 other wireless Aps so there is some RF background.
 - One kid opens write (also want to use paint) sets it to share and
 starts writing.
 - In the neighborhood view the other students see the write icon and
 join the activity by clicking on it.
 - All the children start to write text and add pictures at more or less
 the same time
 - Each kid wants to save the file in their own journal at any time (this
 is where it crashed when they tried it with write)
 - After saving to the journal they want to see the shared document
 again. Its OK to require them to leave the share to open their own local
 copy as long as it doesn't crash if they do it out of order (what is
 supposed to happen if you are sharing a document then open a new one
 too?)

 Is that a well defined use case that you can turn in to an end to end
 test case? If not, what additional information or details do you need?

 My impression is that the teachers don't really care about the
 technology as long as they can do what is described above. I don't know
 exactly what software they have on their school servers (e.g. not sure
 about jabber). If we can tell them what software, configuration and
 steps they need to take in order to run a class as described that would
 be a very good start.

 I understand there is a write bug which is probably responsible for
 their issue. You can substitute paint or another activity if it helps
 isolate the collaboration aspects from the activity aspects.

 This can be something we test for a future release if its not something
 that is possible now. So please include build #s and time frames in any
 response. I wont say anything to the teacher about what is possible
 until I see a very solid reproduction of their environment and use case.
 I'll keep digging up real use cases and sharing them so let me know what
 kind of info you need to turn them in to test cases.

 No reference to Cerebro, telepathy etc, but I hope that helps. Comments
 and questions welcome.

 Thanks,

 Greg S

 **
 Message: 3
 Date: Wed, 11 Jun 2008 14:22:10 -0400
 From: Polychronis Ypodimatopoulos [EMAIL PROTECTED]
 Subject: thread summary: On Cerebro, Telepathy, yokes and whites
 To: OLPC Development devel@lists.laptop.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 This is a summary (a la Michael) of the cerebro/telepathy thread.

 Pol brought up the issue 

Re: Build streams

2008-06-13 Thread Mikus Grinbergs
 The F9 build does boot into Sugar -- we aren't going to leave everyone
 with a broken build for long.  It has bugs, though.  We need help fixing
 the bugs more than we need a demand for constantly stable developer
 builds and an unwarranted supposition of conflict.

Not long ago, when I tried to describe trying the F9 build, someone 
said this is not close to ready for use.  On my XO, olpc3_17 
booting will only complete if I manually switch into the text 
console (ctl-alt-F1).  I can't dim the screen (small sun-burst key); 
  there are other screen anomalies;  some keys don't work in 
Terminal; there are modules missing from site-packages;  etc..

mikus

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Koji Tags for 8.2.0

2008-06-13 Thread Dennis Gilmore
On Friday 13 June 2008, C. Scott Ananian wrote:
 On Fri, Jun 13, 2008 at 12:23 AM, Michael Stone [EMAIL PROTECTED] wrote:
  Questions? Complaints? Pet peeves?

 I'd rather rename our build roots to either correspond to fedora
 releases or to olpc releases.  It seems that the 'olpc2, olpc3, ...'
 numbering is a historical accident only, and just erects another
 barrier to someone trying to understand how to contribute.  A new
 developer might ask, I want to tag something for the 8.2 release,
 what branch should I use? and then have to be told the arcane history
 of olpc buildroots to understand why the answer is olpc3 and not
 olpc4 (say).

 Historically, we've shifted build roots only when we've moved from one
 fedora major release to another.  So, olpc-f9, olpc-f10 would be
 one naming scheme which is slightly easier to explain: you just have
 to explain that 8.2 is based on fedora 9.  If the builds are named
 after olpc releases (olpc-8.2, etc) they need no explanation,
 although that means that we create a new build root for (say)
 olpc-8.3 even if it weren't strictly necessary.  (Keeping the
 olpc-8.2 build root for the 8.3 release would bring us back into
 confusion-land.)

 The one complaint I hear over and over again is that our version/build
 numbering scheme is too complex and baroque.  Absent compelling
 evidence to the contrary, I'd prefer to keep the names as simple as
 possible, with as few different numbering schemes as possible, and
 where we must have numbers, as far as possible use already existing
 numbers (like fedora builds) instead of inventing our own.
  --scott

Scott, 

I fully agree  which is why i said what i said 
http://lists.laptop.org/pipermail/devel/2008-April/012513.html and
http://lists.laptop.org/pipermail/devel/2008-April/012644.html

moving forward  if we used say olpc-f9  what disttag should we use.  if  we 
use .fc9  as fedora uses its harder to easily see what packages we diverge 
on.   i like .olpc3  as its clear  that we have diverged on those packages 
and anything .fc9 comes from fedora.  i don't particularly like .olpcf9   but 
that's certainly an option. 

Dennis



signature.asc
Description: This is a digitally signed message part.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Release Status Report - 8.2.0

2008-06-13 Thread Chris Ball
Hi,

is there background missing from trac?  i don't read anything in #6010
other than we wake up only to go right back to sleep too often,
which seems even more benign (leaving power usage aside) than
you're describing.

Yes, there's some background missing -- both the lid switch detection
and power button detection have proven occasionally unreliable from
inside the kernel, and having them unreliable leads to a confusing state
of seeing the laptop turn on and off again quickly.  The lid bug is:

   http://dev.laptop.org/ticket/5703

That's not the main reason for doing it, though; we've always planned
on having the wakeup decision made by the EC, but didn't have the
ability to set the wakeup mask until recently.

- Chris.
-- 
Chris Ball   [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: thread summary: On Cerebro, Telepathy, yokes and whites

2008-06-13 Thread Greg Smith (gregmsmi)
Hi Kim,

Thanks for the comments and links.

FYI I didn't make any representation about what is supported or what
should work now or in the future. I just asked what they want to do.

Wad did get the Latu people on the list and they have started
participating, somewhat.

We need to keep working the proper support channels and using them to
improve the communication of what will work. I'll focus on that. 

In the mean time, I hope to maintain a good relationship with the
teachers to help uncover more desired use cases, without interfering in
the support process. 

Thanks,

Greg S

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kim
Quirk
Sent: Friday, June 13, 2008 10:51 AM
To: Greg Smith (gregmsmi)
Cc: devel@lists.laptop.org; [EMAIL PROTECTED]; joe
Subject: Re: thread summary: On Cerebro, Telepathy, yokes and whites

Greg,
I am adding the 'testing' mailing list. We can use this 'real life'
information for generating Use Cases and test cases but we will probably
need to simplify it.  There are too many things going on in this
particular case. We have some use cases for school scenarios in some of
these links:

http://wiki.laptop.org/go/Tests/Connectivity_and_Collaboration - use
cases in classroom http://wiki.laptop.org/go/Networking_scenarios -
major types of scenarios
http://wiki.laptop.org/go/Collaboration_Network_Testbed - 100 laptop
testbed

As well as generating use cases, this 'real life' scenario tells us that
we have not conveyed what SHOULD work properly to people on the ground -
as what they are trying to do is not even possible in today's builds.
We've known that communications is a problem, but it emphasizes that we
need to figure out some solutions... and telling this particular
teacher, for instance, that what they are trying to do won't work, is
not the right answer.

Also, from a support perspective, it is really important when we get
feedback or help requests directly from teachers in country that we try
to get them in touch with their local support people - or we try to
include the local tech support people. As Wad as identified in the past,
if we try to help people where we really don't understand the local
constraints or the RF layout we are more likely to make things worse
than to actually provide help. With large country deployments, the first
level of help needs to come from in house support.

Thanks for bringing this up, Greg. It emphasizes a lot of things we need
to address.

Kim


On Fri, Jun 13, 2008 at 8:49 AM, Greg Smith (gregmsmi)
[EMAIL PROTECTED] wrote:
 Hi Poly et al,

 Thanks for the summary and documentation.

 After the last round on this subject
 http://lists.laptop.org/pipermail/devel/2008-May/thread.html#13898

 I exchanged some e-mails with a teacher in Uruguay to get a better 
 sense of exactly how they want to use the XO in class to collaborate.
See:
 http://lists.laptop.org/pipermail/olpc-sur/2008-May/000118.html

 Here is the use case I got out of that exchange:
 - The class has 10 - 25 kids in the second grade each with an XO. 
 There are 100 - 200 Xos in the school. Each class can join a different

 channel and time share (TDM :-)to keep the number of Xos per channel 
 to a minimum.
 - One class (10 - 25) connects its Xos to the mesh (they do it by 
 clicking the round mesh icon but they will do whatever works)
 - There is a wireless access point in the school and they see several 
 other wireless Aps so there is some RF background.
 - One kid opens write (also want to use paint) sets it to share and 
 starts writing.
 - In the neighborhood view the other students see the write icon and 
 join the activity by clicking on it.
 - All the children start to write text and add pictures at more or 
 less the same time
 - Each kid wants to save the file in their own journal at any time 
 (this is where it crashed when they tried it with write)
 - After saving to the journal they want to see the shared document 
 again. Its OK to require them to leave the share to open their own 
 local copy as long as it doesn't crash if they do it out of order 
 (what is supposed to happen if you are sharing a document then open a 
 new one
 too?)

 Is that a well defined use case that you can turn in to an end to end 
 test case? If not, what additional information or details do you need?

 My impression is that the teachers don't really care about the 
 technology as long as they can do what is described above. I don't 
 know exactly what software they have on their school servers (e.g. not

 sure about jabber). If we can tell them what software, configuration 
 and steps they need to take in order to run a class as described that 
 would be a very good start.

 I understand there is a write bug which is probably responsible for 
 their issue. You can substitute paint or another activity if it helps 
 isolate the collaboration aspects from the activity aspects.

 This can be something we test for a future release if its not 
 something that 

Re: boot-anim

2008-06-13 Thread C. Scott Ananian
On Fri, Jun 13, 2008 at 6:30 AM, Neil Graham [EMAIL PROTECTED] wrote:
 As it stands now there seems to be no 100% reliable way to judge the
 compressed size of things on jffs2.

 I  cast my eye to the boot-anim,  uncompressed it comes to about 60 Meg, is
 there space being wasted there?

 http://lists.laptop.org/pipermail/library/2007-July/70.html says
 JFFS2 compresses 4K chunks using zlib.  So it's not just per-file
 compression, it's compressing bits of a file.  It doesn't compress files
 where compression doesn't help.  And there's a 68 byte overhead per
 compressed chunk.  Plus probably some fixed overhead per file.

 doing some tests using mkfs.jffs2 on a filesystem with a single file of zeros
 at varying sizes gave me.

  409600 -- 11656
  819200 -- 23256
 1228800 -- 34856
 1638400 -- 46456

 each growth of 100 4k blocks added 11600 bytes.  I'll go out on a limb and say
 the best case on jffs2 is turning a 4k block into 116 bytes,  about 35:1
 compression, or down to 2.8% if you prefer

 This is why the boot-anim bothers me.  If it were all zeros it should be
 taking up just over 1.5 meg.  It compresses really well, but it can't go
 beyond that limit.

 Running the jffs2size.py script on /usr/share/boot-anim reveals.

  no compression : 60480336, 60480K
  estimated jffs2: 1983630, 1983K (3%)
  mkfs.jffs2 : 2344068, 2344K (3%)
  zipped : 389259, 389K (0%)
  .tar.gz: 399360, 399K (0%)
  .tar.bz2   : 184320, 184K (0%)

 It looks like there's easily a meg to be had there, two meg looks doable.

 Where to go from here is another issue.  total flexibility and 90% of the size
 gain could be had by using pngs (not sure if there is a speed issue there)

 If there were to be a simple runlengh encoding,  the bulk of the size would go
 and jffs2 would crunch the remainder.   wadeb whipped up a tiny rle
 compressor/decompressor pair.

 gzipping at a file level removes the block overhead and the size drops to
 about 380k.

 For smallest size, lzma compressed rle files. appear to be the best.  lzma
 isn't in the default install. It is small at 90k and has potential other user
 applications.

   6325  frame00.565.gz
   2283  frame00.565.lzma
  15236  frame00.565.rle
   1841  frame00.565.rle.gz
   1451  frame00.565.rle.lzma

  28097  ul_warning.565.lzma
  30594  ul_warning.565.rle.gz
  22935  ul_warning.565.rle.lzma

 The final compression method is colour-of-the-bikeshed stuff,  the important
 thing here is freeing up the 2 meg.  Whether the actual saving can be1.9MB or
 2.2MB is less important.

Thank you for the thorough quantitative data!  Nothing helps convince
me more than numbers. =)

With the attached 4-line patch to ppmto565.py, we generate
bzip2-compressed files with a total (non-jffs2) size of 98,939 bytes.
mkfs.jffs2 size is 107,176 bytes.

By changing two lines (see attached gzip.path), we generate
zlib-compressed files.  Total non-jffs size: 210,096 bytes (!).
mkfs.jffs2 size: 177,544 bytes.

I suspect zlib is available in the initramfs, but bzip is probably not
(and lzma is definitely not).  Even though it costs 70k, I think I'd
go with zlib here.

I'm about to leave for 10 days vacation; bonus points to anyone who
can take the 4 line change to ppmto565.py and turn this into a 'real'
patch for 8.2.  Source code is at:
  http://dev.laptop.org/git?p=users/cscott/act-gui;a=summary
Tasks are:

 a) patch fbutil.c and/or pyfb.pyx to properly load both compressed
and uncompressed images (since some countries have customized the boot
sequence and fielded .565 files we should continue to support:
http://wiki.laptop.org/go/Tweaking_the_boot_animation )

 b) patch boot-anim-start and/or pyfb.pyx to allow *un*loading boot
animation frames.  It doesn't matter when the frames are straight
mmaps from disk, because the kernel knows it can through those pages
out of the page cache if it needs extra memory.  When you're doing
computation on the mmapped data, then the pages are dirty and get
stuck in memory, so we probably need to free the uncompressed frames
we're no longer using.

 c) double check that this doesn't have a significant performance
impact on the XO, probably by writing a simple script which loads 
displays the images similar to pytest.py and timing the script on an
XO both before and after the changes.

For extra credit, you could insert your code into the initramfs by
rebuilding it as described at the bottom of
http://wiki.laptop.org/go/Kernel_Building, and double check that it
doesn't break (ie, that we really do have zlib in the initramfs).  If
we don't, then it's probably reasonable to leave the activation and
first frame parts of the animation in uncompressed form, and only
compress frames 01-25, which are displayed after we've left the
initramfs.

Happy hacking!
 --scott

-- 
 ( http://cscott.net/ )
--- ppmto565.py	2007-08-04 21:13:03.0 -0400
+++ ppmto565z.py	2008-06-13 10:16:07.0 -0400
@@ -26,6 +26,7 @@
 
 def main(inf, outf):
 import struct
+   

Re: boot-anim

2008-06-13 Thread Erik Garrison
On Fri, Jun 13, 2008 at 12:00:54PM -0400, C. Scott Ananian wrote:
 I'm about to leave for 10 days vacation; bonus points to anyone who
 can take the 4 line change to ppmto565.py and turn this into a 'real'
 patch for 8.2.  Source code is at:
   http://dev.laptop.org/git?p=users/cscott/act-gui;a=summary
 Tasks are:
 
  a) patch fbutil.c and/or pyfb.pyx to properly load both compressed
 and uncompressed images (since some countries have customized the boot
 sequence and fielded .565 files we should continue to support:
 http://wiki.laptop.org/go/Tweaking_the_boot_animation )
 
  b) patch boot-anim-start and/or pyfb.pyx to allow *un*loading boot
 animation frames.  It doesn't matter when the frames are straight
 mmaps from disk, because the kernel knows it can through those pages
 out of the page cache if it needs extra memory.  When you're doing
 computation on the mmapped data, then the pages are dirty and get
 stuck in memory, so we probably need to free the uncompressed frames
 we're no longer using.
 
  c) double check that this doesn't have a significant performance
 impact on the XO, probably by writing a simple script which loads 
 displays the images similar to pytest.py and timing the script on an
 XO both before and after the changes.
 
 For extra credit, you could insert your code into the initramfs by
 rebuilding it as described at the bottom of
 http://wiki.laptop.org/go/Kernel_Building, and double check that it
 doesn't break (ie, that we really do have zlib in the initramfs).  If
 we don't, then it's probably reasonable to leave the activation and
 first frame parts of the animation in uncompressed form, and only
 compress frames 01-25, which are displayed after we've left the
 initramfs.

Bonus points.  Hmm.

I'm game.

Is there anyone who would be interested in working on this with me until
cscott gets back?

Erik
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Trac: release management

2008-06-13 Thread Garrett Goebel
On Thu, Jun 5, 2008 at 6:57 PM, Martin Dengler [EMAIL PROTECTED] wrote:
 On Thu, Jun 05, 2008 at 04:25:53PM -0400, Garrett Goebel wrote:

 ... I'll write you a query which will give all the
 non-closed tickets which have never been changed by the owner.

 Are you hoping to get OLPC management more justification for hiring
 more people from this metric?  Or convince others that OLPC is
 overworked?

I'm hoping to:
o  make the state of inactive tickets easier to see and distinguish
between tickets which have had:
  - no human interaction
  - no owner interaction
  - no activity for over a given period of time
o  make trac more useful for release planning and scheduling

It won't be perfect. Each problem to be solved is unique. Each
programmer different.  But if we use running aggregates based on the
last n months of historic data, we can finesse those back of the
envelope guesstimations until they're more than just guesses.

At which point using time based estimations and FTEs will give the
release manager the ability to do more than just guess at when X, Y,
and Z can be delivered.

Which is a nice position to be in, when you have to explain to upper
management why new feature 'B' which they want to put at the head of
the queue is going to push back the features already in the works.
Especially when 'B' touches a lot of other code and is going to
require a lot of FTE hours. And it is nice when you can turn around
and point to historic data and which shows that tickets which have
impacted more than 1 or 2 other subsystems and required over 40 hours
to complete have historically resulted in an average of 1.5x the
number of FTE hours in new defects.


 Whatever you want to call it, you might find it useful to track the
 scope and complexity of the changes required to fix an issue. Priority
 doesn't get at that. It would allow you to collect historic data which
 could be used to project how much time tickets will take to be
 implemented and how many bug hours you'll get per change.

 Do you know of any situations where this type of information is
 usefully collected?  It sounds like trying to do a number of chained
 correlation exercises (complexity/scope estimate, complexity/scope
 actual, time to fix estimate, time to fix actual) that are based on
 partially subjective, known-hard-to-observe/predict data and expect to
 come up with something useful.  More power to you if you succeed - you
 will be able to make millions consulting / selling your software to
 project management-focused groups.  Have you ever done this analysis
 before?

For the past 10+ years where I work.

It has been one of my hats, to customize our issue tracking system and
generate web based reports per my boss' needs. In that time we've
grown from 4 to ~30 developers. We've gone back and forth between what
makes for the lightest weight system which is useful for release and
internal management of the development team, and how to mine the issue
tracking system in order to help in discussions with upper management,
so that explanations and opinions can be backed up with historic data.


  How many Full Time Equivalent hours does a given developer represent?
 
  A guesstimate: about 25 hrs/wk of coding and 30 hrs/wk of talking for
  social folks, maybe 30 hrs/wk of coding and 10 hrs/wk of talking for
  contractors; and 5-8 full days off a month (including weekends).

 Is there any list of developers and which slot each fit into?

 Why?  What is the use of asking questions that are somewhat private (a
 co-worker's opinion as to who's social or not) and unactionable by
 you?  These are actually rhetorical questions, so let me get to the
 point (below)...

You are either joking or willfully missing the point due to what you
probably view as previous provocations...

The slots I was asking about were employee vs contractor. Because
Michael Stone has estimated different FTE hours for each: 55 vs 40.


  What components are the given developers capable of working on?
 
  I don't understand this question.

 You've got folks who have particular areas of expertise. Or to put it
 the other way, developers who can work in certain areas but not
 others. If your Trac ticket classifies a ticket as belonging to a
 particular area, you can then project how many FTE's you've got on
 hand to work in that area.

 I realize that this being an open source project leaves a lot open
 ended. But if you collect the data in a way that you can get at it
 effectively, you can use historic data to verify your assumptions and
 track and make projections against non-employee/non-contractor
 developers as well.

 You could, if 1) it were feasible to collect; 2) its analysis was a
 tractable problem; and 3) it analysis had (significantly) greater
 benefit than cost.

 1) is possible to collect in this case (who has worked on what) but
 not (I contend) in your other point (predicting future development
 speed/progress)

You are expressing an opinion. Whereas I can share the 

New joyride build 2037

2008-06-13 Thread Build Announcer v2
http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build2037

Changes in build 2037 from build: 2032

Size delta: 0.00M

-sugar-datastore 0.7.3-1.olpc2
+sugar-datastore 0.8.1-1.olpc2

--- Changes for sugar-datastore 0.8.1-1.olpc2 from 0.7.3-1.olpc2 ---
  + Update to 0.8.1

--
This mail was automatically generated
See http://dev.laptop.org/~rwh/announcer/joyride-pkgs.html for aggregate logs
See http://dev.laptop.org/~rwh/announcer/joyride_vs_update1.html for a 
comparison
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Trac: release management

2008-06-13 Thread Wade Brainerd
Hello,

I agree wholeheartedly that ticket triage and statistical analysis is
a worthwhile effort, so I think I support what Garrett is talking
about.

At my employer we have teams of producers constantly watching
individual and per-component bug counts, transfering bugs from
overworked team members, ensuring progress is being made according to
priority levels, and tracking the rate of change of the blocking
ticket count compared with previous projects to estimate our
completion date, among other things.

Without that kind of attention, there is no way we would ship anything
on time.  I don't care how the open source world usually does it,
releases don't happen unless you're on top of your tickets.

I know there is a Git plugin for Trac, anyone know why it isn't
installed?  I would love to see commits on the Trac Timeline RSS feed,
and the Trac source browser is pretty nice too.

Regards,

-Wade

On Fri, Jun 13, 2008 at 11:09 AM, Garrett Goebel
[EMAIL PROTECTED] wrote:
 On Thu, Jun 5, 2008 at 6:57 PM, Martin Dengler [EMAIL PROTECTED] wrote:
 On Thu, Jun 05, 2008 at 04:25:53PM -0400, Garrett Goebel wrote:

 ... I'll write you a query which will give all the
 non-closed tickets which have never been changed by the owner.

 Are you hoping to get OLPC management more justification for hiring
 more people from this metric?  Or convince others that OLPC is
 overworked?

 I'm hoping to:
 o  make the state of inactive tickets easier to see and distinguish
 between tickets which have had:
  - no human interaction
  - no owner interaction
  - no activity for over a given period of time
 o  make trac more useful for release planning and scheduling

 It won't be perfect. Each problem to be solved is unique. Each
 programmer different.  But if we use running aggregates based on the
 last n months of historic data, we can finesse those back of the
 envelope guesstimations until they're more than just guesses.

 At which point using time based estimations and FTEs will give the
 release manager the ability to do more than just guess at when X, Y,
 and Z can be delivered.

 Which is a nice position to be in, when you have to explain to upper
 management why new feature 'B' which they want to put at the head of
 the queue is going to push back the features already in the works.
 Especially when 'B' touches a lot of other code and is going to
 require a lot of FTE hours. And it is nice when you can turn around
 and point to historic data and which shows that tickets which have
 impacted more than 1 or 2 other subsystems and required over 40 hours
 to complete have historically resulted in an average of 1.5x the
 number of FTE hours in new defects.


 Whatever you want to call it, you might find it useful to track the
 scope and complexity of the changes required to fix an issue. Priority
 doesn't get at that. It would allow you to collect historic data which
 could be used to project how much time tickets will take to be
 implemented and how many bug hours you'll get per change.

 Do you know of any situations where this type of information is
 usefully collected?  It sounds like trying to do a number of chained
 correlation exercises (complexity/scope estimate, complexity/scope
 actual, time to fix estimate, time to fix actual) that are based on
 partially subjective, known-hard-to-observe/predict data and expect to
 come up with something useful.  More power to you if you succeed - you
 will be able to make millions consulting / selling your software to
 project management-focused groups.  Have you ever done this analysis
 before?

 For the past 10+ years where I work.

 It has been one of my hats, to customize our issue tracking system and
 generate web based reports per my boss' needs. In that time we've
 grown from 4 to ~30 developers. We've gone back and forth between what
 makes for the lightest weight system which is useful for release and
 internal management of the development team, and how to mine the issue
 tracking system in order to help in discussions with upper management,
 so that explanations and opinions can be backed up with historic data.


  How many Full Time Equivalent hours does a given developer represent?
 
  A guesstimate: about 25 hrs/wk of coding and 30 hrs/wk of talking for
  social folks, maybe 30 hrs/wk of coding and 10 hrs/wk of talking for
  contractors; and 5-8 full days off a month (including weekends).

 Is there any list of developers and which slot each fit into?

 Why?  What is the use of asking questions that are somewhat private (a
 co-worker's opinion as to who's social or not) and unactionable by
 you?  These are actually rhetorical questions, so let me get to the
 point (below)...

 You are either joking or willfully missing the point due to what you
 probably view as previous provocations...

 The slots I was asking about were employee vs contractor. Because
 Michael Stone has estimated different FTE hours for each: 55 vs 40.


  What components are the given developers 

New faster build 2037

2008-06-13 Thread Build Announcer v2
http://xs-dev.laptop.org/~cscott/olpc/streams/faster/build2037

Changes in build 2037 from build: 2032

Size delta: 0.00M

-sugar-datastore 0.7.3-1.olpc2
+sugar-datastore 0.8.1-1.olpc2

--- Changes for sugar-datastore 0.8.1-1.olpc2 from 0.7.3-1.olpc2 ---
  + Update to 0.8.1

--
This mail was automatically generated
See http://dev.laptop.org/~rwh/announcer/faster-pkgs.html for aggregate logs
See http://dev.laptop.org/~rwh/announcer/joyride_vs_update1.html for a 
comparison
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: Trac: release management

2008-06-13 Thread Bill Mccormick
I'll second Wade's comment below.   Once all the features for the
release are in the number 1 job of the mgt team (or the manager if she's
all alone) is staying on top of problem reports.

High priority tickets get done first, tickets are triaged within a day
and high priority tickets get assigned while low priority tickets are
deferred...With the assistance of the test team you can track
outstanding tickets, incoming and outgoing rates and use this to
forecast your release date or to take corrective action to meet your
release date.


Bill McCormick
Open innovation lab
Nortel
ESN 393-6298
External (613) 763-6298 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wade Brainerd
Sent: Friday, June 13, 2008 2:38 PM
To: Garrett Goebel
Cc: devel@lists.laptop.org
Subject: Re: Trac: release management

Hello,

I agree wholeheartedly that ticket triage and statistical analysis is a
worthwhile effort, so I think I support what Garrett is talking about.

At my employer we have teams of producers constantly watching individual
and per-component bug counts, transfering bugs from overworked team
members, ensuring progress is being made according to priority levels,
and tracking the rate of change of the blocking ticket count compared
with previous projects to estimate our completion date, among other
things.

Without that kind of attention, there is no way we would ship anything
on time.  I don't care how the open source world usually does it,
releases don't happen unless you're on top of your tickets.

I know there is a Git plugin for Trac, anyone know why it isn't
installed?  I would love to see commits on the Trac Timeline RSS feed,
and the Trac source browser is pretty nice too.

Regards,

-Wade

On Fri, Jun 13, 2008 at 11:09 AM, Garrett Goebel
[EMAIL PROTECTED] wrote:
 On Thu, Jun 5, 2008 at 6:57 PM, Martin Dengler
[EMAIL PROTECTED] wrote:
 On Thu, Jun 05, 2008 at 04:25:53PM -0400, Garrett Goebel wrote:

 ... I'll write you a query which will give all the non-closed 
 tickets which have never been changed by the owner.

 Are you hoping to get OLPC management more justification for hiring 
 more people from this metric?  Or convince others that OLPC is 
 overworked?

 I'm hoping to:
 o  make the state of inactive tickets easier to see and distinguish 
 between tickets which have had:
  - no human interaction
  - no owner interaction
  - no activity for over a given period of time o  make trac more 
 useful for release planning and scheduling

 It won't be perfect. Each problem to be solved is unique. Each 
 programmer different.  But if we use running aggregates based on the 
 last n months of historic data, we can finesse those back of the 
 envelope guesstimations until they're more than just guesses.

 At which point using time based estimations and FTEs will give the 
 release manager the ability to do more than just guess at when X, Y, 
 and Z can be delivered.

 Which is a nice position to be in, when you have to explain to upper 
 management why new feature 'B' which they want to put at the head of 
 the queue is going to push back the features already in the works.
 Especially when 'B' touches a lot of other code and is going to 
 require a lot of FTE hours. And it is nice when you can turn around 
 and point to historic data and which shows that tickets which have 
 impacted more than 1 or 2 other subsystems and required over 40 hours 
 to complete have historically resulted in an average of 1.5x the 
 number of FTE hours in new defects.


 Whatever you want to call it, you might find it useful to track the 
 scope and complexity of the changes required to fix an issue. 
 Priority doesn't get at that. It would allow you to collect historic

 data which could be used to project how much time tickets will take 
 to be implemented and how many bug hours you'll get per change.

 Do you know of any situations where this type of information is 
 usefully collected?  It sounds like trying to do a number of chained 
 correlation exercises (complexity/scope estimate, complexity/scope 
 actual, time to fix estimate, time to fix actual) that are based on 
 partially subjective, known-hard-to-observe/predict data and expect 
 to come up with something useful.  More power to you if you succeed -

 you will be able to make millions consulting / selling your software 
 to project management-focused groups.  Have you ever done this 
 analysis before?

 For the past 10+ years where I work.

 It has been one of my hats, to customize our issue tracking system and

 generate web based reports per my boss' needs. In that time we've 
 grown from 4 to ~30 developers. We've gone back and forth between what

 makes for the lightest weight system which is useful for release and 
 internal management of the development team, and how to mine the issue

 tracking system in order to help in discussions with upper management,

 so that explanations and opinions can be backed up with 

Project management theory and application (was: Re: Trac: release management)

2008-06-13 Thread Martin Dengler
Garrett,

Thanks for your time and thoughts.  I'm taking my response off-list,
since it's about project, not release managment (though of course
there is a close relationship), I know it's just developing the
arguments I made already, and not going to convince anyone (not
meaning just you) to change their mind, I think, if they already have
an opinion.

Martin



pgpKY6qU3Y79J.pgp
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Recent Updates to Sugar Almanac

2008-06-13 Thread Faisal Anwar
Hello All,

As many of you know, I'm writing up a sugar almanac to help new sugar/python
developers get up and running with creating useful activities. I will try to
send frequent updates in terms of what has been added. In addition to using
the documentation, I'd appreciate it if people familiar with the different
modules I am writing can send any better or alternative code examples to the
ones that I have written. Review and feedback is ALWAYS appreciated.

This week, I have updated the section on how to do many of the basic
activity creation tasks (see
http://wiki.laptop.org/go/Sugar.activity.activity). In addition, I've
provided some basic examples of how to read and write your activity to the
datastore so that it can be resumed later from the journal. Below is a list
of the different how to's contained in this section of the almanac. Hope
some of these ring a bell in terms of what you all are trying to get done!

   - 1 Helper Functions in
sugar.activity.activityhttp://wiki.laptop.org/go/Sugar.activity.activity#Helper_Functions_in_sugar.activity.activity
  - 1.1 How do I get the file path for my activity
bundle?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_file_path_for_my_activity_bundle.3F
  - 1.2 How do I get the file path where I can write files
  
programmatically?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_file_path_where_I_can_write_files_programmatically.3F
  - 1.3 How do I get the name of my
activity?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_the_name_of_my_activity.3F
   - 2 Class: 
Activityhttp://wiki.laptop.org/go/Sugar.activity.activity#Class:_Activity
  - 2.1 How do I set the canvas (main work area) of my activity to a
  specific UI
widget?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_set_the_canvas_.28main_work_area.29_of_my_activity_to_a_specific_UI_widget.3F
  - 2.2 What are activity id's? How do I obtain the activity id for an
  instance of my
activity?http://wiki.laptop.org/go/Sugar.activity.activity#What_are_activity_id.27s.3F_How_do_I_obtain_the_activity_id_for_an_instance_of_my_activity.3F
  - 2.3 How do I create a new activity that is derived from the base
  Activity 
class?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_create_a_new_activity_that_is_derived_from_the_base_Activity_class.3F
  - 2.4 How do I implement a write_file method for my activity in order
  to persist my activity in the
journal?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_implement_a_write_file_method_for_my_activity_in_order_to_persist_my_activity_in_the_journal.3F
  - 2.5 How do I implement a read_file method for my activity so that I
  can resume activities from the sugar
journal?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_implement_a_read_file_method_for_my_activity_so_that_I_can_resume_activities_from_the_sugar_journal.3F
   - 3 Class: ActivityToolbox
(Toolbox)http://wiki.laptop.org/go/Sugar.activity.activity#Class:_ActivityToolbox_.28Toolbox.29
  - 3.1 What is the standard toolbox needed in most activities and how
  do I create
it?http://wiki.laptop.org/go/Sugar.activity.activity#What_is_the_standard_toolbox_needed_in_most_activities_and_how_do_I_create_it.3F
  - 3.2 How do I get a handle on the standard activity toolbar given an
  ActivityToolbox
object?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_get_a_handle_on_the_standard_activity_toolbar_given_an_ActivityToolbox_object.3F
   - 4 Class: ActivityToolbar
(gtk.Toolbar)http://wiki.laptop.org/go/Sugar.activity.activity#Class:_ActivityToolbar_.28gtk.Toolbar.29
   - 5 Class: EditToolbar
(gtk.Toolbar)http://wiki.laptop.org/go/Sugar.activity.activity#Class:_EditToolbar_.28gtk.Toolbar.29
  - 5.1 How do I add a standard edit toolbar to my
activity?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_add_a_standard_edit_toolbar_to_my_activity.3F
  - 5.2 How do I hide a button in the edit toolbar that is not needed in
  my 
activity?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_hide_a_button_in_the_edit_toolbar_that_is_not_needed_in_my_activity.3F
  - 5.3 How do I disable and enable a button on the edit
toolbar?http://wiki.laptop.org/go/Sugar.activity.activity#How_do_I_disable_and_enable_a_button_on_the_edit_toolbar.3F


You can also find the homepage for the documentation at
http://wiki.laptop.org/go/Sugar-api-doc.


Best,


Faisal
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Trac: release management

2008-06-13 Thread Martin Dengler
On Fri, Jun 13, 2008 at 11:37:32AM -0700, Wade Brainerd wrote:
 Hello,
 
 I agree wholeheartedly that ticket triage and statistical analysis is
 a worthwhile effort, so I think I support what Garrett is talking
 about.

To clarify, I advocated ticket triage in my response and I attempted
to make clear that statistical analysis was fine as long as it didn't
repress the development it was meant to analyse.

 At my employer we have teams of producers constantly watching
 individual and per-component bug counts, transfering bugs from
 overworked team members, ensuring progress is being made according to
 priority levels, and tracking the rate of change of the blocking
 ticket count compared with previous projects to estimate our
 completion date, among other things.

I think that's a great idea.  When OLPC/SugarLabs has the producers,
let's do it.  But don't make the developers do that, since any good
developer that I've known has always done all those things, already,
to the maximal extent it doesn't interfere with doing development
itself.

 I don't care how the open source world usually does it, releases
 don't happen unless you're on top of your tickets.

Just in case anyone thought I was arguing that doing something
suboptimally is OK because 'the open source world usually does
[that]', I wasn't.  I was just saying the cost/benefit case had to be
made if success is plausible without whatever's being argued for.

 Regards,
 
 -Wade

Martin


pgpKuW3Gtbd6g.pgp
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


RE: Upgrade G1G1 using autoreinstallation method

2008-06-13 Thread David Leeming
Thanks John, but I did realise that simple fact. The APs do have DHCP server
set up. They still move on.

David Leeming
Technical Advisor, People First Network
Tel: +677 76396(m) 24419(h) 26358 (w)
www.leeming-consulting.com

-Original Message-
From: John Watlington [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 14 June 2008 12:44 a.m.
To: David Leeming
Cc: John Watlington; 'Bert Freudenberg'; [EMAIL PROTECTED]
Subject: Re: Upgrade G1G1 using autoreinstallation method


On Jun 12, 2008, at 5:10 PM, David Leeming wrote:

 Thanks - solved. It's all there on the wiki, yes (blush). We have a  
 lot of
 time pressures imposed by the political realities here, with 20+  
 countries
 each with their own government and process to go through, etc. I do
 appreciate your help!

 Do you also know about access points, it was stressed at the Countries
 meeting in Boston that 30+ XOs in one classroom do not collaborate  
 very
 efficiently and the preferred method is to use an AP to enable
 collaboration/sharing in the classroom, even if there is no  
 Internet access.
 We have had some D-Link DWL2100 APs sent to us for this purpose and  
 what
 happens is that if there is no Internet connection the XOs do not  
 associate
 themselves persistently with the APs but hang up and go looking  
 for the
 mesh. Do you know anything about that?

Yes.   If there is no school server, and no other connection to the  
Internet,
then you will have to let one of the APs provide DHCP service.   If  
the laptops
connect to an AP, but aren't issued an address via DHCP, they move on...

 David Leeming

 -Original Message-
 From: Bert Freudenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2008 7:28 p.m.
 To: David Leeming
 Cc: [EMAIL PROTECTED]
 Subject: Re: Upgrade G1G1 using autoreinstallation method


 On 12.06.2008, at 05:53, David Leeming wrote:

 How can I upgrade G1G1 XO-1s using the auto-reinstallation method
 with a flash drive? We have 100 to update here in PNG and it is
 impossible to use olpc-update as the connectivity is so poor. We
 have a flash drive with the new image 703 on it, and I successfully
 updated a B4. But when I try a G1G1 laptop, even with pressing the
 game keys it just boots normally without updating. I know I have
 some gaps in my knowledge regarding the keys and security for the
 G1G1 laptops, but unfortunately I need a quick answer. Much
 appreciate any help.

 Make sure it is the signed build (called 703 not update.1-703),
 and remember you need an activity pack, too. See here:

   http://wiki.laptop.org/go/Secure_Upgrade

 - Bert -


 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[PATCH #3355] Add sysfs support for powering down the OLPC 88W8838 wireless chip.

2008-06-13 Thread Chris Ball
This uses the OLPC EC 0x35/0x25 interface.  

Question:  is simple_strtoul() safe here?

Signed-off-by: Chris Ball [EMAIL PROTECTED]
---
 arch/x86/kernel/olpc-pm.c |   19 +++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/olpc-pm.c b/arch/x86/kernel/olpc-pm.c
index e99a464..9f0a565 100644
--- a/arch/x86/kernel/olpc-pm.c
+++ b/arch/x86/kernel/olpc-pm.c
@@ -43,6 +43,8 @@
 /* These, and the battery EC commands, should be in an olpc.h. */
 #define EC_WRITE_SCI_MASK 0x1b
 #define EC_READ_SCI_MASK  0x1c
+#define EC_WLAN_ENTER_RESET 0x35
+#define EC_WLAN_LEAVE_RESET 0x25
 
 extern void do_olpc_suspend_lowlevel(void);
 
@@ -661,6 +663,19 @@ static ssize_t wackup_show(struct kobject *s, struct 
kobj_attribute *attr,
return sprintf(buf, %s\n, wackup_source ? wackup_source : none);
 }
 
+static ssize_t wlanreset_execute(struct kobject *s, struct kobj_attribute 
*attr,
+   const char *buf, size_t n)
+{
+   unsigned int val = simple_strtoul(buf, NULL, 0);
+   if (val == 1) {
+   olpc_ec_cmd(EC_WLAN_ENTER_RESET, NULL, 0, NULL, 0);
+   }
+   else if (val == 0) {
+   olpc_ec_cmd(EC_WLAN_LEAVE_RESET, NULL, 0, NULL, 0);
+   }
+   return n;
+}
+
 static struct kobj_attribute control_attr =
__ATTR(olpc-pm, 0644, control_show, control_store);
 
@@ -670,10 +685,14 @@ static struct kobj_attribute test_attr =
 static struct kobj_attribute wackup_attr =
__ATTR(wakeup-source, 0400, wackup_show, NULL);
 
+static struct kobj_attribute wlanreset_attr =
+   __ATTR(wlan-reset, 0644, NULL, wlanreset_execute);
+
 static struct attribute * olpc_attributes[] = {
control_attr.attr,
test_attr.attr,
wackup_attr.attr,
+   wlanreset_attr.attr,
NULL
 };
 
-- 
1.5.4.3
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH #6010] Add sysfs interface to enable/disable wakeup events

2008-06-13 Thread Chris Ball
Hi Deepak,

Here's the initial patch (vs testing kernel) for #6010 to provide
an interface that OHM can use to enable/disable wakeup events. It
still needs error handling for the ec_cmd() calls but other than
that it is ready to be tested.

Looks good.  I was hoping for a lid-switch attribute as well -- Richard
and Jordan, does that route through the Southbridge, or should it be
listed here?  (If it should be, where in the SCI mask is it?)

Similarly, I'm guessing there's no way for the EC to inhibit power
button press wakeups?

Thanks!

- Chris.
-- 
Chris Ball   [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH #3355] Add sysfs support for powering down the OLPC 88W8838 wireless chip.

2008-06-13 Thread Deepak Saxena
On Jun 13 2008, at 19:00, Chris Ball was caught saying:
 This uses the OLPC EC 0x35/0x25 interface.  
 
 Question:  is simple_strtoul() safe here?

I think the preffered way to do this is via sscanf() of
the incoming buffer as you can catch errors such as 
non-integer input. simple_stroul() will just return
0 which is not what we want.

I'd also change the mode to 0400 as this is a write-only bit. 

My preffered option is to make it r/w, call it wlan_enabled
and than we could check the state via the file too by storing 
the current setting.

~Deepak

 
 Signed-off-by: Chris Ball [EMAIL PROTECTED]
 ---
  arch/x86/kernel/olpc-pm.c |   19 +++
  1 files changed, 19 insertions(+), 0 deletions(-)
 
 diff --git a/arch/x86/kernel/olpc-pm.c b/arch/x86/kernel/olpc-pm.c
 index e99a464..9f0a565 100644
 --- a/arch/x86/kernel/olpc-pm.c
 +++ b/arch/x86/kernel/olpc-pm.c
 @@ -43,6 +43,8 @@
  /* These, and the battery EC commands, should be in an olpc.h. */
  #define EC_WRITE_SCI_MASK 0x1b
  #define EC_READ_SCI_MASK  0x1c
 +#define EC_WLAN_ENTER_RESET 0x35
 +#define EC_WLAN_LEAVE_RESET 0x25
  
  extern void do_olpc_suspend_lowlevel(void);
  
 @@ -661,6 +663,19 @@ static ssize_t wackup_show(struct kobject *s, struct 
 kobj_attribute *attr,
   return sprintf(buf, %s\n, wackup_source ? wackup_source : none);
  }
  
 +static ssize_t wlanreset_execute(struct kobject *s, struct kobj_attribute 
 *attr,
 + const char *buf, size_t n)
 +{
 + unsigned int val = simple_strtoul(buf, NULL, 0);
 + if (val == 1) {
 + olpc_ec_cmd(EC_WLAN_ENTER_RESET, NULL, 0, NULL, 0);
 + }
 + else if (val == 0) {
 + olpc_ec_cmd(EC_WLAN_LEAVE_RESET, NULL, 0, NULL, 0);
 + }
 + return n;
 +}
 +
  static struct kobj_attribute control_attr =
   __ATTR(olpc-pm, 0644, control_show, control_store);
  
 @@ -670,10 +685,14 @@ static struct kobj_attribute test_attr =
  static struct kobj_attribute wackup_attr =
   __ATTR(wakeup-source, 0400, wackup_show, NULL);
  
 +static struct kobj_attribute wlanreset_attr =
 + __ATTR(wlan-reset, 0644, NULL, wlanreset_execute);
 +
  static struct attribute * olpc_attributes[] = {
   control_attr.attr,
   test_attr.attr,
   wackup_attr.attr,
 + wlanreset_attr.attr,
   NULL
  };
  
 -- 
 1.5.4.3

-- 
Deepak Saxena [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH #6010] Add sysfs interface to enable/disable wakeup events

2008-06-13 Thread Deepak Saxena
On Jun 13 2008, at 19:05, Chris Ball was caught saying:
 Hi Deepak,
 
 Here's the initial patch (vs testing kernel) for #6010 to provide
 an interface that OHM can use to enable/disable wakeup events. It
 still needs error handling for the ec_cmd() calls but other than
 that it is ready to be tested.
 
 Looks good.  I was hoping for a lid-switch attribute as well -- Richard
 and Jordan, does that route through the Southbridge, or should it be
 listed here?  (If it should be, where in the SCI mask is it?)

I just went from the SCI mask listed @ [[Ec_specification]] which doesn't
have it documented. 

~Deepak

-- 
Deepak Saxena [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [PATCH #3355] Add sysfs support for powering down the OLPC 88W8838 wireless chip.

2008-06-13 Thread Chris Ball
Hi Deepak,

I think the preffered way to do this is via sscanf() of the
incoming buffer as you can catch errors such as non-integer
input. simple_stroul() will just return 0 which is not what we
want.

I'd also change the mode to 0400 as this is a write-only bit.

My preffered option is to make it r/w, call it wlan_enabled and
than we could check the state via the file too by storing the
current setting.

All applied in the replacement patch below.  Thanks!

- Chris.

From: Chris Ball [EMAIL PROTECTED]
Date: Fri, 13 Jun 2008 19:53:30 -0400
Subject: [PATCH #3355] Add sysfs support for powering down the OLPC 88W8838 
wireless chip.

This uses the OLPC EC 0x35/0x25 interface.

Signed-off-by: Chris Ball [EMAIL PROTECTED]
---
 arch/x86/kernel/olpc-pm.c |   32 
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/olpc-pm.c b/arch/x86/kernel/olpc-pm.c
index e99a464..bc6c160 100644
--- a/arch/x86/kernel/olpc-pm.c
+++ b/arch/x86/kernel/olpc-pm.c
@@ -43,6 +43,8 @@
 /* These, and the battery EC commands, should be in an olpc.h. */
 #define EC_WRITE_SCI_MASK 0x1b
 #define EC_READ_SCI_MASK  0x1c
+#define EC_WLAN_ENTER_RESET 0x35
+#define EC_WLAN_LEAVE_RESET 0x25
 
 extern void do_olpc_suspend_lowlevel(void);
 
@@ -69,6 +71,8 @@ static u16 olpc_wakeup_mask = 0;
 static unsigned int test_timeout = 0;
 static char *wackup_source = none;
 
+static unsigned int wlan_enabled = 1;
+
 struct platform_device olpc_powerbutton_dev = {
.name = powerbutton,
.id = -1,
@@ -661,6 +665,30 @@ static ssize_t wackup_show(struct kobject *s, struct 
kobj_attribute *attr,
return sprintf(buf, %s\n, wackup_source ? wackup_source : none);
 }
 
+static ssize_t wlan_enabled_show(struct kobject *s, struct kobj_attribute 
*attr,
+   char *buf)
+{
+   return sprintf(buf, %u\n, wlan_enabled);
+}
+
+static ssize_t wlan_enabled_store(struct kobject *s, struct kobj_attribute 
*attr,
+   const char *buf, size_t n)
+{
+   unsigned int val;
+   if (!sscanf(buf, %u, val) == 1) {
+   return -EINVAL;
+   }
+   if (val == 1) {
+   olpc_ec_cmd(EC_WLAN_LEAVE_RESET, NULL, 0, NULL, 0);
+   wlan_enabled = 1;
+   }
+   else if (val == 0) {
+   olpc_ec_cmd(EC_WLAN_ENTER_RESET, NULL, 0, NULL, 0);
+   wlan_enabled = 0;
+   }
+   return n;
+}
+
 static struct kobj_attribute control_attr =
__ATTR(olpc-pm, 0644, control_show, control_store);
 
@@ -670,10 +698,14 @@ static struct kobj_attribute test_attr =
 static struct kobj_attribute wackup_attr =
__ATTR(wakeup-source, 0400, wackup_show, NULL);
 
+static struct kobj_attribute wlanenabled_attr =
+   __ATTR(wlan-enabled, 0644, wlan_enabled_show, wlan_enabled_store);
+
 static struct attribute * olpc_attributes[] = {
control_attr.attr,
test_attr.attr,
wackup_attr.attr,
+   wlanenabled_attr.attr,
NULL
 };
 
-- 
1.5.4.3


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Upgrade G1G1 using autoreinstallation method

2008-06-13 Thread John Watlington

Not knowing more about what you've done, I have
to ask a lot of v. simple questions.

When you say move on, you have manually associated each
laptop with the AP once, right ?   And the ESSID hasn't changed ?

How realiable is the failure ?   Do all XOs move on to mesh
mode, or is this only a problem with a (random) few ?

How many XOs on each channel ?

You could be seeing a failure of DHCP to actually occur.
Have you checked /var/log/messages on a failing laptop ?

Cheers,
wad

On Jun 13, 2008, at 5:45 PM, David Leeming wrote:

 Thanks John, but I did realise that simple fact. The APs do have  
 DHCP server
 set up. They still move on.

 David Leeming
 Technical Advisor, People First Network
 Tel: +677 76396(m) 24419(h) 26358 (w)
 www.leeming-consulting.com

 -Original Message-
 From: John Watlington [mailto:[EMAIL PROTECTED]
 Sent: Saturday, 14 June 2008 12:44 a.m.
 To: David Leeming
 Cc: John Watlington; 'Bert Freudenberg'; [EMAIL PROTECTED]
 Subject: Re: Upgrade G1G1 using autoreinstallation method


 On Jun 12, 2008, at 5:10 PM, David Leeming wrote:

 Thanks - solved. It's all there on the wiki, yes (blush). We have a
 lot of
 time pressures imposed by the political realities here, with 20+
 countries
 each with their own government and process to go through, etc. I do
 appreciate your help!

 Do you also know about access points, it was stressed at the  
 Countries
 meeting in Boston that 30+ XOs in one classroom do not collaborate
 very
 efficiently and the preferred method is to use an AP to enable
 collaboration/sharing in the classroom, even if there is no
 Internet access.
 We have had some D-Link DWL2100 APs sent to us for this purpose and
 what
 happens is that if there is no Internet connection the XOs do not
 associate
 themselves persistently with the APs but hang up and go looking
 for the
 mesh. Do you know anything about that?

 Yes.   If there is no school server, and no other connection to the
 Internet,
 then you will have to let one of the APs provide DHCP service.   If
 the laptops
 connect to an AP, but aren't issued an address via DHCP, they move  
 on...

 David Leeming

 -Original Message-
 From: Bert Freudenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 12 June 2008 7:28 p.m.
 To: David Leeming
 Cc: [EMAIL PROTECTED]
 Subject: Re: Upgrade G1G1 using autoreinstallation method


 On 12.06.2008, at 05:53, David Leeming wrote:

 How can I upgrade G1G1 XO-1s using the auto-reinstallation method
 with a flash drive? We have 100 to update here in PNG and it is
 impossible to use olpc-update as the connectivity is so poor. We
 have a flash drive with the new image 703 on it, and I successfully
 updated a B4. But when I try a G1G1 laptop, even with pressing the
 game keys it just boots normally without updating. I know I have
 some gaps in my knowledge regarding the keys and security for the
 G1G1 laptops, but unfortunately I need a quick answer. Much
 appreciate any help.

 Make sure it is the signed build (called 703 not update.1-703),
 and remember you need an activity pack, too. See here:

  http://wiki.laptop.org/go/Secure_Upgrade

 - Bert -


 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Upgrade G1G1 using autoreinstallation method

2008-06-13 Thread John Watlington

On Jun 13, 2008, at 5:45 PM, David Leeming wrote:

 Thanks John, but I did realise that simple fact. The APs do have  
 DHCP server
 set up. They still move on.

BTW, not so simple.   I've done tests with APs and without a DHCP  
server.
I didn't see the problem you are referring to...

wad

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Recent Updates to Sugar Almanac

2008-06-13 Thread Martin Sevior
Hi Faisal,
   You might want to gather together the documentation we wrote
for abiwidget which explains how to embed the collaborative Rich Text
widget (as used by write) in python programs.

The links are on our wiki here:


http://www.abisource.com/wiki/AbiWidget

http://www.abisource.com/wiki/PyAbiWord

Cheers

Martin


On Fri, 2008-06-13 at 17:34 -0400, Faisal Anwar wrote:
 Hello All,
 
 As many of you know, I'm writing up a sugar almanac to help new
 sugar/python developers get up and running with creating useful
 activities. I will try to send frequent updates in terms of what has
 been added. In addition to using the documentation, I'd appreciate it
 if people familiar with the different modules I am writing can send
 any better or alternative code examples to the ones that I have
 written. Review and feedback is ALWAYS appreciated.
 
 This week, I have updated the section on how to do many of the basic
 activity creation tasks (see
 http://wiki.laptop.org/go/Sugar.activity.activity). In addition, I've
 provided some basic examples of how to read and write your activity to
 the datastore so that it can be resumed later from the journal. Below
 is a list of the different how to's contained in this section of the
 almanac. Hope some of these ring a bell in terms of what you all are
 trying to get done!
   * 1 Helper Functions in sugar.activity.activity 
   * 1.1 How do I get the file path for my activity bundle?
   * 1.2 How do I get the file path where I can write files
 programmatically?
   * 1.3 How do I get the name of my activity?
   * 2 Class: Activity 
   * 2.1 How do I set the canvas (main work area) of my
 activity to a specific UI widget?
   * 2.2 What are activity id's? How do I obtain the
 activity id for an instance of my activity?
   * 2.3 How do I create a new activity that is derived
 from the base Activity class?
   * 2.4 How do I implement a write_file method for my
 activity in order to persist my activity in the
 journal?
   * 2.5 How do I implement a read_file method for my
 activity so that I can resume activities from the
 sugar journal?
   * 3 Class: ActivityToolbox (Toolbox) 
   * 3.1 What is the standard toolbox needed in most
 activities and how do I create it?
   * 3.2 How do I get a handle on the standard activity
 toolbar given an ActivityToolbox object?
   * 4 Class: ActivityToolbar (gtk.Toolbar)
   * 5 Class: EditToolbar (gtk.Toolbar) 
   * 5.1 How do I add a standard edit toolbar to my
 activity?
   * 5.2 How do I hide a button in the edit toolbar that is
 not needed in my activity?
   * 5.3 How do I disable and enable a button on the edit
 toolbar?
 
 You can also find the homepage for the documentation at
 http://wiki.laptop.org/go/Sugar-api-doc. 
 
 
 Best,
 
 
 Faisal
 ___
 Sugar mailing list
 [EMAIL PROTECTED]
 http://lists.laptop.org/listinfo/sugar

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


downloaded files and the Journal

2008-06-13 Thread S Page
I was exploring the OLPC Library in Browse in build 703.  The transition 
from browsing to viewing a PDF in Read is pretty clunky, I noted the 
glitches in
http://wiki.laptop.org/go/Talk:Read#Many_issues_going_from_Browse_to_PDFs

The oddest thing is that every time you click on a PDF, another copy of 
the PDF is saved to the Journal's datastore.

This sounds intentional as part of the fix for Read doesn't save the 
PDFs it opens (Trac #6729).  I think the Browse activity is putting the 
file in the Journal, as the extra copy appears in the Journal's 
datastore even before I run Read.

But this doesn't make sense for read-only local files in the OLPC 
library like images  world maps  click Africa.  I've now got 7 copies 
of this .5MB PDF in ~/.sugar/default/datastore/store, each identical to 
/usr/share/activities/worldfactbook-maps/africa.pdf ; seems a 
significant waste of space.  (Or does JFFS2 magically optimize multiple 
copies of the same bits?  df -k reports mtd0 dropping by about the size 
of the PDF.)

If Evince worked as a browser plug-in, maybe the duplicated files would 
go away (along with some other glitches).  However, Consider unifying 
Read and Web (Trac #3212) was rejected.

If viewing PDFs remains a separate activity from Browse, then maybe the 
Browse activity could detect that it's downloading a local read-only 
file, and rather than the confusing download step leading to a copy in 
the Journal's datastore, it could just pass the local file:/// URL to 
Read on the command line.

But even if Browse bypassed the download step for local files, the 
problem of multiple copies remains for remote files.  I think each time 
I return to a PDF on the Internet, the Browse download step likewise 
makes another copy of the PDF in the Journal's datastore.

Has anyone considered making the Journal a two-level store, so that if I 
download the same file 7 times there's only one copy in the datastore, 
using symlinks or references or other magic?  Maybe this could even be 
made visible in the UI:
You've downloaded this file 7 times already, please check the Journal 
before repeating yourself.  Sheesh kid do you think the Intertubes is 
free?!

Meanwhile, the OLPC Library should prefer HTML or SVG content over 
single-page PDFs.

(The problem of local copies of Web content isn't unique to Sugar.  On 
my desktop PC I'll save stuff from the browser locally then forget that 
I've done so.  I want a browser and O.S. that opportunistically treats 
everything on my hard drive as a local cache of something from the 
Internet that might be updated, or have disappeared.)


If I'm wasting time here with obvious rehash, I apologize and cut me 
off.  And/or I can file enhancement bugs for these ideas.
Thanks for all you do,
Your most obsequious and devoted occasional G1G1 user,
--
=S Page
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[Server-devel] EDuBlog XS Beta/Development Server

2008-06-13 Thread Greg Smith (gregmsmi)
Hi Tony,
 
I think we should finalize the Fedora + XS server and get it shipped to
Glen by the end of next week.
 
My list of SW is:
PostGreSQL
Moodle
XS
Apache 2.0
PHP
 
Networking should be setup to plug and play at Glen's hosting site.
 
If we can get an image on CD too that let us boot and install it back to
default config (preferably without overwriting new stuff but not
critical) that would be helpful too.
 
Tarun, Marcel et al,
 
Let me know if there is any other SW needed. Can you also fill in the
version numbers and let's document this server HW and SW here:
http://wiki.laptop.org/go/Educational_Blogger_Project#Beta_Server_Hardwa
re_and_Software_Details
 
Debian is a stretch goal. I want to make sure we get it to the hosting
site in time to have a full week of config/debug before you go back on
the road (June 30?).
 
If we have enough info and can make it dual boot to Debian that's the
stretch goal, but must hit the install in PA date of June 23. I don't
think we need to share data between the two distros so it can be a
completely different image/partition for Debian. 
 
Marcel will be lead sys admin so he will need user/pass access. Tarun
needs SU access too and I could us a login. Please don't send any
passwords on this list. I'll open a separate thread with Glen to work
out the logistics. 
 
I hope that's doable. Let me know if you have any questions, concerns or
need more info.

I wonder if we need a terminal server? I hope we can run it without that
but if its needed and Glen will host it, I can look for one (probably
need to buy it :-(.
 
Lastly, we need to pick a domain name. Root name is one of these:
totaluruguay.com, venango.org or olpcuruguay.com. We can pick a third
level name.

Yama,

Can you pick a good name that will resonate with kids in Uruguay? Also,
does EduBlog sound good in Spanish and can kids say it easily? We can
call it the code name but once you use a name it sticks so if needed, we
should change it now and only once.
 
BTW please use [EMAIL PROTECTED] for me as of Wed. June 18th. I'll
subscribe that to the list so you can reach via server-devel too.
 
Thanks,
 
Greg Smith
 
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] XS SW

2008-06-13 Thread Tim Moody
I'd like to wade in on the question of base SW for the XS server, especially as 
regards database support.  I think the principle should be to use the software 
with the most users and developers, and therefore the most support, unless 
there is a compelling reason not to.  So the popularity of LAMP/WAMP would 
suggest using mysql unless there is a strong reason to use something else, like 
postgresql.  Martin has argued strongly in favor of postgresql in 
http://moodle.org/mod/forum/discuss.php?d=24831 (June, 2005), but he doesn't 
say which version of mysql and whether he is using innodb.  Greg Smith (? of 
EDuBlog fame) wrote a more neutral evaluation in 
http://wiki.postgresql.org/wiki/Why_PostgreSQL_Instead_of_MySQL:_Comparing_Reliability_and_Speed_in_2007,
 which does take into consideration MySQL 5.x and innodb.  Even when I 
installed moodle using yum on XS build 163 it came bundled with mysql 
libraries, not postgresql.  So my question is, given that this is OLPC and not 
OLTP, are there still reasons not to use mysql in light of more recent 
improvements (not to mention purchase by Sun, which is both positive and 
negative)?

Tim___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] EDuBlog XS Beta/Development Server

2008-06-13 Thread Tony Pearson
Hi Greg,
I'm glad we finally have settled down on a configuration for the EduBlog 
Beta Server (EBBS)

 I think we should finalize the Fedora + XS server and get it shipped to
 Glen by the end of next week.
 
I've updated the wiki here with what I think are the must have and nice 
to have requirements.
Please review. 

http://wiki.laptop.org/go/Educational_Blogger_Project

Based on suggestions from Wad and Martin, I had been invstigating Debian 
and KVM alternatives,
so if all we want is now an XS machine, I will re-focus my efforts and put 
those on the back burner.

 Networking should be setup to plug and play at Glen's hosting site.

I have three NICs, but only details for one IP connection.  Please 
confirm.  I will test out all three
NIC connections, and then set one to match Glen's requirements.  Also, I 
need you to finalize the
domain name.  The XS might decide one is for WAN and the other two are for 
LAN for me.

 If we can get an image on CD too that let us boot and install it back to
 default config (preferably without overwriting new stuff but not
 critical) that would be helpful too.

Yes, I have been exploring Mondo Rescue and SysRescCD partimage methods. I 
will include
CDs/DVDs in the box sent to Glen.

 Debian is a stretch goal. I want to make sure we get it to the hosting
 site in time to have a full week of config/debug before you go back on
 the road (June 30?).

I can probably drop in Debian in a separate partition, but will leave that 
for last.  I will be travelling
to Japan/India July 5-20.  This is a business trip for IBM, so I will have 
my laptop and cell phone,
and may be able to help with the installation remotely.  I will test my 
ability to connect from my laptop
to the EBBS to confirm.

 Marcel will be lead sys admin so he will need user/pass access. Tarun
 needs SU access too and I could us a login. Please don't send any
 passwords on this list. I'll open a separate thread with Glen to work
 out the logistics. 

Send me a list of users and their email addresses, and I will set them all 
up.

 I wonder if we need a terminal server? I hope we can run it without that
 but if its needed and Glen will host it, I can look for one (probably
 need to buy it :-(.

Glen should have a screen, keyboard and mouse.  This could be KVM 
switched with existing equipment
he already has.  For example, I have a 4-way KVM (keyboard, video, mouse) 
switch that connects my 
Apple Mac OS, my Windows XP, and this new EBBS all on the same 
keyboard/mouse and video screen.
I hit Scroll-Lock / Scroll-Lock / Up sequence to change to the next 
screen (or you can press the button on
the switch itself to pick one, but I am too lazy to get out of my chair). 
The EBBS uses round PS2 style keyboard
and mouse connections (USB keyboard and mouse connections might need some 
changes to configuration)

My biggest concern is that once it is in Pennsylvania, Glen will be the 
one doing most of the work if there
are any problems with Internet connections, SU logins, etc.  I will do the 
best I can for it be read out of the
box, and have enough on there so that any minor updates could be done via 
wget or yum.

Glen should be able to use any Windows machine via OpenSSH to access the 
command line console. 
(Glen, if you need something, I can get you connected for a refurbished 
IBM system for a few hundred 
bucks, let me know). 

Thanks
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] EduBlog v0.1 Available for Comment!

2008-06-13 Thread Martin Langhoff
On Thu, Jun 12, 2008 at 10:45 AM, Tarun Pondicherry
[EMAIL PROTECTED] wrote:
 The blog link takes the kid to the sitewide standard Moodle blog page.

Tarun,

 you're generally heading in the right direction, but I would
recommend that you pick whether to use standard moodle blog, or oublog
- so you don't have to do work on 2 implementations of blog ;-) !

OUBlog _can_ do a sitewide blog too (it's just a blog in the site
course - we can preconfigure that). So it is more flexible than the
standard moodle blog, as it can cover both bases.

If course-centered blogs are not needed, then the standard
moodleblog is an option - but from what I see, Greg is saying that it
is a requirement...



m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] EDuBlog XS Beta/Development Server

2008-06-13 Thread Tarun Pondicherry
Hi Tony,

Just a thought, could you install git on the server?  It would make it 
easier to just run a script rather than doing stuff manually and 
uploading with ftp.

Thanks,
Tarun
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] EDuBlog XS Beta/Development Server

2008-06-13 Thread Tony Pearson
Tarun,
I have no idea what git is.  Is it something I can install using yum? 
If not, please provide me location for Red Hat rpm file for it, or other 
instructions.

Thanks




Tony Pearson
Senior Storage Consultant, IBM System Storage?
Telephone: +1 520-799-4309 |  tie 321-4309 |  Cell: +1 520 990-8669
email: [EMAIL PROTECTED] |  GSA: http://tucgsa.ibm.com/~tpearson
Blog: http://www.ibm.com/developerworks/blogs/page/InsideSystemStorage
AKA: 990tony Paravane, eightbar specialist 






Tarun Pondicherry [EMAIL PROTECTED] 
06/13/2008 09:21 PM

To
Tony Pearson/Tucson/[EMAIL PROTECTED]
cc
Greg Smith (gregmsmi) [EMAIL PROTECTED], 
server-devel@lists.laptop.org
Subject
Re: [Server-devel] EDuBlog XS Beta/Development Server






Hi Tony,

Just a thought, could you install git on the server?  It would make it 
easier to just run a script rather than doing stuff manually and 
uploading with ftp.

Thanks,
Tarun

image/jpeg___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel