« first day (1174 days earlier)      last day (3767 days later) » 

user1596138
4:00 PM
!!youtube Tannerite
 
user1596138
Pretty much the best explanation I can give...
 
Oh lol I had some mortars but nothing special. My buddy brought his magnum revolver and put in blanks, told me to shoot, and the kick was so strong I got clocked in the eye. I knew they were blanks too he told me the recoil was nasty lol
Went fishing, hunting, golfing, drinking, and woman-ing for the past week. I need to settle down, but the country life is so fun
 
user1596138
Hahaha very nice. Very very nice. Why were you using the scope if you were shooting blanks?? haha
 
I wasn't, it was just a rail system with a scope on it, and the scope is what clipped me
 
user1596138
4:06 PM
Weird. I've seen that happen to other people about once/twice a year at Thanksgiving and Christmas.
 
10
Q: SO should notify users of broken links in their posts

Tim KeatingIt would be really nice if SO scanned posted content and checked detected links, and then notified the user of bad or redirected links so they could verify links are still valid and/or fix them.

 
user1596138
@RUJordan Bets thing ever is to tell a new shooter to hold a 12 gauge about an inch away from there shoulder instead of actually holding it tight... Fun for annoying pansy cousins.
 
@BenjaminGruenbaum Not entirely the same question. Am I allowed to edit in my points?
 
no, you can answer though
 
@BenjaminGruenbaum Hmm good point.
 
4:09 PM
@Jhawins that's the thing I know how to shoot and all that and I wasn't even ready for this recoil xD
But I'm in love with shooting shotguns now. So satisfying to blast a target and pump the shell out
Totes badass
 
user1596138
Sounds like fun. I only have my bolt action shotgun now days, so it's cool in the way that it feels like a rifle from hell.
 
@BenjaminGruenbaum Done.
 
Bolt action shotgun? Plz link, that sounds so cool
Oh crap oh crap
Is it bad protocol to txt a girl almost a week after you got her number because you forgot you got it?
 
user1596138
> I've been vacationing in France for the week, sorry.
 
user1596138
4:16 PM
@RUJordan I don't remember the model. It was one of those "we found it in great grandpas old barn, ya want it?" kind of deals.
 
user1596138
Kinda a POS. I think maybe it was like Sears something? If you google it there's some online.
 
I'll have to look up modern models if they still make them
Bolt actions are nasty
 
@RUJordan Wow...
 
user1596138
@RUJordan I don't think anyone does. The housing for the bolt has to be extremely tough to deal with the recoil. A buddy had a rusty bolt action 410 and when he shot it once the handle on the bolt sheared off and he got hit in the stomach with the back of the bolt haha.
 
@AmalMurali -- WHAT IS THIS MAGIC?? — qwertynl 12 secs ago
 
user1596138
4:18 PM
(Or so he claims... Eh..)
 
Yikes, sounds kind of like what a combat slug does now
@qwertynl isn't that called a 'rollback'? (not 100% sure)
 
@RUJordan Yea, but how did he find the original post? It was ninja'd away
 
Magic? lol
 
user1596138
@RUJordan Hahaha yeah. I shot 2-3 of those once at my brothers fiance's house. The ones they had just did their own thing regardless of where you actually aimed more than 5-6 feet away.
 
Completely inaccurate, yet completely devastating damage lol
 
4:22 PM
@qwertynl: I have super powers! (I used Google cache ;) — Amal Murali 1 min ago
 
> Windows 8 Certification requires flash drive manufacturers to configure flash drives as fixed disks.
ARE YOU DRUNK MICROSOFT?
 
@ThiefMaster how much about the SO api do you know
 
This is the most stupid MS related thing I read in a while. It even breaks their own tool (like the one that makes a bootable usb stick from a windows setup image). And it shows the drive like a harddrive instead of a removable drive.
 
ARE YOU DRUNK THIEFMASTER?
 
@rlemon: Never used it
 
4:23 PM
jk hi, I've missed you brah
 
