Jump to content

Dany Marmur

Members
  • Content Count

    172
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Dany Marmur

  1. Dany Marmur

    Funny Code in System.Types

    Compile, debug, run = answer.
  2. @Uwe Raabe, much better explained!
  3. What i do: Fiddle with the "Autosave" option. Close all "heavy" forms before closing the project. Not optimal but works for me most times. HTH
  4. Dany Marmur

    Injecting Pascal into PHP?

    Hello all! This might be the wrong forum. Apologies. It's not about Delphi output. I know some people here uses PHP. I have also read about some integration project. DWScript transpiles Pascal to JavaScript. Otherwise that would probably be a good candidate... I have just finished a limited job for some commercial entity (not what i usually do). And every now and then when these jobs show themselves i have to fight Word-press or Drupal. As a side-note it's interesting to see how little coding competence the consultants managing these sites have. It's not the first time that a php-hater like me have to do the job for them, and the result is not 100% since i refuse to "learn" the idioms of those monsters. So this last time, googling the PHP manual, word-press codex and all i was thinking; a "plugin" that translates ObjectPascal to php! Not that i would have to google the manuals very much less, though. Something like: functions.php: <?php /** * Word-press blah blah... ... ?><?pas function SeriousCoding(var aTypedVar: string): Boolean; begin return StrToIntDef($_POST["something"], 0); end; ?><?php .... ?> or some such. Do you think it would be possible. Is there a OP to PHP transpiler project to start from? TIA, /Dany
  5. DevExpress has a lot of BeginXx/EndXx that have similar effects. I could consider it ok to have Locate being a postponed function. But i can also see that other views are valid. Tricky.
  6. Dany Marmur

    Funny Code in System.Types

    I do not use these. But if they do not set Result implicitly then this is horrendous. If that is a word. Horrific? Wow.
  7. Dany Marmur

    Firedac and simultaneous connection to different version of Firebird

    Marcus, i mean accessing a 2.5 install (on a server, not locally) using a client install with the fbclient.dll from 3.0. Really? ODS = On Disk Structure, a very server-side concept. Opening a FB 3 file using a 2.5 server - that won't work because of different ODS.
  8. Dany Marmur

    Firedac and simultaneous connection to different version of Firebird

    I do not use FireDAC but generally, you should be able to access a 2.5 DB using a 3.0 fbclient.dll. What may give you headaches is if FireDAC when it build SQLs (supporitng cursors) uses 3.0 syntax for your 2.5 DB. Most should work anyway, IMHO.
  9. Dany Marmur

    Best delphi so far?

    I still have it if i need to for such projects. The projects that i still maintain in D2009 are super-old and can be replaced with... hm... how to say; more apt technologies using newer Delphi versions. It is a kind of consolidation towards fewer versions. On the other side are clients that put a stop to developing further, i.e. technical debt. Do note; i'm NOT saying the D2009 is a technical debt in itself, just the stuff i deployed using it. Just count the years 🙂 "Deleted" will be the VM as in "will not be maintained further".
  10. Dany Marmur

    Best delphi so far?

    I have projects start in different versions and some projects upgraded. I upgraded projects a lot more back-when before virtual machines. Nowadays i "simply" keep a VM for any deployed project/projects. I have "ended" up staying on: D2009 (migrated this spring - soon to be deleted!!!), XE2 (will be obsolete by 2021 - fingers crossed), XE7 (will probably be upgraded to 10.2.3 in 2020, mush easier because it's mainly server-side), Berlin (10.1 Upd 2) and Tokyo 10.2.3 10.2.3 is not deployed, it's WIP (XE2 stuff to be migrated) but i am comparatively happy with that version anyway. I have only dabbled with 10.3.x and i will not jump on that train just yet.
  11. Dany Marmur

    FmxLinux bundling with Delphi and RAD Studio

    @Dalija Prasnikar pls explain your use of the expression "kitchen sink" in this context.
  12. Dany Marmur

    Bug in Delphi CODE INSIGHT?

    I suffered from "Out of Memory" quite some in different version of Delphi. The latest sizeable project in Tokyo was a pain when trying to "Compile from here" some 4-5 projects. I updated my DevEx library and the problem went away for Tokyo. So - yes, these thing are dependent on multiple factors. IMHO it is not an overly quaint demand to have a single Delphi user start the IDE as admin and debug. So many 3rd party stuff (and some of Embas stuff is very 4th party...). IMHO it's something akin to Windows itself. The new laptop works so beautifully until you install 100+ of apps, devices, drivers and whatnot. Of course, i can be nostalgic and think of the CP/M MD-DOS times. We controlled everything but with that environ you cannot compete today.
  13. To answer the OQ (Original Question). The answer is "No" if you add comments to your code and name your methods "DoThis".
  14. Dany Marmur

    FmxLinux bundling with Delphi and RAD Studio

    That is not for Linux, only for MacOS. Or am i misinformed?
  15. Dany Marmur

    FmxLinux bundling with Delphi and RAD Studio

    Me, i crave VCLLinux. (One of the FEW ideas that would make me "upgrade" from pro to Ent. However, all ye proud owners of Enterprise+, rejoice. Eugene do have attention to detail.
  16. I remember being a bit chocked when Emba changed that. You can still do it with "protected". However, i seldom port big (deployed) projects between delphi versions. And after a couple of years, the immediate thought [this should be so] obviously shows. For newer projects, i have been forced to suggest a move of fields or methods to vendors. That is normally not a big issue (pls move that up). And in the long run the result(s) are much cleaner. IMHO: A project that NEEDS to override private members should not be migrated to newer versions. As long as we are aware where this hack has been used, it should be an important consideration when deciding to port. I know this won't help you, but anyways...
  17. Dany Marmur

    Injecting Pascal into PHP?

    If i could inject a "pas" file into any Drupal php-file then i would work with Pascal that transpiles to PHP and the environment would be exactly the same. The server would actually execute php and not pascal. I cannot see why transpiled pascal would introduce attack vectors that hand-coded php do not. But i would appreciate some enlightenment. Maybe you meant Pas => HTML/JS => Node.js + Drupal server side? THAT would open up attack vectors. Yes.
  18. IMHO what is lacking in this thread is a description of your actual input. Do you get 200 values every "input iteration" or just some of them? And are you getting deltas as input (key; delta value)?
  19. Dany Marmur

    Injecting Pascal into PHP?

    This is for the jobs that require word-press or drupal. The js is not executed on the server. PHP is. Going node.js as a base for js that in turn is pluggable into server-side code seems a bit convoluted. But perhaps it is a viable way to go. I do not know enough of PHP it's environment, wp/drupal and their respective "environment".
  20. "Only interested in the min value". So why store anything BUT the min value?
  21. Dany Marmur

    Laufleistung

    Odometer, Odometry, Odometric properties. Odomericiality [adv.]???
  22. Dany Marmur

    JSON string value

    But even if you have a brilliant documentation to your JSON lib it will not cover 100% of the bases that are belong to us: http://seriot.ch/parsing_json.php [I use the value library of RTC - no RTTI, none of the over-complicated PODO to JSON mess, clean and FAST]. Not affiliated.
  23. Dany Marmur

    JSON string value

    I feel the same so strongly that i feel the need to quote!! Seriously: I manage projects where i factor this in from start. So i put 20% of the dev-budget chronologically after spending 80% of the documentation-budget. Adds a lot of clout. That is if the client admits to having a documentation budget at all (that is a problem, they go - "when it works, we can write the documentation"). Nah.
  24. Dany Marmur

    DevExpress VCL 19.1

    If you lack 40 minutes (!) to watch a video with sound that makes your ears ace (at least mine) - and i seem to always lack those 40 minutes - there is a list that you can read in 3 minutes 🙂 https://www.devexpress.com/Subscriptions/New-2019-1.xml#vcl with some screenshots. My apologies an advance if that page requires a login.
  25. Dany Marmur

    Laufleistung

    Oh, BTW 🙂 ... In Sweden we have a length unit called "Mil". One "mil" is exactly 10 kilometres. This is archaic. The unit is seldom used in technical writings or research. It is however, still frequently used in spoken language. Phonetically the "mil" sounds like a mile (more correctly pronounced like "meal" as when you are hungry). But a mile is 1,6 kilometres (or some such). There is also the Nautical mile, 1.8 kilometres "everywhere". Motor journalists has managed to get rid of the "Mil" when writing about fuel consumption (litres/kilometres nowadays), but regarding the mileage of a car people in my age tend to still use "Mil" even in writing. I had some laughs when i read my daughters Irish friends commenting on a train accident that took place in Sweden. The journo had converted the speed of the train correctly to MPH. However, the kids that had been to Sweden started a thread about the "Swedish mile" having endless fun over the speed the train was going (X / 1.6 * 10). The confusion made for some funny reading.
×