Re: gitweb-cgit

2009-03-09 Thread Asheesh Laroia
On Mon, 9 Mar 2009, Chris Ball wrote:

 Hi, now uses CGit instead of GitWeb.  CGit is
 faster, has fewer features (no detection of forked trees, for example)
 but hopefully also has fewer horrific remote execution vulnerabilities:

 Any complaints/obvious bugs/things I've missed?

I'm curious if you guys plan to be sad about the URL breakage this 
means, or just live with it. (Also, if you use gitosis, do you have 
a post-receive hook that updates a gitosis list of repositories?)

-- Asheesh.

Q:  How many psychiatrists does it take to change a light bulb?
A:  Only one, but it takes a long time, and the light bulb has
to really want to change.
Devel mailing list

Re: Allowing an activity to be launched multiple times in parallel

2008-10-30 Thread Asheesh Laroia

On Thu, 30 Oct 2008, Gary C Martin wrote:

I had the same mental hoop to jump through with my Moon activity, it's 
just a viewer of data, however after a version or so I soon has some 
useful state worth keeping (which viewing options a kid may have 
selected), and I do have more states to add in the future.

Thanks, I appreciate the feedback on this question.

I did some testing with License activity a while back, and do like the 
idea. One of the things that initially frustrated me was that I was 
forced through all those pages of description to get to the license I 
wanted, I then named the instance 'my choice of CC license for content 
blah', and then when I resumed later to have another look, License put 
me back to the start of the whole process again – I had expected my 
choice of license to have been kept as state so I could resume later and 
check what I had chosen., someone has actually run it! (-:

I'm interested in a discussion and hearing what current best practices are
seen as.  I haven't had a lot of time to work on the activity, but I want
to set a few things straight.  (I'm also generally very interested in help
with this activity!)

Well if you're looking for feedback ;-) the main things I'd like to see are:

1) Add the required license information into the file! ;-)


2) Store activity state so a kid can resume back to where they were
3) Smaller images, there are almost 4Mb of png files eating into the precious 
XO storage space, I'm sure jpg would be more than good enough.

Interesting point.  At least I could perhaps drop the resolution.

4) A leaner activity, there is a 3.5Mb 'built' directory in the bundle and 
digging down most of the is taken up by built/share/liblicense/licenses, 
could the license data be kept compressed and just unzipped when finally 
displayed, text compresses really well, and python has modules for working 
with compressed files.

Good points all around.  I'm running low on time to work on it, but I will 
try to handle these.  I've added them to the wiki page on the License 
activity so I 
don't lose them.

-- Asheesh.

Never, ever lie to someone you love unless you're absolutely sure they'll
never find out the truth.___
Devel mailing list

Allowing an activity to be launched multiple times in parallel

2008-10-29 Thread Asheesh Laroia
I have a general sugar UI question: My activity, License, a simple comic 
book reader that has a license chooser 
aspect to it, can be launched multiple times if clicked multiple times 
from the activity launcher.

To me, that seems silly.  Is it normal for Sugar activities to be able to 
be launched multiple times like this?

I'm interested in a discussion and hearing what current best practices are 
seen as.  I haven't had a lot of time to work on the activity, but I want 
to set a few things straight.  (I'm also generally very interested in help 
with this activity!)

-- Asheesh.


  [   ]  DOGBERT
  [ 4 ]  NONE of the above

-- Debian Project Leader 1999 ballot
Devel mailing list

Re: Allowing an activity to be launched multiple times in parallel

2008-10-29 Thread Asheesh Laroia
On Thu, 30 Oct 2008, Marco Pesenti Gritti wrote:

 We have a ticket which proposes to switch to single instance by default, 
 while still allowing the user to choose to open a separate one if he 

Cool.  As an activity developer, can/should I try to do something myself 
to handle this?

-- Asheesh.

You are wise, witty, and wonderful, but you spend too much time reading
this sort of trash.
Devel mailing list

Re: Hi, big qüestion!!!

2008-10-27 Thread Asheesh Laroia
On Mon, 27 Oct 2008, Marc Rodriguez Tristany wrote:

 Hi to everybody, I've just been added to the developers list of OLPC, 
 cause Martin Lanhoff told me I had to do it, and I don't know too much 
 how it works... But anyway, I'm a guy from Spain (Barcelona) that I'm 
 doing the final thesis of my IT degree with another guy, and it's about 
 an educational application for the OLPC (JClic), which we've translated 
 from Java to Python ( PyGame). The code is already working on Sugar.


 My question is:

 When we execute the code, the first thing it does is to open a xml file
 that contains the game (the child download it from the internet), and we've
 done and interface to do it (the typical open file). But last week we knew
 Martin (he came to Barcelona) and he told us we have to do it different. He
 said that when the child download the file, the journal should open directly
 the application with the file downloaded. We have no idea how to do it. Does
 someone know how to do it? or a link that explains it?or something similar??
 Thank you so much!!!

It sounds to me like
would help you.

-- Asheesh.

Smartness runs in my family.  When I went to school I was so smart my
teacher was in my class for five years.
-- George Burns
Devel mailing list

Re: ibus, a new input framework

2008-08-29 Thread Asheesh Laroia

On Thu, 28 Aug 2008, Edward Cherlin wrote:

 I'm on Debian Hardy.

