Re: WebM format for Record

2011-04-08 Thread Erik Blankinship


 I do know that one thing that needs to be fixed is the preview image
 shown while the recording is being encoded is displayed in greyscale
 instead of color.


A note on this point from Eben:

https://dev.laptop.org/ticket/2585#comment:10

Busy Indication: When Record is switching modes, processing audio,
compressing video, etc, we would like to place a grayscale still of the most
recent video frame on screen, reducing the contrast a good deal so that it
is clearly inactive. This will take the place of any large clock/wait/busy
icons.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Possible XO Graphics Optimization Technique

2011-04-01 Thread Erik Blankinship
On Fri, Apr 1, 2011 at 11:02 AM, Samuel Greenfeld greenf...@laptop.orgwrote:

 Hello all:

 As many of you are aware, work is being done to improve the graphics
 performance of various XO laptop platforms.

 So in an attempt to improve things further, I looked into optimizing the
 data Sugar sends to the video subsystem itself.

 I think I have made some improvements, and put up some samples of my Sugar
 interface work at http://www.greenfeld.org/1April2011/ .  Feedback is
 welcome.

 But while I have drastically reduced the amount of bandwidth required to
 display the Sugar interface, I fear I have significantly increased the
 amount of power required for optimal rendering.


Yes, power consumption has been one of our greatest concerns as the pixel to
semicolon bump causes some serious strain.

The XO tablet's gpu will probably handle this going forward.

http://mediamods.com/sugar/record_ui.html
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: about about my xo

2011-03-04 Thread Erik Blankinship
Hi Chris!

I tried:

* Looking at an up-to-date activity for best practices.  In this case I
looked at TurtleArt 106 and saw this code:

from sugar.activity import activity
try:  # 0.86 toolbar widgets
from sugar.activity.widgets import ActivityToolbarButton, StopButton
from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton
NEW_SUGAR_SYSTEM = True
except ImportError:
NEW_SUGAR_SYSTEM = False

Alas, this did not provide the granularity I was hoping to find.  I can
however appreciate why this type of check might have been written to ensure
backwards compatibility.
* I looked in the book Make Your Own Sugar Activities! and the sugar
almanac but did not find the answer.
* Since I am not a system developer, I wrote to these lists to ask how an
activity developer should properly query this information.  When I find
myself breaking an abstraction barrier from activity into system I often
feel I have overlooked something or am building something fragile.  Thank
you for your answer.

It might be a good idea for the sugar api to make this type of information
readily available to developers in future releases.


On Thu, Mar 3, 2011 at 11:02 PM, Chris Ball c...@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 code lives
 * seeing if it exports this data to activities
 * if not, seeing if activities can get at it themselves

 And:

 * The code lives at sugar/extensions/cpsection/aboutcomputer/model.py
 * It does not obviously export data to activities
 * But it functions by reading files from the filesystem, and it looks
  like an activity could read the same ones.

 - Chris.
 --
 Chris Ball   c...@laptop.org   http://printf.net/
 One Laptop Per Child

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


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 bug is
 a show stopper for us. However, the ability to disable UI rotations
 would allow us to offer a nice experience on the XO.



Is there really no way to know when the Record activity is upside down on
the 10.1.3 xo (and as a result xvimagesink in the wrong place)?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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

2011-01-20 Thread Erik Blankinship
Am I correct that sugar and gnome can co-exist in two different ways right
now?

1. On a dual boot machine, probably an xo, where activities are installed
into /home/user/Activities/ where useris probably *always *olpc

2. Sugar as an application in gnome (within a Xephyr window) where
activities can be installed a few places, including
/home/user/Activities/

Next question.. am I correct that the *preferred *way for users to install
activities and applications is:

A. Sugar activities are installed via .xo bundles.

B. Gnome activities are installed via .rpm files.

Now, how should activity developers (who are not writing system libraries
like xulrunner or squeak) put their content so that their
activity/application can be viewed from both sugar and gnome?  I am asking
so children can avoid having redundant copies of files on every machine
running both gnome and sugar.  This is a real problem for content rich
activities with lots of media assets.

By default, an rpm file will install into /usr/lib/python/.  This is
obviously not where sugar looks for its activities.  If we could get an
'educational content' rpm to install its contents anywhere... where should
we put its assets so that they are automatically where they should be for
sugar too?  Any experts out there on rpm spec files?

