Stefan Reitz | 1 Apr 2008 02:40
Picon
Favicon

Re: Update.1 RC3: candidate-703 Published!

Well, allmost ;-) ...

> From: bert <at> freudenbergs.de
> To: devel <at> lists.laptop.org
> Date: Mon, 31 Mar 2008 09:58:14 +0200
> CC: sugar <at> lists.laptop.org
> Subject: Re: [sugar] Update.1 RC3: candidate-703 Published!
>
>
> On 31.03.2008, at 05:06, Joshua Minor wrote:
> > On Mar 30, 2008, at 7:35 PM, Stefan Reitz wrote:
> >
> >> > .. or you can use Bert's script:
> >> >
> >> > wget dev.laptop.org/~bert/update-activities.py
> >> no problem
> >>
> >> > python update-activities.py
> >> -bash-3.2# python update-activities.py (auto complete worked for
> >> the command)
> >> switching to user olpc ...
> >> bash: update-activities.py: command not found
> >>
> >> what am I missing?
> >
> > Run it as user olpc instead of root.
>
> That, or
>
> chmod +x update-activities.py
> ./update-activities.py
>
> Looks like my user-switching hack does not work when run as "python
> update-activities.py".
>
> - Bert -
>
>

Since my system came back with no activities (and a new bios) the only way to do something was ctrl-alt-f2.
Enter got me logged in as root. As such
wget dev.laptop.org/~bert/update-activities.py    worked, then did
chmod +x update-activities.py        and
./update-activities.py       same result as before (--> switching to user olpc ...
> >> bash: update-activities.py: command not found)
switching to user olpc didn't help right away since now I couldn't see the file (belonging to root and being in root's ~) anymore... And I couldn't download it as olpc to its ~ because dev.laptop.org couldn't be resolved (as olpc)
So I turned root again and copied update-activities.py to /home/olpc, changed the owner
chown olpc:olpc update-activities.py         turned root again
su olpc          Then
./update-activities.py worked (If this doesn't work for someone else, remember I did the
chmod +x update-activities.py   early on...)
ctrl-alt-f3 got my back to the sugar interface

I encountered a bunch of "caution: excluded filename not matched: mimetype", but I don't know if this has any consequences.
The order of the activity Icons has greatly changed - is there a way for me to influence their order of appearance?
 
Thanks for the hints, I couldn't have done without.
Stefan

> _______________________________________________
> Sugar mailing list
> Sugar <at> lists.laptop.org
> http://lists.laptop.org/listinfo/sugar

Windows Live Messenger Automatisch über neue E-Mails informiert!
_______________________________________________
Sugar mailing list
Sugar <at> lists.laptop.org
http://lists.laptop.org/listinfo/sugar
Bert Freudenberg | 1 Apr 2008 12:19
Picon
Gravatar

Re: Update.1 RC3: candidate-703 Published!


On 01.04.2008, at 02:40, Stefan Reitz wrote:
> > >> > wget dev.laptop.org/~bert/update-activities.py
> > >> > python update-activities.py
> > >> -bash-3.2# python update-activities.py (auto complete worked for
> > >> the command)
> > >> switching to user olpc ...
> > >> bash: update-activities.py: command not found
> > >>
> > >> what am I missing?
> > >
> > > Run it as user olpc instead of root.
> >
> > That, or
> >
> > chmod +x update-activities.py
> > ./update-activities.py
> >
> > Looks like my user-switching hack does not work when run as "python
> > update-activities.py".
> >
> > - Bert -
>
> Since my system came back with no activities (and a new bios) the  
> only way to do something was ctrl-alt-f2.
> Enter got me logged in as root. As such
> wget dev.laptop.org/~bert/update-activities.py    worked, then did
> chmod +x update-activities.py        and
> ./update-activities.py       same result as before (--> switching to  
> user olpc ...
> > >> bash: update-activities.py: command not found)
> switching to user olpc didn't help right away since now I couldn't  
> see the file (belonging to root and being in root's ~) anymore...  
> And I couldn't download it as olpc to its ~ because dev.laptop.org  
> couldn't be resolved (as olpc)
> So I turned root again and copied update-activities.py to /home/ 
> olpc, changed the owner
> chown olpc:olpc update-activities.py         turned root again
> su olpc          Then
> ./update-activities.py worked (If this doesn't work for someone  
> else, remember I did the
> chmod +x update-activities.py   early on...)
> ctrl-alt-f3 got my back to the sugar interface
>
> I encountered a bunch of "caution: excluded filename not matched:  
> mimetype", but I don't know if this has any consequences.
> The order of the activity Icons has greatly changed - is there a way  
> for me to influence their order of appearance?
>
> Thanks for the hints, I couldn't have done without.

Ah. Thanks, I identified the problem: when you download the script to  
~root then the user olpc cannot read from that directory. It's better  
to download to ~olpc anyway so it survives the next system upgrade. I  
will remove the user-switching magic from the script, learned my  
lesson ;)

