« first day (1643 days earlier)      last day (3321 days later) » 

9:00 PM
Normally if it's not GET you'd just inject something in the page in the server which you can check for anyway.
 
If it's not GET, you likely came in through a form (of some sort).
Is there an attribute that tells you what form you came from?
 
@BenjaminGruenbaum That's a good idea for my purposes actually. It's an MVC project, so I could just check a hidden tag somewhere to see if it says true or false, then go from there.
 
user1596138
@EternalLearner Wait you can do that..?
 
Looks like there is no way
@EternalLearner yeah, that works. Also, I have no idea what an application architecture has to do with anything but yeah.
 
If you have control of the server, you could embed it (either in a meta tag or in a header, maybe).
 
9:02 PM
Can't read headers
Except cookies, you can put it in a cookie - that said I'd just inject it in a page. I'd link to @SecondRikudo's question but it's php.
 
@BenjaminGruenbaum Yeah, I didn't see that SO question. Thanks for finding that for me.
 
Sure thing
 
user1596138
I mean if you have access to the headers you can figure it out
 
Morning
 
9:03 PM
@BenjaminGruenbaum SSDD
 
I always feel just a little bit dirty connecting to an airport's free wifi
 
Although this is an interesting case where AJAX doesn't help you, and you need to directly embed it in the page.
 
you gon git a viiiiiiirus
 
damn wow
so remmeber that sex offender I caught who worked here?
 
@monners I always do it on a vm in a different operating system, I have alt accounts for everything for public internet - different gmail, different SO etc.
 
9:04 PM
 
@Loktar actually, I don't, but that sounds like an interesting story.
 
#1 news story, dude got caught...again
 
@Loktar for sake of argument, let's say no
 
@BenjaminGruenbaum ah yeah I was looking up his SO username because he said he was banned
 
@Loktar what for this time?
 
9:05 PM
so I was thinking he had to be a real clown to get banned from SO
then I found he was a registered sex offender
 
@BenjaminGruenbaum That's a good idea
 
@Loktar wow.
 
@Loktar he was on SO?
 
yeah sex with minors under 14 :/
 
I knew you worked with him
but shit man
 
9:06 PM
Is that how you caught him @Loktar?
 
@rlemon yeah he was just a minor user
5
 
Also holy fuck.
 
@Loktar ba dum tiss
 
@Loktar pun... intended?
 
oh jesus
 
9:06 PM
@Loktar That is so wrong
 
@rlemon topkek
 
lol <- I'm going to hell for laughing... but it was a good pun
 
no I didnt even mean that.
 
But oh so right
 
Best pun in a long time
 
9:06 PM
that is hilarious though I unwittingly said the best thing in a while.
 
So, how'd you catch him?
 
@rlemon we're all going to hell and we all have rap-books, not just rap sheets
 
just found him on the sex offender registry, it was one of the Google results
 
Trap baited with Chuck-E-Cheese?
 
apparently the contractor company we used didnt do background checks..
 
9:07 PM
@ssube I have an entire rap album
 
@Loktar wow, fuck
 
@Loktar sounds like grounds for not hiring from them again
 
heh yea
 
@Loktar Did he work with children?
 
That's how we found out a creepy guy in one of my classes at college was a sex offender
 
9:08 PM
and maybe filing a complaint against them
 
@SecondRikudo no thank god
 
@SecondRikudo in software, aren't we all children?
 
we certainly don't act like adults
 
@ssube Don't be so childish
 
9:09 PM
Well, to be perfectly fair, even registered sex offenders need to work somewhere, you know
 
@monners you're not the boss of me
 
@SecondRikudo not sure about that
 
As long as it's not with their target "audience", I don't think I mind that much vOv
 
9:09 PM
@ssube Unless we decide we kill them all, that's fine by me too.
 
@ssube That's it Go to your room!
 
But if we don't, they do need currency to maintain their continued existence.
 
@SecondRikudo I'm of the opinion that capital punishment is only appropriate in response to sex crimes, and is the only appropriate response there.
 
@ssube My opinion is that the removal of one's testicles is the appropriate punishment in response to sex crimes.
 
9:11 PM
@ssube I disagree, what makes you think it's an appropriate response?
 
@ssube Chastity belt for life
 
@SecondRikudo What if the perpetrator is a woman?
 
How is it worse than murder?
Rape and sexual crimes are horrible, but either we believe people can change or we don't.
 
@ShotgunNinja Not sure. But we'll solve a large percentage of the problem by implementing that :P
 
Also, there's the fact they might not be guity after all.
 
9:11 PM
@BenjaminGruenbaum Because the victim has to live with the crime for the rest of their life. It's ongoing torment, unlike murder.
 
@ssube in murder the victim's family have to live with the crime the rest of their life too.
 
@BenjaminGruenbaum Yeah, a guy I knew has a record as a sex offender because one of his ex-girlfriends reported him as having raped her.
 
Like murder, it robs someone of their free will, but unlike murder, they have to endure it forever.
 
@ssube murder victims families be like, meh
 
I strongly believe that people who are impolite to public transport personnel shouldn't be allowed to reproduce
 
9:12 PM
@monners seconded
 
@monners thirded
 
@ShotgunNinja statutory rape is the worst way to get charged
 
@BenjaminGruenbaum that's true, but there's a difference between someone not being around and permanent torture.
 
@monners But I also believe that public transport personnel who are impolite to people shouldn't be allowed to work in the field.
 
Capital punishment isn't effective. Also, you're not sure it'll stop them.
 
9:13 PM
@SecondRikudo Well, duh. But the former is far more prevalent than the latter
 
@ssube if someone murders your wife that's permanent torture.
 
@KendallFrey it wasn't statutory; the girl didn't like him anymore, so she filed a false police report on him.
 
@ssube tell that to the family of a murder victim
@ShotgunNinja oh crap, even worse
 
@BenjaminGruenbaum And if someone murders your ex-wife?
 
Did anyone else notice there is no age field anymore in the profile?
 
9:14 PM
@KendallFrey I dunno. As someone who takes the bus a lot. I've seen my fair share of drivers I'm more than willing to punch in the face.
 
@BenjaminGruenbaum yes
 
@KendallFrey yep. It was expunged, but they don't take your name off the sex offender's list
 
yep
 
@KendallFrey good.
 
like, it was registered as a felony before the case was thrown out, and he's still legally considered a felon and a sex offender.
 
9:15 PM
@BenjaminGruenbaum IMO, there's a difference between someone else suffering the loss of a loved one and a person having their freedom and humanity forcibly taken.
 
One thing to consider is that sexual abuse victims have a possibility of recovery, through therapy. Good luck trying that with a murder victim.
 
@ssube your humanity isn't taken. Rape is a horrible crime but eventually, people live on.
 
@BenjaminGruenbaum some people can, sometimes.
 
@KendallFrey Ahem... Haven't you heard of the good Dr Frankenstein?
 
@ssube "having their freedom and humanity forcibly taken" -> murder
 
9:16 PM
@KendallFrey Well...
 
it's a rough issue.
 
@ssube most people can, those who don't are a tragedy indeed but it's not worse than murder.
 
The question is, okay, you have a given situation
 
@KendallFrey They don't suffer it, though. That's the difference in my mind.
 
One person is dead.
The other person did it.
How do you proceed?
 
9:17 PM
Yeah, thanks guys. Here I am waiting in an airport and ya'll had to go and get all deep'n shit.
 
Do you want to even attempt and getting the other person back into society?
 
@monners where are you flying?
 
@SecondRikudo uh, punish the other person?
 
@BenjaminGruenbaum I thoroughly believe it is, on the grounds that the victim has to live with it. With murder, other people live with it.
 
@KendallFrey I'm talking longer term
 
9:17 PM
@BenjaminGruenbaum Adelaide. Not far.
 
Murder is less direct and I think that makes it a little bit less harmful.
 
@SecondRikudo Everyone deserves a second chance
 
@ssube so you'd rather be murdered than raped?
 
@BenjaminGruenbaum absolutely. If I'm dead, I won't wake up tomorrow and remember what happened.
 
@monners nice :)
 
9:18 PM
@KendallFrey And what if he walks out of prison, after you spent a crapload of taxpayer money to educate and help him, and he kills someone 5 minutes later?
 
@ssube exactly, you won't wake up tomorrow... your life will be over.
 
@ssube So if you classified murder as a crime against the people that didn't die, it gets worse?
 
@BenjaminGruenbaum correct, which won't bother me at all, since I won't exist anymore.
 
You can recover from rape, but murder just ends your life.
 
@SecondRikudo I didn't say a free second chance
 
9:19 PM
This is all heavily influenced by my belief that there is no afterlife of any kind.
 
@KendallFrey Your definition of "free" and my definition of "free" are different.
 
If I die, I'm dead and have nothing to worry about, aren't suffering, nothing like that.
 
@BenjaminGruenbaum I take it you've never been to Adelaide?
 
@ssube as someone who worked with sexual abuse victims, a lot of them eventually recover. A rape often robs people of a part of their personality, and often years of their life. A lot of people who go through it eventually do recover though. Some don't and those people are as I said before a tragedy - but I'd rather have a fighting chance than not.
@monners nope, never flew that far :D I plan on visiting the whole region some day - I heard it's beautiful.
 
@BenjaminGruenbaum You can skip Adelaide. There's really nothing there except my family and a few sheep.
 
9:20 PM
A dead person can't make recovery.
 
The other difference is that rape is never justified, where as death can be (not necessarily murder -- death).
 
@ssube that's a poor argument if I ever saw one
 
We have a whole category for accidental death and justified death (self-defense) and all other kinds.
There's no such thing as "accidental sexual assault". You gotta mean it.
 
murder can't be justified, neither can rape. death can be justified, so can sex
 
@KendallFrey Eloquent as always :P
 
9:22 PM
@KendallFrey If someone attacks you and you kill them, their relatives suffer just as much (maybe worse, knowing their loved one did a bad thing).
 
@ssube there's no such thing as accidental murder, murder implies intent.
 
Afternoon
 
Murder, manslaughter, self-defense, and natural causes all have a similar effect on the bystanders, despite 3/4 not being murder in the strict sense.
 
@BenjaminGruenbaum What if it was a case of mistaken identity? You intended to kill something, it just turned out to be a person?
 
@ssube right, which is why my argument here is that murder is worse than rape, and not for example... manslaughter.
@monners if your killed them by doing something you knew would kill them that's still murder.
 
user2620028
9:23 PM
what the hell did i just open chat to see
 
@BenjaminGruenbaum I see what you're saying, but I don't think there's a particularly strong case either way.
 
@HatterisMad discussion of capital punishment as a way to punish sex offenders.
 
@BenjaminGruenbaum I know, but that's not what I was implying. Just playing Devil's Advocate.
 
@BenjaminGruenbaum What if something was going through your trash scattering it everywhere, and you thought it was an animal, so you put rat poison all over your trash?
 
Think hunting accident
 
9:24 PM
@ssube well, all I'm saying is that capital punishment - especially irreversible capital punishment is never a good idea. Of course, if I had a child my opinion would change.
 
Given my experience with folks on both sides of both crimes, I stand by rape being worse and murder (of the state-sponsored form) being the only way to handle it.
 
@SecondRikudo that's manslaughter, not murder.
 
user2620028
@BenjaminGruenbaum Definitely for it, almost had to enforce it myself once in fact.
 
@BenjaminGruenbaum There's intent to kill there...
 
@SecondRikudo not a person
 
9:25 PM
You just didn't know it was people you were going to kill :P
 
@SecondRikudo I just said that!
 
2 mins ago, by monners
@BenjaminGruenbaum What if it was a case of mistaken identity? You intended to kill something, it just turned out to be a person?
 
user2620028
@BenjaminGruenbaum Ex girlfriends father raped her since she was 12 years old almost every night.
 
Throwing away poison is totally legal.
 
@SecondRikudo manslaughter means exactly that - you did something that caused the death but you did not intend to kill.
 
9:25 PM
Ah, thanks :P
 
@HatterisMad that's... disturbing and sad.
 
!!wiki second degree manslaughter
 
@monners The Gods of Wikipedia did not bless us
 
@BenjaminGruenbaum that seems like a tricky one, though, since they weren't supposed to be going through your garbage in the first place.
 
@monners second degree murder?
 
9:26 PM
If I throw away peanuts and a hobo with a peanut allergy digs through my trash, I'm not going to jail.
 
nope, manslaughter
 
user2620028
@BenjaminGruenbaum Yep. There were many days that i had to go out to dinner with him, among other things and so many times that i came close to just ending him on the spot.
 
@ssube Well you might be, just not for that
 
If I throw away rat poison and a hobo with a rat poison allergy digs through my trash...
 
@ssube There are laws regarding disposing of dangerous substances
Not sure if rat poison is included, though.
 
9:27 PM
@SecondRikudo it also depends on the country
 
user2620028
I highly doubt it
 
Normal rat poison, probably not. The good stuff needs a license to buy.
that's why we still have mice at my house :(
 
Ok, I'm off to find coffee
Peace
 
user2620028
Ironic because your gravatar....
 
9:29 PM
I need to go home, get drunk, and catch up on GoT
 
Folks, what will happen if I have multiple $(document).ready(...) handlers on the same page? Are the all going to get executed one-by-one, or only the first one, or is it undefined?
 
okay so is there a better way to do this?
 
They'll all execute when the document's ready
 
@NickAlexeev one, by one.
 
@BenjaminGruenbaum Thanks!
 
9:39 PM
Sure thing.
 
I also found this post.
 
var student = Students.findOne({ _id: studentId });
var cursors = [
  Students.find({ _id: studentId }),
  Teachers.find({ _id: { $in: student.teacherIds} })
]
if(student.thumbnailId) {
  cursors.push(Thumbnails.find({ _id: student.thumbnailId }))
}
if(student.userId) {
  cursors.push(Meteor.users.find({ _id: student.userId }));
}
// ...
return cursors;
 
@corvid Looks like a case of bad data modeling with Mongo.
Consider using a relational database.
 
> date = new Date()
Thu Apr 16 2015 14:10:25 GMT-0700 (PDT)
> var d = date.setDate(date.getDate() + 1)
> d
1429305025880
> d.getDate()
TypeError: undefined is not a function

Can someone explain why this doesn't work?
 
@SecondRikudo not an option unfortunately (I tend to prefer postgresql)
 
9:44 PM
@corvid The way I see it, at the very least, your Thumbnails collection is redundant.
Thumbnails should just be a under a Student document
It's a 1:1 relationship
 
user2620028
unless there are multiple thumbnails per student
 
@ApathyBear typeof d
 
@HatterisMad In which case, it seems like he wants to get them all, so why not an array under the Student object?
 
user2620028
@SomeKittens hehehe
 
The only case you actually need another collection in mongo is many-to-many.
 
user2620028
9:47 PM
@SecondRikudo yeah im onboard with that thought process
 
@SomeKittens I see. I used Date(d) and it showed the original date object, not the modified one. Why is the third line returning the original date number instead of the modified one?
 
@ApathyBear spec
In cases like this, I go to MDN, and if that doesn't answer my question, I go to the spec
 
Word, nice tip
 
"Oh, the spec says X"
Everyone thinks: You're a level 2 JavaScript supergenius
Reality: You read a webpage
so it's a great way to impress people (and also learn things)
 
never underestimate the ability of stupid people to think that reading is a superpower
 
9:58 PM
!!s/a w/a really hard w/
 
@phenomnomnominal "Oh, the spec says X" Everyone thinks: You're a level 2 JavaScript supergenius Reality: You read a really hard webpage (source)
 
user2620028
It is a super power
 
I giggle ever time I read the word "member" in our code. I need to grow the fuck up.
 
> Warning: This method must not be called from JavaScript.
Thanks, MDN
 
no excuses, @phenomnomnominal
also, I'm out. Adios folks
 
10:08 PM
Speculation that KSP will be released on April 27 or possibly 28
 
I have a slow scrolling website, what would be the functions to search for... I'm trying scroll!
 
function makeXMLRequest (method, url, cb) {
  var xhr = new XMLHttpRequest();
  xhr.open(method, url);
  xhr.onload = function () {
    cb(null, xhr.responseText);
  };
  xhr.onerror = function () {
    cb(xhr.responseText);
  };
  xhr.send();
}
better?
 
10:22 PM
don't name your cb cb :P
 
@phenomnomnominal It's a lead-in to using promises
 
@phenomnomnominal done is so much nicer
 
I tend to agree.
 
10:38 PM
Someone bested The Skeet stackoverflow.com/q/29670421/617762
 
72 Upvotes in 13 hours?
 
@SomeKittens @Zirak that's pretty ridiculous
Would it be against the the stackapps "rules" to develop a website that found questions with "thanks in advance" (and other annoying greetings) and let you quickly edit them?
 
@royhowie no
 
Do you think that could be useful?
I sometimes go through stackoverflow.com/… and just edit/delete/flag questions
but I'd rather not have to go to the last page, select the next available question, etc. etc.
 
10:58 PM
~111.8m
people reached
 
dear god…there are—quite literally—an endless amount of thanks in advances
 
I want "use sanity"; now
 
I agree, screw people who thank you in advance! What a bunch of annoying f*cks! What is their problem amirite?!
Ah wait, that's me
:(
 
heh. It's because it pollutes the questions with pointless sentences.
When reading a question to see if it's similar to your problem it's nice to not have to read thought a bunch of pointless exposition and thanks.
The people are well-meaning, of course.
 
4
Q: Help us identify micro-privileges for top users

Jon EricsonAre you familiar with tapas? These are little appetizers invented in Spain that people enjoy while talking and drinking in the cool of the evening. What makes them so great is that you get a wide variety of tastes without getting fed up. Not long ago, I asked for suggestions of a new 30k...

 
11:13 PM
i like the thanks.
but I am Canadian...
 
it's just clutter
and makes the question harder to get to
 
They don't bother me when they are short, but yea.. clutter.
 
"thanks" at the very end of a question doesn't make the question harder to get too
long drawn out stories and pointless banter does throughout
 
yes. That no where near the problem of a pointless story before the question
But as a database of problems, it's not needed.
 
for sure
 
11:15 PM
It makes sense at the time, but not when reading through old questions.
 
> Hello I am second-year student in computer science class...
 
^ pointless
> hello I'm new to JS
^ pointless
 
@SecondRikudo That pdf is old, by the way. Any new information on that topic?
 
> pls excuse i not speak english
the worst
 
@SomeKittens
 
11:16 PM
@SecondRikudo Give a share of the ad revenue
 
now THAT belongs on questions.
 
@rlemon I'm going through questions right now and some people obnoxiously put "thanks in advance" as the first line
like wth
 
then remove it
I don't disagree with it not being there
I disagree with how big of a problem "thanks" is to a questions understanding/readability
 
@copy post it :)
 
annoying? maybe, hindrance? no.
 
11:18 PM
@rlemon it may not be a "hindrance," but the site is more aesthetically pleasing without all the clutter/greetings/etc.
I love when a question is terse, clear, and well-formatted.
 
this isn't a forum, which is where a lot of users trip up
 
The site would be more aesthetically pleasing if there were native dark themes for chat and main.
 
@rlemon like how dark
 
#242424
 
hm.. I'd like to create functions with my own prototype and don't want to extend Function.prototype.
 
11:22 PM
@rlemon I like that one. #333 too
 
#111 all the way baby
 
this may sound odd, but I'm trying to port a c# libarry that uses extension methods on a certain function signature
 
@Luggage Make them functions that take functions as arguments
 
Right now I'm just giving my function to a constructor
yea, that's basically what I have, now.
 
is there a way to easily check how many votes I have left today?
 
11:27 PM
@SterlingArcher imgur.com/dw1tObq
 
@SecondRikudo html5rocks.com/en/tutorials/es6/promises (you've probably seen it, but I figured I'd link)
considering my recent experience with the NAA flag, is it applicable to this post?
 
That looks like a (shitty) answer.
 
wanna trade stomachs? I think mine is broken today.
 
To an equally shitty question.
 
@Luggage but last time I flagged a terrible answer as NAA, it was declined.
 
11:41 PM
naa = not an answer?
if so, then it doesn't seem an appropriate flag because it IS and answer. just not very useful.
 
@Luggage the question should be nuked, but the accepted answer tick is preventing that.
plus, it's hardly an answer, with or without the link (the question is off-topic since it's asking for an external resource)
 
okay?
 
idk they're just so awful… I think I'm going to stop removing these. I've removed 200 of them in the past hour or so
 
11:56 PM
@rlemon that's so metal it can't be melted by jet fuel
 

« first day (1643 days earlier)      last day (3321 days later) »