Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Getters and setters (Score 4, Interesting) 543

Tangential question: What's the advantage of having getters and setters vs. just accessing the variable directly? If automatically generating getters and setters is just an easy/common thing, what function do they really serve?

I've only done OO programming in college (I do embedded C now), so I'm assuming there's some real-world advantage that I'm not aware of.

Comment Re:You're testing wrong (Score 2) 177

The real issue with USB keyboards is that if multiple keys are pressed within one polling interval, the order is ignored. For fast typists, this can easily result in swapped letters. It's quite annoying. Unfortunately, this behavior is part of the HID spec so there's not much that can be done now.

To the submitter: I'm very sensitive to input lag, but I've never had noticeable lag from any PS2 keyboard. Right now I'm using a Dell AT101W, and before that I had some junky IBM membrane thing. Do you have any software installed for e.g. multimedia keys on the keyboard? That's the only thing I could see causing a problem unless the keyboard itself is just bad. Not sure I'd trust reaction time sites, though -- that's a pretty coarse measurement. If it's just for gaming, I wouldn't worry about the keyboard. The hand-eye coordination for the mouse is where you really need the tight feedback. It's a rare game that responds that quickly to the keyboard to begin with.

If you're really dedicated to low-latency keypresses, I'd suggest a PS/2 keyboard using laptop-style scissor switches, if any exist. Another option would be Cherry MX Blue keyswitches, which activate closer to the top of the stroke. There's some hysteresis, though, so if you're jamming on the same key in a game it's easier to miss a stroke.

I went crazy looking for a keyboard several years ago, and ended up a connoisseur. Definitely my most boring interest. :-)

Comment Re:Electrical Engineer / Computer Engineer (Score 1) 401

At my school (RIT '06), EE proper had more analog work, while CE was almost entirely digital. Sometimes this meant different versions of the same class -- our Control Systems class covered analog and (to a lesser extent) digital control theory, while theirs went in-depth on the digital side. Sometimes it meant different classes altogether -- we had an electrical machines class, they had a VLSI design class. Depending on our electives, we could get pretty close to a CE. I ended up taking a lot of digital classes, and one of my strengths is in programming, so I do embedded development today.

EE is a very broad field, though. Some people went on to become grad students working on image processing, which is basically pure math. At other schools people could study electrical power distribution, which is pure (?) analog.

Comment Re:Storing bits and ways to read them (Score 1) 231

A long piece of rock (or other material) can be used to encode a huge amount of data with just one mark.

It's a neat idea, but I don't think it gives very much data. If you have a rock as long as the distance from Earth to the sun (~10^11 meters) and you can measure the length of the mark to within one atom (~10^-10 meters), that gives you 21 significant digits in decimal. In binary, you get log2(10^21) = ~70 bits of information.

Comment Re:Reorg (Score 1) 343

Or Ballmer can have them report to the head of Entertainment and Devices Division in the meantime

That group doesn't seem to exist anymore.

which is the most logical thing seeing as Ballmer has no background in gaming or devices while waiting for the re-org. This person will most likely have more knowledge and expertise than Ballmer. Or appoint someone under Mattrick to be temporary in charge until the re-org.

Do you work at a large company? I do, and I can confirm that recoiledsnake is correctly describing how things work, at least in my experience. When a manager leaves without an immediate replacement it's common for the their manager to take over the group temporarily. (They are, after all, probably more familiar with it than anyone else in the company.) Getting a new manager up to speed takes time, and if it's temporary that's a big waste. Likewise, when you've got a critical deadline it's a bad idea to distract key team members by suddenly giving them another job.

Re-orgs are often decided on months in advance but not announced until much later, and the announcements are often delayed. The new person might still be getting up to speed. Particularly at the senior management level (which is visible to investors), it's important to have a clear idea of who's in charge.

Comment Re:The Problem here is not marriage (Score 1) 1073

Again we see that the Courts are saying that citizen groups do not have standing to support laws placed on the books by their elected officials.

Careful -- these are two separate cases with very different rulings. I don't think they're doing the stuff you're worried about.

The California Supreme Court ruled that anti-gay marriage legislation violated the state constitution. Prop 8 was a California ballot initiative that created a state constitutional amendment banning gay marriage, thus overriding the state courts. Two couples that were denied marriage licenses sued in a federal district court to overturn the amendment. They had standing because they were harmed by the amendment. State officials refused to defend the amendment, so citizen groups intervened and put up their own legal defense. The district court struck down Prop 8. Then (this is the important part), the *defendant-intervenors* appealed that decision to the Ninth Circuit Court. The circuit court asked the California Supreme Court whether the intervenors had standing under California law to appeal. The California court said yes, so the Ninth Circuit reviewed the case and affirmed the decision. The intervenors then appealed to the Supreme Court. What SCOTUS actually decided was that the Ninth Circuit should never have taken the case because the defendant-intervenors were not harmed by the district court's decision, and thus had no standing to appeal. To quote from the SCOTUS decision (emphasis mine):

The parties do not contest thatrespondents had standing to initiate this case against the Californiaofficials responsible for enforcing Proposition 8. But once the District Court issued its order, respondents no longer had any injury to redress, and the state officials chose not to appeal. The only individuals who sought to appeal were petitioners, who had intervened in the District Court, but they had not been ordered to do or refrain from doing anything. Their only interest was to vindicate the constitutional validity of a generally applicable California law. As this Court has repeatedly held, such a “generalized grievance”—no matter how sincere—is insufficient to confer standing. See Lujan v. Defenders of Wildlife, 504 U. S. 555, 573–574. Petitioners claim that the California Constitution and election laws give them a “ ‘unique,’ ‘special,’ and ‘distinct’ role in the initiative process,” Reply Brief 5, but that is only true during the process of enacting the law. Once Proposition 8 was approved, it became a duly enacted constitutional amendment. Petitioners have no role—special or otherwise—in its enforcement. They therefore have no “personal stake” in defending its enforcement that is distinguishable from the general interest of every California citizen. No matter how deeply committed petitioners may be to upholding Proposition 8, that is not a particularized interest sufficient to create a case or controversy under Article III.

So basically they said you can't ask a federal court to intervene in state law just for fun; you have to be actually harmed to have standing. The intervenors did, however, get to make their case at the district court, and did so quite thoroughly. (Thoroughly badly, that is, but given that there's no actual case against gay marriage...)

