Windows has taken my drive hostage…

Why has windows taken my drive hostage (sorry… my so called ‘Generic Volume’)? Who knows, all I know is that I had problems getting it to recognize the drive (my guess is that the usb port is bunged up… Now about 6 hours after I finally managed to get it plugged in and recognized by Windows (or Ubuntu for that matter…) it will not release its hostage. Very annoying. (On a side note, why hasn’t wordpress hijacked the ctrl+s command yet for posts… I am so used to it in google docs that it has become natural for me to hit it… then firefox tries to save the page). Hopefully the hostage situation can resolve itself peacefully with out me resorting to

format c:

Another strange thing is that I have been recieving emails from Rogers. Ya… Rogers… whoopee, 1 Mb/s connection for 35 bucks (where you rarely get above 100 kb/s)! They say that my online bill is ready for viewing… so I go there, I can’t remember my password, fortunately they do not encrypt their passwords, so they can send it to me (ok, yes they encrypt them, but its one of those two way ones where if someone got the key they could get everyone’s passwords… hash with a salt people!). Good, so I sign in and I see that… no… my bill is not available for viewing. I am apparently not even signed up for the Internet…? Or something? Maybe?

Oh, and if you are looking to get a huge spike in your blog traffic, post something on giveawayoftheday.com that says that you have an equivalent thing but its free all the time instead of just that day. Bingo 1000+ viewers.

I should put up ads..

Alternatively you could post that you hate KDE4… I might do that a bit later…

Batch Editing Photos with Phatch

My dad was looking to edit some photos to be able to send more than just a couple through email. He needed something simple, all he really wanted to do was either lower the quality or shrink the image (make the file smaller than the 2 mb that it started as). The other requirement was that it runs on his eeePC which is the linux version.

There were many options out there, and eventually he did settle on something that was already on the system (what appears to be an equivalent to MS Paint). I however found something way more interesting to play with. It is called Phatch (cleaver name eh?). And yes, it works on Windows too (since Kris was complaining about her large number of overly large photos).

The interface is simple, and I am sure that even a trained monkey could use it, so there is no excuse not to try it out. Well… maybe if you are on a mac there is already a program for this seing as it is monopolistic and all, or you are still running dos or something silly like that… no… wait, you can use the command line too, nevermind… even you DOS traditionalists can use it (ok, don’t quote me on that one, I don’t think it really works in dos… but seriously, upgrade your system). Infact, as I write this post I will be installing it on vista (here’s hoping that it works, or I will look like a dummy (more so than usual)).

First you have to get Python from here. Or if you are on Linux you probably already have it installed (or use apt-get install python). For some reason python does not add itself to the path variables in Vista (not sure about other versions of Windows). Thats not a problem though because python associates all of the .py files with python so all you have to do is double click them (booya!).

Next, you need to install wxPython (Python bindings to the wxWindows cross-platform toolkit) from here. For Windows scroll down and find the one that is suited for your version of python (2.5 is the latest one as of this post) you will most likely want the Unicode version (as it says on the page). Then I am asuming at the end of the install process you want to leave everything checked except the viewReadme (unless you will be using it to write software).

Finally if you want to install pil (Python Imaging Library). Which is available here. Once again, download the one for the version of python that you downloaded (pil 1.1.6 for python 2.5 for me). Install that (there were some “could not create file” messages for me, but we shall see what happens). It all works by the way.

If you are on Linux there is one more step and that is to install findutils. Which is apparently used to add search functionality to programs.

On ubuntu all I had to do was download the .deb file and install it from there.

Now you are ready to install phatch from here (at the bottom of the page beside the number 2).

Ok, moment of truth, I am downloading it, and I will try to install it as soon as I unzip it (if you cannot unzip the file get 7zip and you will be able to do so no problem. Inside the unzipped folder there is a folder called Phatch, this is where the program is run from (mine is at C:\phatch\phatch). And here is the running program:


Moving on…

Once you have what appears to be a working program you can start the magic. Click on the plus sign like it tells you to (see what I mean about monkeys?) and you are confronted with this screen:Phatch Actions

This screen contains what I can only assume are the “most common actions” that the author of the program uses. If all you are doing is changing the size you are fine. So, click on Scale and you are given the options for that action as you can see here:

Scaling options

Each one of the rows that you see here (the last one of which is highlighted in blue) is clickable and editable. In the image I have left the standard settings but you can change them if you want. Once you have chosen all of the things you want to do to the images (or image) add a save action to the end (if you forget phatch will remind you (I think)), choose the options for saving it. Where you want to save them, what you want the files to be called, the type of file (I suggest png as it is quite portable and has really good quality). Then click the play button (Execute the Action). You can actually just leave it all alone and it will automagically use the same file type, and create a folder with _phatch on the end. The end result will be a new folder in the location that you decided full of your creations. Beautiful.

But, we are not done! Thats right, there is more. Once you are happy with the result of all of your tinkering, you can save your Action list for later. If you want to be even more creative, you can do File -> Export -> Action List Droplet. This makes an executable that will carry out all of the actions that you have used in this action list. This means that you can send your action list to a friend and tell them to drag and drop a folder onto the executable and they will get the same fun actions done to their photos. Apparently it just links phatch up to your script and runs a windowless version of python. I think I prefer to just open up phatch and drop a folder on it instead. You need to install the Python Win32 Extensions (which can be found here the one in the big green box) to be able to do this. You might have to restart Phatch after you install this. I am about to find out. The answer appears to be yes.

Here is my Cool Action List Droplet. Try it out!

Apparently it needs python to run, but mine cannot find pythonw. Fortunately this is easy to fix by adding python to your path variables.

Control Panel -> System -> Advanced (Settings) -> Environment Variables (at the bottom)

Look in the System Variables box (the bottom one) for the variable called Path select it, click on Edit and add:

;C:\Python25

To the end of it. Click Ok and then close all of those windows. You should be good. Though apparently mine is still not for some reason. Oh well, all I have to do is look for pythonw (which is in the python folder (C:\Python25) and click it when it asks me to and all is good. I am not really sure why this is a problem (probably a different version of python than this was written with), and I am not about to fix it myself seing as I do not know python. I might inform the author of this small problem though.

Oh ya, and if you want to share with your friends that are not on Windows you can just send them the .phatch file. Like so.

Here is the end result of my phatch file if you don’t want to try it out.

Update your software!

Since Linux is so good at checking to see whether or not something is out of date, you would think that there would be a program for Windows that does the same… None that I know of, but there is a website that will do a quick scan of the software you have and then it will tell you whether or not it is out of date and it will also tell you how to update the programs that are out of date.

Apple have released V7.2 of QuickTime that patches eight serious flaws in the product the worst of which could allow your computer to compromised simply by watching a specially crafted QuickTime movie. If you QuickTime version number is less than 7.2 then please update now. Adobe has also released a patch for its highly popular Macromedia Flash plug-in. This fixes flaws in Flash that, like the QuickTime flaw, could allow your computer to be compromised simply by watching a malicious Flash movie. According to the Adobe bulletin the flaw affects “9.0.45.0 and earlier, 8.0.34.0 and earlier, and 7.0.69.0 and earlier.” These flaws are serious folks; update immediately.

http://secunia.com/software_inspector/?task=load

Vista

Is a crater in Brazil… It may have helped kill off the dinosaurs