Comment Re:GAY NIGGERS FUCKING NIGGER ASS (Score 0) 314
Intent is irrelevant to a charge of gross negligence.
Intent is literally what makes it gross negligence instead of ordinary negligence.
Intent is irrelevant to a charge of gross negligence.
Intent is literally what makes it gross negligence instead of ordinary negligence.
The Prime Minister is properly addressed by his first name, Sigmundur, not "Gunnlaugsson," which is not surname like we use in English but a patronymic (his father is named Gunnlaug). Icelandic name.
And similarly, 39 digits of pi will let you calculate a sphere the size of the observable universe with an error the width of a single hydrogen atom.
And I'm still seeding the DefDist MegaPack v4.2 and will continue to do so.
The UK used to pay 17/18 year olds a small stipend (£30/week IIRC) for attending college, this was during the mid-90s to mid-00s when it was abolished by the Tories. Attendance rates climbed when it was introduced and dropped after it was abolished.
My point was just those features make quickie editing even quicker - your Amazon script is
var el = document.querySelector('#summaryStars,
.totalReviewCount'), total = parseInt(el && el.textContent) if (total) {
Array.from(document.querySelectorAll('#histogramTable td:last-child a')), a => {
var num = parseInt(a.textContent), pct = 100 * (num / total)
a.innerHTML = `${num} - <b>${pct.toFixed(0)}%</b>`
})
}
and about two dozen of my scripts are variations on this
There are a lot of annoying websites out there lol, hope this comes in handy next time one just needs that little fix...
I write a lot of user scripts and couldn't live without being able to tweak websites to add features, or more often, fix their problems - I just checked Tampermonkey and I've currently got 40 user scripts for various sites
There are a lot faster ways to write them now using features from HTML5 and now ES6 which weren't there even a year ago - for instance, your password script can be rewritten in one line
Array.from(document.querySelectorAll('input[type=password][autocomplete=off]')).forEach(elem => { elem.autocomplete = 'on' })
using arrow functions, Array.from and querySelectorAll .
If you use Chrome this currently only works in the development version, so for the next few months until that's released you can write
[].slice.call(document.querySelectorAll('input[type=password][autocomplete=off]')).forEach(function(elem) { elem.autocomplete = 'on' })
instead.
If instead you want to insert HTML, using template strings and insertAdjacentHTML again make life easier, e.g.
Array.from(document.querySelectorAll('a[href$=".jpg"]')).forEach(a => { a.insertAdjacentHTML('afterbegin', `<img src="${a.href}" style="width: 32px; height: 32px; margin-right: 0.5em">`) })
matches links with targets ending in
About 90% of user scripts are just
find things -> loop over them -> adjust properties and/or edit HTML
so it's handy having simpler ways of writing it
These idiots always like coming up with pithy and (in their opinion) appropriate names for their laws, so here's a suggestion for this one: The Send Your Customers Over Seas Act, or SYCOS Act for short. Why? Because this will drive anyone interested in privacy to overseas email providers like Startmail, a company who intentionally set themselves up outside U.S. jurisdiction for reasons exactly like this.
Yeah, because a piece of paper pinched out by the government is going to stop people from sharing information.
3D-printed gun blueprints are on the Pirate Bay (for example). They're hosted on overseas websites. When the first story about the government forcing the author to take down the DefDist package came out, I made copies and posted them to six different domains I own (for example). If this regulation passes, I, and I'm sure plenty of other people, will step up their efforts to spread such files wider and wider.
Not actually true, as Aero uses your graphics card to do the compositing, whereas the older desktop renderer was entirely CPU-based. Disabling Aero just means more work for your CPU.
Vernor Vinge wrote a novel in 1992 that referred to technology like this as dust motes.
Fucking PermGen space. It's like they've specifically added a setting that's nothing more than a ticking time bomb, just to keep people on their toes.
Thank you, I'm late enough for work as it is
Nothing for the Java devs here I see. Because there's nothing funny about Java. It's just stolid and lumpen.
When first announced here Rust looked very interesting, with some bold ideas for making programs better in the lower-level problem domain. Since then it's been under tons of development and community vigour, version 1 looked very different to 0.0.1, I need to reinvestigate!
The final switch seems like it would be a useful construct. Python doesn't really have good Enums unfortunately, just some approximations such as using namedtuple._make(). Whereas in CoffeeScript you can assign the result of an if-else block to a variable, which allows for silly conditionals always a potential
Well yes, but if we were Perl programmers, we'd have just both been telling jokes at each other while trying to work out what was supposed to be funny about the other's joke.
If we were PHP programmers we'd have got the punchline and the setup in the wrong order, and be getting confused over all of the similar sounding jokes that aren't funny, but never seem to go away.
If we were JavaScript programmers we'd be on StackOverflow, asking for the best joke ever and a word-by-word explanation of why it was funny.
I really will stop now.
Disc space -- the final frontier!