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

Archive for 2013

ASUS RT N66U did not update DDNS with changed IP addres

Posted by jpluimers on 2013/06/11

Today my router had an IP-address change, but didn’t update the DynDNS.org information in my My Host Services | My Dyn Account. Which meant I could not “phone home”, as I didn’t know the new IP-address**.

Lesson re-learned:

During initial router configuration, watch the router logs, as you might have accidentally updated the DynDNS.org by hand, not by your router

Had this in the ASUS Wireless Router RT-N66U – General Log:

Jun 11 08:01:53 notify_rc : restart_ddns
Jun 11 08:01:53 ddns: clear ddns cache file for server setting change
Jun 11 08:01:53 ddns update: connected to members.dyndns.org (204.13.248.111) on port 80.
Jun 11 08:01:53 ddns update: server output: HTTP/1.1 200 OK^M Date: Tue, 11 Jun 2013 06:01:53 GMT^M Server: Apache^M X-UpdateCode: X^M Content-Length: 7^M Connection: close^M ^M notfqdn
Jun 11 08:01:53 ddns update: malformed hostname: myhostname

The problem: hostname should not only be the name of the host, but the FQDN of the host. Read the rest of this entry »

Posted in ASUS RT-N66U, Network-and-equipment, openSuSE, Power User, SuSE Linux | Tagged: , , , , | 2 Comments »

.NET/C#: from Unicode to ASCII (yes, this is one-way): converting Diacritics to “regular” ASCII characters.

Posted by jpluimers on 2013/06/11

A while ago, I needed to export pure ASCII text from a .NET app.

An important step there is to convert the diacritics to “normal” ASCII characters. That turned out to be enough for this case.

This is the code I used which is based on Extension Methods and this trick from Blair Conrad:

The approach uses String.Normalize to split the input string into constituent glyphs (basically separating the “base” characters from the diacritics) and then scans the result and retains only the base characters. It’s just a little complicated, but really you’re looking at a complicated problem.

Example code:

using System;
using System.Text;
using System.Globalization;

namespace StringToAsciiConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            string unicode = "áìôüç";
            string ascii = unicode.ToAscii();
            Console.WriteLine("Unicode\t{0}", unicode);
            Console.WriteLine("ASCII\t{0}", ascii);
        }
    }

    public static class StringExtensions
    {
        public static string ToAscii(this string value)
        {
            return RemoveDiacritics(value);
        }

        // http://stackoverflow.com/questions/249087/how-do-i-remove-diacritics-accents-from-a-string-in-net
        private static string RemoveDiacritics(this string value)
        {
            string valueFormD = value.Normalize(NormalizationForm.FormD);
            StringBuilder stringBuilder = new StringBuilder();

            foreach (System.Char item in valueFormD)
            {
                UnicodeCategory unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(item);
                if (unicodeCategory != UnicodeCategory.NonSpacingMark)
                {
                    stringBuilder.Append(item);
                }
            }

            return (stringBuilder.ToString().Normalize(NormalizationForm.FormC));
        }
    }
}

–jeroen

Posted in .NET, .NET 3.5, .NET 4.0, .NET 4.5, ASCII, C#, C# 3.0, C# 4.0, C# 5.0, Development, Encoding, Software Development, Unicode | Leave a Comment »

More ESXi5 installation steps

Posted by jpluimers on 2013/06/10

(note: part of this post is unfinished, but I wanted to make sure all the links are publicly accessible, so I posted earlier and incomplete)

I already did a few ESXi5 postings (they apply to 5.1 as well) of which the most important are:

Time to finish up some additional installation steps (with a big thanks to Matthijs ter Woord):

Read the rest of this entry »

Posted in BIOS, Boot, ESXi5, ESXi5.1, Hardware, HP XW6600, Keyboards and Keyboard Shortcuts, Power User, PowerCLI, Virtualization, VMware, VMware ESXi, Wake-on-LAN (WoL), Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

VS2012.2 ISOs for Visual Studio Updates: off-line installers the way they should be (via: The Visual Studio Blog)

Posted by jpluimers on 2013/06/07

I got a bit sick of the VS2012.2.exe on-line installer having to re-download each piece on every Visual Studio 2012 RTM machine to upgrade.

Here is the VS2012.2.iso for off-line installation.

Found it through Provide Visual Studio updates as an ISO image for offline installation – Customer Feedback for Microsoft.

–jeroen

Announcing availability of ISOs for Visual Studio Updates – The Visual Studio Blog – Site Home – MSDN Blogs.

.

Posted in .NET, .NET 4.5, Development, Software Development, Visual Studio 11, Visual Studio and tools | Leave a Comment »

Are Delphi programmers more happy than other programmers? (via: Sentiment Analysis of Github Commits)

Posted by jpluimers on 2013/06/07

Interesting graph here: Evented Github Adventure – Sentiment Analysis of Github Commits.

It seems that Delphi programmers have a much better happy/sad word rate than other programmers.

–jeroen

 

Posted in Delphi, Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

Windows 8 Task Manager: how to show the CPU time column

Posted by jpluimers on 2013/06/07

As a follow-up on my question cpu usage – Windows 8 Task Manager: how to enable the “CPU Time” column in the Processes tab? – Super User:

You can show the *CPU time* column in the Windows 8 Task Manager, it just well hidden.

These steps and screenshots show how:

  1. Start the Task Manager, then click on More Details
  2. You end up in the Processes tab, now click on the Details tab
  3. In the Details tab, you see there is no CPU time column, only a CPU column
  4. Right click on the header of the Details tab, in the the pop-up menu choose Select columns
  5. In the dialog, put a check-mark in front of CPU time
  6. then press the OK button
  7. Now you have the CPU time column in the Details tab

Read the rest of this entry »

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

Fonera FON2100A: Why is the MAC address online different than the one found on my router? (via: Fon Support)

Posted by jpluimers on 2013/06/07

From the FON tech support pages:

Why is the MAC address online different than the one found on my router?

Philippe

posted this on March 08, 2011 09:29

If you look at your router information in your user area at fon.com, you will notice that the MAC ID is different than the one found at the bottom of the Fonera.

This is nothing to be worried about. Both MAC IDs are associated with the same Fonera. The MAC ID in the user area is associated with the FON_ signal.

The MAC ID found at the bottom of the Fonera refers to the LAN port.

Specifically for the FON2100A, there are 2 MAC addresses based on the sticker on the bottom of your FON:

  • MAC address on the sticker = MAC for WAN,
    for instance 00:18:84:XX:YY:f6
  • MAC address for FON_FREE_INTERNET WiFi = sticker+1,
    for instance  00:18:84:XX:YY:f7
  • MAC address for MyPlace WiFi = sticker+2,
    for instance  00:18:84:XX:YY:f8

001884 is the OUI for Fon Technology S.L.

You can find that for instance at MAC Address / WWN / Vendor Lookup – WintelGuy.com –.

–jeroen

via: Why is the MAC address online different than the one found on my router? : Fon Support.

Posted in Network-and-equipment, Power User | Leave a Comment »

Ogg encoder alternatie AoTuv seems to be great

Posted by jpluimers on 2013/06/07

A while ago (actually, almost two years ago <g>), Chinese Sausage wrote the below answer; it’s on my research list to see if I can stream out my audio library:

Re: Best format to encode into?

« Reply #2 on: 2011-08-14, 14:50:18 »

When space drive IS a concern, then ogg (aoTuV version) is the best format quality-wise (to these ears), as it is more true to the original music source, and it leaves less noticeable noise artifacts than the other encoders.  However, aac is almost just as good and also more compatible with mobile phones, iPod’s and other external players, so it is probably a better choice if you want to share your music files with anybody who is not computer savvy. The main thing I do not like about aac (at least HE-AAC) is that it does not support gapless playback, which is particularly annoying if you listen to live albums, or other music which has continuous playback.

At 64kbps though, there is none better than ogg aoTuV. Here is a link to the latest version, in case you want it.
Just replace the ogg.dll and vorbis.dll files to the existing ones in your encoding program (I use MediaMonkey to encode files to ogg).

Hope this helps!

--jeroen

via: Best format to encode into?.

Posted in BASS.NET, Development, Media Streaming, Power User, Software Development, Un4seen BASS Audio Library | Tagged: | Leave a Comment »

Great video on Software Craftsmanship

Posted by jpluimers on 2013/06/06

About 3 years old (it was at Devoxx 2009), but still a great talk at Parleys.com: Craftsmanship and Policy Presentation by Robert C. Martin.

It was announced as:

Is management ready for the tsunami of professionalism that’s on the horizon?
Enjoy this inspiring and enthusiastic Devoxx keynote by Uncle Bob.

–jeroen

Posted in Development, Software Development | Leave a Comment »

Fonera Simpl Get Started : Fon Support (FON2100A)

Posted by jpluimers on 2013/06/05

So I won’t forget where the FON2100A instructions are: Fonera Simpl Get Started : Fon Support.

Posted in Fonera FON2100A, Network-and-equipment, Power User | Leave a Comment »