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

Archive for June, 2013

Interesting series of Hak5 videos on technology stuff like security, Arduino, Linux, the Web, …

Posted by jpluimers on 2013/06/28

Watch the most interesting past episodes and Linux tips from Hak5 during your summer holiday, then make sure you follow them.

Oh, and I need to find out of there are European resellers of their shop.

–jeroen

via: Episodes | Technolust since 2005Technolust since 2005.

Posted in Uncategorized | Leave a Comment »

mutt notes

Posted by jpluimers on 2013/06/28

When the webmail doesn’t do what I want, I fall back on mutt on the Linux command line prompt.

It is an immensely strong and stable text based mail client, but – beyond the basics – has a steep learning curve.

In fact it is so stable, that the CVS repository rarely gets commits

So below a few notes that I used to clean up truckloads of mail.

  1. Read Real Programmers: Jump Start: Mutt — by hackers, for hackers. It is a very short introduction with the most powerful.
  2. Read My first mutt : Searching mail (the best article on My first mutt), and My first mutt : mutt overview. They why limit is far more useful than search, and the basic UI concept of mutt.
  3. The mutt documentation has a text based man page.
  4. But there is both a html manual and text manual
    (the devel doc branch has both html manual and text manual too).
  5. A lot of actions in mutt depends on patterns which are based on regular expressions.

For me the most powerful combination of steps is this:

  1. Limit the message view to a search pattern of messages you are looking for
  2. Tag the (groups of) messages you want to operate on
  3. Use the semicolon tag-prefix command to operate only on the tagged messages [Wayback/Archive] Mutt: apply command to all tagged messages – Super User
    Once you have tagged the desired messages, you can use the tag-prefix operator, which is the ; (semicolon) key by default. When the tag-prefix operator is used, the next operation will be applied to all tagged messages if that operation can be used in that manner.

A few more details are below. Read the rest of this entry »

Posted in *nix, Cygwin, Linux, Power User | 1 Comment »

A constant source of confusion: Simplicity

Posted by jpluimers on 2013/06/27

Once every while you come across a post that is so good, you add another feed to your RSS list. This time I added Su-Shee’s posts,

Quote from: A constant source of confusion: Simplicity.

what is it really about all this simplicity stuff

It is a post about IT development. Teams. Platforms. Tools. Frameworks. Etc.

Striking a balance to keep things simple enough to be manageable is always key and her examples are just great!

–jeroen

via: A constant source of confusion: Simplicity.

Posted in Development, LifeHacker, Opinions, Power User, Software Development | Leave a Comment »

PowerShell: fixing script signing errors even after you had “Set-ExecutionPolicy RemoteSigned”

Posted by jpluimers on 2013/06/27

Once every while PowerShelll users get an error like this:

PS C:\bin> . .\DownloadedScript.ps1
. : File C:\bin\DownloadedScript.ps1 cannot be loaded.
The file C:\bin\DownloadedScript.ps1 is not digitally signed.
The script will not execute on the system. For more information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ . .\DownloadedScript.ps1
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\bin>

I recently had it too, but was surprised this happened as I took the steps in my previous blog posts on this topic: Read the rest of this entry »

Posted in CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »

.NET/log4net configuration: LevelMatchFilter with DenyAllFilter to discard several log levels within a range

Posted by jpluimers on 2013/06/27

log4net configuration can be a tad intimidating at first.

When you do not want to log all levels, and the levels you want to log are not noncontinuous, then you can combine the LevelMatchFilter with a DenyAllFilter.

The filter classes in the log4net do not provide much help on this, but the filters section in the log4net manual is better.

This StackOverflow question has a very nice answer explaining it: Discarding several log levels within a range with log4net.

–jeroen

via: Discarding several log levels within a range with log4net – Stack Overflow.

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

Embedded Interop Assemblies (via: CLR and DLR and BCL, oh my! – Whirlwind Tour around .NET 4) – Scott Hanselman

