Archive for the ‘Computers’ Category

Lady Java (Javazone song)

Friday, August 13th, 2010

Check out this awesome music video for JavaZone

I guess we CAN make cool music that’s not Black Metal. Haven’t felt such a surge of patriotism since the good old days.

The song says what I’ve been saying for years (except I’m usually not as polite): “Some people prefer other languages, and that’s OK if you’re retarded I guess”

Guild City

Saturday, July 10th, 2010

I was inspired by Dani’s The Guild mashups, and wanted to make one of a Sin City poster/dvd cover.. Instead I ended up with a Sin City inspired wallpaper.

The Guild wallpaper
Click to view 1920×1080

Since this was originally supposed to be a mash up of the movie poster, Clara was to be edited in last. However as I changed my mind in the middle and made a desktop background, the element where she was supposed to be did not work well for a wallpaper.. And adding her in with the rest of the cast would at this point mean making the whole picture from scratch :/

10 points to the first who spots the little “photoshop disaster” :)

Google analytics (Big tits!)

Monday, June 7th, 2010

I love google analytics*, it’s great and awesome in all sorts of ways that I won’t go into right now, instead allow me to present some funny search queries that have all somehow led people to this blog.

*For those of you who didn’t know, Google Analytics is a way to know how many people visit your website, what they search for, or where they come from, etc…

variations of “stargate universe sucks” - 1100 hits
variations of “new star trek movie sucks” – 1800 hits

So far so good, at least there are a few people out there with good taste, but it is when you get down to the more unique searches, those with only a few hits that you find the weird stuff.. Apparently even tough Stargate Universe sucks, somebody on the show has huge (or big) tits :D

Stargate universe big tits - 13
stargate universe girl with big tits - 6
“stargate universe” “big tits” - 2
big tits on sgu - 2
big tits stargate universe -3
girl with big tits on stargate universe - 1
actress with the huge tits on stargate universe - 1
who is the girl with the big tits on stargate universe? - 1
biggest tits on stargate universe - 1
chick with huge tits on stargate universe - 1
sgu stargate universe big tits - 1
star gate universe big tits - 1
stargate universe huge tits - 1
sgu kills off big tits?- 1
stargate universe chick with huge tits- 1
stargate universe chick with big tits- 5

I can only assume they are looking for pictures of  Julia Benson:

Hmmm. I just realized that due to it’s questionable content, this post will undoubtedly attract more hits from people with nothing better to do than googling for Julia Bensons boobs..
So I might just as well throw in another picture, I’d hate for people to leave here empty handed.

Some other weird searches with only 1 hit

why do the shields on the enterprise suck?
– I have no idea, the real question is why would somebody write that phrase in a search engine?
mexican knick knacks
– I bet this guy was especially disappointed with my blog :(
why are everyone in stargate universe morons?
- I… Don’t… Know…
all video editing software sucks and makes no sense at all
- You should stick to pictures, they are simpler to wrap your head around
best brand donkey balls chocolates
- I’m afraid to even comment on this one :(
fedcon convention swine flu
- Hah! I see I was not the only one worried about swine flu duing fedcon 2009. Not so much worried about catching it, as guests not showing up
feed trondheim
- I’m definitely going to be keeping an eye out for starving children
jello shot launcher
- Let me know if you find one!
ms paint police
- These guys should have a SWAT unit!

Oups

Monday, March 15th, 2010

While cleaning up in the core classes of Trekwar yesterday (documenting functions, formatting/structuring code, minor improvements) I also saw lots of equals(Object o) methods. And in my infinite wisdom I decided to use generics since it is used pretty extensively throughout the code anyway, so I changed basically all the equals methods.

example:

public boolean equals(Object o) {
        if(o instanceof Structure)
            return equals((Structure)o);
        return false;
    }

was changed to:

public boolean equals(Structure s2) {
        return name.equals(s2.getName());
    }

Now this is not a problem when writing code, as you pretty much always compare objects of the same type. However, the code also uses the Java Collections contains() method a few places, and it always uses the equals(Object) version. So when my classes no longer provided this method, the default one inherited from java.lang.Object was used instead. This caused a strange array of bugs to appear (star systems on the map not shown with faction color/icon except for the Cardassians for some strange reason, users not having any technologies, unable to build any structures, generally erratic behavior, etc..). Luckily I discovered the cause pretty quickly and only wasted about an hour or so on this :)

I guess the lesson is that objects that needs to be compared, directly or indirectly by contains() or other methods, should always define an equals(Object) method that just passes the call along to the equals method written with generics.

public boolean equals(Object o) {
        if(o instanceof Structure) {
            return equals((Structure)o);
        }
        return false;
    }

And perhaps that you should not mess around with your code for hours on end without stopping to test if you broke it once in a while :)

Debug poem

Thursday, March 11th, 2010

Today I wasted two hours locating and fixing a trivial bug:

“Spent hours debugging my code, fixing hacks
but somehow mistook Math.min() for Math.max()”

Today I wasted 5 minutes trying to think of something that rhymes with “Math.max()”

Monkey Island 2 – Lechuck’s Revenge

Thursday, March 11th, 2010

I just got the piece of gaming news I’ve gotten so far in my life:

Lucasarts is releasing a special edition of the best adventure game of all time (Monkey Island 2: Lechuck’s Revenge) this summer :D

http://www.lucasarts.com/games/monkeyisland2

Trekwar cargo system

Sunday, March 7th, 2010

Today I mostly finished the Trekwar Cargo system, so now it’s possible to collect resources and bring them back to your starsystems.

Also included 4 images from the design and implementation of the UI:

Read full devblog post at trekwar.org

Using VPS.net

Monday, March 1st, 2010

I recently moved all my php sites to a new server, about a month ago, and had previously used VPS.net for my jsp/svn/etc.. server for quite a few months.

Running tomcat and sql + a few other things have used up almost all the memory on my java server, so I was thrilled to find a mail from vps.net in my inbox today, stating that they will upgrade all nodes from 256 mb ram to 375, and add 200 mhz cpu :)

On VPS.net you create your own virtual server which is made up of 1-18 nodes (1 node = 375 mb ram, 600 mhz cpu, 10 gb disk). So it’s very easy to make new machines, or upgrade an existing one by adding more nodes (then just restart the virtual server). 1 node is just 20$ per month, there are no sign up fees and you can cancel at any time (1 node will be able to host a good amount of http/php/mysql content).

UPDATE 2012

I’ve moved my main server from VPS.net due to lots of SAN problems, causing the server file system going read only and making it require a manual reboot. Over the last 6 months, my server has required me to manually restart it around 5 times. And getting a server with lots of memory is ridiculously expensive on VPS.net.

I still have 1 node that runs my php stuff (mostly wordpress), but would not really recommend vps.net for anything more than that. I’ve been very happy with my dedicated server at Hetzner, and might move my php stuff there as well, since they also have VPS solutions which have more resources and cost less than vps.net.

Google maps API

Tuesday, February 23rd, 2010

I was checking out Sven’s page, and found his awesome map of trails (“greenlanes”) in his neighborhood.

I have my own map, but this is on my google maps, so not really very user friendly or manageable, so today I decided to try and use the google maps API.

I’m pretty pleased with the result, a single .html file with almost only javascript. Now I can just export the paths and add a single line in the .html file and the new track will be added to the maps and menu. I’m going to add sorting of the tracks by difficulty, length and maybe based on their distance from Trondhiem sometimes later.

The page is very easy to use, and if you want to make a list of tracks (or any form of lines), just check out the page source code which has 3 simple instructions on how to get it working

I probably won’t be adding many tracks until around the start of May.