Simons blog http://www.mikkelsen.tv/simon/blog blogging på dansk Sat, 19 Jan 2008 11:44:33 +0000 http://wordpress.org/?v=1.5.2 en Tryg i Danmark holder udemokratisk valg http://www.mikkelsen.tv/simon/blog/index.php/2008/01/19/tryg-i-danmark-holder-udemokratisk-valg/ http://www.mikkelsen.tv/simon/blog/index.php/2008/01/19/tryg-i-danmark-holder-udemokratisk-valg/#comments Sat, 19 Jan 2008 11:43:33 +0000 Administrator Samfundet http://www.mikkelsen.tv/simon/blog/index.php/2008/01/19/tryg-i-danmark-holder-udemokratisk-valg/ Forsikringsselskabet Tryg er ejet af kunderne, og fordi de er et amba skal disse kunne vælges ind i bestyrelsen.

Selskabet er tidligere blevet kritiseret for at gøre det så besværligt at blive valgt ind, at det kun var bestyrrelsens egne venner der blev valgt. Nu er der valg igen, og det er ikke blevet meget bedre.

Denne gang har alle fået skriftlig besked om valget, samt en stor, flot og dyr brochure, der i bund og grund er dyre billeder af Tryg toppen samt en opsummering af de sidste 10 års reklamer for selskabet.

Hvis man vil have en stemme seddel, skal man i midlertid selv bestille den på deres hjemmeside og indtaste en lang række oplysninger, såsom éns policenummer: Der var åbenbart ikke råd til at sende stemmesedlen til folk, på samme måde som man fx gør med forsikringspolicer.

Hvad så hvis man vil vælges ind? Det kræver 25 stillere - underskrifter fra 25 andre Tryg-kunder. Selvom Tryg er store, er det ikke en let sag.

Men prikken over i’et: Fristen for at stille op var: Siste år!

Langt om længe har de informeret om valget, men muligheden for at stille op blev kun annonceret på en webside ingen besøger samt i nogle aviser.

Og hvem er stillet op? 16 er opstillet af bestyrrelsen, og kun 2 har fået 25 stillere.
Valget i Tryg kan efter min opfattelse derfor ikke betragtes som demokratisk og burde erklæres ugylgt før det er startet.

Det sker nok ikke, så hvis man kan vil jeg opfordre til at man stemmer på en af de to der ikke er opstillet af bestyrrelsen, eftersom begge skriver, at de vil arbejde for større demokrati og at Tryg bliver drevet i ejerenes (kundernes) interesser og ikke en selvfed bestyrrelse.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2008/01/19/tryg-i-danmark-holder-udemokratisk-valg/feed/
How to scp a file name with a colon http://www.mikkelsen.tv/simon/blog/index.php/2008/01/09/how-to-scp-a-file-name-with-a-colon/ http://www.mikkelsen.tv/simon/blog/index.php/2008/01/09/how-to-scp-a-file-name-with-a-colon/#comments Wed, 09 Jan 2008 17:54:35 +0000 Administrator English How to http://www.mikkelsen.tv/simon/blog/index.php/2008/01/09/how-to-scp-a-file-name-with-a-colon/ Lets say you have a lot of files e.g. named something like duplicity-full.2008-01-09T17:51:27+02:00.vol100.difftar.gpg

Simply running scp * user@host.com: will give an error like: ssh: duplicity-full.2008-01-09T17: Name or service not known because scp thinks the file name is a host name (because of the colon).

