Re: [Sugar-devel] Web activities on XO-4

2013-09-18 Thread Erik Blankinship
Map-2.xo (or thereabouts) had a web server built in. I don't remember the specifics, but if someone can dig up the code there might be some ideas in there. I recall Dan Williams was helpful in drafting a script for finding the best available port per activity instance. On Wed, Sep 18, 2013 at

[Sugar-devel] password retrieval for trac?

2013-07-30 Thread Erik Blankinship
Sorry for having to post this request here, but could someone point out where the password reset feature is on trac? http://bugs.sugarlabs.org/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

[Sugar-devel] adding the right file extension when copying an object

2011-12-24 Thread Erik Blankinship
When I copy sugar journal entries to a usb stick, they are given the correct file extensions. In an activity, if I select an object from the ObjectChooser, and want to save that Object to a usb stick myself, how do I use that same sugar logic to add the right file extensions? Thanks! Erik

[Sugar-devel] filter objectchooser with custom mimetypes?

2011-12-24 Thread Erik Blankinship
Digging around through the archives, I am not getting too far figuring out how to pass in my own set of mime-types to filter what is shown in an objectchooser. Any suggestions? Can I extend the available choices like mime.GENERIC_TYPE_AUDIO? Or create my own filter-object to pass into the

[Sugar-devel] html rendering differences between Browse and embedded WebView

2011-12-12 Thread Erik Blankinship
The Browse activity themes web page widgets differently than embedding a web viewer in an activity. For example, in the Browse activity, buttons and scrollbars are rectangular. In my Activity WebView these widgets are rounded rectangles. As an activity author, how do I select the 'theme' I

Re: [Sugar-devel] html rendering differences between Browse and embedded WebView

2011-12-12 Thread Erik Blankinship
On Mon, Dec 12, 2011 at 10:34 AM, Gonzalo Odiard gonz...@laptop.org wrote: On Mon, Dec 12, 2011 at 12:20 PM, Erik Blankinship er...@mediamods.comwrote: Thank you Gonzalo, but I am targeting 11.3.0, and am looking for a solution. Will webkit be used in 11.3.1? There are not big changes

Re: [Sugar-devel] html rendering differences between Browse and embedded WebView

2011-12-12 Thread Erik Blankinship
On Mon, Dec 12, 2011 at 12:40 PM, Gonzalo Odiard gonz...@laptop.org wrote: Thanks Gonzalo. Is there an example of how to embed webkit into an activity? Activities like TeachTeacher use hulahop. The epub viewer in the Read activity is using webkit, and the Surf activity was a Browse

Re: [Sugar-devel] forcing a specific language translation

2011-12-10 Thread Erik Blankinship
, Dec 7, 2011 at 2:09 PM, Erik Blankinship er...@mediamods.comwrote: Normally, I use something like this to automatically get translations from the right .mo file from gettext import gettext def _( s ): return gettext( s ) But what if I want to force my activity to run in a different

[Sugar-devel] forcing a specific language translation

2011-12-07 Thread Erik Blankinship
Normally, I use something like this to automatically get translations from the right .mo file from gettext import gettext def _( s ): return gettext( s ) But what if I want to force my activity to run in a different language? (e.g. Swedish Chef Cookbook Activity) I tried this: import

Re: [Sugar-devel] installing a font?

2011-11-26 Thread Erik Blankinship
On Mon, Oct 31, 2011 at 11:08 AM, Bert Freudenberg b...@freudenbergs.dewrote: On 26.10.2011, at 23:43, Erik Blankinship wrote: Is there a way for an xo bundle to install a font to the system (for cairo to use)? No, and it shouldn't, since activities need to be self-contained. If your

[Sugar-devel] sugar theme?

2011-11-16 Thread Erik Blankinship
Is Sugar themed in this way? http://art.gnome.org/themes/metacity (understanding that mutter will make this obsolete, what I am trying to figure out is...) Where is the equivalent description of the look and feel that Activity developers can query for doing custom painting using sugar themed

[Sugar-devel] installing a font?

2011-10-26 Thread Erik Blankinship
Is there a way for an xo bundle to install a font to the system (for cairo to use)? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] opening a url with WebActivity

