The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140417-Windows-8.1-Update-says-it-failed-but-it-succeeded

    20140417-Windows-8.1-Update-says-it-failed-but-it-succeeded--Windows-Help-and-Support--cannot-find-any-info--how-surprising-it-never-does

    20140329-VMware-vSphere-Client-4.1-retry-with-compatibility-settings

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,254 other followers

Archive for the ‘Power User’ Category

Project Naptha

Posted by Jeroen Pluimers on 2014/04/23

Interesting, not only because it is available as Chrome Extension:

Project Naptha automatically applies state-of-the-art computer vision algorithms on every image you see while browsing the web. The result is a seamless and intuitive experience, where you can highlight as well as copy and paste and even edit and translate the text formerly trapped within an image.

–jeroen

via: Project Naptha.

Posted in OCR, Power User | Leave a Comment »

rsync: the MacGyver tool for making backups on *nix based operating systems

Posted by Jeroen Pluimers on 2014/04/23

I’ve been using rsync as my MacGyver style backup-tool of choice on *nix systems and sometimes even Windows systems.

It works both locally and remotely, is simple to setup and over the years has gathered a lot of nifty functionality.

It is way easier to backup using rsync one directory to another than using tar (tar has the benefit of putting everything in one archive though) using a command like this:

rsync -aiv /path/to/source/directory /path/to/destination/directory

For remote copies, I usually add replace -aiv with -aivz or with -aiz.

Given the ubiquitous of hard disk space, I hardly compress or archive directory trees for archival purposes any more.

For an introduction of basic functionality read Everything Linux – A Tutorial on Using Rsync. An article from 1999 that is still very valid now.

Besides my praise for rsync, there are a few small things I want to mention in this article:

  1. Sometimes more is less. Recently someone asked me how to force rsync not to keep the time stamps of files.
    He wasn’t the first to ask.
    The solution is simple: since the -a option archive option implies -t, so the solution is to expand -a into its parts -rlptgoD, then remove the -t from that.
  2. The –link-dest=DIR option was added in about 2004 (later: no, link-dest was added to rsync 2.5.6 in januari 2003), which allows you to do incremental backups. Read the rest of this entry »

Posted in *nix, bash, Cygwin, Development, Linux, Power User, Scripting, Software Development, SuSE Linux | 1 Comment »

WinToUSB – Install and Run Windows/WinPE on a USB drive!

Posted by Jeroen Pluimers on 2014/04/22

Interesting: WinToUSB – Install and Run Windows/WinPE on a USB drive!.

Now lets find out how big the flash drive needs to be, then a speedy flash drive which is big enough.

–jeroen

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

Microsoft OneDrive for Business modifies files as it syncs | Myce.com

Posted by Jeroen Pluimers on 2014/04/22

Wow: Microsoft OneDrive for Business modifies files as it syncs | Myce.com.

For now Microsoft Cloud Storage is not the place for my data to be.

(Note: OneDrive used to be called SkyDrive)

The only cloud storage that worked for me without too much trouble is Copy.com. My referral there: https://copy.com?r=3NGul6.

–jeroen

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

In C#, given a DateTime object, how do I get a ISO8601 date in string format? – Stack Overflow

Posted by Jeroen Pluimers on 2014/04/22

The first bulleted link below has been living in my drafts like forever (i.e. somewhere since mid June 2009), so time to write a bit about ISO 8601 and .NET.

First a few links about converting a DateTime into ISO 8601 string format:

Some solutions use the “K” as a time zone specifier. At first, I couldn’t find any documentation for it, not even Google Search for Google Search for “ssK” DateTime ToString returns anything useful.

Later on, I found The “K” Custom Format Specifier in Custom Date and Time Format Strings.

So my preferred solutions for me are these:

  • System.DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ssK");
  • System.DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssK");

I avoid these:

  • System.DateTime.Now.ToString("o");
    because it gets you too many digits in the second fracion.
  • System.DateTime.Now.ToUniversalTime().ToString("s") + "Z";
    because it is less clear what it does (might be resolved with a comment).

–jeroen

–jeroen

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, ISO 8601, Software Development | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 1,254 other followers

%d bloggers like this: