« first day (1294 days earlier)      last day (3700 days later) » 

user55340
10:00 PM
What you miss there is the drop of water coming off the light bulb.
 
user55340
And that discolored ceiling from water standing there.
 
Oh, I see that! I presume there's a bucket somewhere below that.
 
And besides, Fixing a roof <> job most other professionals do, yet they still fix roofs
 
user55340
@RobertHarvey It was only for a few days... yes, there was.
 
Oh, I didn't see the water
 
user55340
10:01 PM
Its not a 1 man job... and I'm not that handy of a home improvement guy.
 
@Shahar Leave it to the experts. Otherwise, you wind up making the problem worse, and then you have to pay the experts anyway.
 
user55340
@RobertHarvey ... and more.
 
lol
 
The extent of my roofing skills is putting in a ceiling fan. And that was a stretch.
 
Worth the gamble though
LOL
^
 
10:02 PM
For the ceiling fan or the leaky roof?
The leaky roof is worse.
 
what about light bulbs?
 
user55340
There's also the "its cheaper to pay 5 guys who do construction to fix it over the course of two weeks than to take 2 months off for an amateur to do it himself"
 
@MichaelT Heh. Brownfield development. [snicker]
 
But this isn't really a 2-week construction job
 
user55340
(I also need new windows, new siding on the house... and I'd really like a new garage)
 
10:03 PM
@RobertHarvey again; computer sitting in a portapotty.
 
Just get a new house then
 
You wish.
 
That's just the picture I get everytime I hear "BrownField"
 
user55340
My house, on a double lot cost $63k. I'd challenge you to find anything anywhere else thats comparable.
 
user55340
Yes, I need to put maybe $10k or so into it this summer... but thats MUCH lower than $100k for a new house.
 
10:04 PM
Maybe in Singapore.
 
Well, depends where you want to live
I hear South Dakota is cheap
 
user55340
I've got a job here, it pays well for the cost of living here... I've got a house, on a double lot...
 
Sounds good
 
I see a new pattern developing. New user comes in with faux PHP problem, milks it for awhile, and then spends the rest of the day sucking work productivity out of the regulars with idle chit chat.
 
but don't come to NY
 
user55340
10:05 PM
Having been through most of the US on various trips, SD and ND wouldn't be high up on my list of places to live.
 
@RobertHarvey lol
 
@RobertHarvey You think the regulars have work productivity?
 
NY is the worst place to live in
 
user55340
Btw, I will so buy these if they ever get made:
 
the taxes here are mad high
 
user55340
10:06 PM
Feb 16 at 21:08, by MichaelT
user image
 
@JimmyHoffa After 3, in California.
 
We're well-honed experienced industry engineers. We do a fantastic job of destroying our own productivity.
 
If it's worth engineering, it's worth over-engineering.
@MichaelT That's a picture of something that doesn't exist?
 
@RobertHarvey and with that I'll head back to the thin air I'm floating around in trying to prototype generic service hosting facilities...
 
user55340
 
10:07 PM
You architecture astronaut you.
 
user55340
You screw the things on the appropriate ends, and then you just jam them into that dumbell thing and you've got your romex spliced.
 
user55340
Rather than wirenuts.
 
I like it.
The only time I've seen an SE chat room move this fast is when they did the Town Hall for the election I ran in. Holy crap, my head was spinning.
 
user55340
Yea... this is what the company normally does:
 
yo how do I order by relevance for SQL "LIKE" clause
 
user55340
10:09 PM
 
^^^ I want this! now
25
Q: Daily vote limit reached; vote again just now

Simon André ForsbergEven though this is a very very minor issue, I still think it is an issue. (And I don't think this is a duplicate as the possible duplicate is status-completed while this issue is obviously not status-completed as it happened "just now"). If you have the correct timing when there's a new day on ...

 
@Shahar The answer is in "Everything You Always Wanted to Know About SQL, but Were Afraid To Ask," page 492.
 
user55340
 
Ack, that "just now" thing. ESL users must have a field day with that phrase.
 
@RobertHarvey can't find it
 
10:13 PM
lol
 
@RobertHarvey I suspect SO uses moment.js just like me. It has nice datetime math with english phrasing for stuff so if it comes up with a math difference of 2 minutes it'll say "A couple minutes ago" or 3-59 seconds is "A few seconds ago" etc
If it's 0 seconds it probably says "Just now"
 
The "just now" thing was something the devs specifically coded.
 
@RobertHarvey oh
 
I'm digging into Java code for performance issues. Sup?
 
I've seen some other stuff around SO that made me think they used moment.js; some of the wording is too similar, but maybe it's just coincidence
@ThomasOwens Hah. HA HA. Poor poor sod.
 
10:16 PM
@JimmyHoffa To make it worse, it uses JNI.
 
@ThomasOwens never add to String in the loop
 
@JimmyHoffa They've never gotten it completely right. There are still anomalies, like elections that will say "1 hour remaining" for an hour, and then when the hour passes it will say "59 minutes" remaining and count down the minutes. ARGH!
 
@ThomasOwens ouch
 
I'm starting with dead code removal and removing variables that are set and never used. Including a native call every loop iteration that stores a value in a variable that's never used.
 
If it was .NET I would lend a hand but I can't in java, so I'll just point and laugh because having to determine perf behaviours is like being on the wheel of fortune only to find out your dyslexic
 
user55340
10:17 PM
Since @Ampt isn't here... @ThomasOwens get Idea IntelliJ.
 
Once I'm in a more reasonable code state, I'll bring in a profiler.
 
@ThomasOwens That sort of thing is traditionally micro-optimization. If you have some kind of performance problem, start by looking elsewhere. The minutia is usually not the source of performance problems
 
@JimmyHoffa Normally, I'd agree.
 
eliminating dead code and its not yet dead setup is a decent way to start improving
 
However, I want to take a pass so that way I profile something reasonable.
 
10:18 PM
Sheesh. Is there a real question anywhere in our future?
0
Q: Using past participle for non-altering functions

MorwennI often have naming problems when I write classes and functions. Generally speaking, I try to follow the following set of rules if I have to deal with a function whose name is a verb: If the function alters the parameters, use an infinitive. Otherwise, use a present participle. If the function ...

 
@ThomasOwens YourKit! Expensive, but worth every penny
 
@ThomasOwens You're procrastinating
 
user55340
@RobertHarvey Could migrate it to Stack Overflow...
 
Good luck with that.
 
10:19 PM
if the code is barely readable then I'd say it's wise to take a pass at organizing it first because the resultant analysis will go easier then
 
user55340
I wonder if we could persuade the community managers to add ELU or ELL as migration paths for the "name thing thing" questions.
 
but if it's semi-readable, just start profiling. Start isolating bits of the code and focus on resource usage points
 
It's barely readable.
Or else I would start with a profilier.
 
alright, fair enough heh
(java barely readable? nooo... surely they used design patterns, increasing the readability.)
 
java can be readable
if you know what you are trying to read
 
10:21 PM
I would love to take a crack at rewriting this application. But it's some stupid trying-to-be-real-time piece of crap.
 
real time using JNI?
 
Yes.
I want to throw it all away and put it on a board.
 
I think I saw you somewhere @ThomasOwens
 
@ThomasOwens ugh. Let me guess: It's brimming with nested if/then/elses nested inside of switches nested inside of if/then/elses nested inside of switches? That's how people always attempt to do real-time stuff when they don't understand how to reverse the flow of their control-logic to be data driven rather than data inspecting
 
@Shahar Possibly?
@JimmyHoffa Not quite that bad. But close.
 
10:23 PM
Do you have an SO account?
 
It's a Java app written by a C programmer.
@Shahar I was one of the first few hundred SO users.
 
those are the worst
 
@ThomasOwens That's why your name is so familiar then.
 
@ThomasOwens minimal object dispatch used? Or did the C programmer think "Whoa java has objects! I'll use those...for everything!" and has a billion objects with a gonzo inheritance tree?
 
@JimmyHoffa Minimal objects. Plus UI objects with logic in them.
 
10:24 PM
ah, very procedural
 
or the java is barely a wrapper for all the real meat in JNI
 
@ratchetfreak That may be preferable.
 
fun. you enjoy that...
 
user55340
"... with native bindings that aren't a pain"
 
@MichaelT like I said earlier, the language that guy was describing is I want a pony...
 
10:26 PM
In other words, the infinitive form of the verb is always used? — Robert Harvey 3 mins ago
 
user55340
Oh, I so know what mod power I'm going to abuse if I ever become a mod...
 
I just don't understand it. Seems like people have been talking past each other all day on the main site.
 
@MichaelT you'll add @RobertHarvey's email to a bunch of spam lists?
 
That's exactly what he'll do.
Or ban me from chat. He'll probably be doing me a favor.
 
user55340
Nope. I'll edit every old mention of I want a pony to "I want a pony"
 
10:28 PM
which is why you never use your personal email for sites
 
Oh, wait. I'm a mod.
 
o_o A method returns a double. It's casted to a short. Then stored into an array that's an array of ints.
What the hell?
 
@ThomasOwens Sounds like the Ariane 5 software.
 
I wonder how pale @ThomasOwens' face is right now
 
I just looked up the history. One guy who touched this file is still here.
There. Will. Be. Words.
 
10:29 PM
maybe he wanted to limit the values from -32k to 32k
 
user55340
32 bit words? or 4 letter words?
 
@ThomasOwens in C, everything's one word afterall, the type just tells you how to parse the bits in your word.. :)
 
Oh. No. I read the wrong line. It is an array of shorts.
But still. Casting a double to a short? That's...suspicious.
 
user55340
Still, using short in Java is suspious enough.
 
that's why code completion, so you know what the type is
 
10:30 PM
@ThomasOwens not to mention the rounding error that I'm sure isn't happening there...
 
user55340
Hmm.
 
user55340
> short: The short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive). As with byte, the same guidelines apply: you can use a short to save memory in large arrays, in situations where the memory savings actually matters.
 
Oh my god. "covertDoubleToShort
It returns...a short array.
 
@ThomasOwens haha like I said, in C everything's just a word anyway, right? :D
 
And that's exactly what they are doing here.
 
10:31 PM
@ThomasOwens There are use cases for that.
 
Yeah. I need to look up the MIL 1553 spec now.
 
@ThomasOwens sites.google.com/site/steveyegge2/allocation-styles -> "Buffer-oriented programming"
 
IIRC, the .NET framework has a similar function in the BitConverter class.
It's always the infinitive. I've never seen a participle form, except maybe for the is and has forms, although that would start to sound very LOLCATS. — Robert Harvey 1 min ago
 
OK. Although it looks stupid, it has to do with how messages are formatted in the MIL STD.
 
@RobertHarvey BitConverter...I know her well... it does all fashion of things for .NET's memory
 
10:32 PM
@ThomasOwens Makes sense. Big Endian may be involved.
 
> Buffer-oriented style is common in C, C++, and Java written by C/C++ programmers
 
Everything's a two byte block.
 
chars are easier to manipulate that way
they act as a 16 bit unsigned
 
Buffer oriented programming... BOP.
bop bop du wop.
 
user55340
@RobertHarvey Buffer Driven Design Oriented Programming
 
10:34 PM
Now. If Java had real unsigned types...that would be helpful.
 
@ThomasOwens true that
but at least overflow is well defined
 
user55340
Yep... though, Java doesn't let you shoot yourself in the foot that way... by putting mittens on you.
 
thomas owens thought
he could haz the overflows
but buffer not full
 
OK. I'm out. mic drop
 
user55340
@RobertHarvey My limerick flag on SO got handled quickly... my haiku one is still active.
 
10:37 PM
@MichaelT Fixed that for you.
 
user55340
@RobertHarvey I just like the "limericks get acted on fast"
 
user55340
You probably get too many haiku flags as it is.
 
user55340
(and there's not enough space for a sonnet)
 
limerics handled fast
haikus are less humorous
speedy not so much
 
user55340
hippopotamus
anti hippopotamus
annihilation
 
10:40 PM
If I knew a limerick or rhyme
my flags would be handled on time
but lacking such class
my flags get kind of crass
and I wonder why people say I'm a pain in the ass...
 
user55340
@JimmyHoffa I blame it on Robert Harvey.
 
user55340
And its clear now why you don't like OO... public crass AbstractFactory doesn't compile.
 
66
A: Trolling the troll

mniipHaskell Check this manual page, removeDirectoryRecursive deletes a directory with all of its contents! import System.Directory main = return (removeDirectoryRecursive "/")

 
user55340
I still think this is the more impressive haskell answer in another question:
 
user55340
62
A: Is it dark outside? Draw a sun map!

mniipHaskell - low quality code I was extremely tired when I wrote this. I might have gone too far with projections idea, anyway, here's the projection the program uses. Basically like projecting earth onto a cube and then unfolding it. Besides, in this projection, the shadow is made of straight l...

 
10:46 PM
@Mike It only looks like it does something to someone who doesn't know Haskell at all. A basic understanding of the syntax and it's clear that doesn't apply the function
@MichaelT haha, now that is some Haskell written like LISP...
 
user55340
@JimmyHoffa Did you glance at the other haskell answer in that question?
 
user55340
49
A: Is it dark outside? Draw a sun map!

bazzarghHaskell, in the 'because it's there' category I was curious so I wrote one. The formulas are reasonably accurate[1], but then I go and use some ascii art instead of a proper Plate Carrée map, because it looked nicer (the way I convert pixels to lat/long only works correctly for Plate Carrée) i...

 
haha ascii-art drawing. Awesome.
@MichaelT do note he uses tau
 
user55340
Its greater than pi.
 
@MichaelT though his main is an atrocious rendition of what it should be
main = do {t<-getCurrentTime; showMap t} -- do not do this
main = getCurrentTime >>= showMap -- do this.
 
user55340
10:53 PM
@ThomasOwens While likely a bit more overhead for a real time app - docs.oracle.com/javase/7/docs/api/java/math/…
 
user55340
> public short shortValueExact()
Converts this BigDecimal to a short, checking for lost information. If this BigDecimal has a nonzero fractional part or is out of the possible range for a short result then an ArithmeticException is thrown.
 
@MichaelT holy crap did you see the bash answer in that thread? I am aghast that someone would write such...
 
user55340
Sending a double -> BigDecimal -> short might be a bit excessive though.
 
user55340
@JimmyHoffa o_O
 
user55340
@JimmyHoffa heh... how about this program:
 
user55340
11:05 PM
177
A: 4, 8, 15, 16, 23, 42

RadiodefJava I decided to add another entry since this is completely different from my first one (which was more like an example). This program calculates the average of an array entered by the user... import java.util.Scanner; public class Numbers { public static double getSum(int[] nums) { ...

 
@MichaelT I assume you appreciate the perl entrant there...
 
user55340
@JimmyHoffa Its neat, but not as impressive as others.
 
user55340
Its the Java one that is the creative approach.
 
@MichaelT didn't read it, too much code, aka it's Java
 
user55340
@JimmyHoffa read the output.
 
user55340
11:09 PM
java.lang.ArrayIndexOutOfBoundsException: 4
    at Numbers.getSum(Numbers.java:8)
    at Numbers.getAverage(Numbers.java:15)
    at Numbers.roundAverage(Numbers.java:16)
    at Numbers.beginLoop(Numbers.java:23)
    at Numbers.main(Numbers.java:42)
java.lang.ArrayIndexOutOfBoundsException: 4
    at Numbers.getSum(Numbers.java:8)
    at Numbers.getAverage(Numbers.java:15)
    at Numbers.roundAverage(Numbers.java:16)
    at Numbers.beginLoop(Numbers.java:23)
    at Numbers.main(Numbers.java:42)
java.lang.ArrayIndexOutOfBoundsException: 4
 
11:28 PM
oh I saw that at Codegolf ᶘ ᵒᴥᵒᶅ
ノ( ゜-゜ノ)
(ง •̀_•́)ง How do I avoid these annoying ascii faces on my website
 
user58869
11:47 PM
@Shahar there must be a way
 

« first day (1294 days earlier)      last day (3700 days later) »