Or is this a bad idea?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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 ~200mb
 xo bundle on the usb stick.  For gnome, this might be a ~200mb rpm on the
 usb stick.

 Do all activity and application developers have write access to any part of
 the system where they can add the libraries that they need to the system
 from either gnome or sugar side and then access if from either side?  Where
 and how should assets be installed?


The best practice I am concocting is that a developer put all assets
into ~/Actitivities/MyCoolActivity/

The xo bundle will obviously install and point there. Gnome .rpm
installations should point there too.

Hopefully it is straightforward to make the gnome rpm installation point and
run from this location.  Is there anything I should look out for before
going down this path?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/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 how to re-use the same
code base effectively?  Off the top of my head, how data is serialized is
handled differently between the two platforms.

This question is of particular concern to acti-plications with many media
assets, like some video games.  It would be nice to avoid file redundancy.
 Given the small size of the XO netbooks, I hope this question is on mark
for this community.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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  backend). Bert pointed out EToys.

 In all those cases, you get code reuse and a small Activity, but the
 activity completely depends finding the things it needs.


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?  Or can
cross-platform libraries be initially installed on the Sugar side too?

A related follow-up: does it make sense to put cross-platform dependencies
that a gnome activity would need into ~/Activities/MyCoolActivity.activity/
?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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?

 It's not technically at the gnome side... you have to install them in
 the system :-)


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 ~200mb xo
bundle on the usb stick.  For gnome, this might be a ~200mb rpm on the usb
stick.

Do all activity and application developers have write access to any part of
the system where they can add the libraries that they need to the system
from either gnome or sugar side and then access if from either side?  Where
and how should assets be installed?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


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

2010-12-10 Thread Erik Blankinship
Thank you for these suggestions.

It is sometimes a designer's prerogative to present their work in one
format.  Numerous examples are available on the iPhone and android markets.

Is it possible to override or be notified of a rotation signal?  Or is the
answer to really remap the display and input into my software, which seems
unfortunately complex.

*The following software has been modified from its original version. It has
been formatted to fit this screen.*

On Thu, Dec 9, 2010 at 7:45 PM, James Simmons nices...@gmail.com wrote:

 Erik,

 If you use PyGTK to develop your Activity there are Layouts which will
 arrange your controls on the screen to make the best use of the
 available space.  In this way the app is still usable with the screen
 rotated.  In View Slides I detect when the screen dimensions change
 and resize the image I'm displaying.  You might look at the code 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
 wrote:
  Is there a way to prevent a sugar activity from being rotated when there
 is
  a screen rotation event on an olpc-xo or other hardware which support
 screen
  rotation?
  ___
  Sugar-devel mailing list
  sugar-de...@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


prevent screen rotation in a sugar activity?

2010-12-09 Thread Erik Blankinship
Is there a way to prevent a sugar activity from being rotated when there is
a screen rotation event on an olpc-xo or other hardware which support screen
rotation?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


gstreamer, XV, and Automatic Power Management conflict

2010-10-29 Thread Erik Blankinship
[quoted below is a bit of conversation between myself and the helpful James
Cameron on sugar-devel regarding resuming gstreamer video playback from a
paused state]

 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 80 seconds and the video
 will go blank on its own.

 Is Automatic Power Management (My Settings, Power) enabled?
  ...
 I suggest the bug may be due to a conflict between Automatic
Power Management and the XV component of the X server.

And, indeed disabling Automatic Power Management fixes the problem.

Since it appears Automatic Power Management is on by default, I assume this
is a bug? ( I looked for this bug on devel.laptop, but did not readily find
it. )

How can I help to fix this bug?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: gstreamer, XV, and Automatic Power Management conflict

2010-10-29 Thread Erik Blankinship
On Fri, Oct 29, 2010 at 11:39 AM, Jon Nettleton jon.nettle...@gmail.comwrote:

 On Fri, Oct 29, 2010 at 8:33 AM, Erik Blankinship er...@mediamods.com
 wrote:
...
  I suggest the bug may be due to a conflict between Automatic
  Power Management and the XV component of the X server.
  And, indeed disabling Automatic Power Management fixes the problem.
  Since it appears Automatic Power Management is on by default, I assume
 this
  is a bug? ( I looked for this bug on devel.laptop, but did not readily
 find
  it. )

 What OS and or kernel are you running?  This was fixed previously with
 a patch to viafb.


