Posts

Showing posts from October, 2013

Hi, everyone.

Hi, everyone. Do you have a great reading for me, I am just learning Delphi.

Blowing Smoke...

http://www.deltics.co.nz/blog/posts/2006

Really I have to do that:

Really I have to do that:  myLabel.FontColor := System.UITypes.TAlphaColorRec.Black or at least myLabel.FontColor := TAlphaColorRec.Black ??? this is very boring...

Found this and thought interesting:

Found this and thought interesting: http://www.itworld.com/security/380406/how-your-compiler-may-be-compromising-application-security http://www.itworld.com/security/380406/how-your-compiler-may-be-compromising-application-security

Did you see this kind of data module error? (XE4) Any reasons? Sometimes the IDE eats all associations in other forms without any notification (when compiling) ...

Image
Did you see this kind of data module error? (XE4) Any reasons? Sometimes the IDE eats all associations in other forms without any notification (when compiling) ...

CSS problems in our G+ community?

Image
CSS problems in our G+ community? I say CSS because I recently saw a G+ error message referring to a CSS problem during a page reload of our community, but none since.

#Speech #ITDevCon 2013

Image
#Speech #ITDevCon 2013 #Web #Application with #AngularJS & #Delphi +Debora Mizzoni  & +Luca Giacalone www.itdevcon.it/agenda

What if you now have to concatenate many strings?

What if you now have to concatenate many strings? Comparing a few approaches... http://www.delphitools.info/2013/10/30/efficient-string-building-in-delphi/

A new app developed with Delphi XE5 and Firemonkey

A new app developed with Delphi XE5 and Firemonkey This app is a remote camera visualization and control software, that runs on Android and Apple mobile devices (Phone and Tablets) We got a very very good performance out of Firemonkey... and I got to say that I´m really impressed with the capabilities of Firemonkey... of course it has its issues, but nothing that we can´t find a way around... The app is not available yet (Thought it will be free) because it is still under development, but should be available soon! Digifort Mobile Client made with Delphi XE5 http://www.youtube.com/watch?v=kZkGBwHN1EQ

Ticket to ride!

Ticket to ride! http://www.deltics.co.nz/blog/posts/1985

It's Amateur Hour at Embarcadero

It's Amateur Hour at Embarcadero http://www.deltics.co.nz/blog/posts/1974

Words cannot describe... Data.DB.pas, TNamedItem.HashName

Words cannot describe... Data.DB.pas, TNamedItem.HashName ...

Hey All

Hey All, I have a client in Calgary looking for Delphi developers, anyone interested in work in Calgary? let me know, Regards Richard 403-263-4501 ext 3116

Okay, folks: interesting theoretical question for you.

Okay, folks:  interesting theoretical question for you. If you were writing a C/S app in Delphi, and your back end were MS SQL Server, what data access technology would you use if your concern was purely speed and performance?   Again, I don't care about convenience, amount of code needed, features of the framework -- all I care about is performance.   And to taint the response a bit, I'm particularly interested in where you think raw ADO/MDAC fits into things.

XE5 Update 1 available: http://docwiki.embarcadero.com/RADStudio/XE5/en/Release_Notes_for_XE5_Update_1

XE5 Update 1 available: http://docwiki.embarcadero.com/RADStudio/XE5/en/Release_Notes_for_XE5_Update_1 http://docwiki.embarcadero.com/RADStudio/XE5/en/Release_Notes_for_XE5_Update_1

Embarcaderos most dangerous blogger +Vsevolod Leonov http://blogs.embarcadero.com/vsevolodleonov/2013/10/28/platform-fm-3d-tfloatanimation-tpath3d-butterfly/ posted an awesome tutorial/example on TFloatAnimation and TPath3D.

Embarcaderos most dangerous blogger +Vsevolod Leonov http://blogs.embarcadero.com/vsevolodleonov/2013/10/28/platform-fm-3d-tfloatanimation-tpath3d-butterfly/ posted an awesome tutorial/example on TFloatAnimation and TPath3D. http://blogs.embarcadero.com/vsevolodleonov/2013/10/28/platform-fm-3d-tfloatanimation-tpath3d-butterfly/

#Speech #ITDevCon 2013

Image
#Speech   #ITDevCon  2013 Introduction to the #LLVM  code generator for  #Delphi  Web Script with +Christian Budde www.itdevcon.it/agenda

So LiveBindings... we've just upgraded to XE3 from D2010 so this is newfangled stuff. We currently use a lot of data bound controls and some manual "binding logic", so on paper it looks interesting.

So LiveBindings... we've just upgraded to XE3 from D2010 so this is newfangled stuff. We currently use a lot of data bound controls and some manual "binding logic", so on paper it looks interesting. Are they any good? Anyone have any experiences to share?

Very interesting:

Very interesting: function Apples(nb : Integer) : String; begin    Result := IntToStr(nb) + ' apple(s)'; end; and function Apples(nb : Integer) : String; begin    Result := IntToStr(nb);    Result := Result + ' apple(s)'; end; Which function faster? ... Second, at least half! http://www.delphifeeds.com/go/f/109513

Simple trick that can improve both performance and debug-ability

Simple trick that can improve both performance and debug-ability http://www.delphitools.info/2013/10/28/efficient-string-concatenation-in-delphi/

The art of frameworks

The art of frameworks #tongueincheek   https://drive.google.com/file/d/0B1MyXorVzay9NEgzdjlwRXp3bzA/edit?usp=sharing
Are there any components that can open a specific Control Panel page in Windows?   (eg "Control Panel\Ease of Access\Speech Recognition")  I've tried passing that to explorer via ShellExecute() but no joy.

Delivered: native iOS rich text editor control & tools in TMS iCL: http://www.tmssoftware.com/site/tmsicl.asp

Image
Delivered: native iOS rich text editor control & tools in TMS iCL: http://www.tmssoftware.com/site/tmsicl.asp
How do you sell software you've developed online?

TMS Aurelius session at CodeRage 8

TMS Aurelius session at CodeRage 8 http://www.youtube.com/watch?v=YZFYrDIGLW4
Does anybody have experience driving Delphi apps with AutoItX?  If so I can use some help with something!   #autoit

Steema News, New Steema Bug Tracker - News Item

http://steema.com/entry/172/New_Steema_Bug_Tracker
IDEFixPackRegXE5  and delphispeedup XE5  when release ?

Has anyone linked a Delphi application to the BACS system in the UK .?

Has anyone linked a Delphi application to the BACS system in the UK .? Background : I am looking at integrating BS1 Accounts into my Distribution and Production software to replace Sage  http://www.dbsonline.com/accounting/
Seems XE3 doesn't inline generic methods ever. QC report seems to indicate this has been fixed in XE4. Does anyone know for sure?
So, it seems we might get to do some iPad apps here at work, using Delphi XE5. Sweet..

Anyone out there using SVCOM 7.

Anyone out there using SVCOM 7.9 with XE4?  It took me a while to get it to build correctly, thought my problems were over.  But once I started using it, I get AV's all over.    I commented all my code out, ran just the shell service, and I get AV's.     The Wizard to create an empty service is broke too. I've emailed the author, don't know if I'll hear anything back.   I've used it for years with Delphi 7, but so far with XE4, I've had nothing but problems. Thx, Curt

Anyone out there using SVCOM 7.9 with XE4? It took me a while to get it to build correctly, thought my problems were over. But once I started using it, I get AV's all over. I commented all my code out, ran just the shell service, and I get AV's. The Wizard to create an empty service is broke too.

Anyone out there using SVCOM 7.9 with XE4?  It took me a while to get it to build correctly, thought my problems were over.  But once I started using it, I get AV's all over.    I commented all my code out, ran just the shell service, and I get AV's.     The Wizard to create an empty service is broke too. I've emailed the author, don't know if I'll hear anything back.   I've used it for years with Delphi 7, but so far with XE4, I've had nothing but problems. Thx, Curt

Special components for displaying notifications of longtime operation (downloading, authorization): TfgProgressDialog and TfgActivityDialog

Special components for displaying notifications of longtime operation (downloading, authorization): TfgProgressDialog and TfgActivityDialog TfgProgressDialog - If you can estimate duration of long time operation (count of downloaded files, size of file and etc.). TfgActivityDialog - if you can not estimate duration of long time operation (Response from server, authorization). http://www.youtube.com/watch?v=bzEzOU3EWI4

hi everyone

hi everyone, I have problem with TComboBox in #firemonkey application ( #DelphiXE4  ) I want to change text color in ComboBox, I mean text wich we see when combobox is its usual state. I've created custom style for combobox and changed color in foreground object as in TEdit. Nothing changed. After that I googled that I should change TListBoxItem style, (seems it is little bit differrent things). no luck here too. Also I tried to iterate through item and change TextSettings property. no luck anyway. does anyone know how to do that (color of text in ComboBox itself, not in popup)?
Title
Come to Verona where I'll be speaking at four sessions.
Ok.  Question for my fellow Monkeyteers (is that a word).  I am working on a custom component (I missed coderage session on custom FM components - looking forward to the replay) for the smoking ape.  How the f**k do I add a caret to it?  I have tried duplicating the code from TMemo but its just not working..... The positioning is right, the caret is parented to the control, it should be getting drawn - what could I be missing here?  If I do a canvas.drawrect then I can see the size an position look about right, but the caret itself just isn't there.....

Wrote tutorial how to use MongoDB's GridFS in Delphi. MongoDB is a rapid open-source document database with MapReduce framework and much more.

Wrote tutorial how to use MongoDB's GridFS in Delphi. MongoDB is a rapid open-source document database with MapReduce framework and much more. http://owlyci.com/docs/articles/WorkingWithGridFS http://owlyci.com/docs/articles/WorkingWithGridFS

Getting a black eye from the IT guy...

Image
Getting a black eye from the IT guy... Never get in the way of the IT guy! :)

Stunning reversal:

Stunning reversal: Why LinkedIn dumped HTML5 & went native for its mobile apps Read more at http://venturebeat.com/2013/04/17/linkedin-mobile-web-breakup/#c03v060wgTvjksbw.99 http://venturebeat.com/2013/04/17/linkedin-mobile-web-breakup/#c03v060wgTvjksbw.99

Nostalgie )

Nostalgie ) Originally shared by Fred Ahrens Awesome stuff. A basic Turbo Pascal implementation made in JavaScript. http://www.teamten.com/lawrence/projects/turbo_pascal_compiler/demo/ Compile and Save doesn't work but you can use the editor for writing your program and then you can run the program. Good old times ... via Julian Bucknall  on Twitter #TurboPascal   http://www.teamten.com/lawrence/projects/turbo_pascal_compiler/demo/

Given

Given function TRec .Foo (): S; begin ... end; Is there a way to generate a compile time error if T is different from S, but not if they are equal?

can anyone confirm that the forms onActivate event is no longer fired since the XE5 IOS7 Update ?

can anyone confirm that the forms onActivate event is no longer fired since the XE5 IOS7 Update ?  (on both the simulator and iosDevice) introduced with XE4 Update1 they fixed it in XE5 and now back again ? http://qc.embarcadero.com/wc/qcmain.aspx?d=116841 http://qc.embarcadero.com/wc/qcmain.aspx?d=116841

can anyone confirm that the forms onActivate event is no longer fired since the XE5 IOS7 Update ? (on both the simulator and iosDevice)

can anyone confirm that the forms onActivate event is no longer fired since the XE5 IOS7 Update ?  (on both the simulator and iosDevice) introduced with XE4 Update1 they fixed it in XE5 and now back again ? http://qc.embarcadero.com/wc/qcmain.aspx?d=116841 http://qc.embarcadero.com/wc/qcmain.aspx?d=116841

Another DPR trick...

Another DPR trick... http://www.deltics.co.nz/blog/posts/1954

TMS Cloud Pack v2.4.0.0 available now with with 5 new components:

Image
TMS Cloud Pack v2.4.0.0 available now with with 5 new components: - TAdvTwilio, component to send SMS messages via the Twilio service - TAdvEsendex, component to send SMS messages via the Esendex service - TAdvBulkSMS, component to send SMS messages via the BulkSMS service - TAdvTelAPI, component to send SMS messages via the TelAPI service - TAdvIPLocation, component to determine geolocation info from computer, IP address, domain You can download the fully functional trial version from our website: http://www.tmssoftware.com/site/cloudpack.asp

Hi there, please allow me to announce once DevJet Software Community on G+.

Hi there, please allow me to announce once DevJet Software Community on G+. https://plus.google.com/communities/113012729454639868890 We may discuss Documentation Insight, issues and feature request there. In addition, we will announce the latest news/beta download about upcoming Documentation Insight 3 in the community.

Documentation Insight 3 Sneak Preview #2

Documentation Insight 3 Sneak Preview #2 http://www.devjetsoftware.com/?p=1293 We will release our Beta in days on our G+ community, you are welcome to follow us: https://plus.google.com/communities/113012729454639868890 http://www.devjetsoftware.com/?p=1293

So what do people use for documenting the source code?

So what do people use for documenting the source code? I'm used to Doxygen from C++. I see there is a pas2dox converter but I'm curious if there are better options out there. I'd like to comment my code in-line, and then generate html documentation (at least) based on this.

A creative (albeit limited) application of unit aliases in Delphi...

A creative (albeit limited) application of unit aliases in Delphi... http://www.deltics.co.nz/blog/posts/1945

So what's up with

So what's up with type TFoo = TBar ; not being allowed?

Binding a second instance of a form to a second instance of a data module?

http://stackoverflow.com/q/19411637/71200?sgp=2

coderage day two

coderage day two Who's going? Starting a thread for anyone who wants to discuss what's going on. I am currently catching up on a couple of sessions from yesterday, been a few interesting thing come up.

The gamut of techniques, from the clean, through the sneaky, to the downright reckless...

The gamut of techniques, from the clean, through the sneaky, to the downright reckless... http://www.deltics.co.nz/blog/posts/1938

