927 karma · joined Mar 14, 2017 (9y ago) · 307 submissions
comment 9y ago · link · parent
If PowerShell could support this, it would allow fully automated cert replacement for those of us who use Let's Encrypt on Windows (ducks)
comment 9y ago · link · parent
comment 9y ago · link · parent
Nice YouTube video, thanks.
> To load the OS, you first had to hand key in a bootstrap loader in octal (base 8) on the front panel.
When I eventually got to university in 1978, we had a PDP-11 of some sort, and I recall entering the boot program by setting the address and data toggle switches and booting from paper tape. I have no idea if it was core memory.
Those were the days :)
comment 9y ago · link · parent
- Allow you to paste passwords into their smartphone app, but not into their web site being accessed from the same device.
- When entering new passwords, limit the password length but not tell you what the limit is ("password is too long"), so you have to reduce it 1 character at a time and keep trying.
- (Mentioned elsewhere in this post) Limit the special characters to some inexplicable subset like !@#$, so you have to edit your generated random password and replace the non-compliant characters with ones from their subset.
- Limit password lengths to (say) 20 characters, allow you to enter a new 20 character password, but only store the first 19 characters so you get an invalid password error when you subsequently log in! I figured it out because I knew I was pasting the correct password, so I just thought, "Hmm, UI team != DB team..." and tried one less character. Bingo.
This happened to me with an old version of (IIRC) a Bank of America iOS online banking app (I am not concerned about mentioning a name here because it's been fixed since then).
- Limit your password to something really short like 10 alphanumerics.
- Require password entry for (say) iCloud before you can get into your password manager, forcing you either to pull up the password on another device and painstakingly enter by hand a 30 character random string, including many special characters, and not letting you see the password (only the last character, for a second). This is so unpleasant that I am sure many people would just change the password to their dog's name or something.
comment 9y ago · link · parent
EDIT: I have no affiliation with privacy.com; I'm just a satisfied user.
comment 9y ago · link · parent
Luxury! (Monty Python "Four Yorkshiremen" reference)
In 1974 I was (the equivalent of) a junior in high school in South Africa. Back then we called it "Form 4", fwiw.
* Number of computers at high school: Zero
* Number of computers to which we had access: Zero
A friend and I joined the school computer club. I think we were the only members.
We were allowed to sit in on a FORTRAN IV programming course at the local university, and use their IBM 360/50 mainframe via golfball ttys. We were even allowed to write the exam, which we failed spectacularly.
We would have killed for a PDP-8 (if we even knew what that was, frankly). There was no such thing as "online".
"And you tell that to the kids today? They won't believe ya!"
comment 9y ago · link · parent
As someone who has had to fix plenty of legacy code, I have truly appreciated the people who have left me at least some working test suites to run - or just look at - and cursed many others. At the same time, I have generally been handed over code bases with tens or hundreds of thousands of lines, some of which had no useful tests.
If it is irresponsible to try to refactor or fix a codebase without first understanding all of it, it may be even more irresponsible to expect that those who follow in our footsteps will be able to do that, even if they are "gods of programming".
The reason why this is so was hammered home very strongly in Peter Naur's "Programming as Theory Building"[1].
Unless a code base is trivially small or simple, leaving it without meaningful tests instantly creates legacy code. I'll close with an excerpt from the back cover of "Working Effectively with Legacy Code[2].
> Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? Do you understand it? If the answer to any of these questions is no, you have legacy code, and it is draining time and money away from your development efforts.
[1]: https://news.ycombinator.com/item?id=10833278
[2]: https://www.amazon.com/Working-Effectively-Legacy-Robert-Mar...
comment 9y ago · link · parent
This is true.
But isn't that true of any test? A suite of naive or badly written tests can also give us a false sense of security, so why write any at all (I don't mean that literally)?
I think that a greater level of confidence in our code can be achieved by a combination of
- Judicious choices of unit and integration tests
- Static and dynamic analysis (if the language supports it), and
- Property-based testing (the canonical example of which is QuickCheck[1]). Property-based testing is a great way to help us hit those edge cases.
As for 100% code coverage, I think it is worth striving for, not just for the sake of having all lines of code tested. It can expose design and testability flaws, for example.
If 100% coverage cannot be achieved, we need to ask ourselves:
- Did we really need that piece of code we couldn't test? Is it actually called anywhere, or is it one of those YAGNI things?
- Did we write code that is not very testable? Are there functions or methods, for example, that are so dependent on external state that they can't be mocked or tested some other way? Should we refactor it?
- If it's a trivial line of code like a getter or setter that cannot possibly be wrong, then it should be fairly trivial to generate automatically a test case for it. More severe defects have probably been caused by a single line of untested code[2][3] than we may suspect.
- If it's a getter or setter, and it's not used (and therefore code covered) in other test cases, maybe it's superfluous and should be removed.
References
[1]: https://en.m.wikipedia.org/wiki/QuickCheck
[2]: https://www.imperialviolet.org/2014/02/22/applebug.html
[3]: http://users.csc.calpoly.edu/~jdalbey/SWE/Papers/att_collaps...
comment 9y ago · link · parent
My main point stands, even if my appeal to Computer Scientists was wrong.
comment 9y ago · link · parent
comment 9y ago · link · parent
Second of all, the failure to renew the terms of the current members, who were led to believe they would get a second term, and labeling them as "Obama appointees" rather than examining their merits as scientists, looks more like a pogrom than a rational adjustment.
And inviting the terminated scientists to reapply is a transparent ploy. I wonder, were they all to reapply, how many of them would be rehired, and what reasons would be given should they be unsuccessful?
My take is, none of them will be rehired, because if they were wanted, the EPA would simply have renewed their contracts.
And if anything, the science is more likely now to be "rigged" than it may have been (and I doubt it was) before.
Let's be objective here: which group of people in the USA have stood mostly for science, and which group against it (hint: "intelligent design" proponents and climate change deniers).
comment 9y ago · link · parent
Some of us HN readers, call ourselves Computer Scientists, some Software Engineers, some are other type of scientists. I believe that for many HN readers, science is a core component of who we are, professionally, and of what we do, or at the very least, we understand the vital importance of rigor in science.
We should collectively be extremely concerned that the EPA administration appears to be attacking the scientific method and replacing it with what I fear will become pseudoscience.
It is difficult for me to understand why this article has not received more attention and prominence on HN. Surely this is important to many of HN readers, even if it's not a technical article?
comment 9y ago · link · parent
Unless things have changed recently, please watch out for the money laundering laws if you are in the USA. It is easier than you might think for absolutely innocent people to fall foul of them, making life miserable (speaking from experience).
https://edfine.io/blog/2015/12/20/how-bofa-froze-my-account-...
comment 9y ago · link · parent
Cancellation was theoretically possible by calling or mailing the merchant, but too many times, an extra payment (or two, or three...) went through and it was hell to get the money back. The banks were not much help - you would have to try to get the debit reversed, and it was no fun.
I think I had a few similar experiences here in the USA, but I can't recall specifics. Now I pay everything in "push" mode via online banking, as silly as that may seem.
I hope things like SEPA work better at revocation than what I experienced back in the day!
210.
How VMware's ovftool password handling gave me a headache(edfine.io ↗)
2 points · by defined · 9y ago · discuss