Hopefully I am just out of date.

uname-r says:
2.6.31 xo1.5-20100823.1646.1.olpc.12d64069981699a

I am testing in both sugar (0.84.16) and gnome
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Script to install missing langs?

2010-10-18 Thread Erik Blankinship


 Yet, do we really need a copy of the english catalog for each existing
 en_XX variant? It seems like a big waste of space.


Where does a sugar activity developer specify that they've made an activity
in english?  Wouldn't you need that information before you cull?
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


question about bad cairo performance on the olpc xo

2010-09-02 Thread Erik Blankinship
I need help understanding why I am getting very poor frame rates when I use
pycairo to move a large image around the screen on an olpc XO.  When I use
pycairo to draw a rectangle of the same size on an XO, I get great
performance!  This is confusing to me because in my experience on other
platforms, redrawing vector graphics is much, much slower than blitzing
bitmaps to the screen.

Is there something particular about the XO hardware, its software stack, or
cairo which retards the performance of displaying images?  The same test
case runs fine on my desktop machine.

Thank you!  Below is testing code and here is a link if you'd like to try it
yourself in the gnome desktop on an XO (the same performance problems also
occur when run as part of a sugar activity):
http://alumni.media.mit.edu/~erikb/tmp/test.ziphttp://alumni.media.mit.edu/%7Eerikb/tmp/test.zip

software notes: click to change the rectangle paint mode.   Green is a cairo
vector rectangle.  Red-1 is a cairo image surface created by loading a png.
 Blue is a cairo generated image_surface.  Red-1 is a gdk pixbuf created by
loading a png.


import gtk, gobject

import cairo

class DragTest( gtk.DrawingArea ):

__gsignals__ = {
expose-event: override,
on-mouse-move: (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_PYOBJECT,)),
on-mouse-down: (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_PYOBJECT,)),
}

def __init__(self):
gtk.DrawingArea.__init__(self)
self.set_events(gtk.gdk.POINTER_MOTION_MASK |
gtk.gdk.BUTTON_PRESS_MASK)
self.connect(motion_notify_event, self.__on_mouse_move)
self.connect(button_press_event, self.__on_button_press)

self.box_w = 1210
self.box_h = 910

self.box_type = 0
self.box_x = 0
self.box_y = 0
self.cairo_img = cairo.ImageSurface( cairo.FORMAT_ARGB32,
self.box_w, self.box_h )
ctx = cairo.Context( self.cairo_img )
ctx.set_source_rgb( 0, 0, 1 )
ctx.rectangle( 0, 0, self.box_w, self.box_h )
ctx.fill( )

self.cairo_file_img = cairo.ImageSurface.create_from_png( bg.png )

self.pixbuf = gtk.gdk.pixbuf_new_from_file( bg.png )


def __on_mouse_move(self, area, event):
self.box_x, self.box_y, mods = self.get_window().get_pointer()
self.queue_draw( )

def __on_button_press(self, area, event):
self.box_type += 1
if (self.box_type  3):
self.box_type = 0
self.queue_draw( )


def do_expose_event(self, event):
context = self.window.cairo_create()

# clip to the visible part
context.rectangle(event.area.x, event.area.y,
  event.area.width, event.area.height)
context.clip()

if (self.box_type == 0):
context.set_source_rgb( 0, 1, 0 )

elif (self.box_type == 1):
context.set_source_surface( self.cairo_file_img, self.box_x,
self.box_y )

elif (self.box_type == 2):
context.set_source_surface( self.cairo_img, self.box_x,
self.box_y )

elif (self.box_type == 3):
context.set_source_pixbuf( self.pixbuf, self.box_x, self.box_y )


context.rectangle( self.box_x, self.box_y, self.box_w, self.box_h )
context.fill( )


window = gtk.Window()
window.set_size_request( 1210, 910 )
window.connect( delete_event, lambda *args: gtk.main_quit() )
window.add( DragTest() )
window.show_all()
gtk.main()
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Feedback on Measure (was Re: Another pass through some basic Activity test results)

2008-09-29 Thread Erik Blankinship
 Do you need to do that for each window? Why don't you just listen for
 that signal in just the main activity window and stop everything when
 gtk.gdk.VISIBILITY_FULLY_OBSCURED and resume when otherwise?



Full screen modes in Record completely obscure the main activity window.

