2009-06-20

Apple Mac Mini: Mini DVI adapter does not have VGA RGB signals



The mini DVI to DVI adapter which is included in the Mac Minis with Mini DVI socket does not transport the VGA RGB signals which are necessary to connect a VGA monitor. This means it is not possible to use a DVI-I to VGA adapter to connect a VGA display. The included adapter is rather a mini DVI to DVI-D adapter instead of a mini DVI to DVI-I adaptr (which I would find intuitive). The mini itself emits the necessary signals, but the adapter does not carry these signals. Apple wants us to buy another adapter for 19 EUR.

Very nasty, but the worst is that I do not have the adapter for this weekend. Mini DVI is crap, completely.

2009-06-17

LogiLink WL0038 WLAN Router review

Today I received my LogiLink WL0038 WLAN Router, a low priced 54MBit device (about 25 EUR). Unfortunately mine had several shortcomings:

  • Internal HF shielding was rattling loosely in the housing (was not soldered to PCB) (broken)
  • Antenna plug was attached to housing using hot glue, but was still completely loose (broken)
  • Default IP of router was not 192.168.2.2 (as documented) but 192.168.16.1 (as if somebody already used the device)
  • Automatic channel selection selected a channel which was already taken (11) although channel 6 was still free (well, other devices do that too)
  • WLAN signal strength was at 80% (while set to maximum in settings) although the device was 1-2 meters away from the client. Even the networks of my neighbours were stronger! :-)
  • Network access through WLAN was extemely slow: I always had huge latencies of > 2000ms. Ping times through WLAN were about 2100ms. Ssh was completely unusable through this. Websurfing felt as if going through a 9600 baud modem. I tried for about one hour to figure out what misconfiguration could have caused this and eventually gave up.

It seems like my unit was already used by somebody else who did not like it and has sent it back. The packaging appeared to be untouched however.

Nevertheless I will send the device back to the dealer and claim my money back. I do not even want a replacement unit.

2009-03-27

syslogd again

