Archive for the ‘HowTo’ Category

Favicon generator

If you own a site then chances are you need a favicon. A favicon is a 16×16 icon which normally sits next to the URL in the browser’s address bar. It’s a small visual representation of a site. Most browsers today support favicons in multiple formats, .png, .gif, .jpeg and .ico but as usual there […]

Ubuntu cheat sheet by FOSSwire

Another good starter cheat sheet for all you Ubuntu newbies out there. If you missed it, the Linux cheat sheet is also available here. I’m new to Ubuntu myself so this comes in real handy for me. Download the PDF from here or here. Again, thanks to FOSSwire for making their cheat sheets available to […]

Linux cheat sheet by FOSSwire

Here’s a good Linux cheat sheet to get you started in Linux. Thanks to FOSSwire for coming up with it. Download it from here or here. Update: There is also a Ubuntu cheatsheet available for download.

What does dirname(__FILE__) and basename(dirname(__FILE__)) do?

Was helping a friend fix his php script today. He was not too sure about what “dirname(__FILE__)” did. dirname() is a PHP function which returns the directory name of a file. For example if file abc.txt was in “/tmp/abc.txt” then the dirname() function would return “/tmp” . Example Usage; <?php $file = “/tmp/abc.txt”; $path = […]

Protocol major versions differ: 1 vs. 2

Protocol major versions differ: 1 vs. 2.  The error above normally comes up when you try to ssh into a machine which has it’s allowed ssh protocol versions locked down to a single version, today it’s normally version 2. In the /etc/ssh/sshd_config file there’s a “Protocol” parameter which governs the allowed protocol version. It’s normally […]

Page 18 of 30« First...10«1617181920»...Last »
© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak