Asleep from Day

May 15, 2009

My choice of desktop recorder

Filed under: tip — John @ 2:53 pm

Just a quick note: after tried out all choices in 5 Ways to Screencast Your Linux Desktop, my pick is gtk-recordmydesktop. It’s much much easier to use then vnc2swf without the bugs of Istanbul.

April 26, 2009

0xlab Launch

Filed under: 0xlab — John @ 11:17 pm

0xlab is a innovative movement. Taiwan, our home country, has been doing IT hardware manufacture for quite a long time and is fairly successful. The thing about hardware manufacture is that it’s all about cost-down. Once your competitors know how to make the same product, it all goes down to the scale and production management.

On the other hand, the software industry in Taiwan has always been poor, as long as I can remember. The only two big local (maybe not so local) software companies here are TrendMicro and Cyberlink. Considering the fact that Taiwanese students always do great in the global programming competitions, the performance of software industry is relatively not that significant.

The involvement of FOSS here used to be in a really really bad condition. Giants like Asus has been using FOSS to create consumer products for years, but they didn’t really understand how to play nice with other kids, until suited by people like Harald Welte. It’s not like “I’ll only open up if I absolutely have to”, the involvement of FOSS is actully becoming a good business strategy now. Just think about why giants like Intel, Novell, Apple and Google are getting more and more involved in open source. There are reasons behind all these.

We should really use our advantage in hardware to join this trend. 0xlab is the first step, and I hope there are many to follow.

April 9, 2009

Google Calendar: offline mode broken?

Filed under: Google — John @ 11:26 am

If I access Google Calendar with Google Chrome now it will ask me to enter password again. After that it will do a brief redirect then drop me right back to the password screen. The redirect looks like below, so I would guess the “locallogin” view doesn’t work for me.

From Randomness

So I switched to firefox, without Google Gears the calendar showed up just fine, but once I tried to enable the offline mode it showed this.

From Randomness

Since Google Gears is always enabled in Chrome, it means I cannot use it to access my calendar now.

April 6, 2009

Slashdotted.

Filed under: Uncategorized — John @ 3:55 am

So now the news is in the open. After Harald mentioned the recent status of Openmoko, Sean talked at openexpo to explain the whole thing.

In my opinion, Sean was more honest then I expected, and I admire that. It’s hard to admit so many mistakes as the CEO of a company.

Anyway, leave the past in the past. Life still needs to move on. I still got my gta02 (freerunner), and it’s still an interesting device that has all kinds of possibilities. What’s missing is just the right software. I still haven’t decided where to put my energy into, whether it should be freesmartphone based or Android. As a FOSS developer, it seems I should really support freesmartphone, but since my next job will most likely be related to Android and my time/energy is limited, maybe I will start with android.

I didn’t put this into Openmoko category by purpose so it won’t show up on planet.openmoko.org.

March 30, 2009

http://www.amd.com and .gz

Filed under: sysadmin — John @ 1:24 pm

There seems to be something strange about the apache server of AMD.com. If you try to wget a .tar.gz file from it, the file will be automatically unzipped. But if you try to get the same file by firefox, it won’t. The file in question is http://www.amd.com/files/connectivitysolutions/geode/geode_lx/Patches_Linux2.6.11_Common_02.03.0100.tar.gz

I guess the reason is this. The .gz files get Content-Encoding: gzip, so wget believes the data stream is compressed. The downloaded tar.gz will in fact become a tar file instead of the expected gz. Firefox actually has a workaround for this.

Maybe I should notify the webadmin of www.amd.com about it… if I can find the email address.

January 6, 2009

適合行動裝置的中文字型

Filed under: Android, Openmoko — John @ 5:15 pm

Droid 在設計伊始就以行動裝置為目標,在 Android 上頗受好評。基於其上有些中文字型正在發展,其中之一為文泉譯的微米黑。事實上文泉譯原本的正黑體在 freerunner 上看起來就已經蠻不錯了。一時找不到數位相機,截張圖充數:

December 14, 2008

Portege 2000 and Ubuntu 8.10

Filed under: linux hardware, tip — John @ 12:46 am

8.10 Release Notes

BAD :(

Now I have to use this to do presentation:

john@john-laptop:/etc/acpi$ cat videobtn.sh
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/key-constants
acpi_fakekey $KEY_VIDEOOUT
CRT=/proc/acpi/video/VGA/CRT/state
LCD=/proc/acpi/video/VGA/LCD/state
if grep "state:.*0x0d" $CRT 1>/dev/null 2>&1
then
echo 0x80000001 > $CRT
# echo 0x80000001 > $LCD
else
echo 0x80000000 > $CRT
echo 0x80000001 > $LCD
fi

November 11, 2008

Words from the Wise

Filed under: programming — John @ 12:24 pm

Quote from Interview with Donald Knuth

Still, I hate to duck your questions even though I also hate to offend other people’s sensibilities—given that software methodology has always been akin to religion. With the caveat that there’s no reason anybody should care about the opinions of a computer scientist/mathematician like me regarding software development, let me just say that almost everything I’ve ever heard associated with the term “extreme programming” sounds like exactly the wrong way to go…with one exception. The exception is the idea of working in teams and reading each other’s code. That idea is crucial, and it might even mask out all the terrible aspects of extreme programming that alarm me.

I also must confess to a strong bias against the fashion for reusable code. To me, “re-editable code” is much, much better than an untouchable black box or toolkit. I could go on and on about this. If you’re totally convinced that reusable code is wonderful, I probably won’t be able to sway you anyway, but you’ll never convince me that reusable code isn’t mostly a menace.

October 27, 2008

WordPress to blogger

Filed under: python — John @ 2:08 pm

I wanted to move this blog to blogger for more flexible css and java script manipulation, so I wrote this py-w2b project to do that. So far I’m able to transfer blog posts, but not comments, since every comment posted by an authenticated session will become my own comments instead of the original authors. It’s trivial to use so I’ll skip the introduction here.

September 28, 2008

How Dalvik launches Android app

Filed under: Android — John @ 7:27 am

This is just a guess, but I think the way Dalvik, the JVM of Android, launches an app is similar to the processing launcher I wrote for Openmoko. It starts a service on dbus, then load and run the processing apps by request. This can make the start up time much shorter because basically it runs in the same jvm instance. Something like this:

fork()
if (child) {
    load the app java class
    run it
}
/* I'm parent */
wait and check if it's okay

So, during system start up, the first instance of Dalvik is created, and all the common java classes are loaded because you need to start the ‘home’ application. Now whenever you fork a new process, the linux kernel will try to be smart and only copy memory pages if the child process modified something in it. (copy on write)

Anyway, we will see after the release of Android source code.

2008/09/30:
So, it turns out I’m right. According to Anatomy & Physiology of an Android, that first instance is called ‘zygote’. Quite self-explaining.

« Previous PageNext Page »

Blog at WordPress.com.