We don't just listen for visibility events on the video windows because
sometimes these are fully obscured (when transcoding, for example).

Therefore we listen on both the main activity window and the video windows,
and in consultation with the activity's current state (fullscreen, normal,
transcoding), decide if Record is the current activity.

I've never fully understood the rationale for why the sugar api does not
alert activities as to when they are active or not, thereby saving all
activity authors these hassles.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Another pass through some basic Activity test results

2008-09-29 Thread Erik Blankinship

 In Sugar, there's always one and only one active activity. You can see
 which it is by looking at the icon below the XO in the favorites view
 or by looking at the selected activity button in the top frame. This
 is the activity that will be brought to the front when you go to the
 Activity zoom level.

 I'm guessing Measure uses its active activity status to decide if it
 should update itself or not, but from earlier emails I think the
 desired behavior is rather to stop updating while the activity window
 is not visible. For this, the activity author can use the information
 that the window manager (or is it X?) provides to each top level
 window, in pygtk:


 http://pygtk.org/docs/pygtk/class-gtkwidget.html#signal-gtkwidget--visibility-notify-event

 Just listen for that signal and check the value of event.state, it can
 be one of gtk.gdk.VISIBILITY_FULLY_OBSCURED,
 gtk.gdk.VISIBILITY_PARTIAL or gtk.gdk.VISIBILITY_UNOBSCURED. You will
 want to stop updating the screen when fully obscured and update it
 otherwise.

 Faisal, could you please update the almanac with this info?


The basics of this idea are in the almanac:

http://wiki.laptop.org/go/Sugar_Almanac#How_do_I_know_when_my_activity_is_.22active.22_or_not.3F
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Feedback on Measure (was Re: Another pass through some basic Activity test results)

2008-09-29 Thread Erik Blankinship

 Is there any particular reason why Record does not use a single window?



Record's GUI overlays widgets on top of video windows.

This is how we create the picture in a picture effect (using XV in a
window) and also how we add the fullscreen toggle button.  GTK doesn't play
well with overlapping widgets -- gtk.Fixed() doesn't guarantee Z-order.  So
we use a stack of gtk.Windows without decoration.

Unfortunately, when we put xv video into a widget (e.g. gtk.DrawingArea with
a gstreamer xvimagesink) into a gtk.Fixed, that widget's video always
displays on top of other widgets, regardless of its z-order.

It was recommended at one point to create a new version of gtk.Fixed that
guarantees z-order, but the use of gtk.Window was well underway and works.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Feedback on Measure (was Re: Another pass through some basic Activity test results)

2008-09-28 Thread Erik Blankinship
 On Sun, Sep 28, 2008 at 6:02 AM, Gary C Martin [EMAIL PROTECTED]
wrote:
  On 26 Sep 2008, at 19:31, Arjun Sarwal wrote:
 
  2008/9/26 Gary C Martin [EMAIL PROTECTED]:
 
  Here's a set of basic Activity test results for build 8.2-763, hope
the
  ASCI
  art doesn't get too mangled by the list server (need to view with a
fixed
   Measure-20 . . - . x x x . x Doesn't sleep when Activity is in
the
background (eats 75% cpu). Can't
seem
  to
record anything. Keep error when
 
  -- When Measure is in background and some other Activity comes in
  foreground, then Measure releases sound device - you can record sound
  using any other program/application. In this state Measure also
  doesn't hog CPU.
 
  Just testing with Measure-21 and 8.2-765, yes I see this now. However
  switching to any of the Neighborhood/Group/Home views does not seem
count as
  putting Measure into the background, it still consumes the cpu and
claims
  the sound input device. I'm guessing this is a Sugar behaviour? Is this
a
  bug or a feature (feels like a Sugar bug that would make the UI sluggish
for
  no go reason)?

 See #7856. Seems like a Sugar related issue to me. I had borrowed the
 code and concept from Record activity, which now apparently uses some
 other method to determine switch of view/context/activity.( I think
 they detect whether one of the main gtk widgets is the topmost or not
 etc. not sure) I should try exploring that. Any help on this would be
 great.

Record listens for visibility-notify-event:

self.playOggWindow.add_events(gtk.gdk.VISIBILITY_NOTIFY_MASK)
self.playOggWindow.connect(visibility-notify-event, self._visibleNotifyCb)

Because Record has many different windows, we listen on each window and run
through a series of checks on the callback to determine if it is the active
activity anymore.

