-
Content Count
1245 -
Joined
-
Last visited
-
Days Won
28
Everything posted by Sherlock
-
Writing if statement in the Code Editor
Sherlock replied to PeterPanettone's topic in Delphi IDE and APIs
D12.1, 100%, Dark Theme. Broken behavior: And there is enough space above and below for the hint to move. -
Delphi compiled EXE are flagged as malware by anti virus software
Sherlock replied to Jaska's topic in General Help
I think it is not filling the fields themselves, but the words used to fill them. Some "Heuristics" are really just that simple. Take Windows UAC installer detection for example. If an exes name contains Install, setup or even patch it will automatically need to be run with elevated privileges. If however you provide a manifest requesting a non elevated execution level the UAC will not elevate. -
Web installer worked fine for me too. Impressive list of fixes. Worried about the future of bug tracking though.
-
Just spent the last 30 minutes staring at the screen, waiting for progress. Task manager showed high load in MS Defender...so I finally killed that and now the web installer is running. I wonder what was amiss there....
-
This is 12 patch 1 version info. They must have done something....
-
OK here's what I don't get. Seeing this const FuzzFactor = 1000; SingleResolution = 1E-7 * FuzzFactor; DoubleResolution = 1E-15 * FuzzFactor; I have to ask myself, why not const SingleResolution = 1E-4; DoubleResolution = 1E-12; Sure the calculation happens only once, and FuzzFactor seems to explain a magic number but then we still have those other magic numbers... just an observation.
-
The word you are looking for is "incomplete".
-
Simplified Debug Visualizers for all my TNullableTypes
Sherlock replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
D'uh! Should have figured that one out by myself. Sorry about that. Carry on. -
Simplified Debug Visualizers for all my TNullableTypes
Sherlock replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I feel you got a typo in your code, @dummzeuch type TNullableDateTime = record private FIsValid: INullableTypesFlagInterface; FValue: TDateTime; public function Dump: string; // other methods and operators end; // ... implementation // ... function TNullableDateTime.Dump: string; begin if IsValid then Result := DateTimeToStr(Value) // <- should be FValue? else Result := '<invalid>'; end; Should the Dump function not refer to FValue? -
OK, so after a test run and wondering what took so long for a barely more than "Hello World" project... the product seems to have an issue with UNC paths. Filed it as #17
-
For your assets on the Releases page please, please don't use the Codenames only. I just sat in front of my Delphi with an open project and could not quickly find out if the ubiquitous number 12 represents the elusive city of Alexandria or Athens, unsure of which of your Assets to download. If you must waste space by using Codenames, then please at least waste two spaces more by adding the version you mean to address....or to satisfy my Monkness scrap the Codenames altogether.
-
A gem from the past (Goto)
Sherlock replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Nice find @Lars Fosdal -
Delphi 12 installation has failed in all possible ways...
Sherlock replied to Hans♫'s topic in General Help
Congrats. I got used to VM, running a Windows VM on a Mac made it easy to develop for three platforms (Win, macOS, iOS)... never tried Android, but should work out. -
Delphi 12 installation has failed in all possible ways...
Sherlock replied to Hans♫'s topic in General Help
Rolling back the VM is not an option? -
A better way to share global data structures than as global variables?
Sherlock replied to DavidJr.'s topic in Algorithms, Data Structures and Class Design
I'm on the edge of my seat to see where this will lead... -
I was tasked with finding a way to know if files have been altered. The possible alterations can only be caused by either system failure or a semi malicious person as the computer is not connected to a network and the gain for said person is...minimal at best. In both cases the altered files would have to be recreated instead of reused which would slow down a different process a bit. In short these are cache files. And of course the best way to know if a file has been altered without permission is a hash, since Windows permissions are sketchy at best. One of these files grows by roughly 2600 Bytes every 5 seconds, and therefore it would be necessary to rehash after each such interval. The system would be generating up to 20 of these files "simultaneously" with each of these files being about 6 hours long on average and may peak at 24 hours. So in Bytes we are talking on average 11MB peaking to 44MB. Here's the question: What would be the best way to do this without to much of an impact on performance. I could use Delphis built-in hashing system.Hash.TSHA1. It is pretty straight forward, but before I dive in on the shallow end of this pool and break my neck...perhaps one of you has a better suggestion.
-
Work for Embarcadero Sales!
Sherlock replied to Dave Millington (personal)'s topic in Job Opportunities / Coder for Hire
Done @David Millington https://www.delphipraxis.net/214805-arbeite-fuer-den-embarcadero-vertrieb.html -
OK, but my application might crash and then the file might not have been hashed or even written. But I guess I could express the need to perform a "complete reload" after a crash. But it's not nice...
-
Delphi and "Use only memory safe languages"
Sherlock replied to Die Holländer's topic in General Help
There's an argument I can subscribe to: Spare us the syntactic sugar of the last 15 years and concentrate on the bug fixing. Digit separators, generics, inline variable declaration, multiline string literals, string-like operations support for dynamic arrays? Can them all, and burn the heretics who asked for them -
Delphi and "Use only memory safe languages"
Sherlock replied to Die Holländer's topic in General Help
And we cry about the issues because of that almost every day...at least if we are at all concerned with security. -
Delphi and "Use only memory safe languages"
Sherlock replied to Die Holländer's topic in General Help
Now there's something the folks over at Embarcadero can aspire to. Imagine built in memory safety in Delphi. -
In the past I have encountered some issues with the classic mount scheme, especially in WiFi environments, where a temporarily lost connection could lead to a permanently (until next reboot) lost mount. I have found autofs to be a perfect solution for this and also a good way to reduce network traffic. Here is a small explanation: https://documentation.suse.com/sles/15-SP2/html/SLES-all/cha-autofs.html. And after looking into this I found newer versions of systemd are capable of the same thing, just read here: https://anteru.net/blog/2019/automatic-mounts-using-systemd/.
-
The certificate is there to show that someone feels responsible for this file. And is confident enough to stick his name to it. Since then it has not been altered.
-
The future of vmware is uncertain since the Broadcom acquisistion. At least their "larger" products have been switched to a pricier model. At the moment they say that workstation and player remain untouched...for now. https://borncity.com/win/2024/01/19/after-discontinuation-vmware-player-workstation-and-fusion-seems-to-remain/
-
i need help with uploading a file from android device to distant server
Sherlock replied to houssam1984's topic in Cross-platform
What protocols does this distant server support? Which authentication steps need to be taken? Can you manually or by other means do this task? As soon as you can answer these questions...you'll get an educated answer.