Posted tagged ‘python’

MI-17 Helicopter Simulator: FlightGear Core FLOSS Inside

May 24, 2009
After a year of continous work of the CICTE (Peruvian Army) to develop a new MI-17 helicopter simulator, in the SITDEF the beta release for the solution was properly showed.  ICTEC, my company, as software consultor for the DIDETEC/CICTE, suggest -obviously- FLOSS solutions to make the develop times faster and in this case, the core of the new peruvian simulator is a FlightGear based application.
Many months of training in Blender, Python/GTK/Glade, Databases, etc. allows to the people of the CICTE build now a really good and cheap option (the budget was about US$ 600k, meanwhile the market offers at least US$ 3.5M simulators).  Peru is making our own technology pieces and FLOSS based (wait for more technical news).
We also contribute (and return) to the Open Community with articles like this: Building_terragear-cs_in_Ubuntu_64

Check the photos:
Simulator Entrance (Real MI-17 Cabin)

Pilot Fliying over Lima/Callao (Check the Scenario)

Pilot still over Lima/Callao (Projection in the side now)

Computers for the electronical control (at least 200 signal processing)

Instructor Control Panel (Python/GTK based with full FG Admin)

People waiting for their turn (the row was really big each hour)

People enjoying the solution


Blender Game Engine for Real World Simulations

May 21, 2009

This week is very excited for all members of ICTEC, after some months of continous work, we launch the first alpha release for an Army Shooting Simulator made completely in BGE and -of course- merged with a lot of python.

Previously, we use Blender for build objects in a real geo-referenced world for the MI17 simulator, but now all the work was made enterily for BGE andall the new features provided since the launch of 2.48 version.

In the next days, we launch more information about the making of and tutorials for build your own multiplayer real-style simulator (stay tune!!!).  The initial shoot was made for the Peruvian President, Alan Garcia, in
SITDEF 2009 (II International Defense Technology Exhibition and Prevention of Natural Disaster), who taste the FLOSS flavor.

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.

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:
    print time.ctime(time.time())

for a in range(0,20):
    print “Task:”,a

Obviously, copy the code and paste on a new file, by example:, 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.