Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Re:How long (Score 1) 316

Seriously this time, consider the following Unix timestamp:
120314165174Z

The "Z" means the Z timezone which is basically a short for UTC.

Now, airplane pilots and military often spell as follow:
tap: tango alfa papa
zoo: zulu oscar oscar

So, the Z timezone slowly became the "Zulu" timezone.

Denoting UTC as Z began around 1950 and it simply means "zero offset" to UTC.

https://en.wikipedia.org/wiki/...

Comment Re:Sounds like real listings (Score 1) 36

Hello dear Sir,

It is me! The electrician ^H^H^H^H^H^H^H^H^H^H^H locksmith!

I can assure you that I am fully legit and competent and that I possesse all certifications.

Fell free to call me anytime in full confidence, I guarantee your full satisfaction.

Also, do not believe all the fake news you read on the Internet. I am afraid that this article might impact me and make it harder for me to take care of my nine kids and my wife.

Thank you dear Sir,

Comment Re:Java is garbage (Score 1) 245

Damn, I posted basically the same thing above. See here:

https://slashdot.org/comments....

I am surprised that java developers don't seem to know how to create output parameters. As stated in my first post above, I am not saying this is a good idea but here is how you do it if you need to:

int[] out1 = new int[1];
int[] out2 = new int[1];
int[] out3 = new int[1];

void setOutParameters(int[] v1,int[] v2, int[] v3) {
    v1[0] = 1;
    v2[0] = 2;
    v3[0] = 3;
}

setOutParameters(out1,out2,out3);

System.out.println(out1[0] + "" + out2[0] + " " + out3[0]); // prints "1 2 3"

Comment Re: Twitter and Scala (Score 0) 245

This is silly, for:

1. pass by reference (yah, probably not happening, but if I can choose only one, I'd take it.)
2. output variables. Sometimes you don't want to make yet another class/struct/etc.

an array will make a fine wrapper object and make the intention clear if you ever need to do this which is rare.

int firstNumber = 24;
int secondNumber = 26;
int[] result = new int[1];

add (firstNumber,secondNumber,result);

System.out.println(result[0]); // prints 50

void add(int firstNumber,int secondNumber,int[] result) {
    result[0] = firstNumber + secondNumber;
}

I do have a String library that use use the passed StringBuilder as an input/output parameters to avoid creating new builders and strings on every string operation although.

Slashdot Top Deals

The unfacts, did we have them, are too imprecisely few to warrant our certitude.

Working...