SCHAPPY — 12. September 2011, 15:19

[Solved] Netapp: Assign disks to partner

Start with options disk.auto_assign off on both partners FAS1, FAS2.

fas1> disk assign -s unowned 0a.23 – remove ownership on system that owns the disk (FAS1).
fas2> disk show -n – the disk shows up as unowned with the physical address it has on FAS2
fas2> disk assign 0b.23 – take ownership of the unowned disk on the partner system

SCHAPPY — 23. August 2011, 6:36

[Solved] Visual Editor (TinyMCE) stopped working after upgrade to WordPress 3.1.2

Problem: Debian release 6, wordpress installed from testing via “aptitude install wordpress -t testing”. This worked fine for years, however with upgrading to 3.1.2 users noticed that the visual tab does no longer display any text and no toolbar was loaded.

Similar problems were noticed earlier, e.g. here, here or here. However, deactivating plugins was not the issue. Thus, I debugged this problem further by using Firebug (see screenshot).

Dived deeper and found out, that there are broken links in installed package tinymce. Since there are two versions available, I removed the older one and forced to reinstall the current one.

Solution:
aptitude remove tinymce2 -t testing
aptitude reinstall tinymce -testing

This fixed the broken links in /usr/share/tinymce/www/plugins.
If you don’t like to use the version from testing omit the ‘-t testing’ parameter.

 

 

SCHAPPY — 12. August 2011, 15:05

[Solved] Repeated Character in Vmware remote console

Problem:
When typing via an UMTS connection or bad remote line via remote console, it is even impossible to login since credentials will by cryptically repeated. A single key stroke results in multiple characters printed.

Solution:

  • Power off the virtual machine.
  • Add the following line to the end of the machine’s VMX file. This specifies the value in micro-seconds to delay identical inputs (here 2 seconds).
    keyboard.typematicMinDelay = “2000000″
  • Power on the virtual machine.
SCHAPPY — 29. June 2011, 7:52

How to fix stalled items in mail.app

After some crashes of mail.app you will finally end in some items shown in only in the client app. Obviously, this happens only when using IMAP or Exchange accounts. However, the traditional solution was to remove the account and recreate them. Since the sync depends on the size of items to synchronize, I was frustrated to wait for the complete sync and stopped cleaning these stalled items.

Finally, mail.app contains a “rebuild mailbox” options, which only rebuilds affected folders. Once you select the folder, select “rebuild mailbox” from the “mailbox” menu and sit back. A complete sync will bring you inbox up-to-date.

SCHAPPY — 13. June 2011, 15:18

[SOLVED] Unsupported Display Resolution on External Display (MAC OSX)

Problem: Accidently, some friends of mine changed the display resolution of the Mac Book Air’s external display to an unsupported resolution. Everytime you close the lid, the screen went blank.

Solution: Starting in safe mode (holding shift during startup) and third-party tools did not work. Therefore try the following:

  • login without the external screen attached (keep all other applications closed)
  • Attach external screen, close the lid, the screen should go back blank.
  • Press Alt + F1 keys (this will show up the display preferences window)
  • Press Tab (moves focus to the list of available resolutions)
  • Press Cursor up (changes resolution to the next available)

Now you should see the external display light up. Tested and verified on Mac OSX 10.6.

SCHAPPY — 9. November 2010, 8:28

fail2ban

I look for this great tool all few month, but cannot remember its name. It automatically creates iptable entries by screening auth/logon logs to drop attackers and spammers.

Recommended to download.

SCHAPPY — 20. September 2010, 8:20

Show progress of dd

If you want to clone logical partitions or entire HDDs blockwise the linux tool dd comes often into play. This is perfect, but after hours of consumed CPU time the question arise: “How to detect the progress of dd?”

dd responses to the USR1 kill signal with a statistic output without interrupting its operation. Therefore, find the <PID> of your dd tasks, e.g.

ps aux | grep ‘dd’

and perform

watch -n 30 kill -USR1 <PID>

.

SCHAPPY — 7. June 2010, 13:25

Preparing German SIM card for iPad 3G

If you are owning an iPad 3G you’re willing to use with your current data tariff. This involves one hurdle: Apple decided to use a micro SIM card slot instead of the traditional mini SIM cards used. But this is no problem, you need to do some hard work. Aware, this step is irreversible in any case. You may get an micro SIM adapter to plug your self made micro SIM card in mini SIM card slots after doing this job.

  1. You need to place both cards side by side until the golden contacts are covered.
  2. Mark these positions, e.g. by using a black fine liner
  3. Cut plastics around, do not cut any golden contacts! I made it with typical scissors for office use.
  4. Fine-tuning your model, e.g. use sand paper or a lumpy wall to optimize the fitting.
  5. Finally just plug in your card and the network should be detected automatically. You need to set your APN settings in the category “Celluar Data”.

The entire process takes less than five minutes. If you decide to perform these steps, keep in mind, you are doing them on your own and only you are responsible for any damage.

SCHAPPY — 26. April 2010, 14:07

[Solved] LNCS and \and in author tag => Missing \endcsname inserted

Using LNCS 2.14 template with current hyperref Latex package results in

Missing \endcsname inserted.

An updated LNCS template has been released in Apr 2010, you can find it here. This fixes the issue.

SCHAPPY — 25. February 2010, 14:03

Wipe blackberry when password is unknown

If you do not know the password of a sparse device, just enter 10 times a wrong password then you will be asked to enter “blackberry” and the device will be wiped automatically.