Jump to content

Cristian Peța

Members
  • Content Count

    451
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Cristian Peța

  1. Cristian Peța

    Barcode reading on Honeywell and Zebra devices

    I tried to subclass the Activity in Java for Honeywell and doesn't work. No errors but doesn't start the scanner. Maybe my Java knowledge was not enough. I will give it an other try when I will have a little time.
  2. Cristian Peța

    RAD Studio 10.3.3 now available

    About that circles: https://community.idera.com/developer-tools/b/blog/posts/ide-improvements-in-rad-studio-10-3-3
  3. Or directly if you don't need to add but to replace. Memo.Lines.LoadFromFile(FileName, TEncoding.ASCII);
  4. Cristian Peța

    Deal - breaker: Registration Limit Increase

    My VMs are connected to network and 10.1 does complain if 10.2 or 10.3 are started in an other WM. Probably because every WM does have an other IP (VMware stuff). "Duplicate License Key found. The same license key is used on 192.168.136.152. Please install a separate license" But starts and works. But 10.2 and 10.3 doesn't say anything.
  5. Cristian Peța

    64bit testing hardware/emulation

    Running in 32 bit mode and accessing more than 4GB.... I thought this is a relic of an ancient era.
  6. Cristian Peța

    64bit testing hardware/emulation

    You don't think what? I don't think that new devices with 4GB and less are running in 64 bit mode. Only some exceptions. The vast majority are running in 32 bit mode.
  7. Cristian Peța

    64bit testing hardware/emulation

    I don't think so. 64 bit OS will use more memory than a 32 bit. With 2GB RAM it's better to run in 32 bit mode. I have a Samsung A10 (model SM-A105FN released 2019) with 2GB RAM and running in 32 bit mode. PS. It's running Android 9
  8. Cristian Peța

    64bit testing hardware/emulation

    There can't be a device with more than 4GB memory and 32 bit OS. You can take the cheapest with 6GB.
  9. Cristian Peța

    Arab in iOS

    TLabel is not native: http://docwiki.embarcadero.com/Libraries/Rio/en/FMX.Controls.Presentation.TPresentedControl.ControlType
  10. Cristian Peța

    Arab in iOS

    Too little details. Stock TLabel component doesn't work with right to left languages. I don't understand how it works on Android but if it does maybe on iOS is font related.
  11. Cristian Peța

    Parsing Google Search Results redux

    Here Google Search is gray (Available in Enterprise) and included in that 1 year subscription from EMBT, https://www.embarcadero.com/products/enterprise-connectors And you mean that this connection is not to a Google API? Why not? From Google API documentation: "Custom Search JSON API provides 100 search queries per day for free. If you need more, you may sign up for billing in the API Console. Additional requests cost $5 per 1000 queries, up to 10k queries per day." "The search results include the URL, title and text snippets that describe the result. In addition, they can contain rich snippet information, if applicable. " https://developers.google.com/custom-search/v1/overview
  12. Cristian Peța

    Pointers... loops...

    I started with Basic. The next was Z80 assembler. But assembler opened my eyes and is a base of understanding how things works. P.S. I can't imagine that someone can do a good thing in Spring4D for example without understanding CPU and memory. Also if someone does not have this knowledge working with C or C++ is a waste of time in my opinion. Then better Java.
  13. Cristian Peța

    Pointers... loops...

    You need first to understand what a pointer is and how things like pointers and other types are stored into memory. Maybe diving a little in assembler will help you to understand what is under the hood. I can't imagine a good programmer that don't know a little how CPU works or how things are stored into memory.
  14. Cristian Peța

    Pointers... loops...

    First you need to know the maximum length of "rn" and allocate that maximum from start. Something like this: popmsg: array[0..100] of ODBALMMSG2; and call it like this: FConnection.ErrHandle := cnc_rdalmmsg2(FConnection.ConnHandle, -1, rn, @popmsg[0]); This way you don't need pointers.
  15. Cristian Peța

    Parsing Google Search Results redux

    https://community.idera.com/developer-tools/b/blog/posts/enterprise-connectors-now-part-of-rad-studio-enterprise-architect-edition
  16. Cristian Peța

    Parsing Google Search Results redux

    I see that Google Search is part of Enterprise Connectors from C-Data that is part of RAD Studio Enterprise and Architect editions now. Has someone tried this? https://www.embarcadero.com/products/enterprise-connectors
  17. Cristian Peța

    jpg validation

    I think that if an image viewer is not complaining it's OK. Are there other things to check? And yes, I tried https://en.delphipraxis.net/uploads/monthly_2019_10/11.jpg.a7ea4fc99c1ad313a4ff4d986ba246c9.jpg with 3 different viewers and no complains.
  18. Cristian Peța

    wtf is TForm.Action for?

    I see that when you click on a form their Action is executed. Action property was probably published for someone that will find something useful in this.
  19. Cristian Peța

    wtf is TForm.Action for?

    "Vcl.Forms.TForm.Action inherits from Vcl.Controls.TControl.Action" It's for buttons and menu items. You select an action defined in a TActionList object (centralized actions). It's strange to have this for TForm but this is like in FMX where any control can be a container for any control.
  20. Cristian Peța

    The beauty of class and record helpers

    It's like passing an object as const. You can do what you want with the object because const is only for the reference. P.S. But compiler can decide to put this const into a registry or pass as reference. Nice to track down bugs...
  21. You haven't told us what TPath.GetDocumentsPath returns for you in 10.2. I suppose the same as in 10.3. And I suppose the same for TPath.GetSharedDocumentsPath. Do you see any difference between 10.2 and 10.3? Because targetSdkVersion is now 28 in your manifest and you need to ask permission for what you want to do. This is an Android OS request. Nothing to do with Delphi.
  22. Cristian Peța

    LiveBinding at runtime

    Actually LiveBindings replaced the data-aware controls overhead. With a worse one. But... that this was by design... this is something new to me.
  23. Was Task Scheduler not good enough for this?
  24. Cristian Peța

    Memory leak only with IDE debugger

    Was just bitten by this. ClientDataSet.Edit; ClientDataSet.FieldByName('Field').AsString := 'aa'; //exception "DataSet not in edit or insert mode" if debbuger is reading ClientDataSet.LogChanges property P.S. State is changed to dsBrowse when reading ClientDataSet.LogChanges
  25. Cristian Peța

    Android in VMWare

    I don't understand what are you trying here. Delphi does't emit x86 code for Android. Are you using an ARM emulator? @John Kouraklis, Schokohase asked you if you have installed an ARM and not x86 Android. What exactly have you installed?
×