I overheard two developers talking in the next cubicle this morning.
Dev #1: So it's a logical value, right?
Dev #2: Yes, a boolean value.
Dev #1: Then it's true, false or unassigned.
Dev #2: Right.
The next sound was me slapping my forehead.
lizardfoot
@lizardfoot
Best posts made by lizardfoot
-
Overheard in the next cube
-
Messing with the FNG
Had this little IM conversation with the new guy. He's young and impressionable. I'm an old fart.
FNG (01:25:32 PM): Hey is there a VBscript function that detects whether a number is negative
ME (01:26:12 PM): Uh, yeah. n < 0
FNG (01:27:47 PM): o... right >_>
ME (01:28:06 PM): I can wrap that in a fucntion for you...
FNG (01:28:42 PM): ok...
ME (01:30:43 PM): This will work:
Function isNegative(n)
isNegative = False
If n < 0 Then
isNegative = True
End If
End Function
FNG (01:32:27 PM): but what if it's null?
ME (01:32:49 PM): Oh yeah. Give me a minute...
ME (01:35:07 PM): try this:
Function isNegative(n)
If Not isNull(n) Then
If IsNumeric(n) Then
If n < 0 Then
isNegative = True
Else
isNegative = False
End If
Else
isNegative = NAN
End If
Else
isNegative = FILE_NOT_FOUND
End If
End Function
FNG (01:37:18 PM): Thanks!
Latest posts made by lizardfoot
-
RE: Remember Bitcoin?
@immibis said:
@joe.edwards said:
@Snooder said:
Bitcoin is basically designed to avoid government regulations. Cash is not.You know the best part about the whole bitcoin thing? That it's deliberately designed to foster criminal activity, and yet people still seem surprised every time criminal use it.
And yes, "hiding your money from the government" is criminal. It may be a morally justified or principled form of criminal activity, but that's what it is.Is cash deliberately designed to foster criminal activity?
It seems like you could stash cash in a mattress as easily as you could stash USB sticks with private keys.
Bitcoin is only designed to be a currency; a form of cash that is not backed by any bank or nation and does not rely on the economic stability of any bank or nation.
Bitcoin can be regulated just like any other currency. Governments can regulate anything they want. Chinese yen are regulated. You can't trade large amounts of Chinese yen for dollars or dollars for chinese yen in the USA without the Feds getting all up in your grill about it. If the US government considers bitcoin to be an international currency it is already regulated. In Florida there are already people in trouble like that.
-
RE: Wow... just.... wow.
I encrypt my data with flatulence. Just wait until they get a load of that!
-
RE: I tried renaming a file in Ubuntu
@aapis said:
I like the CLI for mundane tasks like file renaming and copying and I agree that "mv" to rename files is stupid. Fortunately for me this is the first time I've ever heard of a "rename" command, "mv" is the only one I knew of to rename files.
It's not stupid. Rename is a misnomer when working with a file system. There is no such thing as renaming a file and there never has been one. It has always been a matter of moving a file. Back in the DOS days, the "ren" command was the exact same thing as the "move" command. Both commands still exist in the Windows command prompt today. In the C language, there is no "rename", there is only a "move". That's because, at the OS level, there is no interrupt for "rename", only "move".
So "move" was there before "rename" and using "rename" to move files is stupid. :)
-
RE: QA
Where I work, we build what we think they want then the QA team tests the requirements into the software.
They call it "test driven software development".
-
RE: I think I've found where WTFs come from.
I always thought they came from here: http://goo.gl/maps/36uHi
-
Why should I close my HTML tags?
http://sewingandembroiderywarehouse.com/embtrb.htm
This is an amazing piece of WTF-ery sure to make your DOM viewer assplode.
It probably works in IE 5.
-
Java deployment.properties WTF
So I'm having problems with a javaws app that is supposed to be able to run offline. I went to look at the java documentation to see if there's any settings in the deployment.properties file and I came across this:
deployment.cache.enable | String | false | Specifies if cache should be disabled. false means it should not be disabled.
So enabled=true means cache disabled and enabled=false means it's enabled?
I'm thinking of doing this:
deployment.cache.enable=file not found
http://docs.oracle.com/javase/7/docs/technotes/guides/deployment/deployment-guide/properties.html
-
RE: Boring Thursday! Here's a link
I've been working on a project for the last year that is 95% linux scripting. So I've been using Ubuntu 12.04 for this year as my main work desktop. Most of my work is done via SSH sessions, and Linux works more seamlesly with SSH. I can still do all the Windows work from here with an RDP client called Remmina. As for IDE's, I have tried many, Eclipse, Mono, etc. But since most of my work is bash, ruby and python, the text editor is my main weapon. Our company switched to GMail a while back, so I use Chromium for my mail and calendar. Some of the old internal web apps don't work at all because of ActiveX bullsh*t, but those are slowly being replaced anyway.
In my spare time, I'm working on getting a corporate Linux desktop solution using Suse Enterprise Desktop (we already have a support contract with them). The goal is to re-use older harware that don't have enough power for our Win7 or Win8 images. Saving money is everything to pointy-haired mamanger types. That and pie charts. And pie.
-
RE: Arrogant morons
I'm sorry. I thought this was a thread about the presidential debates.
BTW, SumatraPDF for all your basic PDF viewing needs.
-
RE: Cowboy website writers, perhaps?
TRWTF is that you're a Cowboys fan.
J.E.T.S. Jets Jets Jets!!!