Be sure to look out for #5500 when trying to get access to a resource like
the camera or microphone.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Sugar activity development (record)

2008-08-24 Thread Erik Blankinship
On Mon, Aug 11, 2008 at 3:55 PM, Morgan Collett [EMAIL PROTECTED] wrote:
 Hi Erik

 I'm reaching out to Sugar (OLPC) activity authors and maintainers to
 find out where things are at, and to try and improve communication in
 the development community. We have some information to get out such as
 API changes, ways to publish activities, etc and I'm trying to find
 the best ways of getting information out to those who are interested.

 This is a personal mail, not autogenerated but I am sending a lot of
 these out so please forgive some copy/pasting and generic
 information...

 I would appreciate your answers to the following:

 * Are you the best contact for record? (I know Daniel Drake's been
 working on it lately.)
 - Are there any other developers / maintainers I should also contact?

While we have not been actively working on Record lately, we should be kept
in the loop as we've a good sense as to why many things are built as they
are.  Our alias, [EMAIL PROTECTED], is a good contact.


 * To which of the following mailing lists are you currently
 subscribed, if any? (I'd prefer to avoid cross-posting technical info
 to all lists, and some developers may no longer be on any of them...)
 - devel@lists.laptop.org
 - [EMAIL PROTECTED]
 - [EMAIL PROTECTED]
 - [EMAIL PROTECTED]
 - [EMAIL PROTECTED] (formerly
 [EMAIL PROTECTED])
 - any other olpc or Sugar related lists?

Yes, and yes, and yes, and yes.

 * Are you aware of Sugar's new home at http://sugarlabs.org as an
 upstream project?

Yes, we've read about this plan.

 * Are you aware that OLPC builds no longer contain any activities, but
 do now have an easy way to install and update activities through the
 control panel, provided you follow certain procedures in publishing
 releases?

Yes.

 * Are you still maintaining your activity actively, occasionally, or not
at all?

Occasionally.

 * If you are able to maintain it actively, we invite you to propose
 your activity to be part of Fructose (see
 http://sugarlabs.org/go/Taxonomy) and following the SugarLabs sucrose
 release cycle: http://sugarlabs.org/go/ReleaseTeam#New_activities

 * If not, would you actively publish new releases if others sent you
 patches, or would you prefer that someone else adopted maintaining it?
 (And why are you no longer maintaining it?)

For now, it might be best if someone else maintained this project
day-to-day.
We have plans for enhancements in the future we will contribute.

 * What was the most recent OLPC build you tested your activity on?
 - older than 650 (Update.1)
 - 650-656
 - 703 (Update 1.1, or release 8.1.0)
 - 708 (release 8.1.1)
 - joyride 1xxx
 - joyride 2xxx (specify if possible?)

All of these.

 * In what ways do you need assistance with continued
 development/maintenance of your activity?

Platform stability :-)

 * How could we improve communication with activity authors?

I think you are doing a good job.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Project Name: olpc-bundler has been set up

2008-08-14 Thread Erik Blankinship
On Thu, Aug 14, 2008 at 1:50 AM, Martin Langhoff
[EMAIL PROTECTED]wrote:

 2008/8/14 Samuel Klein [EMAIL PROTECTED]:
  There isn't an api for activity authors; however /home/olpc/Library (like
  /home/olpc/Activities) and subdirs are world-readable, so there probably
  should be.


Yes, that might be useful to activity developers.

Access to bundle-information could lead to the creation of activities that
compare data within the bundles.   Or, for example, activities to generate
quizzes from any content bundle.  Is there a straightforward way to access
information, such as,
http://dev.laptop.org/~arael/preview/world_factbook/world_factbook.xol/print/ao.htmlhttp://dev.laptop.org/%7Earael/preview/world_factbook/world_factbook.xol/print/ao.html,
to create questions like: What is the length of the coastline of Angola?  I
hope so, that would be really cool!
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] Sugar Almanac Update - Using Pango, Internationalization

2008-07-17 Thread Erik Blankinship
I've also written up an updated set of steps to internationalize your
 activity based on the instructions at
 http://wiki.laptop.org/go/Python_i18n and my own experience getting text
 to translate.


I think Faisal's url is:

http://wiki.laptop.org/go/Internationalization_in_Sugar
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Record app in joyride 1927 has problems

