-
Content Count
3319 -
Joined
-
Last visited
-
Days Won
110
Everything posted by Lars Fosdal
-
Receiving multiples JSON on Rest API Horse
Lars Fosdal replied to Andre Capelli's topic in Network, Cloud and Web
Are you receiving multiple individual json packages (1), or is it one large package with an array of multiple json elements (2)? 1. {json}{json}{json} 2. {"list":[{json},{json},{json}]} How complex is each json element? Can you show us an example? Is it the insert to the DB that is time consuming or the decoding of the json? Are you opening and closing the DB connection for each json element? -
Receiving multiples JSON on Rest API Horse
Lars Fosdal replied to Andre Capelli's topic in Network, Cloud and Web
You need to give us a little more to work with. How complex are the json structures? Is it the backend or the client that will be written in Delphi? Is it the backend or the client that will receive 1000 jsons ? If the backend uses 1-2 seconds and it is not written in Delphi - that is not a Delphi problem. -
Parnassus Bookmarks for Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
I was signed up but didn't have time to watch it - when I tried some of the interesting replays, they were not working. Why don't they do a blog post about it and indicate a timeframe for availability? In a way, it is good that they have HighDPI issues since that means proper dogfooding, but I fear that we will be talking about update 1, and not a December hotfix. Judging from all the HighDPI issues I've seen discussed, the right thing to do would be to break the mold and do it right. The current approach with kludges and workarounds = tech debt++. -
The dice example doesn't look well at the smaller sizes as particularly the lower right corner is not as round as it should be. Offering multiple downsampling algorithm options is a good idea.
-
Not sure that is possible as such functionality could violate security.
-
Although VCL apps need 16x16 too.
-
I would think that you could increase the potential number of users with quite a bit if you added VCL support as well 🙂 Edit: or even add it as a pro feature at a reasonable price.
-
Can I change the entry point for a VCL application?
Lars Fosdal replied to JamieR's topic in Algorithms, Data Structures and Class Design
It's still there. -
I use the good old IcoFX 1.6.4 Portable Edition. KenR - how well does it resample for 32x32 and below? Most of the time, the smallest sizes need some TLC to look decent.
-
Parnassus Bookmarks for Delphi 11 Alexandria?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
When there are reasons, there should be public information - but there is just silence. -
It is not that we don't see its importance, we just don't have any faith in EMBT's ability to pull it off.
-
Fortunately, ImageMagick is available for Linux, Windows, MacOSX and even iOS. https://imagemagick.org/script/download.php
-
Is sips open source? Is there a Windows version?
-
Good question... If you intend to distribute it for free, and it is a generic tool for Delphi - You could work with EMBT to get it packaged for GetIt? If the source code doesn't contain any commercial libs, there is the source code on GitHub option?
-
Personally, I would never download an .exe from a less known source.
-
What defines an image here?
-
How to Prevent Multiple Instance Application Running.
Lars Fosdal replied to amit's topic in Cross-platform
In 2017, there was an example on SO for Windows / OSX - not sure if it still is the appropriate way to do it? https://stackoverflow.com/questions/13326292/only-one-application-instance-with-firemonkey For iOS and Android - single instance is handled by the OS, isn't it? Edit: There also is an interesting comment at the end of this thread https://codeverge.com/embarcadero.delphi.firemonkey/only-one-application-instance-w/1049535 -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Lars Fosdal replied to Lars Fosdal's topic in Cross-platform
Moved the post to Cross-platform. Ref. Obstacle 2: It is probably path related. For now, I had to move the Mac out of my office to not be tempted to tinker more on it, but get some actual paid work done. The lure of unfamiliar territory was too powerful to resist when within the reach of my fingers. -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Lars Fosdal replied to Lars Fosdal's topic in Cross-platform
Getting to know the Mac. The OS is “UNIXish”, so that is pretty easy, but the UI and the keyboard… OMG, it is hard when 30 years of Windows is engraved into your DNA. Shift, fn, control, option, command will take some time to get used to., The multi-touchpad, with clicks, doubleclicks, single, double and triple finger combos... After deciding on Parallels Pro as a VM host, getting the Windows 11 for ARM VM up and running was incredibly easy. I went for four CPUs and 10Gb as the base config. Getting Delphi 11 + November patch installed went flawlessly and pretty quick. Getting PA Server installed also went without a hitch. It took a little while to start Delphi the first time, but after that it was snappy. I created a blank FMX project, but when I try to select the MacOS ARM 64-bit platform, I arrive at Obstacle 1: Delphi fails to import MacOS SDK and asks if I installed the XCode command line tools? I had installed XCode, but since I´ve never used it, it is pretty much a blank sheet to me. Looking at the PA Server console, I found that it ran: > command_line: "/usr/bin/xcodebuild" -version -sdk When I run that in a Terminal, I get an error message: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance So, Google it is. https://github.com/nodejs/node-gyp/issues/569 lists a solution, suggesting # Install Command Line Tools if you haven't already. xcode-select --install Which fails, suggesting it is installed, and that I should use Software Update to update it. I do. It is up to date. # Enable command line tools sudo xcode-select --switch /Library/Developer/CommandLineTools This does not help. Same error message about the command line tool instance. The third option worked. # Change the path if you installed Xcode somewhere else. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer Yay, I have a MacOS 12 SDK! Even if the import log looks weird. A single Hello World TLabel and Run. Yay! MacOS ARM app running! Lets try something more complex. I open a sample project, switch to MacOS ARM, and compile. dccosxarm64 command line for "FMSimplePhysics.dpr" [dccosxarm64 Error] E2597 ld: library not found for -lFlatBox2DDyn [dccosxarm64 Fatal Error] F2588 Linker error code: 1 ($00000001) Obstacle 2: Now what!? It is probably trivial, but ... -
Delphi on Windows 11 on MacBook Pro 16 (2021)
Lars Fosdal replied to Lars Fosdal's topic in Cross-platform
It is kinda ass backwards, isn't it... -
My faith in EMBT is faltering, and I am the optimist among us...
-
The appropriate solution would be using RDP, as @Rinzwind pointed out.
-
EurekaLog Black Friday/Cyber Monday sale!
Lars Fosdal replied to Kevin McCoy's topic in Delphi Third-Party
Note that if you are writing commercial software and you are not using EurekaLog or similar tools, you are really missing the best way to identify WHERE your apps fail, when they fail. Usually, that is a when, and not an if - and EL gives you full insight into where something did not go according to plan in your code. You still have to come up with the why yourself 🙂 -
https://stackoverflow.com/questions/45285599/how-to-use-animated-gif-in-firemonkey appears to have a working code example in the last comment? Note that I have NOT tested it.
-
Delphi’s TZipFile working on a stream
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Which part is slow? IsValid, Open, or the loop? Does the slowness depend on the size of the zip file?