yerga blog

For a world where many worlds coexist

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 ;)

Share This

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.

Share This

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?

Share This

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

  • 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
  • Maemo WordPy image handling
  • Maemo WordPy 0.5
  • Mirage 0.9 for Chinook
  • Mabugz 0.0.2
  • Mirage’s new version

Categories

  • Asturias (3)
  • Celebrities (4)
  • Chemistry (9)
  • Free Software (29)
  • General (2)
  • GNU\LINUX (26)
  • Maemo (28)
  • Me (2)
  • Nokia 770 (7)
  • Nokia N800 (8)
  • Nokia N810 (7)
  • Python (3)

Archives

  • 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

  • Eskorbuto – A la mierda ¡ya!
    1 day, 3 hours ago
  • Burned, literally.
    1 day, 8 hours ago
  • In home again after 12 hours.
    2 days, 7 hours ago
  • Edurne – Gracioso
    3 days, 4 hours ago
  • Porretas – Que les den
    4 days, 5 hours ago

Flickr

© 2008 yerga blog
Theme by Wired Studios, courtesy of Corvette Garage
Valid XHTML | Valid CSS 3.0
Powered by Wordpress
Close
  • Social Web
  • E-mail
  • del.icio.us
  • Digg
  • Furl
  • Netscape
  • Yahoo! My Web
  • StumbleUpon
  • Google Bookmarks
  • Technorati
  • BlinkList
  • Newsvine
  • ma.gnolia
  • reddit
  • Windows Live
  • Tailrank
E-mail It