-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Storing and Displaying DateTime Values in SQLite DB
Fr0sT.Brutal replied to new_x's topic in Databases
But for this the field must be of type TDateTimeField which AFAIU does not automatically happen for SQLite as the engine can't know whether an integer field is timestamp or just integer. So user has to create the field at runtime doing tricks with FieldDefs or to define it at design-time. But TC says he has dynamic queries so that's not an option -
Any delphi components for VNC or RemoteDesktop?
Fr0sT.Brutal replied to ChrisChuah's topic in General Help
Have you tried Googling yet? https://www.google.com/search?q=vnc+delphi&ie=utf-8&oe=utf-8&client=firefox-b-ab -
Storing and Displaying DateTime Values in SQLite DB
Fr0sT.Brutal replied to new_x's topic in Databases
FDQuery.FieldByName('enterance_time').OnGetText Or try something from this topic https://en.delphipraxis.net/topic/3458-firedac-sqlite-datetime-field/ -
Any delphi components for VNC or RemoteDesktop?
Fr0sT.Brutal replied to ChrisChuah's topic in General Help
Alas, mRemoteNG uses this https://github.com/humphd/VncSharp which is not a ready-to-use library but native implementation of protocol. -
Troubleshoot SSL/TLS connection with Indy
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
So Indy is a good lib 🙂 -
True thread parallelism with P4D and Python 12
Fr0sT.Brutal replied to pyscripter's topic in Python4Delphi
Django, Numpy However compiled language with strict typing is always better for big projects -
Storing and Displaying DateTime Values in SQLite DB
Fr0sT.Brutal replied to new_x's topic in Databases
Try with custom TField.OnGetText. -
Any delphi components for VNC or RemoteDesktop?
Fr0sT.Brutal replied to ChrisChuah's topic in General Help
AFAIU mRemoteNG uses some kind of component or a lib for VNC so probably there is one. Try to check that lib. But you'll likely have to write Delphi wrapper by yourself -
Troubleshoot SSL/TLS connection with Indy
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I think any lib loading a non-system DLL should provide an option to specify the DLL path because though there are functions like SetDllDirectory you can't forbid the loading from system folders unless full path is specified when calling LoadLibrary. However SetDllDirectory allows to change search path priority to load DLL from a specific folder. Pre-loading the DLL also an option -
How to sort only a part of a list
Fr0sT.Brutal replied to caymon's topic in Algorithms, Data Structures and Class Design
If speed is not critical, you can determine the index of each object from inside comparer callback via IndexOf -
Troubleshoot SSL/TLS connection with Indy
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
So your program has relied on a 3rd party libs that *should* be kept up-to-date by someone else 🙂? I think in such case the program itself must control what it loads and check if a loaded module has proper version. Or just use local libs and don't bother about what's in search path. -
Probably you don't have fixed revision? #386 fix from @BoIitos for a day offset bug in TIdSNTP.NTPToDateTime(). https://github.com/IndySockets/Indy/blob/master/Lib/Protocols/IdSNTP.pas
-
RCS Chats - Rich Communication Services
Fr0sT.Brutal replied to Angus Robertson's topic in ICS - Internet Component Suite
Probably depends on a country. Here Telegram is 2nd popular messenger after WA. FB and Viber etc are far less used (I know no people ever used Viber). What's good in Telegram is that it has good API suitable for rich variety of automation. At work we use it to send status messages from servers to devs' phones. I also heard about Discord or Slack also capable of such automation -
SNTP just receives UTC time. Conversion to local time must be done with system functions using system's database of daylight zones. Probably you have obsolete DB
-
Suggestion of naming convention for enumerators
Fr0sT.Brutal replied to JohnLM's topic in Algorithms, Data Structures and Class Design
Why underlines? Just define enum items with any prefix, like encUtf8, encANSI,... Delphi strong typing won't let you use a member of another enum with the same prefix (type mismatch) -
Suggestion of naming convention for enumerators
Fr0sT.Brutal replied to JohnLM's topic in Algorithms, Data Structures and Class Design
I'm against this. These prefixes just add useless noise to final code and for big libs make coder to type more chars to get proper suggestion. IOW, they could be handy for lib developer but not for those who use that lib. However, prefixing do solve name clashes. -
RCS Chats - Rich Communication Services
Fr0sT.Brutal replied to Angus Robertson's topic in ICS - Internet Component Suite
IMHO it's much easier and more natural to register Telegram bot and send messages there. -
Use of dynamic control names
Fr0sT.Brutal replied to Bart Verbakel's topic in Algorithms, Data Structures and Class Design
There are even options to wrap some or even any property assignments into one container object and write something like ButtonsList.Enabled := True -
Recommendation for library/components for Interbase structure changes
Fr0sT.Brutal replied to dcroghan's topic in Databases
And for importing/exporting data -
Storing a large amount of elements in a 50k lines unit
Fr0sT.Brutal replied to Clément's topic in Algorithms, Data Structures and Class Design
What's the problem in 50k units?)) You can split them into sub-units each filling the same container with their personal data. You can also have pre-compiled binaries of these units to save compile time and rebuild them only when data changes. However in this case I as well suggest storing the data outside from source. I'd use resource but a simple external file also has its pro's -
Got message 'HTTP/1.1 401 Unauthorized' when tried to access user profile (https://graph.microsoft.com/v1.0/me)
Fr0sT.Brutal replied to Officeapi's topic in Network, Cloud and Web
Universal solution is to compare working and non-working dumps line by line. If you can't use proxy, try with Wireshark -
I need advice on converting a 500k lines 32bit Delphi 7 application to 64bit
Fr0sT.Brutal replied to Yaron's topic in General Help
Yes, this option as well. Compiler will give lots of hints and warnings from which you can start -
I need advice on converting a 500k lines 32bit Delphi 7 application to 64bit
Fr0sT.Brutal replied to Yaron's topic in General Help
Actually for good clean code it's just a matter of rebuild and fix slight API changes. But years back Delphiers used too much hacks/incorrect constructions that will break and most of them come from 2 presumptions that are now invalid: - Char is 1-byte (wrong since D2009 - now it's 2 bytes) - Pointer is the same size as Integer (wrong for x64) Also using generic Delphi types for WinAPI calls instead of those specified in docs (like Cardinal instead of DWORD) was very widespread and also will cause troubles on x64. That said, I'd recommend to read advises regarding porting and do like guys said above: check availability of 3rd party components, then ensure clean code in each unit, then port to x32 app in modern Delphi, then build as x64. You'll likely have to create many test projects that use only a few of units just to test things are OK. -
Register COM Object for create process/Fightiing AntiVirus
Fr0sT.Brutal replied to RTollison's topic in General Help
Yeah, probably AV considers cmd.exe as trusted so doesn't check carefully what exactly it does. You can try to run cmd once and feed commands to it via STDIN just like if they were entered in console. Use pipes for this. This sample works in console as expected: >(echo dir && echo dir) | cmd You don't even have to check STDOUT - just write to STDIN all the commands in queue. cmd will block the pipe when busy -
Register COM Object for create process/Fightiing AntiVirus
Fr0sT.Brutal replied to RTollison's topic in General Help
Yes! And will it cause slowdown if you run 50 of such processes in threads? So when there are 10 threads, things do work?