Argh! I thought I solved the /var/log/* issue once and forever, but no, it did not work at all with the changes of the last post. I still see almost all logfiles being rotated. Nasty. Only /var/log/syslog seems to work OK.

Now I see that there is another file in


/etc/cron.weekly/syslogd


This needs to be removed without replacement. I want monthly logging, this is more than enough.

And apparently I need to add the -a option to syslogd-listfiles to get all files rotated in a useful way.

2009-02-26

Keep /var/log logs longer

I recently tried to increase the amount of log data which is kept in /var/log on my Ubuntu box. The log files are usually rotated using logrotate, or so I thought. The first thing I did was editing

/etc/logrotate.conf

I set the interval to monthly and rotate 24, but this did not help.

I seems like half of the log files are rotated by savelog which is triggered daily by cron. So I moved the file

/etc/cron.daily/sysklogd

to cron.monthly and edited the number of cycles to 120 (10 years, -c 120. This seems to do the trick. :-)

2008-12-04

iPod touch MPN for first and second gen

iPod touch MPN:

First generation (rectangular antenna on back)
- 8GB MA623LL/B
- 16GB MA627LL/B
- 32GB MB376LL/A

Second generation (oval black antenna on back)
- 8GB MB528LL/A
- 16GB MB531LL/A
- 32GB MB533LL/A

This lists all iPod models, but does not have the MPNs.

2008-10-13

Re-enable X11 on Max OS X

Every now and then Apple disables the TCP ports of the X server. I don't know why, but at least two updates from Apple disabled this now.

You know TCP is disabled if you do


netstat -na|grep 6000


and you see nothing. If X11 would be listening you should see something like:


tcp4 0 0 *.6000 *.* LISTEN
tcp6 0 0 *.6000 *.* LISTEN


Also when you try to start an X11 app (like xcalc) from the terminal and you have set the DISPLAY variable to localhost:0, then you will see this if the X server is not listening on TCP (after a few seconds):


Error: Can't open display: localhost:0


To enable TCP on the Xserver type this into a terminal:


defaults write org.x.X11 nolisten_tcp 0


and then restart you X server. Now xcalc should start immediately.

2008-10-07

MacBook Pro eject key delay

I just figured that I also need to install NoEjectDelay from the same website to get rid of the eject key delay, but the key repeat still does not work for the eject key (now forward delete key).

Remap small enter key to Alt (option) on MacBook Pro

The small enter key on older MacBook Pros is completely useless. Newer MacBook Pros have an option (Alt) key there instead which makes more sense.

With KeyRemap4MacBook you can remap many keys. It has a static list of possible key remappings which you can choose from, but they seem to cover a lot of use cases, You can also remap the eject key (which si also useless) as 'Del' (forward delete), but this does not work well for me as this key still has the delay and no key repeat.

Anyway, having a second option key is great and reason enough to install this:

http://www.pqrs.org/tekezo/macosx/keyremap4macbook/index.html

Duplicates after import in iTunes

I recently repeatedly experienced duplicates in iTunes after importing directories of mp3 files. Almost all files (but not all) would be visible twice in iTunes and they would also exist as two distinct files in the iTunes library, but the files would be identical. Some files even would be visible three times.

I now found what is the cause: An m3u playlist in the directory will cause all the file in that playlist to be impoted and in addition all mp3 files in that directory are also imported, hence all files in the m3u list will appear twice.

The solution is to erase all m3u files (or all non-mp3 files) before importing directory structures.

Ishkurs Guide to Eletronic Music ...

... can be found here now:

http://techno.org/electronic-music-guide/music.swf

(The link in the older post does not work for me at least on my Mac using Safari.)

2008-09-24

PacMan Statistics



BTW: 75% of all statistics are useless! :-)

2008-06-27

2008-01-14

HowTo: PC-Style keyboard mapping on Mac OS X (german keyboard)

The keymap on a german keyboard attached to a Mac is rather different that what people expect from a standard Linux or Windows PC. This is very irritating for novices and geeks at the same time. Especially if you program a lot you miss the braces and the brackets, but most of all you miss the backslash, the pipe symbol, the tilde and the AT symbol. Apple! How dare you! The backslash on a german keyboard is Alt+Shift+7! Argh!

Anyway, these days are over. Here is how to get a pretty standard PC-Style keymap alongside the old Apple bindings if possible:

1. mkdir ~/Library/KeyBindings (if it does not exist)
2. put the following text into the file Library/KeyBindings/DefaultKeyBinding.dict
3. Log out and log in (some apps like TextEdit pick up the changes directly when you restart them)


{
"\UF729" = "moveToBeginningOfLine:"; /* pos1 */
"^\UF729" = "moveToBeginningOfDocument:"; /* crtl + pos1 */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
"\UF72b" = "moveToEndOfLine:"; /* end */
"^\UF72B" = "moveToEndOfDocument:"; /* ctrl + end */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
"^~7" = ("insertText:", "|"); /* orig alt 7 */
"^~8" = ("insertText:", "{"); /* orig alt 8 */
"^~9" = ("insertText:", "}"); /* orig alt 9 */
"^\U00DF" = ("insertText:", "\U00BF");
"^+" = ("insertText:", "\U00B1");
"~<" = ("insertText:", "|");
"~7" = ("insertText:", "{");
"~0" = ("insertText:", "}");
"~8" = ("insertText:", "[");
"~9" = ("insertText:", "]");
"~+" = ("insertText:", "~");
"~\U00DF" = ("insertText:", "\U005C");
"~q" = ("insertText:", "@");
"^x" = "cut:";
"^c" = "copy:";
"^v" = "paste:";
}


This gives you the braces, the brackets, the backslash, the pipe symbol, the AT symbol, the tilde, Home/End on PC typical key combinations. It also gives Ctrl+X, C, V for cut/copy/paste in addition to Command+X, C, V. Most of the Apple key combinations still work after this change, so Mac users would still find their way in your system. The most noticeable change is Alt+7 for the pipe symbol which is now the opening brace.

I got all the info from this german page:

Tastaturbelegung unter Mac OS X

which provides a very useful example keymap (which I extended a bit above) and a link to this great page:

http://www.lsmason.com/articles/macosxkeybindings.html

The latter one provides virtually all the background information you need to do your own keymaps.

Happy keymapping!

Change keyboard type button missing in System Preferences

