-
Content Count
1937 -
Joined
-
Last visited
-
Days Won
25
Everything posted by Attila Kovacs
-
is there any "currency to words" routine for Delphi?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
Rule 2a. Hyphenate all compound numbers from twenty-one through ninety-nine. Rule 8b. When writing out numbers above 999, do not use commas. for the first sight. But I could take this as a base if there is no fully correct lib out of the box. Let's see what other people think. -
is there any "currency to words" routine for Delphi?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
All of them 😉 The first 2 pages of google result including torry. -
is there any "currency to words" routine for Delphi?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
money of course -
Reading your question I don't really know what you need, but with https://www.clevercomponents.com/products/inetsuite/ I could cover all my needs in the past. There is also a discount right now.
-
you could also just do a Memo1.Lines.Insert(0, s); instead of Lines.Add(); (which is actually Insert(GetCount, s);) and you do not have to change much
-
The last time I did something similar I was using some kind of virtual table reverse ordered and bound to some db-control, like dblist or dbgrid.
-
https://darkreader.org/
-
It's easy. If those hotkeys are really app-wide hotkeys and not a case for menu/action components, just hook the application messages and evaluate WM_KEYDOWN. VCL does the same. For every single menu/action visible. Every single time you press a key in your app.
-
ISAPI DLL concurrent requests
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
Btw. the fact that your broker works in garden mode, where the dll will be loaded every time you have a new request (as I understand it), indicates that you are using globals in non thread-safe mode. -
ISAPI DLL concurrent requests
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
I think there are explicit WebGarden = true / false options in IIS, but your web.config does not has it, maybe you could check other config files. Nothing. Always set up everything from scratch, and at the end of your events there should nothing be kept. Avoid globals as much you can or use thread safe techniques to access them. I don't know how could be this possible. Ok, I also never needed it, but your events are running in a different thread every time you do a req, I'm not even sure that these threads are aware of an existing Application instance. -
ISAPI DLL concurrent requests
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
Not really. Make sure WebGarden is not turned on, you don't do anything in webmodule OnCreate and OnDestroy, check the Event Viewer, try writing into a logfile to see what executes and what not... -
ISAPI DLL concurrent requests
Attila Kovacs replied to Mark Williams's topic in Network, Cloud and Web
show web.config and MCVE -
Do we need a sign up captcha?
-
Parsing Google Search Results redux
Attila Kovacs replied to David Schwartz's topic in Network, Cloud and Web
apt-get install elinks // or whatever distro you use, install elinks elinks https://www.google.com/search?q=dentist+in+scottsdale >output.file but as I told you already, you will face captchas very soon -
It happens to me every time I add a new unit to the project, mainly because I have other compiler directives in the .dpr. I think it works as designed...
-
Running the IDE in a VM on Mac Book Pro?
Attila Kovacs replied to PeterPanettone's topic in General Help
https://9to5mac.com/2017/08/10/macbook-pro-ssd-capacity-samsung-4tb/ -
JSON - Why self ins't updated with new values ?
Attila Kovacs replied to Stéphane Wierzbicki's topic in Network, Cloud and Web
Pretty weird. Never seen assigning something to "self", I'm wondering that this compiles. But for your problem, think on "self" like if it was a variable. It should be rather Person := TJSon.JsonToObject<TPerson>(aJsonString); -
TWebBrowser + dynamic JS question
Attila Kovacs replied to David Schwartz's topic in Network, Cloud and Web
Not to mention, once you get it to work, you will face in a very short time capthcas on every google pages for your IP. -
TWebBrowser + dynamic JS question
Attila Kovacs replied to David Schwartz's topic in Network, Cloud and Web
I told you already that this is not something google wants to be able and they are very good at this and changing continuously their code. Good luck -
Refer to Form Control without using the Form unit?
Attila Kovacs replied to Mike Torrettinni's topic in VCL
I don't get it. Even if you have a translator (which I would make with rtti), how would you handle different instances of a specific form? -
parsing Google search results
Attila Kovacs replied to David Schwartz's topic in Network, Cloud and Web
Even if you get it to work, they will vary the output in a very short time, obviously. -
WinAPI to query if a form is ready to Rock.
Attila Kovacs replied to Tommi Prami's topic in Windows API
you can detour TForm's DoCreate, DoDestroy, DoShow, Activate etc... from a separate unit and set some flags if it helps -
Record constants that are actually constant?
Attila Kovacs replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
@Lars Fosdal you could also pass classes in attributes. there you could have class vars for example. I like the json way. More flexible. (And more fragile, true) -
No. What exactly do you want to know?
-
Record constants that are actually constant?
Attila Kovacs replied to Lars Fosdal's topic in RTL and Delphi Object Pascal
@Lars Fosdal use json for your attribs, syncommons.pas can convert them to records