Comment Re: File this under "NO SHIT" (Score 1) 264
They probably chose "ugly hack" because they couldn't figure out how to write a regexp that matched "hack" but didn't match "whack", "shack" etc.
They probably chose "ugly hack" because they couldn't figure out how to write a regexp that matched "hack" but didn't match "whack", "shack" etc.
Next up, a new study detailing how many puppies are killed by different programming languages, based on the comments in the code.
I remember something similar, called Duff's device. Not two overlapping switch statements (I don't think that's possible), but an intertwined loop and switch. I don't see any references to lines in bitmaps, but it's entirely possibe that the same kind of construction was used for that purpose too.
send(to, from, count)
register short *to, *from;
register count;
{
register n = (count + 7) / 8;
switch (count % 8) {
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while (--n > 0);
}
}
Ideally, you should include a generic version without any hackish optimizations, but it isn't strictly required if you don't think you'll ever change CPUs in the future.
And then your company upgrades its CPUs while you're long gone, and now they need to figure out who the hell wrote that crappy piece of code that keeps crashing on the new CPU, and some other programmer has to rewrite everything from scratch because they can't figure out how your code works and why it's not doing what it's supposed to be doing.
By the way, that other programmer may just be an older version of you who has completely forgotten what the younger version did there... (not that I have any experience with that, cough)
Tell that to people in the US who had their cash, car or even house seized because it might be connected to a crime. Traveling with $10000 cash? Surely that must be drug money, no matter how plausible your excuse is, we'll take it to buy game consoles, zambonis or margarita machines. You can always try to get it back by hiring a lawyer and going to court, good luck.
Carly spouted off on Saturday about net neutrality, and claimed that it was forced down our throats by lobbyists from Verizon and Comcast.
https://www.youtube.com/watch?...
And she says this as a former CEO of HP. I hope her campaign fails soon because her voice gives me faceslapping injuries.
The dirty little secret of that regulation, which is the same dirty little secret of Obamacare or Dodd-Frank or all of these other huge complicated pieces of regulation or legislation, is that they don't get written on their own, they get written in part by lobbyists for big companies who want to understand that the rules are going to work for them.... Who was in the middle of arguing for net neutrality? Verizon, Comcast, Google, I mean, all these companies were playing. They weren't saying "we don't need this," they were saying "we need it."
I think my grandmother could have done a better job running HP.
Organise a "draw Jesus sodomizing Mary" contest in Texas and you'll get crazy Christian jihadists doing the same thing. If you set up an event specifically designed to insult/offend/antagonise a particular religion, you're always going to get a response like this from someone.
A carload of Christians must have pulled up and busted some down-mods into this post. The guy uses British spelling but he's absolutely correct. Organizing a "Jesus sodomizing Mary" contest in Texas would be a suicide attempt.
So you enter someone's name and date of birth on this website, and it gives you all the details? How exactly is this a hack? If I asked the president of the US for the nuclear launch codes, just for laughs, and to my great surprise he would simply give them to me, would I have "hacked" the US nuclear missile system? Would I be thrown in jail for hacking?
This is just plain irresponsible behaviour by PillPack, nothing to do with hacking.
Every nation on earth has weather and climate scientists. WTF do we need NASA to study the weather?
First of all, weather is not climate.
Second, those scientists in other nations depend on the data collected by NASA, since no one else can do it as well.
Third, the idiot currently heading the committee that plans to eviscerate the NASA earth sciences program to the tune of $300 million per year sees no problem blowing hundreds of times as much money on Cold War fighter jets. One might ask,why do we need to spend $1.5 trillion dollars on F35 strike fighters that can't turn, can't climb, run hackable software, and explode when struck by lightning or running on warm fuel?
This is not about the money at all. They just don't want anyone looking into this, period.
And what about that space stuff? Remember the space stuff?
Why yes, we just saw a story about space stuff:
NASA hopes to send the first round-trip, manned spaceflight to Mars by the 2030s. If the mission succeeds, astronauts could spend several years potentially being bombarded with cosmic rays- high-energy particles launched across space by supernovae and other galactic explosions. Now, a study in mice suggests these particles could alter the shape of neurons, impairing astronauts' memories and other cognitive abilities. In the prefrontal cortex, a brain region associated with executive function, a range of high-level cognitive tasks such as reasoning, short-term memory, and problem-solving, neurons had 30% to 40% fewer branches, called dendrites, which receive electrical input from other cells.
It's pretty clear that Republicans are seeking to get people into space so they can expand their voter base.
"The only way I can lose this election is if I'm caught in bed with a dead girl or a live boy." -- Louisiana governor Edwin Edwards