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

Archive for 2013

Interesting GetFiles to get a list of files with both an includeMask and excludeMask by Roel van Lisdonk

Posted by jpluimers on 2013/09/25

Roel van Lisdonk probably has one blog reason that is part of my reasons: posting quick notes or snippets of code/text in order to be able to find them back.

I especially like this C# snippet because he uses both an includeMask and excludeMask to filter a DirectoryInfo.GetFiles result.
Clever (:

–jeroen

via: GetFiles, sorted by Creation DateTime, filtered by include file mask and exclude file mask, including subfolders in C#.

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

.NET/C#: When the DbDataAdapter.Update throws an exception, it is a bit tough to find the involved Command

Posted by jpluimers on 2013/09/24

When you call a DbDataAdapter.Update, and it throws an exception, the exception does not include the underlying Command and its parameters.

Since the DbDataAdapter can have three commands for applying changes (DeleteCommand, InsertCommand and UpdateCommand), asking those is a bit inconvenient.

The other way is to attach an event handler to the DAL specific RowUpdated event (for instance SqlDataAdapter.RowUpdated).

This is event is called from the virtual OnRowUpdatedMethod, and has a value parameter of type RowUpdatedEventArgs which contains the Command, and Errors that occurred. Errors is just the Exception that can help indicate what went wrong.

–jeroen

via: DbDataAdapter.Update Method System.Data.Common.

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, Development, Software Development | Leave a Comment »

Some ZFS links

Posted by jpluimers on 2013/09/23

I want to move my storage over from dual RAID5 to ZFS, so here are a few links for my research list:

SSD and supercapacitors

Best practices

Not so good practices

HBAs

Disks

Synchronous writes/ZIL

ZFS streams:

Replication

Reliability/Integrity

Howtos

Trivia

Recovery lessons

–jeroen

Posted in *nix, Power User, ZFS | Leave a Comment »

Sciences jokes…

Posted by jpluimers on 2013/09/20

Came accross the Chemistry Cat jokes on  quickmeme, some of which are more generic science jokes than chemistry ones.

The ones I like most:

  1. PageTeach me about absolutely zero
    0K

    How often do you like chemistry jokes?
    Periodically

    What to do with a sick chemist?
    If you can’t helium, and
    you can’t curium then
    you might as well barium.

    I studied exothermic reactions
    before they were cool.

  2. PageHOH HOH HOH
    Water joke

    Blew my chemistry experiment
    Oxidents happen

    Is silicon the same in Spanish
    Si

    Neutron wants to pay tab
    Bartender: no charge for you

  3. PageChemistry puns
    I’m in my element

    Chemistry jokes
    are elemental

–jeroen

Posted in About, Opinions, Personal | Leave a Comment »

Jeffrey’s Exif viewer: a great non-regex thing on regex.info (:

Posted by jpluimers on 2013/09/19

You’d think that the regex.info site only has information on Jeffrey Friedl’s Mastering Regular Expressions (a great book on RegEx programming) MRE2 Errata,  MRE3 Errata and Where to get egrep (agrep and sourcecode/binary builds).

Not so (:

It also hosts a few other things, mostly having to do with imagery or photography:

–jeroen

Posted in Development, Personal, Photography, Power User, RegEx, Software Development | Leave a Comment »

.NET: some links on merging assembly DLLs into your EXE

Posted by jpluimers on 2013/09/18

Need to research this further, as I’ve seen some Interop DLLs that – when automatically merged from within Visual Studio – will not function correctly.

Keywords: ILMerge, msbuild, mkbundle.

–jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

.NET/C#: Igor Ostrovsky wrote a few great MSDN magazine articles helping you write better threading code

Posted by jpluimers on 2013/09/17

Igor Ostrovsky wrote a few very nice MSDN magazine articles. Not all of them have ended up in the list at MSDN magazine, so here is a more complete list:

Though the articles show the majority of sample code in C#, the actual topics are of great interest to any developer writing .NET code or interfacing to it.

Some keywords in his articles: Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, C, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C++, Delphi, Development, F#, LINQ, PLINQ, Prism, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0 | Leave a Comment »

Interesting: Mac OS X virtual Apple ][, ][+ and //e emulator (Virtual ][ Help)

Posted by jpluimers on 2013/09/16

Virtual ][ Help.

is on my list of things to play with.

–jeroen

Posted in Apple, Mac, Power User | 1 Comment »

Speedup Youtube Playback: Watch Lectures In Half The Time with YouTube’s HTML5 Player

Posted by jpluimers on 2013/09/13

I wish I had kept an eye on it after it was announced (which was 3.5 years ago, but not very stable): The Youtube HTML5 viewer trial.

It has come a long way since thenFull screen it is still not as good as the official one, but the main attraction introduced since is: configurable playback speed!

Yes, you can choose playback at 25%, 50%, 100%, 150% or 200% of the original speed. Ideal for lectures or watching replays of conference sessions.

Quote from the life hacker post LifeHacker on this:

Read the rest of this entry »

Posted in Apple, Chrome, Firefox, Internet Explorer, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, Opera, OS X 10.8 Mountain Lion, Power User, Web Browsers, Windows, Windows 7, Windows 8 | Leave a Comment »

I need to check this out: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices

Posted by jpluimers on 2013/09/12

On my research list:

I need to check out KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices.

It seems to add a lot of normal unix/Linux commands to your Android terminal emulator, but does not require root access.

I usually use a Windows or Mac system to browse the files on my Android device, but this should be much more convenient and aid both software developers and power users.

Now I need a remote ssh access to my Android device (:

–jeroen

via: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices – Kevin Boone’s Web site.

Posted in Android, Android Devices, Development, Mobile Development, Power User, Software Development | Leave a Comment »