Re: [Sugar-devel] [DESIGN] hide OLPC mesh icon in frame when mesh is not being used

2010-07-11 Thread Kevin Mark
On Sun, Jul 11, 2010 at 02:15:43AM +0100, Gary Martin wrote:
 On 10 Jul 2010, at 23:19, Walter Bender walter.ben...@gmail.com wrote:
 
  On Fri, Jul 9, 2010 at 1:53 PM, Daniel Drake d...@laptop.org wrote:
  Hi,
  
  In http://bugs.sugarlabs.org/ticket/2086, Simon raised the question:
  Do we want to hide the OLPC mesh icon (which currently appears all the
  time in the frame, if you're running an XO-1) when we are not
  connected to the mesh?
  
  Daniel
  
  Does anyone recall the rationale for including it to begin with?
  Unlike the ad hoc icon, you cannot use it to create a mesh network (or
  can you?)
 
 No sorry, I can't remember that discussion either. It would seem to be 
 sensible to hide devices and/or CP modules when ever we can test if the 
 specific functionality is available. There is an argument of discoverability 
 (i.e. how do you know Sugar supports 3G connection if you don't see a 3G CP 
 module for it), but that inexorably leads to a more cluttered UI over time 
 (slowing down discovery of perhaps other more important features). With Sugar 
 targeting more hardware configurations, hiding seems the sane design choice — 
 making sure new features are clearly documented in release notes, which they 
 have been so far, thanks Simon!

That made me think of the activity circle and favorites. maybe have certain 
'favorites' and allow others to be added as needed or to have then become 
favorites if the HW is detected.
-- 
|  .''`.  == Debian GNU/Linux ==.| http://kevix.myopenid.com..|
| : :' : The Universal OS| mysite.verizon.net/kevin.mark/.|
| `. `'   http://www.debian.org/.| http://counter.li.org [#238656]|
|___`-Unless I ask to be CCd,.assume I am subscribed._|

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Missing Jacket

2010-07-11 Thread Bernie Innocenti
[cc += sugar-de...@]

El Tue, 06-07-2010 a las 07:32 -0400, Samuel Klein escribió:

 Bernie -- I meant to send this to you earlier -- you will be pleased
 to know that I got to know someone devoted to the demoscene when I was
 in Oxford the other week, and he is bound and determined now to get
 modern demos working on XOs.  I think this would make a really
 fantastic collection to ship... and a nice language-free encouragement
 to learn to hack (or make art and music :-).

That's amazing! Please, also have a look to my TODO list of old-skool
activities:

== Bernie's Retro Activities ==
XaoS
SoundTracker
GrafX2
Golly
Mame
Geeki
TextEdit


Of these, I only ported XaoS--it's on ASLO.

For SoundTracker, I have an unfinished port to GTK2... It would need
some more work. All the others are straight-forward.

To ease porting non-native software, we should implement the
startup-notification protocol in Sugar. Currently, Sugar uses a custom
handshake protocol which requires activities to do set custom atoms in
their main window and talk over DBus.

There's a sugarize wrapper script which fools Sugar, but it's hardly
an ideal solution.

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Activity title update

2010-07-11 Thread Bernie Innocenti
El Tue, 06-07-2010 a las 20:20 +1000, James Cameron escribió:
 And, for what it is worth, Sugar 0.84 only connects the focus-out-event,
 it doesn't connect changed.  Also, it avoids a save if the name is
 unchanged.

IIRC, 0.84 was using the changed event too. I patched it myself to use
focus-out-event...

Your patch seems to have the same issue of my fix: if someone changes
the title and presses ctrl-w before 1 second, the title does not update.

Moreover, like in the current code in git, sometimes you get a spurious
save while you're typing, causing your keystroke to be lost and the
cursor to be reset to the beginning of the field.

Tomeu's testcase proved that gtk delivers focus-out-event reliably with
normal buttons. We need to figure out why it doesn't seem to be the case
in toolbars. Maybe we could add a few prints in the callbacks.

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Missing Jacket

2010-07-11 Thread Benjamin M. Schwartz
 El Tue, 06-07-2010 a las 07:32 -0400, Samuel Klein escribió:
 
 Bernie -- I meant to send this to you earlier -- you will be pleased
 to know that I got to know someone devoted to the demoscene when I was
 in Oxford the other week, and he is bound and determined now to get
 modern demos working on XOs.  I think this would make a really
 fantastic collection to ship... and a nice language-free encouragement
 to learn to hack (or make art and music :-).

I would love if one of these demos (running in, say, 2% of CPU time) could
replace the boot-time animation.  Should much more interesting than our
present incredibly staid bootup.  Bonus points, of course, if the same
demo is available in some Activity for students to dissect.

--Ben



signature.asc
Description: OpenPGP digital signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] WikiBrowse from sugar-emulator (ubuntu 10.04) ?

