-
posts
-
Setting output of a program to a variable in Windows Batch
I recently had to do this to get TortoiseMerge working with Mercurial within Cygwin. It turned out to be pretty easy and I couldn’t believe that a lot of people were saying that you had to route the output to a temporary file and then read it back into your program or some such garbage. Anyway, behold!! for /f "tokens=1" %%A in ( '"cygpath -w %1"' ) do set TMergePath1=%%A It’s kind of a hack using the FOR /f but it basically allows you to set the output of a program to a variable. You can even parse the output...
-
Learning GTK2.0
Today I’ve been playing around with writing programs in GTK 2.0. This has been on my TODO list for a really long time, almost since college, but I’ve never got around to it. I’ve revived my old project gorbital and decided to rewrite it using GTK 2.0. I originally wrote it in C++ using gtkmm for GTK 1.0. But GTK 1.0 is long since dead. Even my beloved GnuCash has finally made it to the world of GTK 2.0 making it the last application I use that has made the switch (Gaim being the first). The documentation and the tutorial...
-
Internet Explorer is CRAP!!
Basically the title says it all. Since I started doing web development I’ve lost count of the number of bugs that I’ve found in Internet Explorer but I want to highlight a couple that were especially annoying to me. 1.) The <button> tag doesn’t work. The button tag has a value attribute which is supposed to be sent as the value of the post when I submit a form but it’s not. The display value of the button is sent instead. So if you have a form like so: <button name="time" value="1030">Click here</button> and you submit the form that the...
-
Returning Arrays in WSDL
This week I’ve been working on setting up several web service for a project I’m working on for work. Because we are creating these web services from scratch we had to start by creating a WSDL file to describe the web service and it’s functions. WSDL is a type of XML document that describes the inputs and outputs from a web service. This can be done using a number of ways but in my case I’m using SOAP so I described my inputs and outputs using XML Schema. WSDL I found a number of documents helpful. Uche Ogbuji (Forthought Inc.)...