-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Controlling Accelerated Chars and Vertically Align a caption, on the same object
Fr0sT.Brutal replied to stephanos's topic in General Help
At least in Delphi you can. Don't know about Lazarus. -
Automatically make your PC wake up at a given time
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I'm pretty sure local network servers send periodic packets to each of network peer. Maybe when someone invokes list of network machines. Good to know that! I've never dealt with this technology before, now I'll try to save it in my mind's set of known tools 🙂 -
You should finish the call chain in OnHeaderEnd and retry the request async-ly. F.ex., by posting a custom message via PostMessage to socket control's handle (and, of course, write handler for it). Also don't forget to limit number of retries
-
Problems downloading files from a FTP server using the ICS FTP Client. The DIR command has no carriage return or line feeds
Fr0sT.Brutal replied to M-Brig's topic in VCL
First you've got to tell what File Explorer is... Why don't you just simply sniff the traffic instead and see what's really going on? -
Automatically make your PC wake up at a given time
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Strange. Won't local server's periodic activity wake PC every time then? -
From what I understood you can do the following: Enum all windows Find those which belong to explorer processes Check if these are hidden Terminate corresponding explorer processes Though it seems more wise to me to just handle the described situation in your software.
-
Are you addressing me? Btw, what you need XML minification for? As far as I'm aware you can rarely see plain XML in the wild; most of formats suppose Zipped XML (docx, fb2.zip). DB engines often use compression internally as well, HTTP protocol allows deflate compression.
-
Problems downloading files from a FTP server using the ICS FTP Client. The DIR command has no carriage return or line feeds
Fr0sT.Brutal replied to M-Brig's topic in VCL
Nevertheless there's no good replacement at all. HTTP interface won't let you use a client app where you can just select multiple directories and download them all recursively. -
Honestly, I'm not sure I understand your needs but maybe FindWindow or enum processes can help you
-
Word has never been a good HTML generator )) CSS styles in all pages it created were a nightmare. Well, I tried the first online minifier Google has given me and the source of this very page. Initial 76217, minified 63707, "compression" 16%. On the one hand, that's more than nothing. On the other hand, that makes the page source unreadable, could cause errors (f.ex. in embedded scripts or styles), and finally saves only 13 kB.
-
Problems downloading files from a FTP server using the ICS FTP Client. The DIR command has no carriage return or line feeds
Fr0sT.Brutal replied to M-Brig's topic in VCL
Yeah and it makes me sad. HTTP has no standard listing format either so is very hard to automate. -
Problems downloading files from a FTP server using the ICS FTP Client. The DIR command has no carriage return or line feeds
Fr0sT.Brutal replied to M-Brig's topic in VCL
I've been working with FTP for decade and never heard of #0s in listings. The protocol is text one, it's not meant to use non-literal chars. However, these devices could run some weird servers where everything could happen. Probably filenames on these devices contain #0 (I'm not aware if Posix allows that but maybe). Btw, I recently checked the servers I communicate with (pretty large ones, therefore running advanced server software) and neither of them allowed MLSD. -
Common code base for VCL and FMX control code
Fr0sT.Brutal replied to Girish Patil's topic in Cross-platform
The simplest solution is like ICS team did. Create usual VCL unit with some IFDEFs disabling unit-specific lines when UseFMX is defined and a thin wrapper for FMX that includes VCL unit like an inc -
Delphinus: Working on per project(folder) installations
Fr0sT.Brutal replied to Memnarch's topic in Tips / Blogs / Tutorials / Videos
Very impressive! Congrats! -
Responsive UI with heavy background threads running in idle priority
Fr0sT.Brutal replied to Yaron's topic in General Help
So you repeat sleeping in the main thread until bg thread becomes suspended again? o_O Side note: unless you analyze 100s of mediafiles at the same time, reusing of thread seems just like a useless complexification. -
Will it worth the efforts?
-
FastMM4 and option "AlwaysClearFreedMemory"
Fr0sT.Brutal replied to A.M. Hoornweg's topic in General Help
Just construct a full string preliminary connStr := format('... password ...'); then execute connection.execute(connStr) and then clear it ZeroMemory(connStr, Length(connStr)*SizeOf(Char)) if DB access components are not doing something hidden, the only copy of connection string will now be erased. Of course, you'll have to erase contents of Windows edit control as well. That's probably a harder task 🙂 Maybe overwriting .Text property with some random string will help.- 5 replies
-
- fastmm4
- alwaysclearfreedmemory
-
(and 3 more)
Tagged with:
-
Automatically make your PC wake up at a given time
Fr0sT.Brutal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Just configure it to hibernate after 1hr of inactivity. -
Not so much thanks to resources https://stackoverflow.com/questions/388506/displaying-splash-screen-in-delphi-when-main-thread-is-busy/45465592#45465592
-
Problems downloading files from a FTP server using the ICS FTP Client. The DIR command has no carriage return or line feeds
Fr0sT.Brutal replied to M-Brig's topic in VCL
Very weird case. I'd recommend you to check that server with FileZilla and sniff the traffic of your app with simple SmSniff program. Then test with ICS sample FTP client. -
Is Record method solution or a bad hack for pointer fields?
Fr0sT.Brutal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
It's personal. I, contrary, always stuck on C's ((foo *)bar**) etc. Pascal has different symbols for taking an address and dereferencing and it's very convenient. -
What i am doing wrong from my secure FTPd project?
Fr0sT.Brutal replied to Quarks's topic in ICS - Internet Component Suite
In FileZilla you can enable detailed log (right-click over log control) to see what happens actually. The AUTH C:\TEMP\TLS you get is very suspicious. -
FastMM4 and option "AlwaysClearFreedMemory"
Fr0sT.Brutal replied to A.M. Hoornweg's topic in General Help
Just control the copies carefully. Everything Delphi does with strings could be imitated with manually allocated buffers that are cleaned manually.- 5 replies
-
- fastmm4
- alwaysclearfreedmemory
-
(and 3 more)
Tagged with:
-
Sure you're right I don't get it 😞 what do you mean? Could you make an example?
-
Pros: * Type check => less error-prone * Takes care of existing managed fields if any * For tiny records is replaced with several CPU instructions instead of calling function with all the overhead => faster Contras: * None IMHO. One very rare case is if you alloc a record with managed fields in a heap without zeroing, then it probably fail on attempt of disposing these fields before assignment (fields will contain random garbage)