Posts

Showing posts from February, 2013

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.

http://theroadtodelphi.wordpress.com/2013/02/19/how-distinguish-when-windows-was-installed-in-legacy-bios-or-uefi-mode-using-delphi/

http://theroadtodelphi.wordpress.com/2013/02/19/how-distinguish-when-windows-was-installed-in-legacy-bios-or-uefi-mode-using-delphi/ http://theroadtodelphi.wordpress.com/2013/02/19/how-distinguish-when-windows-was-installed-in-legacy-bios-or-uefi-mode-using-delphi/

Hello programmers, hi from Dominican Republic, i'd like to know if you can help me

Hello programmers, hi from Dominican Republic, i'd like to know if you can help me, How do i send en picture stored in Timage component to a Image field in Rave Report? Thanks a Lot...

Hello :-) I have changed the licensing scheme for my memory profiler. Registered and future customers will not not only receive updates within a period of 12 months but for all future releases. I am also working on the next release to be out soon and will also support MacOS in one of the next releases.

Hello :-) I have changed the licensing scheme for my memory profiler. Registered and future customers will not not only receive updates within a period of 12 months but for all future releases. I am also working on the next release to be out soon and will also support MacOS in one of the next releases. http://ddobjects.de/dddebug

Hello

Hello, Last week, I have created an RSS site for Object Pascal related blogs Enjoy :) http://planet.objpas.org/

Happy Belated Birthday :D

Happy Belated Birthday :D http://aprogrammerslife.info/2013/02/14/feb-14/
Delphi 7 and TidFTP.Get() - cannot get files larger than 2GB. Is a TFileStream a problem here or Indy?

ADUG (Australian Delphi User Group) has just announced their Delphi Symposium 2013 to be held in late March in Sydney and Melbourne.

ADUG (Australian Delphi User Group) has just announced their Delphi Symposium 2013 to be held in late March in Sydney and Melbourne. The event will be held in: * Melbourne on Thursday 21st March, and * Sydney on Friday 22nd March Another great line up of speakers this year including: * Mason Wheeler - Building Interactive Websites in Pure Object Pascal * Alister Christie - DataSnap Servers and Android Clients * Malcolm Groves - Advanced MVVM usage for Delphi Programmers * Scott Hollows - Creating Delphi Apps for Mac OSX If you're planning to be in Australia (Sydney or Melbourne) in March then register and come along to a very informative day at the ADUG Delphi Symposium! http://www.adug.org.au/meetings/Symposia/2013/
hey guys ... what do you think is better XE2 ou XE3?!

Delphi array constructors performance (or lack of) - DelphiTools.info

http://delphitools.info/2013/02/18/delphi-array-constructors-performance-or-lack-of/

Hi

Hi, I have a service application having name service1.exe. And also have standalone application having same name and same code. If  run this as standalone exe then it's performance is so well. But if I run as service application then it is little bit slow. I googled but did not found any source. So can any body help me what will be the reason for slow? Thanks,

If you're in Brisbane, Sydney or Melbourne, come and see Delphi for iOS in person.

If you're in Brisbane, Sydney or Melbourne, come and see Delphi for iOS in person. http://now.eloqua.com/es.asp?s=608&e=799879&elq=cf998a7e985244549bbeaf106db3a4eb
Ok, here is my question: I would like to buy the ShellPlus components to do kinky stuff with the shell :-) does anybody know if they are still in business? Their website sends mixed messages :-)

OK guys, here is the plan: a single file DLL that works on both – 32 bit systems and 64 bit systems.

OK guys, here is the plan: a single file DLL that works on both – 32 bit systems and 64 bit systems. I have been looking around the web, following a lot of links. The general consensus is that it cannot be done. One of my co-workers says "There are ways to generate DLLs that work either 32 or 64 – but haven’t found out how to do that with Delphi." Does anyone in this group know how to do this in Delphi XE3? Thanks...Dan'l
Anybody here use the Gnostice eDocEngine Library? I tryed to install the newest version 4.0.0.112 in my Delphi XE2. Works fine except the Export interfaces for Rave and Fastreport. I could not compile and install it. is there somebody who has experience with this?