After playing with the keyboard type (I don't remember exactly what I did) I had a nasty keyboard type/mapping problem on my MacBook Pro (Max OS X Leopard 10.5.1):

From some point on the two keys (<> and ^° in my case, german keyboard) where swapped. All other keys were normal, so it was not a keymap problem. The german keymap worked well except for these two keys which were swapped. Stangely enough the button to undo this change 'Change keyboard type ...' *vanished* from the System Preferences! I could not believe this until I verified that on other Macs this button is present. I don't understand why. Apple: Never do these configure once things!

Starting the KeyboardSetupAssistant did not help at all since it would say that all known keyboard were configured. Thanks.

I found the solution in some Apple forum thread but I am replicating it here since it took me quite some time to find it although it looks quite obvious to me now:

1) Delete the file: /Library/Preferences/com.apple.keyboardtype.plist
2) Restart

After removing the file and restarting:

1. I could set the keyboard type correctly using the assistant and
2. I can now change the keyboard type again using the System Preferences

I don't know why this button was missing before ...

2008-01-03

Mac OS X 10.5.1 jnl: replay_journal: bad block list header

After a cold boot I reproducibly got into an infinite loop of the gray start screen. The boot-up sound would be played every 3 minutes continuously.

I pressed Apple-V to see what is going on and I got several messages indicating that the journalling on my root disk was corrupted:

jnl: replay_journal: bad block list header @ ...
jnl: journal_open: Error replaying the journal!
hfs: early jnl init: failed to open/create the journal (retval 0)

Booting in single user mode (Apple+S), doing an fsck -fy and an exit solved the problem temporarily. It would boot up without problems. But after a day and another cold reboot the problem was there again. My MacBook Pro would not boot and was stuck in the endless gray boot screen loop.

I think I now solved the problem by making it boot once (see above), then disabling the journal by doing

sudo diskutil disableJournal /dev/disk0s2

(This cannot be done in single user mode, you need to boot Mac OS X for this.)

Then I rebooted. No problem. Then I activated journalling using the disk utility and it works again. Rebooting cold now works fine. Let's see what the future brings.

But: Apple: Please. How hard can it be. Please make your stupid fsck program deal with such a situation instead of continuously rebooting. This is a showstopper bug for a lot of users. Filesystem checks must never assume the filesystem including any journal is OK!!! This is sounds rather obvious to me.

2007-12-12

Printing from Mac (Leopard) on a printer connected to Ubuntu Linux

Here I found the solution how to print from my MacBook Pro on a shared printer which is connected to a Ubuntu (7.10) Linux box.

The printer on the Ubuntu box needs to be shared. The gnome printer administrations GUI tools are sufficient for this. Just enable the two network sharing and printer detection options.

Test from the Mac whether you can see the cups system on the Ubuntu machine: Open Safari at http://myubuntuhost:631. If you can see your printer. If not your Ubuntu printer is not working even on the Ubuntu system.

Since I upgraded to Leopard I could not see/access/configure the remote printer in any way, until I read the page linked above and made the following chnages:

On the Mac side, add/change these lines in the file /etc/cups/cupsd.conf:

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols all
BrowsePoll IP_OF_YOUR_SERVER:631
BrowsePort 631


Then reboot the Mac.

Now when you try to print something you may notice that all your printers are gone on the Mac. But when I tried to select a printer a new printer was automagically added after a few seconds. The new printer had the name MYPRINTER @ MYMACHINE so it is easy to recognize whether this worked or not.

2007-10-24

Being brave ...

... sometimes means you *are* looking for trouble.

Obey the sign!

Germans like signs very much. Too bad this one is in english. :-)

USA



Ignorance is bliss ...

2007-08-30

Ishkur's Guide to Electronic Music:

http://www.di.fm/edmguide/edmguide.html

This page is great: Samples from all kinds of electronik music, really *all* kinds. And a map how they are related and where they originated from. And entertaining texts explaining objective and not so objective facts. :-)

2007-02-27

Pendulum

Two great music videos:

Pendulum: Slam

The Prodigy: Voodoo People (Pendulum Remix)

We're going to rock civilization! Yeah. :-)

2006-12-25

