You are viewing pavelmachek

pavelmachek's Journal

Recent Entries

You are viewing 25 entries, 25 into the past.

20th April 2013

1:39pm: Nokia n900 is too close to Zaurus
You know what is the most annoying misfeature of Sharp Zaurus sl-5500? They spared few cents, and did not provide real time clock.

Do you know what is the most annoying misfeature of Nokia N900? Yes. They failed to provide real time clock. actually... it seems to be misfeature of whole Nokia line, including old Nokia 6151.

Now... if you try to swap simcards between two Nokia phones, that's when the fun starts... because you are likely to lose all the time sources.

Bad Nokia.

17th April 2013

2:59pm: 25000 points for openwlanmap project
openwlanmap was emptier than openbmap, but unfortunately I could not figure out how to upload there. Figuring out Openwlanmap upload took a while, too, but I succeeded in the end.

Oh, and based on openmobility feedback, I created "fusion" script to determine position from multiple sources, assuming limit on speed user moves. In the progress, I did some measureemnts. 95% of all "current GSM cell" situations seem to be less than 4.8km from the cell. That was expected. But the same number for wifi is very high: 95% of all "wifi detected" situations fits within 2.8km... Either omnidirectional wifi has way longer range then I expected, or there's something wrong in the measurements. That was with n900.

8th April 2013

2:49pm: TI Chronos surprise
I picked up TI Chronos after long time -- like half a year. (Yes, I'd like to know if Pebble smartwatch is lighter than this... because chronos are a bit too heavy for me.) And I was surprised: time on watch actually matched time on thermometer.

...which was very surpising, given that DST changed in the meanwhile, and given that chronos had trouble keeping good time.

Well... it turned out I was really lucky: chronos was day off. (And then I realized that I did not update thermometer to DST. I hate DST. Changing timezone twice a year is stupid.)
12:15am: openmobility position talk
Openmobility conference was nice... All the promising cellphone platforms around, 2 3D printers and a plane with camera as a bonus.

If someone is interested, slides are here. And yes, contributing GSM cells do the databases is as easy as walking around with Android phone and suitable application. Czech republic has ~50% cell coverage now, so GSM positions are already usable, and it will only get better...

4th April 2013

1:14pm: Horse vs. human
Czech newspapers have article on human vs. animal performance. They claim that horses have top speed around 30 km/h and can't compete with humans on long distances. Well, top horse speed is above 60 km/h (ponies can do 30km/h), and yes they can mostly beat humans on long distances.

Anyway, I always wanted to do horse vs. human races... I'll provide the horse (slightly-trained fjord). Any humans?

22nd March 2013

9:02pm: openmobility conference
It looks like I'll be speaking on openmobility conference in Bratislava. Talk will be about various positioning system, so basically GPS, positioning using GSM and wifi.

21st March 2013

11:54pm: I wondered why monav stopped working on n900
...and yes, I did suspect map format update. It turns out I was right. Thanks to PocketBook hackers monav works for me, again... making n900 way more useful. I just wonder if there's better place to download data maps than

8th March 2013

12:00pm: Flash memory... and are there reasonably small cellphones
The race for the smallest cellphone stopped around time of Ericsson T68... too bad. There are still some small cellphones -- 40g does not look bad, but... I'd really like the race to continue. That does not mean I'm going to give up the Nokia n900, it means I'd like something small for the secondary phone.

Given all the problems I've seen from flash cards, I'd expect SSDs to be unreliable. There's now some evidence SSDs have problems. I'd really like to see the product names... I believe they did one think wrong in the story: as SATA is based on sectors, they should not expect atomicity of 4K blocks.

And on the related note, it looks like SD cards are not as bad as they usually are, you just have to be very careful about formatting. Would not it be nice if mkfs did this automatically?

11th February 2013

1:42pm: So, these days distributing malicious software is considered okay?
I have seen uglyness in EULA's before, but... this is scary:


(From game called Perspective).
12:04pm: What to do if your president goes crazy?
Happened here. It started with stealing of pens. Then he let people out of jail, and stopped prosecution of serious stuff going for more than 8 years... meaning felonies from "giving up state property" phase went uninvestigated. Then he said "oh truth won our presidental election" about candidate that was pretty obviously lying (mild attack on Havel, too). Now he started attacking late president Havel in pretty nasty ways...

Unfortunately, prosecuting president is pretty much impossible to do. Shooting him proved easy, on the other hand, but unfortunately wrong kind of ammunition was used. (He deserves something not so easy to wash away, at the very least.)

10th February 2013

10:47pm: Push-to-talk over email for n900
I updated tools at tui/maemo. They now include: Estimate location based on GSM cell info and opencellids. (For czech users) Get current position and load CHMI weather data with current position displayed.

myptt: Record voice message, then send it via email. Export gps position using gpsd interface. (Enables you to run rana on cellphone.) Very bad hack, should use threads.

8th February 2013

10:07pm: Where do old android applications go?
I used to be running Waze and Push-to-talk lite. Unfortunately... newer versions no longer support HTC Dream
(with its android 1.5). Unfortunately, I was foolish enough to uninstall application (or in case of waze, it simply broke), and now it is no longer possible to install. Oops.

(If someone has copy of Waze old enough to run on android 1.5, let me know. Waze client is GPLed, so that should be legal.)

Speaking of push-to-talk... Push-to-talk over email is surprisingly simple, fast and usable. Typing on cellphone sucks, but speaking a message is not a problem, and sending PTT message is not latency sensitive, so it is fine over GPRS. I may even try to code it for N900. (And if someone already has something similar, please leave a comment).
10:03pm: Android emulation for single process
Single-process emulator... is there one somewhere? Blackberry seems to use one, too (any idea how it is called?), but I can't find them. Apparently Myriad Alien Dalvik was second attempt (and they got it running on n900, but it seems to be waporware). I believe android emulation is going to be very very important very soo -- because of all the local apps. I tried downloading android sources, but even that is non-trivial, and compiling them is apparently also non-trivial... Like weekend project.

23rd January 2013

12:08pm: Hand warming and blinding device that is trying to get you killed (with a complimentary flashlight)
Ok, so I had a chance to play with Zebralight H600, and it is a great flashlight (and great gift from my great girlfriend). Unlike Petzl Nao, it is small enough to fit under the helmet, so that you can actually use it for riding. Ouch, and packing is also way nicer than Petzl; simple cardboard box, not bloated paper box including paper and embedded magnets, with big sticker touting how environmentaly friendly it is. Zebralight is actually friendly, Nao just claims so.

So far so good. I actually like this flashlight. Now... the blinding part. This beast has 750lm, in pretty small package. Activated by single short click. The battery contacts had some problems for me, I tried to troubleshoot, and of course I got "hit" by 750lm beam from close distance. (Fortunately not by the center of the beam). Results are not nice.

Perhaps short click should activate the lowest mode? Or perhaps... when going to the highest setting, it should turn on the power gradually, so that eyes have chance to get evasive action?

Single short click while the light is on turns it off. That is nice; no clicking through other modes (including high-power) when turning of Nao.

Now, normal 18650 fit into the Zebralight. (Good, no custom accumulator as in Nao case). I got dx (sku 5776) TrustFire Protected 18650 Lithium Battery 2400mAh, and dx (sku 47499) Universal AC Charger for AA/AAA/6F22/18650 Battery (AC 100~240V/EU Plug) charger. Despite advertising EU plug, charger will not actually fit into EU socket, but that can be worked around... batteries work as expected, and they are protected. Which is actually bad bad thing.

So.. primary use for the headlight is horseback riding... and for that I need light that stays on. 0.1 lumen is okay (actually, sometimes it is too much, but it is still way better than 10+ minimum mode on Nao), but you need some light so that a) hunters don't shoot you b) cars don't hit you and c) you don't hit any branches.

