Monday, May 14, 2007

Steve Jobs' 20 rules of success


Steve Jobs' rules for success:
  • First thing: As soon as you join/start a company, make a list of strengths and weaknesses of yourself and your company on a piece of paper.
  • Don't hesitate in throwing bad apples out of the company.
  • Don't worry about too many things at once. Take a handful of simple things to begin with, and then progress to more complex ones.
  • People judge you by your performance, so focus on the outcome.
  • Success generates more success. So be hungry for it. "I've always wanted to own and control the primary technology in everything we do."
  • Ask for feedback, from people with diverse backgrounds. Each one will tell you one useful thing.
  • If you're at the top of the chain, sometimes people won't give you honest feedback because they're afraid. In this case, disguise yourself, or get feedback from other sources (Steve Jobs actually called Apple Customer Care disguising himself as a customer, just to check on them).
  • Focus on those who will use your product - listen to your customers first.
  • Advertise. If they don't know it, they won't buy your product.
  • Pay attention to design. "We made the buttons on the screen look so good you'll want to lick them." "Design is not just what it looks like and feels like. Design is how it works."
  • "Innovation distinguishes a leader from a follower." If there's a better technology available, use it no matter if anyone else is not using it. Be the first, and make it an industry standard. “I think this is the start of something really big. Sometimes that first step is the hardest one, and we've just taken it.”
  • “Be a yardstick of quality. Some people aren't used to an environment where excellence is expected.”
  • Learn to criticize your enemies openly, but honestly.
  • If you partner someone whom you don't like, learn to like them - praise them and benefit from them - "Ecosystem approach"
  • Sometimes when you innovate, you make mistakes. It is best to admit them quickly, and get on with improving your other innovations.
  • Do your best at every job. No sleep!
  • Think about not just tomorrow, but the future. “I want to put a ding in the universe.”
  • There's always "one more thing" to learn!
  • "Better be a pirate than to join the navy"
  • "Think different"

Friday, May 11, 2007

How (and why) to disable apache server signature on your web pages

In the default configuration of Apache, any error pages will contain the full signature of the server (version number) which could be exploited by hackers. Each version has some deficiencies that could be exploited, and a hacker who knows your version number may benefit from it by focused attacks.

To disable server signature, you will need to edit your /etc/apache2/apache2.conf file.

sudo nano /etc/apache2/apache2.conf

Press Ctrl+w to search for "ServerSignature" and press return. If you find it, edit it to:

ServerSignature Off
ServerTokens Prod
If you don't find it, just scroll to the end of the file and add these two lines.

Then, we need to reload apache configuration to put this new change in effect:

sudo /etc/init.d/apache2 reload

Check the new configuration by entering an invalid address on your server URL (e.g. www.server.com/invalidpage.html). You should not see the server signature now, just the server name.

Saturday, May 05, 2007

Mac OS X: Show hidden files and folders in Finder


1. The easy way:


To show hidden files, just download and run this app.
To hide them again, download and run this app.
(Word of warning: Both these applications relaunch the Finder. So make sure you don't have any applications running, otherwise everything works just fine)

2. A little more geeky way:

To show hidden files and folders in Finder, open a terminal window and type this:

defaults write com.apple.finder AppleShowAllFiles TRUE

(the above sentence is all in one line), press return, and then type:

killall Finder
(and press return)

Finder will relaunch and you will be able to see hidden files and folders.

To revert (hide hidden items), type this in terminal:

defaults write com.apple.finder AppleShowAllFiles FALSE

(all in one line again), press return, and then this:

killall Finder
(and press return)
That's it!

Friday, May 04, 2007

Control fan speed in your macbook


iStat Pro widget tells me that my CPU temperature is in excess of 50 degrees celsius while doing casual work, and it's not good. I want a cool laptop so that it doesn't burn my lap. I was thinking of buying a laptop cooler, but Google directed me to some other place.

There is this little program "smc fan control" which lets you adjust your minimum fan speed. The default is 1500rpm, but you can adjust the minimum speed to anything between 1500 and 6000 rpm. I find that setting the minimum fan speed to 3000rpm keeps the macbook cooler, and does not produce much fan-sound either.

Download here: http://www.macupdate.com/info.php/id/23049

Thursday, May 03, 2007

Deny.hosts file


I described last week how many (zombie) computers are attempting to gain anauthorized access to my server via open SSH port. Though I haven't been able to configure my iptables firewall as per my wishes, here's a temporary fix:

This guy has released his hosts.deny file to the public, so that we can ban these bad guys. Just copy it to your /etc/ directory (overwriting existing deny.hosts file) and restart your network or computer. It'll start working straightaway.

Additionally, here is a very nice and easy tutorial about installing denyhosts, an automated program which scans your logs for multiple unauthorized login attempts, and bans those hosts from accessing your computer।

To install Denyhosts on Ubuntu:
sudo apt-get install denyhosts

The default installation of Denyhosts in Ubuntu comes with reasonably secure default settings. It also adds a daemon at startup! Being a zero-configuration daemon, I recommend it over fail2ban (which does require configuration by hand in Ubuntu).