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

Archive for the ‘Development’ Category

Recommended reads when dealing with Character Encodings in software

Posted by jpluimers on 2014/05/06

Apart from the mandatory Joel on Software article about Unicode and Character sets, these two articles are of great value too:

Fun to read from that blog is the Historical Technology  section including this article:

–jeroen

PS: The mandatory one is The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) – Joel on Software.

 

Posted in .NET, Ansi, ASCII, CP437/OEM 437/PC-8, Delphi, Development, EBCDIC, Encoding, ISO-8859, ISO8859, Shift JIS, Software Development, Unicode, UTF-8, UTF8, Windows-1252 | Leave a Comment »

ADAP Open Source REST API Layer For LDAP | Dr Dobb’s

Posted by jpluimers on 2014/05/06

Interesting, as this opens LDAP server to a lot more tools and development environments: ADAP Open Source REST API Layer For LDAP | Dr Dobb’s.

–jeroen

Posted in Communications Development, Development, HTTP, Internet protocol suite, JavaScript/ECMAScript, JSON, LDAP, Power User, REST, Scripting, Security, Software Development, TCP, Web Development | Leave a Comment »

Mac OS X: copy the current Finder folder or file name to the clipboard

Posted by jpluimers on 2014/05/06

Copying the path from the Finder to the clipboard is a bit cumbersome.

A simple way contains a bit of repetitive steps, and to read Mac OS X: Open a Terminal at Folder from Finder:

  1. Open a Terminal window in the finder
  2. Type this command in the Terminal window
    pwd | pbcopy

This simple way was suggested my User Kyle Cronin, thanks!

Some notes:

  • pwd prints the current working directory.
  • pbcopy copies the input to the clipboard.

Another way is using Automator. It is a bit more complex to setup, but the actual usage is easier:

  1. Select the folder or file in the Finder
  2. Right click
  3. For a folder: select “Services”
  4. Select “Copy File Path”

Setting this up is a bit more complex and requires the first 5 steps from Copy file or folder path to the clipboard in Mac OS X Lion | MacYourself:

  1. Launch Automator from your Mac’s Applications folder. If you’ve never used Automator before, that’s not a problem. This is going to be so simple anyone can do it.
  2. Double-click the Service icon from Automator’s start menu.
  3. Toward the top of the right column, you’ll see this line of text: “Service receives selected _____ in _____”. Choose “Files or Folders” from the first menu and “Finder” from the second.
  4. Next, click on Utilities in the Actions library on the left side. Double-click “Copy to Clipboard” in the middle column. You’ll notice that this action has been added to our workflow on the right.
  5. Go to File > Save in the menu bar and name your service Copy File Path. Our work with Automator is now done, so you can safely quit it once the service is saved.

I’ve skipped the other steps, as I don’t need a keyboard shortcut for this.

–jeroen

via: Copy file or folder path to the clipboard in Mac OS X Lion | MacYourself.

Posted in Apple, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Scripting, Software Development | 3 Comments »

Delphi: Design-Time Component Name Limited to 63 characters (via: Vin Colgin – Google+)

Posted by jpluimers on 2014/05/05

I learned something new today (thanks Vin Colgin) the Delphi Design-Time Component Name is Limited to 63 characters.

Uwe Raabe found out that this an Object Inspector thing due to this constant in DesignIntf.pas:

const
  MaxIdentLength = 63;

It has been probably there since Delphi 1 and has been documented on-line since at least Delphi 2007.

I remember having had long (like 100+ character) identifiers in source code, but not in the Object Inspector.

Now I know you can’t (:

–jeroen

via: Vin Colgin – Google+ – Delphi: Design-Time Component Name Limited to 63 characters….

Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | 4 Comments »

pickhardt/betty: a command-line like tool like Google Now/Siri for *nix and Mac OS X (requires ruby)

Posted by jpluimers on 2014/05/05

Fun project with potential: pickhardt/betty that was pointed to me by Ilya Grigorik – Google+.

Betty is a natural language (for now: English based) front end for tools like curl, find, wc, whoami, find, etc.

It requires ruby, and runs on *nix or Mac OS X (where it uses osascript for iTunes).

–jeroen

via: Ilya Grigorik – Google+ – Betty is an english-like interface for your command line:….

Posted in *nix, Apple, Development, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Ruby, Software Development | Leave a Comment »

Interesting discussion about generic Dictionaries in Delphi (via: Steve Maughan – Google+ – TObjectDictionary Advice Needed)

Posted by jpluimers on 2014/05/05

There is an interesting G+ discussion thread about generic Dictionaries in Delphi.

It covers the stock TObjectDictionary in the Generic.Collections unit, Spring4D, performance characteristics like O(1), O(log n), etc, and implementation details like fill factors and hashing algorithms.

Worth reading at Steve Maughan – Google+ – TObjectDictionary Advice Needed I’ve been using Delphi for….

Since TObjectDictionary hasn’t changed much since the introduction of generics in Delphi, this discussion is valid for at least Delphi XE and up (and probably Delphi 2010 and 2009 as well).

I’m not sure about these last ones as like Andreas Hausladen, I’m cutting back on the Delphi versions I regularly use, which for now are mainly XE6, XE3, XE and 2007).

–jeroen

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

permissions – Delphi – setting Full Control on Registry Key – Stack Overflow

Posted by jpluimers on 2014/05/02

One of those StackOverflow gems: permissions – Delphi – setting Full Control on Registry Key – Stack Overflow.

–jeroen

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | 4 Comments »

Text Formatting Notation Help – Atlassian JIRA

Posted by jpluimers on 2014/05/02

Too bad Atlassian don’t specify that the {code} tag now supports more languages.

The trick is to specify an invalid one (like JSON, for which you can use javascript), then it emits an error telling you which languages are supported:

 

Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java

(Yes I know there is a JIRA MarkDown plugin, but not every customer installs plugins at will)

–jeroen

via: Text Formatting Notation Help – Atlassian JIRA.

Posted in Development, Issue/Bug tracking, JIRA, Software Development | Leave a Comment »

This week: five BASICs for the 6502, to mark the 50th (via: mos6502 – Google+)

Posted by jpluimers on 2014/05/02

Basic@50 would not be complete without This week: five BASICs for the 6502, to mark the 50th… from mos6502 – Google+.

–jeroen

via: Happy 50th birthday BASIC! (via: BASIC at Dartmouth) « The Wiert Corner – irregular stream of stuff.

Posted in 6502, BASIC, Development, History, Software Development | Leave a Comment »

Interesting thread on IP geolocation and providers (via: Dan Sohad – Google+)

Posted by jpluimers on 2014/05/02

IP geolocation is hard, and very dependent on where you are in the world. Providers giving different or confusing results are not exceptional.

See the struggle at Dan Sohad – Google+ – Hi! I working in a IP locate app. I’m using as “motors”: … where Dan Sohad tries a Delphi implementation.

–jeroen

Posted in Delphi, Development, Geolocation, Software Development | Leave a Comment »