Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. timfrost

    Laufleistung

    I have seen "kilometrage" used in UK English, and kilométrage in French. I would vote for it if you organized a competition, although it is ugly and not in wide use. If you are using the word as a column heading, you need something short. But in a descriptive sentence I would prefer a phrase like, "lifetime rolling kilometres" or "total kilometric distance". Googling lifetime kilometres only turns up FitBit links.
  3. Today
  4. See Uwe Raabe's blog articles about the Visitor Pattern in Delphi: Part 1 Part 2 Part 3 Part 4 He shows how to work around the circular referencing issue using interfaces and multiple units.
  5. Dany Marmur

    Laufleistung

    Odometer, Odometry, Odometric properties. Odomericiality [adv.]???
  6. I can't seem to implement the visitor pattern in Delphi without circular references. Does anyone know of a way to implement the visitor pattern without having all of the classes in one big unit? For instance, if I have a complex tree structure (psuedo code so that I can demonstrate concisely): Unit Base type TBase = class end; ------------------------------------------------------- Unit Bolt uses Base; TBolt = class(TBase) procedure Tighten; procedure Untighten; Visit(visitor: TAutomobileVisitor); <-- Requires circular reference to Automobile unit end; ------------------------------------------------------- Unit Door uses Base, Bolt; type TDoor = class(TBase) Bolts: array of TBolt; procedure Open; procedure Close; Visit(visitor: TAutomobileVisitor); <-- Requires circular reference to Automobile unit end; ------------------------------------------------------- Unit Seat uses Base, Bolt; type TSeat = class(TBase) Bolts: array of TBolt; procedure Heat(on: boolean); Visit(visitor: TAutomobileVisitor); <-- Requires circular reference to Automobile unit end; ------------------------------------------------------- Unit Automobile uses Base, Door, Seat, Bolt; type TAutomobile = class(TBase) FOwnerName: string; Doors: array of TDoor; Seats: array of TSeat; Visit(visitor: TAutomobileVisitor); end; TAutomobileVisitor = class procedure Visit(o: TAutomobile); overload; virtual; procedure Visit(o: TBolt); overload; virtual; procedure Visit(o: TDoor); overload; virtual; procedure Visit(o: TSeat); overload; virtual; end; ------------------------------------------------------- I have tried moving things around and using interfaces but can't seem to avoid circular references.
  7. David Heffernan

    Laufleistung

    No, that is the device that measures mileage
  8. ertank

    Publishing iOS apps

    Here is a screen shot from options page And here is error I receive when I click on "Deploy" button: No certificate found in provisioning profile "12021c75-fa17-4838-9834-39593ec234eb" Thanks.
  9. 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.
  10. 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.
  11. dummzeuch

    Laufleistung

    I will probably go with "mileage" then, even though that will raise questions whenever some translator stumbles upon it (the next translation will be to Portugese, that's going to be interesting).
  12. dummzeuch

    Laufleistung

    No. An Odometer is a device to measure mileage. "Odometer value" or something like that would probably be OK for some usages but not in my particular case (which is the "mileage" of a special type of tyre).
  13. 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.
  14. 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.
  15. Dany Marmur

    Laufleistung

    @David Heffernan is correct IMHO. It's a "word". We have lots of words that feel "illogical" to people learning a language or having a serious hangover. But the etymology will show why this word is heard as [some other meaning]. Now with English it's a bit more difficult because there are at least 14 official versions of the language and it has become a "lingua franca". The people having most problems being understood on international fora are the native speakers because they have problems distinguishing between "local" proverbs and what non-native speakers can actually understand. This may be an argument for your preferred solution (to create a new word) but even to me [non-english-native] "mileage" is the accumulated distance of an object. So i would definitely write "Mileage (km)" or "Mileage (kilometres)". Looks completely OK to my eyes at least. HTH
  16. Yes, I am using an empty app to test it. It only contains a few lines that uses the FBSDK. This is the code. It calls the "ActivateApp" function and tries to show a Facebook Link Sharing Dialog on iOS. But it fails in the linking process (with the errors mentioned earlier), so the code never executes. Note, I had to add some Objective-C classes to the Grijjy unit, as it did not include all the ones I need (the modified unit is attached): uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, iOSapi.UIKit, iOSapi.Foundation, Macapi.Helpers, Grijjy.FBSDK.iOS.API, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs; type TForm1 = class(TForm) procedure FormShow(Sender: TObject); end; var Form1: TForm1; implementation {$R *.fmx} function GetRootViewController: UIViewController; begin //Get the main window to be the parent of the facebook window (First window is always the main window) Result := TUIWindow.Wrap(TUIApplication.Wrap(TUIApplication.OCClass.sharedApplication).windows.objectAtIndex(0)).rootViewController; end; procedure ShowShareDialogMode(aContent: Pointer); var lFBSDKShareDialog: FBSDKShareDialog; begin lFBSDKShareDialog := TFBSDKShareDialog.Create; lFBSDKShareDialog.setshareContent(aContent); lFBSDKShareDialog.setFromViewController(GetRootViewController); lFBSDKShareDialog.setMode(FBSDKShareDialogModeNative); if not lFBSDKShareDialog.canShow then //if FB app not installed, fallback to web access lFBSDKShareDialog.setMode(FBSDKShareDialogModeFeedBrowser); lFBSDKShareDialog.Show; end; procedure ShareLink(const aLink: string); var lLinkContent: FBSDKShareLinkContent; begin lLinkContent := TFBSDKShareLinkContent.Create; lLinkContent.SetcontentURL(StrToNSUrl(aLink)); ShowShareDialogMode( NSObjectToID(lLinkContent) ); end; procedure TForm1.FormShow(Sender: TObject); begin TFBSDKAppEvents.OCClass.activateApp; ShareLink(''); end; Grijjy.FBSDK.iOS.API.pas
  17. WillH

    Laufleistung

    Could you use odometer ? https://en.wikipedia.org/wiki/Odometer
  18. David Heffernan

    Laufleistung

    No English speaker I know, here in the UK, would say anything other than mileage. This is one of those words whose meaning is now detached from its etymology.
  19. toms

    Laufleistung

    Read the comments on this page: https://painintheenglish.com/case/451
  20. Mike Torrettinni

    Laufleistung

    What about "Lifetime km/mi:" ?
  21. Alexander Elagin

    DevExpress VCL 19.1

    DevExpress has just released a new version of the VCL controls suite (19.1). A replay of the Julian Bucknall's presentation is available now.
  22. dummzeuch

    Laufleistung

    I need an English translation for the German Word "Laufleistung" (Kilometerleistung), which gives e.g. the distance a car or a tyre has travelled in its lifetime. Every translation service suggests "mileage", but showing "mileage [km]" (mileage in kilometres) looks wrong to me. DeepL also suggests "kilometrage", which I had never heard before. Is that really used? Probably not in the US and UK. What about other English speaking countries with a more sane unit system? (Are there any? 😉 ) I would prefer a word that is unit agnostic (Like the German "Laufleistung" which does not include the unit itself). DeepL also suggested "running performance" but that's even wider than the German word and I have also never heard it before.
  23. Angus Robertson

    sspi error with TWSocket

    Define UseNTLMAuthentication is in OverbyteIcsHttpProt.pas. Angus
  24. I wanted to emphasize that it is not based on TComponent, because many users in the past thought it is component. It means it is a direct successor of TObject.
  25. Development

    sspi error with TWSocket

    I never use this NTLM controls. Where I can change NTLM authentification ? Thanks,
  26. Yesterday
  27. Dave Nottage

    Publishing iOS apps

    I should have also asked what you mean by this, i.e. is there an error thrown in the IDE? If so, please give all the details. If not, at what stage is it a problem? Using Application Loader?
  28. Andrea Magni

    Looking for beta testers of TFrameStand and TFormStand

    Unfortunately not... The TFrameStand functionalities should be the same, there are some changes due to refactoring (i.e. if you had event handlers for TFrameStand events, some argument changed type like TFrameInfo<TFrame> now being TSubjecTInfo, so you may need to adjust them on your side). TFormStand is the same concept but supporting TForm instead of TFrame. If you already have projects using TFrameStand, it would be helpful if you could confirm I broke nothing. Sincerely, Andrea
  1. Load more activity
×