windows 7, lenovo w510, wireless sucks

April 13th, 2010
windows sucks, copyright fidget 2001 (cannot find license, so please ask me to remove if not appropriately used)

windows sucks, copyright fidget 2001 (cannot find license, so please ask me to remove if not appropriately used)

I just got a new lenovo W510 with windows 7. I was kind of looking forward to trying it out, windows 7 was supposed to be a good experience. After 1.5 hours I finally got it to work decently talking to the network. During that first 1.5 hours I had to power windows 7 down 4 times because it had become irresponsive. I repeat, 4 times. All I had done was clicking on the network or wireless buttons in the task bar, and clicked a little around, trying to get it to find my wireless lan.

It turned out that my wireless LAN had been turned off, so it somehow got stuck looking for something, to say the least I am not impressed. An OS/GUI must not become irresponsive from just clicking around in network configuration menus.

The behaviour I saw what a window open, not reacting to input. When I clicked the taskbar, somewhere, it said the windows was irresponsive and offerend me to cancel or shut it down. No matter what I chose, nothing happened. I could not open the “start” menu, and I could now start the task manager (ctrl+shift+esc).

Now, with network on (both a cable and my WLAN turned on), it starts to work again. If turning obnoxious on me again, expect an update.

He’re a video of the behaviour, it is mean to show that no matter what I click, all I get is the non-effective popup. And when I try to bring up the task bar at then end, I still just get the popup. windows7 dead end

upgrading iPhone 3GS to 3.1.3 using VirtualBox

March 23rd, 2010

Today I experienced more or less the same problem as reported hereon iBricking when upgrading using iTunes under VirtualBox. I found a way through, though. The problem is that the iPhone “disconnects” from USB during the process, and reconnects again later. Some times with a different “id”. VirtualBox does not automatically attach the iPhone again, and one has to manually watch the sync process and discover that the iPhone has disconnected. If one is quick enough (not that difficult, iTunes seems to be retrying to connect to the iPhone quite patientely), to reconnect the USB device to the virtual machine, then the upgrade can work.

iPhone

iPhone

It can help to have a command like the following running in a console window # watch -n 1 lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04b3:4485 IBM Corp. Serial Converter
Bus 001 Device 005: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 001 Device 019: ID 05ac:1281 Apple, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

The usb id’s changed something like

Recovery Mode:
xxx 1293 (I believe to remember).

Restoring
  Bus 001 Device 021: ID 05ac:1294 Apple, Inc.
