Archive for the ‘Development’ Category
Posted by jpluimers on 2016/08/23
I use “git mv” a lot because somehow it works a lot better than having git automagically find out about renames.
The problem with “git mv” is that the “fatal: bad source” errors are a catch-all for many causes. Just look at the
Searching for “git mv” directory “fatal: bad source” didn’t get me much further. The one link that did get me towards the right track is version control – Getting Git to follow renamed and edited files – Stack Overflow.
What happened was that I had manually deleted and edited some files as part of a mass script (the repository had a lot of files in it that didn’t belong there compile targets and user specific settings or didn’t adhere to the naming conventions) before executing the “git mv”.
Since “git mv” tries to administer all the files that it thinks originally were in the directory, it complains about those files.
Lesson learned: first “git mv” then perform other changes.
–jeroen
Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »
Posted by jpluimers on 2016/08/23
To work around this error:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
ensure your DDL does wait a bit longer than the default of NOWAIT seconds:
alter session set ddl_lock_timeout=30
;
alter table TABLE_NAME
modify constraint CONSTRAINT_NAME enable
;
commit
;
via ORACLE-BASE – DDL With the WAIT Option (DDL_LOCK_TIMEOUT) in Oracle Database 11g Release 1.
Posted in Database Development, Development, OracleDB | Leave a Comment »
Posted by jpluimers on 2016/08/18
Since I’m not that fast at updating List-Delphi-Installed-Packages.ps1 [WayBack] (which I should rename into something containing the word Version in it), here are some useful links to stay up-to-date:
–jeroen
Posted in Delphi, Development, Software Development | 2 Comments »
Posted by jpluimers on 2016/08/18
Empty arrays are not used often as arrays usually are about the presence data, not about the absence.
Here are two ways based on the int data type in C# (the original [WayBack] examples [WayBack] are using string, but since string itself is also a kind of array…):
Specify a size of zero:
int[] a = new int[0];
Specify an empty initialisation:
int[] a = new int[] { };
Though many people think arrays are a thing of the past, I think it is one of the first generic types and have their place. For one, enumerating over arrays using foreach is a lot faster in many environments than enumerating over other data types. Another thing is that the fixed nature of arrays can be very beneficial in setting constraints.
That’s why I like the balanced view from Eric Lippert [WayBack] in Arrays considered somewhat harmful – Fabulous Adventures In Coding – Site Home – MSDN Blogs [WayBack]
–jeroen
via:
Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »
Posted by jpluimers on 2016/08/17
After yesterdays post on Testing and static methods don’t go well together, I read around on Source (kunststube [WayBack]) a bit more and found these very nice articles on encoding,Unicode and text:
Related on those, some other nice readings:
–jeroen
Posted in Ansi, ASCII, CP437/OEM 437/PC-8, Development, EBCDIC, Encoding, ISO-8859, ISO8859, Shift JIS, Software Development, Unicode, UTF-16, UTF-8, UTF16, UTF8, Windows-1252 | Leave a Comment »
Posted by jpluimers on 2016/08/17
A while ago, testssl.sh [WayBack] needed Darwin binaries (for OS X): Supply Darwin binaries + install documentation · Issue #127 · drwetter/testssl.sh [WayBack]
So I created the small Bourne shell (sh) script below to deliver them.
It allows me to update these gists:
The build script itself is in a gist as well: https://gist.github.com/f4de3937630b87753133.git [WayBack]
It helped me to contribute to these testssl.sh issues:
Not all of these binaries are in https://github.com/drwetter/testssl.sh/tree/master/bin [WayBack] as it makes the testssl.sh repository too bloated. Some (including non-OSX builds made by others) are here:
Eventually the script might get merged into https://github.com/drwetter/testssl.sh/blob/master/utils/make-openssl.sh [WayBack] as there is a Darwin switch in this commit: https://github.com/drwetter/testssl.sh/commit/6efc3e90f52e5926b0853d3b2fb221b631dcf452 [WayBack]
Read the rest of this entry »
Posted in Apple, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OpenSSL, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Security, Software Development, xCode/Mac/iPad/iPhone/iOS/cocoa | Leave a Comment »
Posted by jpluimers on 2016/08/16
A few links as, in code I’ve inherited, I see way too many static methods hindering testing:
–jeroen
Posted in Agile, Development, Software Development, Unit Testing | 1 Comment »
Posted by jpluimers on 2016/08/16
From a while ago:
David Ratnasabapathy: The VIC-20 programmer’s manual was the best intro to programming I’ve ever read. I’d love to find a copy online, the new generation could use it.
+Isaac Kuo that book is wealth. I loved marginal explanations that expanded on the main text, it’s a tactic I use in my own class notes.
The manual was called Personal Computing on the VIC 20 and it is online! This is amazing! Ah, memories.
http://www.classiccmp.org/cini/pdf/Commodore/VIC-20%20Programmer’s%20Reference%20Guide.pdf
+Tomasz Machalski there’s a motherload here:
http://www.classiccmp.org/cini/pdf/Commodore/
Including VIC-20 User’s Manual.pdf
http://www.classiccmp.org/cini/pdf/Commodore/VIC-20%20User’s%20Manual.pdf
and VIC-20 Programmer’s Reference Guide.pdf
http://www.classiccmp.org/cini/pdf/Commodore/VIC-20%20Programmer’s%20Reference%20Guide.pdf
Jeroen Wiert Pluimers:+David Ratnasabapathy thanks a lot!
Downloaders: that site is slow. Not as slow as the New Horizons uplink, nor as slow as 1980s modems, but be prepared for some serious wait time.
https://en.wikipedia.org/wiki/Modem#The_Smartmodem_and_the_rise_of_BBSs
Note that the wayback machine has them cached:
–jeroen
via It’s our third birthday! What better present than the VIC-20 [1] (“A Real… [WayBack]
Posted in 6502, Commodore, Development, History, Software Development, VIC-20 | 1 Comment »