2013-03-29

Brother MFC-7440N Toner empty message

Today I again got the 'toner empty' messages from my Brother MFC-7440N printer, for the second toner cartridge in this printers life. I printed 3639 pages total (new toner since 2506 pages). The printer would not print any page any more (after showing the toner almost empty message for ages).

This time the 'tape across toner window' trick would not work, even with black tape. The 'toner empty' message would only go away after doing this strange procedure which probably resets some internal state so it re-checks the toner state:

Open the front cover, then press the Back (german:Storno) button (the left bottom one of the four round black buttons), then press * 0 0 and then * 1 0. (Do not press 1 or 2 as indicated in the display. This is for the drum.) After this the 'toner empty' and also the 'toner almost empty' messages were gone and I could perfectly print again.

A subset of * 0 0 and * 1 0 might be sufficient. Not 100% sure the black tape is necessary at all.

Now the printer is printing happily and in perfect quality again. Lets see how long. :-)

2012-11-19

Mac OS X Desktop Background is gray

One things which bugged me was that every now and then my desktop background on my Mac Book Pro would turn plain medium gray at tome point. I cannot even tell when this happens. Trying to reset the background image will not help when this occurs.

(I am using an external monitor connected to the Mac Book Pro and I put this configuration to sleep and I turn the monitor off at least once a day. I do not power down or reboot the laptop at all unless absolutely necessary.)

Logging out and back in solves the problem, but is of course tedious. I found a better workaround here: http://reviews.cnet.com/8301-13727_7-57389668-263/os-x-desktop-backgrounds-gray-after-waking-from-sleep/

  • open a Terminal 
  • type: killall Dock
The background image is managed by the Dock application which automatically restarts when killed. This is of course not a solution, but is a rather easy way to 'fix' this, until it happens again. :-)

2012-06-14

Ubuntu 12.04: Boot Windows by default

If you have a dual-boot system with Ubuntu Linux and Windows and you would like to boot Windows by default instead of Ubuntu you will find to useful answers here:
http://askubuntu.com/questions/100232/how-do-i-change-the-grub-boot-order

I was using the GUI option since the manual option requires you to know the index of the Windows entry upfront (index starting at 0, for me Windows was at index 5).
This is what I did:

- Start a Terminal (search for 'Terminal' in one of the topmost icons), then paste/type this into the terminal:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
(enter password)
sudo apt-get update
sudo apt-get install grub-customizer
grub-customizer
(program comes up)
- click Preferences
- select Windows as default
- Close
- Save
- close the program
- restart to test it, done

2012-06-07

Viewing local manpages (files)

When I have an unformatted manpage file like foo.1 I had always big trouble looking at it. man foo.1 and setting the man path using -M did not help, and figuring out the usage of nroff manually is a pain. I found the answer on here which I just bluntly replicate here for my (an potentially your) convenience: http://craiccomputing.blogspot.de/2007/01/viewing-local-man-pages.html Just specify an absolute or relative path to the file, like:
man ./foo.1

2012-05-24

CPU Benchmark Intel Core i3-2350M vs Intel Core i7-2820QM

Today I benchmarked my i3 Linux laptop vs my i7 MacBook. The results are what I expected, though I am quite happy about the performance of the 'slow' i3, which is a really cheap Lenovo B570 mainstream Notebook.

The benchmarks are of course rather meaningless.

Machines:
  • Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz 
    • (dual core, 4 cores with hyperthreading, no turbo boost)
    • (in a Lenovo B570 M58GMGE, 8GB, Ubuntu 12.04)
    • (according to cat /proc/cpuinfo)
  • Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz
    • (quad core, 8 cores with hyperthreading, turbo boost up to 3.4GHz)
    • (in a MacBookPro8,2, 8GB, Mac OS 10.7.4)
    • (according to Temperaturmonitor 4.94)
