Planet Sugar

Planet Sugar is a collection of personal blogs by Sugar Labs contributors. Sugar Labs is a world-wide organization of passionate people working together to solve the same problem: giving everyone an opportunity to learn to learn. Our community members write about what excites them about learning, Sugar, and the Sugar community. In the spirit of free software, we share and criticize—that is how we learn and improve and encourage participation by newcomers. Enjoy and join the conversation.

October 01, 2014

Walter Bender

Sugar Digest 2014-10-01

Sugar Digest

1. September was an exciting month. We held the first Sugar Youth Summit in Montevideo, organized by Daniel Francis and Jose Miguel Garcia and generously hosted by ANEP. The event featured a day-long symposium and series of workshops, including ones on Turtle Art, Butia, and how to write a Sugar activity. One teacher who attended the Turtle Art workshop exclaimed that she could not believe the progress she made.

The event was attended by youths from Uruguay and Paraguay and educators and developers from as far away as Nicaragua and Colombia. We had an Argentine contingent as well.

The symposium and workshops were held on Software Freedom Day. Given the number of Python programmers in attendance, it occurred to me that we should petition the city of Montevideo to rename itself Monty Python (after whom the language was named) for Software Freedom Day each year.

The day before the symposium Gonzalo Odiard, Mariana Herrera, Jose Miguel, and I visited a school for children with special needs. As a result, during the code sprint that followed the symposium, we wrote three new activities that have their content and user interface tailored to the school’s population. Lorena Paz from Argentina, also in attendance, resurfaces a number of issues around accessibility that we will consider in the coming months as well.

Coincident with the weekend of hacking was a robo-Sumo contest at FING. It was a good opportunity to spend time with Andres Aguirre and Alan Aguiar of Butia fame and to recruit some new talent. Several of the more competitive kids joined us in the workshops. They took a special interest in Turtle Blocks 3D, one of the Google Summer of Code projects that is coming into its own.

Gonzalo and I also got a chance to meet with a group of teachers convened by Jose Miguel at his office at ANEP. These teachers are engaged in various project-based learning initiatives across the country. Really good work — utilizing the computer as a tool to enhance authentic inquiry by the children. I look forward to continued interactions with them.

2. At the workshop, Martin Abente presented the initial plans for Sugar 104. (Martin has generously offered to be the release manager.) The new features under consideration can be found at 0.104/Feature_List.

We’ll be discussing these features in an online meeting on 2 October at 13 UTC. Please join us on irc.freenode.net #sugar-meeting.

3. I’ve been working on polishing up the Turtle Blocks 3D code over the past few weeks. There are a number of improvements from where we (Anubhav and I) left things this summer. Notably, the interface between Turtle Blocks and Blender is much richer. You can export .OBJ files from Turtle and import them into Blender and export .OBJ files from Blender and import them into Turtle. Currently I am working on adding a 3D cursor, which I designed and rendered in Turtle Blocks 3D itself. See http://github.com/Anubhav-J/turtleart.git for a preview.

4. I’ve been working on a new activity similar to the Portfolio activity that is geared towards reflection. Like Portfolio, it draws upon Journal items that have been starred. It also allows the user to create reflections unrelated to any Journal items. The presentation is quite different from Portfolio, which is modeled after a slide show. Reflect is more like a stream, similar to the news feeds in Facebook and Google+. The stream supports comments and attaching media, and it can be searched by #tags. A preview is available at http://github.com/walterbender/reflect.git. Feedback most welcome.

5. It is time to begin preparing for the annual Sugar Labs Oversight Board election (AKA SLOBs). Four (4) seats are open (due to staggered seat terms) for election / re-election to the Sugar Labs Oversight Board for 2013-2014, those of Daniel Francis, Gonzalo Odiard, Adam Holt, and Claudia Urrea. Please let me know if you are interested running for one of our board seats and also, please add your self to the candidates’wiki page. Also, since only members receive ballots, please be sure to sign up for membership by following the instructions in the wiki. Finally, we need help running the election itself. Please contact me (or Luke Faraone) if you are interested in helping.

In the community

6. Several of us will be in the Bay Area for the Google Summer of Code summit in late October. In conjunction with that event, we’ll be holding a code sprint to look at the collaboration stack.

7. The next Turtle Art Day event will be a workshop at Prospect Hill Academy in Somerville. Caroline Meeks is hosting the event. I’ve been busy making Sugar-on-a-Stick USB keys to give the kids. (I’m using Ruben Rodriguez’s Trisquel TOAST image, which has an up-to-date copy of Turtle Blocks.)

We are also planning a Turtle workshop in San Francisco in October.

Tech Talk

