Posts Tagged ‘svn’
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 = 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
Tags: 256 mb ram, cloud hosting, cpu, downtime, java, java server, jsp, memory, mysql, new server, php, php mysql, ram, server, server solution, shared hosting, svn, tomcat, virtual server, vps, vps.net, website
Posted in Computers, General | No Comments »
Thursday, February 12th, 2009
I got all my websites checked into Subversion (SVN), and usually scp them from my desktop to the webserver. But sometimes I edit the pages directly on the server.
So to keep changes from being lost, I decided to just have a checked out version of the page (svn) on the server as well.. To keep things in sync
But for some reason I don’t want people to snoop in my .svn directory. I googled but did not find any immediate solution, so here it is, a quick fix for anyone who might have the same “problem”.
Hide .svn directory in resin webserver
(also works for cvs or anything else you don’t want resin to give those greedy users)
just add a rewrite rule for the host in the resin configuration file (resin.conf), this prevents the webserver from letting anyone into the directory (or viewing svn/cvs files).
Here is my config file:
<host id="www.trekwar.org" root-directory=".">
<host-alias>trekwar.org</host-alias>
<web-app id="/">
<document-directory>webapps/trekwar.org</document-directory>
</web-app>
<rewrite-dispatch>
<redirect regexp="\.svn" target="index.jsp?msg=keep+away+from+my+svn+directory"/>
</rewrite-dispatch>
</host>
Tags: code, configuration, cvs, jsp, programming, resin, server, svn, webserver
Posted in Computers, General, programming | No Comments »
Monday, October 20th, 2008

I’ve been trying out Mozy for backup for a while (the free version limited to 2GB of storage).
I recently upgraded to the mozyhome edition, it’s only 5$ each month for unlimited storage, but only for ONE computer.. And since I’m cheap and there is no Linux client, I just mirror the things from the server I have to back up in a directory on my windows PC (SVN repository, postgres database, web server config/logs/etc).
Uploading the initial data (22 GB) took around 3 days, but the incremental backups are much quicker.
I like that Mozy stores several versions of the file, so I can roll back to a specific date. They only save the different snapshots of files for a month, but for the important stuff I have SVN which lets me do unlimited rollbacks anyway.
update April 27th 2009
I recently managed to corrupt a 30 MB file and had to restore it. unlike the upload of the data, restoring it (downloading) was extremely fast, got around 6 MB/s download speed
update April June 6th 2011
Mozy stopped with the unlimited plans, making me get a 125gb plan at twice of what I paid before. So obviously I’m switching to CrashPlan when my mozy account expires. The Crashplan client is much better (allows it to also back up to a local drive, or at a friends computer), and they offer unlimited upload at the same price as mozy 50 GB.. They also have a family option that includes up to 10 computers. It also seems like you can install mozy on both your stationary computer and laptop, and have the laptop backup stuff to your stationary computer, which then backs up to the crashplan servers. Also Crashplan supports linux
Tags: backup, crashplan, database, linux, log, mozy, postgresql, rollback, server, snapshot, software, svn, technology
Posted in Computers, General | 2 Comments »
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:

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

Tags: aircraft, asteroid, austria, bug, computer, fleet, game, gui, java, laptop, map, paint, planet, programming, queue, screenshot, server, ssh, structure, svn, trekwar, trip
Posted in Computers, Games, General, programming, Traveling | No Comments »
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.
Tags: computer, cvs, cvs2svn, eclipse, programming, server, software, ssh, svn, technology, tortoisesvn
Posted in Computers, General, programming | No Comments »