There's no such Debian release.  I presume you mean Ubuntu Hardy.

 I compiled and installed Ibus, ibus-pinyin and
 Ibus-tables (apparently) but I'm having trouble with the others. I
 can't make the ibus-Hangul engine, and I can't make install
 ibus-chewing. Ibus doesn't run. Some error communication:

 hangul_wrap.c:118:20: error: Python.h: No such file or directory

 Where is Python.h supposed to come from?

Automatic help mode: 
indicates it is available in the python2.5-dev package.

Human help mode:

Install the package called python-dev.  You can use apt-file to search the 
repository for files; see

 [EMAIL PROTECTED]:~/Desktop/ibus-chewing-$ ibus
 Starting ibus-daemon OK
 Traceback (most recent call last):
  File /usr/local/share/ibus/daemon/, line 28, in module
import dbus.server
 ImportError: No module named server
 Start ibus-daemon failed

Looks like you probably need to apt-get install python-dbus.  That's just 
a guess, though.

-- Asheesh.

In the land of the dark the Ship of the
Sun is driven by the Grateful Dead.
-- Egyptian Book of the Dead
Devel mailing list

Re: Almost 50% less free memory in joyride-2302 compared with Update.1 (708)

2008-08-22 Thread Asheesh Laroia
On Thu, 21 Aug 2008, Ton van Overbeek wrote:

 Noticed the following:
 After booting with all the joyride activities installed and then running top
 on vt2 (no activities running, only journal) joyride-2302 shows 44268k free.
 Booting into 708 with the same set of activities shows 82828k free.

Are you taking the the buffers/cache space into account?

-- Asheesh.

From Sharp minds come... pointed heads.
-- Bryan Sparrowhawk
Devel mailing list

Re: (another) WebKit port of Browse

2008-07-07 Thread Asheesh Laroia
I've snipped away the parts I have no comment on, but:

On Mon, 7 Jul 2008, Martin Langhoff wrote:

 Well, there is quite a bit of thinking that needs to happen here, and I 
 am working on something else at the moment. So, these are quick notes

And me, too - just quick notes:

 - XS installs/deployments will be done in so many different scenarios 
 that we cannot address the promises needed the conventional PKI 
 infrastructure. We need a good strategy to sidestep the PKI requirements 
 of full blown SSL. A few weird schemes come to mind, all nasty :-)

I'd be interested to hear them.

 - SSL overhead at the network layer is very significant. Network 
 bandwidth and latency on the local link are valuable resources.

Do it once at authentication time and use an HTTP cookie after that (that 
is available to HTTP sites in the same doamin).

 - SSL CPU overhead at the XS end is moderately significant.

Same answer as above.

-- Asheesh.

Life is a grand adventure -- or it is nothing.
-- Helen Keller
Devel mailing list

Re: Video from last week's country meetings.

2008-05-30 Thread Asheesh Laroia
On Thu, 29 May 2008, Edward Cherlin wrote:

 Although I haven't run into any missing graphics yet, the text layout in 
 the PPTs are equally broken, but in OpenOffice Impress, I can read the 
 text that runs off the page when I select the slide. It would be much 
 easier to fix these files, but still time-consuming. We must ask for 
 volunteers. Is anybody with a bit of spare time comfortable with 
 reformatting in OpenOffice Impress? We just need line breaks and text 
 size adjusted, as far as I know. I can provide coaching, if needed.

As I recall the issue here is OOo on GNU/Linux's idea of font DPI being 
different from PowerPoint's on Windows.

Having seen this issue for years, I'm surprised it's not considered more 
of a big deal by upstream.  Perhaps it is; I haven't been following 

-- Asheesh.

Math is like love -- a simple idea but it can get complicated.
-- R. Drabek
Devel mailing list

Re: ssh key update IMPORTANT security advisory please read

2008-05-15 Thread Asheesh Laroia
On Thu, 15 May 2008, Joshua Minor wrote:

 Can you clarify whether keys generated on an XO need to be regenerated 
 or not.

The XO, being a Fedora-based system, is not vulnerable to this problem.

-- Asheesh.

Formatted to fit your screen.
Devel mailing list

Re: [sugar] Microsoft

2008-05-15 Thread Asheesh Laroia
On Thu, 15 May 2008, Nicholas Negroponte wrote:

 One Laptop per Child is announcing an agreement with Microsoft
 to make a dual boot, Linux/Windows, version of the XO laptop. In
 addition, our intention is to engage one or more third parties to port Sugar 
 run on Windows in order to reach a wider installed base of laptops. In the
 meanwhile, OLPC remains fully committed to our goal: a completely free
 and open learning platform for the world's children. The mission
 statement of OLPC has not changed in three years (attached).

My copy of this mail (as available at ) does not 
have the attachment of the mission statement.

-- Asheesh.