Posted by jpluimers on 2013/06/26

Need to put some research in this, as I have the idea that under some circumstances embedding Office interop assemblies not always works.

–jeroen

via: CLR and DLR and BCL, oh my! – Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1 – Scott Hanselman.

Posted in .NET, .NET 4.0, .NET 4.5, Development, Office PIA, Software Development | Leave a Comment »

Steps for setting up SvnBridge with TFS2012 (via SvnBridge forum at CodePlex)

Posted by jpluimers on 2013/06/25

This [WayBackSvnBridge – Use TortoiseSVN with Team Foundation Server – View Discussion shows you how to setup SvnBridge with TFS 2012 and IIS 7.5.

20170517: a fork is at https://github.com/andim2/SvnBridge

[WayBack] SvnBridge on CodePlex.

–jeroen

Posted in Development, Software Development, Source Code Management, Subversion/SVN, TFS (Team Foundation System) | Leave a Comment »

Don’t use PPTP, and don’t use IPSEC-PSK either (via: CloudCracker blog)

Posted by jpluimers on 2013/06/24

A while ago, I had to connect to secure data over PPTP.

It reminded me of  this post from about a year ago: via Divide and Conquer: Cracking MS-CHAPv2 with a 100% success rate (now archived at the wayback machine).

Their main point:

MS-CHAPv2 can be cracked within less than a day (and that time will only get less).

Their short conclusion “basically PPTP is dead, and IPSEC-PSK is worse” leads to the recommendation:

This leaves either an OpenVPN configuration, or IPSEC in certificate rather than PSK mode.

Longer quote: Read the rest of this entry »

Posted in IPSec, Network-and-equipment, Power User, PPTP, Security, VPN | 3 Comments »

Spotlight refuses to be enabled on Lion: reboot helped

Posted by jpluimers on 2013/06/24

When Spotlight on my MacBook Air that runs OS X Lion didn’t show any results from the file system any more, I tried a lot of options, but only the final one worked: reboot:


MacBookAir:/ SuperUser$ sudo mdutil -i off
Password:
MacBookAir:/ SuperUser$ ls -al /
MacBookAir:/ SuperUser$ sudo rm -R /.Spotlight-V100
MacBookAir:/ SuperUser$ sudo mdutil -E /
/:
No index.
MacBookAir:/ SuperUser$ sudo mdutil -i on /
/:
Error: unable to perform operation. (-400)
No index.
MacBookAir:/ SuperUser$ sudo mdutil -i on -E /
/:
Error: unable to perform operation. (-400)
No index.
MacBookAir:/ SuperUser$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
com.apple.metadata.mds: Already loaded
MacBookAir:/ SuperUser$ sudo mdutil -as
/:
No index.
/.MobileBackups:
No index.
/Volumes/Firefox:
Indexing disabled.
/Volumes/MobileBackups:
Index is read-only.
/Volumes/MobileBackups/Backups.backupdb:
Index is read-only.
/Volumes/Opera:
Indexing disabled.
MacBookAir:/ SuperUser$ reboot

It was only later that I found out maybe a simpeler solution would have worked: kill all of the mdworker processes like this:

MacBookAir:/ SuperUser$ sudo killall -9 mdworker

–jeroen

Spotlight refuses to be enabled on Lion – Super User.

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook-Air, Power User, SpotLight | 1 Comment »

Fake Internet Connectivity for your Lab (Tricking NCSI) – via: Canberra Premier Field Engineering

Posted by jpluimers on 2013/06/21

If you ever wondered why how in Windows – as of Vista – the NCIS (network connection status indicator) determines if you have a valid internet connection, it is pretty simple, as both these pages explain:

NCIS depends on the msftncis.com domain (link to the checks from IntoDNS) and is for supporting Network Awareness in applications.

The probing is done in this order: Read the rest of this entry »

Posted in Captive Portal, DNS, Internet, Power User, Windows, Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Vista | Leave a Comment »