Archive for the ‘Scripting’ Category
Posted by jpluimers on 2015/05/19
Now that DynamicDNS moved itself to a fully payed service, named it DynDns Pro, then renamed it Remote Access and limiting it to 30 hosts for USD 25 a year , I looked for alternatives, and noticed NO-IP.
I like it for a few reasons:
OK, last year, there was this Microsoft Legal Action and Controversy , but I think that is a once time thing (some people even argue that Microsoft wasn’t thinking ), so I created the last script below in PowerShell.
A few open-source scripts to keep your NO-IP account happy (that also work on most other DDNS providers like Duck DNS ):
Read the rest of this entry »
Posted in *nix , *nix-tools , bash , CommandLine , Development , Perl , PHP , Power User , PowerShell , Scripting , Software Development | 1 Comment »
Posted by jpluimers on 2015/04/22
A long and shorter while ago, I wrote about practicing your coding and test driven development skills:
Here are some Coding Kata videos of the Bowling Game Kata in various languages and environments. Some of them are dumb (no audio) just like good practice usually is. Note: it helps to know a bit about 10 Pin Bowling Scoring rules .
And since I want to learn Haskell and have done a lot of Tic-Tac-Toe demos inthe past:
For more background information:
–jeroen
Posted in .NET , C# , C# 1.0 , C# 2.0 , C# 3.0 , C# 4.0 , C# 5.0 , C# 6 (Roslyn) , Development , Java , Python , RemObjects C# , Ruby , Software Development | Leave a Comment »
Posted by jpluimers on 2015/03/05
If you are running OpenSSL as a regular user, or cannot perform “RunAs Administrator”, and you get this error message:
unable to write 'random state'
then make sure you have set your environment variables correctly before running OpenSSL:
RANDFILE=%LOCALAPPDATA%\.rnd
A full batch file front-end for OpenSSL.exe is this one:
Read the rest of this entry »
Posted in Batch-Files , Development , OpenSSL , Power User , Scripting , Security , Software Development , Windows | Leave a Comment »
Posted by jpluimers on 2015/02/18
Mac OS X has md5 , but no md5sum .
I agree with Mac OS X: Replicating md5sum Output Format that the second way of emulating md5 is better than the first one.
So here it is:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash
/sbin/md5 -r "$@"
–jeroen
via: Mac OS X: Replicating md5sum Output Format – Raam Dev
Posted in Apple , bash , Development , Hashing , 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 , md5 , OS X 10.8 Mountain Lion , Power User , Scripting , Security , Software Development | Leave a Comment »
Posted by jpluimers on 2015/01/22
Wow: I feel like having lived under a stone for 8 years, as RosettaCode has been alive since it was founded in 2007 by Mike Mol .
The idea is that you solve a task and learn from that, or learn by seeing how others have solved tasks or draft tasks .
So in a sense it is similar to the Rosetta stone : it has different languages phrasing the same tasks.
There are already a whole bunch of languages on RosettaCode (of which a few are in the categories below), and you can even suggest or add your own languages.
When you want to solve tasks, be sure to look at the list unimplemented tasks by language that leads to automatic reports by language (for instance two of the languages I use most often: C# and Delphi ).
I’m sure there are lots of programming chrestomathy sites , even beyond the ones, and it feels very similar to programming kata sites .
–jeroen
Posted in .NET , APL , Awk , bash , Batch-Files , C , C# , C++ , COBOL , CommandLine , Delphi , Development , Fortran , FreePascal , Java , JavaScript/ECMAScript , Lazarus , Object Pascal , Office VBA , Pascal , Perl , PHP , PowerShell , PowerShell , Prism , Scripting , sed script , Sh Shell , Software Development , Turbo Prolog , VB.NET , VBS , VBScript , Visual Studio and tools , Web Development | Leave a Comment »
Posted by jpluimers on 2014/12/23
If you are into serious software development, then this is a 75 minute PodCast you must listen to: Episode 215: Gang of Four – 20 Years Later : Software Engineering Radio .
Abstract
Johannes Thönes talks with Erich Gamma, Ralph Johnson and Richard Helm from the Gang of Four about the 20th anniversary of their book Design Patterns. They discuss the following topics: the definition of a design pattern and each guest’s favorite design pattern; the origins of the book in architecture workshops; the writing of the book together with the community; the rock-star feeling at the release of the book at OOPSLA conference; the influence of the book on the industry; the evolution of the Observer pattern; and new patterns since the book was released. The interview closes with each guest talking about their current projects.
What I liked
Of course I enjoyed the history of the Gang of Four (and am still sad that John Vlissides passed away).
Read the rest of this entry »
Posted in .NET , C# , Delphi , Development , Java , Java Platform , JavaScript/ECMAScript , Scripting , Software Development | Leave a Comment »
Posted by jpluimers on 2014/12/20
Earlie this month, I wrote a review about Delphi Cookbook .
Well: as of last thursday, you can get that for USD 5 (or EUR 4.80, so better get yourself a USA account: just ensure your address is in the USA).
Heck: until januari 6th, you can get any eBook or Video on Packt for USD 5 .
Note there is even an x-Mas countdown on the way (with each day a free book that is readable/downloadable for 24 hours).
There’s over 2500+ books to choose from, so I’m grabbing this chance to learn a few things on OpenCV, Scala, and PowerShell.
–jeroen
via: Book review: Delphi Cookbook by Daniele Teti, Packt publishing .
Posted in .NET , CommandLine , Delphi , Delphi XE , Delphi XE2 , Delphi XE3 , Delphi XE4 , Delphi XE5 , Delphi XE6 , Delphi XE7 , Development , Java Platform , PowerShell , Scala , Scripting , Software Development | Tagged: Delphi Cookbook , Packt | Leave a Comment »
Posted by jpluimers on 2014/11/13
A while ago, I wrote a via PowerShell script to show the component packages (BPL) files for all installed Delphi (actually: BDS) versions (now at List-Delphi-Installed-Packages.ps1 ) for a couple of reasons:
I was creating installation instructions for getting new development machines set-up
The new machines had to either have a minimum subset of installed Delphi versions + components, or the maximum superset of all the existing development machines
Sifting through the installed Packages in the IDE, or registry by hand was cumbersome
Note that in the mean time (I queued this blog entry somewhere in 2013) the script has moved to BitBucket , I’ve written more scripts (like Dependencies.bat which is documented in Dependencies.md and Run-Dependend-rsvars-From-Path.bat ), all modified all scripts to support all BDS versions I had access to, and a write nice conference paper on Build Automation for Delphi that references the scripts.
Since none of the machines were using pre BDS installations, I could limit the script to BDS 1.0 and up.
The very first (1.0) version of BDS (also known as the Gailileo IDE foundation ) was in fact not a Delphi version, but C# Builder 1.0. All Delphi versions since then are based on BDS. The script is based on the BDS registry keys I researched and wrote about in Files in your Delphi settings directory; How to relocate the Favourites on your Welcome page .
Since registry access can be very much flow based, the pipeline architecture of PowerShell is a good fit.
So I wrote a PowerShell script (:
Note Thomas Mueller has written a batch file around the same set of registry keys ; the thread there also has some insight in the HKLM versus HKCU keys.
I will explain my script step by step, and start with the most important one: Set-StrictMode -Version Latest . Read the rest of this entry »
Posted in CommandLine , Delphi , Delphi 2005 , Delphi 2006 , Delphi 2007 , Delphi 2009 , Delphi 2010 , Delphi 8 , Delphi x64 , Delphi XE , Delphi XE2 , Delphi XE3 , Delphi XE4 , Delphi XE5 , Development , PowerShell , Software Development | Leave a Comment »
Posted by jpluimers on 2014/11/06
Two interesting links today about Delphi and Batch files.
–jeroen
PS: If you want to see some serious Batch file and PowerShell related scripts, then read through the Build Automation part of my session materials I posted to ITDevCon and EKON session materials on Delphi Unit Testing + Build Automation and Continuous Integration on-line .
More details are in the batch files here:
and PowerShell scripts here:
Posted in Batch-Files , Delphi , Delphi 2005 , Delphi 2006 , Delphi 2007 , Delphi 2009 , Delphi 2010 , Delphi 7 , Delphi XE , Delphi XE2 , Delphi XE3 , Delphi XE4 , Delphi XE5 , Delphi XE6 , Delphi XE7 , Development , QC , Scripting , Software Development | 7 Comments »
Posted by jpluimers on 2014/10/31
When searching for powershell ise indent tab, I came across this very nice post by rpscripter :
If one selects multiple lines, then pressing tab will indent them all. Pressing shift+tab will un-indent them all.
Yes, I know the PowerShell is limited, so the indents are tabs (not spaces) and you cannot change the tab size: Powershell ISE – change indent/tab size + keep tabs .
–jeroen
via:
Posted in CommandLine , Development , Power User , PowerShell , PowerShell , Scripting , Software Development , Windows , Windows 7 , Windows 8 , Windows Server 2003 , Windows Server 2003 R2 , Windows Server 2008 , Windows Server 2008 R2 , Windows Vista , Windows XP | Leave a Comment »