related to: http://wordpress.org/extend/plugins/image-extractor Comment Im neuen GD-info wird neu “JPEG” statt “JPG” verwendet. Das Plugin überprüft diese Textsequenz und beendert mie einem “Fatal Error”, falls der Text nicht gefunden wird. Diff: php5:/home/test/public_html/wp-content/plugins/imageExtractor# diff class.ImageToolbox.php.bck class.ImageToolbox.php 202a203,205 > if ($gd_info[‘JPEG Support’]) { > $this->_types[2][‘supported’] = 2; > } 319a323,324 > if(strpos($line, “JPEG Support”) !== false) > […]
Author Archives: guide
accesskey
EIne Software die intensiv genutzt wird sollte vollständig per Tastatur bedienbar sein. Ein kleiner Aufwand für die Developer und grosser Gewinn an Effizienz und Ergonomie für diejenigen, die gezwungen sind, mit dem Tool zu arbeiten. Und das nicht nur für blinde Menschen wie mich… Siehe z.B. http://www.w3.org/TR/WCAG/#keyboard-operation http://www.die-barrierefreie-website.de/grundlagen/tastaturbedienung.html Happy hacking.
infinite video loop
$ while(true) do mplayer video.mp4; done
stereo file auf 4 kanäle auf jack routen
$ mplayer -ao jack -af channels=4:4:0:0:0:2:1:1:1:3 http://somafm.com/sxfm.pls more infos: $ man mplayer
Save all images on page
Copy everything to directory structure: wget -E -H -k -K -p http://the.site/dir search .jpgs in structure and copy all to one dir: find . -name *.jpg -exec mv ‘{}’ /target/dir \;
How we log apache
We have a site specific logfile and one main file for all sites on the server. The main one has a special log format, that allows to see the www adress of the server in the webalizer log: apache2.conf:LogFormat “%h %l %u %t \”GET %V\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” \”%r\” %P” extended So here it […]
iptables basics
Block ping from localhost root@ace1:/home/c1audio# iptables -A INPUT -s 127.0.0.1 -p icmp -j DROP root@ace1:/home/c1audio# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination DROP icmp — localhost anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination root@ace1:/home/c1audio# ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) […]
Speed up video with ffmpeg
1. Convert every 15th image to jpeg: ffmpeg -i 00000.MTS -r 0.6 -f image2 out/output_%05d.jpg 2. Convert all jpegs to movie: ffmpeg -r 10 -b 1800 -i %03d.jpg test1800.mp4
E-Mail Config/Test
E-Mail Test mit Telnet: myMac:~ c1audio$ telnet vmk.zhdk.ch 25 Trying 195.176.254.139… Connected to vmk.zhdk.ch. Escape character is ‘^]’. 220 php5.vmk.zhdk.ch ESMTP Exim 4.69 Tue, 31 Jan 2012 07:26:07 -0500 HELO 172.31.40.115 250 php5.vmk.zhdk.ch Hello 172.31.40.115 [172.31.40.115] MAIL FROM:xy@z.ch 250 OK RCPT TO:ab@c.ch 250 Accepted DATA 354 Enter message, ending with “.” on a line by […]
iceland
[slideshow]