Sunday, September 30, 2007

debian, ampache, and xspf player

installed ampache (https://ampache.bountysource.com/wiki/Ampache_on_Debian) and after local play was working wanted to try xspf player:

but it seemed like the link for the temporary playlist-id did not transfer correctly - solution was to modify the trunk version of show_xspf_player.inc.php from the svn repository.

<div id="mp3player">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="170" id="xspf_player" align="middle">
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/modules/flash/xspf_player.swf?autoplay=true&playlist_url=" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="type" value="application/x-shockwave-flash" />
<param name="width" value="400" />
<param name="height" value="170" />
<param name="name" value="xspf_player" />
<param name="align" value="middle" />
<embed src="/modules/flash/xspf_player.swf?autoplay=true&playlist_url=" quality="high" bgcolor="#ffffff" width="400" height="170" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>

Sunday, September 9, 2007

i've been simpsonized

Have you ever wondered what I would look like as a character on The Simpsons? Never? Not even once? D'oh! Well, anyway, I would look like this:

you can give it a try at http://www.simpsonizeme.com

however, you might wonder what Burger King is going to do with all the photos, DOBs and e-mail addresses...

Thursday, September 6, 2007

port install fails with 'checksum mismatch'

wanted to install Coin with
sudo port -v install coin
but only got
---> Verifying checksum(s) for Coin
---> Checksumming Coin-2.4.6.tar.gz
Error: Checksum (md5) mismatch for Coin-2.4.6.tar.gz
Portfile checksum: Coin-2.4.6.tar.gz md5 17f9a941cec7a1b69693d240e4ac308d
Distfile checksum: Coin-2.4.6.tar.gz md5 30efbdb9c761dd9fea7a7f4a0f01a50d
Error: Checksum (sha1) mismatch for Coin-2.4.6.tar.gz
Portfile checksum: Coin-2.4.6.tar.gz sha1 8595fcc9b4669b8c58490637d577f061589dbdbb
Distfile checksum: Coin-2.4.6.tar.gz sha1 662cde2c7fd06e79f95e02aa23325d283d3294a1
checked whether my download was 'broken': downloaded Coin-2.4.6.tar.gz from different sites and - consistently - found one other checksum...

...then changed the checksum in
/opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/Coin/Portfile
(for other ports the file will be different - but somewhere in that direction...)


references:
  1. http://blog.codefront.net/2007/05/29/imagemagick-port-broken-temporarily/
  2. http://groups.google.com/group/mailing.freebsd.questions/
  3. http://trac.macports.org/projects/macports/ticket/12618 - now, that's only the bug report...

Wednesday, September 5, 2007

Umlaut characters (and others) display strangely in Terminal.app

Terminal.app behaves a bit strange - lately...

  1. äöüÄÖÜ etc. are not displayed correctly
  2. deleteing one character of the above deletes two in the terminal (i.e. hitting the keyboard once and deleting this last character moves the cursor to position -1)

some help for 1. may be found on:

GNU development under Mac OS X - TECH.inhelsinki.nl,
http://www.macosxhints.com/article.php?story=20060825071728278 and
http://groups.google.com/group/

for 2. one might have to change the Character Set Encoding for the Terminal.app (Terminal/Window Settings...) to something other than UTF-8

Saturday, September 1, 2007

booting from the network with GRUB

http://en.opensuse.org/SDB:Booting_from_the_Network_with_GRUB

SSH handler for Firefox

linux


add the following lines to user.js (in the profile folder):

user_pref("network.protocol-handler.external.ssh", true);
user_pref("network.protocol-handler.warn-external.ssh", false);
user_pref("network.protocol-handler.expose.ssh", true);
user_pref("network.protocol-handler.app.ssh", \
[noLineBreak] "/PATHTO/NAME_OF_SSHHANDLER_HELPER_SCRIPT");
ssh handler helper script
#!/usr/bin/env bash

xterm -e ssh `echo $1 | sed -e "s/ssh:\/\///"`
#
# don't forget to set the script's exectuable flag
#


windows

execute (or combine) ssh.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssh]
@="URL:ssh Protocol"
"URL Protocol"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssh\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,75,00,72,00,\
6c,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssh\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssh\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ssh\shell\open\command]
@="c:\\Program Files\\SSH Communications Security\\ \
[noLineBreak] SSH Secure Shell for Workstations\\Sshhandler.cmd \"%1\""

save ssh.cmd in (e.g.) c:\Program Files\SSH Communications Security\SSH Secure Shell for Workstations\Sshhandler.cmd

@echo off
@FOR /F "tokens=2,3 delims=/@" %%a IN ("%~1") DO \
"c:\Program Files\SSH Secure Shell for Workstations\SSH Secure Shell for Workstations\ \
[noLineBreak] SshClient.exe" -u "%%a" -h "%%b"

rem ...DO start SshClient.exe - without quotes - works better;
rem but how does the path go into there without quotes...?

in case it doesn't work add the following lines to user.js:

user_pref("network.protocol-handler.external.ssh", true);
user_pref("network.protocol-handler.warn-external.ssh", false);
user_pref("network.protocol-handler.expose.ssh", true);

i happily give credit for this - and particularly the windows integration - to martisch_AT_uos.de (www.waldwolf.net)