yerga blog

For a world where many worlds coexist

1

May

Talking about Hildon widgets

Posted by yerga  Published in Free Software, Maemo, Nokia 770, Nokia N800, Nokia N810, Python

I was playing with Pymaemo Hildon module in Maemo 5 SDK, and I thought it was a good idea to put some code examples to use some of the new widgets with Python since in the new tutorial there are only examples in C and some people aren’t comfortable in this language (I include myself).

The widgets with which I have been playing till now is the following ones:

HildonPannableArea [screencast]
HildonStackableWindow [screencast]
HildonAppMenu
HIldonTouchSelector [screencast]
and
hildon_gtk_window_set_progress_indicator

In these links you have a small python example of each. Some of them are a rewrite from the C code in the tutorial and other are written for me from scratch. Don’t hope big and complex examples ;)

Finally there is a widget that I think it hasn’t had an improvement in Fremantle and it hasn’t alternative in the default set: Hildon Number Editor.

Hildon Number Editor

I can’t use it with my fingers.

I wrote a few months ago a widget in Python that was doing the same function but that could be used by the fingers (you can do it smaller too, at your election):

Finger Number Editor

1 comment

29

Apr

State of my nation (related to Maemo)

Posted by yerga  Published in Asturias, Free Software, GNU\LINUX, Maemo, Nokia N800, Nokia N810, Python

I have just promoted SharePy 1.0~alpha3 to the Extras repository (don’t scare you this version name because it should be stable enough).
This new stable version has the following new features from the 0.2 version that was until today in Extras:

  • Flickr support.
  • Picasa support.
  • Youtube support.
  • Blip.tv support.
  • SlideShare support.
  • Option to add an entire folder.


SharePy main view

SharePy file list


Now the application is coded in such a way that it’s easier to add new services, as if it was supporting plugins, still I need to improve this code to make this much easier to other developers who want to add other services easily.

Also I have dropped the support of the Share on Ovi service because from the change in the method of authentication in share.ovi.com it wasn’t working and I haven’t been able to get it working again. Sorry.

There some services that will be supported in the future like Facebook, Vimeo, Metacafe, etc.
If you would like some other service , don’t hesitate in ask it.
Also I have uploaded some python modules to the repositories like python-slideshare and python-facebook. With this names you will imagine that are doing them.

In another related topic, the last Monday I was coding a small application to show quotes from the markets. It gets data from Yahoo Finance.

I was launching a contest in the IRC and in Talk to choose to name, and the winner is StockThis.
Congratulations to man_in_ltop, he has suggested this name. Sorry, there isn’t prize.

The application is simple as hell, you can see some screenshots here:


StockThis market list

StockThis graph view


It will be available in Extras in some hours or days when I fix the last couple of bugs. A new python module is uploaded python-ystockquote, to get data from Yahoo Finance.

To finish the post, just to say, last week I was in a talk that Frade gave about Maemo in the Asturlinux X Anniversary. Also, I did a free software course in the University of Oviedo, where jsmanrique spoke about portable devices with a part about Maemo too. Very Interesting talks.
I am very glad that one of my applications was put as example in both talks. Thanks!

no comment

10

Jan

Maemo WordPy is becoming an adult

Posted by yerga  Published in Free Software, Maemo, Nokia N800, Nokia N810, Python

Maemo Wordpy has come to the 1.0 version.
After several months of hard work from the last version and also several months of delays from the planned date (I needed to have some fun too), the version 1.0 beta4 has been promoted to the Extras repository.
It will be very similar to the final 1.0 version, only bugfixes will be added.

Maemo WordPy 1.0

What’s new:

  • New revamped UI.
  • Edit posts already published.
  • Livejournal support.
  • Manage status of the posts.
  • Picasa support (upload, and insert into a post).
  • Schedule posts (Blogger and Wordpress).
  • Create new categories (Wordpress).
  • Support for post password and slug (Wordpress).
  • Autosave posts.
  • Support for launch with command line arguments (–title and –post).
  • Upload multiple images at once to Flickr and Picasa.
  • Remember paths to open posts, open images, etc.
  • And other many minor improvements.

It has many changes in the code from the last version, practically a complete rewritten, maintaining very little of the previous code.

