Jump to content

Rollo62

Members
  • Content Count

    1675
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by Rollo62

  1. Rollo62

    Adding a new SDK for MacOS fails

    Like that ? https://www.embarcadero.com/starthere/xe5/mobdevsetup/ios/en/installing_the_commandline_tools.html
  2. Rollo62

    Content not filling screen on iPhone 6

    There were cases that old or wrong Storyboard is cached by the phone. What helps in my case, is re-create as explained above. And remove app from phone, reboot phone, to be sure cache is deleted. Then the new installation should show the current screen.
  3. Rollo62

    Backing Up Delphi Install

    Virtual machines are the ultimative weapon against any kinds of crashes, even those from complete hardware. Get a new hardware and you're back again, even in old WinXP, Win7, whatever you like.
  4. Rollo62

    Prefix unit local variable names

    I got used to use local variables, to decouple arguments to inject them into anonymous methods. Thats why I try always to use A...argument with according L...local E.g. procedure MyProc( const AArg : String ); var LArg : String; begin LArg := AArg; //<== I make a "copy" of the arguments, to inject them into async anon-procs CallAnonymousAsyncStuffHere( procedure begin use LArg; //<== LArg is injected here, and always referable in the anon proc end ); end; Since I do it like that, I have never encountered any issues with those anon-procs anymore, and readability is very good (for me). Thats why I try to use the same scheme now all the time, anon or not anon, as a valid pattern for me.
  5. Rollo62

    Updated Community Edition

    4% increase is not much ...., but I think its tendency and message is totally wong. It should be -4% for a long term subscription. I am paying the fee already many years now, and I see this more as an investment into a bank account. Instead of getting benefit and interest as long term subscriber, I get squeezed as much as possible. Why are some of the best MVPs and supporters not on subscription, always with the latest Version ? Thats a shame for Emba, IMHO. Something must be wrong with their pricing and long term customers binding strategy. They will face reality in hard times like nowadays, when customers have to decide which of their expenses were absolutely necessary, and which can be abandoned.
  6. @emailx45 All right, hackers welcome. I was thinking smalller, in the local intranet first, there I usually use development phones, that were not normally intended to be in the wild. What I was thinking of was a kindof whitelisting the ADB connection to only one IP-adress, I have the gut feeling that there is already something in the Android ecosystem, we only need to dig it out.
  7. Thanks for the tutorial, I'm a huge fan of detailed instructions 👍 Good to point out above warning too, I'm afraid not many people are aware of this. (By the way: This is also true when you charge your phone on public USB-sockets, better deactivate ADB before ). Regarding the ADB over Wifi, maybe there is an option to restrict ADB operation only from a specific IP-Adress ? I have never checked that, but it could give much more security if you can allow only point-to-point connections.
  8. Dear all, I recently upgraded my hardware to never devices, for Mac as well as for the phones. Then I faced the problem that the nevery devices seems not to be connected to ADB as stable as before. It is possible to check by "adb devices" command from the commandline. It should show something like: but with the new devices this status is kept only for some minutes, then they might go offline Which prevents and further debugging. I had searched the web, and tried out many "solutions", but none of them seems to work reliably to me. Here is my list of actions I had taken: Use latest versions of all OS and Win-VM Limit the USB speed to USB2.0 in the VM settings The host and phones have latest USB3.1 with USB-C connector Updated the USB debug drivers (e.g. for Samsung S9+ via their SmartSwitch program, which installs also the latest ADB) Phone side: Disable/Enable USB debugging works to get backl online, but not 100% reliable Phone side: Remove all USB debugging restrictions helps to get back online, but not 100% reliable Phone side: Reboot device, this usually always helps, but of coarse breas your workflow massively Windows side: command adb kill-server and adb-start-server, will restart the server, possible to get online, but also seems to make and keep a separate connection sometimes, where the ADB cannot bind to any more. One important hint was that better use USB2.0 as connection, since many Phones still have problems with USB3.x But how, when you only use latest USB3.1 hardware now ? I used a USB3.1 to USB-A socket short (15cm) extension cable, w/ an older USB2.0-Hub: To force hardware speed to USB2.0. Only since then I could get ADB more stable, not all the time falling back to offline. This is my workaround for the monent. I wouldn't say the latter would 100% solve my case, but its maybe 99%, I'm still testing. Use and check with different USB cords, to be sure its not that one. One big problem I faced, is that sooner or later you won't find older USB2.0 hubs or cables in the shops, in one I was, they solely had USB3.1 right now (surely ready for the future). Good if you keep your old boxes and cables, as usual ☺️ Would be great if you could share your experience with the "ADB devices oflfine" case, which is a very unexpected one when it hits you- Looking forward to hear from your "best practices" in this case.
  9. Rollo62

    Linking errors with FacebookAudienceNetwork

    Maybe that helps, suggest something with hardware ? https://becomethesolution.com/blogs/iphone/install-incompatible-ios-apps
  10. Rollo62

    Advices of creating mobile App with Delphi

    - Take care on the Application events - Take care on the permissions - Don't make configurations earlier than FormShow, better as lazy and delayed as possible - Use a most modular approach, all single units decoupled and separately testable, just build your plug-and-play system - Start as low-level as possible, use TRect, TGlyph, TPath, TForm, TButton, TEdit, TListView ... Thats no drawback, you can use nested controls without much problems - Use System.IOUtils for any URL composition - Use TFrame as base for your views (some use TForms, but I have no issues with Frames, as long I create them in runtime) - Be aware of fancy controls, they are very likely to fail. - Don't think "desktop", consider "mobile" UI right from the start ... ... (to be continued)
  11. Rollo62

    Delphi and the new Apple M1 CPU

    That is good news, that releases of Delphi may run on M1. I think we still will have x86 Mac's for a while, so still some time until we really need to move to M1 as debug tool. Hopefully there were no hidden catches in the Rosetta 2, that let us need support more urgently.
  12. Rollo62

    Prefix unit local variable names

    https://en.wikipedia.org/wiki/Naming_convention_(programming) here with some examples ... Anyway, it seems that I use sometimes the RadicalMixedPascalCamelSnakeCase, if it makes sense to force visual readability and visual grouping
  13. Rollo62

    is it possible to undeclare an identifier?

    Yes, thats possible too, and I always wonder why on earth I should ever do it like that ? Oh yeah: Its so much advanced over FError, to have a fancy pig-tail in front
  14. Rollo62

    is it possible to undeclare an identifier?

    I know its modern nowadays to use all kind of bare names for anything. But those names are very likely to conflict with identifiers, keywords, etc., with a whole bunch of possible hard.-to-find sideeffects. Thats why I still like consequently use the decoration of names: L - for local instance: LError F - for field instance: FError G - for a global instance: GError (nevertheless: global variables are not recommended) This little extra char gives me a lot of extra-info - its not a function or procedure, if you use it with discipline - its not a global, intrinsic function, if you use it with discipline - its a local or field instance, or even global All this just because of the tiny character, I think its still very much worth it.
  15. Rollo62

    Linking errors with FacebookAudienceNetwork

    Don't know about JveSoft, but that looks interesting. JveSoft seems to add a whole lot of critical frameworks, are you sure they were all needed for your function ? How is JveSoft sourcecode structured, can parts of the sooftware be easily separated, or do you need to use all or nothing ? I would always try to minimize the critical frameworks, if possible.
  16. Rollo62

    DPM Package Manager - presentation

    waden = want a damn exclusive name
  17. Rollo62

    DPM Package Manager - presentation

    @Vincent Parrett Nevermind, these were just jokes DPM is fine related to NPM .... (if not yet taken, I would consider that name by myself).
  18. Rollo62

    DPM Package Manager - presentation

    YADPAM - yet another Delphi package manager
  19. To clarify: Its not in the enterprise version either, it was only a time limited test-license, in Rx10.3, until the next version. I wanted to check, but didn't find the time to. Now my test-license is gone, and I'm looking for other options.
  20. Rollo62

    DPM Package Manager - presentation

    Sorry, DOPE is nothing what programmers are aware of. Then better call it COFFEE "clean object file fragmentizer for external entities" .
  21. Rollo62

    DPM Package Manager - presentation

    Maybe so, it came from a text from Goethe, here in a Googled translation
  22. Rollo62

    DPM Package Manager - presentation

    In germany we have a saying: "names are sound and smoke"
  23. Rollo62

    DPM Package Manager - presentation

    How about +vraptor" vincent's rad application package tool open resource" ? Only 18 hits, when using the "+" ...
  24. Rollo62

    Manage overloaded IfThen functions

    This "naming pattern" is not limited to the uses alone. I know, most people dislike that decorating of function names, but I do that in some similar cases too, like that: MtIfThen(...
  25. Oh so 20's: Today, I say "Alexa, kill bill" Next year, I think: "GPT-3, optimize Windows and solve my customer Scott's code issues"
×