« first day (1746 days earlier)      last day (3203 days later) » 

2:00 PM
you can see a square as
 
S-------
|\
|  \
|    \
-------E
S = start point, E = endpoint
 
right
 
so, click, activate startpoint, when moving mouse (E), use its position to find out the horizontal and vertical length. Then use that to draw your square starting from S
 
@KarelG the chips in your avatar doesn't fit the rest of the image
 
2:03 PM
that can work
 
@Neoares belgian food & beverage culture stuff
 
chips are from belgium?
 
no, but we have a large french fries culture towards those french people
it's a Spanish invention btw
 
lol rly?
I'm from spain
didn't know P:
do you know "churros"?
 
2:06 PM
no
 
this is from spain too
 
CHURROS
MY LIFE BLOOD
 
it's typical at 8AM when you end the party
 
> including ants
 
2:06 PM
the party hard P:
@JoshLeBlanc do you like them?
 
10/10 would fill with my man juice.
 
heh @ dutch wiki : "churros, sometimes pronounced as spanian donuts"
 
They're so good. I bought some in France. Paid like 3 euro, and the guy gave me like 30 covered in nutella.
 
posted on July 28, 2015

Fair warning. You’re going to hate this one. I want to stop pushing the web forward for a while. I want a moratorium on new browser features for about a year or so. Recently I’ve been having serious doubts about the whole push the web forward thing. Why should we push the web forward? And forward to what, exactly? Do we want the web to be at whatever we push it forward to? You nev

 
Counter argument: Push the web forward faster
 
2:09 PM
but why
 
haha @ "moratorium" ... yeah look to the explosion of js libs lately ...
 
30 churros covered in nutella?
 
THE YEAR IS 2025. JAVASCRIPT FRAMEWORKS OUTNUMBER HUMANS. SENTIENT TODO WEBAPPS SCOUR THE EARTH, HUNTING THE REMNANTS OF HUMANITY.
3
 
@KarelG donuts have nothing to do against churros
 
@KarelG Oui
I gained much weight in france
 
2:11 PM
i know, that's why i said "heh @ wiki"
 
Largely due to those 30 churros
 
so cheap
or small
 
0
Q: Using Joi to validate custom objects