damn, I wanna parse every answer on SO... wondering the best way to do this (doesn't need to happen very fast)
 
Define "parse"
 
only returns X amount
I can page it, but I don't want to hammer the servers
 
You should probably hammer the servers
 
basically once a day I wanna collect.. say... 1000 ? 10000? 100000? answers and parse the body to check for dead links
if found post a comment letting them know
 
4:26 PM
@rlemon :-D
Yay!
 
How do you check if a link is dead?
(programmatically of course)
 
@RUJordan See what the header returns. Duh. :-P
 
Like a status code?
 
Yes
 
@RUJordan 404
 
4:27 PM
Not necessarily.
 
$handle = curl_init($link[0]);
curl_setopt($handle,  CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($handle);
$httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);
if($httpCode == 404) {
	echo "dead link: " . $link[0] . "<br>";
}
curl_close($handle);
 
Could be a 503. Could be a 500. Could be... lots of failures.
 
yea i'm just checking for 404
but I could check for the other codes as well
 
Why don't you check for everything except 200?
 
redirects are not broken
 
4:28 PM
@RyanKinal True true.
 
I'd say check for !== 200 (and possibly redirects... 304 and 302)
 
@RUJordan bc 30x are fine.
 
i'll just make an array of 'okay' status codes and check against those
 
There are a lot more ways to fail than there are ways to succeed.
 
@RyanKinal What is wrong with redirects?
 
4:28 PM
They're not 200's ;-)
 
@RyanKinal True.
 
if ($code == 304 || $code == 302) { check_redirect_for_porn(); }
 
I'm glad that function is built in to all major JS engines. It's so useful.
 
$goodhttpcodes = array(200,202,302,304);
 
301? What is wrong with a 301?
 
4:30 PM
fuck 301
 
user1596138
I would just look for 400, 401, 403, 404, 500 and 503.
 
user1596138
As bad codes.
 
So many status codes holy shit, I never knew that
 
user1596138
The rest mean some other shit is going on that can't be judged automatically.
 
@RUJordan Ummm. Are you serious?
 
4:31 PM
Yah, we only learned about 200 and 404 in college. He said there were "a few more" but I never looked past that
 
user1596138
Lol in college they only mentioned 200 and 404?!
 
I usually don't learn things until I run across them in a situation, because there's no way for me to know they exist until then
 
@RUJordan ... w t h
 
user1596138
Man am I glad I'm not paying for that ;)
 
Yeah, my entire Web Development concentration (my degree..) consisted of 3 actual web dev courses. lol
 
@RUJordan Wow... I just got a CS degree. I leanred javascript et al on my own.
 
@rlemon ew php
ew file_get_contents
 
5xx, 4xx are likely to be dead links
 
ew regex links
 
mainly 4xx, most 5xx could be temporary
 
4:33 PM
Ewww
 
Parse dat html
 
@rlemon what does compress.zlib do?
 
DomDocument was being a PITA so I just googled for a regexp
 
4430
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

mandatory link in that case :P
 
@qwertynl compression stream
 