Using Windows Messages to run code on the VCL thread...

Using Windows Messages to run code on the VCL thread... http://www.deltics.co.nz/blog/posts/1925

So, unit testing...

So, unit testing... Currently looking for something for a small-sized hobby project (library code), with a price tag to match. DUnit the way to go or are there better alternatives?

Originally shared by Embarcadero Technologies

Originally shared by Embarcadero Technologies See What's New in FireMonkey for XE5 with Embarcadero's Darren Kosinski this hour at the #coderage online conference http://embt.co/CR8Ses http://embt.co/CR8Ses

Anyone with XE5 care to check if the following still gives an internal compiler error?

Anyone with XE5 care to check if the following still gives an internal compiler error? type Interf1 = interface end; Interf2 = interface end; TObj = class (TInterfacedObject, Interf1, Interf2) end; var i1: Interf1; i2: Interf2; begin i1 := TObj.Create; i2 := i1 as Interf2; end.

This happens when I select Ad-Hoc instead of debug.

This happens when I select Ad-Hoc instead of debug. [PAClient Error] Error: E0009 Cannot create file "\\?\C:\abc\ProjectName\c:\output\dcu\ProjectName\iOSDevice\Debug\ProjectName.ipa".  What should i do?
Soooooooooooo, who's online at coderage 8 right now?  I am :-)

I came across a gotcha today in that the declaration was:

I came across a gotcha today in that the declaration was:     type       Tblah = object       end; and not:     type       Tblah = class       end; and it seems that: a) the enhanced RTTI can not handle of type object, and b) class helpers can not be used. So, apart from stopping people to the new features on the type, is there any reason to use an object type (instead of a class type)? The only documentation I have found is here : http://docwiki.embarcadero.com/RADStudio/XE5/en/Classes_and_Objects#Object_Types

So I'm having a case of morning daftness. Why can't record constructors be parameterless?

So I'm having a case of morning daftness. Why can't record constructors be parameterless? After all records don't support inheritance, and there is nothing preventing you from declaring a parameterless class function called Create...

Delphi is dead! (well, UNDEAD!)

Delphi is dead! (well, UNDEAD!) If you follow DelphiFeeds, you've probably already seen this but I thought I'd post it here too. :-) http://blogs.embarcadero.com/michaelswindell/2013/10/14/34979

(mostly) not platform specific language features

(mostly) not platform specific language features http://www.deltics.co.nz/blog/posts/1882

Hi everyone

Hi everyone, I have Delphi XE4 update 1 and started new #FireMonkey   project. I don't have a lot of experience with FM platform. I decided to create separate DataModule and place all my StyleBooks, which I'm going to share between forms, there. So, problems are: 1. IDE doesn't allow to add simple shapes in StylesDesigner when stylebook is in datamodule. 2. I should create DM before creating any form in my application, so I edited dpr file. Application starts fine, but when I open such form in designer I get exception. after that I decided to create hidden form instead of DataModule to store shared StyleBooks, this solves problem 1.1. But problem 2 remains. Any time I open form which uses shared StyleBook I get an error message and sould press Ignore button to continue my work. Does anyone know about best practises of using shared stylebooks?
Scooter Software is looking for a short-term contractor experienced with encryption to update some legacy SHA1/TwoFish code.  Using Delphi XE with a C bignum library.  Remote workers welcome.  Email support@scootersoftware.com if interested.

From the CodeRage welcome email:

From the CodeRage welcome email: "System Requirements PC-based attendees Required: Windows® 7, Vista, XP or 2003 Server" I know windows 8 has only been out for a year, but... ;)

Service vs IntentService and responding to screen on/off system notifications.

Service vs IntentService and responding to screen on/off system notifications. http://www.deltics.co.nz/blog/posts/1873

I'm trying to get started with Firemonkey, Android, FireDAC in XE5. Task: Connect to MySQL-Server.

I'm trying to get started with Firemonkey, Android, FireDAC in XE5. Task: Connect to MySQL-Server. First I built an example app with TFDConnection and compiled it under Win32 - works nice. Then I wanted to switch to Android. First observation: No FireDAC libraries for Android available... but the sources are. Ok, added Program Files(x86)\Embarcadero\RAD Studio\12.0\source\data\firedac\ to library path and let them compile for Android. At least it compiles now... But when running the app on the Android device, it is looking for libmysql.so (the Win32 program also needs libmysql.dll which can just be downloaded). I tried to search for a corresponding package for Android but it seems hard to find anything about that. Seems like MySQL-Support for FireDAC/Android is not yet fully supported? Any other way for connecting to MySQL or fetching some data (via PHP?)... ?

I can't connect to https://forums.embarcadero.com/ today; both Chrome and Firefox tell me that the certificate was revoked. Thunderbird also fails to connect to the newsgroups.

I can't connect to https://forums.embarcadero.com/ today; both Chrome and Firefox tell me that the certificate was revoked. Thunderbird also fails to connect to the newsgroups.  What's going on there?
Using XE4. Has anyone had a successful function/unit/code to see if a computer has access to the Internet?
Title

This video shows that it is possible to display the second form about using animations and effects by standard means of FM (FireMonkey).

This video shows that it is possible to display the second form about using animations and effects by standard means of FM (FireMonkey). Details will be available later. Blog: http://blogs.embarcadero.com/yaroslavbrovin http://www.youtube.com/watch?v=j0MOM0ED04s

Hello

Hello, Can i retrieve the information about current street name and current speed from Locationsensor?

Add-In Express juts updated their excellent Office Addin Framework to work with XE5.

Add-In Express juts updated their excellent Office Addin Framework to work with XE5. http://www.add-in-express.com/downloads/adxvcl.php http://www.add-in-express.com/downloads/adxvcl.php

Hi everyone

Hi everyone, My Android app uses a datasnap connection with a server and firedac components. I need to protect the application from FC when the network is unavailable. What should be the best practice? Try.. Except on every database access? Is there more than can be done here?

https://plus.google.com/b/117745002307285183020/117745002307285183020/posts/a6LRngJTC27

https://plus.google.com/b/117745002307285183020/117745002307285183020/posts/a6LRngJTC27 https://plus.google.com/b/117745002307285183020/117745002307285183020/posts/a6LRngJTC27

http://www.thedelphigeek.com/2013/10/tstreamadapterseek-broken-for-large.html

http://www.thedelphigeek.com/2013/10/tstreamadapterseek-broken-for-large.html

Question for you fine Delphi developers.

Question for you fine Delphi developers. Anyone know of a tool that will scour a codebase of a project and seek out dead code that isn't called, or indeed can't be called? Recommendations and any details appreciated.

in the TDSHTTPService component in a Datasnap Service Application, how can I change the HTTP Port at run time before it starts listening. I tried changing HTTPPort on ServiceStart (and ServiceCreate), but it won't listen on the new port, it always listens on the port it had at design time.

in the TDSHTTPService component in a Datasnap Service Application, how can I change the HTTP Port at run time before it starts listening.  I tried changing HTTPPort on ServiceStart (and ServiceCreate), but it won't listen on the new port, it always listens on the port it had at design time.    Does anyone know how to make the port configurable?

This was too good to let pass in silence.

Image
This was too good to let pass in silence. Expect the unexpected! Originally shared by Jay Pratap Singh

Fellow Delphi developers

Image
Fellow Delphi developers, This is with great pleasure that we announce the immediate availability of HelpNDoc 4.0, an easy to use yet powerful help authoring tool producing CHM help files, HTML or mobile WebSites, DocX and PDF manuals as well as ePub and Kindle eBooks from a single source. HelpNDoc is Free for personal use and evaluation purposes and is available at: http://www.helpndoc.com HelpNDoc 4.0 is a major update and features a new template editor with cover pages, headers and footers support for DocX and PDF documentation formats. It also includes a brand new script editor where you can use Pascal scripts to code against the HelpNDoc API and manage almost anything in your HelpNDoc project: you can literally use your Delphi skills to code your next documentation project! HelpNDoc is now available in English, French and German. There are plenty of new and updated features in this major update and you can learn more about them at: http://www.helpndoc.com/news/2013-10-09-helpndoc-

In case there's someone here who doesn't track the non-tech group, and is interested in these things, I made a small benchmark in order to test the Delphi x64 compiler.

In case there's someone here who doesn't track the non-tech group, and is interested in these things, I made a small benchmark in order to test the Delphi x64 compiler. I did it mostly for fun, but I'd noticed that Delphi's x64 compiler did not use the extra registers in an effective manner. So I wanted to see just how it fared compared to a better optimizer. For the test I used the Tiger hash function[1] as it is public domain, constructed to be fast on 64bit CPUs and it should take advantage of the higher register count. Using a hash function menas it's also easy to verify that the implementations compute the same thing. The original C++ code was ported as closely as possible, while (hopefully) avoiding obviously stupid things. The Delphi x64 compiler was beaten by Visual C++ 2012 by a factor of 2.3: C++    480 MB/s Delphi 205 MB/s C#     140 MB/s (no "unsafe" code) I re-ran the test on 32bit and Delphi fared a bit better: C++    161 MB/s Delphi  88 MB/s

I wrote a Datasnap Rest Service application and the Exe is 24MB. I tried putting:

