Archive for March, 2008

Apache and redirecting a url

Wednesday, March 26th, 2008

This is a quick blog for me to remember how to do a proxy in apache:


<VirtualHost *:80>
ServerName www.someurl.com
ServerAlias www.someurl.com
ServerAdmin someone@someurl.com

ProxyPreserveHost On

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://999.888.777.666:8080/
ProxyPassReverse / http://999.888.777.666:8080/
</VirtualHost>

RMI File Server

Sunday, March 23rd, 2008

For a project of mine, I have been using Java RMI to separate my client and server. Now RMI is really cool to transport Java objects for communication, but I have been wondering if I can transport file over RMI. Now I know we can start a flame war over RMI as a file transport medium and I know very well that I can use FTP, SCP, SSH, HTTP and you name it, but I wanted to use something easy short and which fits into my application seamlessly.

To solve this problem I decided to find out how I can actually transport a file over RMI. Small files are not really a problem, just load them in as a byte array and then serialize them over RMI, but you don’t really want to transport multi megabyte files in this way. The larger the file gets, the larger the memory needed just for transportation so I just decided I’d build a session and then transport the file in chunks.

While googling for a solution I came across a few other people trying this, so I decided I’d just blog about it and post my code as well. If someone can use it, then that makes me happy =))

Easy to use:

  1. Untar to a folder
  2. run “compile.sh”
  3. run “runserver.sh 192.168.1.1″ on the server
  4. edit “config.xml” on the client and set the address and the other options
  5. run “runclient.sh serve.txt” on the client and you will get the test file “serve.txt”

That’s it.

Have fun.

eitch

RMI File Server

Update: fixed link to file

VMWare 6 and Ubuntu Hardy: vmmon compile error

Wednesday, March 19th, 2008

Just a quick post to documentate how I got my VMWare config to work:

Problem: include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly, and vmmon-only compile failes

Solution: change line 74 in vmmon-only source file to read: #include “linux/bitops.h”

Steps:

  1. cd /usr/lib/vmware/modules/source
  2. cp vmmon.tar vmmon.tar.orig
  3. sudo tar xvf vmmon.tar
  4. cd vmmon-only/include/
  5. sudo vi vcpuset.h
  6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”
  7. rm vmmon.tar
  8. sudo tar cvf vmmon.tar vmmon-only/
  9. sudo rm -rf vmmon-only/
  10. sudo vmware-config.pl

That’s it, the compile will work now and vmware should be usable as normal
eitch

Planet Terror: The Grindhouse chill

Monday, March 10th, 2008

Planet Terror

Oh boy… so I just got from the couch after watching Planet Terror. Before I start about the movie, let me tell you, that I was told, by my best friends, who were real nice to me, and stole, the DVD from my apartment without telling me, that the movie was like the worst shit they ever saw, so now here is my way of seeing it:

No doubt, Rodriguez loves his gore. You definitely get enough of it to see. The movie was made to fit into the Grindhouse style, which Tarantino in a way brought back to life with Death Proof. I find, that Rodriguez sadly failed in that. The movie just doesn’t really have that dirty look on it, the way Death Proof does, but there is no doubt, that the movie is way cool. The story is quite simple, Zombies come, people metamorphose, and of course lots of blood and guts get spilled. In that sense it is a really great movie as Rodriguez does it in such a way, that the movie is actually fun. Even though Rodriguez added this weird character who has to chop off balls, yeah you heard right, testicles of people who fail him, even that part is funny, although I suppose all guys will find their hands covering there groin…

Where Rodriguez definitely failed, ist in trying to give that Grindhouse flair. The movies comes just far too clear over. He did add those lines which are supposed to make the movie look like it’s run on some real old cellulose film, but it just doesn’t really do the trick. It still seams just too clear and too new. At one stage he actually even added a film burn, that looked quite cool and really DID piss off the viewer, but it left the right mark =))

All in all, if you’re looking for a Rodriguez style blood and gore shoot’em up, then you are at the right address with Planet Terror. The music is really fine, gives it the right tone, but we all know Rodriguez does that right, after we have seen From Dask Till Dawn…

All I can say is: Rodriguez, let Tarantino do the Grindhouse, keep to the blood and gore =))