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 2014

In my research list: Bvckup 2 | Simple fast backup

Posted by jpluimers on 2014/01/07

Need to check this out later this month: Bvckup 2 | Simple fast backup.

–jeroen

Posted in Power User, Windows | Leave a Comment »

.NET/Visual Studio: The ContextSwitchDeadlock doesn’t necessarily mean your code has an issue.

Posted by jpluimers on 2014/01/07

Thanks Pedro! (emphasis below is mine)

The ContextSwitchDeadlock doesn’t necessarily mean your code has an issue, just that there is a potential.

If you go to Debug > Exceptions in the menu and expand the “Managed Debugging Assistants”, you will find ContextSwitchDeadlock is enabled.

If you disable this, VS will no longer warn you when items are taking a long time to process.

In some cases you may validly have a long-running operation.

It’s also helpful if you are debugging and have stopped on a line while this is processing – you don’t want it to complain before you’ve had a chance to dig into an issue.

–jeroen

via: c# – Visual Studio: ContextSwitchDeadlock – Stack Overflow.

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, Development, Software Development, Visual Studio 11, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »

Oops: Sendmail ok on 127.0.0.1 but not ip address

Posted by jpluimers on 2014/01/06

When configuring a fresh SUSE machine, I forgot one tiny detail resulting in Sendmail ok on 127.0.0.1 but not ip address.

Solution:

Please change in /etc/sysconfig/mail from SMTPD_LISTEN_REMOTE="no" to

SMTPD_LISTEN_REMOTE="yes"

then run SuSEconfig

and rcsendmail restart

–jeroen

via: Re: [SLE] Sendmail ok on 127.0.0.1 but not ip address.

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

Delphi SOAP: some reminders to Self

Posted by jpluimers on 2014/01/04

Hadn’t been doing SOAP in Delphi for a while, and needed to send some Delphi data structures over the write where both Client and Server were going to be Delphi.

These links helped me:

If both client and server are Delphi, you can share the interface units and registration.

Note: since native Delphi SOAP support uses old-skool RTTI, so any property you want to go over the wire needs to be published, not public.

If you want to go beyond that, or use other protocols than SOAP, use libraries for Delphi like RemObjects SDK.

–jeroen

Posted in Conference Topics, Conferences, Delphi, Delphi XE3, Delphi XE4, Delphi XE5, Development, Event, Software Development | Leave a Comment »

David Rodriguez: a few nice posts on SQL (via: Google+)

Posted by jpluimers on 2014/01/04

David Rodriguez posted a few nice SQL related entries on G+:

–jeroen

via: David Rodriguez – Google+.

Posted in Database Development, Development, SQL, SQL Server | Leave a Comment »

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 »