SCHAPPY — 18. June 2018, 20:00

Generic alternative for WMF2EPS in Windows 10

With Windows 10 WMF2EPS was no longer working for me due to some strange errors installing the printer driver. Therefore, I came up with the following alternative using more or less native Windows essentials.

  1. Install any PS printer, e.g. Universal HP PS Driver, and name it “EPS printer”.
  2. Configure printer to print to file (menu port) and to use encapsulated PS (menu advanced)
  3. Print any file to your “EPS printer” and a save as box should occur to store your output, e.g. output.eps
  4. Use ps2eps with your output.eps to fix bounding box issues and have a optimized output.
SCHAPPY — 30. January 2018, 18:21

[SOLVED] Samsung TV channel list cannot be imported due to invalid country code (UExxD6xxx) 6 Series

Issue

Trying to import a channel list to a Samsung TV (re-imported) from other country. In my case, I tried to import the German channel list to a UE46D6540 non-German version. Copying the SCM file to an USB stick and trying to import it to the TV results in error message indicating that the corresponding country is invalid. However, in the country settings menu of Samsung TV I can only select some East European counties as well as OTHERS, but not Germany at all. Depending on the country version of your TV it might show up other countries, however not your preferred one in the channel settings.

Solution

Please find here a current German channel list (Berlin region) new_channel_list_UE46D6500_1101.scm for a D series TV last updates Jan 2018 for download. After downloading change the suffix to .scm, copy it to an USB stick and import it to your Samsung TV.

If you want to create your own, please follow the following steps.

    • Select OTHERS (OTH) as country in channel settings prior to continue as the remaining instructions build on this.
    • Download your current channel list for country OTHERS (A), e.g. channel_list_UE46D6500_1101.scm, from the TV to an USB stick.
    • Download your preferred channel list (B), e.g. samsung_1101.scm, either from another Samsung TV or from an online service, e.g. from https://sender-liste.de/
    • Copy both files to your Desktop and handle them as zipped archive files, e.g. rename either of the files from .scm to .scm.zip and unzip them
  • You should see a file directory as follows

  • The country information is stored in the CloneInfo file. Therefore, you have to copy your original CloneInfo from A to the directory of your desired channel list B.
  • Alternatively, you can also edit the existing CloneInfo using vim, you will find something like this: UED^@UE40D6200^@^@^@^...; the first three letters indicate the country code in inverse order, here it is UED -> DEU for Germany. You want to change it to HTO indicating OTHERS as we selected this as country at the beginning.
  • Now zip the content of the directory of B to new_samsung_1101.scm and copy the file to your USB stick and proceed to import it to your TV.

Finally, the TV will indicate a success notice and after rebooting the TV you should have your desired channel list in action. Hope this helps, have fun!

SCHAPPY — 30. November 2016, 17:24

RAM Disk for Mac OS X Sierra (10.12.) and High Sierra (10.13.)

As Apple announced that StartupItems are not longer supported, please find attached an updated version of the RamDisk script of Philipp Klaus making use of the launchctl.

Install

  • Download the code and store it in a file, e.g. ~/MoveTempFoldersToRamDisk.sh
  • Make the file executable, e.g. chmod +x ~/MoveTempFoldersToRamDisk.sh
  • Execute the file to install the launch daemon (/Library/LaunchDaemons/de.schappy.ramdisk.plist) and the RamFS script (/usr/local/bin/RamFS.sh)

Unintall

  • sudo launchctl unload -w /Library/LaunchDaemons/de.schappy.ramdisk.plist
  • Optional remove launch daemon and script (paths see above)

Code of MoveTempFoldersToRamDisk.sh


#!/bin/bash

# +----------------------------------------------------------------------+
# | |
# | Set up Mac OS X >10.12 to store temp folders on RAM disk. |
# | |
# | By Matthieu Schapranow Nov 11, 2017 |
# | |
# | Originally by Ricardo Gameiro
|
# | Changes by Daniel Jenkins |
# |
|
# | and Philipp Klaus
|
# | |
# +----------------------------------------------------------------------+

cat < < "EOF" | sudo tee /usr/local/bin/RamFS.sh > /dev/null
#!/bin/sh
# Create a RAM disk with same perms as mountpoint

RAMDisk() {
mntpt=$1
rdsize=$(($2*1024*1024/512))
echo "Creating RamFS for $mntpt"
# Create the RAM disk.
dev=`hdik -drivekey system-image=yes -nomount ram://$rdsize`
# Successfull creation...
if [ $? -eq 0 ] ; then
# Create HFS on the RAM volume.
newfs_hfs $dev
# Store permissions from old mount point.
eval `/usr/bin/stat -s $mntpt`
# Mount the RAM disk to the target mount point.
mount -t hfs -o union -o nobrowse $dev $mntpt
# Restore permissions like they were on old volume.
chown $st_uid:$st_gid $mntpt
chmod $st_mode $mntpt
fi
}

# Test for arguments.
if [ -z $1 ]; then
echo "Usage: $0 [start|stop|restart] "
exit 1
fi

# Source the common setup functions for startup scripts
test -r /etc/rc.common || exit 1
. /etc/rc.common

StartService () {
ConsoleMessage "Starting RamFS disks..."
RAMDisk /private/tmp 512
RAMDisk /var/run 128
#RAMDisk /var/db 1024
#mkdir -m 1777 /var/db/mds
}
StopService () {
ConsoleMessage "Stopping RamFS disks, nothing will be done here..."
diskutil unmount /private/tmp /private/var/run
diskutil unmount /private/var/run
}

RestartService () {
ConsoleMessage "Restarting RamFS disks, nothing will be done here..."
}

RunService "$1"
EOF
sudo chown root:wheel /usr/local/bin/RamFS.sh
sudo chmod u+x,g+x,o+x /usr/local/bin/RamFS.sh

sudo launchctl unload -w /Library/LaunchDaemons/de.schappy.ramdisk.plist
cat < < EOF | sudo tee /Library/LaunchDaemons/de.schappy.ramdisk.plist > /dev/null
< ?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Label
de.schappy.ramdisk
ProgramArguments

/usr/local/bin/RamFS.sh
start

RunAtLoad
EOF

sudo chown root:wheel /Library/LaunchDaemons/de.schappy.ramdisk.plist
sudo chmod 644 /Library/LaunchDaemons/de.schappy.ramdisk.plist
sudo launchctl load -w /Library/LaunchDaemons/de.schappy.ramdisk.plist

SCHAPPY — 13. July 2015, 12:15

[Fixed] Photos from Photos.app are not synced through iTunes

Issue: After migration from iPhoto.app to Photos.app in Mac OS X Yosemite 10.10.4, photos are no longer synced to mobile Apple devices, e.g. iPod, iPad, iPhone, through iTunes 12.2.0.

Solution:

  1. Quit any running iTunes instances
  2. Open iPhoto.app (look into /Applications/iPhoto.app)
  3. Quit iPhoto, which results in updating the photo library
  4. Open Photos.app
  5. Preferences -> General: Click on the button “Use as System Photo Library” if highlighted
  6. Close Photos.app
  7. Open iTunes and navigate to Sync Photos: the options to sync from Photos.app and iPhoto.app now appears in the drop-down menu as usual
     

itunes-iphoto-photos-sync

SCHAPPY — 21. May 2015, 11:14

[FIXED] After dist-upgrade from wheezy to jessie php scripts are not executed anymore

Situation: I upgraded a debian distribution wheezy to jessie with no significant issues. After upgrading I experienced that some of the already installed and formerly working php scripts stopped working. Content of some included php scripts, e.g. wordpress configuration, were printed as HTML content instead of being evaluated.

Reason: The updated php.ini disables short open tags by default. Check your affected php files whether they use the long php open tags [code]<?php[/code] instead of (my preferred) short open tags [code]<?[/code].

Solution: Either you replace all short php open tags by long php open tags or you can enable the use of short php open tags system-wide. The latter was more comfortable in my case, as I do not know how many files would be affected. To do so, check the installed php.ini used by your apache installation (typically located at /etc/apache2/php.ini) for [code]short_open_tag = On[/code] and restart your apache server [code]apache2ctrl restart[/code].

SCHAPPY — 17. January 2014, 13:46

[FIXED] Google Drive Update Version 1.13.5782.0599 get stuck on Mac OSX Maverick 10.9.2

Google Drive Update Message on Mac OSX 10.9.2

Problem: Google Drive asks to perform a update. When clicking update there is no prompt or action.

Solution:

  1. Quit running Google Drive processes
  2. Open Terminal.app and execute the following command (replace 10.9.2 by your currently running OSX version, you can find it in the “About this Mac” menu):
    /Applications/Google\ Drive.app/Contents/MacOS/Google\ Drive --overlays_enabled_finder_versions="10.9.2"
  3. Google Drive will launch and ask for permission to complete updates. Click the corresponding entry in the Google Drive menu when clicking its menu bar icon. If asked for your credentials, please enter them to finish the update process. Google Drive will automatically close
  4. Stop debug output by STRG+C in Terminal.app and feel free to close Terminal.app
  5. Next time you run Google Drive from the Applications folder no more warning will occur

 

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.