Posts Tagged ‘ssh’

Programming in Austria

Sunday, June 15th, 2008

I’ve had this post as a Draft ever since I came back from Austria (which is a weird-ass country by the way), mainly due to the fact that I managed to change ssh port on my server without changing the firewall :)

So I finally connected a keyboard and screen and set everything up the way they was, which meant I could commit the changes I did to the Trekwar game to the server, and get them on this computer and grab some screen shots.

Friday
It is now possible to move your fleets around the map, Client allows you to press the tile the fleet should move to and then tells the server to move the ships.

Saturyday

Fixed a bug where the local copy of the move orders where not updated properly, implemented the starsystem controll window:
Trekwar System View

Sunday
Implemented build orders, now possible to build structures on planets. Queue not implemented yet.

Airplane
On the airplane back home I implemented the asteroid belts (high-altitude programming is fun).
Notice the beautiful asteroids drawn in mspaint on my laptop’s touch pad :)

Trekwar galaxy map with asteroid belts and fleet movements

I hate computers

Friday, June 13th, 2008

Goddamn screen, or graphics card.. or both..

I had to connect my Samsung Syncmaster 225bw to the server so that I could change the ssh port back to normal (had changed ssh port, but did not change the firewall, so I was locked out from connecting to it).

The monitor has been connected to my desktop computer using DVI, but I had to connect it to the server using VGA. However when connecting the screen back to the desktop the screen would NOT work using DVI, it only worked in safemode.. I tried lots of crap, searched lots of forums but nothing there worked. In the end I had to boot in VGA mode (640×480) and remove and reinstall the nvidia drivers..

Now everything seems to work fine again, except I lost 1-2 hours of my life (and maybe a week indirectly by the stress, anguish and hatred towards monitors the event caused me).

SERENITY NOW!!!!

Sailing in bergen

Saturday, May 3rd, 2008

I was in bergen two weeks ago, doing part 1 of getting my sailing certificate.

Friday 06:00
For a man who woke up at 04:15, I feel remarkably… like myself :)
The buss from the city to the airport took around an hour, I’m now at gate 41, and got like 10-20 minutes
before boarding starts.
bah time for boarding.. I barely had time to start up eclipse…

Friday 09:00
The flight only took an hour, and the buss in to the city took 30 minutes.. then 15 minutes to find the hotel.
Would only have been 4 minutes If I had brought a compass :)

Friday 13:00
The hotel is pretty nice (P-hotels.no), and I just slept for a couple of hours (which I sorely needed), and woke up
at 12:00 by the pizza being delivered to my room.
The sailing doesn’t start until 17:30, the only thing I have to do by then is to buy some shoes I can sail in
I only brought my flipflops, and thankfully the weather report seems to be accurate, and the whole weekend
should have sunny weather.
The hotel only has unsecured wireless network, so I’m currently ssh’ing to my server and using bitlbee + irssi
to be on msn. Thank thor gmail is availible trough https :)

Friday 22:00
Just got back from the sailing, it was just a quick run outside bergen where we got to know the boat and
did some basic stuff like setting sail, and such..

Sailboat 2

Now I can stay in bed and watch an episode of Six feet under at the same time as stacy watches the same episode
back home :)

Saturday 20:00
I got to the sailing at 10:00, and we practiced parking the boat by the dock a few times, then we
headed out and did some sailing outside Bergen..

Sailboat

Sunday

Today we got some wind and where probably sailing at around 5-6 knots at the top.

sailboat 3
When I got back to the hotel I had some pizza for dinner, I bought it from an Italian place just next to the
hotel, and it was 10 times better than the pizza I had last night (and 1/4 of the price). Dolly dimples sucks
like a neutron star.

Pizza

I hit the sack pretty early, as again I had to be up at around 05:00 for the flight back to Trondheim.

Bye bye tomcat

Tuesday, April 8th, 2008

I’ve been using tomcat for quite a couple of years now..

But when making working on a registration page for a “ferret show“, I got so goddamn fed up with two things:

1) Each time I recompiled some of the background Java stuff (beans + database manager) I had to restart the server after recompiling

2) OFTEN after recompiling, for no frakking reason whatsoever. Tomcat would bitch about being unable to find the postgresql driver, even though it was in the common/lib as well as the webapps lib directory..

The second issue would sometimes take 5-10 minutes of removing the file, moving it back, restarting the server, removing work/tmp dirs, before it suddenly and miraculously worked again.. So I finally had it, and downloaded Resin and had it up and running in a few minutes.. Copied over the webapps, and now everything works nicely, and I never have to restart the webserver.

I’ve had some experience with Resin from my previous workplace, using the java php implementation and the JMS system. And Resin seems to be pretty nice, and switching from Tomcat to Resin only took a few minutes.. Did not tweak the config much and set up SSH, that will have to wait for the weekend :)

Bye bye CVS.. Good morning SVN

Tuesday, March 25th, 2008

After years of faithful service, I made the change from CVS to Subversion (SVN). I installed SVN on the server, and set up the SSH keys on my desktop and got up TortoiseSVN and SVN for eclipse. I used cvs2svn to copy over everything from CVS to SVN (which required about 1-2 hours of removing the Norwegian characters Æ Ø Å from filenames from misc. schoolwork). I like TortoiseSVN much more than TortoiseCVS, but I’ve had some problems with checking out stuff into eclipse. Seems like I have to check in everything as eclipse projects for it to work straight away. I notice that SVN seems a bit slower than CVS (when using it with SSH and pre-authenticated keys), if it becomes a problem then I’ll just install SVN on my windows desktop and mirror the repository on my server.