Samstag, 18. Mai 2013

Converting LaTeX to ePub

In contrast to claims in the web (i.e. M. Kofler: Sackgasse LaTeX?) it is possible to create ebooks from LaTeX sources easily even with sophisticated formulas and custom stylesheets. Using calibre and tex4ht I was able to provide an ePub of my PhD thesis: Atomistische Simulation von Nanoindentation. The resulting output looks quite impressive (minor defects when it comes to image boundaries or subscripts in text blocks). For comparison the original PDF.

Cross Glide

Samstag, 13. April 2013

Raspi As WSPR Transmitter

Recently the Raspberry Pi (Raspi) has gained much interest in the Ham Radio community. One interesting things is: the I/O pins provide access to a clock signal (GPCLK0) and it is possible to modulate this clock signal via software. This has motivated Guido Ten Dolle (PE1NZZ) to implement a WSPR transmitter and to publish the sources under GPL. Within the last days I have made some minor modifications to the WsprryPi sources, built a 30m QRP filter using the ugly method and connected everything to my doublet antenna.

Raspi as WSPR Transmitter

Immediately my 10mW have been received in 743km distance by G6HUI (WSPR Spots):
TimestampCallMHzSNRDriftGridPwrReporterRGridkmaz
 2013-04-13 15:30  DG6FL  10.140199  -16  -1  JO40cb  0.01  G6HUI  IO81wl  743  286

7869km with 10mW

TimestampCallMHzSNRDriftGridPwrReporterRGridkmaz
 2013-04-22 05:02  DG6FL  10.140238  -21  1  JO40cb  0.01  W4AC  EL86  7869  289


Information on how to do this yourself can be found in the WsprryPi repository.

Montag, 8. April 2013

Mount OSX SMB Share From Linux

A small reminder for all the options:
mount.cifs //1.2.3.4/public /mnt/public -o user=myusername,password=mypassword,nounix,sec=ntlmssp,noperm,rw

Samstag, 6. April 2013

Time Machine & Local Snapshots

Time machine can keep local snapshots. While this feature is useful if you travel and don't have access to your Time Capsule, the local snapshots can consume a lot of the local disk space in /.MobileBackups. There is a complex Removal Algorithm for old local snapshots based on the remaining free disk space.

To find out how much space your local snapshots consume (Local Snapshots):
  • Apple-Logo → About This Mac → Further Information → Storage: Backup == Local Snapshot Space 
  • Alternatively from commandline:
    test -d /.MobileBackups && du -hcs /.MobileBackups
It is useful to control the behavior of the local snapshots yourself (Controlling Local Snapshots) using tmutil disablelocal and tmutil enablelocal.


Samstag, 16. März 2013

Samstag, 2. März 2013

Start VNC Server on OSX from Commandline

The builtin VNC server can be started using commandline (i.e. with ssh). As root do:

cd /Library/Preferences
echo enabled > com.apple.ScreenSharing.launchd
touch /etc/ScreenSharing.launchd

Sonntag, 17. Februar 2013

Movie Import Problem iTunes 11 - Workaround

In iTunes 11.0.11 (12) 64-Bit there is a bug, which prevents movie import. Once a movie is imported (Drag & Drop or manually) it does not show up in iTunes. Nevertheless the file is copied to the iTunes directory Home Videos and is inserted into the library file iTunes Library.xml. If you wait a while the movies will show up (at least some in my case...).

This is a workaround:
  1. Click on Movies 
  2. Click on Home Videos
  3. Right-Click on any movie here:
    1. Get Info
    2. Options tab
    3. Change media kind to movie
Your movies will start to show up slowly...