Forgot your password?
typodupeerror
User Journal

Journal Journal: How to improve C/C++ code quality, random thoughts

I am thinking about the following concept. Take doxygen comments and extend them as follows.

1. Permit identification of pre-conditions for functions (what has to be true when the function is called)
2. Permit identification of post-conditions for functions (what is intended to be true when the function exits)
3. Permit identification of hints about what kernel operations are being used by that function

Comment Re:It does it poorly (Score 1) 85

You misread OP's comment. They're saying people stop a car length or more behind the white line rather than putting the nose of their car on the white line, and could they not do that.

I'm sure that was the intent, but (I think) it actually parses the other way. It's messy, so I'm not sure, but that's how I read it.

Comment Re:If he is found guilty (Score 1) 180

Would he have handed over the phone unasked and volunteered the password? Unlikely.
As far as I know, the phone behaves in a certain way when you enter the duress password. So it seems established that that is the password he provided. And at that point, it doesn’t matter if he wiped the phone earlier or not, that fact can no longer be established, and that alone would count under the (expanded interpretation of) that law.
Yes, we make assumptions. We’re not in court, we’re on the internet. Speculating on whether the state does or does not have a solid case. That is all.

Comment Re:If he is found guilty (Score 1) 180

If they never got into the phone, how do they know there was evidence on there?
They demanded the phone, and he caused the contents on it to be unrecoverable. At that point it does not matter whether the phone did or did not contain anything incriminating, according to the article 18 U.S.C. 2232 he was charged with.

It also sounds like at the time, he wasn't under arrest? He had asked for a lawyer and had been refused?
This was at a border checkpoint, and the rules are a little different. Customs officers can search your stuff (including your phone) without a warrant, probable cause or even suspicion.

He's not under any compulsion to give a password is he?
He is not, even at the border. Refusal can lead to refused entry, though. But once he gave the duress password, he effectively caused the phone's decryption keys to be wiped, and the aforementioned article kicks in.

The real question is whether or not wiping a phone constitutes "destruction of property" as mentioned in that article of law. By the letter, it does not. But data seems to be "property" in the spirit of this law. Similar to eating a physical letter before the cops get a chance to read it. Guess this is what is about to be tested in court.

Comment Re:Blokes twatting around with swords (Score 1) 66

Some things about his movies are very good: the cinematography, use of practical effects over CGI, scale, and good scoring. Sometimes he does drop the ball; while the score on Interstellar was epic, the one in Odyssey was bland and did not really mesh with what was going on on-screen. And he's a bit of a one-trick pony, with a rather dark and depressing tone in most of his movies. Works in Interstellar, didn't really help the Odyssey, ruined the Dark Knight. And his convoluted way of telling a story. Tenet was a mess as a result (and the time stuff just didn't work), but it worked fine in Interstellar and the Odyssey.

Loved: Interstellar, Dunkirk, Oppenheimer
Liked: the Odyssey, Tenet
Didn't care for: his Batman movies, Inception, Memento.
Enough for me to go see a movie on the strength of him directing it.

Comment Re:This ladies and gentlemen (Score -1, Troll) 222

The factual reality it ignores is that mistakes by the judicial system in cases covering petty crime, family court, domestic disputes, civil torts, etc., have nothing whatsoever to do with mistakes made in capital cases. Asserting that mistakes made in a local municipal court, which would never see a capital case, is grounds for banning capital punishment is like saying that worms in avocados imported from Mexico means the sale of all fruit grown in the US should be banned.

Conflating capital cases with non-capital cases works against your cause, not for it. If you don't understand that, then you are less likely to achieve your goals. Zealotry -- which is fundamentally a political pose -- is not an efficient means to create change.

Comment Re:This ladies and gentlemen (Score 0) 222

Cool story, but this wasn't about the death penalty.

Every story about a wrong conviction is a story about the death penalty

That is the most politically saturated comment I've read on Slashdot in years. It completely ignores factual reality in order to push a specific agenda.

Here's a hint: if you want your cause to be taken seriously, don't become blinded by zealotry. In this case, there are plenty enough things wrong with the death penalty that you don't need to make this sort of off-putting overgeneralization, and, by doing so, you are harming your cause, rather than helping it.

Comment Ed Zitron is a hypocrite (Score 1) 128

His podcast Better Offline is squarely targeted at people who are very much online. Indeed his entire gig is the epitome of online living.

If Ed Zitron really felt better offline, he wouldn't be making a living off of a podcast and constant AI bashing.

Not that I necessarily disagree with him though... It's just that the messenger doesn't really befit the message.

Comment Re:New Tab Override (Score 1) 60

>"There may still be a chance to override the new tab page behaviour in about:config."

There is. You don't even need to use about:config. It is right there is settings:

Settings > Home > New tabs > Blank Page

And for new windows it is:

Settings > Home > New windows > Custom > about:blank

You can, of course, do this in about:config as well, if desired.

>"One of the reasons I'm still on XFCE is because I have been able to configure sane scrollbars there as well"

TELL ME ABOUT IT!!! I absolutely CAN NOT STAND hidden, thin, disappearing scroll bars! Or mucking with the correct behavior of clicking above/below the handle moving ONE PAGE. (Warping should be a separate function, traditionally middle click). Or when the handle doesn't represent the size of the viewable area. The "old way" was the "correct way" for so many usability reasons.

So yeah, you are not alone. By the way, you can do that in Firefox with most any DE with certain settings. But scrollbars always seem to be a fight with various DE's and apps.

Slashdot Top Deals

When a fellow says, "It ain't the money but the principle of the thing," it's the money. -- Kim Hubbard

Working...