4:34 PM
CQ.CreateFromUrl("http://api.stackoverflow.com/1.1/answers?body=true")["a"].Select(x=>x["href"]).AsParallel().Select(x=>using(new WebClient()){ ...
 
@qwertynl I wouldn't have been able to handle a raw CS degree. The math alone would have literally failed me out of school. So I learned from a buddy, myself, and this here chat.
 
@rlemon Python, BeautifulSoup and urllib … please
 
This is 99% of what you did, in C#
 
@rlemon Docs for it?
 
holy hell people, I know php. it was this or C#
 
4:35 PM
@rlemon No python? node?!
 
node would be acceptable, but I can do this in half the time with php
 
Node would also be ok, simpler API
 
I am also getting my head around node currently. Python is next
 
PHP really isn't that bad is it?
 
it's just worse than some alternatives.
 
4:36 PM
It is pretty bad. but It isn't unusable.
people just like giving flack when you use it
 
user1596138
There's a pretty decent HTML parser for PHP.
 
I wonder if jQuery has a plugin for PHP..
 
DomDocument was all I was aware of, but It bitched about malformed HTML
@RUJordan it does....
 
Forreal? That was a joke =x
no freaking way...
 
@rlemon ew
 
4:37 PM
@RUJordan NOTHING is a joke. Do not F*** with jQuery.
 
lol
 
i'm pretty sure there is one for Ruby as well
I know there is a node port
 
I mean I use jQuery for work <.<
 
Also in reverse: phpjs.org/functions :-P
Terrible...
 
4:39 PM
okay. lunch time
 
user1596138
At least php.js adds functionality to JS that wasn't there. What good could possibly come from adding anything about jQuery, which is only useful because JS lacks hundreds of capabilities and it is filling that void, where PHP has a function (a bad one maybe) for just about everything lol.
 
I've always needed to use sizeof() in my scripts.
 
user1596138
@RUJordan count()?
 
@Jhawins Have you seen how long the implementation of the of the phpjs functions are? There must be a better way to write them...
AHHH!
 
user1596138
@qwertynl Same with jQuery...
 
4:41 PM
Fuck count()
:P
 
stupid caps lock...
 
user1596138
@RUJordan what?
 
user1596138
!!> [1, 2, 3].length
 
@Jhawins 3
 
user1596138
^ == count()
 
Oh you thought I was serious on that one
Of course I know length, silly :P
 
@Jhawins phpjs's count also counts objects (i think)
 
user1596138
!!> Object.keys({something:"yea", somethinElse:"uhHuh"}).length
 
@Jhawins 2
 
user1596138
@qwertynl ^
 
user1596138
4:45 PM
But yeah, not recursively.
 
count([[0,0],[0,-4]], 'COUNT_RECURSIVE');
> 6
wat?
 
@Jhawins maybe
@copy 2 + 2 + 2 = 6
2 on the outside and 2 (foreach) on the inside === 6
 
@copy you can short hand php arrays now?!
 
@RUJordan #1 yes, #2 that was phpjs
 
#3 ty <3
 
4:47 PM
@qwertynl How would that number ever be useful? And why is that what should be a constant number a string?
 
@copy No idea how it is useful at all. I am just explaining where the number came from lol
 
Also, infinite loop if you pass a = []; a.push(a);
 
@copy No it isn't. Not in js at least.
 
user1596138
So why can't you just do Object.keys(obj).length for length?
 
@copy wth. My computer does not freeze, but you are correct that it is an infinite loop of empty arrays. odd. I never knew that could appen.
 
user1596138
4:51 PM
If you're going to count recursively just run a loop and see if any of the values are objects, if so run the same function on them basically.
 
@Jhawins bam, infinite loop
 
user1596138
Basically
 
Also here:
  for (key in mixed_var) {
    if (mixed_var.hasOwnProperty(key)) {
      cnt++;
      if (mode == 1 && mixed_var[key] && (mixed_var[key].constructor === Array || mixed_var[key].constructor === Object)) {
        cnt += this.count(mixed_var[key], 1);
      }
    }
  }
 
user1596138
Obviously don't let that happen..
 
Why does this.count work?
It was not defined as this.count
 
user1596138
4:52 PM
@qwertynl it was added to object
 
user1596138
If this is an object it's there.
 
@Jhawins Where?
I see that nowhere here: phpjs.org/functions/count
 
@qwertynl on this
 
user1596138
Obviously somewhere lol I'm not digging through that bullshit,
 
4:53 PM
@JanDvorak see phpjs.org/functions/count < where?
@Jhawins LOL
 
is there any performance difference between function declarations and function expressions?
 
@Jhawins niether am i :-P
 
user1596138
@qwertynl USE YOUR DEV TOOLS
 
user1596138
Oops. Caps lock
 
@hunterc no.
 
4:54 PM
@hunterc They are functionally different (if you are talking abt var f = function.. vs function f()...)
 
yea i am. i know function f(){} gets grabbed in the first pass through and added to top level scope where function expressions are joisted set to undefined until assignment occurs. just trying to figure out when to use each
 
I always just define my functions 1st to avoid confusion...
 
I use function declarations to denote const
 
i always do too*. i understand the function f() allows me to use f() even before i have defined f() in the file from top bottom. but if all functions are declared at the top is there any real difference?
 
0
Q: To Rollback or Not to Rollback

Amal MuraliConsider the following events: A relatively new user asks a question The question gets 2-3 downvotes The OP gets irritated by the downvotes and changes their question to something like "this site sucks" In this case, is it appropriate to rollback the edit? Or should it be flagged for moderato...

 
4:57 PM
-1 no explanation of answer — RUJordan 24 secs ago
The time for mercy is over >=(
but CODE lol
 
@RUJordan :-)
 
No freaking way, that's how you do italics here?
 
lol noob
 
I've been trying to figure that one out for weeks
Wait.. isn't this italics too?
 
*italics* or _italics_
 
5:00 PM
ALIASES
 
`code`
 
THIS IS SPARTA!
 
**bold**
 
I knew ** ** was bold, but I didn't know * * was italics
and --- --- is strikethough
 
strike
 
5:01 PM
_ital_ __bold__ OR *ital* **bold**
 
fuck
 
@RUJordan Did not know that one.
 
> quote
newp
 
> quote
@KendallFrey :-P
 
@qwertynl cheating
 
5:03 PM
@KendallFrey So is your face ;-)
 
I wish we had spoilers too
 
Well @RUJordan to do a spoiler on a post do >! spoiler
 
14
Q: Why doesn't chat allow spoilers?

Kendall FreyStack Overflow allows spoilers in the form: >! SPOILER Example: Why doesn't chat support them? They would be quite useful, especially for rooms that are frequently off topic and often have dicussions about movies etc. Many other sites, like Arqade, would make even better use of spoilers.

@qwertynl Thats >!
 
@KendallFrey What? :-P
 
user1596138
RangeError: Maximum call stack size exceeded
 
user1596138
5:08 PM
Ugh
 
user1596138
Oops
 
@Jhawins :-D
 
user1596138
>! this is for spoilers?
 
DON'T SPOIL IT OMG
Side note: kettle chips are absolutely delicious but offensively noisy.
 
@RUJordan flagged
LIAR
They taste like salt...
 
5:15 PM
Not the lightly salted ones :D
 
@Jhawins ya. but not in chat.
@RUJordan :-) better :-)
 
Plot twist: the ones with sea salt are the best
 
Pssst... "kettle chips" refers to the way they are cooked, rather than how they are seasoned.
 
stahp D:
 
hammahtime
 
5:20 PM
I got scared for a second, thanks for the backup
3
A: How to grab element you are hovering over?

RUJordanquerySelector only returns the first index of the array of elements you would get back from that method. To get all li, use querySelectorAll("li") and loop through the elements array to add eventListeners to them.

I would like to thank @rlemon for teaching me that :)
 
hi
for some reason node -v outputs nothing in terminal
I have the latest node installed:
WebstormProjects # sudo apt-get install node
Reading package lists... Done
Building dependency tree
Reading state information... Done
node is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 143 not upgraded.
 
wth: stackoverflow.com/review/suggested-edits/3711801 look at the reject reason...
 
5:36 PM
lol
2
Q: Square bracket notation and scope in JavaScript module pattern

FraserI have been working with the module pattern in JavaScript and have a question about scope and square bracket notation. Please consider the following simple example. (function (module) { function myMethod(text) { console.log(text); } module.init = function (name) { ...

Interesting
 
2
A: Square bracket notation and scope in JavaScript module pattern

qwertynlYou can put all of your methods into an object. function myMethod(text) { console.log(text); } var methods = {myMethod: myMethod, ... }; module.init = function (name) { // here I want to do something like // eval(name)("hello"); // using square bracket notation. if(matho...

@RUJordan :
0
Q: What is the point in setting something equal to itself?

qwertynlI just saw this question into which someone passed window.Module = window.Module || {} into a function. For example: (function(module){ // do something with module })(window.Module = window.Module || {}); I understand that if window.Module is undefined (or false for that matter) than {} w...

 
I commented. I think it's just a conditional statement to ensure that an object is passed into the IIFE
 
I've started a repository for my "Pandora for Video Games" project... no code yet, just design docs in the wiki. If anybody wants to comment or collaborate, let me know: github.com/ryankinal/gamora/wiki
2
 
Haha I updated my question to explain what I thought was happening.
 
@RyanKinal "Pandora for Video Games"?
Like streaming free games or something?
 
5:52 PM
No, more in the "Algorithm for suggesting games you might like" sense of Pandora
 
Portal.
 
lol
 
What's your plan for input? User types in games they play? Steam library integration might be sweet.
 
That's a pretty cool idea, I would have no idea where to start other than getting a database of game info together (genre, broad tags, specific tags, developers, etc)
 
@Retsam That would be pretty sweet. I'll look into it.
@Retsam But mostly, yeah - user input/typing. Actually, it would be more like Goodreads than Pandora, I guess.
 
5:55 PM
You'll probably want certain characteristics to be "special". Like, rating/language for example. I don't care how well a game matches other games I play, if it's not in a language I speak
 
@RyanKinal damnuonthatshit
 
@Retsam Ooh, language. That's a good one.
@RUJordan ?
 
@rlemon Hahaha, what the hell? XD
@RyanKinal Awesome!
I'm interested, but I don't think I'll have much to contribute
 
Well in your last part, I would still pass Module into the function anyway, no? Isn't that always a good pattern? — qwertynl 5 secs ago
 

« first day (1174 days earlier)      last day (3767 days later) »