Wednesday, September 25, 2013

The Raspberry Pi @ForsythTechCC IEEE club


Last week the ForsythTech IEEE club got a Raspberry Pi. Glad to see it being put to good use, Carroll Perkins just sent me the following:

"This Thursday, Sept 26th, at 3PM in Hauser 332, the ForsythTech IEEE Students meeting is a demo by Bobby Garriott of the Raspberry Pi computer hook up.  LCD screen, keyboard and mouse hook ups will be demonstrated.


The Raspberry Pi is a $35 computer board.  Ideal for embedded applications of all types including robotics, CNC and 3D printer applications. "


Friday, September 20, 2013

RPi MOOC en espanol

Donde

http://telescopio.galileo.edu/curso/raspberry-pi/

Cuando

El 14 de octubre 2013.

Información

Indican en la pagina que van a abarcar todo eso:

  • Instalación, Configuración, Accesorios y demás aspectos a considerar
  • Demos de instalación Wheezy y otras distribuciones
  • Introducción a Python
  • Introducción a la programación en Python para Raspberry Pi
  • Ejemplo completo Python
  • Modulo GPIO del Raspberry Pi para conexiones externas
  • Elementos básicos de hardware y como controlarlos con el GPIO
  • Próximos Pasos: Proyectos y Comunidad

Me parece muy genial. Es algo similar a los taller PyHack que hacemos en Carolina del Norte, pero en la red.

François
@f_dion

Monday, September 16, 2013

The lost art of digital entomology

Slides


I had forgotten to push the slides and code to bitbucket. This is from my PYPTUG talk from june. You can get the files here:

https://bitbucket.org/fdion/pyptug/src/a64e0c283150/debug?at=default


François
@f_dion

Monday, September 9, 2013

@surgeterrix to XOR or not to XOR

By way of twitter


Taking 2 strings of hexadecimal characters, converting hex to binary values, then xorsum the 2 values, and convert sum back to hex.

The other XOR


So the normal xor will not work on strings, so what do you do?

from binascii import hexlify, unhexlify  
from Crypto.Cipher import XOR  
  
# you can encounter hex strings with no spaces  
encrypted = '556e6e216c606f78217264627364757216'  
# or hex strings with spaces  
key = '01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01'  
  
#let's get binary representations  
b_encrypted = unhexlify(encrypted)  
b_key = unhexlify(key.replace(' ','')) # we remove the spaces  
 
#to see a binary string output, use repr: print(repr(b_key))  
  
cosmo = XOR.new(b_key)  
bishop = cosmo.encrypt(b_encrypted) # yeah, encrypt to decrypt  
  
print hexlify(bishop)  
# the above is what was asked  
# the plain ascii decrypted message is print(bishop)  

I think the (not really) hidden references are pretty obvious...However, even in the decrypted message, there is still a question left... :)

François
@f_dion

A FISH named Blackbox

Boat


Saw an Oracle TV spot during coverage of the America's cup. They emphasize hardware and software working together, data gathering and even some wearable computing. So, that's what my TV spot would be if I had their budget?

FISH


Also known as Fully Integrated Software and Hardware. So, for the past few years I've been working a tight integration of software, hardware and wearable computing. For metrics, data logging, and stuff like that. And it is finally ready to market. I've never posted about my company and my work on my blog before, but I had to share this.

The Blackbox

This latest revision of the Blackbox is running Linux, and all the major software has been written in Python. In its most basic form, it can be used as a digital signage, and yet can be used to do really cool stuff, like proximity sensing and machine area networking. Walk up to a piece of equipment, any piece of equipment, and you get to see realtime metrics on your tablet, for that machine. And wearable computing.

Unveiling the FISH


So I will be unveiling this at the Triad business innovation expo in Winston Salem, NC

Expologo_noyear


Date/Time
Date(s) - Thursday, September 12, 2013
8:00 am - 3:00 pm
Location
Benton Convention Center
301 W. 5th Street
Winston-Salem, NC

So if you want to check it out, I'll be at Dion Research's booth (431) demoing the FISH solution. And did I say wearable computing, just like in the TV spot? I cant say more than this, I'll do live tweeting and unveiling on Thursday.

François
@f_dion

Thursday, August 22, 2013

From Java to Burma

Hands on Python


This month at our local Python user group (PYPTUG), I'll do a hands on session. Could have been in a workshop, code dojo or project night, but it'll be part of the normal monthly meeting.

Attributes, Properties and Descriptors


A lot of people learned C++ or Java in school and some of the normal patterns for these languages are regularly seen in the wild in languages such as C# and Python. Having coded in all of these, and many more, I appreciate greatly some of the features of a given programming language. And when it comes to Python (as Roger Sessions said, paraphrasing Einstein), that "everything should be as simple as it can be, but no simpler".

 The hands on will focus on attributes, and how to keep it simple. And of course, how to get out of trouble, because you have to do something not so simple later, using properties and descriptors.

I will be posting to my bitbucket pyptug repository some material related to the talk, including a log of the interactive session we will be doing.

Audience will be ranging from people who have never coded, to people who have programmed in other languages, to python experts. I love a challenge.

François
@f_dion

Monday, August 19, 2013

Nouvelle version de Brython: 20130817-141536

Téléchargement de Brython


Une nouvelle version de Brython, Brython-20130817-141536, est maintenant disponible sur la page des téléchargement
 

Changements

Depuis la version précédente :

- import amélioré , on peux utiliser les packages : "import X.Y", "from X.Y import Z [as A]", "from . import X" (corrige le bogue 123)
- le protocole des itérateurs utilise maintenant les méthodes __iter__() et __next__() pour tous les types
- "for" les utilisent aussi
- implémentation des compréhensions améliorée : utilise les dictionnaires global et local (corrige le bogue 129)
- améliorations a la console interactive : http://brython.info/tests/interactive_mode.html
- ajout du type "bytes" (incomplet)
- ajout de balises HTML5 et événements DOM manquants
- ajouts a la documentation en français, ajout d'une section pour les modules spécifiques a Brython ; autres parties traduites
- Bouton sur la page de tests pour exécuter tout les tests et retourner les erreurs
- amélioration du module markdown : les _ et * génèrent du HTML différent, tout comme __ et **
- le mot clé del : utilise la méthode __del__() si elle existe


Bogues

  • - Corrections :
. #78 : map() and filter() return iterator objects, not lists
. #124 : support of CSS attribute "float"
. #125 : add methods copy() and clear() to lists
. #126 : escaped quotes inside strings
. #127 : DOMNode instances comparison methods (__eq__ and __ne__)
. #128 : class inheritance
. conversion des JS objects dans json.js et $JS2Py
. problème avec les itérations sur instances DOMNode



Autres


  • réorganisation : déplacement de JSObject du fichier py_dom.js au fichier py_utils.js
  • galerie : ajout d'un jeu de solitaire qui utilise SVG et le glisser - déposer


Vos retours


L’équipe Brython espère vos retours sur cette version, autant pour nous laisser savoir si vous trouvez  des bogues mais aussi au niveau de votre expérience avec Brython, en joignant et participant aux forums Brython.

De plus nous aimerions entendre parler de vos projets (actuels ou futurs) avec Brython sur appareils mobiles (tablettes, etc) et informatique embarquée (Raspberry Pi, Beaglebone black, Cubieboard, etc), surtout au niveau des écrans tactiles, car nous y travaillons en ce moment. Alors, n’hésitez pas a joindre le forum ou a me contacter directement sur mon blog ou sur twitter.

François
@f_dion