-
Content Count
302 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Patrick PREMARTIN
-
Something like SimpleNote with an API?
Patrick PREMARTIN replied to David Schwartz's topic in General Help
Just after reading latests blogs post about Idea brands on Embarcadero blogs platform, I remembered of fileStack. Their API is simple to use. For a "note as text file" mode, you can use it under a Free or Start plan. https://www.filestack.com/pricing/#/marketplace -
How to execute a cmd file in delphi in invisible mode
Patrick PREMARTIN replied to NBilov's topic in Windows API
Perhaps this project will help you : https://github.com/TurboPack/DOSCommand -
Something like SimpleNote with an API?
Patrick PREMARTIN replied to David Schwartz's topic in General Help
You don't want a server and DB but local copies, I can understand that, but even for MQTT you need a server somewhere (or I missed something ?). It's interesting to know if you want to synchronize notes as texts (last update erase the others) or synchronize changes on notes. Two different approaches. If it's text, you can use a private git repository and an API over it. Is your app a personal app or is it distributed (and you don't want to manage users datas) ? -
If you are not sure of what you do with begin/end blocks, try the code formater (Ctrl+D or contextual menu "format code").
-
Perhaps you can put the TImage in a TScaledLayout or simply use its Scale property after having a TImage.Size=TBitmap.Size in pixels ?
-
As I understand you want your TImage has the same Width/Height than your Bitmap without interest in pixel depth ? In that case, try this : procedure DisplayInOriginalSize_AndSizeToFit(const bmp: TBitmap; im: TImage); begin im.Bitmap.Assign(bmp); im.With := im.Bitmap.Width; im.Height := im.Bitmap.Height; // or SetSize() im.Bitmap.BitmapScale := 1; end;
-
RAD Studio Breakpoints not working
Patrick PREMARTIN replied to Willicious's topic in Delphi IDE and APIs
Sometimes the reason is simply to instructions in the code somewhere. For breakpoints the IDE needs only one instruction per line. They are side effects if it's not the case. If you have this problem on a unit, just try the Ctrl+D (code formater) and see what happens after. -
No problem in Android Apps. You can do that. You can also do the same in iOS/macOS apps. Just display only Apple "App Store / Mac App Store" link, not the Android one. And to open the link you can use a library like https://github.com/DeveloppeurPascal/librairies/blob/master/u_urlOpen.pas if you don't know how to do it.
-
Yes, it is. Mine is https://play.google.com/store/apps/dev?id=8272814550297637230 To find yours, simply go to https://play.google.com and search for your apps. On a the page of one of them, click on your company or developper name. You can personalize the display from https://play.google.com/console/ and choosing "developer page" option in the menu. If you don't know what to put on the (big big) page banner image. You can use https://github.com/DeveloppeurPascal/GooglePlayDeveloperBannerGenerator to generate one from the pictures you'll add to it. I've chosen to put icons of my apps.
-
If you want a very simple way (but not optimized) : set a parent for your image (something linked to a form by a way or an other), add a Text component with characteristics your need, set its parent to the TImage, and do a YourImage.MakeScreenShot to get the new bitmap.
-
billing D11,unsupported version of Play billing
Patrick PREMARTIN replied to toufik's topic in Cross-platform
did you initialized Android libraries dependencies in your project (from project manager / platform / android / library and contextual menu) ? (the SDK changed in 11.0 and in 11.2) -
in 28 years, never had any problem of speed on compiled exe and have seen Delphi programs in high speed environments like data acquisition from external devices "Delphi is dead" is wrong. It will be if Embarcadero stop updating the libraries. The Pascal language is rather alive, even if it is not seen everywhere. A lot of "fresh" and "modern" languages on the market, too many choices for developers and their hierarchy. It's our job, as Delphi or Pascal developers, to help them to choose our environments and to show why it's a better choice than a lot of recent things from the GAFAM and others.
-
Beginner to Delphi. Have no idea what I'm doing wrong here
Patrick PREMARTIN replied to Willicious's topic in Delphi IDE and APIs
Hi For moving a sprite in a game for desktop OS, don't forget to manage WASD (QWERTY keyboard), ZWQS (AZERTY keyboards) and arrow keys. More accessible for users : add an option window where they choose what keys they want to use (what I never does, but I must add it to all my games too). You have some open sourced games in Delphi on GitHub at https://github.com/topics/delphi-game You can also find some on GetIt if you look for "arcade" or "game". -
Which is the best book to learn Delphi
Patrick PREMARTIN replied to Giorgi Chapidze's topic in Tips / Blogs / Tutorials / Videos
Kevin Bond's book is a progressive course used in schools in South Africa. It has a progressive approach with lots of examples. It was used for last summer learning Delphi bootcamp : -
How convert an android app into an i-phone app?
Patrick PREMARTIN replied to Fabian1648's topic in Cross-platform
Is it a public application or limited to one person / enterprise ? As a developer you need a developer account for Apple, but its type depends on who could download the app if Apple validate it. Now with an individual developer account it exists a "private" distribution true App Store. Have to ask to them after creating the app on Apple Connect. -
How to resample image with Skia?
Patrick PREMARTIN replied to softtouch's topic in Delphi Third-Party
Hi Why don't you use https://docwiki.embarcadero.com/Libraries/Sydney/en/FMX.Graphics.TBitmap.Resize ? -
don't you have the default firewall from Windows ? good to know it's working again. network issues are so strange.
-
I had a problem in a VM : somewhere on the network between Windows VM (Parallel - Win 11 ARM) and the host (Mac mini M1) Windows firewall blocked some packets and the PAServer was accessible when I tested it, but nothing else worked. Perhaps you can stop the firewall to try ? If not, activate the verbose mode on PAServer ("v") and check if it receive anything from the IDE. If not, network error, if yes, try last command manually from terminal on the Mac and see what it answers. (also check if Xcode is still the release you think it is and if the Mac don't send you a demand to access your keys)
-
in this domain, prudence is needed Comodo aka Sectigo, Thawte and some others are recognized by Microsoft, Symantec is not anymore (after loss of their keys) even if it has a cost, it's important to not choose "the lower price" we can found on the net. even with a renew, each certificate is "new" for Windows tools. So 1 year is less interesting than 3 years.
-
The certificate is available as a private key you can use on every windows computer you want. The "hardware/browser" thing is only to sign the request, get you private/public CSC and add a password on it. With the PFX file and the password you do what you want until CSC expiration date. By signing a program, the signature is available since the certificate expiration, but you can timestamp it for "life" validation of the signature. So yes, a 5 years certificate can be used during 5 years (except if you revoke it if it's stollen or compromised). Exe/Msix files signed/timestamped are recognized by Windows Smartscreen depending of how you signed them.
-
the renew process is explained at https://www.ksoftware.net/code-signing-certificates : just click "renewing" in orange in the first part
-
Good to know. Thanks 😉
-
Yes, you only have to use the license manager available in Help menu or directly from the install folder. But if you already have a 11.x release installed, the 11.3 will erase actual product. And if you already had a license installed on your computer, check if the trial license is compatible before installing (or you'll have to remove it from the license manager).
-
Hi Interesting library. Is the generated code multiplateform or only for Windows ? Do you call web service in a thread or in the main process ?
-
Simple Microsoft logic how-to : - You must have a CSC to sign your programs and distribute them on our operating systems. - We don't provide anything to get CSC on our operating systems. Use a Mac !