Visit site The Wiert Corner

September 2014

4
votes
Vote UpVote

Some great reads from Barry Kelly

The Wiert Corner – Barry Kelly (Twitter, HN, SO, G+, Blog) was one of the Delphi compiler engineers. He wrote a great number of insightful blog posts, some of which are in chronological order: Entropy Overload: Fun with asynchronous methods and scalability. Entropy Overload: Closure variable capture in Ruby and C#, ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-09-02 05:00

August 2014

1
vote
Vote UpVote

Developer Skill Sprints video links

The Wiert Corner – After Bill Meyer asked, Helge Larsen wrote: The landing page for Developer Skill Sprints is here: https://www.embarcadero.com/landing-pages/skill-sprints The videos is on Developer Skill sprints YouTube channel first: https://www.youtube.com/playlist?list=PLwUPJvR9mZHhZTajVWsgaFPLtDA-t1Xwc ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-29 14:14
2
votes
Vote UpVote

Delphi: So XOAuth2 SASL component that can do OAuth2 (via: Asbjørn Heid, G+)

The Wiert Corner – Thanks Asbjørn Heid for sharing this: I made this!  - So this week I’ve been mostly trying to add some GMail integration to our app. Google now requires OAuth2 authentication when using IMAP, unless you turn off some scary-sounding security setting on your account. While Indy‘s IMAP ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-29 06:32
6
votes
Vote UpVote

Delphi: always watch the compiler Warnings

The Wiert Corner – Quiz questions: Does the below unit test succeed or fail? Why? procedure TestHResult.Test_EOleException; var OleException: EOleException; IResult: LongInt; // == HResult UResult: Cardinal; // == DWord begin IResult := $800A11FD; UResult := $800A11FD; try OleException := ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-28 05:00
6
votes
Vote UpVote

A way for a VCL TFrame to be notified when it is actually shown (via G+)

The Wiert Corner – Interesting, as I didn’t think this was possible. Thanks Oliver Funcke! Notification when a `TFrame` becomes visible. TMyCommonFrame = class(TFrame) private FOnShow: TNotifyEvent; procedure CMShowingChanged(var M: TMessage); message CM_SHOWINGCHANGED; public property OnShow : ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-27 16:01
1
vote
Vote UpVote

Some notes on Word automation and showing Bookmarks

The Wiert Corner – Though I’ve done this automation in Delphi, this applies to automation from any development platform. In this particular project, the documents used Bookmarks. Those have changed over time, so has the Word support for it. From Word 2000 until Word you could disable the showing of Bookmarks by ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-27 05:00
1
vote
Vote UpVote

Some notes on Word automation and protected documents

The Wiert Corner – Though I’ve done this automation in Delphi, this applies to automation from any development platform. In this particular project, I had to update Word documents. That is fine, unless your documents are protected. You can find out if a document is protected by probing the ProtectionType ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-26 05:00
2
votes
Vote UpVote

JEDI.INC got updated a few months ago: Delphi XE7 seems to be ahead…

The Wiert Corner – While updating a project to a more recent version of Delphi, I also updated the JEDI.INC reference. Note that since writing Delphi – finding the VERxxx define for a particular Delphi version: use JEDI.INC, the Delphi JEDI project moved from SoureForge to GitHub. The fun thing: JEDI.INC got updated a ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-22 06:54
2
votes
Vote UpVote

When deadlocks become livelocks (via: Do deadlocks cause high CPU utilization? – Stack Overflow)

The Wiert Corner – Depending on how you organize locks (for instance via waiting on semaphores or mutexes or spinlocks), deadlocks can become livelocks: Inability to make forward progress because of conflicting spinlocks is usually referred to as ‘livelock’. Thanks to Martin James for reminding me of that ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-20 11:00
3
votes
Vote UpVote

Delphi and C++ Builder VCL Library Buffer Overflow

The Wiert Corner – Since this did not make it to DelphiFeeds yet: I’ve seen the function PaletteFromDIBColorTable in Graphics.pas go back as far at least until Delphi 2006, and references on the web as far back as Delphi 4. So: this bug is old, but as it is a security one, make sure you patch soon. For Delphi ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-19 12:25
3
votes
Vote UpVote

Delphi: (ab?)using managed types to help guarantee initialisation of stack record (via: Stack Overflow)

The Wiert Corner – I mentioned Delphi managed types is in Delphi “Variant Records”, a few notes indicating they are special. Managed by the RTL, you can use them to your advantage when you have record types that – when on the stack – are only partially initialized by the RTL: only the managed types are ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-19 05:00
0
votes
Vote UpVote

Which Windows Resource Editor do you use?

The Wiert Corner – In the past, I used the XN Resource Editor, but it hasn’t been maintained for a while. Which resource editor do you use? Take Our Poll Based on a few links I found, I will be trying these: IcoFX – The Professional Icon Editor (commercial, still being maintained). ResEdit Resource ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-13 05:00
2
votes
Vote UpVote

The dreaded with… Debugging today, I found another gotcha (: – via: Lars Fosdal

The Wiert Corner – In the With Statement series: Lars Fosdal – Code Rants The dreaded with… Debugging today, I found another gotcha. In this case, both Self and DisconnectedClient has a property named ClientIdentifier. Note the difference for the mouse-over and the evaluation. –jeroen via The ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-12 11:00
3
votes
Vote UpVote

Delphi: interesting unit uExecFromMem from DelphiBasics.info: start an executable from binary memory image

The Wiert Corner – A long while ago, DelphiBasics.info (they are hosted on Google Sites) posted a very interesting via: uExecFromMem unit. It was only a code snippet, not much usage info. One of the things you can do with this unit, is load the memory image of an executable from a database BLOB, then execute that. ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-12 05:00
5
votes
Vote UpVote

Delphi: a memento that executes any code at end of method

The Wiert Corner – Following up on yesterdays Delphi: using IInterface to restore cursor at end of mehod (prelude to a memento that executes any code at end of method) here is the memento I meant. They are based on anonymous methods, which in Delphi are closures: they capture location. The location is kept just as ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-08-07 05:00
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)