Benchmark      i3     i7     speedup
g++-4.6        6.8s   3.9s   1.74x
calc           5.7s   4.2s   1.36x
Cinebench CPU  2.22P  4.63P  2.09x (i3 Win7, i7 OSX)
Cinebench GL   12.40  27.90  2.25x (i3 Win7, i7 OSX)
Cinebench CPU  -      1.24   -     (VirtualBox guest Windows 7, host OSX, 1 CPU)
Cinebench CPU  -      4.27   -     (VirtualBox guest Windows 7, host OSX, 8 CPUs)
(s in real time)

Benchmark command lines:
  • time make CXX=g++-mp-4.6 OPT=-O3 -j 20 
    • compiling streplace 0.9.36
    • just 5 parallel objects (does not fill the 8 slots of the i7)
  • time calc 'log(fact(11**5))
    • single core
  • Cinebench 11.5 on Windows 7 SP1 and Max OS X 10.7.4

2011-11-28

I support this to the fullness:

Copyright-restriction-free Christmas songs from the Musikpiraten e.V.:
http://cdn.musikpiraten-ev.de/singen-im-advent-2011.pdf


2011-09-13

Create Booklet PDF service (Mac OS X)

I used this tool to print an A5 document as booklet with staples and four pages per sheet on Mac:

http://www.macupdate.com/app/mac/21068/create-booklet-pdf-service

This worked for me from Word 2011 on Mac OS X Lion 10.7.1 and probably works for any other program as well as this is a universal PDF service (Create Booklet in the PDF menu button in every print dialog).


2011-09-03

Mac OS X Lion Apple Mail: Search does not work

After switching to Lion and importing all my old mails (actually all users) from the time machine backup I found that all old mails were there, but Mail would not find any of the old mails when searching.

This cured the problem for me:
Foe each individual mailbox (Inbox, Sent, all your own mailboxes) do:
Menu (not context menu): Mailbox -> Restore (in german: Postfach -> Wiederherstellen)


Juniper SSL VPN SAM does not work on Mac OS X Lion (10.7)


The reoccurring pattern continues: With every individual new Mac OS X version Apple kills existing VPN solutions for Max OS. This is at least true for Cisco VPN and also for the Juniper SSL PVN.

For the Juniper SSL VPN on Mac OS X Lion (10.7) the symptom for me was that the host checker never was loaded and never came up. The browser would just sit there indefinitely.

To get the Juniper SSL VPN working on Lion I found this solution:

https://discussions.apple.com/message/15760121#15760121

(replicated on this webpage:)

http://superuser.com/questions/322690/how-do-i-access-juniper-networks-secure-access-web-vpn-from-os-x-lion

1) Download and install Pacifist from: http://www.charlessoft.com/Pacifist.dmg
2) Download and Mount JavaForMacOSX10.6Update5 from http://support.apple.com/kb/DL1360
3) Download and Mount JavaForMacOSX10.7 from http://support.apple.com/kb/DL1421
4) Launch Pacifist and select Open Package
5) Select the mounted JavaForMacOSX10.6Update5.pkg
6) Hit install, when it prompts always select "Replace"
7) After it is complete, select Open Package and select the JavaForMacOSX10.7.pkg
8) When it prompts select "Replace"
9) You can copy Safari 5.0.5 from SL or if you do not have access to a SL machine
10) Download and mount Safari 5.0.5 from http://appldnld.apple.com.edgesuite.net/content.info.apple.com/Safari5/041-0564.20110413.Fi9pb/Safari5.0.5SnowLeopard.dmg
11) In Pacifist select Open Package and select the Safari 5.0.5 pkg file
12) This time select Extract and place it onto your desktop
13) Go to the Safari5.0.5SnowLeopard folder on your desktop, inside of that you will see an Applications folder, open that and you will see Safari, you can rename this Safari, I named mine Safari 5.0.5 and copy it to your main Applications folder or whereever you want.
14) Launch this Safari and go to About and make sure it says 5.0.5
15) Try your Secure App Manager.