2011-08-17 Thread Erik Blankinship
Okay, so to summarize, the best practice for an activity to open a URI in the browse activity is to not open a URI in the browse activity, but to open a WebView instance in your own activity instead. It will be nice when the intent system is ready. Good to know it should be an easy switch for

Re: [Sugar-devel] opening a url with WebActivity

2011-08-13 Thread Erik Blankinship
On Fri, Aug 12, 2011 at 4:21 PM, Scott @ OLPC o...@cscott.net wrote: A proper solution would probably involve creating an Intent system for Sugar, akin to those in Android, Chrome, and Firefox. There's a short discussion on my google+ stream which I can't seem to link to from my mobile;

[Sugar-devel] opening a url with WebActivity

2011-08-12 Thread Erik Blankinship
I am trying to figure out how to open a URL in the browse activity from my own python sugar activity. What is the best way to do this? I was hacking around on an xo running 860, sugar 84) [1] import webbrowser webbrowser.open( http;//google.com ) This launches firefox in its own floating

[Sugar-devel] dialog during installation?

2011-04-14 Thread Erik Blankinship
Is there any way to present a modal dialog during the installation of a sugar activity? (For example: you will want to be on an xo to run this software with an option to cancel installation) Thanks Erik ___ Sugar-devel mailing list

Re: [Sugar-devel] [IAEP] Exploring Sugar-on-Tablets

2011-04-13 Thread Erik Blankinship
Before completely dismissing the mac ppc architecture, it is noteworthy that the platform has a bright retrograde future in tablets. http://blogger-off.com/apple-powerbook-g4-12-tablet/ On Wed, Apr 13, 2011 at 3:58 AM, Sean DALY sdaly...@gmail.com wrote: PPC on Mac is also, unfortunately, a

[Sugar-devel] can erasing an activity also erase an activity's /data, /instance, /tmp ?

2011-03-29 Thread Erik Blankinship
When I erase an activity in sugar (by right clicking on an activity, then selecting erase), the activity's /data, /instance, /tmp directories remain in ~/.sugar/yadda.yadda.org/ Is there an option to remove or modify these files when an activity is erased? (I apologize if this has been brought

Re: [Sugar-devel] can erasing an activity also erase an activity's /data, /instance, /tmp ?

2011-03-29 Thread Erik Blankinship
On Tue, Mar 29, 2011 at 3:31 PM, Walter Bender walter.ben...@gmail.comwrote: On Tue, Mar 29, 2011 at 3:28 PM, Erik Blankinship er...@mediamods.com wrote: When I erase an activity in sugar (by right clicking on an activity, then selecting erase), the activity's /data, /instance, /tmp

Re: [Sugar-devel] can erasing an activity also erase an activity's /data, /instance, /tmp ?

2011-03-29 Thread Erik Blankinship
On Tue, Mar 29, 2011 at 7:54 PM, Martin Abente martin.abente.lah...@gmail.com wrote: It was also pushed upstream, please check this commit: ef3a35b7595c543f6d8b6a54e60e6c21e2a37f8f Guess we still need to know which sugar version he is testing :) I am testing on OLPC 10.1.3, Sugar 0.84.31,

Re: [Sugar-devel] about about my xo

2011-03-04 Thread Erik Blankinship
...@laptop.org wrote: Hi, On Thu, Mar 03 2011, Erik Blankinship wrote: Is there a way for a sugar activity (and gnome) to query the version and build information which is displayed in about my xo in the sugar control panel? The way I'd answer this is by: * finding out where the about my xo

[Sugar-devel] about about my xo

2011-03-03 Thread Erik Blankinship
Is there a way for a sugar activity (and gnome) to query the version and build information which is displayed in about my xo in the sugar control panel? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-14 Thread Erik Blankinship
On Sat, Feb 12, 2011 at 8:18 PM, Erik Blankinship er...@mediamods.comwrote: On Fri, Feb 11, 2011 at 4:17 PM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: Excerpts from Erik Blankinship's message of Fri Feb 11 21:08:20 +0100 2011: I noticed there were two svg icons

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-14 Thread Erik Blankinship
On Mon, Feb 14, 2011 at 2:08 PM, Sascha Silbe si...@sugarlabs.org wrote: Excerpts from Erik Blankinship's message of Mon Feb 14 19:36:29 +0100 2011: Got this working with the help of alsroot on #sugar (thx!). Nice. Are any of your questions still left unanswered regarding interacting with

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-14 Thread Erik Blankinship
Hunkins abhun...@uncg.edu wrote: FWIW, I've experienced no problems simply copying my activities into the Activities directory (from a USB drive). cp -r does just fine. Art Hunkins - Original Message - *From:* Erik Blankinship er...@mediamods.com *To:* Sugar Devel sugar-devel

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-13 Thread Erik Blankinship
On Fri, Feb 11, 2011 at 4:17 PM, Sascha Silbe sascha-ml-reply-to-201...@silbe.org wrote: Excerpts from Erik Blankinship's message of Fri Feb 11 21:08:20 +0100 2011: I noticed there were two svg icons in the physics activity directory: application-x-physics-project.svg and

[Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Erik Blankinship
My video game runs in both gnome and sugar. I want kids to be able to move saved games back and forth between these platforms with ease. I have created a mime-type for saved files in my video game: application/x-my-cool-game. Datastore entries' metadata are saved with this mime-type. When a

Re: [Sugar-devel] mime types when moving files from journal to usb

2011-02-11 Thread Erik Blankinship
? On Fri, Feb 11, 2011 at 2:33 PM, Gonzalo Odiard gonz...@laptop.org wrote: You need add a mimetypes.xml file to your activity. look at Physics activity Gonzalo On Fri, Feb 11, 2011 at 4:24 PM, Erik Blankinship er...@mediamods.comwrote: My video game runs in both gnome and sugar. I want kids

[Sugar-devel] determine origin of file selected from an object chooser?

2011-02-10 Thread Erik Blankinship
How can I determine if a file loaded with a sugar object chooser was selected from the datastore or from an external storage device? dsobject = chooser.get_selected_object( ) logger.debug( opening %s % dsobject.file_path ) On an xo, opening a file from the usb results in something like: opening

Re: [Sugar-devel] closing an activity immediately

2011-02-10 Thread Erik Blankinship
There's a whole lot of stuff being run after Activity.__init__() before the activity is actually started (take a look at the source [1]). I haven't looked into it closely, but I suspect that your early self.close() hangs because the widgets are not set up yet. Maybe I should put

Re: [Sugar-devel] determine origin of file selected from an object chooser?

2011-02-10 Thread Erik Blankinship
How can I determine if a file loaded with a sugar object chooser was selected from the datastore or from an external storage device? On Sugar 0.84+, there is no difference. Objects on external storage get copied to the data store first. But the objects don't get copied to the Journal

Re: [Sugar-devel] determine origin of file selected from an object chooser?

2011-02-10 Thread Erik Blankinship
On Thu, Feb 10, 2011 at 11:30 AM, Erik Blankinship er...@mediamods.comwrote: How can I determine if a file loaded with a sugar object chooser was selected from the datastore or from an external storage device? On Sugar 0.84+, there is no difference. Objects on external storage get copied

Re: [Sugar-devel] determine origin of file selected from an object chooser?

2011-02-10 Thread Erik Blankinship
My suggestion appears to work. What would the community suggest as a better solution using the existing object chooser? On Feb 10, 2011, at 1:07 PM, Gonzalo Odiard gonz...@laptop.org wrote: Please, don't do it. :( Gonzalo How does this idea look to the community? Seems hackish to me,

[Sugar-devel] closing an activity immediately

2011-02-09 Thread Erik Blankinship
If I wanted to stop an activity as soon as it was initiated, how would I do that? The code below hangs with a grey screen. Why would I want to do this? I am trying to understand how the sugar code base works. This seems like a good exercise for understanding how sugar activities start and

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2011-01-26 Thread Erik Blankinship
On Mon, Dec 20, 2010 at 12:56 AM, Bakhtiar Mikhak mik...@mediamods.comwrote: The specific practical considerations on the XO to which I was referring has to do with the documented bug with xvimagesink and UI rotations. Even with the rest of the UI designed to handle rotations gracefully, this

Re: [Sugar-devel] acti-plications: write once, run anywhere?

2011-01-22 Thread Erik Blankinship
In the long run, I'd like to convert the activity.info file into a regular .desktop file that gets installed to the standard location [2-4]. Activity mode invocation (via Sugar) would use a Sugar-specific key, application mode invocation (e.g. from within Gnome) would use the standard Exec

Re: [Sugar-devel] acti-plications: write once, run anywhere?

2011-01-19 Thread Erik Blankinship
Let's assume delivery of the activity-application is via a usb stick. Let's also assume the video game has 200mb of assets. The goal is to make it as easy as possible to install the activity-application once, from either side, and to put the assets in one place. For sugar, this would be a

[Sugar-devel] acti-plications: write once, run anywhere?

2011-01-18 Thread Erik Blankinship
On a dual-boot XO, does it make sense to use the same binary code for sugar activities also in gnome applications? If so, are there guidelines or example acti-plications? If the same binary code is *not *re-used by both platforms, but just the same code base, are there guidelines or examples of

Re: [Sugar-devel] acti-plications: write once, run anywhere?

2011-01-18 Thread Erik Blankinship
The gnome side will most likely be installed via RPMs (or .deb files on Ubuntu/Fedora setups). So your Sugar app could just use the libraries, binaries and resources/assets from the RPM. Examples - Write.xo uses the Abiword libraries. Browse.xo uses xulrunner (the Firefox libraries

Re: [Sugar-devel] acti-plications: write once, run anywhere?

2011-01-18 Thread Erik Blankinship
On Tue, Jan 18, 2011 at 9:57 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Tue, Jan 18, 2011 at 2:25 PM, Erik Blankinship er...@mediamods.com wrote: If my acti-plication has dependencies that are not part of the underlying build, do I need to install them on the gnome side first

Re: [Sugar-devel] moving datastore projects via usb sticks?

2010-12-31 Thread Erik Blankinship
Later in the game, a child can use an object chooser to select one of these game states. I get the impression that you're trying to port an existing application (game) to Sugar by looking for APIs that match those you use on other platforms. This is NOT going to result in a good user

[Sugar-devel] moving datastore projects via usb sticks?

2010-12-30 Thread Erik Blankinship
In my video game, I am saving game state resources into a tar file, which is then saved to the journal / datastore. Later in the game, a child can use an object chooser to select one of these game states. Under the hood we check if the datastore object file_path ends with tar or gtar before we

Re: [Sugar-devel] moving datastore projects via usb sticks?

2010-12-30 Thread Erik Blankinship
On Thu, Dec 30, 2010 at 8:31 AM, Martin Langhoff martin.langh...@gmail.comwrote: On Thu, Dec 30, 2010 at 8:25 AM, Erik Blankinship er...@mediamods.com wrote: In my video game, I am saving game state resources into a tar file, which is then saved to the journal / datastore. Hi Erik

Re: [Sugar-devel] moving datastore projects via usb sticks?

2010-12-30 Thread Erik Blankinship
On Thu, Dec 30, 2010 at 10:26 PM, James Cameron qu...@laptop.org wrote: On Thu, Dec 30, 2010 at 10:06:15PM -0500, Erik Blankinship wrote: I check to see if the file_path ends in gtar or tar (presumably assigned by the datastore mime-type?) and some debugging tells me it does not. Instead

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-20 Thread Erik Blankinship
You can use key-press-event event http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-key-press-event see event.state to check what modifier was pressed http://library.gnome.org/devel/gdk/stable/gdk-Event-Structures.html#GdkEventKey Below is what I have assembled in an

[Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Erik Blankinship
I would like to know when CTRL or ALT are being pressed in my sugar activity. To be complete, I would need to know if they are pressed when the activity regains focus (e.g. changing activities or if the focus was in a textfield). I am not sure of the right way to do this. My current thinking is

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Erik Blankinship
On Fri, Dec 17, 2010 at 4:52 PM, Walter Bender walter.ben...@gmail.comwrote: On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: I would like to know when CTRL or ALT are being pressed in my sugar activity. To be complete, I would need to know if they are pressed

[Sugar-devel] object chooser title?

2010-12-15 Thread Erik Blankinship
Can I set the text at the top of the sugar object chooser from the default choose an object? Thanks! ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-14 Thread Erik Blankinship
This is a little unexpected. What is the expected use case for this implementation? 'query' is intended for arbitrary text search I mean you can use search operators http://xapian.org/docs/queryparser.html Got it, thank you. Those operators are very helpful to refine

Re: [Sugar-devel] how to use custom gstreamer elements bundled in activities?

2010-12-11 Thread Erik Blankinship
On Sat, Dec 11, 2010 at 2:40 AM, Aleksey Lim alsr...@member.fsf.org wrote: On Sat, Dec 11, 2010 at 01:30:22AM -0500, Erik Blankinship wrote: Some more research suggests I need to specify a GST_PLUGIN_PATH for my activity. http://stackoverflow.com/questions/2120444/gstreamer-plugin-search

Re: [Sugar-devel] prevent screen rotation in a sugar activity?

2010-12-10 Thread Erik Blankinship
for View Slides to see how I do that (or look at Read SD Comics which does the same thing but is simpler). Screen rotation is a useful feature of the XO. Your Activity should be able to deal with it gracefully. James Simmons On Thu, Dec 9, 2010 at 8:51 AM, Erik Blankinship er...@mediamods.com

[Sugar-devel] how to use custom gstreamer elements bundled in activities?

2010-12-10 Thread Erik Blankinship
I have created a gstreamer plugin I want to bundle with an activity. I looked at one way mp3 support is handled, and it requires a permanent addition to /usr/lib/gstreamer http://wiki.laptop.org/go/Fluendo_mp3_decoder I would like to avoid that extra step. Any suggestions how to reference a

Re: [Sugar-devel] how to use custom gstreamer elements bundled in activities?

2010-12-10 Thread Erik Blankinship
there? Thanks, Erik Additional resources: http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/GstRegistry.html http://www.gstreamer.net/data/doc/gstreamer/head/pwg/html/chapter-building-testapp.html On Sat, Dec 11, 2010 at 1:05 AM, Erik Blankinship er...@mediamods.comwrote: I have created

[Sugar-devel] prevent simultaneous activity instances?

2010-12-09 Thread Erik Blankinship
Is there a way to prevent two instances of an activity from running at the same time? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] journal / datastore question

2010-12-03 Thread Erik Blankinship
should stick to flows that the user expects instead of inventing new ones. James Simmons On Wed, Dec 1, 2010 at 7:55 PM, Erik Blankinship er...@mediamods.com wrote: Let's say I have a gimp-like activity. I launch the activity and it is empty. I open an image file via object chooser, save

[Sugar-devel] get list of titles in the datastore?

2010-12-03 Thread Erik Blankinship
I tried using this bit of code to get a list of items in the journal by their title, but it is returning everything in the journal! http://bit.ly/fjgpJr ds_objects, num_objects = datastore.find({'title':'file1.txt'}) Any suggestions? ___ Sugar-devel

[Sugar-devel] setting svg icon as datastore metadata?

2010-12-03 Thread Erik Blankinship
Can I set my own svg icon as metadata for a datastore entry? How would I do that? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-03 Thread Erik Blankinship
from #sugar... *alsroot *: try datastore.find({'query':'coolthings'}) *alsroot*: for now, only uid, activity, activity_id, mime_type and keep search term are supported On Fri, Dec 3, 2010 at 4:49 PM, Erik Blankinship er...@mediamods.comwrote: I tried using this bit of code to get a list

[Sugar-devel] getting datastoreObject from read_file call?

2010-12-01 Thread Erik Blankinship
When read_file is called by my activity, I get a file path to something that is probably in my journal. How can I get the datastoreObject affiliated with that file_path? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org

[Sugar-devel] journal / datastore question

2010-12-01 Thread Erik Blankinship
Let's say I have a gimp-like activity. I launch the activity and it is empty. I open an image file via object chooser, save the file back to the datastore. I do this a few times. When I close my activity, I keep a reference to the datastore-id of the last photo I edited so that it will resume

Re: [Sugar-devel] automatically naming incremental sugar activity instances

2010-11-29 Thread Erik Blankinship
Thank you for the thoughtful response. Could you please remind me where my activity's persistant storage can be accessed? On Mon, Nov 29, 2010 at 7:34 AM, Aleksey Lim alsr...@member.fsf.org wrote: On Sun, Nov 28, 2010 at 06:38:58PM -0500, Erik Blankinship wrote: If you wanted to [attempt

[Sugar-devel] detecting read_file

2010-11-28 Thread Erik Blankinship
It appears read_file is not called when launching a new activity, and is called when resuming an old activity. When launching a new activity, is there something I can listen for or detect which tells me read_file is not going to be called? ___

[Sugar-devel] automatically naming incremental sugar activity instances

2010-11-28 Thread Erik Blankinship
If you wanted to [attempt to] automatically name new sugar activity instances incrementally, what is the best technique to do this? The solution I've come up with (not implemented, and not sure it can be implemented): scan the journal, look at all of the existing filenames, and then rename the

Re: [Sugar-devel] how to use sugar cursors not in gdk cursor?

2010-11-23 Thread Erik Blankinship
') pixbuf = gtk.gdk.pixbuf_new_from_file(filename) cursor = gtk.gdk.Cursor(display, pixbuf, 6, 21) self.window.set_cursor(cursor) Gonzalo On Sat, Nov 20, 2010 at 10:52 PM, Erik Blankinship er...@mediamods.comwrote: Since HAND_OPEN in sugar http

[Sugar-devel] how to use sugar cursors not in gdk cursor?

2010-11-20 Thread Erik Blankinship
Since HAND_OPEN in sugar http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar-00.png http://git.sugarlabs.org/sugar-artwork/mainline/blobs/master/cursor/sugar/sugar.cursortheme is not available here: http://www.pygtk.org/docs/pygtk/class-gdkcursor.html How do I use

Re: [Sugar-devel] Browse scaling for XO display

2010-11-04 Thread Erik Blankinship
#todo: trac #1657 htmlScale = 1.43 On Thu, Nov 4, 2010 at 12:27 AM, Walter Bender walter.ben...@gmail.comwrote: Does anyone recall what we did to make Browse rescale web pages for the XO display? Here in Peru there is a series of pages that scale properly from a server but not from the file

Re: [Sugar-devel] broken playback in record and jukebox

2010-10-28 Thread Erik Blankinship
On Sun, Oct 24, 2010 at 9:47 PM, Erik Blankinship er...@mediamods.comwrote: On Sun, Oct 24, 2010 at 9:38 PM, James Cameron qu...@laptop.org wrote: On Fri, Oct 22, 2010 at 03:31:23PM -0400, Erik Blankinship wrote: If I pause a video in either the record or jukebox activities and wait about

Re: [Sugar-devel] broken playback in record and jukebox

2010-10-24 Thread Erik Blankinship
On Sun, Oct 24, 2010 at 9:38 PM, James Cameron qu...@laptop.org wrote: On Fri, Oct 22, 2010 at 03:31:23PM -0400, Erik Blankinship wrote: If I pause a video in either the record or jukebox activities and wait about 20 seconds, then just moving the mouse causes the video to go blank! Or I

[Sugar-devel] broken playback in record and jukebox

2010-10-22 Thread Erik Blankinship
( OLPC build 852 on a 1.5 machine. If this is more of an OLPC question, please let me know and I will take my question elsewhere) If I pause a video in either the record or jukebox activities and wait about 20 seconds, then just moving the mouse causes the video to go blank! Or I can wait about

[Sugar-devel] Name this entry dialog questions

2010-09-14 Thread Erik Blankinship
When exiting an activity, a Name this entry dialog sometimes pops up. - Can an activity developer bypass this dialog when closing an activity? - Can an activity developer summon this dialog at will while the activity is running (and grab the text from the dialog when the dialog is

[Sugar-devel] sugar cursors offset?

2010-09-13 Thread Erik Blankinship
Maybe I am reading these files wrong (more likely I don't understand how they are converted) but I think the top row of sugar cursors is off by one column of pixels? http://git.sugarlabs.org/projects/sugar-artwork/repos/mainline/trees/master/cursor/sugar (This is most easy to catch when comparing

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-11 Thread Erik Blankinship
Any suggestions? Do I need to hand roll all of my .po files before getting them translated? [er...@localhost po]$ ls POTFILES.in WeDo.pot [er...@localhost po]$ msginit -l es WeDo.pot:25: context separator EOT within string WeDo.pot:29: context separator EOT within string WeDo.pot:33: context

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-11 Thread Erik Blankinship
switched to /x02 and that works just fine :-) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

[Sugar-devel] internationalization question about generating .pot

2010-09-10 Thread Erik Blankinship
I am trying to internationalize an activity. The instructions here http://bit.ly/acg4Hz and http://wiki.laptop.org/go/Python_i18n explain that I need to run setup.py to generate a .pot file. The first link suggests my setup.py should read: from sugar.activity import bundlebuilder

Re: [Sugar-devel] internationalization question about generating .pot

2010-09-10 Thread Erik Blankinship
On Fri, Sep 10, 2010 at 8:57 AM, Erik Blankinship er...@mediamods.comwrote: I am trying to internationalize an activity. The instructions here http://bit.ly/acg4Hz and http://wiki.laptop.org/go/Python_i18n explain that I need to run setup.py to generate a .pot file. The first link suggests

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-10 Thread Erik Blankinship
#TRANS: bow and arrow activeDisplay = _(Bow) #TRANS: the front of a ship istrDisplay = _(Bow) Ooh interesting, not bumped into this need myself yet, but (as a cheat) it strikes me that gettext is using the given strings as IDs for its string lookups so you could replace your strings

Re: [Sugar-devel] flickering mouse in an activity on an xo

2010-09-10 Thread Erik Blankinship
Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png You can find the original git rep that I made standardcursor.png out of at:

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-10 Thread Erik Blankinship
I think you can fill in (by hand) the msgstr in your POT file and it will do the right thing for untranslated languages. Alas, this does not seem to work. .pot files are, evidently, just the translation template. As far as I can tell the untranslated language gets what's in your python

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-10 Thread Erik Blankinship
Just to make sure I understand your solution, if the activity is run in an untranslated language, won't Arrow|Bow be displayed? Yes. However I was thinking that you could go create/edit the po/en.po file and add in those string corrections, This assumes that English will be the default

Re: [Sugar-devel] internationalization: homonym handling in genpot?

2010-09-10 Thread Erik Blankinship
If it doesn't work, I guess you could also directly use the low-level encoding of context: label1 = _(device_icon_menu\x04Remove) label1 = _(device_icon_menu\x04Remove) label2 = _(file_menu\x04Remove) Not surprisingly, this creates unique entries in the .pot file since they are two

Re: [Sugar-devel] xo colors gradients

2010-09-10 Thread Erik Blankinship
Of course special cases like icons with alpha gradients may well be measurably helped by such optimisations, but are not part of the core Sugar style guidelines, Are there more guidelines than this?

Re: [Sugar-devel] flickering mouse in an activity on an xo

2010-09-10 Thread Erik Blankinship
On Fri, Sep 10, 2010 at 2:20 PM, Erik Blankinship er...@mediamods.comwrote: Is there somewhere to get the sugar cursor graphics within sugar itself? I see that physics imports its own local copy: http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/standardcursor.png

Re: [Sugar-devel] xo colors gradients

2010-09-07 Thread Erik Blankinship
On Mon, Aug 23, 2010 at 4:49 PM, Gary Martin garycmar...@googlemail.comwrote: I don't think I've seen any activity icons try this yet, but it might work for some specific cases if it's not used to try and make 3d style shaded button icons. The sample activity icon with a graident I put on

Re: [Sugar-devel] loading ttf fonts in a sugar activity

2010-09-07 Thread Erik Blankinship
Thanks Tomeu. The results look great. On Wed, Sep 1, 2010 at 3:42 AM, Tomeu Vizoso to...@sugarlabs.org wrote: On Tue, Aug 31, 2010 at 21:20, Erik Blankinship er...@mediamods.com wrote: I am wondering if there is a sugar activity which loads in custom ttf fonts? The almanac does

Re: [Sugar-devel] examples of .xol activity bundles?

2010-09-03 Thread Erik Blankinship
Ok, I will investigate. It would be nice if , for example, a sugar video game engine could load .xol bundles with more levels. On Fri, Sep 3, 2010 at 4:17 AM, Tomeu Vizoso to...@sugarlabs.org wrote: On Tue, Aug 31, 2010 at 17:41, Erik Blankinship er...@mediamods.com wrote

[Sugar-devel] examples of .xol activity bundles?

2010-08-31 Thread Erik Blankinship
Are there examples of .xol activity bundles being used in activities other than browse? I would be interested in seeing how they can be used to bundle content other than resources meant for display by web browsers. Related, how can you specify which activity is meant to open a .xol file (maybe a

[Sugar-devel] slow animation performance when moving the mouse

2010-08-31 Thread Erik Blankinship
I have a simple performance question related to animation based on mouse movement in an activity. When you move the mouse, a colored rectangle follows the mouse around. When you click with the mouse, we change the way in which we get the mouse coordinates to position the colored rectangle (and

[Sugar-devel] loading ttf fonts in a sugar activity

2010-08-31 Thread Erik Blankinship
I am wondering if there is a sugar activity which loads in custom ttf fonts? The almanac does not provide an example http://wiki.sugarlabs.org/go/Development_Team/Almanac/Pango#How_do_I_control_the_appearance_of_fonts_on_a_Pango_layout.3F ...but a google search suggests it should be possible

[Sugar-devel] view source

2010-08-30 Thread Erik Blankinship
How do you customize what is shown when view source is selected for an activity? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] view source

2010-08-30 Thread Erik Blankinship
. Check how Browse does it. On 30 Aug 2010 22:13, Erik Blankinship er...@mediamods.com wrote: How do you customize what is shown when view source is selected for an activity? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http

[Sugar-devel] flickering mouse in an activity on an xo

2010-08-29 Thread Erik Blankinship
I am experimenting with integrating the hamster graphics library into an XO activity. http://github.com/tbaugis/hamster_experiments/wiki ( found on the pycairo resources page: http://cairographics.org/pycairo/resources/ ) Because of the ease with which animation can be rendered with this library,

Re: [Sugar-devel] flickering mouse in an activity on an xo

2010-08-29 Thread Erik Blankinship
FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite

Re: [Sugar-devel] flickering mouse in an activity on an xo

2010-08-29 Thread Erik Blankinship
On Sun, Aug 29, 2010 at 1:51 PM, Gary Martin garycmar...@googlemail.comwrote: Hi Erik, On 29 Aug 2010, at 18:17, Erik Blankinship wrote: FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor

Re: [Sugar-devel] Recording time spent on an activity ?

2010-08-26 Thread Erik Blankinship
I like the badges idea, although it also suggests drill and practice. Your example of how often you share is a good counter to that knee jerk reaction, but meaningful data will be hard to gather automatically. Perhaps reputation systems like stackoverflow.com might be a good place for

Re: [Sugar-devel] xo colors gradients

2010-08-26 Thread Erik Blankinship
Also see http://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons (and maybe add your findings) Thanks for the link. I added a way to create the effect I had in mind using your suggested idea. I hope it is helpful to others in the future.

Re: [Sugar-devel] running sugar in jhbuild

2010-08-25 Thread Erik Blankinship
On Wed, Aug 25, 2010 at 5:35 AM, Simon Schampijer si...@schampijer.dewrote: On 08/24/2010 03:08 PM, Erik Blankinship wrote: Tomeu, thanks for looking into this. Is a workaround to install an earlier version of Fedora? Tomeu attached a patch to the ticket - works fine for me on F13 here

Re: [Sugar-devel] running sugar in jhbuild

2010-08-25 Thread Erik Blankinship
- sugar-jbuild cleanone GConf-dbus - remove the GConf-checkout Could you elaborate on this step? I am not 100% sure what to remove or how to remove it. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org

Re: [Sugar-devel] running sugar in jhbuild

2010-08-25 Thread Erik Blankinship
I continue to have trouble getting jhbuild to run. I hope the community can help me with installation best practices so that all new developers can easily contribute. I am on a fresh f13 installation on a laptop that has run sugar-jhbuild in the past. I removed my previous jhbuild and git'd a

Re: [Sugar-devel] running sugar in jhbuild

2010-08-24 Thread Erik Blankinship
Tomeu, thanks for looking into this. Is a workaround to install an earlier version of Fedora? On Tue, Aug 24, 2010 at 7:38 AM, Tomeu Vizoso to...@sugarlabs.org wrote: On Tue, Aug 24, 2010 at 05:01, Erik Blankinship er...@mediamods.com wrote: I setup a fedora 13 box tonight (nice, very easy

[Sugar-devel] xo colors gradients

2010-08-23 Thread Erik Blankinship
When I launch an activity, the SVG icon used to display my activity changes appearance by rendering with the XO colors. (1) Is there a way to render gradients using the fill color? For example, if the child's XO fill color is red, I would like to render an activity icon using a red gradient.

  1   2   >