Posts in Category: Linux

[Linux] Kernel Rootfs with + SDCard, SPI, sqlite & rsync for grasshopper, avr32 toolchain for 32-bit linux

Hey, if you need a precompiled image for ICnova ap7000 Base aka grasshopper, with sdcard support (look for embedded journal 2 to a how-to here) and SPI (here).

- To flash the image on the icnova just do this from a remote terminal (lets assume you already have rootfs.avr32.jffs2 on /tmp)

cd /tmp
mount -o remount,ro /
dd if=/tmp/rootfs.avr32.jffs2 of=/dev/mtdblock2

Be very carefull or you will corrupt the partition and you wont be able to boot from the icnova flash! (make sure you have sufficient knowledge on u-boot and linux)

Download rootfs+kernel

[HOW-TO] Real-Time Auto-Tune in Linux

I didn’t see auto-tune for linux tutorials for a while so i decided to write my own.

You will need 2 important pieces:

You’ll need to do this commands (for Ubuntu)

sudo mkdir /usr/lib/ladspa                                        #will create ladspa library folder if you dont have it yet
wget # look the site for 64bit version
tar zxf autotalent-0.2_Linux32.tar.gz                                                        #extract package
sudo cp autotalent-0.2_Linux32/ /usr/lib/ladspa             #copies library to ladspa lib folder
sudo apt-get install ardour #installs ardour and JACK                           # installs ardour and its deps
sudo ardour2                                                                                                   #runs ardour

Next you’ll need to add a new track, by default it will apply your mic as input.
Insert autotalent plugin
Finaly you turn on monitoring to hear you effect in real-time.


See the video if you have any doubts. (it’s very rough though)
Now go you singer! :D

Qt Deskew – qdeskew 0.2

Command-line app for performing deskew over an image in C++/Qt4.
Based on java version jdeskew from here.

It uses the hough transform to perform the skew angle detection.
All image opening/saving is performed by qt4 libraries so expect large compatibility.

You can use the imagedeskew class on your application if you want!

Usage: ./qdeskew inputFile deskewedOutputFile

Compile (the usual way – you’ll need Qt4):
- qmake
- make

Casio CFX 9850GB made wireless with Xbee

Hei, i want to show you something i did some time ago, i hooked up the serial connection of the calculator to my xbee, and made it wireless!

You can upload/download programs to it, or use my chat application! You can see it in use below.

If you need the schematics and/or configurations i’ve made just live it on the comments and i’ll post it here (i have no patience to do it today)


[HOW-TO] Count number of lines in files on Linux

Hi, long time no see! Here is a quick tip!

for i in `find * -name *.cpp`;do tmp=$tmp+`nl -ba "$i" |tail -n1|awk '{print $1}'` ;done;echo $tmp|bc

to print the number of lines of code in your current folder, you can change the *.cpp by the expression you want!
Known bugs: it seems not working with folders with spaces, if anyone knows how to fix this, please comment!

[Quick Tweak] lid button working on asus 901 on Ubuntu 9.10

So far so good, ubuntu karmic koala is working fine on eee 901, but suspend when you lid the monitor isn’t working.

You can simply edit the following file (/etc/acpi/events/lidbtn) as root and substitute the “lid” work for “LID”.
Maybe it will work for more notebooks.

KDE network bandwidth clock 0.1

Hi, i’ve started a new project this weekend, based on this post from Gizmodo.

This is a 24h clock divided by half hours, and maintains a log from the bandwidth available on your PC, very usefull i think!

Please help testing and give me some features/bugfixes if you want!


Casio CFX to PC chat

So my new project is to establish a connection with my Casio CFX-9850GB PLUS to send and receive messages with my pc.
Hardware used:

  • Casio CFX-9850GB PLUS
  • PC (Slackware box, but the code can be easily adapted for windows)
  • Arduino (for the serial to USB connection (PC to Casio), i don’t have a cable, look for DIY cables)

Software Environment:

As this is a hurry up thing i used a easy framework for C++:

  • Qt4 (for debugging and strings manipulation)
  • qextserialport (x-platform serial implementation)

I borrowed most of information from here

Source Download (with Linux x86 binary and qextserialport *.so)

7.000.000+ downloads !! Congratulations CTorrent!

Since August 2008, i commited the CTorrent for iPhone cydia repo, and since then more than seven million downloads were performed.

Congratulations to CTorrent devs and OSS!

See the stats

Edited: 12Mar2011

KDE 4 is out! So let’s give it a try..

So today kde4 final release 4.0.0 is out, it’s a great change, ’cause i hope with introduction of qt4 we are going to have better multiplataform software. If you are now on programming (there are Qt4 bindings for c++, python and java), think of starting your first projects so one day you’ll be helping a major community!