New instructions are:

su - olpc
wget dev.laptop.org/~bert/update-activities.py
python update-activities.py

- Bert -
Tomeu Vizoso | 1 Apr 2008 13:22

OLPC is hiring a Sugar developer

Hi all,

as you may have already noticed, some days ago (so not an April fools'
hoax) appeared a new job posting in the main laptop.org site:

http://www.laptop.org/en/jobs.shtml#User%20Interface%20Developer%20for%20Sugar

So, if you would like to become part of the core Sugar team and help
to deliver a  new platform for education, please apply!

Thanks,

Tomeu
Urko Fernandez | 1 Apr 2008 14:23
Picon

Efficiency of SQLite in the XO-1

I am using SQLite in the activity I am working on, but as I am using
sugar-jhbuild I don't know how SQLite performs in an actual XO. I've
started prefetching some values from the database and then reading and
writing in local variables, but I thought relying merely in the database
should make maintaining consistency with the data easier and I'm
changing the code to use more the database and less local variables.

The only activity I found using SQLite is the newsreader, is using a
database a big hit in performance?

Urko
http://wiki.laptop.org/go/Assimilate
Tomeu Vizoso | 1 Apr 2008 15:39

Re: Mini-conference on Apr 3/4!

On Mon, Mar 31, 2008 at 4:44 AM, Jon Phillips <jon <at> creativecommons.org> wrote:
>
>  On Sun, 2008-03-30 at 23:40 +0200, Tomeu Vizoso wrote:
>  > - just have the "talks" via mailing list and IRC?
>
>  I think that this will not work...if there is really a plan to have a
>  conf., need to give like 1-2 months minimum for travel, esp. because so
>  many are around the world. IMO, we should move the event to middle or
>  end of may and then there will be a proper timeline and possibility for
>  turnout.

If we do this, then perhaps we should set now the goals for update.2
and talk about the future in a May conference?

I don't think we have time to do much more for update.2, unless we
want to end shipping it after the summer...

Tomeu
Bert Freudenberg | 1 Apr 2008 15:50
Picon
Gravatar

Re: MANIFEST and .xo bundles

The Sugar developers will certainly respond (and btw., do you know  
there is a Sugar developers list?) but here's my take:

On 30.03.2008, at 18:48, Jameson Chema Quinn wrote:
> What is the MANIFEST supposed to accomplish in the first place?

MANIFEST is not required at all in the current bundle format. It's  
just a convention for invoking bundle-builder.

Generating it is simple enough, e.g. from the Etoys makefile:

Etoys-$(xo_version).xo: Etoys.activity
	find $< -type f -o -type l| sed 's|^[^/]*/||' > $</MANIFEST

- Bert -
Bert Freudenberg | 1 Apr 2008 15:55
Picon
Gravatar

Re: Connecting a non python activity to sugar