8. Lionel Laské recently announced the fourth version (0.4) of http://sugarizer.org Sugarizer, a taste of Sugar for any device. Sugarizer reproduces the main features of Sugar in HTML5/JavaScript. It is available from a browser or as an Android application. Lionel presents Sugarizer in a talk at SugarCamp Paris.

9. Sebastian Silva and Laura Vargas recently announced that > 20000 children are now using Sugar Network. Tip of the hat to Aleksey Lim who has been working diligently behind the scenes on the project.

Sugar Labs

10. Please visit our planet at http://planet.sugarlabs.org.

by Walter Bender at October 01, 2014 05:23 PM

September 29, 2014

OLE Nepal

Exploring faraway land in far west

This was my second visit to Bajhang. The first one was about three months ago where we went to train the teachers from 10 different schools on using laptops and implementing the ICT based education. This visit was intended for the further enhancement of the teachers’ skill towards integrated teaching via in-school training. In addition [...]

by Bibek Maharjan at September 29, 2014 11:18 AM

September 25, 2014

Somos Azucar

Resumen de actividades Laboratorios Azúcar September 25th

Hola,
Este es el resumen de actividad para la comunidad Laboratorios Azúcar.

Éste se compone de una agregación de fuentes como nuestro gestor de tareas, Wiki, y blogs.

Puedes publicar un comentario o participar de diferentes formas.

Si tienes una noticia o una fuente que deberíamos incluir (como un blog, etc), avísanos a todos(arroba)somosazucar.org

Hubo 11 eventos esta semana.