Meanwhile, in the DOMA case, the Supreme Court decided that the "citizen group" (actually the House of Representatives) did have standing to defend DOMA. While the Department of Justice (under Obama) did not actively defend the law, they did continue enforcing DOMA throughout the legal process, appealed each decision, and supported the House's standing. This seems to have been a deliberate strategy to give SCOTUS the final say on the law's constitutionality.

In both cases, the executives branches refused to defend the laws because they believed them to be unconstitutional, but continued enforcing the laws until the courts made a decision. That seems like the opposite of imperial to me.

Comment Re:Uncertaintiy principle and Foruier Transforms (Score 2) 158

What do you mean by "the time"?

Frequency (or period, or wavelength) is an inherently non-local idea. It's easy to forget when you're looking at a graph, but mathematically, sine waves are eternal -- they go from t= -inf to +inf. The period is defined such that for all time:

sin(t) = sin(t + period)

If you cut off the sine wave (making a pulse), that's no longer true, and you can't say it has one period (or frequency, or wavelength) anymore. The shorter your sine pulse gets, the less meaningful that single number becomes. Now let's say you cut your pulse down to just part of one cycle -- say, the rising part at the beginning, so your signal is now an eternity of silence with a little bump in the middle. Does it still have a period (or frequency, or wavelength)?

Asking when a pure, eternal sine wave "happens" makes no sense -- it's always "happening". But it does have a well-defined frequency. An infinitesimally short pulse happens at a definite, well-defined time. But it makes no sense to talk about its frequency. In between those two extremes, things get weird.

Fourier Analysis lets us approach this in a more concrete way. It says that a signal can have many frequencies (expressed as sums of pure, eternal sine waves). That infinitesimally short pulse is actually every frequency put together. More complex signals can cover a range of frequencies (approximately finite). As a result of all this, there's an inverse relationship between localization in the time domain and localization in the frequency domain. It's easiest to see with a Gaussian (normal) distribution, which is its own Fourier transform. When the width (standard deviation) expands in the time domain, it narrows in the frequency domain, and vice-versa.

Replace "time" and "frequency" with "position" and "momentum", replace the Gaussian with the statistical distribution of your observations, and you have the Heisenberg Uncertainty Principle.

Comment Re:Inflamation - What gives? (Score 1) 159

can someone tell me why so much of modern medicine involves controlling or preventing inflammation?

I'm not a doctor either, but I can help answer this part. Inflammation hurts -- think headaches and pulled muscles. There are also a lot of chronic, painful conditions that involve inflammation, like arthritis. It's a big deal for your quality of life.

Comment Re:Sick of this crap (Score 1) 245

Also, far fewer female auto mechanics. Are they being disciminated against there too?

Just an anecdote, but...

When I was in college I did a co-op at an automotive company. One of the other co-ops was talking about an auto repair shop (I think he worked there for a while?), and how its quality started dropping. He concluded the story with "...and then they put a woman in the shop!", clearly implying that this was the last straw. This was met with general laughter and agreement from the other co-ops.

Just because it's not broadcast from the rooftops doesn't mean it isn't there. A lot of this stuff happens in private. Remember, you're not the target.

Or is it more likely they don't have an interest.

Is it so hard to believe that sexism still exists? Widespread legal discrimination has been gone for less than fifty years. Well over a quarter of the U.S. population is older than that, meaning they were raised in an era where women were, by millennia-old law and custom, inferior to men. Some of those people rejected their upbringing. Some of them didn't. Some of them didn't have strong opinions, but took a lot for granted -- "this is just the way things are". All of those groups had kids, and raised them accordingly. That's a fair bit of cultural inertia. People don't change overnight.

Comment Re:Why not just stick with H.264? (Score 1) 161

But I don't see why we need that at all. What is wrong with H.264? We got major, substantial improvements moving from MPEG-2 to H.264, but going up from there to H.265 is going to give far less performance gains and require far more processing power in return – at a time when portable and low-power computing is increasing in popularity.

H.265 improves compression over H.264 by about a factor of two on average. (H.264 vs. MPEG-2 was likewise about a factor of two.) Decoding will be done in hardware, so processing power isn't really an issue.

Comment Re:Bigotry (Score 1) 814

The only one with solid definition is in regard to biology, and that is with an xx and xy set of chromosomes. Even the phenotype is irrelevant.

The chromosomal definition may be the most solid, but it's also the least important. The X and Y chromosomes were discovered less than 150 years ago. Even today, most people have not had their chromosomes checked to "verify" their sex. (Have you?) Outside of certain narrow medical contexts, your sex chromosomes are utterly irrelevant.

When solutions exist that avoid stepping on others interests, why not take it?

The easiest solution with the least imposition on others is to let people change the value in the database field if they want to.

Techies interests often include minute details of how systems function at low levels, one of the lovely things about computer systems is that you cannot be ambiguous to them ... In general technical people dislike it when solidly defined things get changed to fuzzy wuzzy feelings based items.

They were never solidly defined to begin with. "Male" and "female" have always been ambiguous terms that mix biology, psychology, and culture. Disliking that doesn't make it less true. Even in technical fields, things are rarely solidly defined. (Example: what's a diode?) Idealized concepts are tools, nothing more. The map is not the territory, and people are definitely not computers.

For most people, in most situations, at most times, the fuzzy social definition is the one that matters most. If you want to see for yourself, dress like the opposite sex for a few days. We can (and should) lament that fact, but we still have to live with it for now.

Comment Re:Bigotry (Score 3, Insightful) 814

How is calling a spade a spade bigotry?

Being callously dismissive of other people's lives and concerns for your own personal convenience is often considered bigotry. Are you aware that there's no biological or sociological basis for what you're saying?

While there are some quite inflammatory remarks here, most of them seem to simply be of the not wanting to deal with peoples irrelevant emotional bullshit. People don't give a crap how others act or what they want to call themselves, but the slashdot demographic have a penchant for details, they like to cut through emotional bullshit.

The desire for other people to fit into neat, logical boxes defined only by your own personal experiences is, itself, irrelevant emotional bullshit. It also reflects a privileged sense of self-entitlement. See above re: bigotry.

A man wanting to call himself a lady is more than welcome to.. but he is still a man, your feelings do not change reality.

But yours do? What lets you claim the mantle of objectivity when discussing discussing people you know nothing about? See above re: privilege.

What a lot of people want is to just get by, do/make nice things and cut the crap.

Who are you mentally picturing when you say "a lot of people"? Can these people take it for granted that they will be allowed to define their own identities? Why is defining one's own identity in a way unlike yours "crap"?

I notice a lot of "us vs them" mentality with the people who choose empathy over reality, when really there is no need to fight. There is nothing wrong with wanting to call a spade a spade. If the spade is offended by that then tough.

How did you fit that much cognitive dissonance into such a small space?

What I'd like to see is people embracing whatever they do instead of hiding behind emotional crap. You're transgender? fine, who cares. Don't like being called a man when you are one? why should you care, it is true, don't be ashamed of what you are.

This shows at least a vague and abstract concern for people who are not like you. So that's good. Unfortunately, gender identity (and sexual orientation) are things that people are willing to kill and die over, not to mention a thousand other petty harassments. So "who cares?" isn't really a workable response.

"gender identity" is a complete load of bollocks. It is ascribing behaviours to sexes that are not necessarily the case, since if it were we would not have these issues. To be perfectly clear it would be more accurate to say for instance "I am male, but have behaviours typically attributed to females."

Distinguishing between biology and culture is indeed useful. That sentence is a mouthful, though. Maybe we could use shorter words to distinguish the concepts -- how about "sex" and "gender"? And if we wanted to ask someone what gender *they* think they are, then we'd be talking about their, er... "gender identity". Oops. It would be nice if we didn't need the concept anymore, but see above re: killing/dying/harassment.

Slashdot Top Deals

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...