Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: representing numbers

I notice a tag popping up around slashdot, namely hex09f911029d74e35bd84156c5635688c0. The context of the tag is irrelevant to any civilized person, but I was intrigued with the prefix hex, presumably to indicate the number was base 16. I wonder if the use of the prefix, instead of the more traditional 0x, was due to the increasing distance between the technical elite and the hardware

As I am sure we all know, a digital computer represents all information by either an on or off state, which is typically represented numerically as 0 or 1, respectively. As the digital state is often implements as an analog current, there is often some firm threshhold value, above which the state is said to be on.

Therefore to represent a peice of information, such information must first be encoded in as a number, then the number encoded into a series of off or on states to represent that number. This is where binary notation comes from. Using only 0 an 1, in principle we can represent any number as easily as using the 0-9. For instance, using base 2, the number representing in decimal form as 4 would be 100. Perhaps a bit verbose, but quite adequate when one can complete thousands of operations every second.

The verbosity, however is a problem for humans. For instance, to represent the decimal number 9 requires us to write 1001. While a digital device has no problem with this, and humans working to hardwire code have no problems, as the amount of information to encode becomes greater, humans wish to have more information density.

Which is where Octal, or base 8 representation emerges. Octal notation groups three states, or bits, in one. In octal instead of only using the digits 0 and 1, we use 0-7. This means that to write the decimal number 7 instead of writing 0b111, we write 0o7, i which the 0o prefix means octal.

Octal was nice when bits were base of the computers, but soon information grew so much that we began to group bits together. The smallest traditional grouping of bits is the nibble, which contains 4 bits. This means the biggest number that can be held is 0b1111 or the decimal number 15. This lead to the idea that we might want a numbering system that can represent numbers up to decimal 15, and the hexadecimal system was used. In this system, digits go from 0-F. Therefore the decimal number 7 is written 0x7. The decimal number 15 is written 0xF, 0o17 or 0b1111. One can see that even though the computer does not care, it is easier for people.

Hexadecimal was quite used prior to the mid 80's. While programming tasks were easily handled through the alphanumeric keyboard, with minimal special keys, formatted text processing required copious use of the entry of special codes. Even in programming, it was useful to direct many function directly through the hardware using hex.

So, obviously, with the huge bit capacity, it is quite easy to see why we use hexadecimal to represent numerical values. What is not so obvious is why we represent using the longer form hex09f911029d74e35bd84156c5635688c0 rather than 0x09f911029d74e35bd84156c5635688c0.

User Journal

Journal Journal: Ohio recount rigging case goes to court 224

The Akron Beacon Journal is reporting that the trial of the three election workers accused of rigging the 2004 presidential election recount in Cuyahoga County is finally underway. As you may recall, this was the case where poll workers "randomly" selected the precincts to recount by first eliminating from consideration precincts where the number of ballots handed out on Election Day failed to match the number of ballots cast and, then opening the ballot boxes in private and pre-counting until they found cases which would match up.

What is interesting here is that they have already admitted doing this and that it was clearly counter to the letter and the spirit of the law, but still insist it wasn't really wrong, presumably since they only did it to avoid having to go to the bother of a full recount as required by law.

United States

Journal Journal: Control of US Senate may come down to...a font selection? 3

So, coming down to the wire, we see that control of the US Senate is pretty much a toss up with a half dozen or so races potentially deciding if control lands in the hands of the Republicans, the Democrats, or some 3rd Party. According to a story in the Washington Post one of those races may come down to the choice of font used on the electronic voting machines in several counties.

Why? Because "although the larger type is easier to read, it also unintentionally shortens the longer names on the summary page of the ballot" -- shortening in the case of the Senate candidate meaning it leaves off his last name. This means he will be listed as "James H. 'Jim'..." on an ballot that also includes a "James T. 'Jim'..." running against a "James P. 'Jim'..." which is not expected to cause undue confusion.

Officials claim that it is simply a computer 'glitch' and should almost certainly be fixed by the 2007 general election.

It's funny.  Laugh.

Journal Journal: Am I being trolled? Opinions wanted 14

OK, I could use some opinions / advice here.