I wrote a Datasnap Rest Service application and the Exe is 24MB.  I tried putting: {$WEAKLINKRTTI ON} {$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])} but then I get an exception when starting the service saying there is not enough RTTI in the service.  Does anyone know how I can make the EXE smaller (XE4)?   It's not much code, but I guess the JSON and datasnap code is included in the Exe.

On being respectful of battery drain with a frequently updating widget...

On being respectful of battery drain with a frequently updating widget... http://www.deltics.co.nz/blog/posts/1855

REMINDER: iOS and Android related stuff now have a separate community

REMINDER: iOS and Android related stuff now have a separate community Please post iOS and Android related issues in the Delphi iOS & Android Developers community! You can always find the link on right, under About this community. (Delphi Mobile Resources was renamed to Delphi iOS & Android Developers)

Could anyone please tell me how to get the Wi-Fi ID name that the user is currently on?

Could anyone please tell me how to get the Wi-Fi ID name that the user is currently on? Using XE5 for Android. #WiFi #Delphi #XE5 #Network

Does anyone know any component ribbon for FireMonkey?

Does anyone know any component ribbon for FireMonkey? tks

Hello

Hello, I have a delphi project with many .bpl packets and when i try to build all my client group project i get this exception : "Registration procedure, Atdiagramreg.Register in package C:\Users\Public\Documents\RAD Studio\10.0\Bpl\adgrmxe3.bpl raised exception class EAccessViolation: Access violation at address 5005F470 in module 'rtl170.bpl'. Read of address 47CF8924." Does anybody can help me ?

To "fork" the language strings or to keep them unified?

To "fork" the language strings or to keep them unified? http://www.delphitools.info/2013/10/08/utf-8-utf-16-or-both-poll/

using UniDAC's SQLite provider to play with a SQLite database, unfortunately, whenever reading a "timestamp" field,...

using UniDAC's SQLite provider to play with a SQLite database, unfortunately, whenever reading a "timestamp" field, the result is always 12/30/1899, we're currently using UniDAC version 5, we also have a few older versions, all of them have the same issue. thoughts?

using UniDAC's SQLite provider to play with a SQLite database, unfortunately, whenever reading a "timestamp" field, the result is always 12/30/1899, we're currently using UniDAC version 5, we also have a few older versions, all of them have the same issue.

using UniDAC's SQLite provider to play with a SQLite database, unfortunately, whenever reading a "timestamp" field, the result is always 12/30/1899, we're currently using UniDAC version 5, we also have a few older versions, all of them have the same issue. thoughts?

I've started a project on Delphi with DataSnap, something social with posts and comments and news feeds.

I've started a project on Delphi with DataSnap, something social with posts and comments and news feeds.  Is it a good idea fro doing it in DataSnap? I'm not warring on how to do it but how it will work on high loads.

Using TCanvas in Delphi for Android «

http://roman.yankovsky.me/?p=1018

We have a small program which runs a stored proc on the server. The result set is then processed to deliver a CSV file. We are getting an error now which seems to have come up simply because the number of rows returned is too large for a TADOQuery to handle properly. I am told that the error message is "Dataset was open." Very nice.

We have a small program which runs a stored proc on the server. The result set is then processed to deliver a CSV file. We are getting an error now which seems to have come up simply because the number of rows returned is too large for a TADOQuery to handle properly. I am told that the error message is "Dataset was open." Very nice. If anyone has had this experience, or can suggest a better way to deal with the issue in the context of about a million rows of 60 columns returned, please shout. This is a small app which was written by someone no longer on the project, and has worked properly for 2-3 years.

One of the more visible problems I've encountered with FM on iOS and Android is the transition between TabPages (TTabControl.SetActiveTabWithTransition). Even on an iPhone5 the frame rate is awful.

One of the more visible problems I've encountered with FM on iOS and Android is the transition between TabPages (TTabControl.SetActiveTabWithTransition). Even on an iPhone5 the frame rate is awful. After looking at the tab transition code I realised that the problem was mainly caused by both tabs being redrawn for every frame of the animation. As many of you have realised by now FM controls start to paint slowly once you have more than a few child controls. I have written an extension to TTabControl that caches the two tab pages before animating the transition. This greatly improves the frame rate. The component also accepts additional parameters that allow you to control the duration and type of animation along with a variable that sets how far the outgoing tab will move. There is currently an issue that may down to my lack of understaning of FMX bitmaps. It could also be an FMX bug - please take a look at this StackOverflow question for more info:  http://stackoverflow.com/questi

Is this the proper place to get Omnithread?

Is this the proper place to get Omnithread? https://code.google.com/p/omnithreadlibrary/ If so, it is really only updated for XE2? It won't compile in XE5 -- I get: [dcc32 Error] DetailedRTTI.pas(132): E2010 Incompatible types: 'TCallConv' and 'TCallingConvention' https://code.google.com/p/omnithreadlibrary/

