USB driver for Synology NAS
http://www.jadahl.com/drivers.html forums of the author https://forum.synology.com/enu/viewtopic.php?f=155&t=82843&start=435
How to convert VOB to mp4
from http://www.ehow.com/how_8407654_convert-vob-mp4-using-ffmpeg.html ffmpeg -i input -acodec libfaac -vcodec mpeg4 -b 1200k -mbd 2 -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -metadata title=X output.mp4
What’s a good SSH tunneling client for OS X?
http://apple.stackexchange.com/questions/16976/whats-a-good-ssh-tunneling-client-for-os-x ssh -D 8080 -C -N username@example.com Open Google Chrome Select ‘Chrome’ up the top left Select ‘Preferences’ Select ‘Show advanced settings…’ Select ‘Change proxy settings…’ Select ‘SOCKS Proxy’ Enter…
SQL check duplicate
SELECT id, policy_number, count(*) FROM `policies` group by policy_number having ( count(*) > 1 and id >10000) SELECT submission_date, policy_number, count(*) FROM `policies` group by policy_number having ( count(*) >…
Make cakephp run on your damn Mac
Wasted me an hour figuring permissions etc, eventually found this: Thx. http://knowledgeisunlimited.blogspot.hk/2011/12/setting-up-cakephp-on-mac-os-x.html change your user.conf file in etc/apache2/…. <virtualhost *:80> DocumentRoot /Users/yourusername/Sites/pathttocake/app/webroot ServerName pathtocake <Directory "/Users/yourusername/Sites/pathtocake"> Options Indexes FollowSymLinks AllowOverride…
low tech way to clean html comments
$r=””; //clean end tags $s=explode(“–>”,$text); //clean each front tag foreach($s as $v){ $m=strpos($v,’
fix pushing to a git repository does not work
http://stackoverflow.com/questions/3191400/pushing-to-a-git-repository-does-not-work/3191584#3191584 > mv repository repository.old > git clone –bare repository.old repository note: need to make a –bare repo
recursive remove files of specific extension
find . -iname ’*.jpg’ -type f -exec rm -f {} ; from http://www.linuxforums.org/forum/newbie/100469-rm-rf-jpg-what-wrong.html find – the find program . – search the subtree starting in the current directory -iname ’*.jpg’…
cakephp : using App::import() for vendors is kind of silly
quoted from Stackoverflow http://stackoverflow.com/questions/8158129/loading-vendor-files-in-cakephp-2-0 It is just an expensive, verbose and very silly wrapper for require_once(). I tested and found exactly true.