Archive for the ‘Computers’ Category

Coloring stuff

Wednesday, August 18th, 2010

Seeing that I got nothing better to do, I finished up a half done project of mine the other day.

I wrote this program mostly just because I was messing around with different pathing/filling algorithms and the Java PixelGrabber class.

The program lets you color different motives (animals, people, vehicles, etc..) and I’ve probably spent more time coloring dogs and bunnies than actual programming :)

Kolor with Kribsy

Download Kolor with Kribsy

Kribsy BTW is a poorly drawn imaginary bunny with self esteem issues and a knack for painting stuff :)

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”

Gulid 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

I love 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 :D

on VPS.net you create your own virtual server which is made up of 1-18 nodes (1 node = 256 mb ram, 400 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).

The server has been extremely stable, fast (the site your on now runs on a single node) and only restarted once, the website it runs is being monitored and have not had any downtime. This is by FAR the best virtual (or even dedicated!) server solution I’ve ever tried, and I would absolutely recommend it for anyone who needs a virtual or dedicated 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).

And if anyone wonders, no I’m not getting paid by VPS to advertise for them :) They’re just so awesome that I HAD to mention it, there are so many crappy hosting / virtual server companies but these guys really are awesome :)