Essentially you need to install the 10.6 Java and the 10.7 Java and downgrade to Safari 5.0.5 (at least 5.1 does not work).

The above description worked for me. I got a couple of error messages saying that files cannot replace folders, but this seems to be harmless. Just continue with 'Replace'.

2011-08-25

Converting Mac/LF encoding to Latin1/LF

I'll never really get the concept behind the surfaces and default surfaces and no surfaces with recode. Anyway, this is how to convert a file with Mac encoding and LF linefeeds into Latin1 encoding and LF linefeeds:

recode mac/..l1 myfile.txt

Will we ever be able to get rid of the OS dependent behavior like 'Mac text files have CR lineendings' (which is even wrong since Mac OS X)?

2011-08-22

Mac OS X Screen-Sharing: Cut-Copy-Paste

You can cut/copy/paste across to/from your screen sharing session. It just does not share the copy buffer automatically. Instead you need to transfer the copy buffer into either direction explicitly by selecting Edit -> Send copy buffer or Receive copy buffer (the actual english text might be different, you will figure it out). Doing so will not copy or paste anything in itself. You then need to paste on the target side.

For example to transfer from your host to your remote machine:

* copy on host machine
* Screen-Sharing: Edit->Send copy buffer
* paste on remote machine




2011-08-21

Enabling Screen-Sharing on Mac OS X via ssh

Recently the Nvidia graphics card in my MacBook Pro died (the well known Nvidia hardware failure problem) and I wanted to control the (otherwise running fine) machine remotely but screen sharing was not enabled on the damaged machine. Some digging with Google brought up a very easy solution. You need ssh access to the machine for this of course.


# for <= Mac OS X 10.6.2 do:
sudo sh -c "/bin/echo -n enabled > /Library/Preferences/com.apple.ScreenSharing.launchd"
# for >= Mac OS X 10.6.3 do:
sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
# for Mac OS X Lion do: (use unload to disable)
cd /System/Library/LaunchDaemons/
sudo launchctl load -w com.apple.screensharing.plist


This post contains all these hints:
http://hints.macworld.com/article.php?story=20080318190503111

I personally just tested the second variant for 10.6.8 so this is all I can confirm. The other variants were just taken from this post above to have it all in one place.

Set page margins with TextEdit

I did not find any way to set the page margins with TextEdit itself in an RTD (RTFD) document. But actually this is quite easy to do by editing the RTF file (or RTFD/TXT.rtf file) directly as ASCII (for example with emacs etc).

On the fifth line you will find this:


\paperw11900\paperh16840\margl1440\margr1440\margb360\margt360\vieww27000\viewh21300\viewkind1\viewscale125


The margl and margr are for the left and right margin, respectively (1440 = 1.0 inch = 25.4 mm). I added margt and margb for the top and bottom margin in the example above to be 360 (= 0.25 inch). These two are usually not part of an RTF which you created with TextEdit.

2011-08-16

I just stumbled across this very true summary about technical depth and how to deal with it:

http://www.nomachetejuggling.com/2011/07/22/when-to-work-on-technical-debt

In my experience technical depth always happens. One must always try to avoid it but it can never totally be avoided (for multiple reasons). The main point is: You (the one who writes and maintains the software) must deal with it in your daily normal work every day immediately and you must organize to pay it off without asking for permission or telling other people.

The sentence 'We never have enough time to pay off our technical depth' does not make sense and is wrong. Nobody will provide you with time to do this and nobody will schedule it for the future. You need to deal with it yourself without any additional time.

The sentence 'This is so wrong, we should fix it. Let's add this to our defect database so it does not get lost.' usually means: 'I don't understand or care about technical depth so let's put this into a strange ever growing database and forget about it. It will never get done.

Defect databases most of the time help to create technical depth since they encourage people to file work items which really need to be done now for the future. They do not help to reduce technical depth. A 8x8cm piece of paper with the top issues on it you need to work is better. You usually will not be able to deal with more depth than what fits on this piece of paper.

