If you have ever managed a web application, you know you have to take it down at times . And you usually want to show an simple page stating that you are down for maintenance. Here is a simple way to setup a “maintenance” splash page. The assumption is that you have a Linux server to host the maintenance page.
- Configure lighttpd (HTTP Server) on the server using instructions from this article on Cyberciti.
- Edit the lighttpd.conf file and add the following line in your site configuration
server.error-handler-404 = "index.html"
- Name your maintenance page as index.html and upload it to the document root (in this example, it is /var/www/html)
You are essentially telling the web server to display index.html whenever the user is trying to access content that is not present on the server. And since there is no content on the server other than the index.html, the web browser will always display the index.html page..
I was listening to NPR on my way to work today and heard this interesting snippet about a Valentine’s Day tradition in Japan. Apparently, all the women give chocolate to men on Valentine’s day . This just notched up Japan in my “cool country” list .
I say, we make that a world wide tradition .
The usual process for a DBA to download files from Oracle Metalink (support) site is
- Login to Metalink from his/her workstation
- Download the file
- Upload the file to the database server
- Use the file
Say your database is in a data center and your workstation doesn’t have high speed connectivity to the data center, you can use the following trick to download content to a l[u]inux server in the data center that has Internet connectivity (and hopefully it is not your database server ).
- Log into Metalink from your workstation
- Grab the link to the file/content you want to download (for example, we recently tried to download clusterware for Oracle 11G, and the link was http://download.oracle.com/otn/linux/oracle11g/linux.x64_11gR1_clusterware.zip)
- Log into a server in your data center (it should have connectivity to the Internet and also to your database server)
- Download the file using wget
wget http://download.oracle.com/otn/linux/oracle11g/linux.x64_11gR2_clusterware.zip --user ORACLE_ID --password ORACLE_ID_PASSWORD
- Replace the link with the link to your content and use your Oracle ID and password.
- The file downloaded will have a strange name since wget appends the sessionID to the end of the file. In the example I used above, the name of the file was “linux.x64_11gR2_clusterware.zip\?e\=1297470492\&h\=a66b265cc967a68c611052cb8e54356f“
- Rename the file and strip off the unnecessary data in the name using mv
Quick how to on capturing HTTP headers using tcpdump on a web server (running Linux).
- On the web server, issue the following command
tcpdump -s 1024 -C 1024000 -w /tmp/httpcapture dst port 80
- Stop the capture by issuing the break command (ctrl + c)
- Open the capture file (httpcapture in this example) in wireshark and check out the headers under the the HTTP protocol
I was interviewing a candidate for a job opening at my work. I asked him how he motivates his team and he made this comment about how you truly measure if you can motivate a person
Think of a 16 year old working part time at a retailer. She is just working to earn money to buy some lipstick or perfume. Think how you can motivate her to work on a thanksgiving weekend!!
I have been snowed in for the first time (in the 10 years that I have been in Chicago) . I woke up early and took some pictures. Here is one showing my car (nearly drowned in snow ) with snow around it for some prospective
Here’s another showing how much snow we had to dig through on the footpaths to walk around
More pictures at http://www.flickr.com/photos/kudithipudi/sets/72157625835243633/