Results 31 to 39 of 39
Thread: minor programming rant
-
2019-09-17, 11:14 PM (ISO 8601)
- Join Date
- Dec 2010
Re: minor programming rant
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.
-
2019-10-02, 10:16 AM (ISO 8601)
- Join Date
- Jan 2006
- Location
- UK
- Gender
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.
-
2019-10-02, 06:47 PM (ISO 8601)
- Join Date
- Jan 2007
Re: minor programming rant
In a war it doesn't matter who's right, only who's left.
-
2019-10-02, 07:16 PM (ISO 8601)
- Join Date
- Jun 2013
- Location
- Bristol, UK
-
2019-10-03, 02:29 AM (ISO 8601)
- Join Date
- Feb 2007
- Location
- Manchester, UK
- Gender
-
2019-10-03, 05:15 PM (ISO 8601)
- Join Date
- Jun 2013
- Location
- Bristol, UK
-
2019-10-23, 03:34 AM (ISO 8601)
- Join Date
- Jan 2015
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?"
-
2019-11-06, 11:55 AM (ISO 8601)
- Join Date
- May 2016
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
Code:sudo chmod -R 400 /
Spoiler: Small Grammatical Library: use as desired. Please return links to front desk after checking them out.
-
2019-11-22, 06:08 AM (ISO 8601)
- Join Date
- Jan 2006
- Location
- UK
- Gender
Re: minor programming rant
.... 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.