On 31.03.2008, at 14:52, Paul Fox wrote:
> bert wrote:
>> http://wiki.laptop.org/go/Low-level_Activity_API
>>
>> Also, try the sugarize script and library:
>>
>> http://lists.laptop.org/pipermail/devel/2008-January/009387.html
>>
>> (maybe that should be added to the Wiki)
>
> indeed -- that would be a nice addition.  i'm using that script,
> along with the little libsugarize shared lib hook, with good
> success.  i think many people have found versions of that script
> via the forums, but it would be good to have it in a
> quasi-official place.  (i didn't realize where it had originated.)

Well, just add it then. It's a Wiki :)

> on that subject, i've been wondering about a related issue.
>
> my activity (RoadMap, which is a GPS-enabled street-mapping
> program) runs in a single X-window (modulo the occasional
> dialog box).  it has the ability to spawn a second program (a GPS
> "console", which gives an "available satellite" display) which
> of course creates a second X-window.  this is fine, as long as you
> quit from the spawned program before doing something sugary to
> move away from its window (e.g., alt-tab).  but if you obscure its
> window, you can never get back to it, since sugar knows nothing
> about it.  this isn't really a program that should be a
> full-fledged activity -- it can run standalone, but one
> usually invokes it from RoadMap ("Hmm -- I'm not getting a fix --
> where are my satellites?").  is there a way of wrapping the
> second application in a shared lib similar to libsugarize such
> that sugar would know about its window in at least some minimal
> way?  without this, the program gets "lost" from a UI point of
> view.
>
> (i realize that needing a second window is rather un-sugary.  in a
> new activity, it would probably be a tab, for instance.)

Sugar maintains a strict 1:1 relation between top-level windows marked  
as activity and activities. Any other top-level window should get an  
"unknown" icon, currently a gray circle. I guess marking an arbitrary  
top-level window as activity would severely confuse Sugar. What you  
could try is running it as dialog window, then it will even receive a  
window border that can be dragged around etc., similar to the object  
chooser dialog.

- Bert -
Henry Hardy | 1 Apr 2008 17:37
Picon

Project name : imagetosound is set up

Tue, 25 Mar 2008 17:20:53 +0100, Cesare Marilungo
<cesare <at> poeticstudios.com> wrote:
1. Project name             : ImageToSound

Done. Your tree is here:
git+ssh://cesare <at> dev.laptop.org/git/activities/imagetosound

Please follow instructions here for importing your project:
http://wiki.laptop.org/go/Importing_your_project

Let us know if you have any problems with your tree. Happy hacking.

Cheers,

--
Henry Edward Hardy
henry <at> laptop.org
Mikus Grinbergs | 1 Apr 2008 17:55
Favicon

Update.2 goal - game buttton orientation and rotate

I have not been following the current status of "game button" 
support, but on the original G1G1 release the existing button 
definitions stayed in place when the display output was rotated.

Consensus had been deferred on which keys (and trackpad) should 
change orientation when the display output orientation changes. 
[See #5549, #2249. #1444, #808]

It would make the XO more user-friendly if when Update.2 is 
released, there is an easy-for-users-to-understand definition of how 
the buttons behave when the display output is rotated -- PLUS, for 
Update.2, Sugar and the Activities need to *follow* that definition.

["Waiting for X.future" should be a last resort, since in the 
meanwhile hand-held-mode users are left with an awkward XO.]

"Clearing up" game buttons should be a priority for Update.2

mikus
Edward Cherlin | 1 Apr 2008 20:07
Picon
Gravatar

Re: Mini-conference on Apr 3/4!

On Fri, Mar 28, 2008 at 1:58 PM, C. Scott Ananian <cscott <at> laptop.org> wrote:
> We've gotten 9 proposals for our mini-conference, and I know of two
>  and a half more which haven't yet hit devel <at>  (Walter/Kim, Michael, and
>  Martin, on "build process", Bitfrost, and school servers).

If I could get to the mini-conference, I would offer a talk on the
wretched state of planning for language support. I know of several
dozen languages in target ("green") countries for which there is no
Pootle project. I just sent out a list of the languages needed for the
Philippines in response to an announcement of projects there. Since
nobody else stepped up, I have become the administrator for Haitian
Kreyól and Cambodian Khmer, languages that I do not know (although I
can sort of read Kreyól due to its French roots).

Bottom line: OLPC needs somebody to do this full time, paid, in Cambridge.

If you like, I can send you a slide show (OpenOffice Impress) and give
a talk over the phone, or we might be able to set up a video
conference. There are plenty of facilities in Silicon Valley.

I could talk about some other development management failings at OLPC,
and suggest some measures that should help, but one is enough per
e-mail. There are other management failings outside the area of
development which I will not bring up on this list, except to give you
two words--premature optimization.

>  Since most of the participants are local, we'll be having our
>  conference at the OLPC offices at 1 Cambridge Center next Thursday and
>  Friday (April 3 and 4).  Tentative plan is for talks from 12-6pm, then
>  dinner, and then informal discussion in the evenings. The community is
>  welcome!
>
>  One of my goals with this mini-conference is to encourage
>  cross-pollination between the teams working on various technologies,
>  and between developers and the community.  To that end, we'll schedule
>  each proposal in a ~1 hour window: a 30 minute talk, followed by no
>  more than 30 minutes of discussion, then on to the next topic.  The
>  goal isn't to nail down every open question during the hour, but
>  instead to start discussions which will continue in the evening and
>  online.  People who aren't terribly interested in a topic should be
>  able to enjoy and learn from the structured talk without having to
>  suffer through too much "vigorous debate".

That's a shame. I love vigorous debate.

>  I'd like to have webcasts of the talks for posting later, and/or for
>  live streaming, if possible.  Can anyone volunteer to help out with
>  this?

I'll see whether my friends in the business can help out. They set up
live conferencing for a UNESCO/Club of Rome event in a number of
countries over the World Bank network.

>  For proposers: I'd appreciate if you could organize your talks roughly
>  as follows:
>   * background material ("what is a mesh network")
>   * history & current state of affairs ("what currently works? what doesn't?")
>   * open tasks, both "simple matters of programming" and "hard problems
>  no one has a clue about"
>   * concrete proposal for forward progress.

OLPC's localization and translation planning needs

Background
* Localization: strings in software
* Translation: Wiki, textbooks, content
* Multilingual text to speech for literacy and accessibility

History and state of affairs
* 60+ languages so far on Pootle
* Strings per module: Etoys, XO-Core, etc.
* Wiki translations
* Library
* No library repository
* No mechanism for tracking permissions and licenses
* No visible planning
* No outreach, no recruitment
* No public information on language communities to be served

For example, in Afghanistan we know we need Pashto and Dari, and both
are in Pootle. But what about Hazaragi and Aimaq? Where are the G1G1
XOs going in Afghanistan? Are we just going to leave these
historically persecuted minorities out?

Open tasks
* Dozens of languages needed but not begun
* Lists of countries
* Lists of languages
* Resources: NGOs, Universities, LUGs, children...

Proposal
* Hire me, or somebody

>  The first two bullet points encourage the dissemmination of the bits
>  of specialized knowledge that live in a few developers' heads, and
>  insisting on a concrete proposal at the end will hopefully encourage
>  productive discussion.
>
>  More details as they're planned!  Hope to see you all there!
>   --scott
>
>  --
>   ( http://cscott.net/ )
>  _______________________________________________
>  Devel mailing list
>  Devel <at> lists.laptop.org
>  http://lists.laptop.org/listinfo/devel

--

-- 
Edward Cherlin
End Poverty at a Profit by teaching children business
http://www.EarthTreasury.org/
"The best way to predict the future is to invent it."--Alan Kay
_______________________________________________
Devel mailing list
Devel <at> lists.laptop.org
http://lists.laptop.org/listinfo/devel

Gmane