|
So tell us the secret info. We'll find out if you don't tell us anyway
|
|
|
|
|
If your hash keys are longer than 32 bits you obviously don't care about performance.
... such stuff as dreams are made on
|
|
|
|
|
64 bit machine: 32bit hashes just waste memory accesses!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
So, Mr. Fancy-Pants has got one of those modern PCs. I bet it is portable as well!
... such stuff as dreams are made on
|
|
|
|
|
Nah, it don't 'ave no 'andle.
The WookieTab is though.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Well, mine has sixty-odd thousand ports! So there!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
ROT13 is enough for anybody
|
|
|
|
|
I like GUIDs as IDs. GUIDs are 128 bits. With a 128-bit hash algorithm, I can make GUIDs from whatever arbitrary (string) values I may have (not user input or file content). And if I can do that within the database (SQL Server), then so much the better. Does SQL Server support any unbroken 128-bit hash algorithms?
CAST(HASHBYTES('MD5',@Value) AS UNIQUEIDENTIFIER)
Or, would prefer that I generate a 256-bit hash and throw out half the bits? How is that any better?
|
|
|
|
|
This is going to be a pretty quick post. I may do a more detailed breakdown of this code if there is a demand for it.
This is a small bit of code I wrote. Basically it uses phone numbers that you input and checks to see if that phone number has an active order with Domino’s Pizza. If there is an active order for that phone number, the program sends you an email telling you what that person ordered and when they ordered it. It’s a pretty fun program. I’ve used it on my friends with great results.
I need to make a giant for things like this.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
|
|
What does Domino's have to do with pizza?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: What does Domino's have to do with pizza?
A lot more than Papa John's?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I've not had it, nor will I ever. From a pizza point of view, I'm happy to live in Chicago, where I have a half a dozen fine pizza joints within a half mile of the house.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Papa John's is trying to get an inroad into the UK pizza market, but I'm not sure about their "quality" offer - "if you didn't like your pizza, we'll send you another one"! If I didn't like the first one, why the hell would I want another?
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
I've noticed the ad, and wondered the same thing!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Dan Neely quoted: If there is an active order for that phone number, the program sends you an email telling you what that person ordered and when they ordered it
I need to make a giant for things like this.
I think you misunderstood. This was the first stage of the rollout of their new your-buddy-just-ordered-Dominos-time-to-stop-by-and-snarf-their-pizza campaign.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
While reading the fanastic book, Code: The Hidden Language of Computer Hardware and Software (Developer Best Practices) by Charles Petzold[^]
I stumbled upon this:
Charles Petzold said: Sometime around 1948, the American mathematician John Wilder Tukey (born 1915) realized that the words binary digit were likely to assume a much greater importance in the years ahead as computers be came more prevalent. He decided to coin a new, shorter word to replace the unwieldy five syllables of binary digit . He considered bigit and binit but settled instead on the short, simple, elegant, and perfectly lovely word bit .
Verified by wikipedia.
John Tukey - Wikipedia[^]
wikipedia: While working with John von Neumann on early computer designs, Tukey introduced the word "bit" as a contraction of "binary digit".[8] The term "bit" was first used in an article by Claude Shannon in 1948.
Have any of you read Code? It's really fantastic.
|
|
|
|
|
raddevus wrote: Have any of you read Code? It's really fantastic.
I read fantastic code all the time.
Needless to say, I wrote it.
(I tell lies, as well)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Wait, you go back and read your fantastic code?
Why?
No need.
|
|
|
|
|
raddevus wrote: Have any of you read Code? Yes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
+1 for you!
But you got that +1 from reading the book already so I'm late to the game.
|
|
|
|
|
You verify a book with Wikipedia?
When I was in school we verified Wikipedia with books!
|
|
|
|
|
Sander Rossel wrote: When I was in school we verified Wikipedia with books!
This cracked me up! I'm in pieces here.
I know. I did that for the younger scriptkiddies here who cannot/willnot read books and who only believe it if it has a http at the beginning.
I also tweeted the message and snapchatted and instagrammed it.
|
|
|
|
|