Jump to content

Fr0sT.Brutal

Members
  • Content Count

    704
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by Fr0sT.Brutal

  1. There is multiple SW_* variants so the example is irrelevant... Nice sample of bad naming, yes. Ideally it should be SetWindowEnabled IMHO
  2. 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).
  3. 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 ๐Ÿ™‚ ).
  4. 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.
  5. These hostings are must-know for every programmer so you won't regret learning them; moreover if you hope to attract some users / contributors
  6. Fr0sT.Brutal

    Delphi 64bit compiler RTL speedup

    OK, good to know that.
  7. 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
  8. 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.
  9. 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.
  10. You could give him a single slice of this bread (i.e. one chapter) ๐Ÿ™‚
  11. 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
  12. 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.
  13. Fr0sT.Brutal

    TEdit hint in OnKeyPress

    What you're searching for are called tooltips. Window with TOOLTIPS_CLASS class, TTM_* messages and so on.
  14. 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 ๐Ÿ™‚
  15. (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.
  16. Nick now lives at Github but there's no repo with test suite project.
  17. Are you absolutely sure? What happens if you comment out copy leaving only ScanLine?
  18. Fr0sT.Brutal

    Strange new behavior TDBEdit

    Just set breakpoint in OnClick and execute step by step to see what's the problem
  19. 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 ๐Ÿ˜‰
  20. 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
  21. 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 ๐Ÿ™‚
  22. Fr0sT.Brutal

    SMS via my phone..

    Good point! Probably I had found it but it didn't fit my needs. In my case it was my personal smartphone with thousands of SMS's stored so "Read all" would likely die in agony ๐Ÿ™‚
  23. I use Booleans as options for functions from time to time. Yes they add some guess work but defining a special enum type for every function is too hard for me. I hope I'll never deal with a library that would force me to do something like FindFiles('c:\', TFindFilesOptions.Subdirs)
  24. Well, you're like "If a thief is managed to get into your house, it's already game over". But that's not true and "Home alone" proves it earnestly ๐Ÿ™‚ Jokes aside, different cases require different measures. Your sentence asserts that any kind of software running on machines which limited users could access is a priori will be hacked. I don't think so.
ร—