Archive for 2013
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 »
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 »
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:
- ZFS – Community – Google+.
- zfs – Sanity check on 40TB server configuration – Server Fault
- QUESTION – ZFS Memory Requirements for large storage | FreeNAS Community
- (1) Het grote ZFS topic – Opslagtechnologie – GoT.
- CiPHER – Profiel – Tweakers.
- Vraag het aan CiPHER! – CiPHER’s Storageblog – Tweakblogs – Tweakers.
- Het grote DIY RAID NAS topic deel 3 – Opslagtechnologie – GoT.
- Performance tuning – OpenZFS.
- Aaron Toponce : ZFS Administration, Part XV- iSCSI, NFS and Samba.
- The State of ZFS on Linux – ClusterHQ.
- Smokin’ Mirrors (Jeff Bonwick’s Blog). (On Resilvering: the ZFS term for rebuilding after a disk failure)
- Building a NAS Server « Super User Blog. (with FreeNAS and ZFS).
- Oracle Solaris ZFS Performance: 10 Easy Tips.
- DIY: Home NAS Box with OpenSolaris and ZFS (English version) (Zhong’s weblog).
- Synology Inc. Online Community Forum • View topic – ZFS for business.
- raid – ZFS on top of Hardware Mirroring, or just mirror in ZFS? – Server Fault.
- ZFS best practices with hardware RAID – Server Fault.
- Hottest ‘zfs’ Answers – Super User.
- Samba with ZFS.
- Entropy Overload: ZFS/Solaris as a NAS.
- nas – ZFS moving drives around – Super User.
- freebsd – Setting up a home server – what to use? (ZFS vs btrfs, BSD vs Linux, misc other requirements) – Super User.
- How to use ZFS on linux easily (without paths like /var/run/zfs) or as non-root – Super User.
- compression – ZFS compressed and deduped filesystem on file – Super User.
- Access a ZFS volume in Windows? – Super User.
- Ditto Blocks – The Amazing Tape Repellent (Flippin’ off bits).
- NAS – ZFS system versus NTFS or EXT4 system – Super User.
- ssd – which ZFS-like filesystem can optimize volume selection based on file access patterns? – Super User.
- NexentaStor: What’s new in auto-sync replication.
- osx – What is the status of ZFS on Mac OS X? – Stack Overflow.
- zfs fuse – Replacing a recovered hard disk in a ZFS pool – Server Fault.
- pool sizes: ZFS and SAN — best practices? – Server Fault.
- virtualization – Hosting a ZFS server as a virtual guest – Server Fault.
- 4k vs 512byte sectors: nexenta – ZFS (NexentaStor) and 4k Advanced Format Partition Alignment – Server Fault.
- solaris – ZFS – how to partition SSD for ZIL or L2ARC use? – Server Fault.
- cache – For L2ARC and ZIL: is it better to have one large SSD for both, or two smaller SSDs? – Server Fault.
- debian – ZFS endless resilvering – Server Fault.
- raid – Are consumer class hard disks okay for zfs? – Server Fault.
- ZFS, ZIL, IOPS, SSD, supercapacitors, etc: linux – Best filesystem choices for NFS storing VMware disk images – Server Fault.
- ZFS: How do you restore the correct number of copies after losing a drive? – Server Fault.
- solaris – How to upgrade a ZFS RAID-Z array to larger disks on OpenSolaris? – Server Fault.
- memory usage – How large is my ZFS dedupe table at the moment? – Server Fault.
- Aaron Toponce : ZFS Administration, Part II- RAIDZ.
- zfs – Anybody have experience with using Nexenta? – Server Fault.
- ZIL, L2ARC, SSD, RAM, latency: Hey y’all. My NAS’s ZFS disk latency (through NFS and GigLAN) sucks big time:….
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 »
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:
- 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.
- 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
- PageChemistry puns
I’m in my element
Chemistry jokes
are elemental
–jeroen
Posted in About, Opinions, Personal | Leave a Comment »
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 »
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 »
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 »
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 »
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 then. Full 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 »
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 »