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 January, 2014

HiFiBerry | HiFi for the Raspberry Pi and more

Posted by jpluimers on 2014/01/04

Interesting audio stuff: HiFiBerry | HiFi for the Raspberry Pi and more.

–jeroen

Posted in Development, Hardware Development, Raspberry Pi | Leave a Comment »

Outlook + Outlook express: email received from Outlook sender does not have any attachment in Outlook Express

Posted by jpluimers on 2014/01/03

A friend of mine uses Outlook Express because that has been with Windows since very early on, and before that with Internet Explorer from version 4 till version 6.

He is the kind of person that does use a computer, but doesn’t like change. No wonder, as he is well into the retirement age and the systems he has used in the past all lasted for a very long time.

So it is going to be a big change for him when he needs to upgrade from Windows XP – that he used for over 10 years – to something else. Probably more on that in a later stage (if Windows Live Mail exists by then).

Back to the problem at hand: he couldn’t see attachments from certain Outlook users, though those users insisted .

I hadn’t used Outlook nor Outlook Express for a long while but it was fairly easy to track down the cause by viewing the message source in either of these two ways:

As soon as you see the full message source, there is a ms-tnef encoded Winmail.dat attachment in the affected messages. You find it by searching for a line that starts with “begin” followed by 2 spaces, “666” or “664” (it is one of the means to fake UUencoded attachments and hide text from Outlook Express).

Winmail.dat is known to cause all sorts of problems, even the NY Times devoted an article about it. It basically encapsulates the content of a message including any attachments into RTF: a Microsoft proprietary – but documented – standard of encoding formatted text.

Outlook Express does not cope with Winmail.dat well: it is a typical example of the one hand doesn’t know what the other is doing.

The “trick” is to configure Outlook for using HTML to format text (or use plain text without formatting) instead of RTF. You can do this either globally, or per recipient in the address book:

So when you use Outlook Express, ask the sender not to use RTF.

–jeroen

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

Know your enemy: Hacking Microsoft Remote Desktop Services for Fun and Profit

Posted by jpluimers on 2014/01/03

All software and protocols has weak points, so it is good to know about the weak points on MSTSC and the RDP protocol: Hacking Microsoft Remote Desktop Services for Fun and Profit.

–jeroen

Posted in Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | Leave a Comment »

Niklaus Wirth’s “Good Ideas, Through the Looking Glass” (via: MetaFilter)

Posted by jpluimers on 2014/01/02

I forgot who pointed me at this, but recently I came across a reference to the Good Ideas, Through the Looking Glass paper by Niklaus Wirth (by many known as the “father” of Pascal, though he has done a lot more – for instance the WSN – , still is involved with the ETH in Zürich, and turns 80 on February 15h).

Back when it appeared in the 2005/2006 timeframe I missed it, and I’m glad to have bumped into just for the historic perspective he offers. I can understand some will disagree with parts of his conclusions and observations, that’s why I like that MetaFilter has a nice page with discussion about it and a link to the PDF version of the paper.

I also like that Niklaus kept active in the field of computer science for so long, similar to Donald Knuth. There is a lot to having a great historic perspective to things.

–jeroen

via: Good Ideas, Through the Looking Glass | MetaFilter.

Posted in Delphi, Development, History, Pascal, Software Development | 3 Comments »

rdesktop: A Remote Desktop Protocol client (open source, runs on X, hosted on sf.net)

Posted by jpluimers on 2014/01/02

Very interesting, especially since rdesktop.org works with Windows Server 2008 R2 and Windows 7 as well, and is stable on x64.

It provides three tools: rdesktop, rdpproxy and seamlessrdp.

Researching this, I also found about TSWindowClipper which allows you to seamlessly integrates remote apps on your client by integrating a DLL inside the MSTSC software using the official virtual channels.

Back to rdesktop: I really wish the documentation was better, but it contains some very interesting source code.

rdesktop is an open source client for Windows Remote Desktop Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user’s Windows desktop. rdesktop is known to work with Windows versions such as NT 4 Terminal Server, 2000, XP, 2003, 2003 R2, Vista, 2008, 7, and 2008 R2.

rdesktop currently runs on most UNIX based platforms with the X Window System, and other ports should be fairly straightforward.

rdesktop is released under the GNU Public Licence (GPL), version 3. Please send feedback, bug reports and patches to the appropriate mailing list. Patches can also be submitted to the SF patch tracker.

rdesktop is a project. See the Sourceforge rdesktop project info and the Wiki for more information.

Status

The latest stable version of rdesktop is 1.7.1 (edit: this was at the time of writing, for the current latest, check here). This versions solves major issues with 64bit version and smartcard support among a few minor fixes.

–jeroen

via rdesktop: A Remote Desktop Protocol client.

Posted in *nix, Development, Linux, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Software Development, SuSE Linux, Windows, Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

.NET/C# – opposite of Path.Combine: remove trailing DirectorySeparatorChar

Posted by jpluimers on 2014/01/01

For a project, I needed to strip the potential Path.DirectorySeparatorChar and Path.AltDirectorySeparatorChar.

Where Path.Combine will combine two paths and insert the DirectorySeparatorChar, I could not find the opposite, so I wrote this little piece of code:

using System.IO;

namespace BeSharp.IO
{
    public class PathHelper
    {
        public static string RemoveTrailingDirectorySeparators(string directory)
        {
            string result = directory.TrimEnd(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
            return result;
        }
    }
}

–jeroen

via:

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 »