Re: I'm sure all the hackers
You've recruited me to help make Security Holes In Things a meme.
972 posts • joined 23 May 2011
You've recruited me to help make Security Holes In Things a meme.
"coca-cola also cleans chrome an absolute treat."
Diet or regular? Inquiring minds want to know.
Talking about EXCEPTION handlers: "really only useful for EXCEPTIONAL circumstances"
You'd think, wouldn't you. But here's an example. Lets ask the user whether to proceed with this operation. If they say, "yes", the code returns. If they say, "no", it throws an exception.
Now I'm not going to hold truly lousy code against exceptions. But that's why I make the point that the name is a clue about how to use them.
goto, no never. And definitely not its bastard evil sibling
longjmp. But that's what an exception effectively is. That's my point: it's the mother of
And I agree, a missing error check is a problem. And being able to elide an
if is nice syntactic sugar. However the error doesn't go away when you delete the
if. What happens when the exception is thrown? I'll presume you're properly using RAII so nothing leaks. But what state is your object in? Will the class invariants be preserved? Had you started writing to a file? Were you in the middle of a database transaction? All those problems are shifted to the catcher which is not well equipped to answer them. And noob programmers---which I'm not implying you are---don't see and think about those things. Deleting the
if doesn't solve the problems. In fact it encourages people not to think about them, which makes the code less robust.
It's the "...when properly implemented..." point. They are hard to implement properly. I use them where they really can improve the code. But it's taken a lot of experience to get there. And I seem use badly more often that I see them used well.
But we can agree that the examples are always fucking awful. They tend to be expected errors, too. Running out of core is an exception; a missing file, generally, isn't.
All exceptions do is introduce extra hidden code paths. They don't make error handling any easier; arguably they make it more error prone. They are really only useful for exceptional circumstances where the next step is to terminate the module. But they are handy for getting errors out of constructors, provided they adhere to the basic guarantee.
I only came here for the 2010 references, and you got that wrong.
@H4rm0ny If a client passes out in front of me, then I try to revive, then I CALL A FUCKING AMBULANCE, then maybe I down the wine to calm my sobbing while waiting for the authorities. (Obviously it wouldn't be good to be drunk when the cops show, but I'm not thinking straight.) Maybe, because I'm scared of facing up to what I've done, I flee the scene, after making some half-arsed effort to remove the evidence; but that's not in my best interests because the chances are the cops will catch me and, when they do, my actions might make them suspect what happened was murder not manslaughter.
I have no idea, how you measure "rational" in these situations. But when an adult does something wrong, they face up to it. Actions that lead to someone's death are about the most wrong you can do. And attempting to avoid responsibility is wrong.
"Legally registered guns are not involved, only stolen ones."
That's the best argument I've heard for banning firearms: if there are no gun, then nobody can steal them and nobody dies!
I can't be arsed to read any more about this. But is each chip mining individual bitcoins or are they collaborating to mine one bitcoin between N machines, each one doing some fraction of the calculation and pooling the results?
No, you get relevent tweets vomited upon you.
Mine's the throw away plastic mac, thanks.
We do need a FTFY icon; a hammar or something.
Oh, it's just a bit of horseplay.
Post Newtonian effects are already an issue. We talk about time on the surface of the Earth (the geoid) which is different to that at the centre of the earth or the centre of the solar system. If you move an atomic clock gravitational effects have to be accounted for and I believe GPS takes account of them, too.
"Atomic time" is not based on "Ephemeris Time". "Atomic time" (TAI) is the average of a bunch of atomic clocks. "Ephemeris Time", well these day TT(TAI), is the independent variable used to calculate ephemeris. If your clock advances 86,400 second of atomic time then you add 86,400 to the coordinate used in your ephemeris and consult your model to determine where the sun, moon and stars will be.
The leap second changes neither "Ephemeris Time" nor "atomic time", but adds 1 SI second to UTC (wall clock time) so the difference between the wall clocks and atomic clocks (UTC-TAI) increases from 35s to 36s which ensures the the (mean) sun is overhead at midday.
A barbecue firing gun?
Joke icon needed, perhaps?
"The left hand doesn't know what the right hand is doing..."
Same here. Unfortunately I am both the left hand and the right hand. Ugh. :(
Paris, because she's hands free.
"How much is the MPAA paying you? Seriously?"
FFS, just because you disagree with someone doesn't make them a shill. Check h4rm0ny's post history and you'll see they're a regular.
Yeah, but you have to buy the rubber stamp yourself.
Yeah, I think Amazon's warehouses are covered by the "taking the piss" exception. And I also think you should be working for HMRC's legal team.
"The problem is that 3rd party developers have, as a general rule, not released touch friendly apps."
When the device has lots of users, we'll target it.
British built guidance system?
Mine's the hazmat suit.
You don't get an amplifier without a feedback path.
I loved SGU, but it was doomed from the start. The attempt to do an adult show for fans who'd got to use to Stargate levels of characterisation and plot was going to be an uphill struggle; that audience wanted heroes not flawed characters.
Many of the fans are female and yet there's no strong female character. If you're a geeky boy you empathise with Eli. If you're father, probably Young. If you're gung-ho you empathise with Greer. And there's Scott for the modern man.
But if you're a woman? If you want a maternal figure Johansen was great. Otherwise there was Chloe, who was pathetic; James, who was peripheral; and Wray who was perpetually incompetent and unsympathetic, even though she was morally right.
And for those of us who wanted an adult show, the constant lapse into one-bound-and-they're-free plotting was dispiriting. And I'm sure the luke-warm mysticism would've pissed off the rationalist sci-fi fans while seeming trite to those with knowledge of metaphysics or theology.
And then there's the ethos. I loved that they were always on the edge and barely surviving. But I wonder how well an ethos of "hanging in" went down in the land were everyone is a winner.
You can see the way the writers are trying to satisfy existing fans while roping in non-fans. But those two horses were always going in opposite directions. Still, I'm glad they tried. And the lights turning off at the end of S2 is moving.
How many $20,000 microscopes are spending the majority of their time looking at prepared slides?
How many more slides would we look at if microscope were in every pocket?
Yup, it's positively protozoan!
"If I type in text without spaces but with forward slashes, ITS A URL! try http, then https with it."
The other way round, I hope. And TBH if you can be forced to fallback to http, then it's a vuln.
"The new MI9 force starts tracking down these immigrant sympathisers who have fallen foul to the new non-patriot act and using their, once innocent, browsing history start rounding up those who have been looking at sites which are pro-immigration, such as the BBC, Tesco, Haynes Motor Museum..."
They still know that, unless you encrypt your DNS lookups.
It's a Snover Server!
"Ladies, form an orderly queue..."
For the exit? :P
"Still, if it is a genuine find (always a worry when there's only one of them) it's a cracker!"
This is palaeontology: most of the time, they barely have a tenth of one.
Can El Reg please refer to Pluto by its correct name: Yuggoth.
@jake I found it got in the way, wasn't flexible and didn't give much back if you didn't need portability. (And I did do some K&R) And back then, most humans were better than compilers, especially on the register-starved, segmented x86.
Strong typing, overloading (*cough* C99 tgmath abomination), and references helped make up for that.
Unfortunately, I'm old enough to remember assembler programmers saying the same things about C.
There are no "haters", merely those who can program C++ and those who aren't smart enough to. (Mobile Users: Joke Icon)
My reaction to hypervisors as a security mechanism is always, "Isn't that what the OS is supposed to do?" But, it's another layer. Kernels are big, necessarily include components written by third parties and do user facing operations (like IP stacks). There seems to be a recognition, as best I follow it, that we can write a much smaller, tighter kernel (the hypervisor) that does security and delegates the rest up the stack. The x86 has four protection rings, and it seems like we're finally catching up and putting device drivers in a separate ring.
"I wonder like others, where will the line be drawn? A single murderer? Serial killer? Massive terrorist attack?"
IANAL but I suspect, however, that the process is illegal so the evidence would be chucked out and the case lost. I guess it's meant to provide a heads up rather than be relied on in court; cf visiting a suspect disguised as ISP repair men.
"Imagine the offspring..."
Small and fluffy?
"Plus, as noted, some pirates are determined to cover their tracks..."
Good business sense: if your sources get nicked, they won't be able to leak to you again. I'm sure the pirates could teach the big corporates a few things about customer care.
A step closer to Dune-style shield technology.
Only a surprise for the boys.
So that's the entire upper management of most companies with more than 50 employees.
That's one of the many reasons for liking Forbidden Planet: the humans arrive in a flying saucer.
"Updates are for nerds."
"Going into reverse ferret mode and stripping out technology that evidently wasn't ready for prime time is a little embarrassing for Mozilla even though this is the responsible action to take in the circumstances."
So they dig the right thing and you're gonna slag them off anyway. Nice.
A new plan. Every time anybody needs public money, we put their whole story on a website and take a vote on whether or not we pay for it. So a kickstarter for welfare, medical services and wars. It's the only way democracy can work.
It's a truly awful paper. But no problem in the maths jumps out. Of course, that could be because the presentation of the equations is so shockingly bad.
And the idea of a CMB reflection signature is novel.
I can't confirm this because the current edition of the Concise OED doesn't say whether a verb is transitive or intransitive. The Fucking OED.
Now think about all the wasted power used to run the comments section on El Reg...