« first day (1376 days earlier)      last day (3572 days later) » 

5:00 PM
@mrzepka .appendChild
 
Thanks! I found "insertBefore" but that wasn't exactly what I was looking for
 
two ip's hammering my router right now
 
Probably ziglet
 
83.170.73.249 and 74.125.201.84
wait
that first one isn't right
I wrote a 7 ?? fuck I can't even read my own handwriting :P
249
 
I ddos'd a website once... I was young, and ignorant, and it was all over an april fools joke. I was an idiot
 
5:07 PM
Who was it that logged zigi's IP?
 
he did :P ha
and it isn't the IP he outed as his on the meta post
one is in the uk
one is from mountain view
lol
 
can someone tell me how to read regexes?
 
both are hitting random ports on the router a few hundred times a minute
 
@rlemon wait Zigi did what?
 
@AwalGarg left to right
 
5:09 PM
outed his own ip in the meta issue.
 
Jhawins tracked it, he highlighted which were his in the logs.
 
@Mosho no I mean, how to understand what they mean?
 
Everyone in this room is welcome to my IP.. I wasn't aware those were secret :P
 
Shog deleted the post but you can still see it meta.stackoverflow.com/questions/266407/…
 
5:10 PM
!!tell AwalGarg google regex
 
@Mosho I tried it already. I seem to have some success with making them, but I wanted to see some examples trying to understand them for a better understanding. But I can't "read" them. no tut found to do it as either.
 
@AwalGarg regex101.com
 
5:13 PM
That has everything you need to know about regexes, plus a bit more.
 
if you paste a regex into that, it shows you details on what it matches in english
may be easier to work with
 
taking a deep look thanks guys
 
@jAndy Congrats
 
@KendallFrey umm, just to confirm, does it have anything to do with the software they are promoting to buy at the top? I don't have any $$ right now.
 
@AbhishekHingnikar Pruned
 
5:15 PM
@Zirak ywould u mind filling a secure form ?
 
@AwalGarg no
 
thanks :)
 
u can leave address blank :P ..
 
They make good regex software. They make good regex tutorials. Unrelated.
> Extra Extra Small (Female Only)
whoa sexist
4
 
5:19 PM
@Zirak looks like an official clip, got a little boring towards the end.
 
@BenjaminGruenbaum She's an interesting singer
 
I'm a sexist, and I'm Extra Extra Small.
 
You're a sexy extra extra small
 
Not many of those exist
XXL is the new sexy
 
5:29 PM
yum
XL men are hawt
 
!!s/men/boobs/
 
@KendallFrey XL boobs are hawt (source)
 
!!s/boobs/manboobs/
:c
 
user1596138
I would hate to be one of the tech guys working for Kim Jong-Un
 
one mistake = entire family gets sent to prisoncamp
 
user1596138
5:39 PM
> Go tell them to remove the video of me dancing
But sir... That's not how it works
 
user1596138
You are dead.
 
Are they still planning to declare war on the US over that movie?
 
a la the Dictator
 
I hope we go to war with NK
that'd be fun
 
5:41 PM
define "fun"
 
Honestly if there's any modern war you could justify it'd probably be that one...
 
My understanding is the main opposition is China; they like having North Korea because they're a safer neighbor than a Western country in China's view.
 
@zirak I don't
 
@Retsam read that answer from Quora
 
5:46 PM
I feel like these are the exact problems the UN are supposed to solve.
 
The UN is supposed to solve problems?
I thought they just held dinners and wrote strongly-worded letters
 
Aren't they supposed to tell nations that they think problems are solved?
 
and wear blue hats
 
Most of the world is like "Hey, this despotic and oppressive government is a bad thing.", China's like "Yeah, but that'd be inconvenient for us", UN's like "Don't look at us."
 
What's the best way to subtract two dates? Moment.js?
China has UN veto power
 
5:51 PM
date1 - date2
do you really need a library for that
 
yea
jQuery all things
$(Date.now() - (new Date(dateString)).getTime()).get(0);
 
user1596138
@rlemon wut
 
@Jhawins nvm
 
jQueer all the butts
 
user1596138
lol ok. Was someone dosing?
 
5:56 PM
one of those ip's is a freenode address and is doing a lot of requests in a short time period on about 3 dozen ports
it is causing my router to lock up
 
user1596138
@NickDugger How did you gain access to the other attacker machines?
 
could just be the router is a POS
 
user1596138
@rlemon That log is still public on my server if you want to see if it's someone from this room? Only people from here and Meta would be logged. But doesn't sound like a big issue
 
@Jhawins I didn;t we just had multiple people doing it at once.
it was semi-organized
 
