| Windows 2008 64 Bit |
Posted by Chester on Monday Oct 13, @15:12
If you are using ODBC in windows 64 bit .. and need to use 32 bit odbc drivers which a lot of them are, then make sure you use the odbcad32.exe from "c:\windows\SysWOW64\" directory as the one that is run from the administration tools menu only shows the 64 bit drivers. Start run will not suffice as there are two copies of this exe on the system.
This will allow you to create the required ODBC sources.
Thanks
C(rating ? | score 0) |
| DropHandler follow up |
Posted by Chester on Thursday Oct 09, @23:11
As a followup to my earlier post on DropHandlers...
If you use the following GUID
{60254CA5-953B-11CF-8C96-00AA00B8708C}
Instead of the
{86C86720-42A0-1069-A2E8-08002B30309D}
which I initially mentioned your script gets passed long file names, I however have run into some issues with my script such that I've gone back to the short file names option.
C
PS. Fixed it .. was a bug in my script.. the above long file names handler works a treat.(rating ? | score 0) |
| VOB File Formats |
Posted by Chester on Thursday Oct 09, @23:06
Another PHP hack I've been doing lately has been that I needed to extract the audio channel from a DVD vob file onto to disk for storage. This whilst initially seems a rather easy issue became a bit of a bug bear.
Lots of GUI based tools out there to do it. Even some GPL tools, VLC or even Mplayer can kinda do it. But I kept running into either clunky as hell command line interfaces or licensing issues.
Did come across a great tool that does it hell quick and compresses it to a mp3 on the file called "BeSweet". Congrats to the guy who wrote this tool as it's the goods. How ever his licensing aint to friendly towards someone who needs to intergrate this into a commercial offering.
So long and the short of it, I spent a few days reading up on VOB file formats and the MPEG2 standards and wrote some PHP to do it.
I found it a very interesting slog, and am quitely surprised how quick it works. Namely processes a 1 gig VOB file in 19 secs. The output being a raw ondisk mpeg2 audio stream, which is playable by winamp / media player / vlc and so on. From here I can choose to compress it with LAME or something similar or just keep it in this initial format.
So this isn't really a transcoder like BeSweet .. but rather a DeMux'er.
Thanks to the following urls which helped a lot in my basic understanding of what I was trying to do.
http://www.mpucoder.com/DVD/
http://dvd.sourceforge.net/dvdinfo/index.html << is a direct copy of mpucoder that you dont need to pay for ;-]
http://www.chiariglione.org/mpeg/
I also stumbled apon a few people who had badly secured home directorys with the actual ISO mpeg 2 standards available for download, since these are actually commercial documents that your meant to pay for I'm not linking to them.
If your interested in having a look at the code drop me an email, and I'll sort something out.
C
PS. As a side note, I was lucky that in this project I know that I will only ever be seeing DVD's with a single 2 channel audio stream, and that I wont ever have to deal with any other audio format.
(rating ? | score 0) |
| Drop Handlers & PHP |
Posted by Chester on Thursday Oct 09, @22:52
Been writing a lot of PHP of late, and tonight came across the need to be able to drag a file onto a shortcut on the desktop and have the script process it.
Basically on my desktop is a shortcut to test.php. If double clicked this is automatically run by c:\php\php-win.exe. But if you want to be able to drag files onto it then you need a drop handler.
Drop handlers are a windows com object which handle this type of action.
Easiest way I found after mucho googling was to cheat.
Check out...
HKEY_CLASSES_ROOT\batfile\ShellEx\DropHandler
It will have a default setting of
{86C86720-42A0-1069-A2E8-08002B30309D}
This is the standard drop handler, and as such will work for what we need.
So we go to
HKEY_CLASSES_ROOT\php_auto_file
We will need to create the ShellEx key & then also the DropHandler key
Once done under the DropHandler key simply double click the (Default) value and change it to "{86C86720-42A0-1069-A2E8-08002B30309D}".
Now we are cooking.
When files are dragged onto your file you will received them as variables contained in the $_SERVER['argv'] variable.
Thanks
C
Ps.
One other thing I found. Initially my script would fire up when a file was dragged onto it.. but it wouldn't work ?
Turns out
HKEY_CLASSES_ROOT\php_auto_file\shell\open\command\(Default) was set to
"c:\php\php-win.exe" "%1"
I changed it to
"c:\php\php-win.exe" "%1" "%*"
And I'm cooking with gas.
(rating ? | score 0) |
| Cunninghams Gap |
Posted by Chester on Monday Aug 18, @9:44
After Jody's wedding stopped with Jen @ Cunninghams Gap on the way back to Brisbane for a bit of a wander in the national park.
Top spot got to go back a lot more trails to check out.

C
(rating ? | score 0) |
| Jody & Justin's wedding. |
Posted by Chester on Monday Aug 18, @9:40
Jody and Justin were married this past weekend... lovely small ceremony in Warwick with the reception at the golf club.
Congrats to the lovely couple.
C(rating ? | score 0) |
| OUTAGE |
Posted by Chester on Friday Aug 01, @9:04
Changed jobs.. had to change hosts... so my shit was down...
Anywho..
C(rating ? | score 0) |
| The Funky Dodo |
Posted by Chester on Tuesday May 20, @15:42
Two friends of mine have just moved to Mauritius... link below for their blog / photo's.
I still can't believe they've been there for just over a week and all ready bitching ... for shit's sake they are on a tropical island, quit the whinging and start laughing at all us schmuk's.
The Funky Dodo
C(rating ? | score 0) |
| The Smashing Pumpkins |
Posted by Chester on Tuesday Apr 01, @9:44
Was lucky enough to scam a free ticket to the smashing pumpkins last night... It was a great gig... I've not seen them live since 96 @ festival hall... and it was great to seem them again. They played for a little over 2 hours doing a lot of old with a fair bit of new.
Including covers of "The Star Spangled Banner", "Blue Heaven", and Britany's "Pieces of Me" .. which was certainly a different way to here that song.

Thanx again to Jen for getting me the ticket.
Cynthia took some pic's Click Here.
C(rating ? | score 0) |
| Upgraded Gallery |
Posted by Chester on Monday Mar 31, @16:17
As per Laura's request I've upgraded the gallery to enable ratings of the restaurants.
C(rating ? | score 0) |
|
| Poll |
|
Yet to be implemented. |
| Information |
|
Server Time:
Nov 21, 23:34
Remote IP:
192.168.16.11
|
| This page is w3c valid. |
 |
|