email obfuscation javascript

February 4th, 2008
<script>
	var ermail = "moc.liamg@lairetamciteneg";
	var ungarbled = "mailto:";	
	for( i = ermail.length-1; i >= 0; i-- ) {
		ungarbled += ermail[i];
	}
	document.getElementById('contact').href = ungarbled;
</script>

If you hate spam and dont want your email address from being harvesting via some crawler. why try and obfuscate your email using some simple javascript. this script simply reverses the order of a string which contains your email in reverse. It then looks for a link with an id of “contact” and replaces the href attribute with your email address.

Tags: , , ,

obama has a posse

February 4th, 2008


Shepard Fairey, of Obey Giant, creator of the infamous “Andre the Giant has a posse” poster, is apparently promoting Barack Obama for president. He illustrated Obama in two of a three part call-to-action series. this is just awesome

I believe with great conviction that Barack Obama should be the next President. I have been paying close attention to him since the Democratic convention in 2004. I feel that he is more a statesman than a politician. He was against the war when it was an unpopular position (and Hillary was for the war at that time), Obama is for energy and environmental conservation. He is for healthcare reform. Check him out for yourself www.barackobama.com. Proceeds from this print go to produce prints for a large statewide poster campaign.

Thanks.

-Shepard

Tags: ,

good copy bad copy

February 3rd, 2008



Good Copy Bad Copy explores the state of limbo the world is in when it comes to copyright.

Western media conglomerates and rights owners desire one world order, while ‘pirates’ and cultural movements in the third world invent their own rules. Rules that even the West might have to play along with.

In a Pittsburgh living room, DJ and producer Girl Talk composes catchy pop hits on his laptop. In the span of 30 seconds he samples Elton John, Notorious B.I.G and Destiny’s Child into a new song. But, who owns the music? Who owns the artists? Piracy is booming all over the world - from Nigeria to Brazil, while Hollywood and the record industry fight to stem the tide.

Directors:
Andreas Johnsen
Ralf Christensen
Henrik Moltke

free to download via bittorrent

Tags: ,

jawbreaker documentary

February 2nd, 2008



The below is an excerpt from a news item at Blackball Records regarding a Jawbreaker documentary that is in the works. Adam Pfahler (drummer of Jawbreaker) and Keith Schieron (director of “we jam econo: the minutemen documentary” ) have been working on this project for a little over a year and Adam has expressed his hope to finish by end of 2007.

I have been talking to We Jam Econo (the Minutemen documentary) filmmaker Keith Schieron about doing a Jawbreaker doc. I have been
dumping footage into Final Cut, which I will go through with Blake before editing. I don?t know what the arc of this story will be. As long as it doesn’t come off too self congratulatory or play like some cautionary tale on the pitfalls of the music industry, I think it could be cool. Please email me any thoughts you have on this project. And if anyone out there has film of us, please contact me. We need all the source material we can get our hands on.

This is fantastic news from Adam which will surely please the fans. I’ll be on the lookout for when this hits the shelves to get a copy for my
own and to spread the word as far as I possibly can.

Tags:

rip an internet stream with a cronjob

February 2nd, 2008

I listen to various internet radio stations through out my day and sometimes I just don?t have the time or am I in front of a computer at
the time. This prompted to write a script that gets run in the background by a cron job and quietly kills itself after a predetermined amount of time. The only requirement would be mplayer, a radiostream and a simple cronjob.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# rip_steph_miller_show
 
source_stream="mms://38.116.147.100/SMS?MSWMExt=.asf"
dest_directory="/home/lando/podcasts/steph_miller/"
prefix="steph_miller"
postfix="asf"
 
date=`date +%Y-%m-%d`
dest_file="${dest_directory}${prefix}-${date}.${postfix}"
mplayer -dumpstream ${source_stream} -dumpfile ${dest_file} &
 
pid=$!
let "sleeptime=60*60*3" # 60secs*60mins*3hours = 3 hours
sleep ${sleeptime}
kill -15 $pid

grab the above bash script and replace the source_stream with the address to the stream you want ripped, then the dest_directory to where you want to save the ripped stream and finally replace the prefix to the name you want the saved rip stream to have and the postfix to the same extension the stream has.

No matter what you choose the prefix to be the file will be saved with the date added to keep from overwriting itself the next time the script
is run.

Save the script and place it in a safe out of the way directory where your cronjob can access it from. now we can take a look at the cron line that needs to be added.

0 9 * * 1-5 bash /home/lando/scripts/rip_steph_miller_show >/dev/null 2>&1

to access your users crontab enter the command “crontab -e” and enter the above cron line. This cron line will run every weekday at 9 am. for more information on crontabs you can visit this wiki or google crontabs for hundreds of examples.

The first couple of numbers and ?*?s are what tells the cronjob when to execute. immediately after your have the command to execute and at the very end any output that might end up in logs or mailed to your will be redirected to /dev/null. I wont go into a whole crontab tutorial because it really is a simple concept and there are already enough of those about.

hope this script help somebody and im rather new to bash scripting if anyone has any improvements let me know. kthxbye!

Tags: , ,