2010-11-17

Dashboard Widget on Desktop

It is possible to move Dashboard widgets back a forth between the desktop and the dashboard:

  • To enable this feature: defaults write com.apple.dashboard devmode YES
  • To disable this feature: defaults write com.apple.dashboard devmode YES
  • To move a widget start to mode it so it is attached to your mouse and then press F12. This works it both ways.


In fact I just had the problem that a dashboard widget was on my desktop and I did not know how to remove it again (move it back to the dashboard) since I completely forgot about this feature. This blog entry is the reminder for next time.

:-)

2010-08-03

No md5sum in Mac ports? Use md5sha1sum

I recently installed snow leopard and got rid of all my old Mac ports. One of the things which I did not figure out immediately was how to install md5sum which I got used to from Linux. The answer is to install the package md5sha1sum instead:

sudo port install md5sha1sum

Macs come with md5 which solves the same problem but which has a different (worse) user interface.

2010-06-24

Zoom/Maximize for Mac OS X Snow Leopard

The Apple behavior of the Zoom/Maximize button is annoying. It behaves differently for *every* application and the intended 'use only as much space as you need' does not work at all because window contents are dynamic.

The application RightZoom fixes this. It took me ages until a friend of mine pointed me at it:

http://www.macupdate.com/info.php/id/30591/right-zoom

How to manipulate (move/delete/ignore) time machine backups: fsaclctl

When I tried to move some time machine backups out of the way (so that the Migration Assistant/Migrationsassistent) would not find them (and would use an older, more useful backup) I always got:

Operation not permitted

Changing the UNIX wrx permissions with chmod did not work (no effect). Some googling revealed that the permissions are controlled by ACLs (access control lists). With Leopard these can be disabled for the whole disk with

sudo fsactctl -p /Volume/MyVolumeName -d


Now Snow Leopard does not have fsaclctl. But apparently you can just use the one you have from Leopard. You can just copy /usr/sbin/fsaclctl from one of your Leopard time machine backups to /usr/sbin of your Snow Leopard machine.

This post gave the hint: http://forums.macosxhints.com/showthread.php?t=105879

2010-06-16

iSight camera stops working in Skype or iChat after installing eyetv hybrid

I just installed eyetv hybrid and after that I could not use my integrated iSight camera (in my Mac Book Pro) with Skype or iChat. They would simply say: No camera connected.

Fixing this:

However, starting Photo Booth once fixed this issue. After starting Photo Boot (which showed that the iSight camera works) and just closing it Skype and iChat video worked again. I assume that the eyetv installation just disabled the existing video devices and forgot to insert them again and that Photo Booth does a better initialization than Skype or iChat.

Of course I assume a reboot would fix this as well, but who likes rebooting all the time. After all why do I have a Mac. :-)

2010-03-15

MacBook Pro SuperDrive fails to burn DVD

Recently my MacBook Pro's SuperDrive would stop buring DVDs. It would try to 'open the session' and then fail with an error message which said that it cannot calibrate the laser for this medium. Putting in a different type of DVD did not help. A restart of the computer helped once, but that was just by chance. Burning CD still worked OK.

Apparently dust on the lens is the problem. This very good page describes how to remove the SuperDrive and disassemble it and clean the lens. But the procedure is quite involved and often there is just a bit of dust on the lens, just enough to make the burning fail.

I read through the comment on that page and looked at the pictures. Apparently a lot of people were able to clean the lens by using a thin credit card like thing and a dry soft cloth for cleaning glasses. I tried this as well and it worked after the first try! Burning DVDs works again. There is probably no control over the amount of dust removed by this procedure, but as long as one can remove enough dust to make DVD burning possible this is OK with me as the cleaning process just takes 1 minute. :-)

Obviously you should never do this if you are afraid of destroying your SuperDrive. There are delicate mechanics in there which could easily break.

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. :-)