user1692342I am trying to use Joi (https://github.com/hapijs/joi) for validating my object. Is there way to check if the key of my object is an instance of a specific class? var schema = Joi.object().keys({ id : newId() }); var id = new newId(); Joi.validate(id, schema, function (error) { return er...

 
They were fucking huge
My girlfriend was certain I was about to die. Bought them from a sketchy street vendor
Might have lead poisoning
 
@rlemon that yellow pill/twinkie latex costume requires an explanation...
 
2:12 PM
lead poisoning in snack food ?
 
Not quite that huge
 
they cut that piece into churros :d
 
If you cut that into quarters, they were probably the length of the third one from the middle
 
@Neoares where did you get a picture of my shit
 
2:13 PM
!!tell KendallFrey google kendall shit
 
Server error (status 500) occured (message probably too long)
 
TIL kendall stomach is a frying pan, since he drops fried stuff
 
what Q_Q
 
too long indeed
 
@phenomnomnominal LOL wth
thats awesome
 
2:14 PM
ikr
 
Hi team , How to select an element using JQuery based on the 'Href' value
<ul class="nav nav-tabs nav-justified staffNav">
<li class="">
<a style="height: 42px;" class="navbar-inverse staffNavTabs" data-toggle="tab" href="#dept_4417"><span class="equalizer-inner" style="display:block;">Executive Team</span></a>
</li>
<li class="active">
<a style="height: 42px;" class="navbar-inverse staffNavTabs" data-toggle="tab" href="#dept_4419"><span class="equalizer-inner" style="display:block;">Finance Department</span></a>
</li>
 
ctrl+K
 
UNFORMATTED CODE; GET 'IM, BOYS
 
u broke the ctrl+K chain
flagged
 
guys, can you write a single command to a shell without opening it directly?
 
2:16 PM
@corvid explain
 
I recognized that as soon as i posted it
sorry about that
 
@corvid <command> & in bash
 
who the hell just flagged that?
 
you can edit it @Alundrathedreamwalker
 
please don't flag unformatted code, the bot handles it
5
 
2:16 PM
@Alundrathedreamwalker do you know how to style an element in CSS based on the attribute? Same thing
 
.
 
stop spamming flags
 
I am trying to build a meteor application. Meteor has to be running. Then I have to open meteor shell and pass the command "electrify" to build it. Just having some weird problem with shelljs to manage it
 
Hey guys can you check this question stackoverflow.com/questions/31678762/…
 
I just said I was going to flag Nuck Digger for breaking the ctrl+K chain
 
2:17 PM
One person does not a chain make
noob
gtfo
 
but but
people was typing it noob
 
i need to select the li element and change it's class to 'Active' based on the value of the inner href
something like this
$('.staffNav li href').addClass( 'active' );
 
Write out the logic that you need in english, and we will put it into javascript.
 
but not sure how to do the href vallue
 
@Alundrathedreamwalker you're looking for the attribute selector
 
2:18 PM
Otherwise, I'm not clear on what you want
 
[href=whatever]
 
@Alundrathedreamwalker $('a[href="yourhref"]')
 
$('.staffNav li [href]')`
attributes go inside of square brackets
 
$('.staffNav li a[href="yourhref"]').addClass( 'active' );
this should do it
 
aye
something like that
 
2:20 PM
it will look into the .staffNav div and get the li that has the href='yourhref' and then change its class to 'active'
?!
 
it won't change the li
it'll change the a
 
i need ot add a class
 
@Alundrathedreamwalker google "attribute selector"
 
K
thanks
the href is what i was looking for
 
yes
that is an attribute
so you want to select by an attribute i.e. attribute selector
 
2:22 PM
is there any javascript/ajax geniuses here that can try and answer my question? stackoverflow.com/questions/31678905/…
 
@MatthewSmart Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
document.querySelector() === $()
 
why does an li have an href attribute? That makes no sense
 
@Neoares not quite
 
@NickDugger i am working on a legacy code
 
2:22 PM
That makes no sense
 
@MatthewSmart why has that image a pading-left:200px;?
 
never would you have put a href on an li
 
inheritance is a bitch
 
it doesn;t belong there
 
2:23 PM
why?
just curious
 
because href is for anchor tags
or link tags
 
@BenjaminGruenbaum Something you might be interested in meta.stackoverflow.com/questions/300378/…
2
 
what if I want clickable lis?
 
@JonClements Great :) Thanks
 
@JanDvorak janus pls
 
2:25 PM
@Benjamin just the way I tend to look at things... but all feedback welcome - would be good to have canonical link of some sort relating to chat moderation
 
I'm adding a comment :)
 
@Neoares what do you mean , what image?
 
@JanDvorak you script em
throwing an href on should get ignored
 
@JonClements Like Martijn mentioned, you should format it as a Q&A
 
so, data-href?
 
2:27 PM
@MatthewSmart the first one you put. But it was cause it has text at the left
 
@JanDvorak no, use semantic markup
 
data-href if you want to store the URL to make javascript use to make the browser go to? Sure
 
don't hack in other attributes because you're using the wrong element
 
it's been a while that i got the answer that i have looked for, that is not on page 1 of google search result ... (ended on page 3)
 
@MatthewSmart "I have a table that looks like this: <image>"
 
2:28 PM
@ssube that is? <li><a>?
 
like madara wrote, like martijn mentioned, you should format it as a Q&A ok?
 
that's not very semantic
 
Janus, what is the point you're trying to make?
 
@JanDvorak a, button, whatever the case may be
making the li the link is weird
 
@JanDvorak Why do you want to click them?
 
2:29 PM
what if it's also a list item? Say a menu item
 
Is it to move to another page? It's a link
 
there should be an <a> inside of an <li>
 
Is it to make something happen on the page? It's a button
 
^-- like navigation menus
 
pls
 
2:29 PM
yeah <a> inside <li>
 
@Cedric Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@MadaraUchiha or move to another part of the page. That's a link as well.
 
lol
 
Uh... huh
 
2:32 PM
holy fuck whoever is the flag happy hipster needs to stop!
 
HAMMERTIME!
 
this is getting ridiculous
 
Is no 10ker monitoring the socket log?
 
Is there someone who can see who flagged what? (Can't the mods see that?)
 
no, this is hammertime @rlemon
 
2:33 PM
@AwalGarg The data was removed from there
 
@JohnSnow only while the flag is active
 
@JohnSnow Mods can see that, but only if they catch it in real time
 
which is it no longer
 
I see
 
@MadaraUchiha ow :(
 
2:34 PM
no clue about flags; I don't use them
Not enough rep to be aware of them even
 
@JohnSnow lucky bastard
 
Given a process, can you get a socket it has to connect a server to?
 
@ssube I see what you did there
 
aw, and that pun wasn't even intentional
 
I was so excited to see flags... for about 2 hours
 
2:35 PM
From how I understand flags work, they are broken. All 10kers should have a userscript to ignore the flag counter anyways, and all sane people should have a userscript to hide the flag link anyways.
 
Do people flag a lot?
 
depends
 
It seems so
 
yes and no, but also maybe
 
-2
Q: What is the best way to get military time from a date?

Jay BowmanI'm using javascript and I need to get military time from a date object.

 
2:35 PM
Or atleast a userscript to ignore flags from other rooms.
 
@Cerbrus Instructions unclear. Closed browser ta
 
@Cerbrus:
'SIR, ' + (new Date()) + ', SIR!'Cerbrus 1 min ago
3
 
best answer EUW
 
no spaces! military people don't break :D
 
2:36 PM
what is military time?
 
@MadaraUchiha Unclear instructions, tab stuck in penis
 
that answer by 14ker :D
 
Downvote for repwhoring xD
 
@Cerbrus I love when I see Q's like this and click through to their profile and see "full stack developer"
 
"Look at me being pretentious :P"
 
2:39 PM
edits profile
 
@rlemon I think "full of himself developer"
 
@Cerbrus and being wrong
 
!!define full stack developer
 
@towc No definition found.
 
Meanwhile I am feeling more and more how much I suck. I'm expecting to be fired by the end of the week D;
 
2:39 PM
what is a full stack developer? I've heard that a lot of times
 
:O
 
it's like a programming boss?
 
... I MISSED A DAY!
 
@Neoares not a real thing
 
WHAT THE GOOD FLYING CHEESE CURD
4
 
2:40 PM
@rlemon NOOOOO
 
@rlemon WHERE?????
 
I've missed days by going on chat but never on my profile :/
 
@rlemon for the achievement?
 
18
Q: Is the Twitter API *really* RESTful?

jmar777Along with half of the web developer community, I've been struggling to really and truly grok the REST style. More specifically, I've been trying to form some opinions on how practical a pure RESTful architecture really is between a web browser and an application server. As part of my learning ...

how did that not get closed?
 
@Neoares no I had that long ago
 
2:40 PM
so what
 
I had over 600 days consecutive
missed the 19th
 
:o
 
no clue how, I was on the chats
 
D:
 
bug
 
2:41 PM
The chats don't count
 
THEY SHOULD
 
I AGREE
 
:(
 
submitted to gemsfromstackexchange :D
 
2:41 PM
Most of the people on the chats can't count, so why should the chats?
 
I LOVE CAPS, LET'S KEEP DOING THIS
 
@rlemon chats don't count
 
I had 80 days under my hood and then I only went on the chat one day :(
 
@AwalGarg link?
 
You have to perform an actual action on the site
 
2:41 PM
@JanDvorak awaiting moderator approval
 
@MadaraUchiha an actual action?
 
@MadaraUchiha Visiting your profile counts
 
of the ~1500 days I've been on so, I've only missed 43 days now
 
I know the ShitSOSays Twitter account
 
@ElliotBonneville comment, vote, answer, ask, etc.
 
2:42 PM
@AwalGarg I mean the site
 
Heh, undelete votes on that military time question
 
guys, I also had some pretty bad news yesterday...
 
nvm
 
I got prescribed a cheese-less diet 0.o
 
2:42 PM
@Shmiddty I still haven't thought of a good GIMP for your new pic :/
 
it was a really sad moment
 
> visited 299 days, 2 consecutive
 
btw who wants a chrome/ff plugin to submit a screeny (with options to hide personal stuff/votes) to Gemsfromstackexchange? I can write one real quick but only if patrollers of the site really use it.
 
> Member for 1 year, 5 months
 
@rlemon 25 missed out of 1433
 
2:43 PM
visited 596 days, 32 consecutive
Might get as far as 100
Last time, I missed a day at 80-something -.-
 
I don't even go on the site anymore, I just live in the chat
 
visited 1117 days, 16 consecutive
 
> visited 1471 days, 2 consecutive
 
can you do request with a REST API?
 
min/max ftw
 
2:44 PM
so it counts as visit?
or something tricky?
but no cookies on REST ~.~
 
I bet the api doesn't count
 
you could do it with node request and a cookie jar
 
not the SO API
but a REST API
 
@Cerbrus reminds me of this debacle
 
sudo crontab -e
 
2:45 PM
almost deleted... again.
 
@Cerbrus I bet it does
The mobile application is based on the API
 
@rlemon: no re-open votes yet
 
eeep... visited 888 days, 107 consecutive, I need a break
 
Going the right way
 
@Cerbrus nope, check the history
its on its way to deletion again
(which is good)
 
2:46 PM
Sudo... sudo... SUDOWODO!
 
@rlemon The first thing that came to mind upon reading this message is a gilly suit. Haha
 
Why can't they just lock that question?
 
@rlemon: no re-open votes yet, this round.
 
this is one of my favorites:
 
2:46 PM
so lets hurry and get it deleted!
 
So integer overflow: is it ever a good thing / can it be used beneficially?
 
is there a linux program called wodo? cause it would be funny
 
@rlemon Added mine. 3 more votes
 
@AwalGarg that's great
 
@Neoares It would indeed XD
 
2:47 PM
what needs to be deleted now?
 
Looks like it needs 3 more votes
 
2
 
251
Q: How can sun.misc.Unsafe be used in the real world?

pdevaOf course the Unsafe class is undocumented, but how can I use it in a real world scenario?

 
@ElliotBonneville all your questions
 
2 more
 
2:47 PM
that's an awful question
 
Oooooooh
So close
 
> Can everyone list the things I can do when I do what they explicitly said not to?
 
@nick </3
 
wait
 
2:48 PM
so many things wrong
 
it is at ten
 
Nice
 
It took 11 though
wth
 
it takes 11
 
2:48 PM
huh, only 4 or so are from this room
 
strange
 
@ElliotBonneville <3 always and forever
 
@rlemon Nope, 10
 
dead
 
@Cerbrus damn wrapping
 
2:48 PM
I had over 600 confirmed kills
 
yeah, there's 10 there
 
Hehe
 
but I did see it at (10) and still open
 
l2countn00bs
 
refreshed and it was closed
 
2:49 PM
Aye
 
@rlemon deleted/closed status won't change until you refresh
 
any away, on my way home
 
UX bug
 
Nite, guys
 
nick at nite
 
2:49 PM
@ssube but that was after a refresh (technically clicking on a link)
 
@NickDugger k tough guy
 
@rlemon It should take Math.max(Math.min(10, sum(question, allAnswers) / 20), 3)
 
in halo3
 
@rlemon recent ajax nav change mebbe?
 
@nick change your name to ɹǝƃƃnp ʞɔᴉN
 
2:50 PM
@NickDugger is the tough guy, he toughed your mom in Halo 3
 
i have more kills on my stattrak tec 9
@Shmiddty oh god
 
I have more kills on my strange huntsman
 
i even tried to highlight that backwards
 
@ElliotBonneville Damn, I'm looking for a strange huntsman :(
 
shouldn't @nick change his nick, since he's already upside down?
 
2:51 PM
@MadaraUchiha you want mine?
 
@MadaraUchiha I did, I did - just call it a brain burp
 
@ElliotBonneville Steam handle?
 
@JonClements I call those "brain farts"
 
rexicon
 
@rlemon I was being PC :)
 
2:52 PM
@nick I will change my name to Nick, and you can be ʞɔᴉN
 
(because my first steam avatar was an icon of a t-rex)
 
fart isn't PC?
everyone gets gassy
 
!!urban pc
 
@JonClements I was being MAC >:)
 
@Neoares pc politically correct
 
2:52 PM
:o
 
-2
Q: how can i edit a value in one js file and it can be updated in another js file

Collinwood Johnson<script> document.write( '<h1><font color=\"##FF0000\" size=\"+2\">\n' ); document.write( '<marquee bgcolor=\"#FFFFFF\" scrollamount=\"12\"onmouseover=\"this.stop();\" onmouseout=\"this.start();\"><a href=http://www.xe.com/currencyconverter/#><aimg src=\"./United_Kingdom.jpg\"><img src=\"./Aust...

 
yes I also thought about personal computer
 
omg guys, somebody used the marquee tag! in the 2000s!
 
Well - tbh - I'd hardly expect a talking to about saying the word "fart" - but "brain burp" is quite a nice alliteration :)
 
2:53 PM
Does it take as long to propogate username changes as it does for avatar changes?
 
@ssube dafuq is that
 
@ssube How ottful!
 
@ssube Lol @ the suggested edit
 
@madara Hmm.. I think I get what you mean by "you have to unlearn things" when it comes to JavaScript. My architecture is a bit flawed :/
 
ok well the username is going to take a while I guess
 
2:55 PM
@BenFortune didn't even realize there was more text to the right
 
@BenFortune suggested edit should be to delete it
 
whoa I forgot how much a strange huntsman is worth, it's like $20
I'm rich :o
 
@ElliotBonneville Sent friend invite (hope it's you :P)
 
@nick mine has changed
 
2:57 PM
@MadaraUchiha gotcha
 
@rlemon Jesus Christ!!
 
Ew, TF2
 
@Neoares Gandhi!
 
That game is mighty fucking hard to play IMO
 
there are a lot of pro players on tf2
 
2:58 PM
heyzeus chreesto
 
my bro has like 2000+ hours, he makes it look easy
 
yes
 
@ElliotBonneville Have a look at my inventory, do you see anything you like?
 
lol, I have 120 ~
 
@ElliotBonneville TF2 is probably the most fast-paced FPS I've ever played
 
2:58 PM
I have like 1k hours in CS:S, on my old account though
 
TF2 is bad
it used to be good
until hats
 
@Neoares 403 :P
 
until hate
 
I have ~550
 
@Nick Why do you care about hats?
 
2:59 PM
I anti care about hats
 
@MadaraUchiha He's a hatter.
 
because they don't have Dolan hat
 
I don't think it was hats; but I agree that TF2 isn't as good as it used to be.
 
@BenFortune rejected
 
hats distract from important flag capturing work.
 

« first day (1746 days earlier)      last day (3203 days later) »