Jump to content

Fr0sT.Brutal

Members
  • Content Count

    2268
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by Fr0sT.Brutal

  1. Btw, to check the local network speed I successfully used iperf tool. There's plenty of such apps but that one satisfied all my needs
  2. MyClass.DBSource<TPanel>(5).Top := SpinEdit.Value;
  3. Range/overflow checks f.ex.
  4. There is multiple SW_* variants so the example is irrelevant... Nice sample of bad naming, yes. Ideally it should be SetWindowEnabled IMHO
  5. Fr0sT.Brutal

    Internet time sync - with some timeout

    I was forced to throw out my own timesync service on Windows when servers my apps are running on were joined to domain. Even with allowing domain policy I couldn't get time changing working. So first check if your app is able to change time at all (just call SetSystemTime without any network requests).
  6. I won't argue with that, you're absolutely right! But from your post wasn't clear whether you dislike republished binaries only or ANY pre-built binaries (hardcore Linuxoid-style πŸ™‚ ).
  7. Original author of these libs as trustful as could be any random software dude in Internet whose apps you're using. But he had already released BASS in stable form when I started coding usable apps, which was at 2003 I suppose so now he's been here at least for 20 years.
  8. These hostings are must-know for every programmer so you won't regret learning them; moreover if you hope to attract some users / contributors
  9. Fr0sT.Brutal

    Delphi 64bit compiler RTL speedup

    OK, good to know that.
  10. I guess he mean (and I'm +1 to this) that sharing a software project on file storage is awkward. Usual way of doing this is source control hostings like Sourceforge, Github etc. PS Bass is cool. Years ago I wrote my own music player based on it
  11. Fr0sT.Brutal

    Delphi 64bit compiler RTL speedup

    If that "eaten" memory would be unused otherwise why you bother about that consumption? I suspect they just dynamically reserve as much memory as possible for internal needs. Links to original source of these libs would greatly improve trustfulness of your project.
  12. Fr0sT.Brutal

    Python4delphi with Lazarus on Linux?

    I know nothing on the subject but can't avoid mentioning that on any platform and with any language you still have the most universal solution - launching a child process that would do things.
  13. You could give him a single slice of this bread (i.e. one chapter) πŸ™‚
  14. That's true but not always possible. More essential lesson is when one encounters a slowdown it's wise to track what exactly is the cause. One doesn't even need timers and so on, it's enough to just comment out fragments and see what's changing
  15. I did quick & dumb test that has shown that 100 ScanLines on 5000*5000 bitmap takes 5 seconds (!) because bitmap is recreated in every call. So this is the real handbrake. Looking at TBitmap.GetScanLine you can extract necessary parts provided you have the pointer to the 1st row from initial ScanLine call. BytesPerScanline helper method is public so this even won't be a hack.
  16. Fr0sT.Brutal

    TEdit hint in OnKeyPress

    What you're searching for are called tooltips. Window with TOOLTIPS_CLASS class, TTM_* messages and so on.
  17. You mean something like TFileSearcher.FindFiles('c:\', TFileSearcher.TFindFilesOptions.Subdirs); ? God when ppl ask for adding some features from other languages to Delphi I guess they don't mean this Javism πŸ™‚
  18. (side note) Generally, if one doesn't even know when his app opens a file, he has really big problems. First, all places in code that open and close file of interest should be located. Then you can set breakpoints to these places or add some logging. If code wasn't written by WinAPI fanatics, all file operations are performed via SysUtils.File* or old-school System.AssignFile/Reset/Write, so setting breakpoints to these functions will help.
  19. Nick now lives at Github but there's no repo with test suite project.
  20. Are you absolutely sure? What happens if you comment out copy leaving only ScanLine?
  21. Fr0sT.Brutal

    Strange new behavior TDBEdit

    Just set breakpoint in OnClick and execute step by step to see what's the problem
  22. Okay. Presume there is Windows-10 PC and you can run any code with guest rights. Tell me how to read the memory of any system service πŸ˜‰
  23. Hmm I guess some of us has had too little sleep at night because I don't get your point. Of course properly named parameters of enum type carry more info than plain boolean. But they involve too much overhead and pollute namespace so I prefer a little bit of mystery the booleans bring
  24. Fr0sT.Brutal

    Default code style

    When inserting a piece of code, its default style is for some reason "HTML". Here, at Delphi forum, it seems like a annoyance generator invented by the devil πŸ™‚
Γ—