The most important part is the UI change with the linear screens about Antoine RJ Wright (Maemo WordPy’s designer) was spoking some time ago. Thanks Antoine!
I can add very little to his words, only say that everyone try it and let us know your opinions about the interface.

The only bad mark I would put to Maemo WordPy is the time it’s late in starting, actually 15 seconds. It’s really a problem. This problem comes because the use of python + gtk + glade, specially if you use a glade file of 7000 lines (400 kB).
I am thinking about several ways for improving this and work will be done in order that Maemo WordPy can start in nanoseconds (ok, at least in few seconds).

I would like to gather some feedback about two existing features that could be deleted in Maemo WordPy next version:

  1. Preview posts: This feature while could be nice, but really doesn’t work as in your blog because the lack of CSS style. While it could support CSS, I think it isn’t worth the try, until a better thing than gtkhtml2 could be used.
  2. Upload images to Flickr and Picasa: I am thinking in get rid of this part because SharePy is doing a good work in this field (and it’ll be better).
    While have this feature handy in Maemo WordPy is nice sometimes, it could remove some weight from Maemo WordPy. And the recommendation is use SharePy.

What do you think? Are you missing this features if they were deleted?

Of course, there many features to implement in future versions. You could read some of the them from the TODO list in the svn.
Also, Maemo WordPy is open to other suggestions specially if they come with some code ;)

Try Maemo WordPy 1.0 beta4.

Of course, THANKS go to everyone who has written to me with feature requests, giving me support, etc., everyone of them is part of this release ;)

1 comment

10

Oct

Presenting SharePy

Posted by yerga  Published in Free Software, Maemo, Nokia N800, Nokia N810, Python

SharePy just have come to its second important release, so it’s a good moment to present it in society, since I couldn’t be in the Maemo summit presenting it.

I have created an application to upload files to the Nokia service Share On Ovi from the Internet Tablet. In the actual version it’s a simple application, you can add files (images, videos and audios), tag it and upload to some of your channels in Share On Ovi.
The important change in the 0.2 version is you can add multiple files at once, and tag it as a batch.

Image list in SharePy

This application have received good feedback for the users of the 0.1 version (thanks to all), so I hope you enjoy it. I have good ideas to add to SharePy in next versions, and will be putting soon a list of them in its web page (almost empty at the moment).

It’s not yet in the Extras repository, it’s in Extras-devel for test purposes, when it has passed the quality test it will go to Extras. If you want to be a beta tester, install it from extras-devel (only if you are an experimented user) and tell me your comments. I will appreciate it. Now, it’s in the extras repository, install from here: http://maemo.org/downloads/product/OS2008/sharepy

The most difficult part writing SharePy was create the python library to handle the Share On Ovi functionalities. In this version it has support to upload files and get your channel list. Hopefully Nokia is releasing some kind of documentation of the API soon, and I can to add more features easily without have that research everything.

To finalize, a note to Maemo WordPy users, the new and very waited 1.0 release is coming sooner than you think, I will write a post with comments about the new features, changes, and specially the new very comfortable to use UI ;)

3 comments

11

Jul

umm, cookies

Posted by yerga  Published in Free Software, Maemo, Nokia N800, Nokia N810, Python

Recipe view in pyrecipe

Do you like cookies? I like cookies and I like cook cookies.

Yes, I like cook very much and I like to have my recipes always to hand, but the paper is already gone out of fashion, so I wrote a new application to manage my cooking recipes in the Internet Tablet.

And today I have released Pyrecipe’s first version. It can create, edit and show recipes. Actually it can import recipes in the Gourmet and Krecipes formats. It can export to HTML, Gourmet, Krecipes and Mealmaster formats. More formats are coming.

It has other functions as Timer, where you will be able to control the time you are cooking.
Also it has a small Shopping List. It has a basic interface, with options to add, to delete and to mark items. You can save shopping lists in a file to open them in another moment.

Pyrecipe is in beta state yet. Actually it only run in OS2008. Soon it will support previous versions.
If you want to try it, you can install pyrecipe pressing in this arrow in your Internet Tablet browser:

It will add the extras-devel catalogue with beta software to your application manager. I recommend that after installing pyrecipe you should deactivate this catalogue. You can do it with the following way:

  • Go to the application manager.
  • Menu ->Tools -> Application catalogue.
  • Search the ‘maemo Extras Devel’ catalogue and select it.
  • Press Edit button.
  • Check Disable.
  • OK and Close, and it’s all.

I would receive charmed comments about the application as well as international recipes or even a lunch invite ;)

2 comments

9

Feb

Maemo Wordpy 0.6: And Blogger arrived

Posted by yerga  Published in Free Software, GNU\LINUX, Maemo, Nokia 770, Nokia N800, Nokia N810, Python

Between exam and exam, I had time to launch Maemo WordPy’s new version.
Well it was almost finished and there was a beta in extras-devel repository and it seemed it was working well and it became slightly popular :) but I didn’t want to launch the final version until I wasn’t receiving the n810 to be able to test the OS2008 version.
So launching it today, I have time to rest and to enjoy tomorrow during my birthday.

Well, here there is a list of the new features for this version:

  • Powerful image edition.
  • New preferences with support for multiple accounts.
  • Define images in offline and upload it when publish. Yes it’s possible now!
  • Insert flickr images in an article.
  • Upload images to flickr.
  • Option for set font size.
  • Zoom in text with hardware keys.
  • OS2008: Preview article tab.
  • OS2008: Option for finger-friendly scrollbars.
  • OS2007-OS2006: Preview article in the browser.
  • Wordpress: Categories sorted alphabetically.
  • Wordpress: Option for allow or avoid pings.
  • Blogger support: Write articles, set labels, upload local images to Picasa, publish/draft. Thanks to Jayesh Salvi.
    An explanation, the support for Picasa is only when you want to insert a local image in an article. In the future there will be major support for Picasa, especially if MS-love-Yahoo goes out forward.
  • A nice easter-egg. It’s a small silly thing, but it can be funny. I am going to add a small easter egg in every new version. Please, python gurus, don’t look at the code :)


Known Issues:

Only for Blogger
If you have installed Erminig, you will have gdataclient 1.0.9 installed.
Maemo WordPy depends on the same library but I have called it python-gdata (taking Debian’s directives) and I have upload it to the extras repository.
I have uploaded the version 1.0.10, which has support for Picasa, this way if you have gdataclient 1.0.9 you will not be able to upload images to Picasa.
There is a solution, uninstall gdataclient and to reinstall Maemo WordPy, with what you will install the new python-gdata version and I think Erminig will be able to work with this version equally.

Unknown Issues:
Many :)
As you can see this version has a good jump in features, so if there is some problem, please to comment it. Feedback is welcome.

You can download the new version, following the instructions in its web: Install Maemo WordPy
Or it’s possible that already it’s available in your application manager.

You can see the roadmap as it’s changing with every version, since the people suggest ideas to improve Maemo WordPy: Roadmap.

Have fun.

4 comments

28

Jan

Testing libmokoui2 python bindings in maemo

Posted by yerga  Published in Free Software, Maemo, Nokia 770, Nokia N800, Nokia N810, Python

I was bored and reading moblin mailinglist, when in a message there was a link to the libmokoui2 code, there was mentioned that there were a python bindings. This library has the famous Moko Finger Scroll function.

So I compiled libmokoui2 with its fingerscroll function in maemo. Nothing that other people hadn’t done in the past. But also I verified if the python bindings were functional in maemo, and it worked, in a few minutes I had working a small example with a treeview, so I modified mabugz to test this scroll widget, instead of a normal gtk.Scrolledwindow. Also I did some tests with Mirage and its thumbnail pane.

You can see the test video in youtube: Mabugz with finger scroll.

Let’s go on to the practical part, what do I do to have this widget in a python app?

Firstly to say that I have tested it in Chinook, and I don’t know if it will work in previous versions. I also don’t know if it will work in the device (I can’t test it in a device thanks to the Nokia spanish shop), but I don’t see because it should not :)

1) Download the code from the SVN:

svn co http://svn.openmoko.org/trunk/src/target/OM-2007.2/libraries/libmokoui2/

2) Install some dependences.
fakeroot apt-get install python2.5-gobject-dev python2.5-dev libffi4-dev gtk-doc-tools

I suppose that other python packages already are installed if you are a python developer.

3) The built of the python bindings depends of python-gnome, that’s not available for maemo. But in this case only we need to be deceptive with the configure script, as if we had this library.
To do this, download the following package python-gnome2-dev from debian,
Uncompress it and to copy gnome-python-2.0.pc to the pkgconfig directory:
dpkg -x python-gnome2-dev python-gnome2-dev/
cp python-gnome2/usr/lib/pkgconfig/gnome-python-2.0.pc /usr/lib/pkgconfig/

