Archive for July, 2010
Zip files corrupted on download in internet explorer no FF or Chrome
Jul 20th
Aghh the joys of working with websites..
One step forward another step back.
Scenario
You have zipped files available for download from your site, blog, CMS etc. When you test the download process our in IE you get an error:
The Compressed (zipped) Folder is invalid or corrupted.
Publish wordpress to twitter
Jul 18th
Having just spent all morning getting grief from she-who-must-be-obeyed I am having a bad PC day. Her command was simple enough
MAKE MY BLOG POST TO TWITTER
hmm. 1st it was “who the hell would want to use twitter” then it was like “make my facebook page talk to twitter” now its “make my wordpress blog talk to twitter”. The facebook talking to twitter was a bit of a pain but I figured wordpress would be a doddle. I used the built in plugin search / install tool to try about 5 different twitter integrators and none of them would work. Alex King who produces the most popular plug in Twitter Tools was starting to lose his cool so it is clearly a problem with some esoteric combination of servers and twitter.
Eventually at the bottom of the plugin search page is WP to Twitter by Joe Dolson. Finally!! This worked a treat 1st time around, supports bit.ly and a few other shortening services and is very easy to use. Is these words are true there should be a link flying its way over to twitter right now pointing back to this page
How to extract *.tgz or *.tar.gz
Jul 18th
To extract .tar.gz or .tgz files from terminal or via ssh
tar -zxvf file.tar.gz
or
tar -zxvf filename.tgz
I don’t know about anyone else but 99% of the time when faced with a compressed tar file I want to extract it to its own folder and view the progress of the decompression. So why it is that every time you seek the answer to this question do most linux support sites feel the need to explain over 1500 words every single possible switch and variant of the tar command coupled with the historical development and legacy options of the command. WE DON’T CARE.
SSH as a different user on remote linux box
Jul 18th
Scenario:
You are sat at a linux box (ubuntu, fedora, suse etc) and want to ssh into another linux box (probably your webserver). By default typing ssh remote-domain.com will attempt to log you in as the user you are currently logged in as. However, you may want to log into the remote machine as someone else.
Short answer:
in a linux terminal enter
ssh user@remote.com
Long answer:
More >