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

Archive for May, 2015

Intermittent but frequent OS X pauses may be from iCloud syncing | MacIssues

Posted by jpluimers on 2015/05/21

fseventer is a great tool for investigating Mac OS X file system events. Like many low-level tools, it requires admin privileges.

This is apparent through the use of the tool “fseventer” which monitors what files on your hard drive are being accessed.

–jeroen

via: Intermittent but frequent OS X pauses may be from iCloud syncing | MacIssues.

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »

How to add screenshot to markdown/READMEs in github repository ? (via: Stack Overflow)

Posted by jpluimers on 2015/05/20

Adding relative links to screenshots in markdown files (like README.md) works way better at GitHub than on BitBucket:

For GitHub, this works, has documentation and various places with tips:

In fact it is a reason for some people to move public projects from Bitbucket to GitHub.

For private repositories that is different as GitHub charges for private repositories, but BitBucket has free private repositories.

Note: if you go the npm way, then you might want to have absolute URLs: Add images to readme.md in GitHub – Stack Overflow.

–jeroen

via: git – How to add screenshot to READMEs in github repository ? – Stack Overflow.

Posted in BitBucket, Development, DVCS - Distributed Version Control, git, GitHub, MarkDown, Mercurial/Hg, Power User, Source Code Management, SourceTree | Leave a Comment »

Dynamic DNS through NO-IP: keeping your hosts current, and your NO-IP account happy.

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 »

Wanneer is mijn huis nou eigenlijk gebouwd? – AT5

Posted by jpluimers on 2015/05/18

Wanneer is mijn huis nou eigenlijk gebouwd? – AT5.

Directe link: http://code.waag.org/buildings/#52.3674,4.9099,13

Our house is from the mid 1990s.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Sneak Preview – Build your own vSphere 6 home datacenter in about an hour – YouTube

Posted by jpluimers on 2015/05/16

Interesting: Sneak Preview – Build your own vSphere 6 home datacenter in about an hour – YouTube.

–jeroen

Posted in ESXi6, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

Oh wow. Apparently all S3 buckets are also BitTorrent trackers.

Posted by jpluimers on 2015/05/16

Interesting:

There is no extra charge for use of BitTorrent with Amazon S3. Data transfer via the BitTorrent protocol is metered at the same rate as client/server delivery. To be precise, whenever a downloading BitTorrent client requests a “piece” of an object from the…

Note

You can get torrent only for objects that are less than 5 GB in size.

via Using BitTorrent with Amazon S3 – Amazon Simple Storage Service.

–jeroen

via Oh wow. Apparently all S3 buckets are also BitTorrent trackers..

Posted in Amazon S3, Cloud Apps, Cloud Development, Development, Internet, Power User | Leave a Comment »

From batch file or shortcut: start Windows Update (via: Windows 7 Help Forums)

Posted by jpluimers on 2015/05/15

Call either of these from a batch file or Windows shortcut to end up at the Windows Update screen in the Control Panel:

%windir%\System32\rundll32.exe url.dll,FileProtocolHandler wuapp.exe
%windir%\explorer.exe shell:::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}

Notes:

  • I’ve tested this in Windows 7, 8.x and 9 and it works fine in all these.
  • Unlike Control Printers calling Control Updates does not work.
  • I suspect there are many more magic GUID values you could use for other functions because the built-in syntax has been there for a long time.

–jeroen

via: Windows Update Shortcut – Create in Windows 7 – Windows 7 Help Forums.

Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Leave a Comment »

Insightful : SE-Radio Episode 225 Brendan Gregg on Systems Performance by…

Posted by jpluimers on 2015/05/14

Insightful :

SE-Radio Episode 225 Brendan Gregg on Systems Performance by Software Engineering Radio – The Podcast for Professional Software Developers

https://player.fm/1QFJsZ

On dtrace, stack tracing bottlenecks, CPU cached vs non cached being the new bottleneck like uncached/cached disk IO used to be, heat-maps of performance and much more.

He wrote a great book too: Systems Performance: Enterprise and the Cloud: Brendan Gregg: 9780133390094: Amazon.com: Books.

–jeroen

via: Insightful : SE-Radio Episode 225 Brendan Gregg on Systems Performance by….

Posted in Development, Software Development | Leave a Comment »

Resolve issues automatically when users push code in Bitbucket and GitHub

Posted by jpluimers on 2015/05/14

I tend to forget some of the keywords you can put into BitBucket commit messages to relate them to certain issues/bugs/tickets

Read the rest of this entry »

Posted in BitBucket, Development, GitHub, Software Development, Source Code Management | Leave a Comment »

On the Delphi TCommandParser class for parsing command-lines and arguments (via: Suggestions for how to define command line parameters – Stack Overflow)

Posted by jpluimers on 2015/05/13

A while ago, I posted [WayBack] the below StackOverflow answer. Recently a friend asked me about command-line parsing in Delphi, so here is the re-run:

Delphi contains a really nice unit called CommandParser with a [WayBack] TCommandParser class that does commandline parsing for you. Since it has [WayBack] virtually no documentation, here are a few things to get started. It works even in Delphi 2007.

I have a HiddenExecutable example at our open source bo repository.

Basically you:

  • TComponent that contains the properties you want to expose as commandline parameters (that is THiddenExecuteSettings in the HiddenExecuteSettingsUnit
  • a commandline parser controller. In our case THiddenExecuteArguments in theTHiddenExecuteArgumentsUnit (in retrospect not such a good name) that contains an InitCommandLine method that sets up a TCommandParser instance passing it your TComponent
  • It then executes a couple of [WayBack] AddSwitch calls to setup the parameters with both abbreviated and full commandline switches (like h and help)
  • ProcessCommandLine method on the TCommandParser instance to process the commandline and fill the properties of your TComponent (in my example, this is done in the ProcessCommandLine method).

Now comes the fun:

  • TCommandParser has a HelpText method that fully automatically assembles a helptext based upon what you fed it with the AddSwitch methods.
  • TCommandParser also has a SaveOptions method that allows you to save the current settings of your TComponent into a settings file.

The Delphi units you need are these which you can get from the Embarcadero [WayBack] radstudiodemos.sourceforge.net demo repository:

CommandParser in '...\radstudiodemos.sourceforge.net\branches\RadStudio_XE2\Delphi\Database\dbExpress\Utils\CommandParser.pas',
PropertyHelpers in '...\radstudiodemos.sourceforge.net\branches\RadStudio_XE2\Delphi\Database\dbExpress\DbxDataPump\PropertyHelpers.pas',
ParseIds in '...\radstudiodemos.sourceforge.net\branches\RadStudio_XE2\Delphi\Database\dbExpress\DbxDataPump\ParseIds.pas',

Edit: [WayBack] John Kaster wrote a nice [WayBack] article on EDN that includes [WayBack] more details on using the TCommandParser.

Note the above mentioned code mostly is on [WayBack] https://bitbucket.org/jeroenp/wiert.me/src/tip/Native/Delphi/Apps/Console/HiddenExecuteConsoleProject

Since Delphi XE7, this unit does not ship with Delphi any more, but it is still at [WayBack] RAD Studio Demo Code / Code / [r2029] /branches/RadStudio_XE6/Object Pascal/Database/dbExpress/Utils/CommandParser.pas.

–jeroen

via: [WayBack] delphi – Suggestions for how to define command line parameters – Stack Overflow.

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