Absolutum obsoletum.  (If it works, it's out of date.)
-- Stafford Beer
Devel mailing list

Re: boot problem

2008-04-28 Thread Asheesh Laroia
On Fri, 25 Apr 2008, Daly Ikbel wrote:

 I try to copy a repositery of 258Mb.

How did you try to copy it?  Can you explain the exact steps you took? 
What do you mena repositery?  (But see below - answer this on the 
community-support email list.)

 I get an error of lack of space.
 while rebooting I get this message:

 OSError: [Errno 28] No space left on device 

 and the XO freeze.

What software build are you using?  If you are running the latest, it 
sounds like you should file this as a bug in Trac.

But either way - you should be able to drop to a terminal by doing 
Ctrl-Alt-F1 and logging in on the text terminal you will see there.  You 
should be able to delete the large file and then the regular Sugar 
software should work properly.

The list is more 
germane for your question, so if I were you I would try the suggestion I 
gave.  If it's not clear enough, or it doesn't work, you should join that 
list and ask your question again there.  You can put me in the CC: 
line so I see that conversation.

Best of luck!

-- Asheesh.

Any fool can paint a picture, but it takes a wise person to be able to sell it.
Devel mailing list

Re: space on device

2008-04-28 Thread Asheesh Laroia
On Mon, 28 Apr 2008, wahida mansouri wrote:

 Hi ;
 I want to know how can I resolve the problem of lack space on device
 because when compiling the kernel of my XO. I get this error:
 vmlinux error: no space on device.

Are you compiling that kernel on an XO?  Try doing the compile in an 
emulated environment with more storage space instead.

Or, do the compile on an SD card that has lots of space.

-- Asheesh.

Don't quit now, we might just as well lock the door and throw away the key.
Devel mailing list

Re: More Planning Thoughts

2008-04-16 Thread Asheesh Laroia
On Wed, 16 Apr 2008, Michael Stone wrote:

 Dear devel@,

 While I'm still rather far away from done, I may have imposed enough 
 structure on my present fragmented reflections on our goals to be worth 
 your review [1].


Having just read it, I'll digest it in my sleep tonight.

 P.S. - (Feel free to wikify if it matters to you; I certainly appreciate
 the feedback I've received on [2], particularly Greg's comments [3].
 Alternately, would people find something like the FSF's GPLv3 comment
 system, the Django Book's comment system, or the Real World Haskell
 Book's comment system handy for preparing this sort of planning
 document? If so, can anyone volunteer to put up an instance?
 Alternately, does TOPP supply anything that addresses the communication
 problems posed by documents like this one?)

I'd like to suggest the AGPL-licensed, GPLv3-comment-system-like  I nominate the system, but I require a second before doing 
it; since I'll be asleep, if that second emerges, I suggest acting by just 
doing it. (-:

-- Asheesh.

P.S. I thought it was a proprietary hosted web service, like Flickr, but 
then Michael pointed out to me it's AGPLware!

I guess you guys got BIG MUSCLES from doing too much STUDYING!
Devel mailing list

Re: Need Help

2008-03-04 Thread Asheesh Laroia
On Tue, 4 Mar 2008, Michael Stone wrote:

 As Tomeu said, Rainbow has detected that your activity's directory, 
 /home/olpc/activities/Qirat.activity, is writable by the activity. 
 Activities are not permitted to modify their own bundles. Consequently, 
 Rainbow scuttled the launch.

That's good of it.

 Tomeu: what do you suggest Rainbow should do in response to this kind of 
 assertion failure? Should we really try to print a more readable 
 explanation of what failed, given the degree to which such explanations 
 would bloat the code-base? Also, if so, does this message need to be 

I would suggest printing a URL to a page on that has more 
information and/or an error code with a link to look up the error code. 
(I prefer the former, but the latter could save a few bytes (that I think 
are probably not worth saving) by storing only one URL for looking up the 
problems, plus the error code strings/numbers, combining them at error 
print time.)

-- Asheesh.

If you do something right once, someone will ask you to do it again.
Devel mailing list

Creative Commons branch of Sugar + Journal

2008-02-26 Thread Asheesh Laroia
I've been working behind the scenes on some changes to Sugar and the 
Journal that allow storing and modifying Creative Commons license 
metadata.  It's pretty rudimentary, and it's more of a demo than code that 
should be merged the way it is, but I'd love to have some feedback on it. is some info. 
To summarize here:

* is a ticket with the history of this

is the gitweb of my Journal branch

*;a=summary is the 
gitweb of my Sugar branch

To make this go:

1. Install the liblicense RPM at 
(forcing the dependencies, for now; I'll build an updated RPM soon).

2. In your jhbuild (or what have you), pull my changes from my git 

Sugar first:

git remote add asheesh git://
git fetch asheesh
git merge asheesh/master

Then the Journal:

git remote add asheesh 
git fetch asheesh
git merge asheesh/master

3. Then build, and run!

I'd like feedback (mostly from'ers, but anyone else is fine 
too!) about the UI, the implementation, the bugs, the data store 
interactions, and so forth.

You'll find that my additions are technically fairly simple.  The major 
difficulties, I think, will be working out the UI for this, which is 
something that I am not comfortable with, and maybe thinking through the 
right way to make this accessible to other activities (data store usage).

Please, please reply with either I need more instructions getting it 
going or I got it going and have this to say.  I want feedback!


-- Asheesh.

I do not know myself and God forbid that I should.
-- Johann Wolfgang von Goethe
Devel mailing list

Re: The XO and email

2008-02-21 Thread Asheesh Laroia
On Thu, 21 Feb 2008, Shikhar wrote:


 I would like to get the general feeling about the XO and email. There is
 a Gmail activity but no possibility of composing and viewing emails
 offline, which I think is important.

I think that might be nice also!

 - With Python, an email activity can be accomplished with the
 RFC-compliant email modules (for POP, SMTP, IMAP, MIME) and using sqlite
 for storage. So while building upon Tinymail
 ( is an idea, it makes sense to just
 go with Python email modules and sqlite if the next point is to be
 implemented :-)

You suggest using sqlite for storage, and further, as I understand it, 
writing your own mail storage layer.  But on the other hand, you could use 
an existing top-notch Free Software mail store, like Dovecot.  Dovecot 
comes with full-text indexing for search of email, for example, and header 
caching to optimize common queries (Tell me all the From, Subject, To, 
and Date headers).

That's my main contribution to this thread - I fear you won't re-use some 
already great software.  The rest of your suggestions could perhaps be 
implemented as Dovecot plugins to minimize wasted work; for the most part, 
I agree with them. (-:

Once you start thinking of this in terms of interoperability with existing 
mail systems, I think you'll find you have way less work to do.  For 

 - Email threading: there is some Python code at, which could be adapted

Built-into IMAP, which Dovecot implements.

 - Search using sql queries

 I have a good mental picture of what I want to do - maybe I am not
 communicating it too well, but I am willing to elaborate. I would really
 like your feedback especially on the fundamental idea of using Python
 email modules and sqlite in case I am thinking in the wrong direction,
 although this appears to me to be the best approach

IMAP provides SEARCH TEXT, which Dovecot can now (as of 1.1.rc1) store an 
index for, and therefore return answers in split-second times in many 

-- Asheesh.

You're already carrying the sphere!
Devel mailing list

Re: [OLPC library] Overweight Wiki Page

2008-02-20 Thread Asheesh Laroia
On Wed, 20 Feb 2008, drew einhorn wrote:

I have nothing to add to the meat of this topic, but I can at least answer 

 mediawiki bot?  Could you point me to the skeleton? has the skinny on it.

-- Asheesh.

Two is not equal to three, even for large values of two.
Devel mailing list

Shell account

2008-02-15 Thread Asheesh Laroia
I would like to have a shell account (with the same SSH key as controls my 
git repository) so I can put the Licensing activity into a public_rpms 
directory.  I don't know if blasting this to the whole devel list is the 
way to go, but doesn't suggest a 
separate contact for this. (-:


-- Asheesh.

problem drinker, n.:
A man who never buys.
Devel mailing list

Re: Licensing for One Laptop Per Child

2008-02-05 Thread Asheesh Laroia
On Tue, 5 Feb 2008, ffm wrote:

 On Feb 5, 2008 6:37 PM, Samuel Klein [EMAIL PROTECTED] wrote:

 I can try to have Ubisoft donate versions of
 Chessmaster so the children can play chess as well.


 Unless there's a Linux port I don't know about, this might be hard to
 work out...

 We can always use Wine, no?

As if Chessmaster is the only chess program in the world

Don't get me wrong - it's a nice gesture.  I just imagine that activity 
developers would choose to wrap an existing Free Software, GNU/Linux chess 
program before they get around to packaging up Chessmaster.

-- Asheesh.

Like this rose, our love will wilt and die.
Devel mailing list

Re: Licensing for One Laptop Per Child

2008-02-05 Thread Asheesh Laroia
On Tue, 5 Feb 2008, ffm wrote:

 On Feb 5, 2008 7:10 PM, Asheesh Laroia [EMAIL PROTECTED] wrote:

 On Tue, 5 Feb 2008, ffm wrote:

 On Feb 5, 2008 6:37 PM, Samuel Klein [EMAIL PROTECTED] wrote:

 I can try to have Ubisoft donate versions of
 Chessmaster so the children can play chess as well.


 Unless there's a Linux port I don't know about, this might be hard to
 work out...

 We can always use Wine, no?

 As if Chessmaster is the only chess program in the world

 You're right, it isnt. However, it is a *Good Thing* (TM) when closed source
 apps from closed source corpos are released as OSS, both for the corpo, us,
 and OSS in general, it attracts more attention and sends out a Hey, maybe
 this OS stuff isn't that bad to other corpos.


 Don't get me wrong - it's a nice gesture.  I just imagine that activity 
 developers would choose to wrap an existing Free Software, GNU/Linux 
 chess program before they get around to packaging up Chessmaster.

 Yet _more_ GPL'd software is better.

Absolutely.  And maybe they have some neat tricks in their computer 

I do seriously mean it's a nice gesture. (-:

-- Asheesh.

The nice thing about standards is that there are so many of them to choose from.
-- Andrew S. Tanenbaum
Devel mailing list

[ANNOUNCE] Beta release of Creative Commons licensing activity

2008-01-14 Thread Asheesh Laroia
I'm happy to announce a beta release of the Creative Commons licensing 
activity for the XO.

This activity is a comic reader that includes simple English text to 
explain the images.  This is based on a comic we published a few weeks 
back that was written with the XO audience in mind:

It also includes a license chooser; right now, the results of that license 
choice aren't used by anything, but we hope to work with XO developers who 
want to integrate CC license choosing into their activities - they can 
perhaps use the license chooser we bundle, and they can perhaps use as a 
default the license chosen by the child at the end of the CC Licensing 

You can download the .xo at .  It even 
has a proper NEWS file.

I encourage you all to grab the .xo and give it a whirl!

-- Asheesh.

P.S. If you want to know how this compares to the release a few weeks ago, 
here's the NEWS file:


* Fix .xo packaging and MANIFEST to include everything necessary and not 
more. (paulproteus)
* First beta release. (paulproteus)
* Hand-clean text for comic. (paulproteus)

Where do I find the time for not reading so many books?
-- Karl Kraus
Devel mailing list

Re: [ANNOUNCE] Beta release of Creative Commons licensing activity

2008-01-14 Thread Asheesh Laroia
On Mon, 14 Jan 2008, Edward Cherlin wrote:

 On Jan 14, 2008 4:10 PM, Asheesh Laroia [EMAIL PROTECTED] 

 I'm happy to announce a beta release of the Creative Commons licensing 
 activity for the XO.

 This activity is a comic reader that includes simple English text to 
 explain the images.  This is based on a comic we published a few weeks 
 back that was written with the XO audience in mind:

 A good idea, though rather pedestrian in execution.

[further comic comments]

I've bounced your comments on the comic to Alex Roberts and Rebecca Rojer 
who did most of the graphic and storyboard work.  Just a reminder - the 
comic contents are dedicated to the public domain, so re-use and 
re-envisioning is encouraged.

 I am disappointed that there is no mention of CC-Developing Nations 

In June 2007, we retired that license for reasons Larry laid out at .

-- Asheesh.

Malek's Law:
Any simple idea will be worded in the most complicated way.
Devel mailing list

Re: Free OLPC for someone who needs it

2008-01-07 Thread Asheesh Laroia
On Mon, 7 Jan 2008, Jesse Molina wrote:

 I'm going through the replies that I received and I'm going to figure
 out who's getting the laptop here in a few minutes, or at least the
 final candidates.

 Wow, I feel like a big jerk now.  I've got replies from all these great
 people, doing great stuff, and I've only got one laptop to give.

So you deserve some words of encouragment:

You're doing a good thing for the community, and it's very nice of you to 
make a laptop available to a developer who otherwise wouldn't have one. 
By doing it, you're boosting the chances that another good activity will 
be created to improve kids' learning.

 After I'm done, I'm going to go over to the OLPC Wiki and see about 
 writing a page for others like myself who bought an XO via the B1G1 
 program and would like to donate theirs to a worthy cause.

I think that's a great idea.

 I bought mine, showed it around my office, convinced one or two others
 to buy or donate one, and now I've got nothing to do with it.  I don't
 have much time to contribute to the project.  I already work in
 non-profit cancer research, so there is only so much I can do with my time.


-- Asheesh.

P.S. This fortune was randomly selected, but it's quite fitting.

Angels we have heard on High
Tell us to go out and Buy.
-- Tom Lehrer
Devel mailing list

Re: root password

2008-01-02 Thread Asheesh Laroia
On Wed, 2 Jan 2008, Bernardo Innocenti wrote:

 I think we should re-enable the empty root password for

 The reason why is that we have plenty of documentation in
 the wiki and elsewhere suggesting people to login as root or
 to su as root.  There should be at least a transition period
 so the support people don't get flooded with questions on how
 to login as root.

Can 'su' be replaced with a wrapper that runs 'sudo -s'?  That way, only 
the olpc user can run sudo su, but activities can't get root.

We could also have a race through the wiki to replace mentions of 'su' 
with the appropriate sudo call.

 We could also use pam_wheel to let olpc become root with
 no password using the friendlier su in addition to sudo.

 Even better, we could put

  /sbin/mingetty --noclear --autologin root tty1

 in inittab to circumvent the issue altogether.

If the OLPC security team says that's fine, then it does help avoid 
updating the documentation. (-:

-- Asheesh.

Politics is not the art of the possible.  It consists in choosing
between the disastrous and the unpalatable.
-- John Kenneth Galbraith
Devel mailing list

Re: Circumventing kernel signing

2008-01-02 Thread Asheesh Laroia
On Thu, 3 Jan 2008, John Richard Moser wrote:

 I did not address the mass of other crap you could do to the system with
 root.  I was only addressing evading the OFW security implementation for
 only booting signed OSes.

Here's another vector:

1. On a laptop that comes from the factory with the above security holes 
fixed, install a current (as of Jan 2 2008) signed release (which is 
signed with the same key, and therefore okay according to the XO)

2. Notice that it has (at least) the security holes described in this 

3. kexec or modprobe your way to a different OS!

(4. Profit!)

-- Asheesh.

Mix a little foolishness with your serious plans; it's lovely to be silly
at the right moment.
-- Horace
Devel mailing list

Re: Tricks to getting Java Frames working on the OLPC

2007-12-31 Thread Asheesh Laroia
On Mon, 31 Dec 2007, Steve Lewis wrote:

 The following code allows Java JFrames to work properly on the OLPC -
 it assumes - only one active frame and that the frame is full screen.
 You can add it to common applications = the active sections work only on
 the OLPC
 The trick is to use showFrame and hideFrame instead of setVisible -
 these cause the frame to become the graphic environments full screen
 window -

Sweet (*) - one JVM per child!

If you're looking for where to post this, a good start would be a page on 
the OLPC wiki at

-- Asheesh.

*. That is, if Java gets you excited in a positive way.

This wasn't just plain terrible, this was fancy terrible.  This was terrible
with raisins in it.
-- Dorothy Parker
Devel mailing list

Re: licensing: GPLv2, v3, and Apache

2007-12-28 Thread Asheesh Laroia
On Fri, 28 Dec 2007, ffm wrote:

 Apache or GPLv2 is fine. Anything that is GPL-compatable will be acceptable.

Just to be clear, the Apache License v2 is only compatible with GPLv3:

  Apache License, Version 2.0

 This is a free software license, compatible with version 3 of the GPL.

 Please note that this license is not compatible with GPL version 2,
 because it has some requirements that are not in the older version.
 These include certain patent termination and indemnification

This is a trivial and largely unimportant nitpick.

-- Asheesh.

If God had intended Man to Smoke, He would have set him on Fire.
Devel mailing list

Re: Toolbar in OLPCGames

2007-12-27 Thread Asheesh Laroia
On Thu, 27 Dec 2007, Ross Andrews wrote:

 I have been banging my head against this for a while, and I am lost.

 I've got a program made using OLPCGames. I am trying to add a toolbar
 to it with some custom buttons, and I can't find any example code on
 the wiki that works. I've looked at Implode, an activity kinda like
 mine, but it isn't using Pygame, and I can't follow the part of the
 code that (I think) does the toolbar (it also looks totally unlike the
 example code).

Try looking at the web browser activity.  I found its webtoolbar module 
very self-explanatory.

-- Asheesh.

The older a man gets, the farther he had to walk to school as a boy.
Devel mailing list

Re: Mounting a USB drive (windows format)

2007-12-21 Thread Asheesh Laroia
On Fri, 21 Dec 2007, Jeffrey Kesselman wrote:


 It is a FAT file system.

 But it isn't automounting :( And I can't figure out what it name would 
 be to manually mount it...

 Maybe its the weird U3 Cruiser software.  I'll get a second drive, 
 they're cheap now, and reformat it and see if that helps.

The weird U3 Cruiser software can be disabled from a Windows machine, by 
the way - I just did that and used an ex-Cruiser stick to upgrade my XO.

-- Asheesh.

List at least two alternate dates.
Devel mailing list

Re: New joyride build 1452

2007-12-19 Thread Asheesh Laroia
On Wed, 19 Dec 2007, Build Announcer Script wrote:

 +libpcap.i386 14:0.9.7-1.fc7
 -olpc-utils.i386 0:0.53-1.olpc2
 +olpc-utils.i386 0:0.59-1.olpc2
 +sudo.i386 0:1.6.8p12-14.fc7
 +tcpdump.i386 14:3.9.7-1.fc7

I can just picture the eight year old dissassembling on-wire network 
protocols by watching the streams in tcpdump.

By the time they're twelve, they'll See the Matrix.

-- Asheesh.

Only those who leisurely approach that which the masses are busy about
can be busy about that which the masses take leisurely.
-- Lao Tsu
Devel mailing list

My git repository is stuck with a lock problem

2007-12-14 Thread Asheesh Laroia
My git repository hosted on seems to be stuck for the past 
three or four hours.  Here are the messages I when I try to git push:

[EMAIL PROTECTED] License.activity]$ git push
updating 'refs/heads/master'
   from bb231162b87e27a389754b67bfafd8cdeafe03d0
   to   c3e252284fb8df59dc959ff64de7d0838b162d37
  Also local refs/remotes/origin/master
Generating pack...
Done counting 3 objects.
Deltifying 3 objects...
  100% (3/3) done
Writing 3 objects...
  100% (3/3) done
Total 3 (delta 0), reused 0 (delta 0)
fatal: unable to create 'refs/heads/master.lock': File exists
fatal: The remote end hung up unexpectedly
error: failed to push to 
[EMAIL PROTECTED] License.activity]$

(I'm doing this push from a Fedora vserver on my desktop.)

The network my XO was on had major problems, so I had to disconnect it 
after it hang after a 'git push' started.  I guess the is 
still waiting for it to finish; but it will never finish.  (I'm honestly 
rather supprised git can even get into a situation like this.)

Who could fix this, and/or is there a way for fix it myself?  (And is this 
the right place to ask?)


-- Asheesh.

Admiration, n.:
Our polite recognition of another's resemblance to ourselves.
-- Ambrose Bierce, The Devil's Dictionary
Devel mailing list

Re: My git repository is stuck with a lock problem

2007-12-14 Thread Asheesh Laroia

On Fri, 14 Dec 2007, Ivan Krstić wrote:

On Dec 14, 2007, at 4:57 PM, Asheesh Laroia wrote:

Who could fix this, and/or is there a way for fix it myself?  (And is this
the right place to ask?)

Please try now. Cheers,

Sweet, thanks!  All's well now.

-- Asheesh.

Hackers of the world, unite!___
Devel mailing list

Restarting a half-started activity

2007-12-10 Thread Asheesh Laroia
As I debug how to start my activity with an LD_LIBRARY_PATH (or for other 
reasons), sometimes it fails to start correctly at all.  In those cases, 
my activity's icon just sits in the ring that shows running activities. 
When I move the mouse over it, Sugar tells me it is Starting..., but 
when I look for its process in the 'ps aux' output, the process has 
already terminated.

How can I remove the activity from the Sugar thinks it's starting state 
so I can reattempt to start the activity without rebooting the laptop?

(Thanks all; you've been super helpful so far.  If my questions start 
running into FAQ territory I'm perfectly okay with being told to read some 

-- Asheesh.

Live from New York ... It's Saturday Night!
Devel mailing list

Activity depends on Fedora-packaged binary code

2007-12-10 Thread Asheesh Laroia
My activity reads RDF files and uses to do that. Fedora 
does package this in the raptor.i386 RPM.  This package is not installed 
on the Build 650 I'm using.  I also see no way to specify RPM dependencies 
in a .xo nor a way that deployed XOs could be guaranteed to be able to get 
dependencies from the RPM side of the world upon receiving a new .xo.

I suppose I'll have to include a in my own .xo's lib/ 
directory.  Is the normal(ish) way to do this by just unpacking the RPM 
and yoinking the Fedora-compiled .so and jamming that file into my .xo?

(I could just statically compile the libraptor dependencies into my 
shipped binary code also, I suppose, but I'd rather not consider that 

I'm open to other ways of thinking about this if they would prove more 
productive. (-:

-- Asheesh.

Blessed are the young, for they shall inherit the national debt.
-- Herbert Hoover
Devel mailing list

Re: Activity depends on Fedora-packaged binary code

2007-12-10 Thread Asheesh Laroia
On Mon, 10 Dec 2007, Bernardo Innocenti wrote:

 Asheesh Laroia wrote:

 I suppose I'll have to include a in my own .xo's lib/ 
 directory.  Is the normal(ish) way to do this by just unpacking the RPM 
 and yoinking the Fedora-compiled .so and jamming that file into my .xo?

 This is my understanding.  As long as it's just one library, it isn't a 
 big problem.  I have a friend who is packaging 5MB of Mono libraries for 
 an activity written in C#.

That person is still your friend? (-;

 This thing obviously doesn't scale and in the long term we may end up 
 reinventing a full blown package manager with dependency tracking, plus 
 tools like apt for downloading and installing them.

Right.  Let me note here that apt is flexible on packaging formats in the 
backend, as apt4rpm has shown.  There's no need to reinvent it, and I 
think there are some stealth Debian fans sometimes hiding in 1CC

 Static linking is being quickly phased out from all Linux
 distros.  In OS X, static linking against system libraries
 is no longer allowed.

Well, libraptor is clearly not a system library since it's not 
installed! (-:  But I agree, static linking sucks, and I'm happy to avoid 
that route entirely.

-- Asheesh.

Omnic another .sig addition
Devel mailing list

First pre-release sample thing of Creative Commons' Licensing activity

2007-12-10 Thread Asheesh Laroia
I'm deeply fearful^W^Wproud to announce the first version of the CC 
licensing activity.  Let me give you all some background, and then scar 
you all with a link.

One of the core activities of the Creative Commons organization is getting 
software (apps and platforms) to support metadata showing and searching 
when viewing files that contain Creative Commons licenses as well as 
letting users CC-license their files.  We have been chatting with OLPC 
about some sort of integration for some time; indeed, one of our summer 
interns was tasked with working on it. has the old brainstorming. 
What we've converged on is an activity with a comic, to be translated 
widely, that an XO activity will show, as well as letting the kids play 
with a license chooser.  That license chooser UI will probably show up 
again in the control panel; probably the license chosen there will be the 
default if they choose to CC license other work they create.

That summer intern wrote a patch some time ago to let CC licenses be 
chosen in the journal, which is in the old ticket .



* A first-run disclaimer, to be considered by our legal staff who have 
conerns like the possibility of under-18 people doing licensing,

* A simple back-forward viewer of a comic, with text at the bottom, and

* A license chooser widget available in the Navigation menu.

* available at

* appallingly large, which I work on soon

* trackable in gitweb:;a=summary


Of course.  The license chooser's first time loading is very slow, and it 
writes to ~/.license/ , which is bad news for the impending security 
review of activities (I'll fix both soonish).


Two questions:

1. As you click back and forward, the screen is sort of jerky, and 
the text widget seems to appear on the screen twice for a moment.  Is 
there a way to make this smoother?

2. How do I make the Navigation menu selected by default on application 
startup?  It seems the Web activity does this, but I can't quite figure 
out how (indeed, I used it as a reference for making this activity).


Please take a look at this thing and let me know what you all think. 
Within the week, we're going to be putting the comics+text up on the web 
in a convenient format for reading and commenting; consider this a preview 
of that.

-- Asheesh.

P.S. Thanks Alex, Jon, and Rebecca for making the comic!

P.P.S. The all-caps are section titles, not me shouting!

P.P.P.S. Thanks all on this list for being so pleasant and responsive to 
my questions over the past few weeks!

Kindness is a language which the deaf can hear and the blind can read.
-- Mark Twain
Devel mailing list

Re: GCompris activities for joyride

2007-12-07 Thread Asheesh Laroia
On Sat, 8 Dec 2007, Bruno Coudoin wrote:

 - New sugar compliant icon (but not very cute)

Where in the docs does it say how to make a sugar compliant icon?  I 
noticed that my icons don't do the cool color-changing thing that other 
Sugar apps' do.

Searching the wiki for icon doesn't seem to be much help:

-- Asheesh.

Reserve your abuse for your true friends.
-- Larry Wall in [EMAIL PROTECTED]
Devel mailing list

Bundling Python extensions that depend on C libraries

2007-12-07 Thread Asheesh Laroia
I'd like to bundle a Python C extension and use it from my activity.  This 
requires Python to dlopen() a shared library whose path can change 
depending on where the activity is installed, but also whose path is 
different than on my desktop where I built the .xo.

Initially I tried to set os['LD_LIBRARY_PATH'] from within Python, but I 
learned this would not affect the running application

In the Log Viewer, I read:

type 'exceptions.ImportError': cannot open shared 
object file: No such file or directory

I tried changing my to read, in part (all on one line):

exec = LD_LIBRARY_PATH=/home/olpc/Activities/License.activity/built/lib 
sugar-activity ccactivity.LicensingActivity -s

but the error persisted.

I know this is a sort of strange thing to do, but what's a reasonable way 
to do it?  Thanks, as always!

-- Ashees

P.S. I used the copy-nand and flash OpenFirmware commands to get around my 
upgrade troubles from before.

One Bell System - it sometimes works.

Devel mailing list

Re: joyride, ship.1 etc.

2007-12-06 Thread Asheesh Laroia
On Thu, 6 Dec 2007, Rafael Enrique Ortiz Guerrero wrote:

 Hi all

 i've put some notes in here..

Thanks for writing it up!

I just tried it with a USB memory key (an SD card in a multi-card 
reader), and my XO said this:

Trying disk:\
Trying sd:\
Trying fastnand:\
Trying nand:\

[Screen clears]

Trying nand:\security\develop.sig
Trying nand:\boot-alt\
  FW found - current FW is up-to-date
Trying nand:\security\lease.sig
Trying nand:\boot-alt\
  OS found - No signature for our key
Boot failed

I see these fairly-large icons at the bottom of the screen:

USB key
SD card
XO with four tiny icons: a circle, a plus sign, a circle, and a lock
Frowny face

Then after a few seconds (five maybe?) the XO powers down.  I can boot 
normally back into the old system I had installed just fine.  I'm running 
firmware Q2D02 on it.

I'm also quite confused about why it refers to my USB key as nand in the 
above printouts.

But the important question for me is how to upgrade to a current stable 
release.  Does this relate to me not having a Developer key, perhaps? 
What's the way forward?

As always, thanks all!

-- Asheesh.

Beeping is cute, if you are in the office ;)
-- Alan Cox
Devel mailing list

Displaying formatted text (HTML)

2007-12-05 Thread Asheesh Laroia
Part of the Creative Commons licensing activity I'm working on is a 
cartoon that explains CC licensing.  The display of it has two parts: a 
picture, and some formatted text.

Right now, we have the formatted text in HTML format.  I don't really want 
to embed Mozilla, but is there a lightweight GTK HTML widget that I can 
access from Python that is standard on the XO?  If not, is there something 
reasonable someone can suggest?

Thanks for all y'all's help!

-- Asheesh.

I'm not stupid, I'm not expendable, and I'M NOT GOING!
Devel mailing list

Re: clocks, watches, stopwatches, chronometers

2007-11-14 Thread Asheesh Laroia
On Wed, 14 Nov 2007, Ed Montgomery wrote:

 (Or is it possible to get started on that using the liveCD?)  Since I'm 
 in Japan at the moment, my XO is being shipped to my home address in 
 Canada, so it may be some time before I can tackle this.

FWIW I'm on vacation in Tokyo until Monday evening, and I have an XO you 
could borrow while I'm here!

Also you can totally get started on this using sugar-jhbuild; I think it's 
the best way to do development even after you get your real XO.

-- Asheesh.

It's my cookie file and if I come up with something that's lame and I like it,
it goes in.
-- karl (Karl Lehenbauer)
Devel mailing list

Hosting application for Creative Commons licensing information activity

2007-11-02 Thread Asheesh Laroia
1. Project name : cclicensing
2. Existing website, if any : [None]
3. One-line description : Activity to explain CC licensing

4. Longer description   : A simple activity to show a cartoon
 : CC is developing to explain Creative
 : Commons licensing to XO users and their
 : parents.

5. URLs of similar projects :

6. Committer list

Please list the maintainer (lead developer) as the first entry. Only
list developers who need to be given accounts so that they can commit to
your project's code repository, or push their own. There is no need to
list non-committer developers.

UsernameFull name SSH2 key URL   E-mail
-    --
#1 paulproteus Asheesh Laroia  [*][EMAIL PROTECTED]


If any developers don't have their SSH2 keys on the web, please attach
them to the application e-mail.

7. Preferred development model

[X] Central tree. Every developer can push his changes directly to the
project's git tree. This is the standard model that will be familiar to
CVS and Subversion users, and that tends to work well for most projects.

[ ] Maintainer-owned tree. Every developer creates his own git tree, or
multiple git trees. He periodically asks the maintainer to look at one
or more of these trees, and merge changes into the maintainer-owned,
main tree. This is the model used by the Linux kernel, and is
well-suited to projects wishing to maintain a tighter control on code
entering the main tree.

If you choose the maintainer-owned tree model, but wish to set up some
shared trees where all of your project's committers can commit directly,
as might be the case with a discussion tree, or a tree for an individual
feature, you may send us such a request by e-mail, and we will set up the
tree for you.

8. Set up a project mailing list:

[ ] Yes, named after our project name
[ ] Yes, named __
[X] No

When your project is just getting off the ground, we suggest you eschew
a separate mailing list and instead keep discussion about your project
on the main OLPC development list. This will give you more input and
potentially attract more developers to your project; when the volume of
messages related to your project reaches some critical mass, we can
trivially create a separate mailing list for you.

If you need multiple lists, let us know. We discourage having many
mailing lists for smaller projects, as this tends to
stunt the growth of your project community. You can always add more lists

9. Commit notifications

[ ] Notification of commits to the main tree should be e-mailed to the list
we chose to create above
[ ] A separate mailing list, projectname-git, should be created for commit
[X] No commit notifications, please

10. Shell accounts

As a general rule, we don't provide shell accounts to developers unless
there's a demonstrated need. If you have one, please explain here, and
list the usernames of the committers above needing shell access.

11. Notes/comments:


-- Asheesh.

Nirvana?  That's the place where the powers that be and their friends hang out.
-- Zonker Harris
Devel mailing list