generic (feed #9)
generic (feed #9)
generic (feed #9)
generic (feed #8)
generic (feed #8)
blog (feed #5)
generic (feed #8)
blog (feed #5)
generic (feed #9)
generic (feed #8)
generic (feed #8)

by operador del sitio at September 25, 2014 12:32 AM

September 22, 2014

Porting Sugar to Python3

GSoC 2014 - Porting to Python3 Round Up

Hello Everyone,

This is my round up post for my GSoC 2014 - Porting to Python3 Project.

I know I am almost a month late but it's better late than never i guess.
Just after the GSoC coding period was over my internet broke down and I was completely without internet for almost two weeks and just after that I got busy with my exams. My exams finished yesterday, so here I am today.

When I started the project I expected to complete it even before the deadline, but the more I got into it I realized how wrong I was. The actual changes I made were trivial Python3 syntax changes but finding where the problem was kind of difficult because of the subtle differences between Python2 and 3 due to which building the modules wouldn't completely stop but gave unexpected results. So most of my time this summer went into researching, debugging and handling multiple modules together.

So, in the beginning of the project i researched the changes that needed to be made from Python2 to Python3 then i started with porting sugar-build to Python3 which took quite some time because it was the first module. All the modules that I ported and the changes I made can be found in my previous posts.

I also researched the changes that needed to be made in telepathy-python which is now deprecated and not compatible with Python3.Basically , we would need to replace telepathy-python with gobject-introspection in sugar in order for everything to work correctly in Python3.
By the end I was able to port and build all the modules of sugar except sugar-datastore to Python3. Now all those modules are compatible with Python2 as well as Python3.

Although this is a big step in the right direction , it will still take along time to completely shift all the sugar modules to Python3.

In the end I just wanna thank the Sugarlabs for making me a part of their community and specially my mentors Walter Bender, Gonzalo Odiard and Sameer Verma for helping me with any problems that I faced.

Although I think that I could have learnt a lot more if I had a more personal and bonding interaction with any of my mentors but I still learnt a lot during this summer and I am grateful for that.
I'll also try to stay in touch with the happenings of Sugarlabs and try to contribute whenever possible.

I guess that's it for today , thanks for reading and goodbye!

by kunal arora (noreply@blogger.com) at September 22, 2014 03:13 PM

September 19, 2014

Somos Azucar

Perú, un despliegue innovador

Somos Azúcar y la Dirección General de Tecnologías Educativas del Ministerio de Educación de Perú, colaboran desde 2012 en el proyecto de diseño, confección y soporte de una imagen de sistema operativo “customizada” para las máquinas XO distribuidas en Perú.

A ésta imagen le hemos llamado Hexoquinasa, nombre de una enzima del cuerpo humano que ayuda a digerir el azúcar :O)

El objetivo del proyecto Hexoquinasa es optimizar la experiencia de los usuarios de Sugar en la región, inicialmente aquellos localizados en Perú. Con esta directriz en mente se trabajó en una imagen instalable en las laptops XO, que incluyera una versión estable y actualizada del software Sugar, las respectivas traducciones de Sugar a Quechua y Aymara y especialmente un acceso desde el mismo Sistema Operativo a la Red Azúcar; una red socio-educativa descentralizada que permite a los educandos compartir y colaborar en la produccion de recursos educativos abiertos (REA).

El proceso de distribución de Hexoquinasa inició en 2014 con el año escolar. En lo que va corrido del año y de manera orgánica, la Red Azúcar ha sido escenario de la creación de cientos de contextos, recursos y artefactos en su mayoría relacionados con el cuidado del medio ambiente y el fomento de buenas prácticas en las Instituciones Educativas.

Hoy 19 de Septiembre, en la comunidad de desarrollo estamos celebrando los primeros 20.000 usuarios beneficiarios de la Red, que gracias a la apropiación de estudiantes, profesores y padres de familia, se ha convertido en un valioso espacio de libre intercambio de conocimiento y un verdadero ejemplo a seguir para los demás despliegues de la región.

Aquí les comparto algunos de los contextos que más me han impactado:

La Canción Te quiero, te cuido
La Tierra, La vida es un regalo
Basta de Bullying!!!!

Sobre los próximos pasos del proyecto

La Red Azúcar está en continuo proceso de mejoramiento. Al ser un proyecto de espíritu comunitario, permite la integración de múltiples perfiles técnicos y pedagógicos en el proceso de aprendizaje de los educandos.

Con la ayuda de los docentes de Perú, hemos identificado varias funcionalidades candidatas a ser implementadas; desde la posibilidad de integrar recursos gráficos a los artículos de texto hasta la producción de imágenes con acceso a la Red Azúcar instalables en computadoras convencionales.

Sin embargo el paso más significativo para el proyecto Red Azúcar será la integración de nuevos despliegues (¡nos referimos a ti!) que deseen formar parte de esta comunidad de libre intercambio de conocimiento.

En el desarrollo de Hexoquinasa se ha hecho un esfuerzo por atender las necesidades de los diferentes actores del sistema educativo, llevando a cabo el desarrollo con una metodología “abierta”, tanto en su definición de objetivos, seguimiento de incidencias, publicación de código, y estadísticas de uso.

Si te interesa involucrarte con el diseño y desarrollo continuo de este proyecto, te recomendamos unirte al grupo de discusión “Sugar Network” y compartirnos tus propuestas.
Si eres miembro del equipo de soporte o administración de un despliegue y deseas explorar la imagen Hexoquinasa 1, puedes obtenerla en la página de descargas del proyecto.

by kaametza at September 19, 2014 08:12 PM

September 17, 2014

OLPC San Francisco blogs

OLPC San Francisco Community Summit 2014 - Call for Proposals

Call for proposals is now open.

http://www.olpcsf.org/CommunitySummit2014/proposal

This is a proposal submission for an *online* summit.  Each accepted proposal will be organized to run online via Google Hangout. You will need a Google (gmail) account and a computer with a webcam, microphone and speakers (or headphones) for this. Multiple people will present in a session (approx. 2 to 4) so keep that in mind. Think of it as a conversation between the presenters where "viewers" get to watch live via Youtube. Viewers will participate via chat. The session will also be recorded for viewing on Youtube later.

To see an example of this format, take a look at http://summit.ubuntu.com/uos-1406/meeting/22284/introduction-to-lubuntu/

http://www.olpcsf.org/CommunitySummit2014/proposal

by sverma at September 17, 2014 07:52 PM

September 08, 2014

Sugar Labs Argentina

Cumbre Juvenil - Montevideo, Uruguay (September 20 a 23 de 2014)

Comparto invitación al evento

Queridos colegas,
ANEP (Administración Nacional de Educación Pública) y Sugar Labs se han propuesto organizar una Cumbre Mundial Juvenil de Programadores, un lugar de encuentro entre jóvenes de distintas partes del mundo que se encuentran trabajando en el desarrollo de software. Aprovechando este espacio de encuentro, queremos convocar a líderes de programas educativos interesados en el potencial que la tecnología tienen en el aprendizaje, y el promover participación auténtica de los estudiantes en este contexto.

Quiénes deben participar:
- Jóvenes de los diferentes programas educativos, que se hayan destacado por su interés en la programación y/o que hayan realizado contribuciones concretas al desarrollo del ambiente de aprendizaje Sugar.
- Líderes de los programas, interesados en participar en una serie de reuniones estratégicas para definir el futuro del ambiente de aprendizaje Sugar.

Por qué participar en este encuentro:
- Para trabajar y aprender con jóvenes desarrolladores de Python, reconocidos internacionalmente,
- Ayudar a definir el futuro del ambiente de aprendizaje Sugar y las futuras generaciones de software para aprendizaje,
- Para conectar con expertos, convencidos del potencial de la tecnología en el desarrollo y aprendizaje de los jóvenes,
- Para fortalecer la comunidad de usuarios del ambiente de aprendizaje Sugar alrededor del mundo.

Todos los interesados en participar en este importante encuentro deben ponerse en contacto con nosotros inmediatamente. ANEP ha ofrecido financiación de gastos locales para los jóvenes que participarán en este evento.
Cordialmente,

José Miguel Garcia
(ANEP)

Walter Bender
(Sugar Labs)

Para incribirse solo deben ingresar al siguiente formulario:

by Gonzalo Odiard (noreply@blogger.com) at September 08, 2014 05:10 PM

September 02, 2014

Walter Bender

Sugar Digest 2014-09-03

== Sugar Digest ==

I took the summer off from blogging, hence I have a lot to report about the exciting progress we’ve made of the past three months.

First, congratulations to our ten participants in Google Summer of Code:

Project Student Mentor
Music Suite Aneesh Dogra Gonzalo Odiard
Turtle Art 3D Anubhav Jaiswal Tony Forster
Activity Unit/UI Tests Gaurav Parida Daniel Narvaez
Port to Python 3 Kunal Arora Sameer Verma
Bulletin Board Nazrul Haque Athar Walter Bender
Hack a Stuffed Animal Jade Garrett Stephen Thomas
Social Help for Sugar Prasoon Shukla Paul Cotton
Cordova Container for Sugar Puneet Kaur Lionel Laské
Sugar Listens Rodrigo Parra Martin Abente

Also, thank you to both Google, for once again letting us participate in this great program and to our mentors, who gave time and attention to the students. I am happy to say that we not only learned a great deal, e.g., Kunal’s efforts have informed us as to what we will need to do to migrate to Python 3, but also, we have landed (or will land) much of the work.

For example, one of the projects, Turtle Art 3D, is now available for download from the Sugar activity portal.

2. We held a Turtle Art Day in San Antonio Texas in August as part of Open Ed Jam, organized by Mariah Noelle Villarreal. Tip of the hat to Ruben Rodriguéz, whose TOAST (Trisquel with Sugar) image was used in the workshop.

We used USB keys donated by Nexcopy as part of their Recycle USB campaign.

3. Speaking of Turtle Art, Cynthia Solomon, Claudia Urrea, and I wrote a paper, “(More than) Twenty Things to Do in Turtle Blocks” for the Constructionist Conference in Vienna. We made some videos as well.

In the community

4. There will be a Youth Summit held in Montevideo September 20-23.
ANEP (National Administration of Public Education) and Sugar Labs are organizing a World Junior Programmers Summit, a meeting among youths from different parts of the world who are working in software development. Taking advantage of this gathering, we are soliciting participation by leaders of educational programs interested in the potential that technology has on learning and in promoting meaningful participation of students.

This event will last for four days, three days for the youth meeting, and the fourth day for a series of strategic to discuss the current impact and future of the Sugar learning environment. The first day of the youth event will be open to anyone interested in joining the community of free software developers, while the other two days will be for those who are already actively involved in Sugar development.

Who should attend:
* Youths who have an interest in programming and / or have made ​​concrete contributions to the development of the Sugar learning environment;
* Leaders interested in participating in a series of strategic meetings to define the future of the Sugar learning environment.

Why participate in this meeting:
* To work with internationally recognized young a Python developers;
* Help define the future of the Sugar learning environment and future generations of software for learning;
* To connect with experts, convinced of the potential of technology in the development and learning;
* To strengthen the community of users of the Sugar learning environment around the world.

Anyone interested in participating in this important event should contact us immediately. ANEP has offered funding to cover the local costs for youths to participate in this event.

Registration is here.

Tech Talk

5. Martin Abente oversaw the release of Sugar 102 and is now gathering feature requests for Sugar 104.

Sugar Labs

6. Please visit our planet at http://planet.sugarlab.org

by Walter Bender at September 02, 2014 07:32 PM

August 30, 2014

Sugar Cordova

The Final Post

Sorry people, been a long time since the previous post. The reason being I was busy coding up the plugins and things, so never got much time to concentrate on posting side. Never mind, we are back with a whole wrap up post for all of you. Also made videos to demonstrate the concept.Hope you find it interesting.

Its been months of hard work and thought process. Days full with coding and exploring things in and out. Must say it has been a great experience working for Sugarlabs as a part of Google Summer of Code. My mentor , Lionel Laské , has a great share to that, he has been very supportive in all the adventures and trusted upon me which infact boost my motivation to work for the project. I have seen mentors forcing their students to accept their methodology and do the way they want , but the best thing I liked about this was the exploration part, where we were free to dive into the different parts of code, swim through them till we got our treasure ;-) During this exploration we faced many issues, but thanks to the support of Gonzalo and Walter who used to help us whenever we required.I use to trouble Gonzalo a lot when it came to the native part of plugins, asking him how that could be done or why it didnt work as expected. Thanks Gonzalo for your support and time without which I guess the project wouldn't have been where it is.
Things still remain, but I hope to work on it after gsoc too :-) gsoc has been just a medium to be introduced to such a lovely community and I would like to thank Google for that , for introducing such a wonderful programme which brings together the developers and students to make some magic ;-)
Talking about the project progress - it is through with the cli part and plugins like - accelerometer, camera, dialog,device, globalization and network. We hope to develop more and improve upon those which we already have. Also we aim to club this with sugarizer. I had decided to make some videos during mid of August showing the working but the week which I kept for making videos , suddenly my system crashed ( because of update from ubuntu 12.04 to 14.04) so instead of making videos, I had to debug it and bring it back to the working state.Now its up and working :-) (thankfully ! ) I made a few videos to give you all an idea of what we have tried to achieve. Please go through these ( Make sure to switch on the subtitles if not already ):



<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://i.ytimg.com/vi/ylhXaQsm5dQ/0.jpg" height="266" width="320"><param name="movie" value="https://www.youtube.com/v/ylhXaQsm5dQ?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata"/><param name="bgcolor" value="#FFFFFF"/><param name="allowFullScreen" value="true"/><embed allowfullscreen="true" height="266" src="https://www.youtube.com/v/ylhXaQsm5dQ?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash" width="320"></embed></object>

Making a sugar activity from web app using cordovoa


<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://i.ytimg.com/vi/hCdlKtoivH0/0.jpg" height="266" width="320"><param name="movie" value="https://www.youtube.com/v/hCdlKtoivH0?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata"/><param name="bgcolor" value="#FFFFFF"/><param name="allowFullScreen" value="true"/><embed allowfullscreen="true" height="266" src="https://www.youtube.com/v/hCdlKtoivH0?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash" width="320"></embed></object>

Demo of the plugins coded through the summer


Hope you find the video useful,Here is the repo link which you would require incase you decide to play around with the code https://github.com/<wbr></wbr>puneetgkaur/sugar-cordova

Also as the project is not completed we would be up on it and pushing more changes , so keep around ;-) 


by Puneet Kaur (noreply@blogger.com) at August 30, 2014 04:45 PM

August 17, 2014

Fargo XO / Sugar Labs NDSU

Tissue Paper Reforms: Coding for Kindergartners | Larry Cuban on School Reform and Classroom Practice

Tissue Paper Reforms: Coding for Kindergartners | Larry Cuban on School Reform and Classroom Practice.

Larry Cuban’s post provides a really nice, concise history of Logo and coding efforts.  As he notes at the end, the Papert effort can be inspiring and instructional, as it has been for our Sugar Labs effort, but we also hit a wall and have suspended the program, as Cuban would expect . : )


by kab13 at August 17, 2014 01:55 AM

August 13, 2014

Tomeu Vizoso

Dynamic scaling of the memory bus


The problem


These days there's quite good support for CPU scaling in the mainline kernel, and many ARM SoCs are making use of it already. But in modern hardware with lots of very fast external memory, running the memory bus at its maximum frequency drastically reduces the amount of time that the device can run when on battery.

A problem that many teams are finding when trying to upstream their power management code is that there's currently no way for several clock consumers to influence the frequency of the memory bus. There has been a few tries to upstream the solutions currently in vendor trees, but so far no acceptable solution has been found.

I'm helping to upstream some of the stuff in the ChromeOS tree, and this issue is currently blocking very interesting work from reaching mainline.

The past


In the vendor tree for Tegra this is addressed by creating virtual clocks that are child of the clock that wants to be influenced. Depending on the type of the virtual clock, setting its rate will influence the rate of its parent clock by setting a floor or ceiling value.

In Qualcomm's vendor tree for the Snapdragon family of SoCs, the concept of a voter clock is introduced. Drivers can vote on the rate of a given clock by "voting" through a child clock, so not that different to how Tegra does it.

Both approaches have the critical disadvantage of adding clk instances for things that aren't real clocks, thus making the API considerably more confusing for relatively little gain.

Both vendor trees have additional API for registering bandwidth needs: tegra_isomgr and msm_bus_scale. They bear quite some resemblance with each other and with pm_qos_interface, but both are tightly tied to specificities of their platforms.

The discussion was brought back to life a couple of months ago when a patch was posted for allowing the tegra-drm driver to set the frequency rate of the external memory controller based on the amount of bandwidth that was needed by the display controller for refreshing the display. Of course, that patch was rejected because there are other components that need to have a say in the frequency rate of the memory bus.

But in that discussion some kind of plan took form and I have been working on making something from it that can be merged upstream.

A possible future


There's so far two main additions to existing frameworks, with the rationale being explained further below:
  • Add per-user floor and ceiling constraints to the Common Clock Framework, so drivers can set maximum and minimum frequency rates that the clock should respect. Patchset here.
  • Add a PM_QOS_MEMORY_BANDWIDTH class to pm_qos, for drivers to register their expected bandwidth needs. Patchset here.
The idea is for the following agents to be able to influence the current frequency of the memory bus:
  • Thermal: a cooling device would call clk_set_ceiling_rate to cap the memory bus to a frequency based on the current temperature.
  • Power: a battery driver would set a ceiling in the same way, based on the remaining capacity.
  • Devfreq: a devfreq driver wrapping a power management unit such as the ACTMON on Tegra or the PPMU on Exynos would set a floor frequency based on the current load stats.
  • Cpufreq: a cpufreq driver would set a floor frequency based on the current CPU frequency.
  • Devices that can anticipate how much memory bandwidth will need (such as the display controller, the camera, multimedia codecs, an ISP, USB, etc) would register their requirements in the PM_QOS_MEMORY_BANDWIDTH class. The EMC driver would be listening for notifications and setting a floor frequency based on the aggregated bandwidth that is needed.
The impression so far is that this approach matches the needs of the Tegra and Exynos SoCs, and people working on Rockchip upstreaming are evaluating it. Others working on other SoCs are very welcome to look at it and comment, so the result is also useful to them and they can improve their power management in mainline without having to refactor things later.

by Tomeu Vizoso (noreply@blogger.com) at August 13, 2014 03:36 PM

August 09, 2014

OLPC San Francisco blogs

In-person, online or both?

We are getting ready to set up the annual community summit (2014 will be the sixth such summit) and we've made a significant change to the way we organize it. This year, we will be running an online and an in-person event. The summit will be held October 17 to 19, 2014. You can either be here with us in-person, or be online and attend! Let us know what your thinking is at this time, so we can organize accordingly.

Take the poll and help us plan!

by sverma at August 09, 2014 10:33 PM

August 01, 2014

Sugar Experiments of gp94

GSoC Update #8

This week was spent mostly on writing tests for Read. The major issue we were facing is that, we couldn’t open files in Read activity using the objectchooser. So, Gonzalo sent a novel way of doing the same use case. in a different way and it worked perfectly. Here is the link of the conversation on the mailing list.

I have successfully written tests for Read and also added some helper functions in uitree.py of sugar-toolkit-gtk3 that are required for writing tests for the activities.

Here is the commit of the test of the Read activity and here is the merge request/codereview for the same.

Here is the commit of the helper functions for uitree.py in sugar3 and here is merge request/codereview for the same.

Next week, my focus will be work on the writing tests for imageviewer using the same approach as used in Read activity. After, the same is done and time is left then I will also continue on the work where I left off for Browse activity.

August 01, 2014 06:32 PM

July 30, 2014

Rafael Enrique Ortiz Guerrero

Tastypie filtering

Tastypie is a django restful api

Here is a little recipe to show only the last resource of eache model exposed as WS:



class RequestResource (ModelResource):
    """ Request webservice
    """
    class Meta:
        queryset1 = Request.objects.order_by('-id')
        queryset = queryset1.all()[:1]
        resource_name = 'requestresource'
        authorization = Authorization()

Another recipe to show also a foreing key in a given resource:

class EmployeeResource (ModelResource):
    """ Employee webservice
    """
    user = fields.ForeignKey(UserResource,'user',full=True,null=False,blank=False)

    class Meta:
        queryset = Employee.objects.all()
        resource_name = 'employeeresource'
        authorization = Authorization()

by Dirakx (noreply@blogger.com) at July 30, 2014 03:24 PM

Git for Sugar

One of the firsts walls or obstacles to enter Sugar development is learn our favourite control version system [git http://git-scm.com/], although somewhat counter-intuitive at the beginning, git is a very powerful tool, I wish there could be another way to have a collaborative way of development for kids, but we are not yet there.(could be other ways?)

For starters you would have to go to our web-ui git instance called [gitorious
http://gitorious.org/],

http://git.sugarlabs.org

you can clone

git clone git://git.sugarlabs.org/yourproject/mainline.git

or make a personal clone of a project of your election on the web-ui.

keep your project up-to-date with

git pull

you can also make a patch and sent it ot the developer

git format-patch HEAD^

Note: is preferable that you generate your patch from the root directory of your project.

if you want more visibility or reviews you can also send your patch to sugar-dev mail list.

git format-patch -s -1
git send-email --to maintainer --cc mailing-list filename
For example:

git send-email --to=sugar-devel@lists.sugarlabs.org 0001*.patch

as a maintainer you can apply patches, sent by others, in this case you have
a file called sugar_fixes.patch

git apply --stat sugar_fixes.patch
git apply --check sugar_fixes.patch
git apply --apply sugar_fixes.patch or git am --signoff

o make merge requests using gitorious ui.

Some commands may seem very hard, but it's a matter of practice, and the combination of command line interface and gitorious ui, could be very practical both for development in terms of code maintain and for coordinated and collaborative development between various people.




References
http://wiki.sugarlabs.org/go/Activity_Team/Git_FAQ
http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/


by Dirakx (noreply@blogger.com) at July 30, 2014 03:23 PM

July 29, 2014

Fargo XO / Sugar Labs NDSU

Inspire Innovation Lab founder passionate about engaging children, community in STEM education | INFORUM

Inspire Innovation Lab founder passionate about engaging children, community in STEM education | INFORUM.

Sugar Labs supports a smarter (computing) culture.  I think we should see if the innovation lab wants / needs some XOs.  Or maybe we can build Rich Rice’s XO kiosk.


by kab13 at July 29, 2014 06:41 PM

July 22, 2014

Sugar Cordova

Working of sugar cordova

Hey,

So its been some time after the previous post and we have made some serious progress after that :-)

The  work undertaken and done are as follows :

1. Improving upon on the codebase for cli
2. Making the basic layer for cordova for sugar to add plugins upon it
3. Making cli work on the windows platform
4. Completing accelerometer
5. Working on camera

So to discuss what we have got through this time ,I would like to take you through an example of a simple Hello World app , telling you how you can generate your own .xo from any web app and deploy it to your sugar environment.

To be precise, a web app signifies a bundle of files written in html,js and css and having some backend logic to perform a concrete task.Now the point concerning here is to get that web app to your sugar environment. The steps involved would be :

1. Setup your development environment - follow the instruction mentioned here
2. Issue  the following command to  to create a new cordova app :
cordova create <app_directory> <app_package_name> <app_name>
3. Now insert all your web app stuff to the www directory of the newly created project
4. To convert this web app to the .xo isa two step process : 
       (i) first add the sugar platform to your newly created cordova project by using command : 
cordova platform add sugar 
       (ii) Then you build the project after making changes to web app if you wish to make any; by the command: 
cordova build sugar
       (iii) Find your newly create .xo in app_directory/platforms/sugar/<wbr></wbr>cordova/<app_name>.xo
5. Now we can copy and paste the .xo in our sugar environment and issue the following command to install the xo :
sugar-install-bundle <name>.xo 

FEW IMPORTANT NOTES :

1.As an added feature we have provided a --noframe option to the users who already know about sugar web. In that case we shall add no sugar -web feature in the index.html, that means the app_directory/www/index.html must contains all the toolbar and sugar ui related stuff like the index.html in the sugar-web-template. If you give no option in the build command, it is by default assumed that you dont know about sugar web and your web page is added in an iframe in the final index.html along with the sugar ui which is added around it. So you gotto decidie whether to leave the option of adding the sugar ui to the cordova-cli or do it on own. For the former you dont need any option and its activated by default while the later can be acheived by issuing the --noiframe option along.

2.In the windows environment the zip command that is used to create the .xo by the cordova build command doesn't work. So we provide an alternative for that. All the windows users are expected to set an environment variable name ZIPCOMMAND to something similar to the "zip -r" for windows. That is, it should be able to create a zip file recursively, as an option , people can use 7zip which gives an excellent command line tool for creating zips. So install 7zip and issue the following command before issuing cordova build command on windows : 
set ZIPCOMMAND="c:\Program Files\7-Zip\7z.exe" a -r -tzip -aoa


Apart from this, we are currently working on providing you with various plugins for cordova which shall make the communication with the device capabilities easier. You can find the plugins here : https://github.com/<wbr></wbr>puneetgkaur/cordova-plugins , so in this repository we have two folders : one for the plugin and other a sample sugar cordova with the concerned plugin.


Have a look at the sample web app we used : 


Screenshot of the web app in the browser :





The web app as in the sugar shell :







Source of the sample web app :



<html>

<head>

<meta charset="utf-8" />

<meta name="format-detection" content="telephone=no" />

<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />

<link rel="stylesheet" type="text/css" href="css/index.css" />

<meta name="msapplication-tap-highlight" content="no" />

<title>Hello World</title>

</head>

<body>

<div class="app">

<h1>Apache Cordova</h1>

<div id="deviceready" class="blink">

<p class="event listening">Connecting to Device</p>

<p class="event received">Device is Ready</p>

</div>

</div>

<script type="text/javascript" src="cordova.js"></script>

<script type="text/javascript" src="js/index.js"></script>

<script type="text/javascript">

app.initialize();

</script>

</body>



We'll hope to be back with  a lot of cool developments on the plugin development front, so till then enjoy experimenting with sugary cordova ;-)

by Puneet Kaur (noreply@blogger.com) at July 22, 2014 01:52 PM

July 18, 2014

Sugar Experiments of gp94

GSoC Update #7

Work done this week-
1. Read wasn’t opening correctly and gave an error in readactivity.py which was solved by gonzalo. I helped a little in debugging and testing the patch.
2. The files being displayed in objectchooser were incorrect. So, informed gonzalo and the patch for it was submitted by him. Pinched in for testing and debugging of the error.
3. Next problem was to access the path of the documents folder, which is not generic in sugar. So, again gonzalo pointed me the function of get_documents_path() in jarabe/activity/model.py. That solved the document path issue.
4. While progressing on writing tests for Read, I stumbled across a GError while running the tests, after finding more about them, I found that Read were running on some Dbus settings X and as soon as the objectchooser is loaded, the dbus settings change to something else(They take the dbus settings of the journal). Leading, to the pyatspi(the main library used to testing) to infer that the read activity, process has hung up. I haven’t been able to find anything substantial that could solve the given problem.
6. Worked a little on documentation and the testing guide of the tests.

To Do—
1. Work on Browse and Chat
2. Complete the testing guide and documentation of individual activities.

Problems in writing tests for some activities
1. TurtleArt (Reason : ta is gtk2 and tests currently run on gtk3.So, the conflict lead to the unsuccessful attempt at writing the tests for them)
2. Read and Imageviewer (Reason : GError : timeout in dbind, leading the pyatspi to assume the activity to be hung) Only, the basic tests for them have been possible.

July 18, 2014 04:52 PM

July 04, 2014

Porting Sugar to Python3

Porting to Python3 Progress

In the last couple of weeks I worked on porting the following sugar modules and submodules to Python3, you can check out  my progress in my own repositories(they are not complete yet , so there might still be some errors):

1) Original repo: https://github.com/sugarlabs/sugar-build
    My repo: https://github.com/curiousguy13/sugar-build
    Changes: Changes in Python3 syntax ,string usage etc in osbuild.py and and different commands in the command folder and called virtualenv with Python3.
2) Original repo: https://github.com/dnarvaez/osbuild
    My repo: https://github.com/curiousguy13/osbuild
    Changes: These are the required changes that I made in the osbuild module:      https://github.com/curiousguy13/osbuild/compare/dnarvaez:master...curiousguy13:master
3) Original repo: https://github.com/dnarvaez/broot
    My repo: https://github.com/curiousguy13/broot
    Changes: Some other basic Python3 syntax changes and some errors that i reported in my common porting errors wiki blog post.
4) Original repo: https://github.com/dnarvaez/plog
    My repo: https://github.com/curiousguy13/plog
    Changes: Just a couple of changes as the module name Queue was changed to queue in python3 and the name basestring has disappeared.
5) Original repo: https://github.com/dnarvaez/sourcestamp
    My repo: https://github.com/curiousguy13/sourcestamp
    Changes: This was a C module written for Python2 but there have been some changes in the C-api for Python3.
