« first day (1522 days earlier)      last day (3427 days later) » 

9:00 PM
cofee me thinks ^
 
north korea runs on cobol and fortran right now i imagine
 
The great leader is all the energy they need.
 
The great leader accepts nothing but APL
 
The great leader is the worlds greatest programmer
1000% test coverage.
 
The great leader does more things than jQuery
2
 
9:01 PM
@Loktar ??? you kidding me
the best programmer's code needs no tests
 
Dude its my boy Kim
 
right the first time every time of course
 
His code auto generates tests
 
the great leader's code is the only code that is completely pure
 
The great leader doesn't need to write code to be a programmer, compilers just spit out programs because of his glorious might.
 
9:02 PM
@rwollr that wouldn't surprise me, most countries do.
 
what is "the great leader"?
 
kim jong un
 
@AwalGarg wow dude
 
@AwalGarg our dear leader and father Kim Jong Un of course.
 
@AwalGarg what isn't the great leader?
 
9:03 PM
if you lived in NK you'd be so dead :P
 
@Loktar and this isn't even a joke :P
 
yeah that's at least 3 weeks in the education centre
 
"that kills the Awal"
 
eh what?
 
@AwalGarg google the history of NK for a quick second
you'll understand
 
aw i got excited because that looked like a GALTV video from the thumb
 
What if they actually are the only free people on Earth and the rest of us are the ones brainwashed by propaganda?
 
The jokes still on them!
 
@BenjaminGruenbaum I don't know why, reminded me so much of this: youtube.com/watch?v=AoWexi-DWFQ
 
9:04 PM
good point
 
same tempo
 
user1596138
The Great Leader used PHP and it was good
 
thats actually kinda mindblowing
 
@someDoge :D
 
lolwut
 
user1596138
9:05 PM
Idk I'm just bandwagoning
 
what if NK is like this utopian paradise but it's so egalitarian the rich people controlling the western media make up everything we know about it
wooaoowaoh
 
@rwollr no, they eat shit. I haven't seen it, but I'm pretty sure that is true
 
too late
 
user1596138
@rwollr read that as "eageltonian" and laughed and then remembered I don't know what that's even from
 
@rlemon @Loktar but what does that guy have to do with coding?
 
9:07 PM
parks and rec maybe
 
nvm
 
@AwalGarg nothing, just the same thing as the chuck norris meme more or less
 
@Loktar you should lowercase the L in your display name.
 
@Loktar should do nothing of the sort.
 
thats true actually, how cool you are is directly inversely proportional to 1. username length and 2. use of capital letters
in IRC at least
 
9:09 PM
Anyone have a solid Chrome desktop notifications demo? This one's out of date: stackoverflow.com/a/13328513/1216976
 
what about IRL?
 
@rwollr wait, what now?
 
loktar looks actually more cool than Loktar
 
basically the same IRL
 
Its kind of a meme, the great leader stuff
but its based in truth lol
> In 1994, it was reported by Pyongyang media outlets that Kim Jong Il shot 38 under par on a regulation 18-hole golf course – including 5 holes in one! That score is 25 shots better than the best round in history, and is made even more amazing by the fact that it was his first time playing the sport. It’s said Kim Jong Il would routinely sink 3 or 4 holes in one per round of golf, and – lucky for the PGA – he has since given it up.
there are so many crazy things like that
 
9:09 PM
"what up Z" has about 3000x the street cred of "how are you today bartholomew"
 
user1596138
@TomW I hate when people don't pronounce the capital H at the end of my name as lower case h
 
...someDogeH?
makes it look Klingon
 
user1596138
Pronounce. IRL. I doubt anyone is reading the chat out loud but maybe
 
@basj: Is there anything really substantial going on here, or is this just butthurt on both sides? — Robert Harvey ♦ 5 mins ago
 
9:12 PM
@TomW I'm concerned by the fact that you know that :P
 
@BenjaminGruenbaum o_O another drama, already?
 
Same drama
 
owwait, when does meta not face a drama.. duh
 
FRIGGIN RUBY
FRIGGIN UBUNTU
 
@SomeKittens bartholomew detected
lil b doesn't go by bartholomew if that's any indication
neither does bart simpson
the two coolest male role models in my life
 
9:16 PM
@Zirak does the bot have a way to prevent rooms from freezing?
 
no
I proposed it for the music room
fork her, look at the nudge code, hard code in a timer?
best working solution I have
 
or run two bots who keep talking to each other
 
I was hoping I didn't have to run the bot myself just for this :( Unless you people actually got of your asses and made cap go serverside :) cough @Zirak cough :D
 
just use a setInterval with the bot's message command?
 
what's the CSS unit to style things based on font size, i'm blanking
 
9:21 PM
em
 
em or something
thanks
 
no, use two bots
 
em, en, pt, px, %
 
I don't want to run a bot and I don't want to keep intervalling it. I realize there is a lot of "I don't wanna" and not much PRing here :)
 
user1596138
lol eww nvm
 
9:23 PM
@PeeHaa then just write a script that does it with a user using the UI directly - that is change the content of the text area and .clicks "send"
 
@PeeHaa ask the guys on meta to have an instance of smokedetector run in the room. It never dies, and keeps blabbering.
 
@AwalGarg Doesn't that thing kinda flood the room with messages making real messages impossible to see?
 
user1596138
@BenjaminGruenbaum psh
 
@BenjaminGruenbaum I don't wanna :)
 
9:26 PM
@PeeHaa ignore the bot
I think a lot of PHP guys already have a terabyte sized ignore list because of the popularity of the PHP room, one more addition won't matter much ;)
 
Then don't :P
 
user1596138
giant... see edit
 
Yeah that is kinda true, still not an optimal solution
 
user1596138
function fireAntiFreeze(times, room) {
    var timeouts = [];
    for (var i = 0; i < times; i++) {
        timeouts[i] = window.setTimeout(antiFreeze, i*4000, room);
    }
}
 
@PeeHaa add a feed?
 
9:27 PM
Why 4000? That's way too early :P
Try 86400 * 1000 (a day)
 
@AwalGarg Does that prevent freezing?
 
user1596138
@BenjaminGruenbaum Ooh yeah... You caught me pasting the spam script ;P
 
@PeeHaa no idea
 
make a "big ben" bot that posts the time in england every hour
 
@someDoge sshhh, don't tell them rlemon is a script
 
9:28 PM
BONG BONG BONG BONG BONG BONG BONG BONG BONG
 
@rlemon Yeah that ben is totally fucking awesome!
 
user1596138
Just do SMBC Google Analytics to the rescue
 
user1596138
@PeeHaa It should? The feeds user is a real user sending real messages.
 
@PeeHaa no
 
9:31 PM
@PeeHaa I guess running a very simple anti-freeze bot from your own account on heroku would be pretty easy for a developer (considering you are super intelligent dev).
 
@AwalGarg I do have a python script bot thingy which might be able to do that
 
@PeeHaa yay!
even simpler would be to use a cron job and curl... if heroku would let you do that ofcourse :P
 
user1596138
@AwalGarg don't forget authentication
 
^ that
 
9:33 PM
@PeeHaa what?
 
user1596138
He might have me ignored lol
 
:P
It still needs to authenticate
 
@PeeHaa 'curl'
hit f12, goto network tab, send a message here, right click on the request, and copy as curl.
 
user1596138
@Peehaa github.com/Zirak/SO-ChatBot/blob/master/source/adapter.js#L29 // Zirak documented it pretty damn well
 
9:36 PM
@AwalGarg You still need the authentication
You cannot just copy the request
The requesttoken will change
 
eh? I am pretty sure it works... lemme try again
 
user1596138
@AwalGarg it will only work while that session is still valid.
 
