|
So, if he destroys capitalism, who will create the computers he wants to use? While capitalism may not be a perfect system, do we want to live without ANY capitalism? Consider the implications of that..
|
|
|
|
|
Hey, My original post was intended as a joke, because I was a little bit bored creating GUIDs for my com interfaces. So I thought write something funny with GUIDs as the subject.
Like others said. There is no way that somebody can destroy captitalism by reserving GUIDS, because there is no authority which issues or saves GUIDs. The number is so huge that it is not possible to generate all the possible GUIDS and even if it would be possible, it would not matter because my college, who does not exist, does not save them anyway. He does not use the GUIDs for a COM interface or something else so it is going > null, it does not matter how many GUIDs he creates, it only costs electricity nothing else.
I personally wonder why it was moved to this forum. Again I just liked to make a joke and no discussion about capitalism or a discussion over the code, especially not about visual basic. I thought visual basic is easy for everybode to understand, so I did not code it in c++ or c#.
computers can be created without capitalism, thats a fact. I used to work in eastern europe and we produced computers But this is not the point in my small story. The joke I intended was to describe something "which is absolutely impossible". I did not plan a story about capitalism or communism.
So chai yen, yen (Thai for keep cool)
Chayaphum
|
|
|
|
|
Capitalism had it's uses, but no social economic paradigm is meant to last forever.
Industrialization anno 2014 has created a world where people only have to work 19 hours a day to have a modern life standard, but capitalism has caused a reality where this hasn't happened yet. As technology progresses even further, this will become unsustainable because people will eventually feel entitled to receive an unconditional income because modern technology will be able to provide it.
.
|
|
|
|
|
This forum is not for posting jokes.
This space intentionally left blank.
|
|
|
|
|
A new nasty virus? It's so terrifying, that it can easily beat Skynet. The machines will terminate us all
|
|
|
|
|
I bet he could have formatted his code block on CodeProject properly though...... 
|
|
|
|
|
I think even in the dim mists of time when VB6 code was still being written, this was probably not considered "secure":
Public Function CheckPassword() As Boolean
CheckPassword = False
If InputBox("Enter password", "Admin Area - Password Required") = "****" Then
CheckPassword = True
End If
End Function
I've obfuscated the password, but yes, it was stored in plain text, it was 4 characters long, and is in a dictionary.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Can I make a guess? The password was "Test"? 
|
|
|
|
|
or "Pass"?
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Or "Dumb"
Short for Dumbass Programmer.
<voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>
|
|
|
|
|
Mine's short for password. I have seen many people used admin/pass as login details for programs(testing).
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Gets my vote - but not the one.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Is it "elephant", or is that just what you shouted when you found this code?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yeah, that looks like top-notch security, after all, once the code is compiled there is no way anyone could see what is in an exe file.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
WOW
That's... yeah. That's impressive.
|
|
|
|
|
Last night, I wanted to test my (database-agnostic) data access tool against an Access database. The one I tried was for a little app I wrote many years ago which I knew was password-protected, I had to look in the code to remind myself of what the password was -- very handy, that.
This space intentionally left blank.
|
|
|
|
|
Speaks for itself really...
Public Function WhichYear(MyDate As Date) As Integer
If MyDate >= CDate("01/01/2006") And MyDate <= CDate("31/12/2006") Then WhichYear = 1
If MyDate >= CDate("01/01/2007") And MyDate <= CDate("31/12/2007") Then WhichYear = 2
If MyDate >= CDate("01/01/2008") And MyDate <= CDate("31/12/2008") Then WhichYear = 3
If MyDate >= CDate("01/01/2009") And MyDate <= CDate("31/12/2009") Then WhichYear = 4
If MyDate >= CDate("01/01/2010") And MyDate <= CDate("31/12/2010") Then WhichYear = 5
If MyDate >= CDate("01/01/2011") And MyDate <= CDate("31/12/2011") Then WhichYear = 6
If MyDate >= CDate("01/01/2012") And MyDate <= CDate("31/12/2012") Then WhichYear = 7
If MyDate >= CDate("01/01/2013") And MyDate <= CDate("31/12/2013") Then WhichYear = 8
If MyDate >= CDate("01/01/2014") And MyDate <= CDate("31/12/2014") Then WhichYear = 9
If MyDate >= CDate("01/01/2015") And MyDate <= CDate("31/12/2015") Then WhichYear = 10
If MyDate >= CDate("01/01/2016") And MyDate <= CDate("31/12/2016") Then WhichYear = 11
End Function
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Perfectly sensible code, if you're 3 years old. And dead.
|
|
|
|
|
The nice thing is that it the only limit to dates was how many the developer had been bothered to type. It triggered a bug as we frequently deal with dates in the future...
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Do you use it often on midday 31st of December?
|
|
|
|
|
I was wondering about that one too 
|
|
|
|
|
Year end bugs are especially brilliant because they guarantee that someone will have to be pulled out of bed (usually, as midnight rolls over) on a holiday when they really don't want to think about work, because some critical system crashed on either 31/12 (as in this case) or 1/1.
|
|
|
|
|
Problem 2017
—SASergey A Kryukov
|
|
|
|
|
Oh my.
This space intentionally left blank.
|
|
|
|
|
I would argue that it's not nonsense - you can tell by looking at it exactly what it does - it's just not the best way of doing it 
|
|
|
|