2010-07-11 Thread Bastien
Thanks Sascha.

Sascha Silbe sascha-ml-ui-sugar-de...@silbe.org writes:

 Excerpts from Bastien's message of Sat Jul 10 16:11:17 + 2010:

 He installed Sugar on Ubuntu 10.04 with sugar-emulator 0.88 then 
 tried to install WikipediaEN from these packages :
 
 * http://dev.laptop.org/~cjb/enwiki/WikipediaEN-4.xo
 * http://dev.laptop.org/~cjb/eswiki/Wikipedia-10.xo
 Ubuntu removed python-xpcom for 10.04, so hulahop and anything based
 on it (Browse, Wikipedia, ...) is broken.

~$ sudo apt-get install python-xpcom

should do it, right? 

I forwarded your message to Emmanuel, we will digg this further. 

Best,

-- 
 Bastien
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] WikiBrowse from sugar-emulator (ubuntu 10.04) ?

2010-07-11 Thread Tim McNamara
On 12 July 2010 03:23, Bastien bastien.gue...@wikimedia.fr wrote:

 Thanks Sascha.

 Sascha Silbe sascha-ml-ui-sugar-de...@silbe.org writes:

  Excerpts from Bastien's message of Sat Jul 10 16:11:17 + 2010:
 
  He installed Sugar on Ubuntu 10.04 with sugar-emulator 0.88 then
  tried to install WikipediaEN from these packages :
 
  * http://dev.laptop.org/~cjb/enwiki/WikipediaEN-4.xo
  * http://dev.laptop.org/~cjb/eswiki/Wikipedia-10.xo
  Ubuntu removed python-xpcom for 10.04, so hulahop and anything based
  on it (Browse, Wikipedia, ...) is broken.

 ~$ sudo apt-get install python-xpcom

 should do it, right?


The python-xpcom package is not in Lucid unfortunately [1].. The source is
available from Mozilla [2].

Good luck.

[1] https://bugs.launchpad.net/ubuntu/+bug/480407
[2] https://developer.mozilla.org/en/pyxpcom
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] icon-slicer and sugar-artwork

2010-07-11 Thread Sascha Silbe
Excerpts from pbrobin...@gmail.com's message of Sun Jul 11 16:47:41 + 2010:

 [...] It currently needs icon-slicer but I
 think its an old dep that is still in configure.ac but no longer used,
 if I drop it out of configure.ac and rebuilt it all builds OK without
 it.
It will fail, but in a non-obvious way. Here's the relevant part of the
build log after applying your patch and removing icon-slicer from the
system:

