Re: [IAEP] [Sugar-devel] Sugar Digest 2012-06-10

2012-06-12 Thread Kevin Mark
On Mon, Jun 11, 2012 at 08:28:30AM -0500, Yamandu Ploskonka wrote:
 
 (kudos for Gnome! BTW, I had been pushing for some XO-based
 microcontroller work -
 http://processors.wiki.ti.com/index.php/OLPC_XO-1 as part of
 eat-my-own-catfood in enabling the XO for real-world use)
 (last weekend I was at a local (Austin, Texas, USA) High School
 track. Nearby were the dumpsters. End-of-the-year dumpsters. Since
 it probably does not happen that way in Boston, let me indicate that
 here they were overflowing with learning materials. Pricy stuff,
 not necessarily useful, but what passes as education in these
 parts.)
Cool, I had bought a Launchpad when they came out (2 yrs ago?) and was able to
compile the GCC bits for it on my XO-1.5. But had not tried to use my XO-1.
You probably have seem the proposed plans to make an XOduino and XOstick.
Thanks for writing notes for the XO-1/Launchpad. I think I noted some
intermittent issues with the kernal/usb/Launchpad where it would create a
/dev/TTYACM01 and then 02 (I dont recall the specifics) and when I tried to
access the device via Python, my code was referrring to the wrong device node.
And I had to disconnect the usb cable for it to work.

-- 
|  .''`.  == Debian GNU/Linux ==.| http://kevix.myopenid.com..|
| : :' : The Universal OS| mysite.verizon.net/kevin.mark/.|
| `. `'   http://www.debian.org/.| http://counter.li.org [#238656]|
|___`-Unless I ask to be CCd,.assume I am subscribed._|

Victory uber allies!
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] [Sugar-devel] Sugar Digest 2012-06-10

2012-06-12 Thread James Cameron
On Tue, Jun 12, 2012 at 06:25:09PM -0400, Kevin Mark wrote:
 [...]
 Thanks for writing notes for the XO-1/Launchpad. I think I noted
 some intermittent issues with the kernal/usb/Launchpad where it
 would create a /dev/TTYACM01 and then 02 (I dont recall the
 specifics) and when I tried to access the device via Python, my code
 was referrring to the wrong device node.  And I had to disconnect
 the usb cable for it to work.

That reminds me.  You can make your program resilient against this.

While people often say plug in the device, then look for /dev/ttyACM0
or /dev/ttyUSB0, this is not necessarily the best device name to use
if you are writing a program.

There are alias device names that are more specific, and they don't
change as a result of suspend resume or the sequence in which the
devices are discovered, or plugged in.

For example, having plugged a USB serial adapter into an XO-1.75, I
see /dev/ttyUSB0, but I also see

/dev/serial/by-path/platform-pxau2o-ehci.0-usb-0:1.4:1.0-port0

which is an alias relating to what socket of the XO the device is
plugged into, and also

/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4008sxO-if00-port0

which is an alias relating to what the device says about itself.

If a programmer wants their program to be resilient against the threat
of device name changes, then the program should be written to find the
alias and use that instead.  A Python program can search /dev/serial
for a symbolic link that points to what it is given, so that if it
changes it can offer to the user the new device name.

These aliases are also very useful for scripts and configuration files.

For interactive use, the aliases are a bit long, but using tab at the
shell prompt will complete them if enough letters are typed.

e.g.

bash$  ls /dev/se tab by-i tab tab

is enough to select the only one there.

Hope that helps.

-- 
James Cameron
http://quozl.linux.org.au/
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] [Sugar-devel] Sugar Digest 2012-06-10

2012-06-10 Thread Walter Bender
On Sun, Jun 10, 2012 at 9:57 PM, Caryl Bigenho cbige...@hotmail.com wrote:
 Hi Walter,

 Sounds like a great trip and a very complete workshop. I have a few
 questions...

 1) Were the teachers to go back and train other teachers at their schools?
 (the Triple T format... Teachers Training Teachers)

Yes.


 2) Were the teachers' expenses covered?

I don't know.


 3) Did the teachers receive a stipend? Certificate?

I don't know re stipend, but they did get a certificate.

-walter

 Caryl


 Date: Sun, 10 Jun 2012 19:23:19 -0400
 From: walter.ben...@gmail.com
 To: community-n...@lists.sugarlabs.org
 CC: iaep@lists.sugarlabs.org; sugar-de...@lists.sugarlabs.org
 Subject: [IAEP] Sugar Digest 2012-06-10


 == Sugar Digest ==

 1. The typical trip from Lima to Chachapoyas [1], Amazonas involves
 flying and bus travel. A common way point is the city of Chiclayo, on
 Peru's north coast. We (myself, Melissa Henriquez (OLPC), Reuben Caron
 (OLPC), Raul Hugo (Escuelab), and Alexander Moñuz (Escuelab)) had a
 several hours before our bus, so we took a walk through a sea of taxi
 cabs and a cacophony of car horns. It reminded me of Lima from five or
 six years ago: too many cars and drivers not yet acclimated to the
 culture of driving. Lima, in contrast, while still overwhelmed by too
 many cars and buses, seems tranquil by comparison: the culture of
 driving has caught up with the increased availability of the
 technology of driving. Yet another example of Papert's observation
 that change is never a technology in isolation; it always has a
 cultural component. A goal of our week in Chachapoyas was to help
 shape the change in the culture of learning in Amazonas as more
 technology is made available to teachers and children in the region.

 The bus ride was only eight hours: better than the alternative, thirty
 hours from direct Lima. Once the poorly dubbed B-movies stopped
 playing on a television inconveniently placed inches from my face
 stopped playing, I managed to get some sleep, despite the incessant
 swaying of the bus as it snaked its way through the Andes. We arrived
 at 6 Sunday morning to a sleepy town, built in the traditional style:
 a grid with a central plaza. We had decided to use our one free day to
 explore Kuélap, an ancient city another 2.5 hours from Chachapoyas, so
 we didn't even manage a cup of coffee before heading up some even more
 winding roads.

 Kuélap [2] was settled at least 1500 years ago. It is an extensive
 ruin on top of a 3000-meter peak. The most characteristic artifacts
 are the circular foundations of the houses, packed together in a tight
 matrix. Diamond-shaped patterns, reminiscent of snake skin were
 frequent sights [3].

 When we got back to town, we discovered that coincident with our
 week-long teacher-training workshop was a week-long festival,
 celebrating both the revolution against Spanish rule and some ancient
 traditions regarding inviting the coming solstice. It meant parades
 and firecrackers at sunrise, and music each evening. The rhythm of
 week was established: breakfast at 7; at the workshop by 8; an early
 dinner at 7; evening sessions beginning at 8:30; and dancing from 11
 to 1 AM. The music and dancing offered an opportunity to get to know
 the teachers outside of the workshop. It was also an opportunity to
 observe some of the local ways. Most notable to me was the way in
 which the crowds organized themselves: tight circles of 10 to 15
 people. If you took an aerial photograph of the festival, you'd see
 the same circle patterns as we had just seen in Kuelap. Sometimes a
 culture expresses itself in unexpected ways.

 Monday morning, we were joined by Elver Guillermo (our host), Alex
 Santivanez (DIGETE), and Jorge Parra (DIGETE) (Alex and Jorge arrived
 from Lima that morning). And 60 teachers from across six different
 regions from Amazonas. We began the week with a question: how do you
 use XO/Sugar for learning? It was no surprise that most teachers
 answer with, No sé. Even the few that had had some minimal
 experience with the XO answered with mundane themes, such as doing
 research on the Internet. We asked the same question at the end of the
 week, and although I haven't seen the survey results, I am certain
 that the teachers expressed a wealth of ideas around communication and
 expression, math, science, and the arts. We also asked the teachers if
 and where they hung out on-line. Almost all of them were Facebook
 users, so Raul set up a Facebook group,
 [http://www.facebook.com/groups/370964266297045/ Amazonas XO], for
 them to use as a forum for sharing experiences.

 At the end of a day using Write, Record, Fototoons, Memorize, Mind
 Maps (Labyrinth) and Paint, we introduced the teachers to Portfolio,
 and they created their first reflections on the week. That evening, I
 reviewed the variety of Sugar activities available and introduced the
 Sugar concept of the gear: the invitation of create your own variant
 of an activity. I also