Planet maemo: category "feed:2ab7df3bd50c3ff3965ec8d25aee2167"

Marius Gedminas

N9 Hackathon in Vienna

2011-10-12 11:49 UTC  by  Marius Gedminas
0
0

Last weekend I attended the N9 Hackathon in Vienna. Nokia kindly sponsored all food and accommodation costs and, at the very end, surprised me with an entirely unexpected gift of a N9 phone.

Click to read 1146 more words
Categories: /home/mg/blog/data
Marius Gedminas

Porting FBReader to Meego 1.2 Harmattan

2011-07-29 00:53 UTC  by  Marius Gedminas
0
0

Andrew Olmsted built the first FBReader packages for Harmattan, after tweaking the build system a bit. The desktop version of FBReader already used Qt 4, and ran almost unmodified, but with some bugs (segfault on task switch) and ugly UI.

Click to read 1004 more words
Categories: /home/mg/blog/data
Marius Gedminas

Nokia N950

2011-07-19 13:44 UTC  by  Marius Gedminas
0
0

Last Thursday I received a package containing something called the Nokia N950 development kit. Sweet sweet hardware, shame it's not going to be sold to end users. The software is visibly an unfinished pre-release version, but shows great potential. There are almost no 3rd-party apps, which is why Nokia is loaning these N950s to random developers.

I intend to port GTimeLog to it. Although my more immediate need is to have FBReader, so that I can stop carrying both this one and my N900 with me everywhere. Also, vim would be nice.

I've already hacked up Lithuanian support to the virtual and hardware keyboards, thanks to the very nice design of Maliit. As a comparison, I've had my N900 for a year and a half, and I still can't type Lithuanian on it. XKB is not fun.

Categories: /home/mg/blog/data
Marius Gedminas

N900 connection sharing the hard way

2010-07-20 23:50 UTC  by  Marius Gedminas
0
0

My N900 has a SIM card with a flat-rate 3G data plan. My laptop hasn't. What do I do when I want to use the Internet on my laptop somewhere that doesn't have WiFi? Well, there are many options:

Click to read 1128 more words
Categories: /home/mg/blog/data
Marius Gedminas

Oopsie

2010-03-03 17:49 UTC  by  Marius Gedminas
0
0

Sorry for flooding Planet Maemo -- it was a side effect of changing this feed's URL to only include posts tagged "maemo". I'm not sure if the fault is PyBlosxom's or the aggregator's

As a penance, here's a Terminal trick for you:

LABELS='[Tab,Esc,Enter,PgUp,PgDn,F2,VKB]'
KEYS='[Tab,Escape,KP_Enter,Page_Up,Page_Down,F2,Return]'
gconftool -s /apps/osso/xterm/key_labels --type list --list-type string "$LABELS"
gconftool -s /apps/osso/xterm/keys --type list --list-type string "$KEYS"

This changes the toolbar to have three extra keys (Enter, F2, and a key that acts like Enter when the hardware keyboard is open, and opens the virtual keyboard if the hardware keyboard is closed).

Update: added screenshot:

N900 Terminal with new toolbar buttons
Nokia N900 Terminal app with new toolbar buttons

Categories: /home/mg/blog/data
Marius Gedminas

Happiness is...

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

... not having a headache.

In other news, my Nokia N810 Internet Tablet finally arrived. It looks better in real life than in pictures.

Strange quirk: the 2 gigs of extra internal flash memory (formatted as FAT32) are mostly unused (according to df) while at the same time being three quarters full (according to du):

/media/mmc2 $ df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1            1.9G      8.0k      1.9G   0% /media/mmc2
/media/mmc2 $ du -sh .
1.5G    .

Ouch. Time to run fsck.vfat on it. Or perhaps just reformat, to avoid the other famous bug (attempt to access beyond end of device), which, let me check, yes, I also see:

[584959.868000] usb-storage: device scan complete
[584959.868000] scsi 3:0:0:0: Direct-Access     Nokia    N810              031 PQ: 0 ANSI: 2
[584959.868000] scsi 3:0:0:1: Direct-Access     Nokia    N810              031 PQ: 0 ANSI: 2
[584959.872000] sd 3:0:0:0: [sdb] 3932160 512-byte hardware sectors (2013 MB)
[584959.872000] sd 3:0:0:0: [sdb] Write Protect is off
[584959.872000] sd 3:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[584959.872000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[584959.872000] sd 3:0:0:0: [sdb] 3932160 512-byte hardware sectors (2013 MB)
[584959.876000] sd 3:0:0:0: [sdb] Write Protect is off
[584959.876000] sd 3:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[584959.876000] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[584959.876000]  sdb: sdb1
[584959.880000]  sdb: p1 exceeds device capacity
[584959.884000] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[584959.884000] sd 3:0:0:0: Attached scsi generic sg2 type 0
[584959.884000] sd 3:0:0:1: [sdc] Attached SCSI removable disk
[584959.884000] sd 3:0:0:1: Attached scsi generic sg3 type 0
[584960.240000] attempt to access beyond end of device
[584960.240000] sdb: rw=0, want=4013848, limit=3932160
[584960.240000] Buffer I/O error on device sdb1, logical block 501728

It would be interesting to know how this came to be. Do some N810s have more internal memory than others? Or was the filesystem image made too big for all of them by accident?

Categories: /home/mg/blog/data
Marius Gedminas

Discovery of the day

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

If you have python but not unzip (consider, e.g. a Nokia Internet Tablet), you can extract zip files with

python -m zipfile -e filename.zip .
Categories: /home/mg/blog/data
Marius Gedminas

Nokia can has web server pls?

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

The inability of Nokia to provide reliable web servers for repository.maemo.org and tablets-dev.nokia.com is annoying. I am unable to build packages for N810 because the apt repository that contains build dependencies is down, and apparently has been down for a couple of days already.

Categories: /home/mg/blog/data
Marius Gedminas

TOC marks for FBReader

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

Weasel Reader had a feature: it would display marks for all the bookmarks in the indicator line. Handy when you're reading a collection of short stories and want to know how much you'll have to read until the next one.

Today I hacked up this feature for FBReader. Get the .deb in the usual place.

FBReader with Table of Contents marks in the position indicator
FBReader with Table of Contents marks in the position indicator. The book is An Oblique Approach by David Drake and Eric Flint, from the Baen Free Library.

While I was doing that, bzr decided to shake my confidence in it and started throwing assertion errors right and left (no link, the mailing list archive lags horribly).

Categories: /home/mg/blog/data
Marius Gedminas

I've got a Nokia N800!

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

Nokia kindly gave me a developer discount code for the N800 internet tablet, a few weeks ago. That was a very pleasant surprise. Actually buying the thing was complicated, to put it politely. I finally laid my hands on the device his Monday. Yum, yum!

Changes I like best: extra RAM, speed, storage space. The built-in stand. Position of the headphone and charget sockets. Screen (shinier, not as grainy, although I think it reflects a bit more ambient light than the 770 used to). The ability to reorder status bar icons. New Opera toolbar. Backup application that works without killing all other applications and entering offline mode. New themes. Battery time estimates.

Changes I'm not sure I like: new stylus (too short). Lack of hard case (without it I'm forced to lock the keys when I stuff it into my pocket, but the tiny power button is hard to press). The new shape (it's harder to hold it in my right hand while pressing the down button, which is how I like to read books sometimes). The tearing effects when panning in Opera.

The new Media Player merits a category on its own. It indexes all the media files (songs and videos) in ~/MyDocs and in all memory cards automatically. That's very nice when it works. It's frustrating when it doesn't. There's no way to force reindexing after you shuffle files around manually, and no indication when the automatic reindexing is finished. You just have to wait and hope that it will catch up. Also, sometimes the user interaction is very strange: bug 1056, bug 1063.

Overall, I like it better than the 770.

screenshot of the pretty virtual keyboard (Balaton theme)

Categories: /home/mg/blog/data
Marius Gedminas

Sleepless nights

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

My sleep schedule is totally out of whack. I cannot sleep before 3 AM (sometimes I stay awake until 7 AM), then I cannot get up before noon.

As a result I have more free time for hacking. Today I tried to play around with Metacity's compositor, with some mixed success. I also built a patched FBReader with a numeric page indicator tweaked to the size and position of my liking (screenshot). Bzr rocks for maintaining branches!

eazysvn also got a facelift today. It is now installable with easy_install.

<rant>
I do not like easy_install. It wants to install stuff into /usr/lib/python2.4/site-packages. That location is reserved for Debian packages. A sensible default would be /usr/local/lib/python2.4/site-packages or, preferably, somewhere in my home directory, with the caveat that I'll have to set up PYTHONPATH myself. You can force easy_install to do more or less what you want, but that involves reading tons of documentation, invoking arcane multi-thousand line scripts, or sacrificing small animals. Not my definition of "easy".
</rant>

Last night I submitted a patch to add a tiny help topic to bzr. Before that, nights were dedicated to zope.testing and pyspacwar.

In the mean time, actual paying work suffers. Karmic retribution for those three 11-and-a-half hour days I spent at work during the first week of January? No, just lack of willpower to force myself to go to sleep (or wake up) early instead of, for example, blogging.

Categories: /home/mg/blog/data
Marius Gedminas

Random hackery

2010-03-03 11:37 UTC  by  Marius Gedminas
0
0

We finished a rather major restructuring of the internals of a system last week at work. I finally got to experimentally test Martin Fowler's refactoring techniques (small steps) on a big change. It was fun and I tended to stay late at work because I wanted to finish what I was working on. I missed that feeling. Oh, and Subversion is good, but merging is a big inconvenience.

During nights I worked on PySpaceWar: added sound effects, support for background music (but didn't look for freely redistributable soundtracks yet), some visual effects, some more configuration options. And once again playing the game became more interesting than coding it. I can beat the computer with 100 kills to its 50-60. I should release a new version soon.

Today I discovered the cause of a long-standing problem of random reboots of my Nokia 770. Turns out FBReader leaks file descriptors, and once the system runs out, some important process crashes and the device reboots. A patch and a fixed .deb are on my FBReader page (of course I also sent the patch upstream).

Meanwhile Nokia released the N800. *drool*. Twice as much RAM, twice as much "disk" space (flash memory, actually), faster CPU, two full-size SD slots, interesting software updates. I want one, but since Nokia only sells them in a few countries, I'll probably have to wait until somebody I know can bring one to me.

Categories: /home/mg/blog/data