4) Enter in the libmokoui2 directory and:
./autogen.sh
Probably you will have to execute the autogen.sh from out of scratchbox, since it was giving some error that I couldn’t understand :)

export PYTHON=python2.5
./configure --enable-python --prefix=/usr
make
fakeroot make install

5) We are going to verify that everything works correctly, so go to the console, and write:
python2.5
and into the python interpreter:
import moko
If the module is imported correctly, it won’t show any error.

6) This way now we are going to make it work in a python app, having a program with a
gtk.Treeview into a gtk.ScrolledWindow, we are going to replace the scrolledwindow with the moko finger scroll widget.
I have tried also in a gtk.Textview with the property sensitive in False in Mabugz
This way if our code was something like that:

sw = gtk.ScrolledWindow()
treeview = gtk.Treeview()
sw.add(treeview)
window.add(sw)

now it will have this form:

mokoscroll = moko.FingerScroll()
treeview = gtk.Treeview(
mokoscroll.add(treeview)
window.add(mokoscroll)

And voilá it will work.
This also will work if we do the interface with glade, the only thing we should do is to reparent the new widget.

It would be perfect that someone was packing libmokoui2 with its python bindings for Chinook, some volunteer?
Does Chris have plans to do that?

5 comments

About

hackergotchi

I'm Daniel Martín Yerga and I'm a chemistry student. In this blog I'm going to speak about Chemistry, Free Software, GNU/LiNUX, and Internet Tablets.

Donate

Pages

  • About me
  • Nicotine for Internet Tablets
  • Maemo Periodic for Internet Tablets
  • Maemo WordPy for Internet Tablets
  • Lybniz for Internet Tablets
  • Mirage for Internet Tablets
  • Mabugz for Internet Tablets
  • Pygtkbrainy for Internet Tablets

Search

Recent Post

  • Talking about Hildon widgets
  • State of my nation (related to Maemo)
  • No defined title
  • Maemo WordPy is becoming an adult
  • Presenting SharePy
  • Porting to Maemo is fun
  • umm, cookies
  • Download statistics from extras repository
  • Maemo Wordpy 0.6: And Blogger arrived
  • Testing libmokoui2 python bindings in maemo

Categories

  • Asturias (4)
  • Celebrities (4)
  • Chemistry (9)
  • Free Software (33)
  • General (3)
  • GNU\LINUX (27)
  • Maemo (32)
  • Me (3)
  • Nokia 770 (8)
  • Nokia N800 (12)
  • Nokia N810 (11)
  • Python (7)

Archives

  • May 2009 (1)
  • April 2009 (1)
  • January 2009 (2)
  • October 2008 (1)
  • July 2008 (2)
  • March 2008 (1)
  • February 2008 (1)
  • January 2008 (1)
  • December 2007 (1)
  • November 2007 (1)
  • October 2007 (1)
  • August 2007 (1)
  • July 2007 (3)
  • June 2007 (2)
  • May 2007 (7)
  • April 2007 (3)
  • March 2007 (1)
  • February 2007 (4)
  • October 2006 (1)
  • September 2006 (2)
  • August 2006 (2)
  • July 2006 (1)
  • June 2006 (1)
  • April 2006 (8)

Links

    Recommended

    Maemo
  • Forum Nokia
  • Internet Tablet Talk
  • Maemo Downloads
  • Maemo Garage
  • Maemo.org
  • Planet maemo

  • Chemistry
  • ACS
  • Alquímicos
  • ANQUE
  • CSIC
  • FICYT
  • IUPAC
  • ScienceDirect
  • SEQA

  • Computer Science
  • Debian
  • PyGTK
  • Python

  • Others
  • Oviedo University

  • Virtual Life
  • del.icio.us
  • Flickr
  • Jaiku
  • last.fm
  • Launchpad
  • maemo profile
  • Ohloh
  • Personal gallery
  • Personal Web
  • Technorati
  • Youtube

Subscribe

  • RSS
  • Add to My Yahoo
  • Add to Google
  • Add to netvibes
  • Subscribe in Bloglines
  • Add to Pluck

Jaiku