Link rot stroke again: New link for Mastering the VI editor.
These are useful too:
–jeroen
via *nix – Mastering the VI editor « The Wiert Corner – irregular stream of Wiert stuff.
Posted by jpluimers on 2012/09/17
Link rot stroke again: New link for Mastering the VI editor.
These are useful too:
–jeroen
via *nix – Mastering the VI editor « The Wiert Corner – irregular stream of Wiert stuff.
Posted in *nix, Cygwin, Endian, Internet, link rot, Linux, Power User, vi, WWW - the World Wide Web of information | Leave a Comment »
Posted by jpluimers on 2012/09/17
Learned a few Excel keyboard shortcut pairs today:
| Shortcut | Action |
|---|---|
| Ctrl+Spacebar | Select columns |
| Shift+Spacebar | Select rows |
| Ctrl+; | Current date |
| Ctrl+Shift+: | Current time |
| Ctrl+Shift+2 | Format current cell as default date |
| Ctrl+Shift+3 | Format current cell as default time |
–jeroen
via:
Posted in Excel, Keyboards and Keyboard Shortcuts, Office, Power User | Leave a Comment »
Posted by jpluimers on 2012/09/14
Interesting question What is the best Report tool for Delphi? – Stack Overflow that hopefully leads to a nice list of current reporting tools before it gets closed as “question will likely solicit debate, arguments, polling, or extended discussion”.
–jeroen
Posted in Delphi, Development, Software Development | 1 Comment »
Posted by jpluimers on 2012/09/14
Two days ago I ran into the bug below while porting some code from Delphi 2006 to Delphi XE2, posted on StackOverflow, and got solutions in very little time.
Thanks Andreas Hausladen, David Heffernan, Ken White, Sertac Akyuz, Rudy Velthuis, for answering, providing solutions and verifying!
Note that this worked up until Delphi XE, and has been fixed in Delphi XE3 (which for this project I can’t use as the client upgraded to XE2 without SA).
This is the error (it’s a Windows DLL load error marked “System Error”).
The program can’t start because mqic.dll is missing from your computer. Try reinstalling the program to fix this problem.
–jeroen
Posted in Delphi, Delphi 2006, Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | Tagged: ibm websphere mq, software, stack overflow, technology | Leave a Comment »
Posted by jpluimers on 2012/09/14
A while ago, I got a question from a colleague on how to silence RoboCopy.
The RoboCopy /? help is a bit awkward to read, so there is this nice SO answer by Ruben Koene:
So together with previous answer you get the following and it’s silent:
ROBOCOPY [target] /njh /njs /ndl /nc /ns /np /nfl
And there is the FIND way where I marked the relevant options with an asterisk (*):
C:\Users\jeroenp>robocopy /? | find /i "No"
/S :: copy Subdirectories, but not empty ones.
/NOCOPY :: COPY NO file info (useful with /PURGE).
/PURGE :: delete dest files/dirs that no longer exist in source.
/PF :: check run hours on a Per File (not per pass) basis.
n must be at least 1 and not greater than 128.
/XJ :: eXclude Junction points. (normally included by default).
/X :: report all eXtra files, not just those selected.
* /NS :: No Size - don't log file sizes.
* /NC :: No Class - don't log file classes.
* /NFL :: No File List - don't log file names.
* /NDL :: No Directory List - don't log directory names.
* /NP :: No Progress - don't display percentage copied.
* /NJH :: No Job Header.
* /NJS :: No Job Summary.
/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.
–jeroen
via: backup – How can I make robocopy silent in the command line except for progress? – Stack Overflow.
Posted in Power User, RoboCopy, 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 | 4 Comments »
Posted by jpluimers on 2012/09/13
It was a long time ago that I ever did something with the Elf proef.
It is the algorithm that is used to calculate the check digit for Dutch bank account numbers (bankrekeningnummers) and a variation for BSNs (Social Security Numbers).
I needed it (or more exactly: a variation of it) in order to support anonymization of customer data for the DTA/OTA portions of a DTAP/OTAP environment.
So, I started reading on the Elf proef, and getting some sample data to setup some unit tests.
Wrong and wrong:
To start with the latter, they get it wrong because the check digit is modulo 11 (like the ISBN 10 check digit), but only numeric digits are valid. Their bank.js algorithm module tries to accommodate for that in the wrong way.
In addition they copy-pasted code between their other number generation algorithms which you can see form the variable SofiNr which is an abbreviation for SofiNummer, the old name for the Dutch Social Security Number (now called Burgerservicenummer aka BSN).
Their generated sample 290594880 is wrong because the check digit should be 10, and 10 is not a digit. Their generated number 936977590 is OK as the check digit should be zero (0) which it is.
More on their fault a bit further on. First lets concentrate on getting proper test data, and the right algorithm.
I will cover code for the bankrekeningnummer here. The complete code including BSN is at BeSharp.CodePlex.com. Read the rest of this entry »
Posted in .NET, C#, C# 3.0, C# 4.0, C# 5.0, Development, JavaScript/ECMAScript, Scripting, Software Development | 4 Comments »
Posted by jpluimers on 2012/09/12
Every once in a while I need something like this, and I always forget the best way to do it: pad numbers so they start with leading zeros so they appear fixed with.
There is no ready made function in SQL Server which offers this solution but we can quickly write up something very simple.
SQLUSA has some more ways to do it, and all basically come down to this:
'00000000', or use the REPLICATE function).You can do similar things with LEFT and padding (for instance with spaces to the right).
One example:
SELECT RIGHT('0000000000' + CAST(31415 AS VARCHAR(10)), 10) AS PaddedPiInteger
SELECT LEFT(CAST(31415 AS VARCHAR(10)) + ' ', 10) AS PaddedPiInteger
–jeroen
Posted in Database Development, Development, SQL, SQL Server, SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Server 7 | Leave a Comment »
Posted by jpluimers on 2012/09/11
For a good laugh when you are coding late at the evening: regex – Delphi PCRE – regExp string in INI section “range” – Stack Overflow.
–jeroen
Posted in Delphi, Development | 5 Comments »