The new PEP standard for initialization of extension module: http://legacy.python.org/dev/peps/pep-3121/
Porting Extension modules to Python3: https://docs.python.org/3/howto/cporting.html.
So with the help of  the above links , I did the necessary changes in the sourcestamp module.

6) Original repo: https://github.com/dnarvaez/gwebsockets
    My repo: https://github.com/curiousguy13/gwebsockets
    Changes: Basic python3 changes using and iteration of 2to3 and they seem to be working for now.

In the following modules, I have done all the trivial Python3 syntax changes and currently working on removing the remaining bugs and errors.

7) Original repo: https://github.com/sugarlabs/sugar
    My repo: https://github.com/curiousguy13/sugar

8) Original repo: https://github.com/sugarlabs/sugar-toolkit-gtk3
    My repo: https://github.com/curiousguy13/sugar-toolkit-gtk3

9) Original repo: https://github.com/sugarlabs/sugar-datastore
    My repo: https://github.com/curiousguy13/sugar-datastore

10) Original repo: https://github.com/sugarlabs/sugar-artwork
    My repo: https://github.com/curiousguy13/sugar-artwork

So, currently I am working on building and integrating all the modules successfully together and sorting out the errors and bugs that come in my way.

by kunal arora (noreply@blogger.com) at July 04, 2014 05:52 PM

June 23, 2014

OLE Nepal

Comparing Deployment Data with XOvis

It is hard to believe that six months have already passed since my arrival to Kathmandu. My volunteering time at OLE Nepal is up. At the end of May, I delivered a final presentation about XOvis, an XO usage visualization application our Data Quest Team has developed, and bid farewell to my Nepali colleagues. From [...]

by martasd at June 23, 2014 02:57 PM