-
Content Count
2067 -
Joined
-
Last visited
-
Days Won
27
Everything posted by Attila Kovacs
-
Delphi Event-based and Asynchronous Programming eBook complete version released
Attila Kovacs replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
@Bill Meyer the combo offer takes me to an only digital purchase page -
Delphi Event-based and Asynchronous Programming eBook complete version released
Attila Kovacs replied to Dalija Prasnikar's topic in Tips / Blogs / Tutorials / Videos
How? -
@emailx45 Why are you concerned about what value he uses for zero date? There must be a reason for that, for example the REST endpoint he talking to does not accept dates before 1.1.1901. I don't understand your rage nor your comic book.
-
Yes, remove "Dummy", and maybe Result := Result + Encodetime()? Also, you are ignoring time zones, but it is not necessary a problem for you.
-
Delphi Native Code: Fast or Reliable?
Attila Kovacs replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Are you sure? Never seen that. -
Delphi Native Code: Fast or Reliable?
Attila Kovacs replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
Are you sure you linked the right article? Because it has not much to do with your questions. -
It is then like Lajos said. And it will also be compatible with the faulty component.
-
Keep in mind that DBMSes might store DateTime in different formats, so if you need to use those values on SQL Level chose an own format.
-
You can't save duration into a datetime value, ie. you could, but that makes not much sense.
-
XLS 2 XLSX
Attila Kovacs replied to DrShepard's topic in Algorithms, Data Structures and Class Design
@Rollo62 right, libreoffice can convert "C:\Program Files\LibreOffice\program\soffice.exe" --convert-to xlsx "C:\input_path\file.xls" -outdir "C:\output_path" -
so, what database is that? does it have "views"?
-
Since when does inherited work on properties? "Inherited Data". And where else except the obvious? Documentation? I was annoyed that I could not set FData as it is private so I gave him an "inherited" in anger and fury and the compiler wasn't complaining. 😮 TTreeNodeHelper = class helper for TTreeNode private function GetNodeData: TNodeData; procedure SetNodeData(const Value: TNodeData); public property Data: TNodeData read GetNodeData write SetNodeData; end; function TVariantenTreeNodeHelper.GetNodeData: TNodeData; begin Result := inherited Data; end; procedure TVariantenTreeNodeHelper.SetNodeData(const Value: TNodeData); begin inherited Data := Value; end;
-
Inherited on Properties and co.
Attila Kovacs replied to Attila Kovacs's topic in RTL and Delphi Object Pascal
@Lars Fosdal In this case I'm overriding the Data property, so this is the only way to set/get them. -
Inherited on Properties and co.
Attila Kovacs replied to Attila Kovacs's topic in RTL and Delphi Object Pascal
Thx. The gas prices. 😉 -
Inherited on Properties and co.
Attila Kovacs replied to Attila Kovacs's topic in RTL and Delphi Object Pascal
@Uwe Raabe Wow. Will turn out it's on the first page of the help 🙂 -
How to determine the subjective brightness of my screen?
Attila Kovacs replied to Der schöne Günther's topic in Algorithms, Data Structures and Class Design
In my experience, lower the display's contrast and brightness and set the gamma correction higher in the game. Constantly changing lighting conditions can't be the answer for anything because it's just exhausting for the pupil. That's why I have to turn off instantly in modern displays and w10 the automatic brightness correction. On the other way, if you like it anyway, there are tons of DIY Ambilight kits on Ali*. -
IDE hangs for a few seconds every couple of minutes
Attila Kovacs replied to RaelB's topic in MMX Code Explorer
@Uwe Raabe Yeah ok, I see, this is blurry mode, an eye killer. I'm switching to dpi awareness handled by application. (Yeah I know, there are several other problems, but I'm doing the same like you, when I find time I'm patching the IDE) -
IDE hangs for a few seconds every couple of minutes
Attila Kovacs replied to RaelB's topic in MMX Code Explorer
How do you do that? Using it in blurry mode? Because MMX forms are broken in DPI Aware App mode. -
IDE hangs for a few seconds every couple of minutes
Attila Kovacs replied to RaelB's topic in MMX Code Explorer
How long does this "IDE hang" takes? Can you attach the hanging IDE process to a debugger like OllyDbg and step through until user code and track it down what part of the IDE / Module it causes? -
just write sl:=StrArray(TDirectory.GetFiles(SourceDir)); and drop "Dir"
-
Micro optimization: String starts with substring
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
@David Heffernan I admire your patience. -
Micro optimization: String starts with substring
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
https://stackoverflow.com/questions/1282015/the-fastest-way-to-compare-a-partial-string answered by "mat" -
Holy cow.
-
As François suggested, set up a resource in the domain which you check against, then you can manage the permissions from the background. And for your customers, -as many of us suggested-, create a separate dll. If you are concerned about leaking the internal dll to the customers, load the data in the internal dll from the internal resource.
-
Micro optimization: use Pos before StringReplace
Attila Kovacs replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
I think adding an "in my case" on the bottom of the second page of the thread is a little unfair.