Posts

Help Update 3 for Delphi, C++Builder and RAD Studio XE3

Help Update 3 for Delphi, C++Builder and RAD Studio XE3 This is Help Update 3 for Delphi XE3, C++Builder XE3 and RAD Studio XE3  Available only to registered users of Delphi XE3, C++Builder XE3, RAD Studio XE3, and Embarcadero All-Access XE
Can anyone think of a reason why you'd get an AV when pressing F8 on a begin statement?

How to run a code automatically when a method exits (http://www.thedelphigeek.com/2013/02/running-any-code-when-method-ends.html) and when this approach fails (http://www.thedelphigeek.com/2013/02/when-does-execute-on-destroy-fail.html).

How to run a code automatically when a method exits ( http://www.thedelphigeek.com/2013/02/running-any-code-when-method-ends.html ) and when this approach fails ( http://www.thedelphigeek.com/2013/02/when-does-execute-on-destroy-fail.html ).

What are you guys doing when people whom you do not recognize and with whom you share no common connection add you to their circles?

What are you guys doing when people whom you do not recognize and with whom you share no common connection add you to their circles?  I first try to determine if there is some link, such as being a member of the same communities (e.g. Delphi), but If I can't determine some type of reasonable association, I block them.  Is that over the top?  Should I just Ignore them?

Blog post "FireDAC Announced" at http://blog.marcocantu.com/blog/firedac_announced.html

Blog post "FireDAC Announced" at http://blog.marcocantu.com/blog/firedac_announced.html http://blog.marcocantu.com/blog/firedac_announced.html
In case you have an OmniThreadLibrary-specific question, suggestion or bug report, you can post it to the new OmniThreadLibrary community.

Do you have an advice about how to replace FreeOnTerminate on threads ?

Do you have an advice about how to replace FreeOnTerminate on threads ?  I have an application that uses several threads (~15 ) , and sometimes I have this error message : "Cannot terminate externally created thread” that seems to pop up from nowhere, The point is that I don't use externally created thread, I only use mine. I suspect this problem comes from FreeOnTerminate = True on some threads. How do you safely replace this  ? An event raised at the end of the Execute method ? A call to a main thread method (may be inside a Synchronize) ? A window message ?

Anyone have any idea what this means:

Anyone have any idea what this means: --------------------------- Debugger Exception Notification --------------------------- Project HDM.exe raised exception class EOSError with message 'System Error.  Code: 5. Access is denied'. --------------------------- Break   Continue   Help    --------------------------- Does it have to do with dueling calls to ShowModal perhaps? Happens when MessageDlg gets called, and there appears to be (I am not making this up) a form attached to a thread that is not completely gone. Seriously -- that's the best I can to do describe it.

I think this is nice functionality:

I think this is nice functionality: http://www.thedelphigeek.com/2013/02/running-any-code-when-method-ends.html

Which color theme do you use for IDE ?

Image
Which color theme do you use for IDE ? I use modified monokai with Consolas Font. I personally prefer dark backgrounds , and after years of utilisation in MS VS, Consolas is definitely my prefered font for coding ....

Want to help with my book?

Want to help with my book? http://www.nickhodges.com/post/Want-to-Help-With-My-Book.aspx http://www.nickhodges.com/post/Want-to-Help-With-My-Book.aspx

What most schools don't teach!

What most schools don't teach ! http://www.youtube.com/watch?v=nKIu9yen5nc

I really old (71 next month), do not depend on Delphi for making a living, mired in Delphi 6 approaches to coding, and needing some motivation to move into the D2010-XE3 era. I'd like to start with Generics and Anonymous Methods (G&AM) and leave extended RTTI aside for this post:

I really old (71 next month), do not depend on Delphi for making a living, mired in Delphi 6 approaches to coding, and needing some motivation to move into the D2010-XE3 era. I'd like to start with Generics and Anonymous Methods (G&AM) and leave extended RTTI aside for this post: 1. What can I do with G&AM that would be impossible in D6? 2. Is G&AM code easier to write or understand? 3. Is G&AM faster or more economical memory-wise? 4. What are some coding tasks for which I should definitely be using G&AM?

Comment of the Day:

Comment of the Day: "  // Initiate monster to do the raw-to-mirror process for us and keep your fingers cross that it works." I am not making this up.

Always a classic.

Image
Always a classic.

Heads up.

Heads up. Originally shared by Google+ Developers Join us for our first Google+ Developers Live of 2013, where we introduce Google+ Sign-In and answer your questions about this update to the Google+ Platform. events/crl5poq1appkq8774hq2g415p00

Google just launched Google+ Sign-In

Google just launched Google+ Sign-In An OAuth 2.0 based single sign-on mechanism. https://developers.google.com/+/ have samples for Android, Objective-C/iOS, Java, C#/.Net, Python, PHP, JavaScript, Go and Ruby. Anyone get an itch to do a Delphi version? ;) Edit: More interesting stuff related to Google+ Sign-In - It's part of Google Play! http://android-developers.blogspot.no/2013/02/google-sign-in-now-part-of-google-play.html Originally shared by Vic Gundotra I'm excited about our launch of Google+ Sign-In. Now you can safely and securely sign in to an increasing number of your favorite applications and websites with just your Google+ password. Of course there are lots of benefits for publishers and developers - but most of all - it's designed for you and how you share. Selectively. Different things to different circles. Nuanced. Like in real life.  Details are here:  http://googleplusplatform.blogspot.com/2013/02/google-plus-sign-in.html http://www.youtube.com/watch?v=vy...

Database Version Control

Database Version Control I.e. putting all your defintions for tables, views, procedures, functions, assemblies, etc. into f.x. SVN. What tools do you use - if any? #dbvcs
I can't put into my head how to design an app in order to perform unit tests. In particular when you have objects that depends on database queries, or other external factors (network/serial communication, etc...) Do you have any reading suggestion ?

Agile Programming -- For your Family.

Agile Programming -- For your Family. An interesting TED talk on managing the stress of modern family life by adopting Agile programming techniques. http://www.ted.com/talks/bruce_feiler_agile_programming_for_your_family.html

Just for fun :

Just for fun :  Main sorting algorithms illustrated by Hungarian dancers  http://www.youtube.com/user/AlgoRythmics

Hello!

Hello! I have a small problem, I don't know which of these is right: - I am using Zeos 7.3 components wrong(possible) - I am using Firebird 2.5 wrong(possible) - There is a problem with the ZEOS components(not so very possible, but still) - There is a problem with Firebird 2.5(uh... not very likely is it?) This is my stored procedure: CREATE OR ALTER PROCEDURE GET_PRIMARY_KEY (     office_id integer not null,     tablename varchar(100) not null) returns (     newprimarykey bigint) as declare variable tableid integer; declare variable newmax integer; begin   SELECT ID   FROM DATA_KEYS   WHERE TABLE_NAME = :TABLENAME AND OFFICE_ID = :OFFICE_ID   INTO :TableId;   NewPrimaryKey = Power(2,32);   NewMax = gen_id( GEN_KEY_SEQUENCE,1 );   UPDATE DATA_KEYS SET MAXVALUE = :NewMax   WHERE ID = :tableid;   NewPrimaryKey = ( NewPrimaryKey + NewMax ) * Office_ID;   suspend; end And I am using the ZStoredProc component in this way(yes it needs refactoring and am on it, just not right now): functi...

What do you miss in the Delphi language? Which features ?

What do you miss in the Delphi language? Which features ? I miss the "return" statement and good reference-counting memory management for objects (doing it through interfaces is a bit uncomfortably for me)

TMS Cloud Pack v1.8.1.0 is available now with File share functionality in TAdvDropBox, TAdvSkyDrive and TAdvBoxNet.

TMS Cloud Pack v1.8.1.0  is available now with File share functionality in TAdvDropBox, TAdvSkyDrive and TAdvBoxNet. You can download the fully functional trial version from our website: http://www.tmssoftware.com/site/cloudpack.asp TMS Cloud Pack is available for Delphi and C++Builder XE, XE2, XE3.  http://www.tmssoftware.com/site/cloudpack.asp

TMS Aurelius, our high performance ORM, v1.9 has been released with support for Unified Interbase (UIB) components.

TMS Aurelius, our high performance ORM, v1.9 has been released with support for Unified Interbase (UIB) components. Trial download with PDF developers guide is available at: http://www.tmssoftware.com/site/aurelius.asp http://www.tmssoftware.com/site/aurelius.asp
anyone here have any codes sample using TMS Firemonkey grid?

I've just updated the WebFMX demo with lots of fixes and implementations. Anyone wanting to check it out, here is the link: https://webfmx.thinrdp.net. Your feedback is welcome!

I've just updated the WebFMX demo with lots of fixes and implementations. Anyone wanting to check it out, here is the link: https://webfmx.thinrdp.net . Your feedback is welcome! https://webfmx.thinrdp.net.

Blog post "Delphi iOS Preview Webinar" at http://blog.marcocantu.com/blog/delphi_ios_preview_webinar.html (with new images of Delphi apps on iOS simulator)

Blog post "Delphi iOS Preview Webinar" at http://blog.marcocantu.com/blog/delphi_ios_preview_webinar.html (with new images of Delphi apps on iOS simulator) http://blog.marcocantu.com/blog/delphi_ios_preview_webinar.html

Just read that Embarcadero is releasing AnyDAC soon but under the name of FireDAC. Some people like the name but to me (casually) linking the name to FireMonkey is not a smart move.

Just read that Embarcadero is releasing AnyDAC soon but under the name of FireDAC. Some people like the name but to me (casually) linking the name to FireMonkey is not a smart move. FireDAC? FireMonkey? Does that mean FireDAC only works with FireMonkey? Of course it doesn't but for the uninitiated that would be one of the first responses I would think. Then there is people's current perceptions of FireMonkey which, to put it kindly, is mixed at best. Calling it FireDAC makes you wonder if it has the same code quality as FireMonkey. Sorry for the rant,. I want Delphi and Embarcadero to do well but their marketing of products just don't make sense to me.

if premature optimization is the root of all evil then optimizing without measuring is the square root of all evil.

if premature optimization is the root of all evil then optimizing without measuring is the square root of all evil. compare this "highly optimized" one with the old age and boring way using a temp. variable procedure ExchangeInteger(var AValue1: Integer; var AValue2: Integer); begin   AValue1 := AValue1 xor AValue2;   AValue2 := AValue1 xor AValue2;   AValue1 := AValue1 xor AValue2; end; But, hey, the collegue has proven he knows some tricks.