I always compare technical depth with a snow-pusher which has a flat pushing front and by pushing harder can always get a bit further by pulling back and by ramming into the snow wall once more, but after some time it can only ever advance by a couple of centimeters per push. The only way is to get rid of the snow is to get rid of the snow. Pushing the snow forward for future processing is not going to work.

2011-07-25

Brother MFC-7440N Toner empty end of life

Today I got the 'toner empty' messages from my Brother MFC-7440N printer. I printed 850 pages total and this is a TN-2110 which came with the printer. About 10 pages before I got the 'toner almost empty' (all in german so these messages might not be accurate) message.

The MFC-7440N would stop printing any pages. The last pages before this came out 100% fine so I wanted just to continue to print with this toner cartridge. A lot of googling lead me to several 'solutions' which did not work for me. I am not yet 100% sure what helped, but taking out the toner cartridge with the black case, shaking the toner, and putting yellowish paper tape across both holes on the left and the right of the black toner cartridge housing solved the problem.

After putting the toner back I could print a page normally and I no longer see the 'toner empty' nor the toner almost empty messages. The page count is still at 851.

I also found these hints: Open the front cover, then press the Back (german:Storno) button (the left bottom one of the four round black buttons), then press * 0 0, or * 1 0. But both did not work for me. (Do not press 1 or 2 as indicated in the display. This is for the drum.)

2011-06-19

Gimp does not start on Mac OS X

I don't know what is going, but the high level symptom is 100% reproducible since my very first days on Max OS X: After not having used Gimp for about 1-2 months is will never ever start when I need it.

Today it even would not start when re-installing it. Not a big surprise since this was already the latest and greatest version.

What helped, however, was hard killing the X11 app: Twice.

After killing the X11 app it came back again and I killed that again. I assume the automatic starting of X11 by Gimp is broken or that some other X11 app leaves the X11 server in a state such that Gimp cannot deal with it.

2011-06-05

Nokia mobile phone SMS backup/download

Today I wanted to download all sent and received SMSes from my Nokia 6021 phone via Bluetooth. This utility worked for me on Mac OS X: Phone Director 1.4.2 available here: http://www.macmedia.sk/download.htm.

You need to create a COM port with the Nokia PC Suite service as described in the Bluetooth README which comes with Phone Director. Then select this new com port in the preferences.

When you save the SMSes as text it will save it with CR line endings and UFT-8 encoding. To convert this to Latin1 and LF line endings (which I prefer) use this:

recode utf8/cr..latin1 SMS.txt

You can get recode from: http://recode.progiciels-bpi.ca/

2011-02-09

Keychain Access crashes (Schlüsselbundverwaltung Absturz)

Today my Keychain Access (in german Schlüsselbundverwaltung crashed reproducibly on startup. The first symptom was actually that Safari did not remember some passwords. Starting keychain access resulted in 100% reproducible crashes.

I found part of the solution on this german page:

http://macokratie.blogspot.com/2010/08/schlusselbundverwaltung-fix-fur-absturz.html

Enable 'Start in 32-bit mode' on the Keychain Access program. This made it possible to start the Keychain Access and also the First Aid. The First Aid would however still crash and neither print a concrete problem nor repair it. It would just print 'crashed unexpectedly' (or so, in german).

iTunes would also still crash with the same error message (the same traceback) as Keychain Access.

So I rolled back the ~/Library/Keychains/login.keychain to a two weeks older version and this solved the problem. Apparently the keychain was corrupted. Now iTunes works again and I also can set Keychain Access back to 64 bit mode.

A bit frightening still.

2010-12-22

Firefox/Mozilla Home/End (Pos1/Ende) keys do not work on Mac OS X

Firefox does not honor the normal Mac OS X keybindings. Install this Firefox extension fo fix these keys:

http://mavaball.net/wiki/index.php/Keyfixer

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.