@AwalGarg requestable.pieterhordijk.com try it in isolation
 
@PeeHaa I am a bit hesitant trying it there... for... reasons.
 
@someDoge That is only auth for the ws connection
@AwalGarg Add a password so it doesn;t show up in log
 
9:38 PM
test
 
You still need to login using a provider first @someDoge
 
it works ^ @PeeHaa
 
user1596138
Oh right... It just gets the fkey from DOM
 
@AwalGarg being a regular in both rooms, I can tell you that JavaScript has more noob flood
 
@AwalGarg Even when the token expires?
 
9:42 PM
@PeeHaa Would have to wait for the token to expire, to check that.
 
let me also dick around a bit
 
user1596138
Token is expired when token is expired. I can confirm lol
 
@BenjaminGruenbaum you called it. Basj's meta is a shitstorm now
Well.. was. Looks more clear now.
Voting took a huge swing I see
 
what's the best jquery tooltip plugin?
 
Thank you, recognition is always nice :D
 
9:44 PM
preferably one with speech bubble tips that follow the cursor
 
@rwollr I hate them.
 
@rwollr the one you write yourself?
 
not a regular use case
no feature creep thanks
next
 
you can ask for suggestions, but I don't think anyone here can really qualify one as 'the best'
 
k... got it.
 
9:46 PM
DA BES
 
> You must login to post
 
The best one is the one you write - because it does what you want and no more
 
@PeeHaa o_O
 
To the python mobile!
 
@PeeHaa I am no python guy, but are you using curl in python, or something python only?
 
9:48 PM
@PeeHaa Can I PATCH?
 
It's been a while since I looked into that thing
 
@PeeHaa we have code that logs in and posts in python IIRC. @copy wrote it.
 
what the hell
 
@PeeHaa owe up to your words and make it in php.
 
9:49 PM
yeah curl + php ftw
 
@BenjaminGruenbaum I kinda have a lib lying around which mimics users to login to several services
 
surely they don't really mean the package is named with like
a unicode superscript
are there unicode superscript numbers
 
yes
 
well surely that isn't the case
 
That moment you have soo many unfinished projects and just don't know what to do anymore :P
 
9:49 PM
why would they do this
 
@PeeHaa Ugh, in that mire right now
 
@rwollr lol wtf no way
 
@PeeHaa I would just let the room freeze, and open a new room everytime :P
 
@copy \o/
 
9:50 PM
moving all the old messages into the new room xD
 
I would use python-requests and beautifulsoup these days
 
@AwalGarg Up til now everything was not optimal, but that is just retarded :)
<3
 
ok turns out package management recognizes it as "qTip2"
 
haha good
 
@PeeHaa :D
btw, if you do make a anti-freeze bot, it could get quite popular since a lot of people would like to use it xD
@Benjamin that thread has an interesting vote count
 
9:56 PM
It does, it was at +9 with 0 downvotes at a time.
 
ahh. Looking at the edit history, it seems people upvoted it solely because of the way it was put. Now that things are more clear, so are the votes.
And the title is also very... weird "the right to speak a single word"...
well, next year when I would have to go to the android room, I wonder what would happen xD
 
-8
Q: Stack overflow exploit

MaddyHow to write an exploit for stack overflow? int vulnerable( void ) { char buf[100]; printf("Enter your Name: "); fflush(stdout); gets(buf); printf("%s" , buf ); }

lmao
 
lmao silly troll
 
The first commenter thought it was trying to hack the site
 
lol, he didn't get it
 
10:00 PM
we asked you to separate the two concerns. Bastardizing the original question wasn't the idea (at least not from me). If you really do feel strongly about it and want fresh feedback on a "fresh" question it will need to be asked in a new question. simple as that. you can't on main site ask a question about PHP then edit it to use Node after answers are posted. Same applies here, changing the scope of the question is not cool. — rlemon 16 secs ago
and with that!
 
ahahahaha
 
home time!
 
@SterlingArcher Kids these days...
 
@Basj thanks for the badge
 
you got da pundit badge
nice
 
10:02 PM
I have it on SO
now I have it on meta.SO :)
 
Lol, look what our favorite player is up to :D
 
See, I'm his favorite.
 
yay for you
 
@BenjaminGruenbaum screenie for me? It's deleted :(
 
Answer like 20 more questions and get 10K already :P
 
10:06 PM
It's hard to find a good question to answer :( lol
Plus I've been working too hard to SO Main lol
 
Java is dominating my work right now
 
Java is so much fun.
All other languages run by little girls.
 
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken
chicken
chicken
chicken
chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
 
(Yes, I get the ref and yes, I know that was not it :P)
 
10:08 PM
 
I was bluffing about the secret hats, but now I actually have one!
Hats must really like me.
 
4
A: Give an option to wear multiple hats

CompassThis is a slippery slope. First it'll be two hats, then three... and then before we know it, it'll be something like this... Edit: Link to the comments section in case you're lazy Attribution: Ashelang

 
Oh hey, isotropic.org... used to host an awesome dominion implementation until they took it down when the real one came out.
 
10:15 PM
Slightly off topic but ok
 
@user159870 I am not an idea
 
spoiler alert i ended up making my own tooltips
 
@SomeKittens You are not an idea but do you have an idea? ;)
 
I just realised Google drive is a pretty awesome way to share resources for a household app or something similar
 
@SomeKittens "SomeKittens" is an idea, actually.
 
10:17 PM
@AwalGarg p sure you can do that with server side mods
 
@AwalGarg No, they're kittens
 
@AwalGarg haha love it
 
@SomeKittens Example: Q: Any idea, who you wanna party with? A: Yeah, I have an idea: SomeKittens!
 
@AwalGarg In this case, "SomeKittens" is not the idea, the idea is "We should party with SomeKittens"
Saying "X is Y, therefore I'm right" makes about as much sense as a grown man calling himself "SomeKittens"
 
the best in the game
 
10:20 PM
@SomeKittens no. I am right. kthnxbye!
:p
 
0
Q: How to add an argument to an image src using JavaScript?

goatmealIn other words, how can I take an argument passed to a function, and place it in the middle of an src that is being defined in the same code? Note: Please no jQuery. Thank you. Here's my code... JavaScript: <script> var icons = document.getElementsByClassName("icon"); // All elements of the "...

 
-1 not enough jquery. — nicael Nov 20 at 16:58
 
X/Y problem? What is he trying?
 
ahahaha look at the post that comment is on xD
And what isn't working, other than the insane amount of arguments and the strange loop, it seems okay ? — adeneo 35 mins ago
lol
 
10:43 PM
@BenjaminGruenbaum pff
there can be only one anyway
 
@Loktar did they really report that he did that? ._.
 
@AwalGarg whats with the last answer it has for var i all messed up or am i missing something
 
That's the most glorious repo I've ever seen
 
11:03 PM
Goodnight and wish me luck, contract negotiation tomorrow
 
good luck @Jonathan
 
user1648409
Hi guys. Can anybody tell me why
else if (json["STATE"] == "MoveMessage") {
players[json["PLAYER"]] = {"POSX": json["POSX"], "POSY": json["POSY"]};
}
isn't working? :D
 
user1648409
it is already parsed
 
user1648409
i am trying to use an simple assoziative array in js
 
11:08 PM
@Shiuyin A) Always use triple equals over double
B) What does "not working" mean?
 
@SomeKittens What, why?
 
@monners I'm assuming you're asking on his behalf:
 
;)
 
2351
A: Does it matter which equals operator (== vs ===) I use in JavaScript comparisons?

Bill the LizardThe identity (===) operator behaves identically to the equality (==) operator except no type conversion is done, and the types must be the same to be considered equal. Reference: Javascript Tutorial: Comparison Operators The == operator will compare for equality after doing any necessary type c...

 
user1648409
@SomeKittens it simply gives "cannot read POSX on undefined" back after those lines posted above have definetely been run. So there was a player added accessible under player[tokenid] = {POSX: whatever, POSY: whatever}
 
11:11 PM
@Shiuyin can you create a sample example? (jsfiddle)
 
user1648409
hm, i could copy all the needed code there if you want :)
 
guys important question
 
user1648409
i just suck at js... java is my field :D
 
11:12 PM
@rlemon No, it's not natural. Seek medical advice
 
which to use?
 
The second one
No question
 
make it so
 
user1648409
@SomeKittens i just copied all js functions that are relevant to there :D
 
I like the 2nd better
 
user1648409
 
What sort of data are you expecting addOrUpdatePlayerData to be called with?
 
9 hours ago, by rlemon
user image
@Zirak did you see?!
 
hahaha, yeah
That's horrendously awesome
 
user1648409
the json object send via the websocket
 
user1648409
dont worry my server java part looks far better... im just horrible at js :D
 
11:16 PM
@Shiuyin Which looks like?
 
user1648409
looks something like this: "RECEPTOR:2983788d7d8sj8a787alsku8ogoas8d7g, TIMER:2837582735885, STATE: MoveMessage, POSX: 100, POSY: 100, PLAYER: 238958s7g8as7g83t825"
 
user1648409
however that depends on what type of message it is
 
add a console.log at the top of addOrUpdatePlayerData to ensure that the data actually is what you think it is
 
user1648409
brb :D
 
user1648409
and yes, it is what i expect it to be
 
11:22 PM
`
for (var key in statTooltips) {
console.log(key);
var elem = $('#' + key + '-stat-div');
elem.on('mousemove', moveTooltip);
elem.on('mouseenter', function(event) {
showTooltip(event, statTooltips[key]);
console.log(key);
});
elem.on('mouseleave', hideTooltip);
}
`
wow code formatting sure worked
alright whatever
 
He who cannot dance places his blame on the floor.
 
FAQ literally just says `code`
so i dunno how to interpret that for multi-lines
 
If only there were some sort of button that appeared to help with that
 
user1648409
@SomeKittens: is this
players[json["RECEPTOR"]] = {"POSX": 0, "POSY": 0};
actually valid js which will give me an array of players where players[tokenID] will give me an array of positions so i can access it with players[tokenID].POSX ?
 
@rwollr select text and ctrl+k
 
11:25 PM
oh wow can I not edit it any more?
 
@Shiuyin It's valid, it just looks weird.
 
what button could you be referring to
 
user1648409
then how would you do it?
 
@Shiuyin More like this: github.com/SomeKittens/SPACESHIPS
 
doesn't matter, basically statTooltips is an object literal with a few different keys for strings that the tooltip should display
showtooltip creates a new div with class tooltip and appends to body
uses event to position and statTooltips[key] to fill with text
first console.log(key) performs as expected, but the text is always the last thing in the object and the second console.log(key) always logs the last key
any ideas?
 
11:28 PM
bye
 
welp
 
user1648409
@SomeKittens: Thanks mate :)
 
No problem
 
so any ideas? i'm thinking some kind of trigger() shenanigans
or actually before i try that
let me just pull the string and try to pass the string instead of the object + index
 
11:39 PM
elem.on('mouseenter', function(event) {
	showTooltip(event, statTooltips[key]);
});
any better ways to write that specifically
GOT IT FINALLY
	for (var key in statTooltips) {
		var elem = $('#' + key + '-stat-div');
		elem.on('mousemove', moveTooltip);
		elem.on('mouseenter', {string: statTooltips[key]}, showTooltip);
		elem.on('mouseleave', hideTooltip);
	}
pretty
 
11:57 PM
> As soon as you enter a world outside of the designated holiday time frame, Santa will die instantly
 

« first day (1522 days earlier)      last day (3427 days later) »