I honestly can't tell if I've fallen for an elaborate troll or just run across someone who is English impaired.

The top of the thread in question starts out reasonably enough, but before too long it gets very odd. Its almost like I'm arguing with a really sophisticated chatbot or something. Or like that Monty Python argument sketch. Another thought that crossed my mind is that he may be trying to do a Colbert, and playing the part of an overly enthusiastic partisan for humorous effect.

So what do you think? Am I wasting my time on a really clever troll, or dealing with someone who is language impaired, or (I suppose it's possible) someone whose subtle wit is far beyond my ability to comprehend?

Thoughts?

--MarkusQ

User Journal

Journal Journal: Putting one's money where their OS is. 7

Recently, as I was rebuilding my computer after some sort of horrific malfunction, I found myself looking for Windows XP cracks. Our Windows 2000 burned CD doesn't work properly, and I didn't want to burn an authentication tick on my laptop WinXP disc. So I searched, and came up with nothing particularly useful. I ended up installing an Ubuntu bundle, and so far so good. Good thing we quit playing WoW again.

But as I browsed, I came across a message board discussing how to crack XP, with several people posting "Gah thieves! Just buy it already!" I found myself wanting to post back (though I refrained, having insufficient desire to create a new account on a random message board and bump a thread that's been dead for months). I wanted to say, "You know, I don't want to crack XP because I'm cheap. I want to crack it because I'm BOYCOTTING MICROSOFT."

So then I was thinking, how could I prove it? I mean, I'm morally opposed to giving MS any money, but how does one tell that this is truly my motivation, and not simply an excuse to make me feel better about "stealing" software? And then I hit upon the solution: donate the cover price of the pirated software to an Open Source project of my choice!

So, when I get PowerPoint back up and running somewhere, I'll find out how much it's "supposed" to cost, and donate that money to... something. Mozilla, probably, or Ubuntu (it's very shiny!). And I encourage all 1.5 of the people who read this to do the same, for any pirated MS software they are running.

User Journal

Journal Journal: THE FINAL COUNTDOWN

Oh noes!

Despite the fact that my last "going away" JE never had anything to do with me going away (uh, go reread it fellers), a lot of people took it as such.

Alas, however, I waste far too much time with the morons on this site, so I must bid you adieu. My password has been blindly changed to random gibberish, and the email address changed to one I no longer have access to.

To those of you with at least half a brain, thanks for the laughs. To the rest of you?

Go sit on a unicorn's face and spin. Don't forget to think fondly of me in your last moments you pathetic, bloody morons.

User Journal

Journal Journal: Arlen Specter is the Longest Sitting Senator From PA Today. 2

Why?

Because unlike extremist, mysognistic, homophobic, pompous morons like Santorum, Arlen Specter is a level-headed, moderate guy who knows what he's doing.

Yea, you don't see that a lot in government these days. You see cocklickers who hate women, minorities, and freedom getting nominated for high court positions.

Oh well. Like I told Brent, 13 years from now we'll be in the grips of one of those dirty liberals while he/she rebuilds from the disastrous mess caused by the conservatives again, and the idiot public will then vote another whacked-out conservative to wreck all that progress all over again.

Constant cycle. The cons destroy what the progressives build. Sad, sad cycle.

User Journal

Journal Journal: Meet Alito 21

A man who believes the only thing lower in the pecking order than a dirty liberal is a dirty whore out of her burkha.

There's nothing that warms the cockles of my heart quite like a guy who argued that a woman who gets raped, deceived (e.g. - tampering with birth control), or beaten by her husband can't get an abortion unless she... asks her husband if it's okay.

Nice. Way to go righties. You're real outstanding examples of the human species. Thanks for spreading the love.

User Journal

Journal Journal: Hoo-Rah 7

Word on the wire is that Bush is none to happy with some of his top advisors for their roles in the unpleasant negatives that have been heaped on his administration lately for the botched Katrina response and failed Miers nomination, not to mention that niggling little problem with Fitzgerald and the potential for an intentional national security breach at the highest levels of the executive arm of the government.

Reports say that Bush may have lost confidence in three of his top advisors, notably Rove and Cheney.

The Bush legacy is in its death spiral because all of its miserably corrupt and incompetent behavior from the beginning has caught up. Now it's time for people to face up to the facts. Which side were they on, the side that called bullshit from the beginning, or the side that's now so rapidly backpeddling on five years worth of mindless marching-order support?

Pathetic.

User Journal

Journal Journal: I Just Solved The Universe, ,Now for the Rubic's Cube 3

Naturally, the first place I thought to post this undirected thought process was on the /b/ (random) board of 4chan about 7 minutes ago, albeit with a significantly more obscene trailer.

Because I know when I think 4chan, I think intellectual clarity.

According to string theory, our entire universe is compromised of subatomic 1-dimensional strings vibrating at specific frequencies.

In addition, there's an idea out there that our Universe is just one of many floating on 'branes'.

Well, I was thinking... what if the ways in which gravity "distorts" our universe (e.g. massive objects like black holes and enormous stars have a huge distorting effect and smaller planets and planetoids and molecules have smaller and minute effects) is just the way in which the brane we're floating on is told how to "vibrate".

That would mean that, potentially, our entire universe appears as a 1-dimensional "string" to outside observers, and as only a limitlessly tiny portion of a whole other, much larger (from our perspective) universe.

That would also mean that the 1-dimensional strings WE percieve might be entire universes.

User Journal

Journal Journal: Say What Now? 7

Alright, folks, try and stay with me here as we think through this and try to figure out why the United States public is getting fed up with the Bush administration and our current political "leaders"...

September 2001 you get these psychobastards who slam some planes into a couple of buildings and a field. This pisses a lot of people off, it's a uniting thing, symbolism, rally point, etc. Everyone says "GO GET 'EM BUSH" and Bush does. By golly, he says "this guy did it!" and he goes over there and this guy's a real bad guy so everyone is like "SEND A MOAB UP HIS HAIRLESS CORNHOLE!" and Bush is like 'no wait, guys, let's see if fuck fail Taliban will turn him over and save us some time, money, and lives'.

Fuck fail Taliban fuck fails and doesn't, so we're all like DIE MOFO and we kick their asses and send 'em packing and everyone is like "OH BOY, YAY!".

But Bumholeman goes running into some caves and hides and he's all like "OH SHI-!". So for awhile we're looking for him and then Bush is all like "ummmm I don't think about him much anymore" and American Public is sort of like "he say whut guy?". But they don't think so much of it because airplane bombs were years ago, so Bush is all like "SADDAM IS A BAD GUY, LET'S GO GET HIM!"

Then there's schism and smart people are like "asshole is he, threat he is not" and everyone else is like "shawt up or I'll punch ya'lls necks".

So then there's like 49% of people who are like "no wait, Bush is fuck fail now" and then 51% votes and he wins election this time and John Kerry cries and he's like "but I got shrapnels" but nobody cares so he goes back to the Senate and votes for some more stuff before he votes against it. Or maybe it was the other way around.

So anyway, people are like "hey man, whut with checking account? Savings account is fuck fail too!" and Bush is like "uuh" and then people are like "oh man too much debt no money, gotta bankrupt" and Bush is like "NO YOU PAY CORPORATIONS BECAUSE THEY'RE BETTER THAN YOU" and peolpe are like "whoa what?".

So then Katrina comes and is like WHOOOOSH BOOM! And bush is like 'lol nigers' and then people are like "man FEMA fuck fails too now". And Brown is like "lol horses are great" and Bush is like "good job!" and then people go "no, you fail".

Then Tom DeLay is like "YOA HERE'S SOME MONEY" and badass guy with a paper clip is like "YUO FREEZE!". Tom DeLay is like "Whoa whut, no I did nothing!" and then people are like "man you fuck fail corrupted n00b". And then Frist is like "OH SHI-" and then they notice him and are like "Yuo next n00b lol".

Then anyway, Bush is like "lol Miers" and people go "umm, whut" and then he has to withdraw her because she's illiterate. Then Lewis Libby gets indicted and Karl Rove is like "woo that close" and Bush is all :I "OH SHI-!"

And that's where we are today.

Questions?

Slashdot Top Deals

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...