The fix is simple: Add a ./ in front of the * or filename, e.g. scp ./* user@host.com:. Then scp will see the ./ before the colon, and know it’s a file. That trick also helps if you have a file named - (yes, dash) or which starts with a dash (some programs don’t like that).

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2008/01/09/how-to-scp-a-file-name-with-a-colon/feed/
Folder pane gone in Thunderbird http://www.mikkelsen.tv/simon/blog/index.php/2007/12/20/folder-pane-gone-in-thunderbird/ http://www.mikkelsen.tv/simon/blog/index.php/2007/12/20/folder-pane-gone-in-thunderbird/#comments Thu, 20 Dec 2007 20:24:25 +0000 Administrator English How to http://www.mikkelsen.tv/simon/blog/index.php/2007/12/20/folder-pane-gone-in-thunderbird/ I use Thunderbird for e-mail, and am happy about it. But suddenly, the left pane with all my folders was gone!

Everything I could find on the net was: Move the mouse to the left, untill the arrow becomes a double arrow. Then pull the side to the right, and the pane will appear. But it wasn’t that.

Then I opened the advanced properties editor and searched for “Folder”. Then I saw an interesting key, which suggested that the Nostalgy plugin (which I have installed) could turn the folder pane on and off, if you press l (lower case L) when e.g. looking at a message. I pressed l, and then it came right back.

If you like keyboard commands (like me), then you sould select Tools | Nostalgy | Nostalgy ussage options. This is a good read.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2007/12/20/folder-pane-gone-in-thunderbird/feed/
Surftown vandaliserer kunders websider http://www.mikkelsen.tv/simon/blog/index.php/2007/03/18/surftown-vandaliserer-kunders-websider/ http://www.mikkelsen.tv/simon/blog/index.php/2007/03/18/surftown-vandaliserer-kunders-websider/#comments Sun, 18 Mar 2007 13:59:25 +0000 Administrator IT i Danmark Anmeldelser http://www.mikkelsen.tv/simon/blog/index.php/2007/03/18/surftown-vandaliserer-kunders-websider/ Gennem flere år havde jeg en række websider, bl.a. denne, hostet hos webhotellet Surftown, hvilket virkede fint.

En dag kom jeg hjem til en stor bunke e-mails: En af mine websider var blevet vandaliseret og virkede ikke. Surftown havde omdøbt en fil til navnet removed_by_admin_because_of_continued_excessive_load_admin_RIGTIGT_FILNAVN.

Jeg fik ingen mails overhovedet. Eneste hjælp fra Surftown var, at et dyrer webhotel tillader mere belastning, men hvor meget kunne jeg ikke få at vide.

Jeg følte mig truet: Betal eller vi holder din hjemmeside lukket.

Belastningen var 17.000 hits pr. døgn, forårsaget af en søgemakskine (ol.) som var gået amok. Man kan altid diskutere om belastningen overhovedet påvirkede de andre brugere. Jeg mener det ikke, men vi ligger nok på hver sin grænse af sandheden.

Nu, mere end et halvt år efter opsigelsen, lader Surftown stadig høre fra sig: De bliver ved med at sende mig uopfordrede reklamer med e-mail. De gør bare som det passer dem!

Jeg er ikke eneste offer: En artikel på Computerworld beskriver et andet eksempel og mange andre skriver om problemer lignende oplevelser i artiklens kommentarer.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2007/03/18/surftown-vandaliserer-kunders-websider/feed/
Count the number of files in a directory and all sub directories in Bash (Unix or Linux) http://www.mikkelsen.tv/simon/blog/index.php/2007/02/11/count-the-number-of-files-in-a-directory-and-all-sub-directories/ http://www.mikkelsen.tv/simon/blog/index.php/2007/02/11/count-the-number-of-files-in-a-directory-and-all-sub-directories/#comments Sun, 11 Feb 2007 17:49:22 +0000 Administrator English How to http://www.mikkelsen.tv/simon/blog/index.php/2007/02/11/count-the-number-of-files-in-a-directory-and-all-sub-directories/ Counting the numher of files in a directory is easy:

ls | wc -l

Taking the sub directories requires a little more, so I made a script:

#!/bin/sh

ls -a $@ | while read dir
do
find "$dir" | wc -l | tr "\n" "\t"
echo "$dir"
done

Put in to a file, say numfile, make it executeable: chmod +x numfile and run it in the directory you waht to look at. You can also just give the name of the directory as a parameter.

Now, lets say you only want the 15 directories with the most files in them, easy:

./numfiles | sort -n | tail -n 15

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2007/02/11/count-the-number-of-files-in-a-directory-and-all-sub-directories/feed/
Basic administration commands for MySQL and Linux. http://www.mikkelsen.tv/simon/blog/index.php/2006/12/18/basic-administration-commands-for-mysql-and-linux/ http://www.mikkelsen.tv/simon/blog/index.php/2006/12/18/basic-administration-commands-for-mysql-and-linux/#comments Mon, 18 Dec 2006 18:25:36 +0000 Administrator English How to http://www.mikkelsen.tv/simon/blog/index.php/2006/12/18/basic-administration-commands-for-mysql-and-linux/ show databases; Run all commands on this database from now on: mysql> use myDatabase; Show all tables inthe selected database: mysql> show tables; Show all field/column names in a table: mysql> describe myTable; You have table with a field named “username” and you want to [...]]]> This posting shows some basic commands I use for administrating MySQL databases and using Linux.

Mysql
Show all databases:
mysql> show databases;

Run all commands on this database from now on:
mysql> use myDatabase;

Show all tables inthe selected database:
mysql> show tables;

Show all field/column names in a table:
mysql> describe myTable;

You have table with a field named “username” and you want to show what is in all rows where that field has a certain value. I.e. show all data on a certain user:
mysql> SELECT * FROM myTable WHERE username="myUser";

This may return so much data, that it is hard to see on the screen. Then you can end with \G instead of ; and it will show in another way:
mysql> SELECT * FROM myTable WHERE username="myUser"\G

You may want to find out of a table is damaged, using the command:
mysql> check table myTable;
You usually get the suspicion when the program that uses the database report (sometimes strange) errors

If a table is crashed or damaged, you can try to repair it:
mysql> repair table myTable;
Repairing a table can take a long time - don’t give up!

If that does not fix the problem, you can try:
mysql> repair table myTable EXTENDED;

Linux
This section assumes that you log in via ssh. If you are running Windows you can use the Putty program to do that.

The largest difference between Linux and Windows is, that Linux uses a / to separate directories, where Windows uses \. The next largest is that Linux don’t have drive letters. There is just one file system, and one root: / (think c:\). If you have a DVD-drive, it will be “mounted into the file structure”, so you can e.g. find it as /media/dvd/ instead of d:\.

Change directory (just like in DOS):
cd other_dir

Go back again:
cd ..

Change into a directory with a long name (here my_huge_directory_name_to_go_to):
cd my_h

Then the directory will be compleated, if it is possible. Nice.

Show all files in a folder (l=long, h=human readable sizes):
ls -lh

Delte a file:
rm myFile

Delete all files containing 4 zeros in the current folder (Think before you type - you can delete a lot of stuff in one command!):
rm *0000*

Delete an empty directory:
rmdir myDir

Rename or move a file or directory:
mv myFile newName
mv myFile someDir/

Copy a file:
cp myFile newFile

Copy a directory:
cp -r myDir newDir

Cancel almost any command that is running:
Press CTRL+C

Look in a text file, without changing it:
less myFile
Press up/down arrow or page up/down to move up or down. Press q to quit. Press /, type some text and enter to search for the text. Press n to search for it again and N to search for it upwards.

Run a program or script, that exists in the current folder:
./myProgram
You need the ./ to say that the program is in the current folder. For security reasons the shell (the command interpreter) does not look in the current folder when looking for programs to run.

Putty
Copy something: Just select the text with the mouse, and Putty will automatically copy it to the clip board.
Paste something: Just right click or press CTRL+insert, and putty will paste the text where the curser is.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2006/12/18/basic-administration-commands-for-mysql-and-linux/feed/
Review of the SafeType keyboard http://www.mikkelsen.tv/simon/blog/index.php/2006/11/11/review-of-the-safetype-keyboard/ http://www.mikkelsen.tv/simon/blog/index.php/2006/11/11/review-of-the-safetype-keyboard/#comments Sat, 11 Nov 2006 18:48:40 +0000 Administrator English Product reviews. http://www.mikkelsen.tv/simon/blog/index.php/2006/11/11/review-of-the-safetype-keyboard/ A couple of weeks ago I got a SafeType keyboard from ErgoType.nl. It is a special vertical keyboard, that should be much better to use with regard to repetitive strain injury (RSI). Unfortunally it would take me too long time to learn to use it for programming, so I send it back and got a full refund of the very expensive keyboard. If I ever gets a job where I just has to write normal text (like this blog), I will definitely get a SafeType.

About SafeType
They keyboard looks wired and is very expensive (€299 + VAT). On the pros it should be better with regard to RSI, but not fully prevent it, and I even got it with danish key layout! Unfortunally it has some design “bugs”, such as the arrow keys are located in a way that requires you to twist your hands insanely to use them. I really does not know what how those keys could be located in that way, when the keyboard was designed to prevent RSI. Putting they two blocks of keys in a V / angle the groups of keys had been much better.

About ErgoType.nl
Buying such a wired and expensive item off the Internet requires some trust. And that is what you usually don’t should give anybody on the Internet! Anyway I tried, and got a great service from ErgoType in the Netherlands. Even when I returned they keyboard, and I got all my money back. I have no problem trusting ErgoType.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2006/11/11/review-of-the-safetype-keyboard/feed/
Youtube error message http://www.mikkelsen.tv/simon/blog/index.php/2006/10/03/youtube-error-message/ http://www.mikkelsen.tv/simon/blog/index.php/2006/10/03/youtube-error-message/#comments Tue, 03 Oct 2006 19:30:07 +0000 Administrator English http://www.mikkelsen.tv/simon/blog/index.php/2006/10/03/youtube-error-message/ I just got the following error message on youtube - thats funny:

500 Internal Server Error

Sorry, something went wrong.

A team of highly trained monkeys has been dispatched to deal with this situation. In any case, please report this incident to customer service.

Also, please include the following information in your error report:

pJUEqZLmiZQ8fZvt8X_wABzcIn8QapkM9pvk9cdI0ZElrO8oxbKqDi_dNoM2
2GmOOT_aqT0OY1v6lXnjPRIUogIiYMSpliS1URFHSgTKd4xYzyJZdW0lELPm
5U14cQZZQyOlUBxvhBR1uAb49OI3Gxm0io6NKeTROAgYBgkpgIEnBvCfkiMX
u1mfkB3HgOzuwOKvtchaY4_jNokJWoE0bbZU1hSzMy3MitGQj5Y3xDuqhjCZ
4bUq7OcHf8Uc4LLBDpCPfd0T6-dMV2Y4dWAA0ZwXWofZqMp4S19Qj54Opgfs
PA7YbXO9RIS6qvov7a_tdEeyVlqgwgY4vxPizmwIjCgrPgz2IRD0lzSvxEXK
9Ju8Cb22aPBt_1drFA0kvMgaWNOTO5ssw6nqCX0tWNYySPzocqxM1jVR5udE
1oCnsRU5n4eC27ft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h
FC5bdlQFHLLFLFG5B5Zux6DaUAGSarRtIw8epg0Xkz44Psc_gy58lkl9X6vC
E0ScWfpYZj2mkpo0xCMZhhOQsRc71elkTnXb-RzNhu4D_5sfFp3wcbwa_49y
1zqm6q-EGQh_oWGrCL0aGkmoKEfdLiHYnpAxRmvOu0TL7QDbDgsUPBNAreSy
4OLG9bSvC7NefUxHm2JadSJX71QU6JNpfMsOewoLMcI1Y0V_5zEOz9gIGfY=

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2006/10/03/youtube-error-message/feed/
Bondefanget af TV2 Sputnik http://www.mikkelsen.tv/simon/blog/index.php/2006/09/07/bondefanget-af-tv2-sputnik/ http://www.mikkelsen.tv/simon/blog/index.php/2006/09/07/bondefanget-af-tv2-sputnik/#comments Thu, 07 Sep 2006 18:01:13 +0000 Administrator IT i Danmark http://www.mikkelsen.tv/simon/blog/index.php/2006/09/07/bondefanget-af-tv2-sputnik/ TV2 Sputnik er TV2’s internet-kanal: Man kan se en masse TV2-programmer og film via Internttet. Det skulle prøves, men endte i en slem oplevelse.

For at se programmet skulle jeg først installere en såkaldt “individualisering”. Når man kiggede efter med småt ville det erstatte en systemfil på min computer med en version hvor der er et unikt ID i. På menneskesprog betyder det at alle mulige folk kan se hvem jeg er når jeg surfer på nettet - big brother så det batter.

For det første skrev installationen ikke at den var færdig, så jeg skulle selv lukke vinduet og starte forfra, efter at have prøvet et par gange.
Dernæst skulle man pludselig registreres med e-mail og det hele. Det skal man ikke på DR (hvor man i øvrigt heller ikke skal have spyware).

Nu var jeg endeligt nået frem til at se TV, trode jeg. For nu skulle jeg pludselig betale. Det blev der ikke skrevet nogle steder, før jeg havde installeret TV2s spyware og givet dem min e-mail-adresse.

Godt sur i hovedet ville jeg derfor slette min registrering. Men det kunne jeg ikke, for jeg havde ikke betalt.

Nu har jeg spyware, TV2 har min e-mail-adresse og jeg er blevet godt og grundigt snydt.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2006/09/07/bondefanget-af-tv2-sputnik/feed/
Using offlineimap in noninteractive mode http://www.mikkelsen.tv/simon/blog/index.php/2006/07/15/using-offlineimap-in-noninteractive-mode/ http://www.mikkelsen.tv/simon/blog/index.php/2006/07/15/using-offlineimap-in-noninteractive-mode/#comments Sat, 15 Jul 2006 08:23:11 +0000 Administrator How to http://www.mikkelsen.tv/simon/blog/index.php/2006/07/15/using-offlineimap-in-noninteractive-mode/ I have just set up offlineimap to run in non interactive mode. I use it for backup and for teaching my spamfilter. However, the documentation did not describe how to avoid beeing asked for a password, so I looked in the source and found out:

In your .offlineimaprc file, just add a setting named remotepass (just like remotehost and remoteuser). You password will be unencrypted, but if you run the command: chmod 600 ~/.offlineimaprc, then only you and the servers administrator can see it.

On may way I found this great article.

PS. Just read the article above, and it actually mentions the remotepass setting.

]]>
http://www.mikkelsen.tv/simon/blog/index.php/2006/07/15/using-offlineimap-in-noninteractive-mode/feed/