5:58 PM
@user3867638 Refresh the page, it should be solved
 
$.fn.subDate = function(date) {
    return (new Date(this.selector)).getTime() - (new Date(date)).getTime();
}

var diff = $('02.02.2014').subDate('01.01.2014');
 
You shot a puppy? What the hell, man?
 
That looks like a Mass Effect parody.
 
5:59 PM
what up tho
 
@WalrustheCat 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.
 
user1596138
@SterlingArcher Bro I push start and the puppy is GONE
 
my javascript array is populated (with websockets), but it's being treated as if its members are undefined. HALP
1
Q: firebug shows populated javascript array, but claims members are undefined

Walrus the CatI'm using websockets to push javascript objects into an array. Watching expressions, I can see that the array is populating just fine. It's full of my objects. I have a setTimeout loop running that checks the array for new objects, and does something if they exist, and something else if they d...

 
I'm not gonna play flash games at work (says while reading game informer...)
 
user1596138
6:01 PM
@Sterling how the hell
 
@Jhawins you simply can't move the mouse at all except to click start lol
or hit keyboard keys
it's very annoying lol
 
user1596138
lol yeah that sucks
 
@WalrustheCat jsfiddle dat yo
 
on it boss
 
0
Q: Return array of promiseArray objects in Ember

user1933169I try to return an array that is filled with promiseArray objects. The result of this array should be shown in a handlebars template: validModels: function() { var plannable = this.get('model'), models = this.get('models'), promise, promises; pr...

 
6:04 PM
okay, cat. :o
 
it's gonna take me a little while because websockets....
 
oh yeah
damn
 
codepen is fun
 
is it just not showing up?
 
6:05 PM
I'm finding out
 
have you tried out other browsers like Chrome?
 
we talking about the array or jsfiddle?
cause as far as the array goes... everything is there.. .it has members... my objects, but when i actually want to use them "var myVar = myArray[0]", it throws exception myVar is undefined
 
the array
ooh
maybe just put your code in your question
maybe your computer just needs some tender lovin'
 
hobophobic
 
user1596138
6:10 PM
 
user1596138
off-topic
 
Is red bad? I'm thinking red is bad.
 
@retsam yes haha
 
user1596138
I apparently live in just about the least happy state there is.
 
user1596138
> Fort Wayne and Indianapolis are also near the bottom of the happiness list, with Indianapolis scoring as the 6th most unhappy city with a population larger than 1 million.
 
@jhawins right there with ya bud.
 
user1596138
@retsam that's you!
 
If you do Math.random(255) does that give you a random number between 0 and 255?
 
@Jhawins Sauce?
 
6:11 PM
Yay!
 
!!> Math.random(255)
 
user1596138
@SomeKittensUx2666 Linked a few down
 
@KendallFrey 0.9695855409732775
 
obviously not
 
user1596138
@Mr.Hargrove Hey! Another one. So far it's just me and @retsam in Indiana that I know of here
 
user1596138
6:12 PM
Where you from?
 
@jhawins found another one of us then, FW here.
 
@KendallFrey I looked it up on MDN and only found something for the random with no parameters
 
user1596138
@Mr.Hargrove Really? We'll have to meet up then. I'm in cc
 
This does seem to be evidence against the Dimitri Martin theory on the relation of culture and state shape.
 
user1596138
Will be at Glennbrook tonight probably in FW
 
6:13 PM
@mrzepka That's because it doesn't accept parameters.
 
@jhawins CC?
 
!!> Math.random()
 
@mrzepka 0.32253761020725147
 
OH SO ITS BETWEEN 0 AND 1
 
user1596138
6:13 PM
@Mr.Hargrove Assuming you meant Fort Wayne, Columbia City is only 25 from you and I figured you'd get the acronym.
 
I thought it was 0 or 1
 
!!> Math.random() * 10
 
@NickDugger 9.53748564298877
 
thats me being an idiot
 
6:14 PM
and not reading the docs
 
@jhawins yeah, I should have since I do some work there :p brain fart.
 
@NickDugger 9.474697138912019
 
@Jhawins it is coming from holmes.freenode.net
is the IP
 
user1596138
@Mr.Hargrove Cool lol. Weird, the closest member I've met was 3 hours away so far. You're 20-25 :P
 
@jhawins yeah 20mins away lol.
 
user1596138
6:15 PM
What do you do? Assuming web dev
 
@jhawins I do work for the gov there, networking and sysadmin work.
 
@NickDugger @KendallFrey thanks to you both!
 
@jhawins web dev for a lawyer firm there.
 
Mosho is the closest I've met.
I've spoken to Anna Lear when she lived in Waterloo but she moved ( I never actually met her )
 
user1596138
@Mr.Hargrove Cool cool. I'd tell you who I work for but you'd know who we are, and I'd rather not connect that for a local in a room where I am much less than proffessional ;P
 
6:17 PM
otherwise Kendall is close
 
How do I add spacing between boxes that are lined up in-line?
 
@jhawins np, understandable
 
@mrzepka margin
 
@rlemon gracias
 
user1596138
Our office is out here in Columbia City, but we are a Fort Wayne business.
 
6:18 PM
@SomeKittensUx2666 woa!
 
user1596138
Now, next tell me that you have a motorcycle.
 
how did I not know there was a image search API
 
@jhawins I wish hahah
 
user1596138
@Mr.Hargrove Damn. Nobody here that rides is competent lol so I just ride alone.
 
@BenjaminGruenbaum best algorithm to generate a random string of x characters, characters being [a-zA-Z0-9]?
 
6:19 PM
So I have a small problem with something I"m doing. I have 1000 boxes (number doesn't matter) and they're displayed inline. HOWEVER the last box is spaced differently than the rest
 
@jhawins maybe if I had the money I would haha (definitely would) :p
 
@FlorianMargaine define "random"
 
@BenjaminGruenbaum "whatever"
 
loop from 0 to x, and append random chars?
 
yeah, that kind ^
 
6:20 PM
@FlorianMargaine that's not a good definition, when I mean define random I mean define the distribution to generate them. If you just want a uniform distribution than what @KendallFrey said should work.
 
user1596138
@Mr.Hargrove Haha well if you find yourself sitting on a bike give me a ping
 
@rlemon we use it all the time at work
 
it looks like I can highlight it like a textbox kind of thing
 
Also, define "characters", that's also hard :P
 
@BenjaminGruenbaum I don't care about distribution, I just want something fast.
 
6:21 PM
Oh
 
that's easy
 
@BenjaminGruenbaum [a-zA-Z0-9] not good enough?
 
repeat the first char x times
 
user1596138
I'm looking for a house in Fort Wayne currently actually. Going to finish out the year and next spring there / just be there till I find a new job after this contract
 
@Jhawins Will do.
 
6:21 PM
distribution isn't uniform, but you don't care, do you?
 
for(var i = 0, str ="";i < x; i++) str+=String.fromCharCode(Math.random() * 26 + 65)
 
@KendallFrey well, a little more random :P
 
@jhawins hey, its a sellers market here right now!
 
Adjust to all letters and numbers, rather than just uppercase.
 
user1596138
Just renting :P
 
6:22 PM
@BenjaminGruenbaum ok, so what kendall said?
 
@jhawins ah, I see. Lots of options still.
 
Unless you have a more specific goal
 
6:22 PM
nope
I just want to generate a small slug a la pastebin
 
@jhawins try to stay out of downtown Fort Wayne, near Cadillac. Terrible area for renting.
 
@KendallFrey iunno, I'm just a developer, I don't deal with the content a lot
 
So this codes is executed less often than once a second
 
user1596138
@Mr.Hargrove Yeah, there's literally 3-4 options between Fort Wayne and Warsaw. This entire stretch literally has less than a dozen places for rent (other than community living). So going to Fort Wayne because there are tons and tons of options. I've lived here since the year 2000
 
@copy indeed
 
user1596138
6:23 PM
Are you a long time local?
 
Then go for readability
 
@jhawins yes, I am.
 
was still interested if some interesting algorithm existed
 
So you're distracting yourself from actually getting something done? :P
 
user1596138
Nice. I'm ready to leave here :)
 
6:24 PM
What would I add to /[A-Za-z0-9]/g to make it also turn spaces into dahses?
 
@jhawins haha, I could lose winter and I'd stay forever.
 
@copy it's for a personal project, who cares :p
 
I care about my personal projects
 
user1596138
@Mr.Hargrove Haha this last year was insane. rlemon kept saying we had no clue cause he's up in Ontario but we had more snow than them
 
6:26 PM
@jhawins yeah, we almost broke a snow record from like 30 some years ago haha. We were like an inch or a couple away.
 
user1596138
I pulled over a dozen cars out. A few times I took people home because there was no hope for the vehicles. I'd never seen anything like that hahaha I got the truck all fixed up, lifted up and ready to go just in case it happens again.
 
@jhawins good man. I have a shitty little hybrid lol, so I stayed inside mostly
 
user1596138
@Mr.Hargrove The only thing we have is Walmart and Kroger... I needed to go to Fort Wayne for so many things but I didn't go a single time all winter because it was so insane
 
@jhawins when I had to go out I'd ask the maintenance man to give me a ride since he had a huge truck lol.
@jhawins doesn't help that the stretch from here to CC is almost not maintained
 
user1596138
lol right. I'm the guy with the truck so I have to drive everyone else but I'd just charge a bit extra for gas and I made money.
 
6:28 PM
@jhawins there ya go, well I gotta hit it. Service call :p
cya everyone
 
user1596138
@Mr.Hargrove Oh man it's ridiculous. They still have the bridge here on 30 all fucked up and redirected. Traffic through that 2 miles stretch can take 20 minutes :/
 
user1596138
Haha have a good one.
 
@Jhawins - So what was that snow record ? Curious!
 
@mrzepka that is an issue with codepen not your code
if no one else mentioned it
 
user1596138
@adeneo Like ~60" or something. It just never went away the whole winter
 
6:31 PM
@rlemon thanks, it was really bothering me lol
 
codepen (idk why) injects some code before your last div, which also adds whitespace
so you see the single space
 
60" is only 5'
We had more than that
 
if you would have used a documentFragment and appended them all at once you wouldn't see it
 
@rlemon does js run indefinitely?
 
user1596138
i.stack.imgur.com/dp0Js.jpg // this was mild shit
 
user1596138
6:32 PM
That's the only real pic I got
 
@mrzepka the correct solution is to use a documentFragment
 
@Jhawins - That's nothing, do you people change tyres on your trucks in winter ?
 
I want my function to run every say 5 seconds indefinitely
 
user1596138
But those are 32" tires and I'm in pretty deep for a ranger
 
user1596138
@adeneo Idk a ton of people here have like the metal cords showing in their tires. People don't understand the importance. I have a snow set and a not snow set
 
6:33 PM
 
user1596138
@adeneo Yeah, like 75% of that height is what 60" of snow creates in flat Indiana with wind
 
@rlemon I'll read up on them some more to figure out what's going on, but thanks!
 
@Jhawins - Where I live it's illegal to drive with summer tyres after 1. november for obvious reasons. People use spiked tyres, and snow chains
 
@mrzepka tl;dr it is a temporary "document" (not a real one) that you can push elements into, then you push the fragment to the DOM and you only have one update instead of N (how every many appends to the body there were in your loop)
 
6:36 PM
0
Q: How do I get google to prefer one branch/directory of my site over another?

Simon SarrisI write a software library that maintains "latest" and "beta" branches: gojs.net/latest gojs.net/beta Ideally all of this content would be available via Google search, so I'm reluctant to disallow indexing of the beta branch. However, many of the pages are the same or very similar, such as AP...

A CONUNDRUM
I fear that my best bet is to simply disallow indexing of the /beta directory
 
@rlemon and the code will keep running? I want the colors to change
 
well no, you do that in a loop
see the setTimeout I added?
 
user1596138
@adeneo Well you guys actually have rules about those things. Our rule is that it's illegal to be on the road once they throw the flag
 
at the end of the init loop it will run again (but just append more elements)
 
Yeah I just noticed that
 
user1596138
6:37 PM
It was illegal to be on the road for 6 counties in any direction for 4 days straight
 
will the new divs appear over the old ones?
 
user1596138
But the police.... They can't go anywhere lol. They can't follow you. They can't even see you. So I just do it anyway.
 
user1596138
But then the local truck dealership let the 5.0 borrow their 4 biggest trucks....
 
@Jhawins - Yeah, people can't stay at home here because it snowing, would be home all winter, it's not the US. Roads are never really closed, only certain mountain passes close in winter.
 
oh it calls it recursively
I see now lol.
 
user1596138
6:40 PM
@adeneo pfft. They aren't closed. They just pretend. If you're smart enough to buy the right tires and almost even more importantly you have enough ground clearance you're ok.
 
user1596138
But basically we are poor as shit.
 
user1596138
Sometimes 3-4 entire days will go by before the county pays a plow driver to be out.
 
user1596138
We spent our entire road repair/snow removal (yeah they're one budget) for 2014 during January.
 
user1596138
So they were like sorry guys, no more plows. And we're not fixing the roads this spring either. But they did end up with some kind of funding and are fixing the roads finally now that it's July.
 
@Jhawins - well, that sucks, roads are cleared every night here when it snows, noone dares not to, as it's a helluva pita if it keeps on snowing and the roads aren't cleared regularly, just piles up
Then again, half the population is employed by the goverment, they have to have something to do?
 
user1596138
6:43 PM
@adeneo Exactly. The only reason we have such an astoundingly harsh winter is because they don't clear the roads right. They send the guys at terrible times and half the drivers don't know how to plow. And yes, you have to know how to plow you can't just drive into shit.
 
user1596138
They got a 29ton dump truck stuck trying to plow and it took them 3 days to figure out how to get it out... And they got another one stuck in the process. And then they absolutely buried a fucking payloader somehow. These guys got a payloader stuck.
 
codepen is fun lol
 
user1596138
I had to use that road to get to work and such so I would literally just drive off the road into the corn field and go around them, then drive another ~75 yards until the next break in the fence where I could cut back onto the "road" lol
 
@Jhawins where do you live?
 
@Jhawins - that shit doesn't happen here, the goverment does this six months of the year, every year, it's like clockwork
 
user1596138
6:46 PM
 
user1596138
My bro did that ^. I know it looks like someone plowed him in, but this is after 30 minutes of digging him out.
 
user1596138
And yes, we are dead in the center of the road, it hadn't snowed for ~14 hours they just didn't plow and my brother is stupid.
 
user1596138
@SimonSarris 'Round Fort Wayne Indiana
 
@mrzepka is this what you are trying to make? jsfiddle.net/rlemon/5tf3u
 
user1596138
@adeneo Ours is awful. But keep in mind I live in the heart of the USA, in factory / corn field country. The closest off ramp is ~30 minutes of clear driving and the closest certified Apple retailer is 3 hours away.
 
6:50 PM
@Jhawins - In other words, you live in the middle of nowhere
 
user1596138
Yup
 
user1596138
I have to drive 15 minutes to get gas if I don't do it before 10pm... Actually I have to drive 15 minutes to find the first open business.
 
I have no idea who's open when, I always make sure to get gas during the day
 
user1596138
The part that's really been killing me recently is the lack of coffee shops. We do have a Dunkin but they suck. Next closest is 30 minutes
 
I have 3 Tims all 15-20min away
 
6:52 PM
I have no Tim's, anywhere
 
user1596138
@KendallFrey Well some of us go to bed at 2:30 on average
 
@rlemon kinda but not exactly the same as that
 
user1596138
And drive a fuck ton
 
I actually have another idea I might need help with lol
 
So this essay was really interesting Form and its Userpers. Bit pretentious, perhaps, but interesting.
 
user1596138
6:54 PM
We do have a drive through tobacco store now. So that's..... Something? Whoever thought they should buy the yogurt shop and turn it into a head shop was a real dick though.
 
They only have Tim's in Canada, right ?
 
They have recently become a thing in the US
 
user1596138
Tim's actually is building 3 stores next to me!
 
user1596138
They made it to northeast Indiana. But that's in Fort Wayne about a half hour away. Still I'm excited
 
user1596138
They've been in Michigan since at least 2009 when I first saw them
 
6:55 PM
What do you people think?
Is this too cold in October?
 
See I feel bad doing something someone else has done, i want to do stuff nobody else has done but I feel like that's really hard to find
 
user1596138
@BenjaminGruenbaum Look at you you can just drive to the Netherlands... That kills me. You guys can go so many places by land.
 
Speaking of which everyone from Germany I might be in Germany some time in October so we should definitely have a beer.
 
The above link is ostensibly about video games; but more of a ethics of Technology piece
 
@Jhawins From Israel :D?
I have to take a plane to one side or another.
 
user1596138
6:56 PM
@BenjaminGruenbaum Pfft from that map :P
 
user1596138
Forgot
 
Lol Americans don't know Geography haha
 
user1596138
But you can drive from the czech republic to NL. In 9 hours.
 
user1596138
@BenjaminGruenbaum No I was looking at point a -> point b :P. Assuming you were at point b
 
I have 5 days in Europe to plan, my dad is getting (another) honorary PhD and I'm going to Prague at Oct 18 to Oct 21st, so I figured I'd go to Europe 4 days earlier and drive around for a bit.
 
6:57 PM
@mrzepka nahh, steal the idea, change it a little, roll with it
 
@rlemon actually I had a cool idea that I stole from two featured code pens
 
user1596138
Nice
 
An alternative is getting there from Italy
 
essentially it's a gradient changing inside of boxes
but I figured I need the boxes changing colors first
 
nahh
 
6:58 PM
Have I gone insane?
http://jsfiddle.net/b2eDj/4/
 
@YishaiG 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.
 
user1596138
@benjamin wait. You can totally drive from Israel to NL.
 
user1596138
Wut you mean I don't know geography
 
how I swap gradients on the body
you could do that for containers as well
 
6:59 PM
You can drive to turkey through syria, if you dare, but why not just take the plane to schiphol, am I missing something ?
 

« first day (1376 days earlier)      last day (3572 days later) »