Archive for August 2008

Ubuntu encrypted partitions

August 13, 2008
The security is basic and for people that wish to add more privacy on their data, this post will be a great option. As reference, i can say that this can be a good practive to protect us or just for fun!!!
Some months ago, i read one article from ubuntu tutorials about howto encrypt a partition in 7 steps. Well that guide is -for me- the best that i found and explains shortly howto “hide” to anyone our information.
My recommendation for all the people that wants follow the tutorial is advance whitout any doubt to the Step 7; however, i will add some modifications trying to offer a simple howto mount the encrypted-generated partition.
The addition of the partition (encrypted) means that every time that you want to mount the drive must input the proper password each time at boot time; well, avoid this mounting the partition only when you need using gdecrypt, a nice python app that makes our work more simple.
Just install and use, you can locate the link for access to this tool in the Applications/System Tools Menu. Open it, locate the encrypted partition in the combo box, choose the mounting point, press “mount”, input the password and done…… The partition is ready for use in your desktop.
Pantallazo-GDecrypt

“View your mind” in a clean way

August 9, 2008
Some times the people needs to put clear their ideas and -also- with a properly order.
In this case, i will show us to vym (view your mind), this tool do exactly as we say: you have to think and translate your ideas in a virtual page, using a simple tools, building intuitivily a group of concepts for obtain a main porpouse: a planning guide.
The major feature -for me- is the option for export the conceptual map to taskjuggler (a very good project planning application for Linux), which allows me use for any project in my company, but also with my costumers who have seen the benefits of this tool (business planning then….).
Next, you’ll see a graphic, exported from vym and show us the planning for a new project: Smart Control Panel (scp) which goal is to be a really simple and powerful application for *nix administrators.

Don’t wait for try this great tool.

Hola Mundo!

August 8, 2008

Bueno, comenzamos este nuevo espacio NewFFTek con buenas intenciones y compromisos….. en breve publicaré algunos artículos técnicos interesantes, como por ejemplo: hacks para mandos de wii (wiimote), sistemas de control de versiones con bazaar, como implementar un cluster mpich2, procesamiento paralelizado y distribuido empleando GPUs (más de 1000 procesadores en simultaneo!!!), simulación de escenarios, blender, programación con python y erlang…. Ah!!! me olvidé: este blog será en inglés únicamente, mis posts en castellano sólo estarán disponibles en Spleen at… (Blogger in spanish).
This blog will be in english… thanks in advance.

Threads in python: a short way

August 8, 2008

Today i was in a meeting with some students/workers who needs to program an application for control devices through a serial port, well in this moment i will not take about this task, if not about the need of send many independent signals.
In fact, currently the application (with a curses module) only controls a single device, but we need operates “n” ports and “n” boards, who we can that?. Simple: threads.
Threads allow send tasks simultaneously in a program, each task or thread is independent and helps to “do” many things in the same time. Well, stop to the words:

#!/usr/bin/env python

import thread
import time

def print_time(delay):
    while 1:
    time.sleep(delay)
    print time.ctime(time.time())

for a in range(0,20):
    thread.start_new_thread(print_time,(2,))
    print “Task:”,a
    time.sleep(2)

Obviously, copy the code and paste on a new file, by example: thread_demo.py, run it.

Task: 0
Fri Aug 8 21:50:28 2008
Task: 1
Fri Aug 8 21:50:30 2008
Fri Aug 8 21:50:30 2008
Task: 2
Fri Aug 8 21:50:32 2008
Fri Aug 8 21:50:32 2008
Fri Aug 8 21:50:32 2008
Task: 3
Fri Aug 8 21:50:34 2008
Fri Aug 8 21:50:34 2008
Fri Aug 8 21:50:34 2008
Fri Aug 8 21:50:34 2008
…..

The result show us in a same time many tasks, try to apply this concept to any application which needs include parallel works. In the further articles i will to try to focus in some complex python areas, obviously, i will not forget the serial port control (or parallel, USB, etc. if you wish).

Editra: Cool Programming

August 8, 2008

This article if for the people who loves, needs or work in the programming business, some time ago exists a new cool text editor and literally: “focuses on creating
an easy to use interface and features that aid in code development” (Editra site).

For many time i have use vim or drpython for coding and trying -recently- with eclipse and anjuta for the search of a new application which brings me more power, those 2 last apps are very good but have a high load and consumes a lot of resources. Editra is really easy and has a lot of features not included in many text editors, including: memos, version control system (git, bazaar, cvs, svn), auto-complete, auto-suggestion, etc.

Take a look and you will see a great tool for our work, don’t be regret. Soon i will post some small tutorial for plug-in programming for this application, which -by the way- is fully written in python and wxwidgets.