[dcc32 Hint] Foobar.pas(112): H2443 Inline function 'MessageDlg' has not been expanded because unit 'System.UITypes' is not specified in USES list

[dcc32 Hint] Foobar.pas(112): H2443 Inline function 'MessageDlg' has not been expanded because unit 'System.UITypes' is not specified in USES list You know what Delphi? I DON'T CARE!!! The problem is I can't just disable this one hint, no, that would be a nice and sensible feature. Instead I have to disable *all* hints, and miss out on the sensible ones, like unused variables and other things which may point to actual code issues . In fact, the failure to inline is of such little importance there should be a specific command line switch to turn on the failure reporting, ala how VC++ deals with auto-vectorization. Oherwise it should just shut the fuck up!

Can someone help me with #DataSnap REST Application and callbacks?

Can someone help me with #DataSnap   REST Application and callbacks? I'm new to DataSnap. I'm going to create simple DS Server and web client with few buttons. I created new datasnap server (Datasnap REST Application) using wizard, modified web-pages, css, wrote my server methods. it works fine. Now I need to implement callback method on server, it should send some data to client. I can't understand how I can do that. I watched "Heavyweight Callbacks with DataSnap " by Methew DeLong  ( Heavyweight Callbacks with DataSnap - Part 2: Thin Client ) Seems it is very easy, but it uses "DS Server" wizard and executes callback method using ServerContainer1 variable (ServerContainer1.DSServer1.BroadcastMessage()). But in DS REST Application I have webModule instead of ServerContainer, and do not have references to TWebModule instances. So, the question is, how do I implement callbacks in DataSnap REST Application at server side (in #Delphi-XE4), or I should use

You already may have heard of CodeRage 8. I for myself have attended CodeRage since they started these events in 2007 (you can still download those sessions). Despite all the new and exciting stuff about XE5, FireDAC and Mobile, the sessions from Alister Christie look like a lot of fun. Have you registered?

You already may have heard of CodeRage 8. I for myself have attended CodeRage since they started these events in 2007 (you can still download those sessions). Despite all the new and exciting stuff about XE5, FireDAC and Mobile, the sessions from Alister Christie look like a lot of fun. Have you registered? http://embt.co/CR8Reg

Where store the program settings in FireMonkey instead of Registry?

Where store the program settings in FireMonkey instead of Registry? Per user/computer?

Blog post "FireDAC in Delphi XE5" at http://blog.marcocantu.com/blog/firedac_xe5.html

Blog post "FireDAC in Delphi XE5" at http://blog.marcocantu.com/blog/firedac_xe5.html

Does anyone know how to change the format of the JSON that is spit out by a datasnap server? I'm returning an object to the calling method, and the JSON has all the fields and sub objects, etc, but it also includes the unit names.Class name , and Id, and the word "type". I want it to just put the names of the fields in each object and not the "extra" stuff (I guess you'd call it the "metadata"). The following is an excerpt:

Does anyone know how to change the format of the JSON that is spit out by a datasnap server?   I'm returning an object to the calling method, and the JSON has all the fields and sub objects, etc, but it also includes the unit names.Class name , and Id, and the word "type".   I want it to just put the names of the fields in each object and not the "extra" stuff (I guess you'd call it the "metadata").  The following is an excerpt: {"result":[{"type":"USpecialNeeds.TSpecialNeeds","id":1,"fields":{"special_needs_detailed":{"type":"USpecialNeeds.TSpecialNeedsDetailed","id":2,"fields":{"years_horizon":0,"annual_inflation":0,"medical_inflation":0,"growth_rate":0,"annual_income":{"type":"USpecialNeeds.TAnnualIncome","id":3,"fields":{"annual_amount":0,"tot

Now, that is a programmers mug :)

Image
Now, that is a programmers mug :) Originally shared by Formule by BNF Coffee hour ;)

Hello all

Hello all, How I can remove column from TGrid in firemonkey (from code)?
So, in DXE, TryStrToInt( '51,12', n ) assigns 51 to n, an integer var. Maybe I am just picky, but it seems like a bug to me.

OMG... Why not use hashmaps? No wonder huge complex scripts compile so incredibly slow. This is going to require some massive overhauling for better performance.

OMG... Why not use hashmaps? No wonder huge complex scripts compile so incredibly slow. This is going to require some massive overhauling for better performance. https://github.com/remobjects/pascalscript/blob/master/Source/uPSCompiler.pas#L2244

And now for something completely different. I maintain a web site for a non-profit group of which I am a member. It was originally built with MS FrontPage (which I do not use), and therefore is full of all manner of ugly code.

And now for something completely different. I maintain a web site for a non-profit group of which I am a member. It was originally built with MS FrontPage (which I do not use), and therefore is full of all manner of ugly code.  I want to rebuild the site from scratch. Main goals are: - design works well for desktop and mobile - should not need software dev to maintain - toolset must be free or very inexpensive Suggestions?

Hello all

Hello all, I want to open TImage to full screen like photo gallery and i don't know hot it can possible?

Delphi Mobile Resources

Delphi Mobile Resources With Android being all the rage these days, perhaps it's time to have a focused sub-community? Feel free to join up :)

Lars has come up with a great idea. Why don't we set up a central repository for iOS/Android/OSX API conversions?

Lars has come up with a great idea. Why don't we set up a central repository for iOS/Android/OSX API conversions? -Which version control should we use? Pros and cons? -Should we explicitly allow EMB to use the APIs in future Delphi releases? -Do host the APIs conversions or do we also write Delphi style wrappers that encapsulate the various APIs into a single common interface (like the TWebBrowser component but better :) -Other ideas/suggestions?

Not only, but also

Not only, but also http://www.deltics.co.nz/blog/posts/1833

Never let it be said...

Never let it be said... http://www.deltics.co.nz/blog/posts/1834

Blog post "Delphi XE5 Anonymous ShowModal and Android" at http://blog.marcocantu.com/blog/xe5_anonymous_showmodal_android.html

Blog post "Delphi XE5 Anonymous ShowModal and Android" at http://blog.marcocantu.com/blog/xe5_anonymous_showmodal_android.html http://blog.marcocantu.com/blog/xe5_anonymous_showmodal_android.html
People, it could be a very noob question, but how do I duplicate the items of a TListBox? Can't use Assign and don´t want to duplicate a TListBoxItem for the new listbox...

Embarcadero Discussion Forums: ANN: madExcept 4.0.8 - with XE5 support ...

https://forums.embarcadero.com/thread.jspa?messageID=600795

Anyone know if it is possible to know the type of a variable TMethod? example:

Anyone know if it is possible to know the type of a variable TMethod? example: type   TMyProc1  = procedure(const Value : string) of object;   TMyProc2  = procedure(const Value : integer) of object; Var MT:TMethod;  //Global variable ---Then to set MT variable with some methods procedure SetMethod1(const AValue:TMyProc1); begin   MT := TMethod(AValue); end; procedure SetMethod2(const AValue:TMyProc2); begin   MT := TMethod(AValue); end; Now how can detect wich method type has MT ? This not work  :P if MT is TMyProc1  then doSometing1; if MT is TMyProc2  then doSometing1; thanks

Originally shared by Martijn Coppoolse

Originally shared by Martijn Coppoolse Very (very) useful post for anyone who wants to write mobile apps using Delphi XE5. I wish this stuff had been translated to the usual Application and Form events... http://blogs.embarcadero.com/pawelglowacki/2013/09/30/40067/

Coming soon... An import generator for Android classes for Delphi XE5.

Coming soon... An import generator for Android classes for Delphi XE5. Interested? Let me know.
How to use admob sdk package with delphi xe5?

I am new to the new TListBox controls... I have a class that need to be associated to my TListBox, how do I can do that?

I am new to the new TListBox controls... I have a class that need to be associated to my TListBox, how do I can do that? Im using a TListBoxItem to setup my listbox, sure I can put text and details, but I cant handle objects as the old listbox :( I can't found an example for that yet, even on the FMX demos...

XE5 Firemonkey styles - how to get at the default android styles

XE5 Firemonkey styles - how to get at the default android styles Open up the "Bitmap Style Designer" - you can find it in the bin folder with the exes for the IDE and other things - normally "c:\program files\embarcadero\rad studio\12.0\bin" Using this you can get at, and change, the default "Android Light" style - to do this perform the following rain dance (be careful not to mis-step you might open a portal to the under world!) From the tool bar (not the main menu) drop down the menu which contains the various style types you can create and edit - select "New Android style for FireMonkey" - this now starts a NEW style template project based upon the default android style - you should find all the available styles listed in the tree view. Points of note - I have yet to find an easy way to create a completely new style in this thing, also I cannot see how you can actually rename a style.  Probably the single most important thing you will need to

Hi Informix users

Hi Informix users, In sql server we get application name by app_name in query, but i dont found any functions or else to get application name in informix database. I am using informix database with delphi 2007. It will be good if i get program name or application name by any select statement of informix DB. could you please help me to get this resolved. Regards ---- Hardip Gadhavi

Please help :)

Please help :) http://programmers.stackexchange.com/q/213028/26908?sgp=2

Recently learned Android SDK techniques learned using Oxygene, applied in Delphi

Recently learned Android SDK techniques learned using Oxygene, applied in Delphi http://www.deltics.co.nz/blog/posts/1817