Jump to content

David Heffernan

Members
  • Content Count

    3710
  • Joined

  • Last visited

  • Days Won

    185

Posts posted by David Heffernan


  1. 1 hour ago, corneliusdavid said:

    For me, any open source package that I had previously installed via GetIt, I'm now pulling from GitHub.

    I've never understood why anyone would use getit over the main source repo for open source projects

    • Like 8

  2. 1 hour ago, Dalija Prasnikar said:

    I am sure that everyone here has everything in duplicate, so when something dies they can replace it in an instance with minimal interruptions, especially if it dies over the weekend during the huge cold spell.

    If I'm running a company like Emba, then I'm not putting production servers on physical hardware with single points of failure.

     

    1 hour ago, Dalija Prasnikar said:

    Do I need to remind you that on one instance Facebook folks had to literally break into their server room because they got locked out of it. 

    I mean, perhaps there are some incompetent people at Facebook too. I wonder if they learnt from this and changed.


  3. 9 hours ago, Lars Fosdal said:

    Nor is there anything unusual about Explorer reading from the files to extract things like file information resources.

    Actually this just looks like what you'd expect to see during process creation. First we check for app compat. We don't find that, fine as you say. And then we map the exe.


  4. FYI cross posted here (unicode - Delphi - Data is not encoded in given format - Stack Overflow) and with no code there either.

     

    As a rule, I think cross-posting is fine on this site, but you should always note that you've done so to avoid people spending time giving you help when you already received it elsewhere. It's just a good courtesy to the people that you are asking for help.

     

    But in any case, you should improve the post (in both places) by giving details of your code so that we have something concrete.

    • Like 1

  5. 14 hours ago, DelphiUdIT said:

    You must use GUIDs when there is a need to use RTTI "as" and "is". Like you told, each interface should have a unique GUID, but I have already see that.

     

    Start from here: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Object_Interfaces_(Delphi)

     

    (may be the link is wrong ... wiki is down at the time of writing)

     

    P.S.: You can read also these books (with examples)

    - Hodges Nick - Coding in Delphi (year 2013)

    - Hodges Nick - More Coding in Delphi  (year 2015)

     

    I don't know if there are something that can help you ...

     

    I think the asker knows what GUIDs are used for. However the question is whether the use of the same GUID for two distinct interfaces is a bug or not. 


  6. 25 minutes ago, Attila Kovacs said:

    It should be; it would spare a lot of headaches when migrating projects to new IDEs.

    I'm struggling to imagine what headaches would be solved by this feature.

     

    I don't know how you can't get a list of generated files by simply checking out the project and then compiling it. All the files created after you compiled are the ones made by that compile. 

    • Like 1

  7. 22 minutes ago, Virgo said:

    UnicodeString for binary hash would be the worst type.

    I was referring to base64. That takes binary input (so bytes) and outputs text (so string). 

     

    For sha1 the yes the input and output should be binary, that is bytes. The you'd have helper functions to take hash output and write in friendly hex format. 

     

    At no point should there be AnsiString. I mean I hope you aren't proposing AnsiString as a place to hold bytes. 

    • Like 1

  8. 5 hours ago, Gord P said:

    I suspected that.  That was nice about using the 80 bit doubles.  From what I understood, there wasn't a huge performance hit.  I was about test all that out, but now I think I will stick with the doubles for now.

    Massive performance hit compared to double on 64 bit

×