Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/15/18 in Posts

  1. dummzeuch

    New features in GExperts

    GExperts has recently gained a few new features: Two new experts to start/stop recording and to replay a keyboard macro. These are minimal experts which allow you to add additional keyboard shortcuts to the existing IDE functionality. The idea and the code were contributed by Dejan M. Goto Previous / Next modification Editor Experts. These again ... https://blog.dummzeuch.de/2018/12/15/new-features-in-gexperts/
  2. I do this all the time in AlignMix, our mapping package. Here's our super-fast algorithm: 1. Have a sorted list along one dimension (I normally do longitude) 2. Do a binary search to find the point with the closest longitude (let's call this P:0 ) and record the distance between this point and the search point 3. Start a loop: look at the next sequential point from P:0 in the sorted list; record the distance and update if smaller than previous; exit the loop if the difference in the longitude is now greater than the shortest distance found, otherwise move on to next point 4. Start a loop: look at the previous sequential point from P:0 in the sorted list: record the distance and update if smaller than previous; exit the loop if the difference in the longitude is now greater than the shortest distance found, otherwise move on to next point In practice I combine steps 3 & 4 so it alternates searching for the next above and the next below P:0. Hope that helps. In my tests this is extremely fast and scales the same as a binary search (log(n)) Steve
  3. Alexander Elagin

    Feature request for Source Indexer

    There is a setting which controls the docking behaviour in Options - Environment Options menu, named "Docking" 🙂 I usually switch off Auto Drag Docking - in this configuration one has to explicitly hold Control key down while dragging a window to make it dockable, otherwise the window is just moved around remaining floating.
  4. Just a heads up, we are on an older version of TJvHIDDeviceController and it started throwing ''Device cannot be opened" errors (getting Access Denied on CreateFile) during startup after upgrading to Windows 10 1809 (it was happening in the field, and I had to manually install 1809 to reproduce). This happens as it fills its internal list of the HID devices on the system. I am not yet sure of the variety of devices that will fail in this way, but right now it seems any HID keyboard will do it. It looks like I'll be able to deal with it using the OnDeviceCreateError event to set Handled:=True (after I upgrade the jvcl). This recent SO post describes the situation: https://stackoverflow.com/questions/53761417/createfile-over-usb-hid-device-fails-with-access-denied-5-since-windows-10-180
  5. jbg

    Unresponsive IDE and massive memory leaks with RIO

    Here is a description of how to debug the IDE.
  6. If it is the distance you are looking for, I don't think presorting are really faster as calculate the distance direct. from my experience presorting is in the most cases slower. But it depends. If the Data is more or less static then maybe presorting will win. in other cases Use Hypot to calculate the distance. for point in Pointlist do begin dist := Hypot(checkx-point.x, checky-point.y); if dist < checkdist then ..... end; Hypot is very fast You can also use a parallel Loop in this case
  7. David Heffernan

    Shellexecute cmd.exe with spaces

    Surely you just call CreateProcess directly
×