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

Archive for April 16th, 2014

Q&A for 2nd Launch Webinar Today for Delphi XE6, C++Builder XE6 and RAD Studio XE6 – DelphiFeeds.com

Posted by jpluimers on 2014/04/16

I just watched the 2nd Launch Webinar Today for Delphi XE6, C++Builder XE6 and RAD Studio XE6.

Below my signature is the Q&A of it. A whole lot of them (:

–jeroen

Welcome to this Embarcadero webinar event!

Read the rest of this entry »

Posted in Delphi, Delphi XE6, Development, Diagram, QC, Software Development, UML | 2 Comments »

Great Android Activity/Fragment lifecycle chart (Steve Pomeroy – Google+)

Posted by jpluimers on 2014/04/16

Thanks a lot Steve Pomeroy! And shame on me for finding out (through Michael Panzer, thanks for your notification) this chart only today (he published this chart on 2013-08-20).

Steve’s quote on it:

After struggling with trying to figure out how various pieces fit together, I’ve done some research and put together the complete Android Activity/Fragment lifecycle chart. This has two parallel lifecycles (activities and fragments) which are organized vertically by time. Lifecycle stages will occur in the vertical order in which they’re displayed, across activities and fragments. In this way, you can see how your fragments interact with your activities.

In addition to the attached image, I’ve also got an SVG: http://staticfree.info/~steve/complete_android_fragment_lifecycle.svg which is suitable for printing.

If this is missing lifecycle steps or is inaccurate in any way, let me know so I can update it!

Note: there is also a large bitmap of the chart.

–jeroen         Read the rest of this entry »

Posted in Android, Development, Mobile Development, Software Development | Leave a Comment »

c# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType? – Stack Overflow

Posted by jpluimers on 2014/04/16

Just asked this on SO: C# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType?.

Anyone here or at G+ that has a hint?

The [WayBack] ContentType property of [WayBack] (Http)WebResponse [WayBack] maps to the HTTP/1.1 [WayBack] Content-Type which is a [WayBack] Media-Type that contains a type/subtype optionally followed by parameters which are [WayBack] attribute=value pairs.

I’m mainly interested in the type/subtype and the [WayBack] charset parameter.

The charset is mapped from [WayBack] HttpWebRequest.CharacterSet.

Is there a library that just retrieves the media type/subtype of the [WayBack] ContentType?

–jeroen

via: [WayBack] c# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType? – Stack Overflow.

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

April 2014 Project of the Month, Free Pascal | SourceForge Community Blog

Posted by jpluimers on 2014/04/16

Thanks Olivier SCHWAB for pointing me to this nice interview with Florian Klämpfl on SourceForge about April 2014 Project of the Month, Free Pascal | SourceForge Community Blog.

Two things I didn’t know yet:

  • FreePascal started in the Turbo Pascal era (the first version was before Delphi 1.0 got released) as a 32-bit compiler project.
  • FreePascal 3.0 will support jvm output (like Oxygene does).

Besides Florian, there are quite a few more people on the FreePascal team. I met most of them at last years PasCon: really nice guys.

–jeroen

Posted in Delphi, Development, FreePascal, Object Pascal, Oxygene, Pascal, Software Development, Turbo Pascal | Tagged: , , , | 5 Comments »

Introduction to A*: http://stanford.io/1gze9d7 – awesome multi-page rewarding read (via: Ilya Grigorik – Google+)

Posted by jpluimers on 2014/04/16

Today, Ilya Grigorik wrote a nice G+ entry with this pointer:

Introduction to A*: http://stanford.io/1gze9d7 – awesome hands-on overview of the A* pathfinding algorithm. Long but rewarding read.

Well, the long read is indeed long, and on my stack of things to read.

Ever since the early 1990s when the original DOS version of NS Reisplanner came out (with a really bad algorithm for finding train rides) I’ve been interested in this, but never found a really good hands-on introduction.

Now there is one (:

These are the individual pages:     Read the rest of this entry »

Posted in Development, Software Development | Leave a Comment »

Ansi- and RawByteString for Delphi mobile | Delphi stream, Kluug.net (via: Ondrej Pokorny – Google+)

Posted by jpluimers on 2014/04/16

Since Ondrej is not yet on DelphiFeeds yet:

Ansi- and RawByteString for Delphi mobile | Delphi stream, Kluug.net 

–jeroen

via: Ondrej Pokorny – Google+ – My second attempt on “AnsiString on mobile”. It features….

Posted in Delphi, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

delphi: idioms for building strings (via: my answer on Stack Overflow)

Posted by jpluimers on 2014/04/16

Once every while, one of your StackOverflow answers gets an edit suggestion that is really valuable.

This case it was Edwin Yip who suggested to emphasize the difference between TStringBuilder and TStringList (adding characters versus lines).

Too bad that freshly 10k user Makoto showed he hates bold emphasis, intentional property casing and post signatures by removing the added value (there is so much emphasis he could remove on other answers to warrant at least a day time job).

I know that not all emphasis is welcomed at StackOverflow, but in this case I think it added real value.

So I edited my own answer to add even more value: showing the idioms I use for building strings, and now it is time to quote it: Read the rest of this entry »

Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »

Fiddler2 to the max: inserting proxy authentication to use DropBox (or other app) behind a corporate firewall

Posted by jpluimers on 2014/04/16


A while ago, I was working with a not so cooperative corporate firewall. All web browsers would work fine, but most other applications would not go through the proxy in a nice way.

For instance, DropBox would show the dreadfull “Connection Error” dialog shown on the right.

That dialog basically means “Dropbox has no clue what happens, try fiddling with your proxy or account settings, then press Reconnect Now” to retry.

Many other applications had issues (for instance Visual Studio connecting to Team Foundation System was very unreliable and the workarounds clumsy).

CNTLM: not the solution

I got inspired by the [WayBack] I code and code: Tutorial: How to use Dropbox behind a corporate proxy server using CNTLM, even though I was pretty sure the corporate firewall was not NTLM based.

And indeed, CNTLM -v -M http://google.com -c CNTLM.INI would give errors like this:

cntlm: Proxy returning invalid challenge!
headers_send: fd 4 warning -999 (connection closed)
Connection closed

HTTP Fiddler: looks promising

So I fired up my old buddy [WayBack] Fiddler 2 HTTP debugging proxy.

Further on, you will learn that Fiddler2 is much more, but right now it is enough to know that it basically sits as a local proxy between your applications and the outside world. Read the rest of this entry »

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, base64, Cntlm, Development, DropBox, Encoding, Fiddler, JavaScript/ECMAScript, NTLM, Power User, Scripting, SocialMedia, Software Development, Web Development, 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, Windows-Http-Proxy | Leave a Comment »