My personal travel blog

Hey, this is my travel blog…

Posted in Uncategorized | Leave a comment

JavaScript Page Scroll Tutorial and Example

Today I wrote a simple JavaScript that scrolls down the page slowly for a certain amount of time, and then goes back up to the top of the page and starts scrolling again.

<script type="text/javascript">
scrolldelay = "";
function pageScroll() {
window.scrollBy(0,1); //Scroll 1px. Makes it smoother
scrolldelay = setTimeout('pageScroll()',50); //Scroll every 50ms
function startScroll() {
scrolldelay = setTimeout('startScroll()',20000); //Repeat every 20 seconds
<body onLoad="startScroll()">
Put body text here

I used this code for a client who wanted a web page to be displayed publicly without needing to have a user do the work.

Let me know if you found this helpful!

Posted in Uncategorized | 2 Comments

Bullet for my Valentine – Fever

Great album for any BFMV fans, or any metal fans.

Posted in Uncategorized | Leave a comment

Windows 7 Review

I will open by saying I’m very impressed with Windows 7. So far, it’s been as quick as XP and feature rich as Vista. They’ve definitely got it right this time. I’m running 7 Professional x86 RTM (Release to manufacture) which isn’t out to the public yet – I got it through the MSDNA (microsoft developer network alliance) as my University is part of that alliance.

The box I’m running it on is a little old – AMD athlon64 3800 with 2gb ram, although I do have a GeForce 9800. I’ve been using XP on this box (I was finding Vista too slow) and I notice that windows 7 is very comparable in speed to XP – quite nippy indeed.

What do I like about 7?

  • The new task bar! It’s quite different to even Vista’s, as apps are organised by icons and you just hover over that app family and choose from the windows available. It’s hard to explain but it’s pretty intuitive.
  • The search indexer isn’t enabled by default – this was a big slowdown in Vista and looks like they’ve learned from that mistake.
  • The user account control is much less obtrusive – I haven’t been compelled to disable it (yet)
  • Libraries – 7 automatically manages all your stuff into libraries. Such as your music library, video library, document library etc. Makes it so easy to find things.
  • All the niceties of Vista (search from the start menu, superkey+tab, organisation of apps)
  • 8.5GB hard drive footprint – much better than the 15GB bloatware that was Vista
  • My harddrive doesn’t work it’s ass off all the time for no apparent reason (unlike Vista)
  • The system is nippy – no unnecessary lags
  • IE8 – can’t flaw it. I only use Firefox because of it’s great addons.

What I don’t like

  • For games that I had installed on XP on another partition (so I don’t need to reinstall after every format) I have to change the folder security settings to allow myself to run the game.
  • Slightly less FPS in games – EDIT: I fixed this problem, I ran windows update and it found an update for my Nforce4 pci-e bus, now my games are as fast as they were on XP
Posted in Uncategorized | Leave a comment

Jägermeister does not make you drunk

A while back I was having a nice relaxing evening with some mates, and we decided we would hit some Jägerbombs. I had 6 Jägerbombs, and one of my other friends had 10 Jägerbombs, in little more than an hour or 2. We found that we were not nearly as drunk as we expected to be, in fact we could go as far as to say that we were completely sober.

Recently I decided that I would put Jägermeister to the test once and for all, I bought a nice big bottle of the stuff and myself and a different friend went at it like Germans on a cold night. I had a couple Jägerbombs, but got bored of drinking so much red bull so I just started doing straight shots. I counted 11 shots including the Jägerbombs, in roughly 1 hour. My friend only had about 5 or 6. We then waited a while for any effect. I felt a slight effect just after doing all the shots, but it soon subsided and my friend and I could swear that we were COMPLETELY SOBER AFTER 11 SHOTS!

I did some digging into Jägermeister and found that it’s made from sugar cane, herbs and spices. It was originally intended as a cure-all (digestive problems, coughs, anasthetic) in the 2nd world war. So it makes sense that it doesn’t really make you drunk because it wasn’t intended to in the first place.

Posted in Uncategorized | 3 Comments

iTunes problem – certain MP3’s not importing to iTunes

Well I just found a weird problem where some of my mp3s were not being imported into iTunes – whether I added the folder or just dragged them in they were not showing up. I tested to make sure they could play in QuickTime and yes they played fine.

I found the problem – the ID3v2 tag was corrupt. What’s an ID3v2 tag? It’s just a little thing in the mp3 that tells iTunes what the name and track info the song has.
It seems iTunes absolutely hates bad ID3v2 tags (whereas every other media player gets by..)

So to fix it you need to re-write the ID3v2 tag. I used Winamp to do this:
– right click the problem mp3 in winamp
– view file info
– ID3v2 tab
– Uncheck “include ID3v2 tag in file”
– click OK

Now you can drag it into iTunes and it should work. Of course you can use some other program to edit the ID3 tag, but I didn’t feel like downloading one (just google for one, there’s millions of them out there freely available).

Posted in Uncategorized | 4 Comments

Explosions and Boobs

This site is awesome!

Posted in Uncategorized | Leave a comment

Pi to 1 million digits

I give to you my avid readers, a little piece of the internet. Or should I say a big slice of pi. You think 3.141592653589793238462643383279502884197169399375105820974944592 is alot of digits? Think again. Here is pi to 1 million digits. Yes ONE MILLION DIGITS OF PI!

Posted in Programming | Tagged | 1 Comment

HalfLife2 Fritzl

Well I’m sure you all know about Fritzl the dude that raped his daughters in the basement etc.


Well it seems HL2 predicted the story…


Posted in Jokes | Tagged , | Leave a comment

Code quality

How do you know if your code is good? Have it reviewed and then record the wtfs/minute:

code wtfs

code wtfs

Posted in Programming | Tagged | Leave a comment