Blog

Moving a Subversion Repository from one Server to Another

05.09.2007 at 21:17

Today at work i had to move a SVN repository from my local virtual server to another company wide accessible one. The following worked quite well.

svnadmin dump /path/to/repository > repository.dump

Then optionally compress the resulting dump and transfer it to the other machine via preferably with scp. On the remote machine do the following:

cd /path/to/new-repository
svnadmin create repository-name
svnadmin load repository-name < repository.dump

By the way, you probably ask why we don't use a modern distributed version control system. The answer is that most development actually still happens within CVS (*outch*) and we are a near windows-only shop so TortoiseSVN comes in handy for most peoples here who are too scared to actually touch the command line.

PS: yes i should blog a bit more, but had to do other real life(tm) things recently hope this improves over time.

So long, Marc

read more comments

Pixy a XSS and SQL-Injection Scanner for PHP

28.06.2007 at 14:46

LWN mentioned Pixy a XSS and SQL-Injection Scanner for PHP which looks quite interesting.

From a quick overview over the project page, it seems that it uses data flow analysis to mark potential insecure sections where external variables are used without care and prior data validation.

Didn't really test it though and therefore don't know about false positives and so on. But it is certainly worth a closer look, unfortunately I currently don't have time but who knows maybe someday when PHP5 is supported it will become handy.

Marc

read more comments

Creating a new GPG-Key

27.06.2007 at 10:51

Today I created a new GPG key pair, here is a short description of this procedure, just in case I have to do it again.

Run

gpg --gen-key

and answer the questions should be fairly straight forward. At the end your key-id which uniquely identifies your key will be printed. Use it to create a revocation certificate, just in case your private key will be compromised.

gpg --output [email].revoke.asc --gen-revoke [key-id]

Then export your public key which you can distribute to your friends.

gpg --armor --output [email].pub.asc --export [key-id]

I would also advice you to export the private key and store it in a secure place.

gpg --armor --output [email].sec.asc --export-secret-key [key-id]

As a final step send your public to one of the many key servers so others can fetch it and encrypt documents with it.

gpg --keyserver wwwkeys.ch.pgp.net --send-key [key-id]

The key server are constantly synchronising under each other so after some time your key should be available to others. Do a quick search to check this.

gpg --keyserver wwwkeys.de.pgp.net --search-keys [email]

Marc

read more comments

VBA Hurts - A Lot

18.06.2007 at 15:28

Today I had to make some changes to an in house macro and it just reminded me of the fact that VBA causes brain damage. I really dislike this language and try to avoid it as much as I can. An example of it's stupidity is the fact that it uses the same operator for both assignment and comparison. Then the VBA standard library is just too poor, there doesn't seem to be a method to remove all objects from a given collection which results in self made solution like the following.

Do While mycollection.Count > 0
	mycollection.Remove(1)
Loop

Enough ranting for today, hope you don't have to use this crap.

Marc

read more comments

Disabling the Macbook Startup Sound

09.06.2007 at 11:13

When you start a macbook you hear a kind of control sound (beep) which means the hardware check was ok. This sound is pretty annoying even more when you start your laptop in a public room and suddenly everybody is looking at you. After some research I found out that Psst (a Mac application) allows you to disable this startup sound. So happy booting, without disturbing everybody around you.

Marc

read more comments

<< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 >>