make[3]: Entering directory 
`/home/sascha.silbe/sugar-jhbuild/source/sugar-artwork/cursor/sugar'
image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
../../cursor/sugar/sugar.cursortheme
/bin/bash: image-dir=../../cursor/sugar: No such file or directory
make[3]: [sugar.stamp] Error 127 (ignored)

Let's take a look at the corresponding make rule:

sascha.si...@xo-bine:~/sugar-jhbuild/source/sugar-artwork$ grep -B 1 -A 2 
ICON_SLICER cursor/sugar/Makefile.am 
sugar.stamp: $(sugar_images) $(THEMEGEN) sugar.cursortheme
$(ICON_SLICER) --image-dir=$(IMAGE_DIR) --output-dir=$(OUTPUT_DIR) 
$(IMAGE_DIR)/sugar.cursortheme
touch sugar.stamp

Since ICON_SLICER is never set, $(ICON_SLICER) will expand to the empty
string. So the line make tries to execute is:

--image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
../../cursor/sugar/sugar.cursortheme

A leading minus means ignore the exit status of this command and will
be removed prior to executing the command. Apparently the second minus is
stripped as well, so make will try to execute

image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
../../cursor/sugar/sugar.cursortheme

and ignore the exit status.

See Debian #555963 for what will happen at runtime if icon-slicer doesn't work 
(or isn't installed).

Sascha

[1] http://bugs.debian.org/555963
--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] icon-slicer and sugar-artwork

2010-07-11 Thread pbrobin...@gmail.com
On Sun, Jul 11, 2010 at 7:28 PM, Sascha Silbe
sascha-ml-ui-sugar-de...@silbe.org wrote:
 Excerpts from pbrobin...@gmail.com's message of Sun Jul 11 16:47:41 + 
 2010:

 [...] It currently needs icon-slicer but I
 think its an old dep that is still in configure.ac but no longer used,
 if I drop it out of configure.ac and rebuilt it all builds OK without
 it.
 It will fail, but in a non-obvious way. Here's the relevant part of the
 build log after applying your patch and removing icon-slicer from the
 system:

 make[3]: Entering directory 
 `/home/sascha.silbe/sugar-jhbuild/source/sugar-artwork/cursor/sugar'
 image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
 ../../cursor/sugar/sugar.cursortheme
 /bin/bash: image-dir=../../cursor/sugar: No such file or directory
 make[3]: [sugar.stamp] Error 127 (ignored)

 Let's take a look at the corresponding make rule:

 sascha.si...@xo-bine:~/sugar-jhbuild/source/sugar-artwork$ grep -B 1 -A 2 
 ICON_SLICER cursor/sugar/Makefile.am
 sugar.stamp: $(sugar_images) $(THEMEGEN) sugar.cursortheme
        $(ICON_SLICER) --image-dir=$(IMAGE_DIR) --output-dir=$(OUTPUT_DIR) 
 $(IMAGE_DIR)/sugar.cursortheme
        touch sugar.stamp

 Since ICON_SLICER is never set, $(ICON_SLICER) will expand to the empty
 string. So the line make tries to execute is:

 --image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
 ../../cursor/sugar/sugar.cursortheme

 A leading minus means ignore the exit status of this command and will
 be removed prior to executing the command. Apparently the second minus is
 stripped as well, so make will try to execute

 image-dir=../../cursor/sugar --output-dir=../../cursor/sugar 
 ../../cursor/sugar/sugar.cursortheme

 and ignore the exit status.

 See Debian #555963 for what will happen at runtime if icon-slicer doesn't 
 work (or isn't installed).

Interesting, icon-slicer is only a build time dep in Fedora and so
isn't installed at runtime. Unless you mean build time in referring to
run time?

Peter
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Pathagar issue: I figured it out

2010-07-11 Thread Sameer Verma
On Sat, Jul 10, 2010 at 3:20 PM, James Simmons nices...@gmail.com wrote:
 Sayamindu,

 I figured out how to set up Pathagar and get it running.  I'm going to
 be writing it up in my book.

 One comment: the book list shows the books in sequence by how they
 were entered into the database.  I would think other sort sequences
 would be more useful.

 Second comment: I'd make the pictures for the book cover display
 larger.  You have the space on the page, why not use it?  Also, I
 wouldn't necessarily call it a cover.  Books in the public domain
 don't have nice book jackets, but they do have nice title pages,
 interior illustrations, etc.  The image that represents the book best
 is not necessarily its cover.

 I ended up commenting out the entries in settings.py that refer to the
 debug toolbar.  You might put in comments showing how to do that.

 James Simmons
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


I did the same...commented out the debug stuff. Nice project!  I can
see how this would be immensely useful on a school server where
books/media have to be served outside of a course, like a local
public library.

cheers,
Sameer
-- 
Dr. Sameer Verma, Ph.D.
Associate Professor, Information Systems
Director, Campus Business Solutions
San Francisco State University
http://verma.sfsu.edu/
http://opensource.sfsu.edu/
http://cbs.sfsu.edu/
http://is.sfsu.edu/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] icon-slicer and sugar-artwork

2010-07-11 Thread Sascha Silbe
Excerpts from pbrobin...@gmail.com's message of Sun Jul 11 19:20:47 + 2010:

  See Debian #555963 for what will happen at runtime if icon-slicer doesn't 
  work (or isn't installed).

 Interesting, icon-slicer is only a build time dep in Fedora and so
 isn't installed at runtime. Unless you mean build time in referring to
 run time?

Symptoms like in Debian #555963 [1] will occur at runtime if icon-slicer
is missing or broken at build time. You don't need icon-slicer at runtime.

Sascha

[1] http://bugs.debian.org/555963


signature.asc
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Add cpu and memory resource indicator to frame

2010-07-11 Thread James Cameron
On Sat, Jul 10, 2010 at 01:04:37PM +0530, anishmangal2002 wrote:
 This patch adds an icon to the frame, whose palette
 menu displays the memory and cpu resources. For computing
 free memory, the code reads the /proc/meminfo file (thanks
 quozl) and for computing cpu usage, the code reads the
 /proc/stat file.
 
 The palette menu entries are only updated (in one second
 intervals) when the palette menu is visible thus
 possibly saving cpu cycles.
 
 Signed-off-by: anishmangal2002 anishmangal2...@gmail.com

Reviewed-by: James Cameron qu...@laptop.org

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel