You are viewing 25 entries, 25 into the past.
22nd March 2013
21st March 2013
8th March 2013
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
So, these days distributing malicious software is considered okay?
I have seen uglyness in EULA's before, but... this is scary: :
DIGIPEN MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE GAMES SOFTWARE IS FREE OF MALICIOUS PROGRAMMING, INCLUDING, WITHOUT LIMITATION, VIRUSES, TROJAN HORSE PROGRAMS, WORMS, MACROS AND THE LIKE. AS THE PARTY ACCESSING THE GAMES SOFTWARE IT IS YOUR RESPONSIBILITY TO GUARD AGAINST AND DEAL WITH THE EFFECTS OF ANY SUCH MALICIOUS PROGRAMMING.
(From game called Perspective).
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
Push-to-talk over email for n900
I updated tools at : tui/maemo. They now include:
loc.py: Estimate location based on GSM cell info and opencellids.
chmi.py: (For czech users) Get current position and load CHMI weather data with current position displayed.
myptt: Record voice message, then send it via email.
fakegpsd.py: Export gps position using gpsd interface. (Enables you to run rana on cellphone.) Very bad hack, should use threads.
8th February 2013
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).
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
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
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
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
27th December 2012
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
9th December 2012
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
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
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
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
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 : gpsd.py). 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
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.
7th October 2012
These days I'm playing with : Rana openstreetmap navigation. Even while hacking the kernel, I was wondering why programming languages have so bad support for physical units. In kernel, we have long jiffies, long time_in_msec, long time_in_usec, long time_in_nsec... while I always feld we should have jiffies time, msec_t time, usec_t time, nsec_t time; preferably with compiler support to warn and possibly automatically convert...
But situation in rana is much crazier than that. Data comes from location module. Horizontal speed in km/h, vertical in m/s. Ouch. Then it gets converted to knots... because that's what gpsd uses. Double ouch. Rana was written in U.K. .. so it uses mph. But max speed in openstreetmap is... back in km/h. Triple ouch.
5th October 2012
Nokia n900 to HTC Dream (aka T-Mobile G1) comparison
(To set straight rumors of me torturing hardware:) :
HTC Dream (g1) did not even fall into the sea. But somehow it did not like salty/humid air...
Display would work for a few seconds after power-up. More if I stored it in very dry place. So I removed the battery and let it in the car on direct sunlight. Display now works.
I have both to compare now... and I must say I like Dream hardware more. Capacitive display on Dream is nicer to work with. Stylus on n900 is useful for old applications. Dream has better GPS, and triangulation using GSM that actually work. n900 has powerful flashlight. Dream has way better keyboard and is lighter. But n900 has operating system you don't have to fight with, and storage that actually works and is reasonably fast. (All SD cards I had were in "obviously broken" and "just very slow" range). Remote access was never-ending fight, it just works on n900.
Now, sl4a port would be nice. And there's no backup/recovery system on n900 AFAICT. I assumed backing up contacts/calendar from n900 would be easy... it is possible but not that nice.
It turns out
scp firstname.lastname@example.org:./.osso-abook/db/addressbook.db . # https://github.com/runejuhl/N900-address-book-to-vCards/blob/master/parsecontacts.py db_dump -p addressbook.db > dbout.vcf ./parsecontacts.py
Does the trick, but it took a while to figure out. (Does anyone keep tools suitable for working with Maemo phones?)
Tethering Dream was quite easy, lets see if I can figure it out with n900.
23rd September 2012
Current weather in Czech republic on Nokia N900
Hacking on N900 is way more fun that hacking on Android... so here's first application. When ran in Czech republic, it determines your location, and opens web page from CHMI with current rain & short term forecast. It is in : TUI repository.
(Check out CHMI's nowcast here.)
12th September 2012
Yachting on Ari
Sailing in chroatia was fine... everyone survived. We went on Palagruza island on my first trip as a skipper. One odd thing was that Garmin GPS actually showed Palagruza island shifted by about 200 meters. Rest of places seemed to be ok... :
Oh, and one day we tried to rescue inflatable dingy (unsuccessfully). I guess that's why Queen Victoria refused our offer for help on the next day ;-).
Unfortunately, my HTC Dream (aka T-Mobile G1) did not seem to survive the sailing. Screen blanks after few seconds of use. If I leave it in hot car, screen will blank after few minutes of use. I guess there's some salt inside...?
So I got Nokia n900 to play with. It is a bit big, but at least it has X running there.