-
Content Count
1245 -
Joined
-
Last visited
-
Days Won
28
Everything posted by Sherlock
-
@Uwe Raabe Has written a nifty tool to circumvent this: https://www.uweraabe.de/Blog/2014/09/09/the-garbled-path-variable/
-
It should be possible, but just like Whatsapp, it comes with the price of losing resolution aka details. Let's get some details: What kind of films are we talking about here? Resolution, duration? Because my phone films 1080p at 30fps and gives me roughly 55MB (HEVC) for a one minute clip. That is almost not worth mentioning. Extrapolate that to 10 minutes and you get roundabout 600MB, nowadays, that is next to nothing.
-
That is the catch @Vanar might have overlooked. Once the clip is there, there is no need to compress it to load it into an application, that should work just like that, automatically. On the other hand, if you own the server, you need to do your compression (lossy, by the way) there, on the server. And you need to check if you find a matching inflation-lib for your app.
-
This is the best tip yet, because reinventing UI/UX is not something that should be done by just anyone. The other books mentioned should be considered a more fleshed out version of the RAD-Studio help files and not a guide on how to design a user interface.
-
I'm guessing Serenade might get you closest to what you need, but not without some (extensive) preparation. Out of the box it does not support Pascal or Delphi, but it is extendable via custom commands and plugins: https://serenade.ai/docs/
-
I actually did that a couple of months ago, but lost my little "how to". So here is the basic steps taken from this link https://sid-500.com/2017/10/26/how-to-digitally-sign-powershell-scripts/ and an SO answer: Generate the key: New-SelfSignedCertificate -DnsName email@yourdomain.com -Type CodeSigning -CertStoreLocation cert:\CurrentUser\My Export the certificate without the private key: Export-Certificate -Cert (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert)[0] -FilePath code_signing.crt The [0] will make this work for cases when you have more than one certificate... Obviously make the index match the certificate you want to use... or use a way to filtrate (by thumprint or issuer). Import it as Trusted Publisher Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\TrustedPublisher Import it as a Root certificate authority. Import-Certificate -FilePath .\code_signing.crt -Cert Cert:\CurrentUser\Root Sign the script (assuming here it's named script.ps1, fix the path accordingly). Set-AuthenticodeSignature .\script.ps1 -Certificate (Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert) And that should do it for your machine. Obviously the last steps need to be done on every client that is supposed to recognize this certificate.
-
Delphi Parser/Compiler Limitation?
Sherlock replied to Larry Hengen's topic in Algorithms, Data Structures and Class Design
And in the forum the code tags, I'd like to add. -
Since the dark mode is a non trivial thing to do with Delphi without the pesky skins, I believe we should better not hold our breaths.
-
I made the mistake of updating LockBox 3 for my Delphi 12.1 via GetIt and now it wont install. Reason is they somehow checked in their sources with LF only instead of the expected CRLF. Now the package wont compile and I have no way of fixing this as I am unaware of the procedures needed to complete the installation manually. IDE is set to automatically convert all known file types to CRLF. I really don't know where to point the search path and/or library. Any help is much appreciated.
-
LockBox 3 via GetIt broken since April 2024 Update
Sherlock replied to Sherlock's topic in General Help
OK, should have checked the original source for an installation instruction. https://github.com/TurboPack/LockBox3 it says all I need to know right there. Thanks, and sorry for the trouble. Which leaves the wrong CRLF settings. They seem to be attributable to a .gitattributes file which looks faulty to me. Delphi requires CRLF independent of native languages or other. So default behavior for text should be set to CRLF and not auto. -
How to calculate Unicode text width?
Sherlock replied to luebbe's topic in RTL and Delphi Object Pascal
You got me thinking...that is the way I used to do it. I'm unsure why I had to switch to this unwieldy TextLayout method. I think it is because of HiDPI and scaling and such....Which might be easier accounted for with a TextLayout. -
How to calculate Unicode text width?
Sherlock replied to luebbe's topic in RTL and Delphi Object Pascal
@Anders Melander You are right, I totally overlooked that small caveat. Sorry about the digression. Unless the output file is a pdf or some other graphical print format. Then my method should still be at least a base from which to explore further. -
How to calculate Unicode text width?
Sherlock replied to luebbe's topic in RTL and Delphi Object Pascal
When I faced this problem I used to write to the canvas and checked the width afterwards. Now with FMX this is a bit easier through the TextLayout Unit. If you are using FMX, check out this: http://docwiki.embarcadero.com/RADStudio/Alexandria/en/ FireMonkey_Text_Layout in a nutshell you create a TextLayout object via a TextLayoutManager, which knows the Canvas you're writing on. Then set the properties you want the text to have (Font, size, color, etc.) and enter the text and you can retrieve the TextWidth as a property of the TextLayout object. -
@Beantreeze Don't worry. We have all been there. Some (like me) more than others. It is part of the learning experience called life.
- 12 replies
-
Changes in System.sysutils.pas were not reflecting in other unit in Delphi 11
Sherlock replied to sp0987's topic in General Help
Once this issue is resolved, take a look at class helpers. Perhaps this could help get around the need to change RTL/VCL units. -
Changes in System.sysutils.pas were not reflecting in other unit in Delphi 11
Sherlock replied to sp0987's topic in General Help
Hence my feeling for the need of discussion. -
Changes in System.sysutils.pas were not reflecting in other unit in Delphi 11
Sherlock replied to sp0987's topic in General Help
I presume you copied this altered version to your projects path...? And it is missing from the other project? Project requirements that require a change to a file which might in turn get changed with every patch/update of the IDE are at least worthy of discussion. -
A gem from the past (Goto)
Sherlock replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
That reminds me: -
ActionList Editor: New Standard Action...
Sherlock replied to PeterPanettone's topic in General Help
I'm guessing this is one of the shortcomings of Jira Service Manager vs. Jira. I considered the option to vote for a call a good thing too. -
Looking for a couple of good "starter" Delphi books
Sherlock replied to t2000kw's topic in General Help
@Rick_Delphi Please don't kill this forums raison d'être. 😉 -
Looking for a couple of good "starter" Delphi books
Sherlock replied to t2000kw's topic in General Help
Funny this has remained unmentioned thus far: Object Pascal Handbook by Marco Cantù ...especially because it is free. -
Do you need an ARM64 compiler for Windows?
Sherlock replied to Lars Fosdal's topic in Cross-platform
Well, considering Windows on ARM will be gaining momentum as soon as some of these https://www.windowscentral.com/hardware/laptops/here-are-the-9-pc-makers-supporting-qualcomms-game-changing-snapdragon-x-elite the streets, it might be a smart move to get the compiler running. But that's just my totally unprofessional opinion. On the other hand, MS themselves are increasing the pressure. Just look at the agenda for this years "Build": https://build.microsoft.com/en-US/sessions/9d806202-be61-4b5d-ba0d-59ecfcaf0482?source=sessions -
Strange bug with string literals in RAD Studio 12
Sherlock replied to luebbe's topic in RTL and Delphi Object Pascal
Now where would be the fun in that? -
Strange bug with string literals in RAD Studio 12
Sherlock replied to luebbe's topic in RTL and Delphi Object Pascal
Sometimes I'm thankful for my ignorance. I didn't even know it was possible to concatenate without the +. Otherwise I would be in Anders' position and screaming bloody murder.