Nao tried to scare up my horse by doing three bright flashes when battery went low in low-power mode. (Successfully). But then it kept shining... and when the battery went really low, it kept shining without ability to turn it off. Not nice, but that one did not try to get me killed (well except for trying to convince me to ride without the helmet).

Zebralight is another story. So far testing was done at home, battery lasts about 110 minutes in 420lm mode, then goes to 21lm mode for 10 minutes, then goes to lowest mode (0.1lm). It gets hot (as in "too hot to touch") in the first part of the test, and I was not even running it in 750lm mode for more than 6 minutes. But the bigger problem is behaviour at the end of cycle.

Single click activates high-power mode; but the battery can not support high power mode, so current is quickly limited. So far so good. But do it few times (and it is very easy to do by mistake), and current limiter fails to limit it quickly enough, tripping the protection in the battery. At that point, battery has 0V, and you are alone in the dark. Say hello to cars and branches, and try not to look like a pig.... (You can't blame the battery; it is down to 2.8V at this point).

Zebralight is great flashlight... but not going to full power mode on short click (or some other way of improving low-battery behaviour; it already has CPU and knows battery is low, perhaps it could limit to lower-power modes from that point to battery removal?) would make it even better. (How do I update its firmware?)

18th January 2013

9:50pm: ALZA: great deal on 1000mAh batteries
ALZA had two AAA, NiMH, 1000mAh batteries left, for a great price. And yes, I was stupid enough to buy them. Unfortunately, NiMH batteries do not have manufacturing date on them, but I guess they were old. ... Charger showed only <150mAh capacity. 600mAh batteries from same store, same day actually had ~600mAh reported. Oh well, will have to return them I guess.

At least Li-ION batteries from DX seem to work... it would be harder to return those.

5th January 2013

10:16pm: Desktop PC troubles
Desktop PC was giving us troubles for like half a year. It seemed centered around graphics card (failed to POST, VGA card fail, crashes at runtime), but it did have some memory problems too (hard to reproduce; overnight gcc was ok, overnight memtester was not, with single-bit problems). Today Lenka worked with DVDs a bit, and result was crashes "a bit too often". That looked like a clue, so I tried disconnecting some hard drives. (This machine had 4 hdds + DVD RW)... and that helped. PC is now powered by two power supplies (400W + 300W), and I believe problem is solved. Next step is probably getting 2TB drive...

Morale of the story? Yes, power problems are easy to trigger in PCs, and no, power supply is not clever enough to shut down.

28th December 2012

1:07am: Getting number of unread sms on maemo

...does not seem to be exactly easy task. Best way I could figure is using sqlite on /home/user/.rtcom-eventlogger/el-v1.db (thanks to Kurt Fleisch). I really really miss sl4a-like interface... So much that I'm creating to run on maemo.

27th December 2012

7:51pm: Night riding (and Petzl Nao review)

Okay... so I like to ride my horse at night. I modded few headlights in past, and found that I sometimes like to use _very_ low power levels. Like 10uW (That's 0.001 lumen IIRC), because they preserve night vision, don't annoy people around me too badly. I even put a headlamp on a horse... it worked, but then I realized that it may not be so good idea. Now... my girlfried gave me Petzl Nao (big thanks to her). It is beatiful, feedback-control is actually very nice. But... it does not really have low power modes, and does not fit under helmet. My horse says I need to wear a helmet (6yr old fjord). I tried setting it up on the computer (and control software is slow with bad user agreements), but even lowest setting is way too high -- and that would not help with helmet issue, anyway. So I'm getting something new, Zebralight H600F should be on its way, 700lumen max and 0.1 min.

Nao low-battery behaviour leaves something to be desired. You have light on lowest setting to preserve power, and then got hit by three unexpected, very bright flashes. I did not like that, and nor did the horse. Ouch and when battery goes _really_ low, it still shines (good), but can't be turned off (odd).

And a bonus horse in Berlin's subway story.

13th December 2012

8:36pm: Cheaper is not always better
Cheaper and more effective patents in EU. Altrough "cheaper" may sound like better... that's not the case here. It is more like "cheaper and more effective weapons of mass destruction" :-(.

9th December 2012

12:21pm: Headlamp that reacts to its surroundings -- finally
I thought about building this some time ago... and I'm glad Petzl finally did it: headlamp that limits power when you point it to something near, such as map. Petzl Nao seems to be interesting piece of hardware. I'm not sure if they are capable of modes I'd include... I'd include 1 micro-W mode, useful for walking in the forest with eyes adjusted to the darkness, still good enough so that branches do not hit you in the eye. And I found that cca 10mW mode, where you can approximately see meter or two before you and still keep some night vision is useful, too. In general, "put out as much light as you can without affecting night vision" would be cool, but I'm not sure if that's easy with current hw.

29th November 2012

10:14pm: Decoding oops pictures
Should be fairly easy... But normal OCRs are designed to recognize printed text, not VGA font, so I'm not surprised they fail. However, if we know the font used, recognition should be simple. (Bad debian and their non-standard font...). Everything could be probably helped by having something like "XXXXXXXX" line at the top of oops so that decoder could calibrate itself. Or maybe existing parentheses around addresses could be used. Would it be enough to decode just the numbers?

12th November 2012

1:47am: n900 camera cover mystery
Camera in my n900 stopped working ... "Open lens cover", but opening it did not help. I removed the back cover, and voila, camera works. Then I seen loose piece of metal, and figured that it probably causes it.

Today I studied lens cover in greater detail, and appears to use optical sensor to tell if lens is closed or not. "Lens always open" is better failure then "lens always closed", so I put a piece of paper in there. Optical sensor should be blocked now. Weird thing is that camera cover now works, reliably as far as I can tell. It somehow detects the cover through the piece of paper. I wonder what kind of magical x-rays it uses...

9th November 2012

2:12pm: Apparently you are no longer allowed to disagree
If you try to disagree with Valerie Aurora or Matthew Garrett, you are automatically anti-woman, because all statistics are flawless and anyone who disagrees with them is a heretic and should be burned. Too bad.

23rd October 2012

3:05am: gpsd for maemo (nokia n900)
I'm currently playing with openstreetmaps, n900 and rana to report when I exceed speed limit... And to get rana to run, I had to write my own gpsd. I did that, but I don't like the end result too much (it is Is there better solution?

(And is there some right way to hack rana? I have bunch of changes now, but attaching patches to wiki discussion page is "funny").

21st October 2012

2:23pm: How to connect android over n900's internet connection
Stock android does not support ad-hoc wifi networks. Fortunately, you can replace wpa_supplicant (iirc) with hacked version.

n900 will not support tethering by default, but fortunately you can install kernel-power which has iptables enabled. And for a good measure I installed u-boot, too. Big thanks to Pali Rohar for doing the hard work.
Powered by