2008-05-05 Thread Erik Blankinship
On Sun, May 4, 2008 at 9:05 PM, Chris Ball [EMAIL PROTECTED] wrote:

 Hi,

The record app still does not respond as I expected.  It
powers up, but it used to show live video from the default display.
Now it just snaps a picture as it is powering up and shows me that.

 This is http://dev.laptop.org/ticket/6850.

 Mediamods folks, any idea what's up?


We've not changed anything in a while...
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Items for update.1 RC3

2008-02-12 Thread Erik Blankinship
 Record-52.xo http://dev.laptop.org/ticket/4525


If it is approved, Record-53.xo http://dev.laptop.org/ticket/6417
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: empty po files

2008-02-06 Thread Erik Blankinship
On 2/6/08, Jani Monoses [EMAIL PROTECTED] wrote:

 Hello,

 building the calculate activity for Ubuntu I noticed it failed because
 the th.po file is empty. Reported here
 http://dev.laptop.org/ticket/6357

 Is there something in the software that does the automated imports of
 translations, that can prevent this from happening in general?



We ran into problems with some.po files whose translations modified
variables in strings (making them unparsable).
The solution we came up with serves two functions:

   1. it is compatible with setup.py genpot (since we use _
   2. protects against unparsable translations / prevents crashes

If unable to parse the string, we default back to the original language (not
optimal, but better than crashing).

Here's some code:

from gettext import gettext as gt

#defensive method against variables not translated correctly
def _(s):
#todo: permanent variable
istrsTest = {}
for i in range (0,4):
istrsTest[str(i)] = str(i)


i = s
try:
#test translating the string with many replacements
i = gt(s)
test = i % istrsTest
except:
#if it doesn't work, revert
i = s

return i


Use the returned value from this method when you need internationalized
strings in your app.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: T-Mobile Hotspot access?

2008-01-02 Thread Erik Blankinship
If we've recycled our shipping box already do we call brightstar or fedex or
olpc or who to get our reference number?  I can't seem to find it in any
emails, but maybe I am not looking in the right place.  -- Erik


On 12/26/07, Jeffrey Kesselman [EMAIL PROTECTED] wrote:

 Ah thank you.  It the OLPC PO# in the email and on the box.

 This isnt real explicit in the emails that get sent. :/

 JK

 On Dec 26, 2007 12:11 PM, Walter Bender [EMAIL PROTECTED] wrote:
  Please see
 http://wiki.laptop.org/go/Support_FAQ#How_do_Give1Get1_donors_access_their_free_year_of_T-Mobile_wireless_Internet.3F
 
  -walter
 
  On Dec 26, 2007 11:45 AM, Jeffrey Kesselman [EMAIL PROTECTED] wrote:
 
   Hey Guys,
  
   This probably ISNT the right place for this question but maybe you
   could redirect me?
  
   I bought a G1G1 but I still havent recieved a key for the T-Mobile
 access.
  
   Who do I ask about that??
  
   Thanks
  
   JK
  
  
  
   --
   ~~ Microsoft help desk says: reply hazy, ask again later. ~~
 
   ___
   Devel mailing list
   Devel@lists.laptop.org
   http://lists.laptop.org/listinfo/devel
  
 
 
 
  --
  Walter Bender
  One Laptop per Child
  http://laptop.org
 



 --
 ~~ Microsoft help desk says: reply hazy, ask again later. ~~
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cerebro: Scalable presence information

2008-01-02 Thread Erik Blankinship
eXcellent name choice!


On 12/31/07, Polychronis Ypodimatopoulos [EMAIL PROTECTED] wrote:

 Announcing Cerebro - http://cerebro.mit.edu

 Cerebro is a scalable, light-weight protocol that allows 802.11b/g
 devices to form a mesh network. Cerebro has the following advantages:

 - It provides presence information about 100 nodes using only a single
 frame per 10 seconds, per node.
 - It runs on _any_ 802.11b/g device (tested on XO, Ubuntu, Nokia N800)
 - It can (but not yet) provide routing information within the mesh
 network that is formed by regular wifi devices.

 Demo:

 http://lyme.media.mit.edu:8000/

 The simulation running here shows 50 simulated nodes and a real one
 (shown in the center of the screen). The nodes within the same group are
 all in range with each other, but each group is not in range with other
 groups. As a result, nodes within the same group are placed close
 together, whereas different groups are placed as far apart as possible.
 All nodes have information about presence and distance for every other
 node.


 There are 50 nodes simulated in 8 groups of 5 nodes and 1 group of 10
 nodes. Although the presence algorithm scales quite well, the
 visualization does not scale as well (yet :-). Therefore, only the first
 20 nodes are displayed properly, while the rest are simply put in the
 list on the right.


 A sugarized version of the UI will follow soon!

 Enjoy!

 Pol


 --
 Polychronis Ypodimatopoulos
 Graduate student
 Viral Communications
 MIT Media Lab
 Tel: +1 (617) 459-6058
 http://www.mit.edu/~ypod/ http://www.mit.edu/%7Eypod/

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: downloading all .po files?

2007-12-21 Thread Erik Blankinship
Not needed immediately, just wondering if I was missing a download all
widget in the interface.

Thanks!
Erik

On 12/21/07, Sayamindu Dasgupta [EMAIL PROTECTED] wrote:

 Do you need it immediately? I was planning to send you a tarball of
 all the translations sometime tomorrow. If you need it now - let me
 know - and I'll send you the tarball.
 I'll probably try to come up with a better system soon, which lets you
 download the tarball without manual intervention.
 Thanks,
 Sayamindu


 On Dec 21, 2007 11:38 PM, Erik Blankinship [EMAIL PROTECTED] wrote:
  Hello
 
  Thank you for organizing all of the translations for Record.
 
  How do I download each .po file from dlo/translate?  Do I have to
 download
  each one individually or is there an option to get all of Record's .po
  files in one bundle?
 
  Thanks
  Erik
 



 --
 Sayamindu Dasgupta
 [http://sayamindu.randomink.org/ramblings]

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: LOLPC

2007-12-15 Thread Erik Blankinship
... and in a similar vein:

http://cfrey.us/~erikb/ODDPC/


On 12/15/07, C. Scott Ananian [EMAIL PROTECTED] wrote:

 On Dec 15, 2007 1:14 AM, Ivan Krstić [EMAIL PROTECTED]
 wrote:
  http://live.laptop.org/~krstic/lolpc.jpg
 
  It had to be done.

 One Laptop Per Cat!
 --scott

 --
  ( http://cscott.net/ )
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Help wanted: video demo!

2007-12-11 Thread Erik Blankinship
On 12/11/07, C. Scott Ananian [EMAIL PROTECTED] wrote:

 We need a demo which shows off the full-screen video capabilities of
 the XO.  Unfortunately, Record compresses its input rather heavily, so
 it's not a great demo for video playback.  We bundle the Ogg Theora
 codecs, and Browse can play media files full-screen, so the first step
 is for someone to invest some time in transcoding an appropriate demo
 movie (I suggest
 http://www.elephantsdream.org/ -- some ogg transcoding linked from
 http://wiki.xiph.org/index.php/Elephants_Dream ) to an appropriate bit
 rate / size for the XO.  Make it look good!

 It may be that we need to find a higher-performance (but still free)
 codec or some such to make this really look good.  Help here could be
 useful, too.


To handle most any digital video format, Quicktime would be easiest to get
started.

   - Encode your existing files into DV (using Quicktime pro).
   - Use gstreamer to encode into ogg files:

gst-launch-0.10 filesrc location=grover.dv ! dvdemux ! dvdec !
ffmpegcolorspace ! theoraenc ! oggmux ! filesink location= grover.ogg

Of course you will want to alter settings to change the file size, rate,
etc.  You would make these changes in the gstreamer pipeline or in quicktime
as a pre-processing step.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Help wanted: video demo!

2007-12-11 Thread Erik Blankinship
 Does Erik's
 transcoding mechanism work to get it out of RV format?


I don't believe there is a real component for a gstreamer pipeline.

You would want to use the highest quality originals anyway.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: ip4-address buddy property - still needed?

2007-10-30 Thread Erik Blankinship
While I welcome the new activities and think it is great to integrate them
into sugar, can we reconsider completely doing away with the dev console?
It is /very/ useful to have the console open on an xo while the activity you
are debugging is running behind it.

Can't you have both the old console and the new activities?



On 10/30/07, Eduardo Silva [EMAIL PROTECTED] wrote:

 Please check: http://wiki.laptop.org/go/Developer_Environment

 On 10/30/07, Marco Pesenti Gritti [EMAIL PROTECTED] wrote:
  On 10/30/07, Sjoerd Simons [EMAIL PROTECTED] wrote:
   On Fri, Oct 26, 2007 at 01:18:17PM -0400, Michail Bletsas wrote:
At this point in time, having as much debug info available in the
developer console without having to remember which command-line tool
provides what, is crucial for collecting problem reports from
 non-expert
users and I would request that the IPv4 information remains where it
 is.
  
   Apparently the developer console is going away. Or at least it's not
 part of
   the latest joyride builds. So you can't collect your info anymore this
 way.
 
  It's on the build actually but it's not working. It will be replaced
  shortly by a couple of activities. (Log and Analyze).
 
  Marco
  ___
  Devel mailing list
  Devel@lists.laptop.org
  http://lists.laptop.org/listinfo/devel
 
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New joyride build 173

2007-10-30 Thread Erik Blankinship
I apologize if I missed the announcement on how activities get into the
various new builds.

In the past, we would assign trac tickets to J5.

What do we do now?

On 10/30/07, Build Announcer Script [EMAIL PROTECTED] wrote:


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

  Analyze-2.xo
  Log-2.xo
  Terminal-1.xo
  Terminal-2.xo
  Write-48.xo
  Write-49.xo

 --- Analyze-2 ---
* New X Server Interface

 --- Log-2 ---
* Drop presence and network interfaces

 --- Terminal-2 ---
* Go to home user directory
* Decrease font size

 --- Write-49 ---
   * Enable/disable the search functions based on the input (uwog)
   * Support for searching text (foddex, tiny bit of uwog)
   * Support custom keybindings (foddex)

 --
 This email was automatically generated
 Aggregated logs at http://dev.laptop.org/~bert/joyride-pkgs.html
 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: #3631 HIGH First D: Need fullscreen mode

2007-09-26 Thread Erik Blankinship
On 9/26/07, Eben Eliason [EMAIL PROTECTED] wrote:

 Erik -

 You have implemented this floating button in Record.  Do you have
 insight into how this would be done and/or how hard it would be to do
 in this context?

 Thanks!



We use a gtk.Window to float our maximize button over the live video.  We
set the window to undecorated so it won't have a frame.

Erikos, if you like, I can point you to the relevant code.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How does record activity the camera in Sugar?

2007-09-05 Thread Erik Blankinship
From the terminal, can you run:

gst-launch-0.10 v4l2src ! xvimagesink

and report if you get the same problem?

Also, try:

gst-launch-0.10 videotestsrc ! xvimagesink

I look forward to the results of these tests.

Thank you,
Erik

On 9/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Sorry, I forget to say.

 In the Nand flash image is 542.

 But I use USB whose image is 515 to boot, has the same event.

 Luna


   --

 *From:* Erik Blankinship [mailto:[EMAIL PROTECTED]
 *Sent:* Wednesday, September 05, 2007 9:02 PM
 *To:* Luna Huang (黃綉玲)
 *Cc:* devel@lists.laptop.org
 *Subject:* Re: How does record activity the camera in Sugar?



 Good morning Luna

 Can you please take a photograph of your XO (with another camera), so that
 we can see the visual problem?

 Also, which build are you using?

 Thank you
 Erik

 On 9/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 There is one question need someone tells me.

 How does record activity the camera in Sugar?

 I have one C test machine which has question.

 When I open record item, can fine there are some straight lines on left
 of a real-time display of the camera's input being shown.

 The lines are highly concentrated to make the left of portrait is
 indistinct.

 And all of real-time display has noise to make display is disturbance.

 Use test /camera on OFW, I did not fine the event.

 I have done the memory test mem86 is no problem.

 Boot from USB, the event also exists.

 I think it is HW question. But I don't know there has different between
 record and OFW.

 Please give idea to help me analysis quick.

 Thanks.

 Best Regards,

 -

 Luna Huang / 黃綉玲

 *Quanta EPBU*

 Software Dept. *Engineer*

 Tel : 886-3-327-2345 EXT:18921




 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: How does record activity the camera in Sugar?

2007-09-05 Thread Erik Blankinship
The first command will run the camera data directly to the xv image sink via
gstreamer (a video application framework used by the Record activity).  We
can diagnose where the problem is better when we see the result of this
test.

The second command will run a test pattern directly to the xv image sink.
If we get the same visual problem with the test patter, we might be able to
rule out the camera as the culprit.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel