« first day (1748 days earlier)      last day (3200 days later) » 

9:00 PM
I can now say I know a animal that is smarter than some humans I know
 
@SterlingArcher A chicken?
 
Orca, you fool!
 
Definitely smarter than php_purest.
 
2 tru
 
Hey, I know some neds who were fascinated by a door hinge. I'd say chicken.
 
9:01 PM
tru 2
neds?
ned stark?!
 
flanders
 
@SterlingArcher I think your autocomplete's threshold is too high
 
@JohnSnow your Lord Father was fascinated by a door hinge. That's your legacy, son.
@ElliotBonneville I'm broken
 
@SterlingArcher are you claiming to be @JohnSnow's lord father?
 
I'm his mom
 
@SterlingArcher You should see my mom
 
No, that would be Ned Stark, of House Stark of Winterfell
You peasant
 
His son is named Jon Snow
I'm JoHn Snow
 
@Nick well said, and well timed
YOU CANT HIDE FROM YOUR FATE LORD SNOW
 
9:04 PM
@SterlingArcher but. but. you called him son.
 
Urban slang, son
Suburban guilt, too
 
@SterlingArcher A prime example of a ned: youtu.be/bTcgCVsa-Pg
 
Drugs?
 
Sometimes. Mostly drunk to fuck.
 
That's how america fucks.. drunk.
We're so alike
 
9:07 PM
Actually, when the rich screwed over the highlanders, also known as the clearings, many Scottish people sailed over to America.
 
many americas sailed over scottish people
 
So if you're American, and have Scottish heritage, it's likely your ancestors were fucked with by rich land owners.
#tmyk
 
How 'bout irish?
Nah, there's no rich land owner in Ireland
 
Not so much,
There might have been some people running from the potato famine, but not many.
 
Hey now, my people suffered
They were treated like dirt when they immigrated to the US
 
9:10 PM
yea, all immigrants are
 
Who hasn't been treated like dirt in the US
 
me
 
except the first, which treated the native americans like dirt
 
I'm native born and I'm still treated like shit xD
 
@Nick I heard you could buy castles in ireland for $10mil
 
9:10 PM
Maybs
 
I smell a sitcom
> Room 17 buys a Castle!
 
@Luggage Ugh, save me...you were right about web forms screwing with my counts and controls :(
 
Downton Pub, only on PBS
 
I didn't say anything about 'counts and controls', but..
 
can we crowdfund this castle
 
9:11 PM
so. webforms is usable, and you are stuck with it, you'll be fine
 
@ʞɔᴉN probably, if you wanted to turn it into a museum
 
it's main problem is it tried to absctract way the way the web works, and that's a problem.
 
k so I can pitch in maybe $1k
 
I can pitch in maybe 6k
 
@Nick are you kidding me? I'm gonna live in it
 
9:12 PM
But that's from my retirement lol
 
I can pitch in a few mil. just not right now
 
@ʞɔᴉN Nobody is gonna crowdfun you a castle for fun
fuck typing
 
alright so far we got $7k + a few mil in the future
getting close
 
crowdfund me a pile of money
 
@Nick but it's so fun!
 
9:13 PM
I can donate a coffee cake
 
@Luggage Yea...I'm having a devil of a time with it. I'm almost tempted to just re-create the entire table via stringbuilders and a literal just to be able to hack it.
 
"Give me money"
 
no, stringbuilders will be a nightmare
 
@Luggage they werent too awesome to settlers either
 
Donate to the Sterling Archer Fund today
 
9:13 PM
should have developed dat technology.
 
@ElliotBonneville Do I get something in return?
 
StringBuilder sb = new StringBuilder()
pls
 
I haven't used webforms in.. 7ish years, so I won't be much help.
 
@Luggage I know, but it's a little less painful than dealing with this, haha.
 
heh webforms. Lordy.
 
9:14 PM
@CallumBarclay depends what you want \o/
 
I prefer classic asp honestly.
dat viewstate.
 
I had to touch webforms a good bit for the first few months at my last job
 
I have an asp 3.5 textbook on my desk currently
 
Then we moved to MVC
 
classic ASP is more of a normal template language than webforms
 
9:15 PM
@Nick I WISH I had 3.5.
 
I WISH I HAD A MILLION DOLLARS
 
@Nick 2.0 here, whoooooooo!
 
I WOULD BUY YOU A COFFEE CAKE
 
Curses, I can't find an iOS emulator for 8.4
Most recent is 8.2 :(
 
when is there gonna be an iOSX
 
9:16 PM
whoooooaaaaa iosx
#mindblown
 
they are already related
 
no u
 
@Nick hopefully never
 
"iOSX" takes too long to say...
 
"ios-ex" 3 syllables
 
9:16 PM
if you're shit an English, sure
 
iOUSX
 
win-dows ten
 
and sometimes Y
 
well, add the id number/version
 
WinX
 
9:17 PM
and it's a bit clunky on the tongue, idunno
"iOSX"
 
Win-dex
 
Lindex
 
no
 
omfg Microsoft dropped the ball so hard
They totally could have made Microsoft Windex
 
9:18 PM
Cleaning up all the windows
 
And instead of the paperclip, you have Windextor
!!youtube windextor
 
sauce for ignorant sheep
 
I went to a coffee shop because I got tired of working at home but now I'm just tired and working at a coffee shop.
except for I'm not even working because chat.stackoverflow.com.
 
go to a cafe
 
9:19 PM
lol
 
it might actually be different, but further research is required
 
> I will clean your soul
 
Dane Cook isn't funny at all
 
So you two share a common trait
3
 
#rekt
 
nick pls
 
pls nick
 
crl
are nick and reversed nick related?
 
no
 
I like to think of them as evil twins
 
9:22 PM
yes
 
Are we both evil?
 
Yes. Each one more evil than the last.
 
Nah, to be honest the only difference is one is missing a chromosome while the other has an extra
 
Like an evil recursive function.
 
9:28 PM
@SterlingArcher i am highly offend
 
@FlorianMargaine Fuck, I'm not sure now how to do /pkg/index/foo/insstall . I can't make it an amorphous file which you just execute.
I guess it'll have to be a file which runs pacman -S foo or something really lame like that...
That's really lame.
No, that'll destroy compat...unless a really thick wrapper is used.
 
What do you guys thing of new Edge?
 
This seriously hinders my plans...fuck.
 
hi all
I am very much not a javascript developer, but i'm trying to do something a little clever with SEDE; I don't think it's possible and I'm hoping to get a quick confirmation
I have a SEDE query that returns a bunch of links, and I'm trying to create a bookmarklet that will strike through all the ones that are currently deleted
I'm getting errors like this one:
> XMLHttpRequest cannot load stackoverflow.com/questions/5750696. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://data.stackexchange.com' is therefore not allowed access.
 
9:42 PM
lel
 
@mmcrae 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.
 
My research suggests that means that Stack Overflow is blocking this sort of thing on purpose
which is fine, failed experiment. I just want to be sure that's a correct conclusion.
 
@durron597 Not exactly.
 
@durron597 Rather, they don't explicitly allow it. You're bound by the Same Origin Policy (look that up), which is opt-out.
 
It's blocked by default, and a server needs to explicitly allow cross-origin access.
 
9:44 PM
Can what I'm trying to do be done?
 
You can however take a sideways leap through the StackExchange API, to which you can place calls: api.stackexchange.com/docs
 
Although, in order to determine if a question is deleted or not, you should use the API
@Zirak go back to reading the jQuery docs dammit
 
I've gotten this far:
 
Stop ninjaing
 
$.map($('#resultSets .grid-canvas a'),function(el){ return $(el).attr('href') }); which returns an array of links returned by my query
 
9:45 PM
@durron597 It's a bookmarklet?
 
@MadaraUchiha That was the plan
 
Where would you be running this?
 
Currently I'm just playing around in console
Just on my browser in chrome
 
Yeah, but where? Front page? chat?
 
This is entirely for my use only
SEDE page
Do you want the link?
 
9:47 PM
No, that's fine
So what you can do is ask the API for information about the questions you suspect as deleted
I think the API has an endpoint for asking about multiple questions at once, so you don't even have to poll repeatedly.
 
hmm, SO api is cool. has somebody written an app to return quickly downvoted questions for consideration as SO gems yet?
 
@durron597 You ask for a question, and if it doesn't appear in the results, it's deleted.
https://api.stackexchange.com/2.2/questions/20976570?order=desc&sort=activity&site=stackoverflow
 
@Zirak can you please look at the gist I posted
Should be pinned
 
@rlemon Remind me tomorrow?
 
10:00 PM
Also IO.xhr changed from finally to complete?
@Zirak but but... Fine
 
@rlemon Looking for .gif at the end is fairly unreliable
 
Got a better way?
Because I asked every one months ago and no one could do better without a second request
 
10
A: Is it possible to detect animated gif images client side?

lakenenI just wrote some JS that detects animated gifs. Works in most modern browsers except IE 9. Disclaimer: this only works if the domain origin of the image is the same as the page you are loading the script from. See the gist for the latest version of the code: https://gist.github.com/3012623 fu...

 
See the disclaimer
 
You don't need a second request AFAIK since the image was already cached.
@rlemon You already have the image as a DOM object
 
10:03 PM
Cors
 
33 secs ago, by Madara Uchiha
@rlemon You already have the image as a DOM object
 
let [ title, notice ] = this.legalNotice.split('\n');
return { title, notice };
 
You don't need to use XHR
 
can anyone beat that? ^
You can't destructure an array to an object can you
 
@phenomnomnominal Nope, looks fairly solid to me.
 
10:04 PM
@MadaraUchiha Okay now I'm here:
> $.get("http://api.stackexchange.com/questions/" + $.map($('#resultSets .grid-canvas a'),function(el){ var link = $(el).attr('href'); return link.substr(link.lastIndexOf("/") + 1) }).join(";") + "?site=stackoverflow.com", function( data ) { console.log(data) })
> Object {items: Array[3], has_more: false, quota_max: 300, quota_remaining: 277}
 
@durron597 Do yourself a favor, write normally (with line breaks and indentation), and uglify at the end when you have it working
 
@MadaraUchiha I'm doing all this in the console, lol
 
@durron597 Write in a decent editor, then copy to console?
Where "decent editor" = sublime text
 
YAYYYY! My recognizer generates parse trees now! :D
 
@MadaraUchiha "decent editor" = "so-so ide"
 
10:08 PM
@Purag Albeit wrong ones :P
 
awww, what did you try?
 
1+1
Gave me stuff with mult_exp and factor
 
yeah, the grammar is defined that way
check the source...it's a fairly stupid math grammar but it works. heh
to evaluate, I'm guessing you recurse as far left as possible, grab a token, return, check if there are other children, if so recurse, etc. evaluate when done recursing on children
 
@MadaraUchiha I tried to follow @Zirak's unformatted code plugin and use it as an example but this still does not work
the method never gets fired.
 
@MadaraUchiha so yeah while the grammar is weird, the parse tree is totally correct given that grammar :D
 
10:15 PM
@MadaraUchiha Okay I think I've almost got it but I have to go. thanks for your help!
 
10:47 PM
 
@CallumBarclay clicking makes the computer boot up faster too
 
@ʞɔᴉN I've heard mangling the space bar with your first helps it, also. Srsly, my primary school had an assembly just to ask the pupils not to push the space bar when it was starting up.
 
@CallumBarclay haha I remember those days
the emacs that would take literally 15 minutes to boot up
kids would be clicking and smashing on the keyboard
 
@ʞɔᴉN I lel'd making html documents when the teacher wasn't looking and the other pupils would think I was l33t as fuck.
 
hahahaha
 
10:57 PM
I thought I was l33t as fuck, too, so I appeared really confident writing stuff like harry smells
 
you'd probably get reported for cyber-bullying now
 
Can't get caught if I close the tab and the IT guy doesn't know about cache :) Obviously back then I had fuck all clue about cache.
 
11:12 PM
@CallumBarclay That is obviously how it works
 
es6fiddle.net/icqtj0ne this is my first attempt at a battle simulator
I have no idea about how to make the math work better, so I just guessed
 
@rlemon that's how I do my calc homework
 
you took calc?
HALP MEE PLX
:D
 
11:28 PM
well, re-taking haha
whats the problem?
 
updated es6fiddle.net/icqu299j forgot to give back life.
idk, just wondering if there is a better way to calculate the fight.
line 44
match
check out the code
 
not really
i don't think there's a more "elegant" way of doing what you're trying to do
 
is there anyone with a gold js hammer 'round? this edit keeps getting suggested and I lack the assurance that any course of action is better (rejecting or accepting) stackoverflow.com/review/suggested-edits/8992400
 
hm
 
rejected
 
11:35 PM
@FélixGagnon-Grenier not sure.. the edit makes sense but it would kind of break the first answer
 
it is not only wrong, but it is a syntax error.
 
the lemon has spoken
 
  someArray = {{name:"Kristian", lines:"2,5,10"},
                 {name:"John", lines:"1,19,26,96"}};
 
alright. thanks guys :)
 
this is a syntax error
it is just plain wrong
 
11:37 PM
lovely
 
damn
 
Oh, I think Ihaven't been clear. The original question had the syntax error, and the answers took it into account
 
anyone available to help me figure out something with my parser?
 
several subsequent editers removed the syntax error. Wouldn't it be supposed to include the original syntax error?
 
edge just started reloading every tab when I switch to it
lol
 
11:40 PM
@FélixGagnon-Grenier yeah..
 
@FélixGagnon-Grenier OP changed it to stackoverflow.com/revisions/10024866/4
 
@JoshLeBlanc so that's why it eats no memory whatsoever?
 
wasn't doing it before
 
right. op should have the last word
 
@FélixGagnon-Grenier the question isn't about a syntax error, it is a typo which OP corrected a while back.
so changing it back to the syntax error takes away from the original question
 
11:41 PM
Alright, this makes sense. Thanks for your time, have great days
 
I'm having an issue where my parser prematurely creates parse trees, but a later production rule needs a token that was already consumed to finish.
 
@JoshLeBlanc Is Edge usable?
 
(1+2)*3 parses fine
1+2*3 does not
 
PEMDAS :)
 
BODMAS :P
 
11:43 PM
DATASS
 
Data-ss?
heh
 
no :|
 
yes
 
yes
 
!!tell Purag google BEDMAS
 
right that's excellent, I have indeed taken elementary math
 
What does the e stand for, exponents?
 
lol
 
what is this strange and foreign acryonym
 
but, I'm creating a parse tree from a grammar
 
11:45 PM
so explain what your actual problem is and not "this parses fine, this doesn't"
 
purag you need to make a live math expression rendering engine
 
...
2 mins ago, by Purag
I'm having an issue where my parser prematurely creates parse trees, but a later production rule needs a token that was already consumed to finish.
 
!!s/engine/$1 in jQuery/
 
@CallumBarclay purag you need to make a live math expression rendering $1 in jQuery (source)
 
feck off.
 
11:45 PM
lol
 
I'mma pick a fight with Caprica, soon.
 
since it parse L->R, it grabs the + token early on. it creates a tree for 1+2 and appends to my partial parses.
 
so whats the conflict
 
but then it scans the * 3, and the 3 evaluates to a factor. that creates a parse tree like M -> F -> 3
then when the M rule is produced, the completion part of the parser sees that we can finish the A rule since the M has been finished. The parser then tries to make a parse tree, grabs the M and adds it as a child, then tries to grab a + from the scanned tokens, but can't find one
the + has already been consumed
 
@Callum Yeah. No addons though
 
11:48 PM
@JoshLeBlanc How else am I supposed to do maths, though? $.Math is the library for it, roight?
 
so the trick is...it needs to not create the parse tree for 1+2 and instead for 2*3, and treat that as the mult_exp at the end of the add_exp.
 
@Callum yeah it's the standard
 
I thought so...
 
@Purag parse for * before +
or am I still misunderstanding this? lol
 
no, that has to happen somehow, you're right
add_exp  : add_exp [+-] mult_exp
         | mult_exp
         ;
mult_exp : mult_exp [*/] factor
         | factor
         ;
factor   : '(' add_exp ')'
         | [0-9]+
         ;
here's the grammar
when it gets 1 + 2 it's definitely going to make an add_exp parse tree out of it
and then it hits the 3, which in the end evaluates to a mult_exp.
But when it has a mult_exp, it thinks it can finish the add_exp, and so looks for a token matching [+-]. but it doesn't exist
 
11:52 PM
oh
 
order of operations is virtually nonexistent. it has to be enforced by the grammar as far as I can tell...but I don't know how to write such a grammar
 
the mult_exp consumes the 2 is what you're saying?
my brain
 
right, it consumes a 2 which evaluates to mult_exp. then mult_exp can be used to finish the first add_exp. which contradicts order of operations, but the parser can't possibly know better because it's L->R
or, maybe my lexer needs to do the operator/operand binding
should my lexer be in charge of adding parentheses where they need to be? :o
 
so can't you run through all the tokens at once? like maybe separate them
 
yeah that's what I do. I have a tokenizer function that splits up the string into distinct entities. it gets 1, +, 2, *, 3.
but you have to run through it sequentially, and that's where the problem arises. because there is no explicit binding of operators to operands, the parser gets confused
because * has higher precedence than +, I need to, in some way, indicate to the parser that the 2*3 group is bound, and not 1+2
sorry for the lengthy description. but that's the problem statement.
 
11:56 PM
yeah I see what you're saying now
that's a tough one
 
night guys
 
Night cat!
 
es6fiddle.net/icqv78nn last run at it
next step is to turn this into an animated demo
 

« first day (1748 days earlier)      last day (3200 days later) »