ARM Optimized strlen()

Few weeks ago I started a personal project to enable lua programming under u-boot to allow easy access of peripherals and create small embeddable initialization scripts which I have missed during professional Embedded Development. Another goal of this projects is to optimize u-boot’s ARM code so the first optimization go through string manipulation functions, today […]

SVN & TRAC Backup

After a few server crashes I had to write this very same script each time so I better keep it up here and maybe someone find it useful 1 2 3 4 5 6 7 8 9 10 11 12 13 #!/bin/sh   PREFIX=/var/develbackup SVNFOO=/home/svnuser/repos/foo TRACFOO=/home/svnuser/trac-env/foo   DATE=$( date +%Y%m%d ) BACKUPDIR=backup-${DATE}   mkdir ${PREFIX}/${BACKUPDIR} […]

Understanding CAN Protocols I

  This is the first article in a serie about CANBus and higher-level protocols, which are extensibily used in Industrial environtmens along with Embedded Systems. CANBus standard describes only the layer 1 and 2, from an OSI point of view, dealing with physical and datalink activities. On the other hand, CANOpen is a protocol which […]

Man In Remote

  Man In Remote Setup After presenting this talk first at RootedCon and a month later at Hackito Ergo Sum the time for releasing the code behind it has arrived. To understand the source code, you only need to have a look at the deployment diagram where the attacker is drawn in red and the […]

Python: Simple Socket Server

The simplest socket server, don’t know why but I always forget how bind is used in python. import socket   sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(("127.0.0.1", 1024 + 666)) sock.listen(5)     client, details = sock.accept() while 1: data = client.recv(1024) print "data : %s" % repr(data)import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(("127.0.0.1", 1024 + 666)) […]

Python: POST XML over HTTP

Short post to remind myself how to do HTTP requests using python, really easy stuff that I quickly forget. Straight forward example using httplib and urllib from python. In the example I just perform some kind of login request retrieve the session id and then other request sending XML data using POST. Code! Feel free […]