Jump to content

Eli M.

Members
  • Content Count

    40
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Eli M.

  1. Eli M.

    In App Purchase (consumable and subscription)

    Dave, is this really the case? The current documentation still says subscriptions are not supported. This guy shows how to add them. Which I am going to try. https://delphitoptips.blogspot.com/2018/03/supporting-in-app-purchase.html?m=1
  2. RAD Studio is made up of Delphi and C++Builder. On the Delphi side the Object Pascal compiler is a single pass compiler and the compiler itself is not a parallel compiler but when compiling multiple projects in parallel it was able to compile 1 billion lines of Object Pascal code in 5 minutes on the AMD Ryzen 9 5950x 16 core machine. I wanted to see if something similar was possible with C++. This post is part of our modern hardware series where we explore the massive productivity gains that can be achieved on some of the fastest CPUs available at the time of this writing in early 2021. Just how much is 1 billion lines of code? Take a look. https://blogs.embarcadero.com/threadripper-3990x-the-quest-to-compile-1-billion-lines-of-c-on-64-cores/
  3. Eli M.

    Modernizing the Dev-C++ IDE

    Orwell Dev-C++ gets 80k-100k downloads a week. Just sayin'. C++Builder is a productivity upgrade over Dev-C++ since Dev-C++ has no visual designer.
  4. Eli M.

    ICS for Linux?

    20.04 is not officially supported in 10.4 according to the release notes. http://docwiki.embarcadero.com/RADStudio/Sydney/en/Installation_Notes
  5. We have a maybe ~40k-50k LoC iOS app in FMX for 5+ years and it only ever has had maybe 1 place it specifically needed DisposeOf and/or [weak]. Everything else just uses Free as it supports Windows as well.
  6. There are 50 new cross platform samples for Delphi 10.3 Rio FireMonkey available over on Github. The demos heavily feature … http://www.fmxexpress.com/50-cross-platform-samples-for-android-ios-osx-windows-linux-and-html5-in-delphi/
  7. Project contains 100 cross platform samples now. https://github.com/FMXExpress/Cross-Platform-Samples The original 50 samples are also now available in C++. https://github.com/FMXExpress/CPP-Cross-Platform-Samples
  8. Eli M.

    Android, TWebBrowser & Uploading files

    Add the JAR file by going to Projects|Target Platforms|Android|Libraries.. Right click and select Add...
  9. Eli M.

    How to get Linux installed?

    Do you have Enterprise or Architect? It isn't in Pro or Community. For FMXLinux you have to install that off of GetIt.
  10. It's intentional. The file has it's own copyright and is not covered under the BSD license. https://www.woll2woll.com/single-post/2017/04/24/Send-an-Email-with-an-Attachment-FireMonkey
  11. Not written up no. .SO (SharedObjects) files are basically DLLs. You can either take the one Delphi makes and put it into some other tools APK package and call it from the code in the other tool. Or you could take the 64bit version of the .SO their tool generates and have it call your .SO file. And then put their .SO 64bit in your Delphi APK and have it call your 32bit .SO.
  12. An MVP confirmed that they were granted an exemption for their app for ~1 year.
  13. The PhotoEditorDemo has permissions code that works for the camera.
  14. PM me with a budget. I can probably put together some people on UpWork with Android NDK experience to build a 64bit shim. Few different options. Use one of the tools that has an exception (Corona Labs, Adobe AIR, Unity) to load the 32bit SO file. Use something like Flutter which compiles to 64bit to load the 32bit SO file. Or compile a 64bit C++ SO file with the Android NDK to loadlibrary the 32bit SO file.
  15. It probably does work since there are actually 3 third party tools with exceptions. Just have to find what Google Play are looking for. I didn't try very hard. http://www.fmxexpress.com/learn-how-to-deploy-delphi-10-3-rio-android-apps-to-google-play-with-android-64-bit-requirements/ I've been banned from Google Play twice before (nothing to do with this) so YMMV.
  16. I've heard if you have a libunity.so in your APK or your project name is unity (so it generates libunity.so) then Google accepts it as a 32bit Unity app. YMMV.
  17. Eli M.

    FMXLinux web app deployment

    Updated version. Takes two params. First is the path of the app to run and the second is the port to run it on. Apparently balance only supports 16 (or 32) groups unless you compile it yourself. Example: ./gtkcloud.sh /root/FireMonkeyPaintDemo 81 #!/bin/bash for i in {1..16} do nohup broadwayd :$i & export GDK_BACKEND=broadway export BROADWAY_DISPLAY=:$i $1 & #echo "" done servers="" for ii in {1..18} do let port=8080+$ii servers="$servers localhost:$port:1 %" done echo $servers balance $2 $servers
  18. Eli M.

    Injecting Pascal into PHP?

    PHP4Delphi lets you build extensions for PHP. Pretty old though. https://sourceforge.net/projects/psvlib/files/PHP4Delphi/
  19. Eli M.

    FMXLinux web app deployment

    The way broadwayd appears to work is that it runs a single application on a single port for a single user. The connection is persistent because it is a websocket. This means that you need 1 port set up per concurrent user. I came up with some code but it isn't quite right yet. Basically, you have to run broadwayd and the app in the background. I came with this for loop bash script (edit: works now). Make sure you have enough RAM. #!/bin/bash for i in {1..99} do nohup broadwayd :$i & export GDK_BACKEND=broadway export BROADWAY_DISPLAY=:$i ./FireMonkeyPaintDemo & done Once you get your application running on 100 ports in the background (which will support 100 simultaneous connections/users) then you need a TCP load balancer to turn the 100 points into 1 port. One such tool is HAProxy: https://www.haproxy.com/blog/websockets-load-balancing-with-haproxy/ A simpler tool (with maybe less performance) is called balance (sudo apt install balance ). https://www.systutorials.com/docs/linux/man/1-balance/ Here is a sample command which would load balance 4 broadwayd ports as port 81: balance 81 localhost:8080 localhost:8081 localhost:8082 localhost:8083 After running this and the above you would be able to connect to localhost:81 and it will load balance you across the 4 backend ports. You can probably also do this with TIdMappedPortTCP.
  20. Eli M.

    Mustangpeak UltraExplorer

    I use UltraExplorer everyday. What is the license on the source that you have? Maybe you can post it to Github yourself.
  21. Eli M.

    Mojave with RAD Studio 10.2.3?

    Apple claims to be moving to allow iPad apps through Marzipan on macOS before the end of 2019. https://www.bloomberg.com/news/articles/2019-02-20/apple-is-said-to-target-combining-iphone-ipad-mac-apps-by-2021
  22. Eli M.

    10.3.1 has been released

    Installed. Went pretty smooth. Inline variables code insight still not fixed. Other than that seems good. Installed the new Navigator plugin from GetIt.
  23. Eli M.

    Blogged : Delphi Package Manager RFC

    I can contribute an FMX client that ties into whatever command line package manager you come up with. I already have one that uses a local CodeCentral database.
  24. Eli M.

    Blogged : Delphi Package Manager RFC

    What about Chocolatey? Already for Windows. https://chocolatey.org/ It already exists. It's already for Windows. Adding Delphi components to their ecosystem would help spread Delphi to other developers.
×