Stefan Seidel

  • Increase font size
  • Default font size
  • Decrease font size
Stefan Seidel

Debian Squeeze, mytop and Mysql Server 5.1

E-mail Print PDF

After having updated most servers to Debian Squeeze (6.0), I noticed that the packaged mytop utility didn't work with the new mysql-server-5.1. After looking for a solution for a long time, I found out that the variable name for the number of queries has changed in 5.1 - from "Questions" to "Queries" (or maybe the other way round). Thus, a dirty solution is to apply the following patch to /usr/bin/mytop:

--- /usr/bin/mytop	2009-04-06 23:49:09.000000000 +0200
+++ mytop	2011-08-18 10:54:09.000000000 +0200
@@ -794,6 +794,11 @@
         {
             my $key = $ref->{Variable_name};
             my $val = $ref->{Value};
+	    if ($key eq 'Queries') {
+		$key = 'Questions';
+	    } else { if ($key eq 'Questions') {
+		$key = 'Queries';
+	    } }
 
             $STATUS{$key} = $val;
         }

This solved it for me. Of course, the correct solution would be to check the MySQL version and act accordingly, but I leave that as an exercise to the reader :)

Last Updated on Tuesday, 23 August 2011 10:38
 

Opera Mobile on Android and Google services

E-mail Print PDF

After being fed up with the stock Android browser for yet another time (couldn't resize a website, and thus couldn't access anything on the site), I thought I'd give Opera Mobile another try. And what can I say, I'm stunned. It's blazing fast (once it's past the splash screen, which takes a while to load), scrolling is soo smooth and it does what I want.

However, there are some problems. It's not that there are some cosmetic issues with some websites. It's mainly the site operators, first and foremost Google, who think they know better. So I get the super "mobile" version of GMail and Calendar, which is basically a plain text page with some links. Not what I want. So here are the URLs you would really want if you use Opera Mobile and Google:

"Touch" GMail: http://mail.google.com/mail/x/gdlakb-/gp/

"Touch" Calendar: http://google.com/calendar/gp/

"Touch" Reader: http://www.google.com/reader/i/

Why do they not give you the option right away?

Last Updated on Tuesday, 31 May 2011 13:54
 

Starting again

E-mail Print PDF

Hello dear visitors,

after several years of not having a real internet web page, I'm starting again. I'll try to keep this updated regularily with (hopefully) interesting posts. I hope you enjoy being here.

Stefan

Last Updated on Tuesday, 31 May 2011 13:54
 

Android-x86

E-mail Print PDF

I have recently discovered the Android-x86 project, which aims to provide a usable implementation for Android on normal computers (a.k.a. x86 -based computers). Since I have an IBM ThinkPad X41 Tablet/Convertible, and have previous Android experience from my Motorola Milestone, I thought I'd give it a try. After some hours, I now have the first customized version, and you can download it from here.

Version: 0.1

  • Working:
    • Android 2.2 FroYo
    • WiFi
    • Bluetooth
    • Touchscreen (!)
    • Audio
  • Not Working/Planned:
    • Screen Brightness
    • Orientation Sensor
    • Screen
    • Tablet Buttons
    • Hardware Acceleration
    • sometimes it goes to sleep right after you wake it up and it takes several attempts to stop it from doing so

How to use: download the file, unpack in android-x86 root directory using

tar xjf thinkpad_x41t_0.1.tar.bz2

For the WiFi to work, it is necessary to add

CONFIG_DRIVER_AWEXT=y

to external/wpa_supplicant/.config.

Then, build using lunch or "make TARGET_PRODUCT=thinkpad_x41t usb_img", as described on the Android-x86 page (towards the bottom of the page).

Check out the ISO/USB images.

Last Updated on Tuesday, 31 May 2011 13:54
 

Main Menu