TEDding from the car – gPodder video Plugin for Rockbox April 7, 2011Posted by GuySoft in Crictor, diy, Electronics, ipod, ITU, linux, open source, podcast, programming, python.
Tags: car, diy, ffmpeg, gpodder, mp4, mpeg, open source, python, rockbox, TED, video
After a few weeks of bouncing emails with Thomas Perl I am happy to announce that we have a working plugin for his wonderful podcast application called gPodder. With this plugin installed, any mp4 video podcast that is downloaded with gPodder is automatically converted to a format playable by rockbox MPEG player plugin. Effectively meaning seamless sync of video podcasts to any rockbox enabled device. I am specifically using the Sansa fuze player, but just changing the screen resolution at the top of the plugin should make it work with any other rockbox device, and with the right screen size. The final product for me of all this technical stuff is that I can listen to TED lectures in the car. Or using the verb was coined by my friend Uzair “TEDding” from my car.
How to Install
- First you should have gPodder installed (available also as “apt-get install gpodder” or any other distribution install equivalent).
- Second you will need these packages installed too:
apt-get install python-kaa-metadata ffmpeg python-dbus
- Now all that is left is to copy this script to
mkdir -p ~/.config/gpodder/hooks/ cp rockbox_mp4_convert.py ~/.config/gpodder/hooks/
- If your are using a different player from the Sansa Fuse, modify the first lines to your screen resolution:
DEFAULT_DEVICE_WIDTH = 224.0 DEFAULT_DEVICE_HEIGHT = 176.0
make sure to include the .0 at the end.
- Thats it! Now each time video is download, for example from the TEDTalks Video Podcast it would be converted on arrival, and relinked as the file to be synced.
As usual, I would love to hear feedback from users and suggestions.
Tags: cellphones, gammu, internet, linux, open source, python, release, sms, twitter
I am releasing here set of instructions and source that will enable anyone to set up a phone number, that if you SMS it, will post your massage on to your own twitter account. This service is called “Twiter SMS Gate”. The service handles multiple users, and should be easily modified to support other services like statusnet (and with a bit more code maybe even other social networks). The SMS hardware required is any cheap cellphone that can work with gammu-smsd (mine is a fake Nokia from India). Twiter SMS Gate also lets users easily register to it with their own cellphone.
I hope that people that like this idea would start hosting more SMS gates, as we create a wide network of those around the world. SMS Twitter Gate-IL , The Israeli Gate, has been running for a few weeks now and even got covered in the local media here.
The source is written in Python, which includes the phone hardware hooks, webserver, twitter client and database access.
Here is the cellphone used to run my server, just to show you how simple it is to do this, no super-expensive hardware required! (server is also my personal Linux-running PC:
- Source is available here on GitHub, along with basic instructions on how to set it up.
- Working example of an SMS Twitter Gate in Israel
- List of working gates (one at the time of writing this)
If you have any kind of difficulty setting this up, please give me feedback, so we can make it as easy as possible.
3arabi – Arabic chat to English translator December 4, 2010Posted by GuySoft in Crictor, Hamakor, ITU, open source, programming, python.
Tags: 3arabi, arabic, code, open source, programming, python
As some might have noticed, Arabic speakers on the net use a form of writing called ‘Arabic chat‘ or 3arabi, which involves using Latin characters and Hindu-Arabic numerals to write words in Arabic. I wrote a small service called 3arabi that lets you translate this Arabic chat directly to English.
Apparently there are tools to do transliteration (converting Latin letters back to Arabic), and also translation. But nothing that does them both. That is why I wrote a small script that uses Google’s transliteration service and ‘Google Translate’. This does the job, but is not perfect, however, it does actually help me understand some messages.
The source is also available in GitHub (its in python). If anyone contributes better code I’ll merge it back to the service.
Thanks to Ira Abramov for hosting the service!
Thanks Muhammad Khatib who wrote Google Translate python API and for releasing it.
Update: Google seem to be blocking the translation service, thinking its spam, if anyone knows how to contact them and asking them to lift that ban would be appreciated.
Using CHDK to photograph blackboards in University Courses August 5, 2010Posted by GuySoft in Crictor, diy, Hamakor, ITU, linux, open source, programming, python.
Tags: chdk, diy, hacking, open source, programming, python, university
During last semester I developed a set of scripts that lets me photograph pictures of the blackboards during my university courses, categorize them while I am taking them and automatically generate PDF document for each course week. Because physics equations are not the simplest things to input in to a laptop in realtime, I have developed the following method. I am writing the post because I have a feeling this tool could help people in many ways, since it did change how I study in lectures.
How it works in a nutshell
During the lesson I take the photographs of the blackboard with a script I wrote for CHDK. In the script you set the course and week of the semester and this is stored per-picture on the SD card.
Bumble-B and an ADC with OpenGL make an oscilloscope February 22, 2010Posted by GuySoft in Crictor, diy, Electronics, Hamakor, ITU, linux, open source, programming, python.
Tags: bumbleb, diy, Electronics, linux, open source, OpenGL, programming, python
During my small semester break I managed to connect my Bumble-b chip to an analog-digital converter (ADC).
With this I can read voltage changes and send the information to the computer to plot live.
Here is a demonstration video:
How its all connected
Pidgin and X-chat plugins to execute a command on new messages February 14, 2010Posted by GuySoft in Crictor, Hamakor, ITU, linux, open source, programming, python.
Tags: open source, pidgin, programming, python, source code, x-chat
A while ago, when I coded message alert plugins for pidgin and X-chat so each time I get a new message my bumble-b LED display would flash, so I thought I might release the code here for people to use.
Both plugins will execute a command of your choice when receiving a new message.
Thanks to Simo Mattila who wrote the base code for the pidgin plugin :)
- Source code for the pidgin plugin
- You will have to follow the README file and compile the plugin. Then place the created .so file in ~/.purple/plugins/ .
- In the plugin menu there would be a configuration window to set the command.
- Source code for the X-chat plugin
- You will have to set the command inside the python file. Then copy it to ~/.xchat2/
- The X-chat plugin also is able to return the name of the user that sent the message.
Here is a video of the X-chat plugin in action:
I hope to find more time to posts the things I am doing, but as usual, university takes up all my time. Stay tuned
Nokia N810 Running OLPC Sugar May 1, 2009Posted by GuySoft in Crictor, Hamakor, ITU, linux, Maemo, olpc, open source, python.
Tags: arm, debian, Maemo, Nokia, olpc, sugar
Touchscreen is cool!
The first thing that I found pretty neat was running sugar on a touchscreen device. It really felt better, since most people that I let play with my XO and flip its screen 180 degrees naturally try touching the screen, expecting it had a touchscreen. Sugar was actually quite good with it on the Nokia.
A script to Slice, Encode and Upload videos to Youtube April 17, 2008Posted by GuySoft in Crictor, Hamakor, linux, open source, podcast, programming, python.
Tags: code, python, script, youtube, zulo
In the past few days, I wrote a script that will take basically any video file, chop it to equal parts under 10 minutes, and upload the result to youtube.
The effect is that I can publish all of my video podcast to youtube, without the long and painful chopping and uploading of files via a browser.
I based the uploading on a perl script from catonmat. I wrote my extension in python.
Here is a link to the sourcecode (under GPL license)
I would love to receive feedback, and improvments.
PSP Enc – Encoding video for PSP / ipod under linux GUI November 27, 2007Posted by GuySoft in Crictor, Hamakor, ipod, linux, open source, podcast, programming, psp, python, wxpython.
Tags: encoding, ffmpeg, podcast, psp, python, wxpython
I am starting to work on the first Israeli video podcast, and we are now trying to figure out what format to publish it under. While pondering about this, I wrote a graphical program that will let you convert Video files for PSP format. And it should also run on iPods (however the screen resolution is specifically for PSP).
The program uses a command I found somewhere (you can see it in the code). The GUI is written in wxpython, which I just started learning not long ago. It is really useful for these small apps.
The requirements to get this working are:
To run it just type: