Spy Shenanighans

I created this video of demo footage I took the other night playing Team Fortress 2 as spy. Not my best work by far, but it was fun making it,so I'll be making more with better action :)

Standard definition, high quality

Installing Apache Tomcat 6 and Solr nightly on Ubuntu 8.04

Getting Solr to play nice with Tomcat on Ubuntu was an interesting journey, I almost gave up entirely at one point. I'm compiling this how-to from tips I got from multiple websites. I'll try to make as complete a list as I can remember at the end of this post.

Screenshot upload script

I wrote up this script to take a screenshot and upload it to my webserver a while ago and I want to share it, so without further adieu, I give you ShotUp:

#!/bin/bash
## Screenshot Upload script
## by Justin Hayes

## variables
# screen capture delay
DELAY='2'
# screen capture quality
QUALITY='100'
# screen capture output format
OUTPUT='jpg'
# directory
DIR='/tmp'
# timestamp
TIMESTAMP=`date +%Y-%m-%d_%H-%M`
# hostname
HOST=`uname -n`
# remote user
RUSER='justin'
# remote host
RHOST='192.168.1.101'
# remote directory
RDIR='/var/www/justin-hayes.com/web/www/files/screenshots'
# web directory
WEBDIR='http://www.justin-hayes.com/files/screenshots'

## let's get down to business...
scrot -q $QUALITY -d $DELAY $DIR/screenshot_$HOST\_$TIMESTAMP.$OUTPUT

scp $DIR/screenshot_$HOST\_$TIMESTAMP.$OUTPUT $RUSER@$RHOST:$RDIR

firefox $WEBDIR/screenshot_$HOST\_$TIMESTAMP.$OUTPUT

Use the script by placing it in /usr/bin and calling the command shotup in the Gnome run dialog box or equivalent for other display environments. Please note that the upload will only work if you've setup SSH public key authentication.

Tags:

That does it for me

Last.fm had always been one of my favourite web services. Indeed, it was the first "social network" I ever joined. I've seen them go through a lot of transformations over the years, from the new website design, to being bought out by CBS, but I've always supported them. I have been a paying subscriber on and off for a while now. But the announcement they made today is just too much for me to bear.

I don't care that there's still plenty for free users to do, I don't care that the subscription cost is affordable, what I do care about though is the fact that it remains free in the three countries that could probably best afford it, while everyone else gets the shaft. Are you telling me there's not enough of an ad market to support free radio for Canadians? Because I'd have to call bullshit on that claim.

I'm sorry last.fm, but this is the last straw. I will not pay for something that has always been free for me, especially since paying subscribers no longer get all the same benefits they used to. Your service is cheap, but it's still not worth the money, so I will not be renewing my subscription until we get our choice back, or you bring more to the table.

Tags:

Apparently sharing my opinion in an intelligent manner makes me unpopular

New Facebook version came out recently and everyone's whining as they always do about it. I decided to share my opinions with one such group (http://www.facebook.com/group.php?gid=56865947818), and here's their response:

RSS feed should be fixed now

I've moved my RSS feeds from FeedBurner's old backend to the new one at Google. I know this has caused some problems in the last week with the feed not being available, but everything should be fine again now. Don't worry, you haven't missed anything. I'll have some new stuff to post about soon, promise. I will say now though that I got a new job. More about that at a later date.

Thoughts on faith from Nick

Ok, I'm kind of cheating here, republishing a comment my friend Nick made on my other friend, Dan's, blog. However, I thought it echoed my own opinions perfectly, so I'm re-posting it here with his permission. All I've edited is his spelling.

The idea of a god bewilders me to no end. The idea of some infinite paradise after death, attainable ONLY through the strict, virtually un-followable guidelines of a book lost in translation a hundred times over makes it impossible for me to believe. bare with me, as I feel like discussing this matter in some detail. *sorry*

First off, God is said to be omnipotent, or otherwise all powerful. I refer you to the omnipotence paradox. For those who are unfamiliar with this, it is as such: Can god create a stone with such mass that even he himself cannot lift it. If not, then he is not omnipotent, for there is something he cannot do. If he can, and is unable to lift said rock, he is again, not omnipotent, as there is again something he is unable to accomplish. My point being here is that god is perceived by most as an all powerful, super-being, which is impossible. it is not possible, nor is it feasible for such an entity to exist. But if you look carefully at society, in this age and any past. Those who question this fact, in almost all cases, are not blinded by religious propaganda, are not force fed misguided views since childhood. Their sense of wonderment is encouraged, instead of stifled, and develop a sense of their surroundings, and the fact that a god has never entered into it.

To quote your sister, Christians, and most other believers certainly do have an answer for everything, even if it makes no sense whatsoever. I have had this experience before. If you ask a Christian to prove to you there is a god, almost every time you will get something along the lines of "read the bible, it's all in there". I have a huge problem with this. The bible has been translated, and re-written so many times, that any other book in existence would have been cast aside as false, yet this book is guiding the lives of millions. Also, if you propose to them the fact that no matter how much you pray, act, call upon, etc.. the "Lord", you will never get a response. Again, the most common response is "thou shalt not tempt the Lord". Basically, no matter what you do, you will never see/hear/smell/touch or otherwise be granted any proof of existence. That is such a blindfolded view of life, it's almost sickening. Believing in a blade of grass makes more sense to me. At least there is physical, spiritual, and any other kind of proof you need of it's existence.

Religions are based on blind-faith, false prophets, and empty promises. You go to church, you are told what to believe, how to act, when to act, what to do, and what not to do. Like sheep you are herded and controlled until you die. Upon that you will realize (technically you wont, as you're dead) that all you have believed your entire life was false.

There is no Heaven, no Hell. No God or Devil, Angels or Demons. They are all perceptions given life by a society unwilling to accept the fact that there isn't a hand guiding them. That there is no guardian angel watching over them. You are alone. The fact that millions of people are unwilling to accept this blatant truth of life is bewildering to me.

I could go on, but I need some sleep.

TaNDy

TaNDy (Twitter Notification Daemon) is a notification daemon that reports on system status to you via Twitter direct message (DM).

Daily report:

  • CPU load average
  • memory load average
  • disk I/O average
  • disk usage
  • up-time

Real-time report:

  • available updates
  • process status change (specified)
  • dramatic load spikes

This page will be updated as I add ideas. It is as yet, vapourware. I repeat, THIS SOFTWARE DOES NOT YET EXIST. I'm just recording ideas and collecting opinions for now.

My Drupal modules

Just thought I'd share with everyone all the modules I'm making use of here on my site since I've had a few people asking.

List of installed modules below:

Drupal automatic upgrade script

I got tired of always manually upgrading the necessary files for my Drupal installation and then copying the config back over. So I've automated almost the entire upgrade process with a shell script. All that I must do myself now is put Drupal into maintenance mode.

drupal_upgrade.sh (Don't forget to make it executable: chmod +x drupal_upgrade.sh)

Note: The script assumes that it and the extracted update is in the next directory up from Drupal. Don't forget to set the Drupal directory variable. Also, obligatory "I'm not responsible if you hose you database/Drupal install". TEST THIS SCRIPT IN A SAFE ENVIRONMENT FIRST.