Hi there! Can anyone recommend a good book to getting started with Mac OS development with Delphi? I am not so miuch interested in Firemonkey but more or less trying to bridge the gap from Windows to Mac as it comes to the fundamentals of the OS. E.g. it should be about differences of the inner concepts like multithreading, locking concepts (what are the equivalents of critical sections, mutexes etc.), ipc, sockets communication and so on. One book which might be what I am looking for is http://www.amazon.de/Mac-OS-iOS-Internals-Programmer/dp/1118057651/ref=sr_1_1?ie=UTF8&qid=1361011276&sr=8-1 but probably... there's another one with less pages ;)

Hi there! Can anyone recommend a good book to getting started with Mac OS development with Delphi? I am not so miuch interested in Firemonkey but more or less trying to bridge the gap from Windows to Mac as it comes to the fundamentals of the OS. E.g. it should be about differences of the inner concepts like multithreading, locking concepts (what are the equivalents of critical sections, mutexes etc.), ipc, sockets communication and so on. One book which might be what I am looking for is http://www.amazon.de/Mac-OS-iOS-Internals-Programmer/dp/1118057651/ref=sr_1_1?ie=UTF8&qid=1361011276&sr=8-1 but probably... there's another one with less pages ;) http://www.amazon.de/Mac-OS-iOS-Internals-Programmer/dp/1118057651/ref=sr_1_1?ie=UTF8&qid=1361011276&sr=8-1

Hi group

Hi group, How to implement Security Assertion Markup Language (SAML) in a Delphi client server application. Remobject SDK is used for client server communication.

I was giving a new colleague a caching class to write and I have been thinking it would be a good interview programming task. It involves the following:

I was giving a new colleague a caching class to write and I have been thinking it would be a good interview programming task. It involves the following: - Load and save attributes from an interface, IObjectInfo, to be stored in any internal format he thought suitable.  - Load and save the attribute values to XML - As it is complicated to create the implementation of TObjectInfo, I asked for the class to be unit tested to prove it would work rather than writing it inside an existing application and complicating his view of what needs done. For me it covers writing a class. Using interfaces. Using XML. Unit Testing and mocking. Extracting information from an existing class/structure.  The only thing is that it is perhaps too large a task to give someone to do in ,say, an hour. But maybe that`s not the point. It then got me thinking about what you have either given someone to code in an interview, had to code in an interview or have any ideas? Hell, you might even totally disagree with co
Weird, but my "Circles" option icon has disappeared from the left hand G+ "tool bar".  I wonder if this is temporary or I've accidentally done something to hide/remove it?

Comment of the day:

Comment of the day: // Waiting for all threads to finish

I need your advice or ideas on connecting to a remote MySQL database. I'm doing this in D5.

I need your advice or ideas on connecting to a remote MySQL database. I'm doing this in D5. I've been working on an application that I would like to fill some tables with data collected by my desktop app. At first I explored using the TWebBrowser component and hacking some PHPand Javascript with JSON. I'm sure something like that is doable but in my mind not the cleanest approach. Next, I came across and downloaded a unit called mysql.pas by Matthias Fichtner that serves as a Pascal interface unit for libmySQL.dll. I've been able to connect to the database and do some testing that confirms its suitability for the task at hand. But here's the problem, in order for it to function (to my knowledge) it seems I need to open up my whole site domain to any IP address and also embed my admin user name and password in my program. Obviously a huge security breach waiting to happen. So I'm looking for some thoughs on this. Am I missing something (other than current Delphi 

SourceTree, the free Git & Mercurial GUI client made popular on the Mac, is coming to Windows. Sign-up for the beta.

SourceTree, the free Git & Mercurial GUI client made popular on the Mac, is coming to Windows.  Sign-up for the beta. I've been using SourceTree since before it was acquired by Atlassian (back then you had to pay for it), and it's simply a fantastic and well-supported GUI client for both Git and Mercurial.  It can really ease the pain of  learning/managing Git & Hg and, IMO, is superior to other similar clients.  This is really good news for Windows users. http://blog.sourcetreeapp.com/2013/02/14/sourcetree-for-windows-beta-signup/

Don't know if this has been posted before but it really looks promising. Unified Delphi Framework for Desktop and Web, based on Ext Js.

Don't know if this has been posted before but it really looks promising. Unified Delphi Framework for Desktop and Web, based on Ext Js. http://www.unigui.com/

Here is a fantastic Git repository branching workflow. I've used this workflow in a few of our company projects. Once you read the article you will understand the first graph, and it is actually so simple, yet very functional. It is now very easy for us to manage multiple ongoing development/feature branches, stable branches and hotfix branches.

Here is a fantastic Git repository branching workflow. I've used this workflow in a few of our company projects. Once you read the article you will understand the first graph, and it is actually so simple, yet very functional. It is now very easy for us to manage multiple ongoing development/feature branches, stable branches and hotfix branches. I just thought I would share this gem, and others might find it as useful as I did. http://nvie.com/posts/a-successful-git-branching-model/

Smart Mobile Studio 1.1 RC build 400 "sneak peak"

http://jonlennartaasenden.wordpress.com/2013/02/13/smart-mobile-studio-1-1-rc-build-400-sneak-peak/

What are everyones thoughts on hints (H2077) for value assigned to the result of a function that is never used. I get these often from initializing result to something before I ever write any code.

What are everyones thoughts on hints (H2077) for value assigned to the result of a function that is never used.  I get these often from initializing result to something before I ever write any code. Does anyone do something similar, do you ignore the hint or remove the intialization?

Can anyone make heads or tails of this? Am I missing something?

Can anyone make heads or tails of this?  Am I missing something? procedure TMySocketTasks.Execute; begin   CoInitialize(nil);   while not Terminated do   begin     try       while (TaskStatus <> stsJobInQueue) do       begin         sleep(1);         if Terminated then exit;       end;       TaskExecute;     except       TaskErrMsg  := 'Unknown Error On Socket';       TaskErrCode := 1;     end;   end;   CoUnInitialize; end;

Property expressions and statements - DelphiTools.info

http://delphitools.info/2013/02/14/property-expressions-and-statements/

Delphi1Video.mp4

Delphi1Video.mp4 See also blog post at Blog post "Delphi 18 Birthday Video" at http://blog.marcocantu.com/blog/delphi18_birthday_video.html http://www.youtube.com/watch?v=XxRGNZfjYkM

Hello Community

Hello Community, I am a little bit stuck with my VirtualExplorerTree (Mustangpeak). Situation: I have an ExplorerTree and a custom right click popup menu assigned to the tree. Path A is selected and I want to right click on Path B to initiate a popup action based on the righ-clicked directory. Problem: When right-clicking my ExplorerTree, the "SelectedPath" in ExplorerTreeMouseDown or ExplorerTreeChange is Path B (as expected).  But when I click my appropriate menu item (or escape to cancel the menu), another ExplorerTreeChange event is fired where the SelectedPath is Path A again although I did not set it explicitly. Observed Behavior in short: After right-clicking Path B (which is visually selected at that point) and clicking a popup menu item, the ExplorerTree jumps back to Path A again. Is this expected behavior? (not for me) How can I avoid the "jump back" without implementing private fields to work around that issue by hand?

Source Code of Photoshop 1 released. And... it's... Pascal!

Source Code of Photoshop 1 released. And... it's... Pascal! http://computerhistory.org/atchm/adobe-photoshop-source-code/ http://computerhistory.org/atchm/adobe-photoshop-source-code/

https://plus.google.com/u/0/109099686252303180605/posts/iCDCGRsnEU8

https://plus.google.com/u/0/109099686252303180605/posts/iCDCGRsnEU8 https://plus.google.com/u/0/109099686252303180605/posts/iCDCGRsnEU8

Even tough this song seems to have typo but there is some stuff that is funny taken out of context of programming :D

Even tough this song seems to have typo but there is some stuff that is funny taken out of context of programming :D  http://open.spotify.com/track/3B0FMpAGhjU3uNxSpaCZyC   http://open.spotify.com/track/3B0FMpAGhjU3uNxSpaCZyC

Originally shared by Natalie Vincent

Originally shared by Natalie Vincent I just got our software working through firewalls with NTLM authentication enabled! I can't tell you all how happy I am! We had moved to WinHTTP to make it easier to do this, but it ended up not being all that easy. The trick, if you're uploading large chunks of data, is to send a head request through first, then send the POST. Works a treat!

This may be a bit early for the Americans and Europeans but it's Feb 14 in Australia so Happy 18th Birthday Delphi.

This may be a bit early for the Americans and Europeans but it's Feb 14 in Australia so Happy 18th Birthday Delphi. http://www.pubshop.co.uk/catalog/images/product_64577_1_orig.jpg

http://theroadtodelphi.wordpress.com/2013/02/12/introducing-tsmbios/

http://theroadtodelphi.wordpress.com/2013/02/12/introducing-tsmbios/ http://theroadtodelphi.wordpress.com/2013/02/12/introducing-tsmbios/
So, speaking of AnyDAC, now that it belongs to Embarcadero, what if an XE user wanted to get AnyDAC for XE? I don't see it on the EMBT site, and there's nothing on the DA-Soft site that would indicate availability of ANY version.

https://plus.google.com/u/0/104406378585083013111/posts/9uRPfh1Q9kS

https://plus.google.com/u/0/104406378585083013111/posts/9uRPfh1Q9kS https://plus.google.com/u/0/104406378585083013111/posts/9uRPfh1Q9kS

I updated the WebFMX demo. There are a few fixes but mostly is about performance enhancement. https://cloud.thinrdp.net:6443 Please use Chrome for now. Any feedback will be much appreciated!

I updated the WebFMX demo. There are a few fixes but mostly is about performance enhancement. https://cloud.thinrdp.net:6443 Please use Chrome for now. Any feedback will be much appreciated!

I have a DataSnap server that serves templates (html) and resources (js, css) and then the browser accesses my serverfunctions from JavaScript. Straight from the (REST) wizard, you could say.

I have a DataSnap server that serves templates (html) and resources (js, css) and then the browser accesses my serverfunctions from JavaScript. Straight from the (REST) wizard, you could say. I found out that Chrome (and only Chrome) hangs when resources are encoded differently. Sometimes it hangs on first load but the problem is reproducible when pressing the reload button: http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-as-script-but-transferred-with-mime-type-text and look at dandan78's answer a bit down. I absolutely need the html to be encoded in ISO-8899-1 (it's a requirement) so i went and recoded everything in the subdirectories. Then i added this: procedure TWebModule.WebModuleAfterDispatch(Sender: TObject; Request: TWebRequest;   Response: TWebResponse; var Handled: Boolean); begin   if (Response.ContentType = 'text/javascript') or      (Response.ContentType = 'text/css') then     Response.ContentEncoding := 'iso-8859-

Anyone aware of a mutation testing library/framework/tool for Delphi? I've seen ones for Java, .NET, Ruby and Python.

Anyone aware of a mutation testing library/framework/tool for Delphi? I've seen ones for Java, .NET, Ruby and Python. http://en.wikipedia.org/wiki/Mutation_testing

For those of you who are interested, the source code repository for the JCL (JEDI Code Library) is now officially hosted on GitHub. The JEDI team also has a placeholder for the JVCL which will probably come some time later. The JCL is still hosted on SourceForge (in SVN) but from what I can see the GitHub repository already has a new commit ahead of the latest SourceForge repository.

For those of you who are interested, the source code repository for the JCL (JEDI Code Library) is now officially hosted on GitHub. The JEDI team also has a placeholder for the JVCL which will probably come some time later. The JCL is still hosted on SourceForge (in SVN) but from what I can see the GitHub repository already has a new commit ahead of the latest SourceForge repository. Another interesting thing is the GitHub repository contains the full commit history of the JCL from its very beginning when it used to use JEDI VCS all the way through to CVS and to the very latest commits in the SVN repo. Whereas on SourceForge, the commit history is split between its original CVS repository and the subsequent SVN repository. I hope more Delphi developers start to use Git and GitHub because once you get past the initial learning curve, it's fairly easy. One of the greatest features of GitHub is the "pull-request" which makes it very simple for individual developers to send t

Hi group

Hi group  how to avoid single click event on double clicking...
Quick question .. If you wanted a timed (in program) event to take place on Feb 15th at 3pm , how would you achieve this ?

Hey, maybe someone have Timsort implementation in Delphi?

Hey, maybe someone have Timsort implementation in Delphi? http://en.wikipedia.org/wiki/Timsort

We're pleased to announce the availability of TMS Cloud Pack v1.8 at http://www.tmssoftware.com

We're pleased to announce the availability of TMS Cloud Pack v1.8 at http://www.tmssoftware.com   Seamless connectivity from Delphi applications to cloud services like SkyDrive, Box, DropBox, Facebook, Flickr, Picasa, Google Calendar, Google Contacts, Google Drive, LinkedIn, Twitter, Windows Live Calendar, Wunderground weather service, ...  What's new in v1.8: ------------------------------ - TAdvPicasa: component to get access to Google Picasa photo service - TAdvCloudExifImage: non-visual component to add or retrieve geolocation information in JPEG files You can download the fully functional trial version from our website:  http://www.tmssoftware.com/site/cloudpack.asp Kind regards, Nancy Lescouhier TMS software team Email: info@tmssoftware.com Web: http://www.tmssoftware.com http://www.tmssoftware.com

Hi

Hi, someone have direct experience with some opensource library containing an IOCP enabled HTTP/HTTPS WebServer? I'm aware of a lot of these libraries, but I'm interested in direct experience.
Today I'm working on refactoring a 1336 line method.  Why so long?  It has 18 nested procedures in it.

Normally I would have posted this on StackOverflow, but it's currently down!

Normally I would have posted this on StackOverflow, but it's currently down! Has anybody tried creating tasks using JEDI's TJclTaskSchedule? The following code works perfectly on Windows 7 and earlier, but fails on Windows 8 with the error "The task XML is missing a required element or attribute". Anyone got any idea why? unit Unit13; interface uses   Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,   Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,   JclTask, MSTask; type   TForm13 = class(TForm)     Button1: TButton;     procedure Button1Click(Sender: TObject);   private     { Private declarations }   public     { Public declarations }   end; var   Form13: TForm13; implementation {$R *.dfm} procedure TForm13.Button1Click(Sender: TObject); var   TaskSchedule: TJclTaskSchedule;   Task: TJclScheduledTask; begin   TaskSchedule := TJclTaskSchedule.Create('');   try     // This works on Windows 7 and earlier, but

Device discovery on the network using Microsoft Universal Plug And Play API is easy!

Device discovery on the network using Microsoft Universal Plug And Play API is easy! http://francois-piette.blogspot.be/2013/02/using-universal-plug-and-play-upnp-with.html http://francois-piette.blogspot.be/2013/02/using-universal-plug-and-play-upnp-with.html

I've just set up a demo site showing WebFMX, the tool for remoting Firemonkey Apps I'm working on. https://cloud.thinrdp.net:6443

I've just set up a demo site showing WebFMX, the tool for remoting Firemonkey Apps I'm working on.  https://cloud.thinrdp.net:6443 There are two sample firemonkey apps to try. Please beware that there are lots of things that aren't working properly yet and it is in a very early alpha stage; don't expect magic. I will appreciate your comments!

Hello. I need some help related to the distribution of binaries for Mac OSX generated by Delphi. I have a sample package "HelloWorld" (Runtime and design time). When I do compile this, I can see different generated binaries:

Hello. I need some help related to the distribution of binaries for Mac OSX generated by Delphi. I have a sample package "HelloWorld" (Runtime and design time). When I do compile this, I can see different generated binaries: in DCP folder: HelloWorld.a, HelloWorld.dcp and HelloWorld.bpi in BPL folder: bplHelloWorld.dylib, bplHelloWorld.dylib.map, bplHelloWorld.dylib.rsm, HelloWorld.entitlements and HelloWorld.info.plist As I do not know what each file contains I and only have some assumptions I have some questions: What are these files HelloWorld.a and those ending with entitlements and info.plist good for? Are the remote symbols (rsm) need to be deployed on a Mac for remote debugging? Can I assume, that the generared package files (dylib) always automatically are prefixed with bpl? Many thanks :)

My predecessor doesn't stop to surprise me with generated useless code.

My predecessor doesn't stop to surprise me with generated useless code.  procedure SomeProcedure;   var SomeObject: TObject; begin   SomeObject := nil;   SomeObject := TObject.Create; (...)

Welcome to BE Delphi | BE Delphi

http://www.be-delphi.com/cms/

Hello there! I have uploaded the next release of my free Delphi Component Installer (Beta 2). This release integrates the Delphi command line compiler and adds many other enhancements. A sample project is included, documentation will be added soon (promise!). Please review the code, test the sample and let me know about your thoughts, ideas, enhancements etc. Many thanks :)

Hello there! I have uploaded the next release of my free Delphi Component Installer (Beta 2). This release integrates the Delphi command line compiler and adds many other enhancements. A sample project is included, documentation will be added soon (promise!). Please review the code, test the sample and let me know about your thoughts, ideas, enhancements etc. Many thanks :) http://ddobjects.de/free-software

Posted without comment:

Posted without comment: if assigned(MO) then FreeAndNil(MO); Okay, one comment:  all on one line.

What kind of sick, twisted mind calls FreeAndNil on an interface?

What kind of sick, twisted mind calls FreeAndNil on an interface ?

So, I saw Nick Hodges 's post today, the interesting part is:

So, I saw Nick Hodges 's post today, the interesting part is: I was thinking about if statements the other day, and came up with this potential Rule of Thumb: “Every time you write an if statement, you should stop and consider whether you should be creating a new class instead.” Thoughts? (Now, I’ve been around long enough to see how this might go. Before commenting, note that I did not say “Every time you use an if statement, you should create a new class”. I merely said that it is a point at which you should consider it…) How would you replace "if" in the following scenario using a class?: type MyCoolEnum = (mceFirst, mceSecond, ..., mceLast); procedure Something(Value: MyCoolEnum ); begin   if Value = mceFirst then   ///...   else   if Value = mceSecond then   ///...   else   if Value = ... then   ///...   else   if Value = mceLast then   ///.... end ; I get that you can do a case, or a lookup table, but humor me and give an example of transforming my monster-if&

For all the Delphi developers living in or around Oslo, Norway there's a meetup planned on the 27th February.

For all the Delphi developers living in or around Oslo, Norway there's a meetup planned on the 27th February. More details here:  http://www.meetup.com/delphi-173/events/103478012/ http://www.meetup.com/delphi-173/events/103478012/

ANN: TMS Advanced Charts v3.5 released with 1 new component

ANN: TMS Advanced Charts v3.5 released with 1 new component Our team has been working hard on the newest version of TMS Advanced Charts v3.5 and we're pleased to inform that this resulted in a new OpenGL 3D multi-serie chart component, TAdvChartView3D, that is available now.  Create DB-aware or non DB-aware multi-pane or multi-serie financial & business charts and spectacular 3D Pie charts. Supports Line, Bar, Area, Band, Stacked Bars, Stacked Area, Pie, Donut, OHLC, Spider, CandleStick, Histogram, Bubble, Error charts. New component TAdvChartView3D added in v3.5:  ----------------------------------------------------------------------- - OpenGL 3D multi-serie pie chart component  - High Quality OpenGL 3D Rendering  - Optional AntiAliasing  - Support for multiple Series  - Configurable mouse Interaction  - Export to image  - Configurable value labels with optional image  - Configurable legend & title  - 3D rotation support on X, Y and Z-Axis  - Design-time and run-time usabl
I need a freelance Delphi coder for projects involving image analytic. Where would you suggest I start looking?
Does anyone know what the implications of using ClientDataSets now that Embarcadero is looking to replace dbExpress with the AnyDAC components? I've never used AnyDAC so I don't know if AnyDAC uses its own in-memory table component or whether it integrates with the CDS.

I'm working on a tool to remote a Firemonkey HD App on an HTML5 canvas.

I'm working on a tool to remote a Firemonkey HD App on an HTML5 canvas.  This tool will enable to start the Firemonkey App's instances requested by end-users, in a GUI-less fashion, allowing to take Firemonkey Apps to the web as if they would be under a Terminal Server environment. The client is any HTML5-based Web Browser, meaning that it will work on any client's device or platform. On the app side, you will need to add just one line of code in your project source and the app will become dual platform: Windows and HTML5. Anyone interested?

Delphi and the Decorator Pattern

Delphi and the Decorator Pattern http://www.nickhodges.com/post/Delphi-and-the-Decorator-Pattern.aspx http://www.nickhodges.com/post/Delphi-and-the-Decorator-Pattern.aspx

There has been lot of talk of Indy and it's scaling, I did small test apps to do some test of my own. I had some gut feeling from my previous life that Indy10 (http) will have quite much overhead for each call. So I made simple client and server, and measure the client round trips (Server wuill return 200OK with small string as payload and client reads it also to stream)

There has been lot of talk of Indy and it's scaling, I did small test apps to do some test of my own. I had some gut feeling from my previous life that Indy10 (http) will have quite much overhead for each call. So I made simple client and server, and measure the client round trips (Server wuill return 200OK with small string as payload and client reads it also to stream) The results are something like this 10000 Requests [10000 OK, 0 errors] Min :5,333ms Max :25,209ms Avg :15,616ms 64,00 requests / second 156,26 Elapsed time seconds about 64 requests/s is really low, or seems like it... what kind of results could/shouls be expected with some other framework (Clien + Server)

http://docwiki.embarcadero.com/RADStudio/XE3/en/WEAKLINKRTTI_directive_(Delphi)

Image
http://docwiki.embarcadero.com/RADStudio/XE3/en/WEAKLINKRTTI_directive_(Delphi) Because deferring reference validation until runtime is that safe.

Good UML tool?

Good UML tool? Hello! Anybody got a good UML tool suggestion? Thank you! A

I have hit a problem in C++Builer XE3 that I have yet to find a good solution for. It involves the compability between pascal and c++, and overloaded constructors on the pascal side. C++ does not have named constructors; they are all given the name of the class.

I have hit a problem in C++Builer XE3 that I have yet to find a good solution for. It involves the compability between pascal and c++, and overloaded constructors on the pascal side. C++ does not have named constructors; they are all given the name of the class. In XE3, the hpp generator has started pulling in constructors from my ancestor classes when it generates the list of constructurs to put in the hpp file. Unfortunately, this means that if you have a constructor with the same parameter list (but a different name) as an ancestor, the C++ compiler will complain about the duplicate. The class in the example below is this single line declaration; it does not add anything to the base object.   EnxThread = class(EnxBaseException); Here's the hpp generated (somewhat abbreviated for clarity): In XE2, class PASCALIMPLEMENTATION EnxThread : public EnxBaseException {     typedef EnxBaseException inherited;      public:     /* EnxBaseException.Destroy */ inline __fastcall virtual ~EnxTh
Hello, my name is Phillip and I used Turbo Pascal back in the 80's on CP/M (on the Commodore 128) and the IBM PC, skipped Borland Pascal for Windows, played around with Delphi 1, and then from Delphi 2 on, have used Delphi ever since.   I've recently accepted a new position in Cincinnati, OH, and will start in 2 weeks.   I currently live near Daytona Beach, FL, and will keep the house here.
1,200 today, Lars, and counting...

A user cometary Brazilian deplhi on twitter:

A user cometary Brazilian deplhi on twitter: "Embarcadero DBX promoting for years, he became part of the new DataSnap full and now will offer other technology? Same are lost."

Anyone have any idea why someone would do this? (mtxScrub is a mutex handle....)

Anyone have any idea why someone would do this?  (mtxScrub is a mutex handle....) destructor TDataServer.Destroy; var   ii : integer; begin   for ii:=1 to 100 do   begin     try       CloseHandle(mtxScrub);       break;     except       sleep(100);     end;   end;   inherited Destroy; end;

Blog post "Embarcadero Buys AnyDAC" at http://blog.marcocantu.com/blog/embarcadero_buys_anydac.html

Blog post "Embarcadero Buys AnyDAC" at http://blog.marcocantu.com/blog/embarcadero_buys_anydac.html http://blog.marcocantu.com/blog/embarcadero_buys_anydac.html

Help me to insert blob into SQLite

Help me to insert blob into SQLite http://stackoverflow.com/questions/14709685/how-can-i-do-insert-into-blob-in-sqlite-using-delphi-xe3 http://stackoverflow.com/questions/14709685/how-can-i-do-insert-into-blob-in-sqlite-using-delphi-xe3

I'm interested in how would you hire a developer?(not necessarily Delphi developer) or highly skilled one.

I'm interested in how would you hire a developer?(not necessarily Delphi developer) or highly skilled one. Personally, I'm interested in people that think for themselves, i.e.: Here's what we wanna do __ , thoughts? <- if this doesn't start a stream of thoughts on which we can build and make progress, that person is not really interesting any time soon. If possible, I'd like everyone to join, from novice to experienced people and everything in between.
Hi there! How much would be a fair margin for resellers of software supposed he is not involved in support etc.?

Blog post "FastReport FMX Embarcadero Edition" at http://blog.marcocantu.com/blog/fast_report_fmx_embarcadero.html (free download for XE3 users)

Blog post "FastReport FMX Embarcadero Edition" at http://blog.marcocantu.com/blog/fast_report_fmx_embarcadero.html (free download for XE3 users) http://blog.marcocantu.com/blog/fast_report_fmx_embarcadero.html

For the Australians in the group:

For the Australians in the group: http://everestsoftint.com/nadcrf.php Spread the word!!! A http://everestsoftint.com/nadcrf.php

Strange, I did some hacking and profiling to see how fast I could get Datasnap, and I see that also my "Plain Indy" is much slower in XE3 than D2010! In D2010 is get about 11.500 request per second, the same in XE3 only 7.700...

Strange, I did some hacking and profiling to see how fast I could get Datasnap, and I see that also my "Plain Indy" is much slower in XE3 than D2010! In D2010 is get about 11.500 request per second, the same in XE3 only 7.700... After some hacking (mainly disabling the sessions) I got 4700 req/s (was 3200reg/s) and also stable performance (no steep decline). I could not get more without much rework... When looking at the DS source code my conclusion is: it is not optimized for "high performance" (stupid advertisement of EMBT!). I mean: all kinds of helper objects are created and destroyed on the fly, many UTF8 decoding conversions (implicit due to rtti?), RTTI context is not cached, no connection pool (new connections are created and closed for each request), etc.  Anyway: does anyone know why Indy in XE3 is slower?

Awesome Code of the Day:

Awesome Code of the Day: procedure TMainForm.mnuItemSecMgrClick(Sender: TObject); begin   TfrmSecMgr.Create(Application).ShowModal; end;

Don't be a #bluehead - Update your profile!

Image
Don't be a #bluehead  - Update your profile! It gives me a warm fuzzy feel to look at a face or an Avatar, instead of a blue head, when reading the discussions - and I have to say that I find it somewhat annoying that people don't bother to give up even just a little of themselves on their profile. It looks like Google+ is here to stay, so why not make yourself at home? No pressure, just do it ;)
What would be your biggest argument for management to upgrade your old Delphi 7 to new Delphi XE3?

and about DA-Soft.... Divination upon DA-Soft sudden claim is a trend of a week in Delphi-related circles. Let me play with my crystal ball as well.

and about DA-Soft.... Divination upon DA-Soft sudden claim is a trend of a week in Delphi-related circles. Let me play with my crystal ball as well. Two most important claims that DA-soft made are: 1) DA-Soft cancels all their support for integration with 3rd-party products and claims that 3rd parties would do integration instead. 2) DA-Soft bans any use of FastCode project in their libraries. How you interpret those claims i not totally clear. For example 1.1) that may be just marketoid fuss to shift responsibilities. "We would not support parts, that you purchased, but please blame someone another, not us" 1.2) that may mean that 3rd-party teams would be FORCED to provide integration if they wanted to be in Delphi market. 1.x) ...maybe more ideas ? 2.1) DA-Soft bans all FLOSS code. But they hardly can do it - client parts for many servers like Firebirdm mySQL, SQLite, PostgreSQL and others are FLOSS and unless they quitting support those, they would have to use FLOSS code a
Has anybody used ToolCloud to install Delphi on Windows 8?  I'm trying to install Delphi XE, and the tool box app just won't run.  Nothing, zero, zip.  I tried compatibility mode, I tried to run as an admin and nothing will start this puppy.  I'm kind of dead in the water.  Any suggestions would be appreciated.

Should I create a procedure like this article to manage sessions in web service delphi xe2?

Should I create a procedure like this article to manage sessions in web service delphi xe2? http://edn.embarcadero.com/article/27575