Mindblown: a blog about philosophy.
-
Simple local backup with rsync on Windows
If you already have rsync setup as a client on your Windows PC, you can also let it send files to any local folder/drive. In my case, I want to backup data on my PC to a USB drive. ECHO Backing up the hard drive (eg: C:\DATA) to a USB drive (G:) c: cd c:\…
-
CrimeReports.com
I saw the news broadcast on TV the other day and they mentioned CrimeReports.com and I have to say it’s a very nice public service, don’t know what’s their business model just yet. It provides useful information about the police calls for all residents. Just put in a zipcode and you find a visual listing…
-
Solar lighting
We bought a few boxes of Brinkmann Endura Coach solar light, they have a good classic look and the light are good when it’s on. The photocells are kinda unreliable, within 2-3 weeks and already at times they would not turn on at night. Guess you get what you pay for.
-
Shell script to check basic info
root@xx [/scripts]# more check.sh #!/bin/sh echo “Uptime:” uptime echo “Disk free:” df -kh echo “Apache Processes:” ps -C ‘httpd’ | wc -l echo “MySQL Processes:” ps -C ‘mysqld’ | wc -l host=`host YOURDOMAIN.COM | awk ‘{print $4}’` one=`netstat -n –tcp | grep $host | wc -l` total=`netstat -n –tcp | wc -l` wait=`netstat -n –tcp…
-
iftop – bandwidth usage
If you have never used iftop, you should, it’s beautiful, interactive, full of info. It showed us the bottle neck for a worker and boy, how easy that was comparing to having to monitoring the bandwidth through rrdtool (not real-time) or ifconfig. It’s really easy for a load balancer to saturate a much bigger pipe…
-
Google AdSense expands into ad serving
Just notice a few site that serves 3rd party ads through Google AdSense. With the acquisition of DoubleClick and its general direction, there is no doubt that Google will expand into the generic ad serving business. Searching for “gampad” yields no related result. I guess it’s still in beta testing. http://partner.googleadservices.com/gampad/google_ads.js
-
Ubuntu Feisty (7.04) & D-Link DWL 122
Cannot get WPA to work. The driver comes with linux-wlan-ng does not support WPA and only show WEP
-
Custom 404 page & IE quirk
If the 404 Not Found custom page is empty or has less than 512 characters (any characters), IE will returns its default error page. If it’s more than a limit, the custom page will be used. This does not happen in Firefox or Opera. Also different HTTP error codes have different limits. Here are some:…
-
Windows Vista hangs randomly
It really sucks, I wish I ordered the Dell E521 with Windows XP or Ubuntu Linux instead. It’s probably not too late since I’ll setup dual boot with Ubuntu now. Among that, Vista has a lot of problem with counter-intuitive interface, compatibility issue with hardware. When I started to download a file, it freezes (saw…
-
Custom error pages in lighttpd
Have this in your lighttpd.conf server.errorfile-prefix = “/home/errorpages/” Create this folder, create the files 404.html, 500.html, 403.html, etc. and lighttpd will deliver these file instead of the default message. The response header code is also correct.
Got any book recommendations?