New OOTS products from CafePress
New OOTS t-shirts, ornaments, mugs, bags, and more
Page 2 of 2 FirstFirst 12
Results 31 to 39 of 39
  1. - Top - End - #31
    Firbolg in the Playground
    Join Date
    Dec 2010

    Default Re: minor programming rant

    Quote Originally Posted by Radar View Post
    So that means the NULLs were not random. From the measurement techniques alone there are some bounds on what is detectable or not, which means that NULLs do carry some useful information. As they say, lack of news is good news.

    Understanding those patterns however without going through the data personally might be not possible.
    Yep. The other idea was to make a compressed representation that captures as much of the data as possible (e.g. can reconstruct it), but which makes it impossible to infer which fields were NULL just by looking at the representation. However, that necessarily reduces the information content of the points we do have more complete data for. For example, if the period and masks have some mutual information I, and the period has entropy H>I, I think the cleaned representation can only have H-I information about the original period (because otherwise you could infer the masks, since information is symmetric). So, it's tricky.
    Last edited by NichG; 2019-09-17 at 11:15 PM.

  2. - Top - End - #32
    Orc in the Playground
    Join Date
    Jan 2006
    Location
    UK
    Gender
    Male

    Default Re: minor programming rant

    As for kicking yourself for not keeping the original version - this is why you develop/test in a different area to production, and only move live once all testing is complete. And preferably use a source code repository that keeps all your previous code versions.

  3. - Top - End - #33
    Troll in the Playground
    Join Date
    Jan 2007

    Default Re: minor programming rant

    Quote Originally Posted by caden_varn View Post
    As for kicking yourself for not keeping the original version - this is why you develop/test in a different area to production, and only move live once all testing is complete. And preferably use a source code repository that keeps all your previous code versions.
    There are only two kinds of people: those who do backups and those who will be painfully pushed to the first category.

    Separating development and production environments is just a sane way of having a stable version clients can actually use on a daily basis.
    In a war it doesn't matter who's right, only who's left.

  4. - Top - End - #34
    Ettin in the Playground
     
    Griffon

    Join Date
    Jun 2013
    Location
    Bristol, UK

    Default Re: minor programming rant

    Quote Originally Posted by Radar View Post
    There are only two kinds of people: those who do backups and those who will be painfully pushed to the first category.

    Separating development and production environments is just a sane way of having a stable version clients can actually use on a daily basis.
    I've seen it written: "If it's not backed up, it's not important".
    The end of what Son? The story? There is no end. There's just the point where the storytellers stop talking.

  5. - Top - End - #35
    Colossus in the Playground
     
    BlackDragon

    Join Date
    Feb 2007
    Location
    Manchester, UK
    Gender
    Male

    Default Re: minor programming rant

    Quote Originally Posted by halfeye View Post
    I've seen it written: "If it's not backed up, it's not important".
    My version is "If you're not backing it up, you don't care if you lose it.".

  6. - Top - End - #36
    Ettin in the Playground
     
    Griffon

    Join Date
    Jun 2013
    Location
    Bristol, UK

    Default Re: minor programming rant

    Quote Originally Posted by factotum View Post
    My version is "If you're not backing it up, you don't care if you lose it.".
    Fairer, but not quite so harsh, and maybe thus less memorable?
    The end of what Son? The story? There is no end. There's just the point where the storytellers stop talking.

  7. - Top - End - #37
    Bugbear in the Playground
     
    EldritchWeaver's Avatar

    Join Date
    Jan 2015

    Default Re: minor programming rant

    You shouldn't just back up source code files, you should use git or similar software to be able to check changes over time.
    Avatar made by Mehangel - "Neigh?"

  8. - Top - End - #38
    Ogre in the Playground
     
    WhiteWizardGirl

    Join Date
    May 2016

    Default Re: minor programming rant

    In the topic of preserving our own computer mistakes, I'll share mine for the record.

    If you're running an old script by hand (as I was, when trying to find the particular line that was causing issues), please please make sure you get the same environment that the script is actually run in.

    I reached the line

    Code:
    sudo chmod -R 400 /$PATH_TO_DIR$DIR_NAME
    Of course, PATH_TO_DIR and DIR_NAME are usually set at this point, but not in my shell! Yeah...

    Code:
    sudo chmod -R 400 /
    Spoiler: Small Grammatical Library: use as desired. Please return links to front desk after checking them out.
    Show

  9. - Top - End - #39
    Orc in the Playground
    Join Date
    Jan 2006
    Location
    UK
    Gender
    Male

    Default Re: minor programming rant

    Quote Originally Posted by El'the Ellie View Post
    In the topic of preserving our own computer mistakes, I'll share mine for the record.

    If you're running an old script by hand (as I was, when trying to find the particular line that was causing issues), please please make sure you get the same environment that the script is actually run in.

    I reached the line

    Code:
    sudo chmod -R 400 /$PATH_TO_DIR$DIR_NAME
    Of course, PATH_TO_DIR and DIR_NAME are usually set at this point, but not in my shell! Yeah...

    Code:
    sudo chmod -R 400 /
    .... Ouch.

    Reminds me of a friend at university (a long while ago) who managed to write-protect his hard drive (the one with the boot sector). Not quite sure how he managed to do that, but as the write-protect switch was on the hard drive, and he couldn't write to it any more...

    In the end we had to remove the hard drive and boot it up as a slave on another system to unset what he'd done.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •