« first day (1016 days earlier)      last day (3968 days later) » 

12:08 AM
message queues and websockets are cool
been writing a lot of javascript the past week, it really grows on you... it's so easy, and quality libraries are so available
 
psr
what libraries are you using?
 
I have a pit in my stomach when I think about maintaining it, but still... maybe half the reason it feels so easy is because I'm not mentally bobbing and weaving through a mind field of bad ideas and possible maintenance nightmares I know to avoid like when in C#, in Javascript I don't know which approaches are going to cause hell to pay in the future...
jquery, jquery-ui, and nick nacks like a scrollbar script and moment and a couple other little purpose-built ones like those 2
 
psr
I was wondering if there were good websockets libraries yet
 
12:34 AM
I think everyone learned a valuable lesson from libraries and the general history of javascript by the time they got around to designing websockets; the built-in javascript api for them is quite good alone. You don't really need a library, but I'm using one anyway because it does STOMP-"simple text-only message protocol" which I don't know off-hand (though it's really easy)
I'm using websockets with activemq (which has a websocket server for subscribing and publishing events which is pretty cool) and in it's demo for websockets it used this stomp websocket javascript library from github that it linked so I just used it
that library
(though I quickly found a bug in it, which I fixed; maybe the bug was in the latest version only though, the demo didn't seem to suffer the same issue)
0
Q: Receiving "Error: InvalidStateError: DOM Exception 11" on HTML5 websocket when calling .send(data) using Node.js

alexjfno1I am currently trying to develop a small chat application using node.js. This is my first node project but I am getting an error and I'm not really sure how to solve it. I have written a simple chat server in node which is below. var port = 3000; var net = require('net'); var clients = []; var...

that error
(and that fix)
here's my fix
actually that fix has a worse bug lol
there that's better, missed a return statement off the top of my head oops
@psr have a look at stomp, it's apparently growing among node/php folks as the de factor websockets protocol since websockets are protocol-less out of the box
the wife picked up some carne asada (which I let burn on the grill slightly while I hacked up a fork of that stomp thing for kicks) which is awesome. mmm happy dinner time to me.
 
user55340
1:12 AM
Could a mod forcefully (question locked from migration) suggest to Lucio that one shouldn't crosspost, especially to both SO and P.SE?
 
user55340
0
Q: Python or java random number generator from array

NathanI'm trying to write a random number generator from scratch, but I need it to follow these rules: it needs randomly select 3 numbers from an array producing every possible outcome of groups of three from numbers 1-25 it needs to ask what five numbers not to include from the array every number ca...

 
user55340
@wolfv I'm agree. You can ask in ProgrammersSE too. — Lucio 4 hours ago
 
lol
 
user55340
Hmm... actually, its migrated here, and the comment appears to be trimmed, and possible to target.
 
@MichaelT I used maven to build something today, that means I'm now a senior java engineer too, I should ask for a raise shouldn't I?
 
user55340
1:15 AM
heh
 
user55340
Nope, the new thing is Gradle.
 
user55340
 
damn, I guess I'm only mid-level with java :(
 
user55340
(and I got that comment in on the P.SE version of the question... so mods, nevermind unless you want to say something too)
 
user55340
@Lucio ideally, one would let the migration process move it from one site to another without cross posting (there are currently 3 copies of this question on the SE network). Posting to both SO and P.SE is rarely appropriate. — MichaelT 1 min ago
 
1:16 AM
man people actually think like that too... "I ran build with this java thing, I know java really well because it was such a complex thing whose build scripts I ran!"
People are accidental non-sense artists
 
user55340
Btw, today was my last day... (need to update my profile on DIY.SE - I no longer work at a home improvement store).
 
lol
nice, taking any time or straight to it monday?
 
user55340
Honestly, I was working up to the last minute... there was a kind of intresting thing that I could do... visualization of the duration that EJB calls take.
 
user55340
Starting monday.
 
Wow you are savantly dedicated
 
user55340
1:19 AM
A system patch to the register server caused EJB calls to take ~3x longer... dunno why... but they do.
 
Immediately after accepting another offer I'm always mentally bathing in the rays of some unknown tropic until my real job starts
lol and you'll be gone. nice.
 
user55340
I was hacking a perl script that read a log file (~250 MB intended to track failover from one server to another - happened to have EJB call duration in it), generate a data file, generate a gnuplot script, and execute the gnuplot script.
 
ok well that's kind of fun
 
user55340
Exactly.
 
user55340
That was one of the things I was trying to get through their head... I like answering questions... even more than coding.
 
user55340
1:21 AM
Which is why I think I'll like the GIS place.
 
user55340
Ohh... this is neat...
 
user55340
7
A: What should I do with abandoned cinder blocks?

allindalDepending on your location, build a planter. This included the base and the wall surrounding it. You could do a traditional rectangle or something modern like these...

 
user55340
 
user55340
 
user55340
(things to do with cinder blocks).
 
1:23 AM
that is totally awesome
 
user55340
I like the first one more.
 
the first one looks more shantyish, I like the second one
the second one uses all 3 dimensions better
 
user55340
Second one uses a solid fence in the back as part of it... otherwise, yes, I do like it too.
 
GIS place eh? as in geospatial?
 
user55340
The first one is free standing. And I think I could get it to have similiar properties as the second one, if designed right.
 
user55340
1:24 AM
Yes.
 
that should be a lot of fun indeed.
 
user55340
Had lunch with former co-workers today... huge group at the restaurant (mostly current... but huge group).
 
user55340
One guy who started at a mac oriented app shop.. first day they gave him a mac laptop (he bought one of his own after much soul searching two months before - now he's "I've got two laptops now! And they are the same!"), new iPhone, and iPad on his first day.
 
user55340
We've got it on our calendar that the second tuesday of the month is lunch there.
 
"Yes, it's true indeed the best mathematicians make the best coders. The most common industry organization of people is to place a selection of mathematicians at the lead roles (colloquially The Helm) and a combination of people with business degrees below them to write parts of code that the mathematicians don't want to, carrying out there vision. Other frequent structures of people in the software industry include 'Dirty Dozen' and 'The Hammer Shed'" .....
I actually kind of want to write a non-sense blog...
 
user55340
1:28 AM
Something that is almost sensical... so you can troll the people who take every blog posting seriously?
 
yeah, it would be simultaneously affective and enjoyable sparring in the comments with an inundation of the only appropriate response from someone who writes things like that: ad-hominem attacks
I'd use accent marks on letters as often as I could excuse it without looking like I was purposely making non-sense
just because
after all, accent marks are very high-brow, we all know that
 
user55340
Every good mëtäl band has gräütiüs ümälöts.
2
 
user55340
But sophistiçation çomes from sounding like the Frénch.
 
Exactly!
And this blog would be the most Sophistiçatéd
 
user55340
Personally, I would go for habitually misusing the abbreviations (i.e. i.e.).
 
1:35 AM
lol
(I kind of want "The Hammer Shed" to be a real thing in programming)
 
user55340
(I do hope you get that misuse... it can be hard over a text like... it should be e.g. - exampile graitis (for example) rather than id est (that is)).
 
user55340
Key thing though, don't make it too over the top... you want to fall on the peak of Poe.
 
8:34 PM
@WorldEngineer "too-many-notices" issue: question history shows historical lock but the notice isn't displayed here: programmers.stackexchange.com/posts/51437/revisions
 

« first day (1016 days earlier)      last day (3968 days later) »