Jump to content

Rollo62

Members
  • Content Count

    1945
  • Joined

  • Last visited

  • Days Won

    24

Everything posted by Rollo62

  1. Rollo62

    TListView OnItemClick problems

    I rely on ItemClickEx only, for all purposes, this works best IMHO.
  2. Not sure if you really propose to use that ? The first seems to be a joke only, and will be probably offline very soon. The latter could be self-hosted, but requires node.js environment. When looking for the simplest possible solution, why not looking after PHP ? The sites can be very cheap, and even if you install WordPress (ab)using its REST API, it could not be much simpler. If you set up a REST API only, thats also quite simple with PHP too. What is your main goal (Price, Self-Hosting, 0-Setup, Stability, Safety, Longterm availability, Support, Memory footprint, Performance, ... ) ? Thats a little unclear to me, from your examples above.
  3. Thanks for the info, that looks very interesting. What is unclear to me, does it depend on Bass.dll ?
  4. Rollo62

    FinTech anyone?

    It has good and bad sides, as always.
  5. Rollo62

    FinTech anyone?

    Yes, that is what they WANT you believe .... I still prefer to have cash in the pocket. Digital currency, not bound to any real value, allows the FED's and covernments to set its value at will. This opens all doors to very ugly manipulations, control and value transfers, which is controlled from the government. They tell us the story of crime and corruption, so that we forget to give it a second thought. For example, the EU FED already has their hands already in sorts of directly supporting countries, governments, banks, etc. ... WAIT: What was the one and only task of the FED again ? Yes, to ensure price stability (NOTHING ELSE).
  6. Rollo62

    FinTech anyone?

    In Germany banks silently rised their fees and conditions over the past years. Only recently a judgement was mad, which allows bank customers to set back to their original conditions, when they opened the account. Unfortunately this goes back unly until 2018, but at least this may count up to 200-300 EUR, or maybe more, depending on the use case. I think it was an EU law that triggered the judgement. Yes, I also think the fee's are to high ( for a fully automated process ). The banks will get obsolete anyway in a few years, when all countries managed to launch "digital currenries", and the FED's take over. I think no one needs these greedy imtermediate money grabbers anymore soon ( but then we're dependent from FED's and completely transparent, which opens a whole bunch of other nasty issues too )
  7. Rollo62

    Open PDF File

    Interesting idea, you intend to open PDF in the default browser, right ? What prerequisites do you need for that, does all modern browser have PDF viewer already integrated ? I think Firefox can do that without any AddOn, but I'm not so sure about all the others ( Chrome, Edge ).
  8. This is a class, not an enum. I think the advantage of enum ist, that you can use a "speakable name" to identify a numeric value. If you enhance this class to store also the name of an enum, you get closer, but you still cannot simply use "AVariable := TMyDynamicEnumType.FancyEnumName; ", I think this is what bravesofts is asking for. Ok, you could use specific class properties as names for each enum, but still hard to dynamically enhance that.
  9. You mean to define a NEW type, like that type TFileTypeRange = ftPDF.. ftXLSX; I think you can do that in certain local scopes and places, but does this really make sense ? The real goal of enum's is, when they were shared and used to guarantee correct values between several units, like pre-defined constants.
  10. Rollo62

    Enumeration Type as Parameter

    Not sure if you're concern is the term Set or Enum in the type name. I usually try to use singular, plural nomenclature anyway ( with or without Set/Enum mostly ). TMySpecialValue = (svOne, svTwo, svThree, svFour, svFive); TMySpecialValues = set of TMySpecialValue; or TMySpecialValueSet = set of TMySpecialValue; That could be mixed e.g. with array or list, but in the code it will be directly clear usually.
  11. Rollo62

    FinTech anyone?

    Thanks for pointing to this topic, I have not heard that term either. After fastly checking, it seems to be somewhat in current discussions. From my experience, building common banking API standards was always massively hindered by the banks and institutes itself in the past. Did somebody or something stimulated the 3 brain cells of banking managers recently, towards 21st century
  12. @angusj Hi Angus, I'm still playing with your nice Image32 library. It behaves really well under all circumstances. What I'm trying to achieve is to open an SVG, and to have the ability to access certain elements and/or layers, to make them visible/invisible, including all their possible sub-elements in the tree. So my goal is to have a complex SVG, with certain layers, where I can control the rendering on-the-fly at runtime, like on/off changing color, etc.. The internal structures are somewhat hidden, and the SvgReader/SvgParser seems to decode sub-elements on demand from text of TAnsi record. I have tried to make the internal SvgTree structures accessible, but that doesn't help much to get easy control over the certain elements. The .text property seems to hold the whole node data as string text, with the text.AsUTF8String; it only returns a certain part, I assume only the <style> part. Since .text is a pointer, I'm not sure if the following text is usuable at all, but its looks that its containing the current node as string. The Id and other identifiers seems all to be hashed, so I cannot retrieve and find nodes easily in the tree. I can see that the internal structures are optimized for best rendering SVG, which it does very well ( even SVG that fails elsewhere ). My question is, if there is a simple way to access and control the SVG-tree on the fly, to control parts of that rendering process ?
  13. @angusj Thanks for the proposal, yes that works well in some tests. I had considered before that this might add too much additional redudancy, since the same data is copied or hashed maybe in other places still, and I have tried to restore the hashed data before. In reality, after a second thought, this additional data doesn't matter much. The reason is that only a few "Id's" will be used in the whole SVG, so thats irrelevant regarding redundancy.
  14. @angusj Thanks a lot. Yes the properties can be set in the Elements DrawData dynamically, works nicely. Unfortunately the missing link right now is how to identify the desired element(s) in the first place. Either a "FindById" function, or some kind of "Id" property in the TElement might help to identify and grab the desired element. Maybe I can find that in a future releases one day., I'm curious to see where this nice library might evolve into, I see a huge potential.
  15. Not sure how do you calculate that ? I just checked prices for a 2.5" SSD vs. HDD 1TB. Lets say 1TB SSD roughly 180 EUR vs. HDD roughly 65 EUR, which makes an SSD up-cost of 115 EUR. If I only assume the SSD vs. HDD brings minimum 5 min. / day of saved working (compile/loading/saving) time, then this summarize to approx. 5 min * 200 (active working) days / year = 1000 min / year = 16.7 hours / year of saved working time. Usually I would expect you have hourly working cost of >= 25 EUR at minimum, this would mean minimum working cost savings of 417 EUR / year vs. SSD cost-up of 115 EUR. This is only for one year, usually I would calculate the lifetime of >= 3 years, so the ratio gets better every year. It really doesn't make sense to save money on the wrong side.
  16. I am wondering why that is still the case, from my prediction SSD should have been breaking even much earlier. https://blocksandfiles.com/2021/01/25/wikibon-ssds-vs-hard-drives-wrights-law/ Accoding to this blog, we still have to wait some more time. On the other hand, I think the SSD/HDD pricing has many political components in it, so both parties try to keep prices high as long as possible, of course.
  17. @angusj Thanks for the answers, yes I have seen that it has included a fast reader/parser basically. So the best possible approach would be to re-load complete SVG's from string, while controlling visibility and change properties outside of the SvgReader, by a standard XML tree object. I will check into that direction then.
  18. I agree to that. Maybe the best way, to catch any of the remaining formats is, to seek the string reversely, from end to start. 1. Then take the last separator (first found when searching reversely) in the string, as preliminary decimal separator. 2. If there are more separators in the string, they could be safely ignored, they can only be thousands separators. 3. If separator 1.) is the only separator in the string, only then you might run into an unclear situation, as you explained above. 4. But you still could try to count the number of decimals after the last separator if there are <> 3, then you still could be very sure that it's NOT a thousands separator, but a decimal separator. 5. Even if you have >= 6 decimals, it should be a decimal separator, as I rarely expect having a million separator without a thousands separator. ( Still somebody could do nasty things like that ) 6. Only if there are exactly 3 decimals, then you better know your format source.
  19. Rollo62

    How to design QR Scan focus screen with FMX

    That looks OK for me, I would do the same. What I meant was using the TPath, with a punched-out center hole and using its Bitmap fill property with effects. I just clicked a roughly demo together, only tested under Win32, see enclosed. This is just as proof of concept, it seems to work well, but needs some refinements of course. This would allow to use any masked path, but of course requires a bitmap copy right now. T418_ImgHole_001.zip
  20. Rollo62

    How to design QR Scan focus screen with FMX

    If you have a video scanning as background, you could simply add 4 TRectangle with opacity around the center, maybe controlled by margins. Then you have darkened frame around. Instead of Rect you could also check a filled TPath. Probably you can work with filter effects directly on the background image, but i think you need some kind of custom blur filter.
  21. Rollo62

    How to design QR Scan focus screen with FMX

    What OS are you looking for ? Generally you can check this: https://github.com/andrea-magni/ScannerMApp https://github.com/flydev-fr/ZXing.Delphi.Demo Winsoft "Camera for IOS", "Camera for Android" + "OBR ML Library for Android". https://delphiworlds.com/2020/11/native-camera-ios-android/ Generally I would try to use the bulit-in system barcode scanner, not trying to create my own one.
  22. We have this nice CPU in common, but I wouldn't call it a PC at all
  23. I think he speaks from a point on timespace in a distant future.
  24. Rollo62

    Skia4Delphi

    Do You mean raster images, that have been "vectorized", or any Adobe SVG in general ? Have you figured out what exactly went wrong in those Adobe files ? Maybe there are easy ways to re-convert it ( like open/save with InkScape) to make them running, I will try to check that later.
  25. I installed the WebView2 loader via GIT, and yes I copied the right 32/64 Bit DLL version close to the EXE. First of all, I am not sure if the normal, Windows 10 Edge works (as chromium), it canot be used in EdgeMode in my VM. So I thought OK, this is not yet ready, so I have to install the "Canary" channel separately, still not working. Then I read about the "Runtime" version, and installed that too, still not working. You are right, I considered 32/64 Bit issues again (my EXE is 32), and 'I re-installed all Loader 32/64, Canary 32/64 und Runtime 32/64 accordingly, still not working. I thought, maybe a reboot needed, still not working. Anyhow, thats too much hazzle anyway, so I will stay with Cef4Delphi, it is more advanced in my opinion. I wanted to check if Edge is comparable meanwhile, I'm afraid it's not. The goal was to get rid of the 200MB Chromium DLL's, but the Edge DLL's are not less anyway (only should be better integrated in the OS). I can work with TWebBrowser in normal mode, but its not able to switch to EdgeMode. If I use TEdgeBrowser, then I cannot work either, so I ask myself what am I missing here ? Regarding the VM, I have some VC redistributables, and usually the latest Win10 version, .NET version, so what else could go wrong ?
×