SCHAPPY — 18. June 2012, 7:53

Mac OSX 10.8: New feature calender weeks (counts wrong)

In Mac OSX 10.8 developer preview, Apple added a long desired feature to the calender.app for business use: calender weeks.

Problem: However, the displayed calender week is one week ahead the real calender week. Typically calender weeks starts with the first full week of the year. But, calender.app starts calender week one in the week with January, 1st. This might be an US/EU issue, but should be configurable in final release.

SCHAPPY — 11. April 2012, 6:49

[Solved] Java 1.6.0_31 update breaks subclipse / Eclipse hangs during launch on Mac OSX 10.7.3

After the yesterday’s java update for MAC OS X 10.7.3, my Eclipse stopped working this morning after a clean reboot. Eclipse hangs in the launch screen and no CPU activity can be measured.

How to detect the current java version:

$ java -version
java version “1.6.0_31″ Java(TM) SE Runtime Environment (build 1.6.0_31-b04-414-11M3626)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-414, mixed mode)

Eclipse version:

Helios Service Release 2
Build id: 20110218-0911

Solution:

  • Remove subversion plugin by navigating where you stored your eclipse app (Applications in my case).
  • Navigate to plugins and remove all org.tigris.subversion.*.jar
  • Navigate to features and remove all org.tigris.subversion.* folders

 

Here is a list of what I removed:

  • org.tigris.subversion.clientadapter_1.8.1.jar
  • org.tigris.subversion.clientadapter.feature_1.8.1
  • org.tigris.subversion.clientadapter.javahl_1.7.4.jar
  • org.tigris.subversion.clientadapter.javahl.feature_1.7.4
  • org.tigris.subversion.clientadapter.svnkit_1.7.0.jar
  • org.tigris.subversion.clientadapter.svnkit.feature_1.7.0
  • org.tigris.subversion.subclipse_1.8.7
  • org.tigris.subversion.subclipse.core_1.8.7.jar
  • org.tigris.subversion.subclipse.doc_1.3.0.jar
  • org.tigris.subversion.subclipse.graph_1.1.1.jar
  • org.tigris.subversion.subclipse.graph.feature_1.1.1
  • org.tigris.subversion.subclipse.mylyn_3.0.0
  • org.tigris.subversion.subclipse.mylyn_3.0.0.jar
  • org.tigris.subversion.subclipse.tools.usage_1.1.0.jar
  • org.tigris.subversion.subclipse.ui_1.8.7.jar
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.