-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
TBinaryPacket - a wrapper class to read out sent binary data over network
Fr0sT.Brutal replied to aehimself's topic in Algorithms, Data Structures and Class Design
TMemoryStream? π -
ICS V8.66 announced
Fr0sT.Brutal replied to Angus Robertson's topic in ICS - Internet Component Suite
Git is able to work with SVN repos btw -
I'm afraid you can't. Just try to connect with a socket to addr:3050 (thus you can easily use threads/async check). Or create a thread with its own connection objects and try to request, f.ex., server props. It won't require any DB connection and will be as light as it could. Btw, it's weird you have to wait too long. Windows has 20 sec timeout for inaccessible connect attempts.
-
All checks except the actual connect to the base you want are unreliable. Show splash screen if your app is useless without DB or connect in background thread otherwise.
-
Is it possible to get a list of all global variables, consts, types (non RTL)?
Fr0sT.Brutal replied to Mike Torrettinni's topic in General Help
As a slightly crazy but working option I could advice to generate documentation with PasDoc. It will show you all public items in processed units. It also could generate machine-friendly XML for further processing -
How to Highlight a Control that Fails Validation
Fr0sT.Brutal replied to StephenM's topic in General Help
You have to link controls and XML fields 1:1, then just take invalid XML field, get its linked control, show it and display server's error text -
Listen to UDP in a TThread (Windows Service)
Fr0sT.Brutal replied to ClΓ©ment's topic in ICS - Internet Component Suite
Btw, TranslateMessage only deals with virtual keys so is useless for worker threads. Removing it allows to save 3 lines π -
PA is wrong here. "AS" only deals with classes (you can try it yourself)
-
TFileStream for memory mapped files
Fr0sT.Brutal replied to AlexBelo's topic in Algorithms, Data Structures and Class Design
Yep, after mapping a view your app in fact has less maximum address space available. However, this only has meaning with x32 apps. In x64 apps you have 18M Terabytes available so one little mapped view won't hurt much π Soooo...? -
Micro optimization: Counting items: 1 vs multiple iterations
Fr0sT.Brutal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
1) As long as you don't need input value of Counts, it's better to mark it "out" instead of "var" 2) When you declare a type for counts, you can zero it with "Default": "counts := Default(TCounts)" -
Micro optimization: Counting items: 1 vs multiple iterations
Fr0sT.Brutal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
+1 Small modification: Counts: array[TDocType] of Cardinal ..zeroize the array... for i := Low(aDocuments) to High(aDocuments) do Inc(counts[aDocuments[i].DocType]); -
TFileStream for memory mapped files
Fr0sT.Brutal replied to AlexBelo's topic in Algorithms, Data Structures and Class Design
TFileStream ;D Hmm, from what I know mapping doesn't read-and-allocate the contents of the mapped file. Contrary, it allows working with the contents like it was allocated in memory -
TFileStream for memory mapped files
Fr0sT.Brutal replied to AlexBelo's topic in Algorithms, Data Structures and Class Design
Do it π considering that 32bit will likely become obsolete in the near future, I doubt anyone will implement the functionality you're telling about. From the 1st glance, it shouldn't be too hard to implement -
TFileStream for memory mapped files
Fr0sT.Brutal replied to AlexBelo's topic in Algorithms, Data Structures and Class Design
https://sourceforge.net/projects/tpipro/ in IpStrms.pas -
Are there any experiences with www.experts-exchange.com ?
Fr0sT.Brutal replied to Rollo62's topic in General Help
It appears in my search results from time to time but only annoys me by its paid contents, I've never seen any useful answers in displayed fragments -
StackOverflow annual developer survey needs Delphi developers answering the survey
Fr0sT.Brutal replied to FPiette's topic in General Help
Name: Victoria Age: 28 Preferences: hardcore C, sometimes vanilla JS. No Python! Group coding: probably. -
StackOverflow annual developer survey needs Delphi developers answering the survey
Fr0sT.Brutal replied to FPiette's topic in General Help
I'm with you, don't be scared π -
JCL installation problems in D10.4.2
Fr0sT.Brutal replied to TurboMagic's topic in Delphi Third-Party
Is it impossible to select multiple projects and do "Install all"? Good idea for feature request if so -
StackOverflow annual developer survey needs Delphi developers answering the survey
Fr0sT.Brutal replied to FPiette's topic in General Help
IDK why they need race and gender but left my 5 cents -
JCL installation problems in D10.4.2
Fr0sT.Brutal replied to TurboMagic's topic in Delphi Third-Party
Build everything in predefined order? Yes Change build config in one click for all projects inside? Yes IDK what else is needed -
Well I don't have such props, in general I meant examining changes in DFMs before commit and saving only significant ones (that's what I do, reverting those ones that IDE modified itself). But there are pre-commit hooks that could run custom scripts which could do everything you need.
-
About ProxyAuth when using no authentication
Fr0sT.Brutal replied to Kyle_Katarn31's topic in ICS - Internet Component Suite
I prefer SmSniff but since you use SSL, it should be Wireshark. Or, as Angus said, enable traffic dumping in the client. Btw, there's relatively new ProxyURL property to set SOCKS or HTTP Tunnel proxy settings using single URL, ie proto://[user:password@]host:port where proto = socks5 or http. Setter of this property takes care of setting the proper Auth mode -
JCL installation problems in D10.4.2
Fr0sT.Brutal replied to TurboMagic's topic in Delphi Third-Party
That's a matter of taste. Pity IDE doesn't have "Absolute Base" config that all other platform configs inherit from. Having to add lib paths for every platform is very irritating -
About ProxyAuth when using no authentication
Fr0sT.Brutal replied to Kyle_Katarn31's topic in ICS - Internet Component Suite
You should sniff the traffic to see what's going on -
JCL installation problems in D10.4.2
Fr0sT.Brutal replied to TurboMagic's topic in Delphi Third-Party
There's a feature called - wait for it - PROJECT GROUPS! that could solve almost all of these steps.