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,861 other subscribers

Archive for 2010

Apple on App Store Review Guidelines: relaxing all restrictions on the development tools used to create iOS apps, as long as the resulting apps do not download any code

Posted by jpluimers on 2010/09/10

To quote the Apple statement:

we are relaxing all restrictions on the development tools used to create iOS apps, as long as the resulting apps do not download any code. This should give developers the flexibility they want, while preserving the security we need.

Which seems to mean you can use both Mono (using MonoTouch) and Flex to develop your Apple iPhone and iPad apps.

–jeroen

via Statement by Apple on App Store Review Guidelines.

Posted in .NET, Delphi, Development, Software Development | Leave a Comment »

Flusing the DNS cache

Posted by jpluimers on 2010/09/10

DNS is the fundament for resolving names to IP-adreesses.
Without it, no internet browsing or other connections to the outside world.

Like a lot of communication optimizations, caching improves the speed of DNS too ([Wayback/Archive] All programming is an exercise in caching -Terje Mathisen).

Sometimes, bad or unwanted DNS entries end up in your cache.
Those prohibit some of the communication.

Luckily, How to Flush DNS explains this for 3 platforms: Windows, Mac OSX and Linux:

  • Windows:
    ipconfig /flushdns
  • Mac OSX:
    10.5 and up: dscacheutil -flushcache
    pre 10.5: lookupd -flushcache
  • Linux:
    /etc/init.d/nscd restart

–jeroen – now happy he flushed an unwanted DNS entry from the cache

via: [Wayback/Archive] How to Flush DNS – Top Bits

Posted in *nix, Power User | Leave a Comment »

SQL Server 2008 installation UI #fail Alt-N bound to two UI controls

Posted by jpluimers on 2010/09/09

Click on the image on the right to see the full size.

The Alt-N keybinding is bound to two UI controls.

But since the “Next” button is later in the tab order, pressing Alt-N will switch to “Perform a new installation” and deselect the “Add feature to …”

Very handy indeed when you don’t want a new installation, but just quickly want to go to the next step in the wizard.

#fail

–jeroen

Posted in Opinions | Leave a Comment »

Delphi: Use TStrings to parse non-standard separated strings, and validate it with DUnit tests

Posted by jpluimers on 2010/09/08

Recently, I was at a client where in a project strings had to be split from:

'FI-150 1U; FI-049-I L=20 MM;LET OP LASVORM'

Into:

  • 'FI-150 1U'
  • 'FI-049-I L=20 MM'
  • 'LET OP LASVORM'

At first sight, this looks simple: Semicolon Separated Values and you are done.
Not so fast Mr Smart Alec: watch the optional spaces!

The best thing for problems like these is to start with an empty implementation that some units tests covering it.
I use DUnit for Delphi unit testing.

Unit testing should go with code coverage, but there are few Delphi code coverage articles.
I’ll get into code coverage later on, as I’m working with two of the code coverage people to get this to work nicely with Delphi 2010.

Mock objects can be a good addition to unit testing too, so in a future article, I will cover using mock objects with Delphi.

Read the rest of this entry »

Posted in Agile, Conference Topics, Conferences, Delphi, Development, DUnit, Event, Software Development, Unit Testing | 8 Comments »

SQL Server: Google search tip for MSDN

Posted by jpluimers on 2010/09/07

When searching on MSDN for SQL Server syntax related things, you often get results matching other languages or frameworks.

For instance, searching for INSERT site:msdn.microsoft.com gets other results having to do with the .NET Framework. Those usually are not relevant to SQL Server.

Google search can be tweaked to limit your search results: there is a nice Google search help page on this.
The above search phrase already includes a the site: prefix to limit the results to the msdn.microsoft.com domain.

There are a few tricks to limit the search phrase even further:

  1. Add “SQL Server” to your search phrase:
    “SQL Server” INSERT site:msdn.microsoft.com
    Microsoft always had the “SQL Server” in their Books Online topics.
    This way, you will find SQL Server 2000 and SQL Server Compact Edition information now as well as more current SQL Server versions.
  2. Add “Transact-SQL” to your search phrase:
    “Transact-SQL” INSERT site:msdn.microsoft.com
    Microsoft started to suffix SQL Server T-SQL keywords with “(Transact-SQL)” for the Books Online in November 2008 (covering SQL Server 2005) to make finding results easier.
    This way you will favour topics for SQL Server 2005 and up.

Luckily the MSDN site has done a lot of SEO, so even if you don’t add these two to your search phrase, SQL Server relevant results end up pretty high in the result list.
They strive to get the SQL Server 2008 R2 Books Online topics as high in the ranking as possible.

If you want to search for specific versions of SQL Server, then it is easiest to use this Microsoft SQL Server Library page to begin your search.

Conclusion:

Depending on what kind of search results you are interested in, you might want to extend your search phrase a bit.

–jeroen

Posted in Database Development, Development, Google, Power User, SQL Server | Leave a Comment »

Me in infrared

Posted by jpluimers on 2010/09/06

Thanks to Marc Hoffman (dwarfland), I got an  infrared picture of myself while I was in California.
I catched him on infrared too.

–jeroen

Posted in About, Personal, Travel | Leave a Comment »

English Language Difficulties

Posted by jpluimers on 2010/09/06

Not being a native English speaker (though that term is difficult to define), I like the English Language Difficulties pages a lot.

They help me to get things in English writing right, that I often find difficult.
Some of them: Read the rest of this entry »

Posted in About, Personal | Leave a Comment »

Session Buddy – Google Chrome extension gallery

Posted by jpluimers on 2010/09/03

Great Chrome extension: Session Buddy.
Not only great for saving and restoring sessions, but also for getting the URLs and Titles of your tabs (or single window with tabs).

Easy for collecting relevant information and saving it for inclusion in documentation (for instance: your blog ).

via: Session Buddy – Google Chrome extension gallery.

Posted in Google, Power User | Leave a Comment »

#SFO airport international terminal A #fail part 3: baggage claim tag got not sticked to boarding pass or passport

Posted by jpluimers on 2010/09/03

On every airport I have been so far, my baggage claim tag got sticked to either my boarding pass or my passport.

Not so today at SFO airport international terminal A; it got placed loosely in the passport, not sticked to anything.

I didn’t notice, so I was glad my wife was walking behind me in the shops when it fell out: she noticed, so we still have the baggage claim tag.

–jeroen

Posted in Opinions | Leave a Comment »

#SFO airport international terminal A #fail part 2: women’s restroom G9:G12 are only partially available

Posted by jpluimers on 2010/09/02

When you leave at SFO airport international terminal A at G9 through G12, and you are female, then don’t queue up at the restroom on the upper floor.
One of them is broken, so there is a huge queue of waiting ladies.

My wife got back in the hallway to use a less busy restroom.

–jeroen

Posted in Opinions | Leave a Comment »