Archive for the ‘Computer Science’ Category

Automated Unrarring

August 3rd, 2009

So, I had a pack of National Geographic TV Episodes — but each one is packaged in little rar packs. In general I have to unrar the files, and remove the pieces. But since there was a folder of like 100 of these episodes I wrote a python script to do it for me! (:

It’s very rudimentary, and probably mostly inefficient –> for example, I didn’t know if there was ‘contains’ method so I just run through a for loop to find the right file. (:

This will remove everything but the avi file that remains once the unrarring is complete. a real time saver for me! (:

You will need this python module to use winrar: it’s by ‘chilkat’ –> http://www.example-code.com/python/rar_unrar.asp
» More: Automated Unrarring

Command Line anywhere

June 30th, 2009

This is a neat little registry edit to allow you to have a “CmdHere” option when you right click either in a folder or on a folder.  After clicking “CmdHere” you get a command line that is located in that directory.  No more going from C:\ to Documents and Settings to .. etc .. etc.

http://www.commandline.co.uk/cmdhere/cmdhere.zip

Installing RocketRaid 2220 On Ubuntu Server 7.1

December 29th, 2008

This is my choice of installation, because I’m familiar with the kernel change process, you are free to do any of the others.

[FROM THE README]

#############################################################################
3. Using the driver as a kernel patch
#############################################################################

You must have a full kernel source tree to use the driver as a patch.
To patch a kernel source tree, run the command

# cd rr222x-linux-src-1.xx/product/rr2220/linux/
# make patchkernel KERNELDIR=

For an unconfigured 2.6 kernel source tree, include/linux/version.h may
not exist so you should add “KERNEL_VER=2.6″ to the command:

# make patchkernel KERNELDIR= KERNEL_VER=2.6

Then you can configure the driver into kernel during the kernel
configuration process (e.g. “make menuconfig”). It is listed under
scsi low level drivers.

Below is an example to make and install a kernel with the driver built-in:

# cd /usr/src/linux-2.6.22
# make menuconfig

Select “Device Drivers —>” and press enter.
Select “SCSI device support”, then press ‘Y’ to make it built-in.
Select “SCSI disk support” then press ‘Y’ to make it build-in.
Select “SCSI low-level drivers —>” and press enter.
Select “HighPoint RocketRAID 2220 support” and press ‘Y’.
Exit and save the kernel configuration.

# make
# make modules_install
# make install

Then you can reboot from the new kernel.

I actually don’t own this server anymore, but I figured I’d post this from the drafts section.

Good luck and Cheers.

Quadrowulf Page is Live!

August 28th, 2008

I’ve finally compiled it from Word — word is so lame.

On my own codes I got a 3x speed improvement. — neat!

Anyway — CHECK IT OUT!! The link is up at the top.

GO HERE –>>>>>>>>>>>> http://www.humanumbrella.com/quadrowulf/

Quadrowulf via Pictures

August 5th, 2008

Check it out!!!

http://picasaweb.google.com/humanumbrella/Quadrowulf/

Cheers

–Justin

Quadrowulf Custom Beowulf Cluster TEASER

August 4th, 2008
weeeeeeeeee

weeeeeeeeee

PHP: HTTP Authentication With Cookies

August 3rd, 2008

Phew this has been a big day of posts (:  — I told you it was coming!!

This will be the last one for today – but there will be a HUGE conglomeration of a post/page about the cluster I built and am finishing building software for this week.

Anyway, here goes the post on HTTP Authentication w/ PHP.

» More: PHP: HTTP Authentication With Cookies

Animating a Surface Plot in IDL

August 3rd, 2008

This is just to document what I’ve already given back to the IDL user community.  It is a modification of Dr. David Fanning’s, at www.dfanning.com, fsc_surface.pro.

Essentially, Dr. Fanning’s plotting program allows you to pass in data and parameters to create object graphics representations of data – mostly surfaces, as the case may be.  I’ve modified it quite a bit for the project I was involved with this summer — IDLWave.  It now switches from Surface to Line to Spherical surface plots all based on the data that is passed into it.

» More: Animating a Surface Plot in IDL

Wireshark Quick Tutorial (Useful for post PHP: HTTP Authentication)

August 3rd, 2008

I’m going to show you a little bit of how to use a software application called Wireshark — which was formerly known as Ethereal. It allows you turn your Ethernet/wireless adaptor on “listen” mode, and you can watch packets as they go to and from your machine. I’m not getting this into a huge networking discussion, but just realize that there are little bits of information called packets that go to and from machines as you do things on the Internet.
For our purposes, we will be concerned with the transfer of packets between two machines in particular, your machine, and the machine of the webserver where your favorite website is hosted.

» More: Wireshark Quick Tutorial (Useful for post PHP: HTTP Authentication)

Cropper: Quick and Dirty Windows Screen Shot/Capture Tool

August 3rd, 2008

Cropper, created by Brian Scott in C# is THE tool I’ve been needing for YEARS. I’m so glad I found it!
Anyway, normally when you wanted to show someone something you had to:

  • Take the screen shot/capture
  • Open an editing program [ I used -> windows key + R, then type "mspaint" then enter ]
  • Paste the capture into the editing program [ CTRL+V ]
  • File -> Save As, Choose PNG, choose location
  • Done.

With this application it’s

  • Make the window the right size
  • Double click

» More: Cropper: Quick and Dirty Windows Screen Shot/Capture Tool