Hi, And Welcome to my blog.. In case you were wondering.. This is just another geek blog.. You will find anything from personal entries, to techy/geeky stuff here.. Enjoy, and feel free to comment on any of the articles.
-Steve
Hi, And Welcome to my blog.. In case you were wondering.. This is just another geek blog.. You will find anything from personal entries, to techy/geeky stuff here.. Enjoy, and feel free to comment on any of the articles.
-Steve
This made my day..
Original post is at : http://futuremark.yougamers.com/forum/showthread.php?t=23914&highlight
I copied it here in case it disappears some day. :)
br0kenrabbit says:
hi
Greg_ValveOLS says:
good evening
br0kenrabbit says:
What's ip?
br0kenrabbit says:
up?
Greg_ValveOLS says:
my name is greg a member of the valve online Support team
br0kenrabbit says:
On MSN?
Greg_ValveOLS says:
yes :)
br0kenrabbit says:
Why?
Not anything major, but I wanted to figure out how to make my apache server re-write the URL of my site if someone came to http://fratm.com I wanted the server to dump them on http://www.fratm.com so basically how to do a all encompassing redirect from fratm.com to www.fratm.com It was quite easy actually, by using ReWriteRules.
In an htaccess file I just added this code.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^fratm\.com* [NC]
RewriteRule ^(.*)$ http://www.fratm.com/$1 [redirect]Mainly posting this so I have a place to refer people to get to the links to my pictures from the trip.. So here are the links.. Enjoy :)
Day 1 http://www.flickr.com/photos/fratm/sets/72157621812425982/
Day 2 http://www.flickr.com/photos/fratm/sets/72157621693628853/
Day 3 http://www.flickr.com/photos/fratm/sets/72157621700679617/
Day 4 http://www.flickr.com/photos/fratm/sets/72157621702023957/
Day 5 http://www.flickr.com/photos/fratm/sets/72157621735077517/
Day 6.1 http://www.flickr.com/photos/fratm/sets/72157621735377209/
Day 6.2 http://www.flickr.com/photos/fratm/sets/72157621735650963/
Day 7 http://www.flickr.com/photos/fratm/sets/72157621862067604/
Day 8 http://www.flickr.com/photos/fratm/sets/72157621738437123/
Misc http://www.flickr.com/photos/fratm/sets/72157621863534874/
-Steve
The other day the boss asked me to find the e-mail address of every person who has sent mail from or that we received mail from that had a specific string in the e-mail address.. So I wrote this quick little perl script to do this.. He wanted a count and a unique list.
Here is the PERL script I wrote to do this.
This is a perl script that you can call from /etc/aliases to do a spamassassin check on mail that would normally be piped to a program. (Mailing lists for example.)
In linux setting up a virtual interface is a piece of cake. You just need to issue two commands, and you are done.
first you need to assign an ip to the cirtual interface.
/sbin/ifconfig interface:virtual# IPADDRESS
or
/sbin/ifconfig eth0:1 192.168.1.2I read an interesting article the other day, basically they stated that they challenge any programmer who applies to work with them to write a fizzbuzz program. This is a program that counts from 1 to 100, prints the numbers but if the number is divisible by 3 or divisible by five it would print the words fizz for 3, and buzz for 5.
A coworker asked me how to toggle a column in a table so that it was either visible or not, he wanted to do this in PHP. After looking over his code, I realized this might be something that would work and look better if done in javascript.
Now I'm not very good at javascript, and I rarely have to write any, but this is what I came up with as a working example.
Credits: This little HOWTO was taken from http://secpriv.com/viewarticle.php?id=7
Not really related to privacy or security, but I sometimes forget this command, and need to look it up. This way, I'll know exactly where to find it:
To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.