Maemo and Desktop plugin transparency
21 February 2008 16:15:35
maemo
How to create Maemo Desktop plugins with transparency, how to
distinguist applet drag from applet click, how to add an entry to
Applet settings, or how to package a Desktop applet? I wrote a
simple example in hope to answer a question at
Internet Tablet Talk
forum.
Read my short and arrogant
explanation of key ideas, take a look at
source C file,
or download the latest version of
whole thing (as of 21 February 2008).
Permalink | Comments (1)
DealExtreme trouble
21 February 2008 10:01:04
misc
DealExtreme is in online shop in
Hong Kong selling cheap junk and shipping worldwide, free of charge. While they
may not have the latest hi-tech gadgets like
ThinkGeek, their prices are simply
unbeatable.
I first heard of DealExtreme (DX) on #maemo at Freenode when someone was
looking for battery packs. Wanted to use a CompactFlash memory card as your
mediabox's hard drive? They have a DMA-capable CF-to-IDE adapter for 3.2 euro
(cheaper models also exist). Super cheap red and green lasers? They got them.
They also sell those Chinese iPhone clones for 110 euro.
DX sounds too good to be true, right? I didn't really see any issues with DX
at all so I registered an account and started looking for cheap gadgets I
didn't know I needed. After a couple of days I was ready to place an order. Two
orders, really, since not all items were in stock at the moment. You know, I'm
one of those who want to know what's happening. With computers I tend to avoid
"express" options, "wizards", and anything that tries to
hide things from you to make you feel more comfortable. They just don't have
that effect on me. When I was about to pay my order, I chose "classic
PayPal" over "express PayPal" (or whatever the options were).
This was a mistake.
I soon discovered my order was registered with an e-mail address (I'll call
this "account B")I used to register to PayPal and not the
one I used to register to DX. I was a little upset about this, but since I
could still track my orders I decided this wasn't such a big deal. I paid the
second order with "express option", which actually got my e-mail
address right ("account A"). Being a little frustrated about the
process I opened a support ticket with DX, complaining about the double-account
issue.
I was a little surprise how fast DX answerer to my ticket. Their customer
service staff was very friendly and wrote fairly good English. Definitely a
surprise to me. Unfortunately the CS was unable to resolve the account issue,
but we agreed that this was just an annoyance. She also promised to transfer my
"DX points" to my real account. She closed the ticket, but
unfortunately figured out that since account B already had the points, nothing
needed to be done. I was fed up with the issue already so I decided to forget
it. It was not a big deal to me.
After receiving my orders ~10 days later I realised my keychain laser
pointer was defective. I mean, it did emit visible light, but it was like the
thing drew far more power than the batteries could provide. Using my brand new
autoscale multimeter I measured that the thing was drawing more that 200 mA,
and voltage dropped from 4.3 V to 1.9 V. Obviously the LED didn't like it.
Brightness was perfectly stable when it was fed with a set of AA-batteries
instead of three AG13s. Also, when I was taking pictures for the support
ticket I realised the thing actually came in cardboard and plastic instead of
in a fancy plastic case. I even recorded a video of how the intensity
dropped.
Now that Chinese new year has passed, I took a look at the ticket since I
had not received a reply yet. I discovered thet DX had upgraded their CS
procedures, and all old tickets would have to be reopened in the new system.
The bad news was that the new system required pictures of the product
(that is "clearly showing defect"), back and front of the shipping
envelope, and a picture of all items in the envelope. Obviouslty after three
weeks I didn't have the envelope anymore. I explained the case and substituted
the pictures with dummy pictures and sent the ticket.
After submitting this new ticket from account A I realised this
ticket now originated from account B, and all replies would be sent to it. I
logged out, and tried to log in with account B with no success. It was not a
surprise -- I never registered this account after all. I tried to retrieve
password for account B through retrieve password procedure with no
success. Great, now I would have two accounts, one of which I could not access,
a defective product, and a support ticket I probably could not update.
I logged back in to account A and wrote yet another support ticket. I again
explained everything from double account to support ticket to defective item. I
wonder when this is going to end. And it all started near-perfect... *sigh*
Thu Feb 28 08:00:01 2008: DealExtreme (sales@dealextreme.com) has
issued you a full or partial refund for your payment. In other words, I
sent the item back and received a compensation for the postage fee. I just wish
the replacement will be ok. :-)
Mon Mar 10 19:04:57 EET 2008: Replacement for the pointer arrived
earlier today. I finally had the time to check that it seems to be ok, even
though there's still no fancy plastic case for the thing. I can live with that.
Actually I like it better this way. I'm glad it's over.
Wed Mar 12 02:38:09 EET 2008: I'm starting to think the laser diode
these things use really suck. I've had one set of bateries for two days now,
and obviously they're done for already -- and I haven't really had any time to
play around with it yet! However this one is obviously better then the last
one, the voltage drops from 4.3 to 3.9 volts instead of to 3.5 volts. I think
I'm going to build a battery pack for this. :-D
Permalink | Comments (2)
Woclema & wanha updates
19 February 2008 14:21:53
my software, woclema
Woclema
Get the sources or read more about
Woclema.
- Link to unpublished entry really works now
- adhere to HTTP RFC and actually send "\r\n" instead of
"\n"
- Use meta-tag in HTML to tell robots to only index
"permanent" pages
- Allow editing unpublished entries
wanha
Get the sources or read more about
wanha.
- Require that URL must have at least two characters in its
protocol part. Fixes abort() with protocol identifiers only one
character long.
Permalink | Comments (0)
N810 and IPv6
14 February 2008 12:36:00
maemo, network
I've had my Nokia N810 for about a month now, and while I haven't had too
much time to play around with it, I have managed to get 5795 points in
Pipepanic and complete all boards of built-in single-player Mahjongg around three minutes. Projects such as modifying
GPE Calendar
to use
alarmd have been on hold.
IPv6 has always been something I've been quite enthusiastic about. I know
really know why, but that's just how things are. The bad thing is that OS2008
doesn't come with IPv6 enabled. I wonder why. The whole deal seems rather
trivial if you already have everything else set.
Getting IPv6 to work can be divided in three steps.
- Enabling IPv6 support in kernel.
- Configuring networking: setting up address and routes.
- Configuring applications to use IPv6.
Kernel
Making N810 an IPv6-enabled device obviously starts with having a kernel
with IPv6 support. There is a guide on how to compile a kernel for Maemo 4.0 at
maemo.org. I didn't create a new Scratchbox target but used script-created
sbox-CHINOOK_ARMEL instead.
After getting default configuration with
make nokia_2420_defconfig I edited .config, set
CONFIG_IPV6=y, and run make oldconfig. Apart from mobile
IPv6 (CONFIG_IPV6_MIP6) I compiled other IPv6-related items as
modules, even though I never copied the modules in place. That will have to
wait. make oldconfig also asked about crypto features; I mostly
used the default values. Once make was done with the configuration, I
compiled the kernel and flashed the device with new kernel. As far as I can
tell, everything went smoothly this far.
Configuring networking
At first I was a little worried since ifconfig didn't list any IPv6
addresses, not even link-local. I compiled ip from Debian's
iproute package, copied it to the device just to find out the device
had already received an autoconfigured address and route. So far so good.
If this step would fail, ip could be used to configure the network.
If you don't have native IPv6 connectivity,
SixXS can probably help you with that.
I'm sure aiccu compiles for Maemo.
Application support
Built-in browser in OS2008 is fully IPv6 capable, but DNS-lookups for
AAAA-records is disabled by default. This can be changed easily by entering
about:config and setting network.dns.disableIPv6 to
false. That's all.
Then what?
The next thing would be to create a new initfs with additional modules for
IPv6 and crypto, and to compile busybox with IPv6. If you want/need
ping6 for testing, you can use iputils sources from your
local Debian mirror.
I don't know about IPv6 support of other application that come with OS2008,
but then again I don't really use them. I've surely had enough with the
built-in E-mail client...
Personally I'm already quite happy to see dancing kame at
http://www.kame.net/. :-)
Permalink | Comments (0)