Mac OS X Tiger 10.4.x: Color profile - fast user switching bug

When using the fast user switching feature of Mac OS X 10.4.x (x == 1 to 8 at least) there is a nasty bug which screws up the color profile settings (if you use a custom color profile, which is very likely if you use a LCD screen).

The bug appears like this:
- you log in: color profile OK
- you switch to another user: color profile OK
- you switch back to the original user: color profile screwed up and can not be reset by the obvious means in the system settings

I found a workaround here which works pretty well:
http://www.macosxhints.com/article.php?story=20060103162354164

Thanks a lot for sharing this!

In short:
- to fix the problem temporarily (e.g. fix the color profile) start
/System/Library/Frameworks/ApplicationServices.framework/Versions/
A/Frameworks/CoreGraphics.framework/Versions/A/Resources/DMProxy
- to fix it permanently add this to the startup objects for all users

Have a colorful day!

2006-12-17

Flash player screwed up on Mac OS X

Today I tried to watch youtube.com on my Mac Mini running Mac OS X Tiger 1.4.8 but I was hearing no sound. The video is played using some flash plugin (which sucks). The sound setting on my machine seemed ok since all other apps were playing sound fine.

Google found some hints here:

http://fredericiana.com/2006/06/14/flash-video-and-no-sound-on-osx

But none of the hints would solve my problem exactly. The key seems to be the Audio MIDI Setting application. Open a shell and type:

open "/Applications/Utilities/Audio MIDI Setup"

Twiddling with the volumes at the bottom of the first pane and setting the output device correctly solved the problem for me. Others reported that they needed to (re-) set the sampling rate to 44100.

This is of course only a workaround. This Flash stuff is real crap as always. You always need the newest version to be able to do stuff you could easily do without it. And it prevents you from doing useful stuff which you could do without it, all for commercial reasons. It does not play fullsreen fluently on my 1.25 GHz iBook while this plays DVD with much higher bitrate and framerate fine, i.e. it does not use the hardware scaler. This crap sucks.

By the way: This is exactly the type of behavior I expect from Windows machines: Install something and something completely unrelated breaks. Apple: Please make this more robust!

So long ... happy youtubing! :-)

2006-11-11

HP 2550 toner empty?

The HP Color LaserJet (CLJ) 2550 / 2550L / 2550LN uses the toner cartridges Q3960A, Q3961A, Q3962A and Q3963A. The printer stops printing after some defined number of pages although the toner is not really empty. This is really annoying. The HP toner is very expensive and the toner cartridges which are supposed to last for 4000 (5000 black) pages only last for about 2000 pages in practice (at least for me).

To make use of the remaining toner there is a workaround. This requires tampering with the toner cartridges and you will loose the warranty for your device. You may also damage your device, so do not do the following if you do not know what you are doing!

Disclaimer: Do not follow any of the procedures below! They are unsafe. You have been warned!

When the LED is flashing for some toner cartridge: Take it out and swap the chip with the chip of some other toner cartridge of a different color. This can be from an empty toner cartridge. It's a good idea to mark the chip with the original color as it cannot be used for this color in the future. The printer will now claim that there is a non-HP toner in the printer, but it will print as normal. The LED of that cartridge will be off. When I did this for the black cartridge I always had to switch the printer off after each print job as it would recognize a fault on black. I also had to open and close the paper compartment every 50 pages or so. Btw, this also helps when one of the toners gets empty (blinking) during a long print job: When the printer stops open and close the paper compartment, then it will continue to print. You need to take care of the image quality yourself now of course. Destroying the chip with 12V did not work for me for the toner cartridges.

For the imaging drum swapping the chip did not work for me. But destroying the chip by applying a Voltage of 12-14V for 10 seconds to the two pads worked for me. The drum LED is now also off and recognized as non-HP. I also needed to get the old toner out of the imaging drum: It can be opened by removing the screws from one side and removing the white gears and the cover of the old toner compartment. This was very tricky to do and I had to almost break the platic parts. I took out a long threaded platic part, The old toner causes a big mess! Do this outside! Wear old clothes! Use an old or industry vaccum cleaner to remove all of the old toner. Don't use you home vaccum cleaner for this, the toner goes thorugh all the filters. Do this outside! This may seriously damage and break your imaging drum. But it does not work anyway if the drum LED is blinking. I made the mistake of touching the white platic sheet, so I had my fingerprints on the first 10 pages I printed. However, they fade out by themselves. Avoid touching the imaging drum itself by any means.

The original ideas came from this german forum post: here.

My imaging drum still works perfectly (but only after I removed the old toner from it). And the toner cartridges can print many pages after they initially stopped printing!

BTW, all the hold keys down while switching on did not work for me at all!

Update: 2011-01-16:

Second imaging drum was depleated today. The last color pages printed were absolutely flawless. The locking mechanism is annoying. I tried to burn the cjip with 12V like the previous one, I even used the burnt chip which worked on the previous drum, nothing worked. The drum LED would blink and the printer was not ready. Pressing cancel didn't help and also all the 'hold down buttuns which powering on' stuff did not work at all. No effect.

I finally (already prepared the throw the whole thing into the trash including 4 new toners) tried an old empty chip from a yellow toner. This worked! The drum LED was blinking and the attention light was on. Pressing cancel cleared both LEDs. Now the drum LED is off and the printer print again. (For the first page there is no ready light though. However this cured itself later as well, nit sure when.)

My conclusion is: Do not buy HP printers. You will get a big pile of trash for a lot of money. Looking back the years, HP2550: Expensive toner, expensive drums, lots annoyances, lots of paper jams from bottom compartment. Very slow printer. Crappy HP printer driver (always prints color pages, also for BW pages). Bad support for Mac OS X.

2006-08-08

Apple security update breaks Mail and Safari

Apple, what have you done. A black day in Apple history. :-)

After installing the Apple Security update 2006-004 I had problems starting Mail.app and Safari.app on my iBook. The problem report I sent to Apple said:


Symbol not found: __ZN3KJS9ObjectImpC2Eb
Referenced from: /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/
WebCore.framework/Versions/A/WebCore
Expected in: /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/
JavaScriptCore.framework/Versions/A/JavaScriptCore


The rest of the system seemed fine, and I was able to use Firefox to find this simple solution (after tons of useless problem reports without solution):

Just install the MacOS X Update 10.4.7 Combo PPC update again. This solved the problem for me. Of course I don't have the security update anymore, but quite frankly, I can live with that.

Btw, I found this solution on another blog.

On days like these I really like blogs.

Happy installing,

icode

2006-07-26

Bombs

Stop the bombing! Every bombing destroys lives unselectively. No bomb has ever lead to a better world. Never, ever. No matter which nation ever sends bombs under which condition. It's just horrible. It takes 3 generations at least to forget the violence. In the end, it's a lose-lose situation. Many deaths and the feeling of great injustice on both sides.

Please, stop now! Every damage not done makes the situation less complex and the future more worth living. The true solution is in peace, deescalation, passiveness, self-control, understanding, helping and in the end love.

Make love not war!

This had to be said. I feel a little better now.

2006-07-09

Worldcup 2006

Congratulations Italia. The final was not a very good game to remember, but italia deserved the thin win in the end in the penalties. I still have no idea what has bitten Zidane who saw the red card after a head assault. This did certainly not help the french team.

The game for the third place (the small final) between Portugal and Germany yesterday was much better. Usually these games tend to be boring. Congratulations go to both teams which gave everything in an interesting game with many goals.

Special thanks go to the german team for playing so well during the whole worldcup: You gave us back our national flag and a part of our national identity. Now let's hope we qualify for the Euro 2008.

;-)

2006-07-03

Torsten Frings misses match against Italy

Honestly, I can not believe it. The german football player - Torsten Frings - got suspended for one game in the worldcup after the FIFA committee reviewed video material broadcasted by the italian owned pay TV station Sky. He is accused of hitting the argentinian player Julio Cruz in the face. He has been found guilty, although 3 official referees did not see anything and even Julio Cruz himself claims that he felt nothing.

How can this be? Why was video analysis only for this game? How can somebody be found guilty if the alleged victim himself claims there was no harm done?

I get the strong feeling something is going on there ...

OK, I'd better stop before this gets ugly .. :-)