The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for August, 2010

batch-file: Getting current yyyyMMdd date into an environment variable.

Posted by jpluimers on 2010/08/04

This seems to be a recurring question on a lot of forums:

How to get the current date as yyyyMMdd into environment variable datestring in a regional independent way?

A lot of solutions are using construct around the %date% environment variable similar to this:

for /f "usebackq tokens=1,2,3,4 delims=- " %%i in (`echo %date%`) do (
set datestring=%%l%%k%%j
echo %%i
echo %%j
echo %%k
echo %%l
)
echo %datestring%

There are two things wrong with this kind of solution:

  1. It depends on the order of fields inside the %date% environment variable
  2. It depends on the delimiter inside the %date% environment variable (specified by delims in the above example)

(note: the %date% environment variable has the same format as the date command).

For sytems having Powershell installed, this is a possible solution: Read the rest of this entry »

Posted in Power User | Leave a Comment »

StarTeam UI oddities: creating a new public filter depending on a public query

Posted by jpluimers on 2010/08/03

Reminder to self.

Creating a new public filter depending on a new public query in StarTeam always bits me.

The reason is this subtle set of StarTeam rules for queries and filters: Read the rest of this entry »

Posted in Development, Source Code Management, StarTeam | Leave a Comment »

Solution for PDF viewing issues in Adobe Reader 9.3.3 / Chrome 5.0.375.99 (There was an error processing a page. There was a problem reading this document (107).)

Posted by jpluimers on 2010/08/02

Edit – 20100813:

The problem is not completely fixed; still some PDFs are behaving odly. So have have disabled “Allow fast web view” in the Adobe Reader preferences (see below for steps) once again.

Edit – 20100812:

This below problem is fixed in the Chrome version 5.0.375.126 from the stable channel which got released 20100811.
Thanks commenter Jacques for reporting this:

… after installing the new fix (Chrome 5.0.375.126), all PDFs now open without error in the Chrome browser.

To install the fix, open the Chrome browser, click on the “wrench” icon (to the right of the address bar), and select “About Google Chrome.” A button in the About window allows you to get the latest update.

Original:

In the past, this used to work fine, but lately I often get this error message when viewing PDF documents in Adobe Reader 9.3.3 in Chrome 5.0.375.99 on Windows 7 x64 Ultimate and Windows XP SP3:

There was an error processing a page. There was a problem reading this document (107).

Sometimes I get these errors instead: Read the rest of this entry »

Posted in Adobe, Power User | 6 Comments »

10 years of Firebird

Posted by jpluimers on 2010/08/01

Has it been that long ago? Yes, yesterday, Firebird celebrated its 10th anniversary as an open source project.

It was stable for almost 2 years, and then Firebird 1.0 was released more than 8 years go.

The next version, 1.5, also took less than 2 years, and was released more than 6 years ago.

Version 2.0 was a major release, and took a bit longer: 2 years ago.

Version 2.5 is taking the same speed as 1.5 did, and is about to be released.

Work has already begun on 3.0, and a lot of new features are in the pipeline, including a new ODS.

–jeroen

Via: Firebird – The RDBMS that’s going where you’re going.

Posted in Database Development, Development, Firebird | Leave a Comment »