Reboot (disappeard from usb bus)
Re-appearing as (you need to
Bus 001 Device 022: ID 05ac:1294 Apple, Inc.

during the restore to factory settings and restore from backup.

postfix not delivering mail to cyrus-imap

March 17th, 2010

I did not receive emails, all of a sudden on my Mandriva postfix mail service. I think the reason was that postfix had not been restarted since last update, and when I restarted today (when adding my new domain wemobilize.dk) a bad change from last update got effectuated.

post delivery

post delivery

The log said:

 status=deferred (connect to mail.efef.dk[/var/lib/imap/socket/lmtp]: No such file or directory)

http://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-September/026838.html gave the hint to disable chrooting the lmtp service, i.e. use:

lmtp  unix    -       -       n       -       -       lmtp

instead of

lmtp  unix    -       -       y       -       -       lmtp

in master.cf.

Rapid Application Development (RAD)

March 15th, 2010

I wanted to quickly sketch a user interface, and usually I resort to pen and paper for the first iterations, but I wanted to try a RAD tool, to see if that was quicker. I had played with SWTDesigner and netbeans, but non of them were really easy to use for this purpose — to much tied to the generality of their tool kits (SWT and Swing, respectively).

I googled for linux and RAD and found Gambas – http://gambasrad.org/. It seemed well thought out, mature and well documented, so I gave it a whirl. In four hours I had had a working demo for the concept I had in mind, including images, movies (animated gif), sounds, timers, buttons and screens.

I used xvidcap to capture a move of the demo since it by default only produces linux executables (guess it should be able to export windows executables since it can use QT or GTK+, both of runs under windows, as far as I remember).

Recommended! Do you have any other favorite RAD tools?

Resources

getting a subversion server to spin (on mandriva)

February 12th, 2010

Setting up a subversion server on mandriva is relatively straight forward, but with a simple mind boggle, that cost me a few hours hence this post.

Simple stuff first:

urpmi subversion-server subversion subversion-tools xinetd

That’s it, all installed. Now create an empty repository (still basic stuff).

svnadmin create /var/svn/first_repo

Now the part that fooled me and had me entertained (not) for some hours. The file

/var/svn/first_repo/conf/svnserve.conf

contains the following by default:

### This file controls the configuration of the svnserve daemon, if you

### use it to allow access to this repository. (If you only allow

### access through http: and/or file: URLs, then this file is

### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]

### These options control access to the repository for unauthenticated

### and authenticated users. Valid values are “write”, “read”,

### and “none”. The sample settings below are the defaults.

### anon-access = none

### auth-access = write

### The password-db option controls the location of the password

### database file. Unless you specify a path starting with a /,

### the file’s location is relative to the directory containing

### this configuration file.

### If SASL is enabled (see below), this file will NOT be used.

### Uncomment the line below to use the default password file.

### password-db = passwd

### The authz-db option controls the location of the authorization

### rules for path-based access control. Unless you specify a path

### starting with a /, the file’s location is relative to the the

### directory containing this file. If you don’t specify an

### authz-db, no path-based access control is done.

### Uncomment the line below to use the default authorization file.

### authz-db = authz

### This option specifies the authentication realm of the repository.

### If two repositories have the same authentication realm, they should

### have the same password database, and vice versa. The default realm

### is repository’s uuid.

### realm = some default realm

[sasl]

### This option specifies whether you want to use the Cyrus SASL

### library for authentication. Default is false.

### This section will be ignored if svnserve is not built with Cyrus

### SASL support; to check, run ’svnserve –version’ and look for a line

### reading ‘Cyrus SASL authentication is available.’

# use-sasl = true


### These options specify the desired strength of the security layer

### that you want SASL to provide. 0 means no encryption, 1 means

### integrity-checking only, values larger than 1 are correlated

### to the effective key length for encryption (e.g. 128 means 128-bit

### encryption). The values below are the defaults.

# min-encryption = 0

# max-encryption = 256

I have boldfaced the lines that tricked me

I read it as (well, skimming it) as sasl was by default disables, hence I did not need to specifically enable passwords from a passwd file. WRONG! To be able to interact with the svn server i had to uncomment the passwd line (and authz, but only if you need more fine grained access control).

Now to have the svn daemon running as a service, edit the xinetd file:

vi /etc/xinet.d/svnserve

I haven’t been able to make svnserve debug log any where, and running it by hand inside strace, did not reveal any sensible info either, so I made my way by starting with a know working configuration and then enabling cfgs one by one.

Hope this page will help some one, if found by google.

rsync protocol problem

February 11th, 2010

Encountered

  note: iconv_open("UTF-8", "UTF-8") succeeded.
  rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  _exit_cleanup(code=12, file=io.c, line=600): entered
  rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
  _exit_cleanup(code=12, file=io.c, line=600): about to call exit(12)

Googling did not help much. Neither did playing with -e ssh, -e ’ssh -l’, –protocol=29.

I checked version on receiving machine, and it was rsync-2.6.8-3.1.i386 on CentOS. Looking at the client with version 3.0.6, I first tried to sync with 3.0.4 and 2.6.9 which I had readily access to. Neither worked either.

Bruteforce solution was to download the 3.0.4 tar and recompile it on the target machine, and make sure it was on the path before /usr/bin/rsync. To test that it worked, I used the rsync parameter

  --rsync-path=/home/ads/rsync-3.0.4/rsync

and it worked.

resetting a nokia phone

January 21st, 2010

Had to hand in my company phone, so after a lot of struggle I managed to sync its contacts with vodafone360.com (catch, if attempting to move data from one phone with one phone number to another, then make sure one phone number only is defined at a time, otherwise the web interface can be confused. Also if something appears to have fake memory, log out and log in).

Another cath, the iPhone zyb app is not working with vodaphone360 even though you are redirected from zyb to vodaphone360. There is a separate download available, people sync it is called.

To factory reset the E70 I found that I had to type in **#7370# (http://my-symbian.com/s60v3/faq/showquestion.php?faq=1&fldAuto=7) and use the default code 12345 (…). The method of holding in #,3, and green button (dial) while togling power did not work (neither did replacing # with * do the trick).

iPhone syncing

December 7th, 2009

When attempting to sync an app to a 2.2.1 device I got an unknown error (-35) in iTunes.

Tried removing and reinstalling mobileprovision profiles to no avail. Notes the the device did not say syncing when iTunes synced.

Solution: restart device and restart iTunes. (I did not have luck in google’ing the error code, jence this post to the world.

Photos: We did have a little aun in November, very little though. Goes hand in hand with the fact, that November this year for the first time since recording temperatures systematically was all above 0 deegrees Celcius. Measurement start sometime in 18xx – yikes, gimme sun, frost and an earth where humans don’t endanger our existance by greed and sheer numbers.

iPhone endeavours

November 1st, 2009

When the iPhone arrived I did not really fancy it much. Circumstances would that a couple of weeks ago I had to acquire an iPhone 3GS due to some work, and hey — I suddenly understood what a revolution it was. You can easily find other phones and gadgets with better specs, but hey, this just works, and the appStore was a master stroke.

Anything wrong with it? Yeah, one thing bothers me enough to nag — that you cannot run stuff in the background. I understand their reasons – less stability to care about, and another upgrade possibility :)

A single occasion of blank/black screen on the iPhone 3GS was solved by resetting it (10 seconds on suspend on home simultaneously) – thanks to this post (I tried the buttons before googling, but did not realise that I should home them down for SOOOO long, and no, nothing got deleted.

The image of this post was taken with the iPhone and used in a tweet using twitterific.

D90 GPS options

August 24th, 2009

Still playing around with what kind of GPS I should get for my Nikon D90, see my GPS post, and D90 Camera post.

  • This looks nice and simple http://www.di-gps.com/di-GPS/img/mini2s_02.jpg(just works): di GPS mini IIs, priced around 700 DKK with current exchange rates
  • This also looks OK, but rather more expensive, Geotagger N2 GPS, prices around 1500 DKK with current euro (locked to DKK, so no currency effect worth talking about)
  • This shop has all the cables (very complex it seems with all those combinations), put together it costs around 500 DKK and it looks like:
  • Alternatively one could try with the data cable to the holux, but it’s clumbsy and I think there will be problems with the holux baud rate (38400) and the cameras (4800), at least according to what I have read on a GPS source and camera sources. The cable is around 200 DKK. And the GPS, as I remember it, around 400. But as I write, i don’t think it will (just) work.
  • Forgot to mention the original nikon answer, the Nikon GP-1, which, through Amazon.co.uk is available for 1860 DKK, read the review.

Hope this is useful to someone. If so, please leave a comment about the happiness of your purchase, so I can pick which one I should go for.

UPDATE

Found this favorable review of the N2 geotagger, my main problem with the N2 is that you can only buy from their own home page, and that you have to use paypal. And another favorable review, and yet another one It looks like you can buy it from this shop within the EU domain. The EU price is much higher than price when from the manufacturers home page, probably customs or the like.

Just ordered it, used the cheapest alternative, the makers site, we’ll see if there is a hidden cost somewhere. And the paypal pay was not a problem, I could just enter my visa details, no need to create a paypal account.