Simons blog http://www.mikkelsen.tv/simon/blog blogging på dansk Sat, 19 Jan 2008 11:44:33 +0000 http://backend.userland.com/rss092 en 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2008/01/19/tryg-i-danmark-holder-udemokratisk-valg/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2008/01/09/how-to-scp-a-file-name-with-a-colon/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2007/12/20/folder-pane-gone-in-thunderbird/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2007/03/18/surftown-vandaliserer-kunders-websider/ Count the number of files in a directory and all sub directories in Bash (Unix or Linux) 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" ... http://www.mikkelsen.tv/simon/blog/index.php/2007/02/11/count-the-number-of-files-in-a-directory-and-all-sub-directories/ Basic administration commands for MySQL and Linux. 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2006/12/18/basic-administration-commands-for-mysql-and-linux/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2006/11/11/review-of-the-safetype-keyboard/ 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 1oCnsRU5n4eC27ftfqARyDFilmVi8kV3bL_5ryByGI82hLa6YBMVDgDvdSm4 oRUoQRV4QbXA3CJdcaYKuUFFuqxBZB1mQPOlu7hePfHYsmIpzvBxg1gcMrnw 8BddT42BRZ6DI60t3Uxz_nHKuXgK3vavHZa_f_V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AxRmvOu0TL7QDbDgsUPBNAreSy 4OLG9bSvC7NefUxHm2JadSJX71QU6JNpfMsOewoLMcI1Y0V_5zEOz9gIGfY= http://www.mikkelsen.tv/simon/blog/index.php/2006/10/03/youtube-error-message/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2006/09/07/bondefanget-af-tv2-sputnik/ 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 ... http://www.mikkelsen.tv/simon/blog/index.php/2006/07/15/using-offlineimap-in-noninteractive-mode/