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 February, 2011

Personal Blocklist (by Google) – Chrome Web Store

Posted by jpluimers on 2011/02/18

The new Personal Blocklist extension for Google Chrome allows you to block certain patterns from the Google search results.

Ideal for those “link aggregation” sites that Google itself does not block yet.

The input from this tool will be used to improve the Google Search results for others tool.

The personal blocklist extension will transmit to Google the patterns that you choose to block. When you choose to block or unblock a pattern, the extension will also transmit to Google the URL of the web page on which the blocked or unblocked search results are displayed. You agree that Google may freely use this information to improve our products and services.

–jeroen

via Personal Blocklist (by Google) – Chrome Web Store.

Posted in Chrome, Power User, Web Browsers | Leave a Comment »

ClipName from the PC TimeWatch people – Freeware

Posted by jpluimers on 2011/02/18

Every once in a while I need to copy a bunch of filenames to the clipboard.
This is where the freeware tool [WayBackClipName comes in action: it can copy them in various formats (and works much better than the similar [WayBackClipPath, which can only copy them as CSV)

Quote from the ClipName page:

ClipName is also a Context Menu extension copying the full pathname of the right-clicked file to the clipboard. This new version supports copy of multiple filenames either as a space separated list or as a CRLF separated list. DOS filenames (8.3) can now also be copied as well as the URL encoded name and the UNC name for remote files. Clipname supports a Copy command for filenames without including any path, URL Encoding for multiple selections and style encoding for Microsoft Word, Microsoft OneNote,… A version running under Windows Vista 64-bit is now available. It also allows to copy the UNC name for local files and folders. Version 1.3 adds the capability of copying the target URL for Internet Shortcuts from Windows Explorer and from within the IE Favorites bar.

It comes both in 32-bit x86, and in x64 versions.

–jeroen

via

 

Posted in Clipboard, Power User, Windows, Windows 7, Windows Vista, Windows XP | 2 Comments »

Some #reflector URLs

Posted by jpluimers on 2011/02/17

While it is still free…

The current version: http://reflector.red-gate.com/Reflector.zip

The “Check for Updates” entry in the “Help” menu checks this URL: http://reflector.red-gate.com/Reflector.version

Which currently returns:

6.6.0.30
6.1.0.0
http://reflector.red-gate.com/Download.aspx?File=Reflector&Client={Client}&Version={Version}

When Reflector detects there is a new version, you get a dialog like this:

—————————
.NET Reflector
—————————
A new version of .NET Reflector is available. Do you want to install automatically?
—————————
Yes No
—————————

When you press [Yes], it starts downloading from a URL that depends on the current version: http://reflector.red-gate.com/Download.aspx?File=Reflector&Client=Reflector&Version=6.5.0.135

{Client} was replaced by Reflector, and {Version} was replaced by 6.5.0.135 (the version of the currently running Reflector).

–jeroen

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, Development, Software Development | 1 Comment »

Verifying if two hosts are on the same IPv4 network

Posted by jpluimers on 2011/02/17

Recently, I wrote a bunch of code both in C# and Delphi to verify if two hosts are on the same IPv4 network.

Even though the public IPv4 address space is exhausted (IANA recently allocated the final two IPv4 blocks of their primary pool to APNIC, then allocated the five remaning /8 IPv4 blocks to the RIRs, thereby depleting the IPv4 pool), they are still used a lot, especially in private networks.

Over the next couple of weeks, you will see a couple of blog posts explaining:

  • how to get the IPv4 addresses and network masks of network interfaces in your computer
  • how to convert those to and from strings
  • how to convert a host-name to a list of IP addresses
  • how to lookup the current host-name
  • how network masks are related to counting leading/trailing ones and zeros
  • how to compare two IPv4 addresses given they have the same network masks

Those blog posts will have sample code in both Delphi and C#. And there will be unit tests to verify the underlying code.

–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Delphi, Development, Software Development | 2 Comments »

telerik/razor-converter: Tool for converting WebForms Views to Razor (C# Only) – GitHub

Posted by jpluimers on 2011/02/16

Does this finally end the ASP.NET WebForms days?

Tool for converting WebForms Views to Razor C# Only

–jeroen

via: telerik/razor-converter – GitHub.

Posted in .NET, ASP.NET, C#, Development, Software Development | Leave a Comment »

some good tips on C# Excel Interop Use from Sam Allen

Posted by jpluimers on 2011/02/16

Each time I need to do Office COM interop, I wish they had overloaded methods: all those Type.Missing entries, and speed issues.

I know C# 4.0 makes missing parameters easier, but a lot of projects are not yet in Visual Studio 2010.

So this C# Excel Interop Use page by Sam Allen comes in handy.

–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, Development, Software Development | Leave a Comment »

David Ebbo: Register your HTTP modules at runtime without config

Posted by jpluimers on 2011/02/15

On the one hand it is good to be able to do things as early in the application startup phase as possible.

On the other hand: What’s next? A PrePreApplicationStartMethod that allows you to fiddle with the PreApplicationStartMethod behaviour?

–jeroen

via: David Ebbo: Register your HTTP modules at runtime without config.

Posted in .NET, ASP.NET, Development, Opinions, Software Development | Leave a Comment »

If Your Visual Studio 2005 Solutions Open Slowly, Check WebsiteCache | Thomas F. Abraham – On Technology

Posted by jpluimers on 2011/02/15

If you use Visual Studio 2005 for some old projects that have not yet been converted, and they open very slowly: read this post on If Your Visual Studio Solutions Open Slowly Check WebsiteCache by Thomas F. Abraham.

Emptying your WebsiteCache directory solves the issue: it had about 30-thousand empty directories in it.

The location depends on your Windows version:

  • Windows XP, Windows Server 2003 and below:
    “%USERPROFILE%\Local Settings\Application Data\Microsoft\WebsiteCache”
  • Windows Vista, Windows Server 2008 and up:
    “%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache”

This bug has been fixed in Visual Studio 2008 and up.

–jeroen

via:  If Your Visual Studio Solutions Open Slowly, Check WebsiteCache | Thomas F. Abraham – On Technology.

Posted in .NET, C#, C# 2.0, Development, Software Development, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »

Official Google Blog: Advanced sign-in security for your Google account

Posted by jpluimers on 2011/02/14

Google just introduced 2-step authentication for all their users.

It’s an extra step, but it’s one that significantly improves the security of your Google Account because it requires the powerful combination of both something you know—your username and password—and something that only you should have—your phone.

–jeroen

via Official Google Blog: Advanced sign-in security for your Google account.

Posted in Power User | Leave a Comment »

Google Chrome Portable | PortableApps.com – Portable software for USB, portable and cloud drives

Posted by jpluimers on 2011/02/14

If you want to test drive the Google Chrome browser, or cannot install it, use the portable version.

–jeroen

via: Google Chrome Portable | PortableApps.com – Portable software for USB, portable and cloud drives.

Posted in Power User | 1 Comment »