Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 11/12/24 in all areas

  1. dummzeuch

    Buying a mini pc to install Delphi

    There is also Mouse Without Borders, now part of Windows Power Toys, which has a similar functionality, but is Windows only. But as Alberto just clarified: He needs a different functionality, so this won't help. Regarding KVM switches: I found them a bit too pricey for just a convenience so I do the same as Anders and use the multiple input ports of my monitor(s) to connect my computers and switch between them using the monitor's on screen menu. My keyboard has two USB ports so I connect the mouse to the keyboard and just need to plug in the keyboard's USB cable into the computer I am currently using. (A separate USB hub would offer the same "convenience" at much less cost than a KVM switch). Also, I can have one of my monitors show the display of one computer and the other the display of the second one, if I need that. I don't know whether KVM switches allow that nowadays. Of course that always depends on the use case: If you want to switch frequently, a KVM switch may be worthwhile. But then maybe Remote Desktop or Synergy / Mouse Without Borders could be a better solution.
  2. Attila Kovacs

    Double, default value

    Note that there is also a System.SysUtils.TryStrToFloat() function, along with many other TryStrToXXX() functions, you may find them handy.
  3. Brandon Staggs

    Double, default value

    Yup, which is just one more reason why safety through automatic initialization is illusory.
  4. Stefan Glienke

    Double, default value

    Which - fun fact - does not happen on the method call (unless it's a virtual method) but when accessing any member inside of it. You could still have some method which does not access any member and it will not AV at all. We can argue all day about this - any runtime behavior one might slap onto it will not save the language from being inherently unsafe. It needs to be built into the language/compiler itself (Hi, Rust)
  5. Remy Lebeau

    Delete First & Last Character

    The SysUtils unit in Delphi's RTL has AnsiDequotedStr() and AnsiExtractQuotedStr() functions for that exact purpose.
  6. This is not correct. When P4D is used in an extension module it uses LoadDllInExtensionModule which just uses the dll loaded in the python process. It does not load or initialize the python dll. The calling process does that. So you can have more than one Delphi generated pyd files without issues.
  7. pyscripter

    ssh tunnel with ssh-pascal

    In the latest commit, multiple connections are handled in separate threads. So, Multiple Connections on LocalForward · Issue #11 · pyscripter/Ssh-Pascal is fixed. Seems to work fine, but could you please test it?
  8. Rollo62

    Buying a mini pc to install Delphi

    You could check https://symless.com/synergy Works like a charm for me, at fair costs
  9. Stefan Glienke

    Double, default value

    First, it's wrong to assume that all local variables reside on the stack, depending on optimization they might be in registers. Second, rep stosd is terribly slow for small sizes (see https://stackoverflow.com/a/33485055/587106 and also the discussions on this issue https://github.com/dotnet/runtime/issues/10744) Also, the Delphi compiler arranges managed local variables into one block that it zeroes (in many different and mostly terribly inefficient ways).
  10. DelphiUdIT

    New patch is coming ?

    NO, also Delphi and some more then this ( like NDK ?). EDIT: No NDK update. The patch is installed in 10 seconds without any Issues.
  11. Stefan Glienke

    Double, default value

    Why should the CPU waste time zeroing stuff that will be set shortly after anyway? Compilers are there to warn/error when any code path leads to a situation where a variable is not initialized.
  12. @Gex99 It's always nice to know that someone benefited from the work I put it in to solve a problem. It was a tricky problem that, as you saw from my posts, took a while to solve. The solution I eventually found was easy to implement. I'm glad it worked for you too. Thanks for saying something.
  13. Alexander Halser

    App does not start anymore on macOS Sequoia (due to sandbox restrictions?)

    Problem solved. It wasn't the permissions, but a native NSToolbar control. This toolbar contained two NSToolbarSidebarTrackingSeparator items, which were used to create a vertical separator bar on the toolbar. While this had worked before, it's illegal for macOS 15. Only one of this item type is permitted.
  14. dummzeuch

    Buying a mini pc to install Delphi

    They possibly are. I was referring to those that are also sold from small Chinese companies or possibly individuals directly to Europe via Amazon or other online marketplaces. They seem to just put every buzzword they can find into the description, sometimes even conflicting ones.
  15. Anders Melander

    Buying a mini pc to install Delphi

    A customized Windows from China (if that's where the system is from)... That right there would be enough for me to wipe it. I can't speak for Lars, but before Space Karen took the title, I Bezos was a bit of a real life Bond villain (okay he still is, but it's nothing compared to Elon). There are still a lot of ethical problems with how Amazon treat their work force and their suppliers. And then there's the recent Washington Post debacle. These idiots just can't stay likable. That said, Amazon's return policy and customer service is second to none and it's the only place where I can get English language books in hardcover for a reasonable price (I'm in Denmark). Fair enough but like everything else (except maybe death), the only way to overcome that is to try it and learn from the experience. But I can understand if you'd rather use your time and energy on something else. I think the last system I bought ready-made, apart from laptops, had a 80386 processor and 16Mb RAM. I've built a few lemons along the way but it's been a while since the last one. By the way, one thing that you should do when looking at a new system is compare the CPU with the one in your existing system. Although a new system most likely has a newer CPU it might not be faster than what you have now. For example the processors in the two systems you listed are mobile processors optimized for low power consumption (it has a nominal clock speed of 0.7 GHz!), while your existing system likely has a desktop processor which likely is optimized for performance. https://www.cpubenchmark.net/cpu.php?cpu=Intel+N100&id=5157
  16. StrToFloat() does not have an option to return a default value. You need to use TryStrToFloat() for that.
  17. Brandon Staggs

    Why does IDE require UAC elevation when starting?

    Some of the worst offending software is "mainstream" anti-malware, in my experience. I have lost count of how many sudden problems were the result of mainstream security software screwing things up. Not saying that is the problem here, but the lengths you went to to make your Delphi IDE start up are extreme and would not happen "naturally" with Windows and the Delphi installer.
  18. johnnydp

    Best internet components

    No.
×