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 May, 2014

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 »

Reminder to self: links to HP C4680 Windows Drivers

Posted by jpluimers on 2014/05/05

Reminder to Self: links to HP C4680 Windows Drivers.

My mom has an HP C4860 all-in-one inkjet printer/scanner/copier.

Soon she will have a new laptop, so here are some links I will need to get that printer installed:

I’m not sure though why “Basic drivers” still need to be close to 40 megabytes.

–jeroen

via: HP C4680 Windows Drivers – Google Search.

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1 | Leave a Comment »

A Quick Test Drive of Tails, a Privacy Focused Linux Distribution

Posted by jpluimers on 2014/05/05

Fazit:

You’ll probably want a standard OS for day to day tasks, and only use Tails if you really need to remain anonymous.

–jeroen

via A Quick Test Drive of Tails, a Privacy Focused Linux Distribution.

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

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 »

; a semi-colon starts a comment line in a .reg file (via: Windows Server content from Windows IT Pro)

Posted by jpluimers on 2014/05/05

Thanks John Savill from Windows IT Pro:

To include comments in a registry file, place a semicolon (;) at the beginning of the line, as shown below:

; This will delete the key below because of the - sign
\[-HKEY_LOCAL_MACHINE\SOFTWARE\SavillTech\key\]

–jeroen

via: How do I place comments in a .reg file? | Windows Server content from Windows IT Pro.

Posted in Microsoft Surface on Windows 7, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | 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 »