Re: gitweb-cgit

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

 Hi,

 http://dev.laptop.org/git/ 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:

   http://www.gentoo.org/security/en/glsa/glsa-200903-15.xml

   http://hjemli.net/git/cgit/about/

 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.


...wow, 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 activity.info file! ;-)


*blushes*


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 http://wiki.laptop.org/go/License#What_could_use_help 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 http://wiki.laptop.org/go/License 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
  [ 2 ]  RICHARD STALLMAN
  [ 3 ]  BUFFY SUMMERS
  [ 1 ]  MANOJ SRIVASTAVA
  [ 4 ]  NONE of the above

-- Debian Project Leader 1999 ballot
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
 wants.

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.

Welcome!

 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
http://wiki.laptop.org/go/Sugar.mime#How_do_I_register_my_activity_as_supporting_different_mime_types.3F
 
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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
 etc.

 Where is Python.h supposed to come from?

Automatic help mode:

http://www.google.com/search?q=site%3Apackages.ubuntu.com+python.h 
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 
http://www.debuntu.org/how-to-find-missing-packages-with-apt-file.

 [EMAIL PROTECTED]:~/Desktop/ibus-chewing-0.1.1.20080823$ ibus
 Starting ibus-daemon OK
 Traceback (most recent call last):
  File /usr/local/share/ibus/daemon/ibusdaemon.py, 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
development.

-- Asheesh.

-- 
Math is like love -- a simple idea but it can get complicated.
-- R. Drabek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
 to
 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 
http://lists.laptop.org/pipermail/sugar/2008-May/005752.html ) 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 http://lists.laptop.org/listinfo/community-support 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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].

  [1]: http://teach.laptop.org/~mstone/planning/r1

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 
co-ment.net.  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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
 localized?

I would suggest printing a URL to a page on wiki.laptop.org 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.

http://wiki.laptop.org/go/Creative_Commons#How_to_try_it is some info. 
To summarize here:

* http://dev.laptop.org/ticket/3529 is a ticket with the history of this

* http://dev.laptop.org/git?p=users/paulproteus/journal-activity.git;a=summary 
is the gitweb of my Journal branch

* http://dev.laptop.org/git?p=users/paulproteus/sugar.git;a=summary is the 
gitweb of my Sugar branch

To make this go:

1. Install the liblicense RPM at 
http://downloads.sourceforge.net/cctools/liblicense-0.4-1.i386.rpm 
(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 
repository.

Sugar first:

git remote add asheesh git://dev.laptop.org/users/paulproteus/sugar.git
git fetch asheesh
git merge asheesh/master

Then the Journal:

git remote add asheesh 
git://dev.laptop.org/users/paulproteus/journal-activity.git
git fetch asheesh
git merge asheesh/master

3. Then build, and run!

I'd like feedback (mostly from laptop.org'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!

Cheers!

-- Asheesh.

-- 
I do not know myself and God forbid that I should.
-- Johann Wolfgang von Goethe
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: The XO and email

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

 Hi,

 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
 (http://wiki.laptop.org/go/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 
example:

 - Email threading: there is some Python code at
 http://www.amk.ca/python/code/jwz, 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 
cases.

-- Asheesh.

--
You're already carrying the sphere!
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
this:

 mediawiki bot?  Could you point me to the skeleton?

http://meta.wikimedia.org/wiki/Pywikipediabot has the skinny on it.

-- Asheesh.

-- 
Two is not equal to three, even for large values of two.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 http://wiki.laptop.org/go/Project_hosting doesn't suggest a 
separate contact for this. (-:

Thanks!

-- Asheesh.

-- 
problem drinker, n.:
A man who never buys.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.

 Outstanding.

 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.

-- 
QOTD:
Like this rose, our love will wilt and die.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.

 Outstanding.

 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.

Yup!

 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 
players!

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


[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: 
http://wiki.creativecommons.org/Sharing_Creative_Works

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 
activity.

You can download the .xo at 
http://labs.creativecommons.org/~paulproteus/olpc/License-3.xo .  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:

3

* 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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] 
 wrote:

 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: 
 http://wiki.creativecommons.org/Sharing_Creative_Works

 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 
 licenses.

In June 2007, we retired that license for reasons Larry laid out at 
http://creativecommons.org/weblog/entry/7520 .

-- Asheesh.

-- 
Malek's Law:
Any simple idea will be worded in the most complicated way.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
 Update.1.

 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
thread.

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 http://wiki.laptop.org/

-- 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
 provisions.

http://www.fsf.org/licensing/licenses/#SoftwareLicenses

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Mounting a USB drive (windows format)

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

 Hmm.

 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New joyride build 1452

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

 http://xs-dev.laptop.org/~cscott/olpc/streams/joyride/build1452/

 -Chat-31.xo
 +Chat-32.xo
 +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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


My git repository is stuck with a lock problem

2007-12-14 Thread Asheesh Laroia
My git repository hosted on laptop.org 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 
'git+ssh://dev.laptop.org/git/projects/cclicensing'
[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 dev.laptop.org 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?)

Thanks!

-- Asheesh.

--
Admiration, n.:
Our polite recognition of another's resemblance to ourselves.
-- Ambrose Bierce, The Devil's Dictionary
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
document.)

-- Asheesh.

--
Live from New York ... It's Saturday Night!
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Activity depends on Fedora-packaged binary code

2007-12-10 Thread Asheesh Laroia
My activity reads RDF files and uses libraptor.so.1 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 libraptor.so.1 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 
option.)

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 libraptor.so.1 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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.

http://wiki.laptop.org/go/Creative_Commons 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 
https://dev.laptop.org/ticket/3529 .

ENOUGH ALREADY!  WHAT IS THIS ACTIVITY?
---

It's:

* 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 
http://labs.creativecommons.org/~paulproteus/olpc/License_1.xo

* appallingly large, which I work on soon

* trackable in gitweb: 
http://dev.laptop.org/git?p=projects/cclicensing;a=summary

KNOWN BUGS?
---

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).

YOUR HELP?
--

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).

YOUR TAKE?
--

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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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: 
http://gcompris.net/wiki/index.php/Special:Search?search=iconfulltext=Search

-- Asheesh.

--
Reserve your abuse for your true friends.
-- Larry Wall in [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 
http://hathawaymix.org/Weblog/2004-12-30.

In the Log Viewer, I read:

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

I tried changing my activity.info 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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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..

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

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:\fs.zip
Trying sd:\fs.zip
Trying fastnand:\fs.zip
Trying nand:\fs.zip

[Screen clears]

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

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

USB key
SD card
XO
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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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]

*. https://launchpad.net/%7Eubuntu-asheesh/+sshkeys

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
later.

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
notifications
[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:

Thanks!

-- Asheesh.

--
Nirvana?  That's the place where the powers that be and their friends hang out.
-- Zonker Harris
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel