« first day (1523 days earlier)      last day (3426 days later) » 

6:02 PM
@Loktar: i need your help to undertand javascript logic.
 
Sorry man, Im about to head out to lunch + doing my dayjob atm :/
lots of smart (even smarter!) people in here though
 
Hey guys, please help me to understand the logic used for mouseover effect. movies.disney.com/big-hero-6
Anyone???
 
@someDoge checking if an ip is online?
 
@Dramorian Hmm?
@Dramorian The 3d one?
 
@SecondRikudo: yeah
 
6:12 PM
I'm guessing that aside from actually playing the video inside, all of those are pure CSS effects.
!!tell Dramorian mdn transform
 
See the 3d options there
Yeah, they animate the style with JS, but the effect itself is a 3d transform with CSS.
 
@SecondRikudo i have written small library to return css3D matrix. but its not working correctly. here is link for my trial
3
Q: CSS3D matrix generation

DramorianI am trying to achieve following effect using css3 and javascript when we move mouse to center div (MouseOver effect) I have created small library which accepts 3 arguments element,sourcePoints,destination points and returns css3D matrix and update element. here is my javascript code. var BLE...

@SecondRikudo: can you please check
 
I'm not a 3d expert, and my matrix-fu is not that good, sorry :(
 
i've seen that menu on codepen before
can't find the pen now
 
6:16 PM
speaking of not being an expert, @rlemon I was asked to change my script for a new promotion, and so I fixed the perspective oddity jsfiddle.net/t1fpnpsh/27
 
@SecondRikudo never mind. thank u very much :)
 
hi all
 
@NickDugger not bad
 
I was later told that it's supposed to be confetti, so I might add some transformations to the particles
 
@NickDugger if I stretch the html area, it doesn't adjust (if it's initially a smaller area)
just fyi
 
6:20 PM
@taco yeah, I know :(
 
ok cool :d
 
@NickDugger codepen.io/rlemon/pen/IzEej doesn't have the best perf
but it's a reference for you
 
@rlemon ah, yeah, that's what I was looking for. I remebered that you had a pen
 
6:26 PM
yeah
they commented on codepen, thats how i saw that
they made a pen as well for codepen
looks nice actually
 
ahahahahaha craftedbygc.com
I already see two 'codepen' pens on their homepage
nice
 
hah
 
the particles and the menu i've seen on codepen
 
not sure I love that one on the homepage
 
buncha biters
 
6:27 PM
they seem like good designers
thats a really cool animation imo
 
ohh yea, they do
 
that one is really neat too
 
but the code is all stolen from codepen (obv not all, just sayin the big ticket ones are)
makes me chuckle
 
yeah the front page one performs pretty badly
seems like an odd choice for the homepage anyway, doesn't really fit imo
god man lol looking at some of my old pens is crazy, on the 144hz monitor they run at 144fps
and since there is no delta timing they go so damn fast
over 2x the speed I'm used to seeing them at
I need to make a Christmas pen, start vacation from Tomorrow until Jan 5th, woot
 
hey guys, can any tell me how to document an angular service?
 
6:31 PM
@Loktar nerd!
I wish I was as nerdy as you guys :|
 
yea I need a christmas pen as well
 
Ok guys, I hooked someone else's prepackaged web app up to a remote LDAP server by editing the conf on the first try.
 
maybe a snowman loader?
 
that would be cool
 
I'm leaving to become a sysadmin. Goodbye forever.
 
6:33 PM
good
I was sick of that guy anyways
 
@ssube good... luck! :P
 
oshit he didn't leave yet :?
 
:| @rlemon
 
Terminology question:
if(foo === bar) {
    foo();
} else {
    bar();
}
^ Is this all one "statement"? With "foo();" and "bar();" being "sub-statements"?
 
I could never be a sysadmin, developers do stuff wrong too often, and I wouldn't run it, so we'd never get anything run.
 
6:36 PM
@Loktar what is shitty about them is that they minified the crap out of the code and left NO attribution
:(
fuck them
 
ah thats lame leaving no attribution at all
like.. not even in the code sheesh..
 
I can't find any
 
@Retsam if is one statement, else is another.
 
@SecondRikudo Ah. Is there any term for the whole thing? Or is it just "two statements"?
 
if..else block
I believe is the canonical term
 
6:38 PM
@Retsam one conditional, with two branches, each containing one statement (which happens to be a call).
 
@Loktar they didn't re-write it either
 
conditional might not be the rightest word
 
your code is mashed into (albeit minified) jQuery riddled code
 
lol
 
@ssube conditional block?
 
6:38 PM
well.. at least they commented on my pen and let me know I guess
I mean I dont say they have to give me attribution, but it still is nice
 
comment back asking for attribution in the code?
 
@SecondRikudo Block already means something else, doesn't it?
 
@SecondRikudo probably. That sounds right
@Retsam Block mostly just means { ... }
 
I (personally) like attribution in the code. the people who are viewing the source are the exact people I care about knowing I wrote it
 
eh I'm not worried about it, only if they were making tons of $$ then I'd be like woah guys you should totally throw my name on there.
 
6:39 PM
Traditionally "block" and "scope" are roughly synonymous, because most languages have block scope (lookit that consistent terminology).
 
@Loktar yea but how many people have used this code now?
 
lol no idea actually
 
if everyone knew it was yours I can see heads turning
 
I'm going to make it a proper plugin over the weekend I think
 
fuckin steam used it
 
6:40 PM
oh no
 
I think block is defined as "{statements} or statement"
 
that was a diff snow
 
boo
 
I don't even really like that one anymore, I did that so long ago worked with IE6 even
I keep it updated and accept PR's on it though
but I'm going to make the canvas one into a plugin since its much nicer looking
 
@Loktar this fiddle of mine has 529 revisions
 
6:41 PM
LOL wtf
 
Why is google chrome helper clogging all my ram? :( My computer is constantly running like 7gb/8gb ram and 1-3gb is usually from google chrome helper
 
its dat min-height: 100% !important;
 
@SterlingArcher ^
wanna talk memory hogs
 
6:43 PM
wtf!!
 
jeeze
 
@Du3 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.
 
@Loktar I wonder how much money was made over that one fiddle
 
Du3
that Wired article calls them out on it
 
6:43 PM
I have so much ram left
Chrome barely puts a dent in it
 
@ssube @ssube I was in managed hosting support as a sysadmin, and yeah that's pretty much all you do (fix environments for devs).
 
work pc only has a measly 8gb ram
 
yeah and Chrome is taking almost half
 
nahh not right now
that was yesterday
 
@taco oh, I know. I do all the automation stuff here, so I'm always trading favors with ops. "You give me this machine, I'll change that script so the devs don't ask you..."
 
6:46 PM
ah ok
 
today I'm at like 900meg
(4 tabs only)
when I get into a R&D mode or a bug that sucks I'll have 40 tabs open, easy
 
I'm also one of the only developers who respects memory, and one of a dozen who use linux day-to-day.
 
I mostly handled LAMP crud and crappy control panel issues
and ssl order issues
 
That gets mad points from ops
 
I use linux and windows pretty much errday
 
6:48 PM
"Oh no, just give the machine a gig of mem, I'll ssh in and change the conf in puppet so it uses 768"
 
and i'm aware of the memory usage, i'm not too concerned about it until it becomes a problem
 
I use my brain most days
 
suddenly, ops gives you whatever you want.
@rlemon Doing Java-based service-oriented SaaS, memory is a problem before you start writing code (your IDE uses most of it).
 
don't use eclipse
 
Then the smallest service nodes use 1 or 2GB each, and we have 4-16 of them (depending on the env)
 
user1596138
6:50 PM
@rlemon Yeah there's an API call to turn one it on if it isn't
 
We need to get rid of old environments, but QA won't let ops, cause they have old data nobody knows how to recreate (which is a great reason to get rid of them...)
I think we have 2 or 4TB of memory all told, split into a couple openstack tenants (prod, non-prod), and the dev tenant is 95% committed.
Thanks to Java, we can't overcommit.
 
@Loktar check it.
 
@rlemon Using a linux vm in a windows machine is the best setup. Windows gets to handle AD, certs, the VPN, and disk crypto. I get root on a linux machine. Me and IT are both happy.
 
check wat?
 
6:54 PM
how long did you wait before you realized it did nothing but flash a caret position?
 
like 10 seconds
I expected some amazing animation
 
:D success!
 
then I was like.. ok not gonna happen
then I checked IRC
 
I tried typing
i noob
 
lol
 
6:54 PM
I was thinking maybe that was your way of telling me to check irc lol
 
@Kevin "Yo dawg, I heard you hate assignment operators, so I put a lambda in your lambda so you can assign without assigning" — AirThomas 5 mins ago
 
@rlemon About 3 seconds
 
> Help me Obi-wan-reddit, you're my only hope. ~ reddit
 
posted on December 17, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
user1596138
7:02 PM
Ya know how Detroit has that fire dept problem?
 
user1596138
i.stack.imgur.com/hDpLa.jpg // I guess this tiny FD 7 miles from a tiny town is just bored with their money lol next door is a barn and then fields
 
user1596138
murican appropriate use of funds
 
a $50 sign with $5 arduino with rtc and thermostat modules, not powering or linked to any critical safety services? horrible abuse of funds
 
@ssube take it as you will, but It feels like you have the need to constantly 1-up everyone.
 
7:09 PM
@someDoge we have signs like that everywhere in Ontario
it's nice to know the time and temp where ever you go
 
@NickDugger perhaps, but this was a conversation from a few weeks ago, where @someDoge was very insistent that detroit FD's could replace their emergency alert system whenever and however they wanted.
My position was that, even if they had the money (which they don't), liability would keep anyone from touching it.
 
user1596138
Moving forward.
 
user1596138
There's no point in arguing over it again.
 
Where as a sign like that, if someone can scrounge up the money, is pretty fair game.
 
user1596138
@rlemon I know lol but that is on a county road that is hardly trafficked and they're a tiny little rural fd
 
7:12 PM
I'd be more worried about how the corner seems to be all screwed up. They should probably amazon prime it back.
@rlemon I don't remember the last time I saw a bank that didn't have one.
 
@darkyen00 ping ping
 
user1596138
There is a 105" one in front of the music store
 
s/front .*/my pants/
 
banks can afford it, but a music store?
 
!!urban microwave
 
7:14 PM
@SecondRikudo microwave (n) A hand gesture used by a midget to say hello
3
 
user1596138
They play music videos for some reason alongside the highway sometimes... No sound..
 
oh snap hahahaha
 
I'M NOT BREATHING
 
music stores couldn't make money if they tried, and as stoner musical types, they don't
 
#UrbanStrikesAgain
 
user1596138
7:15 PM
@ssube Well they also own an aviation business and high end car dealer...
 
@someDoge what the hell kind of music store is that? somebody's side project?
 
user1596138
Musical instrument factory/recording studio/piano dealer/apple store haha
 
user1596138
@ssube sweetwater sound no some local stoner started it small and.. that
 
user1596138
They had jobs on careers.SO lol I didn't mean like a record store
 
user1596138
watchfiresigns.com/assets/uploads/remote/… // but no this sign is insane haha
 
user1596138
7:18 PM
 
user1596138
@rlemon
 
from that sign, they look like they do 18" subs for the trunk of your fiat, too :(
 
@someDoge ahh, nice, public bathrooms
2
 
user1596138
Hahahahahaha
 
Oh my god.. lol
 
user1596138
7:20 PM
@ssube Well they sell like. Band vans and porsches
 
user1596138
I went to a meeting from work there and they were all like here use this 70" TV and show us what you mean and it's in the wall
 
like tour buses, or chevy vans with shag carpet?
 
@rlemon The comma is key
 
@Zirak long solved
turns out you are all more clever than I
 
user1596138
@ssube the porsches and the owning hangers and airplanes part should've answered that.. Let alone the poop slide
 
7:24 PM
that's a shame, we need a new band van at my house.
The last one we had was parked on the street for a little while and the city stole it.
we didn't notice for a few months and never had the papers for it anyway, so we never got it back.
 
user1596138
...I'm really trying to get you, but what
 
they had a van. parked illegally. city impounded it. no papers, no more van.
better?
 
We got a band van from a friend who had a mid-80s chevy van, all tricked out (tv and carpet in the back), but didn't have the papers and nobody involved could figure out where they had gone.
We parked it legally, and left it there for 3-4 months.
 
user1596138
> Uhh hello officer yeah my van was stolen
When was it stolen?
Uhhhh well it's not here now
 
At which point it became illegal, and the city took it away, and we no longer have a van to roll around in.
 
7:26 PM
@ssube that is abandoning a vehicle and is illegal unless it is your property (in Ontario at least)
 
@rlemon yeah, I know, but it's more interesting to play the innocent stoner and claim the man came and stole my van so he could keep us down.
 
user1596138
@ssube interesting lol. Here we would just go to the BMV and ask for the previous registrant to be sent a letter and get a new title
 
took me way too long to figure out the 'bureau' bit
 
user1596138
Or hell scrap that thing I wouldn't abandon anything heavy and made of metal lol
 
user1596138
@rlemon Yeah usually it's DMV but Indiana..
 
7:29 PM
we have MTO's
 
user1596138
We're different
 
DVS
or MVA in some places
 
user1596138
Like with steel
 
@someDoge it worked fine and was actually pretty cool, worth well above scrap value.
 
Ministry of Transportation of Ontario (MTO)
 
user1596138
7:30 PM
@ssube lol well if you let the man have it it's not worth anything to you
 
user1596138
Ministry seems odd
 
it happened that one of my old roommates, who has since been evicted for not bothering to get a job, couldn't be assed to move it into the driveway or even to a different street every few weeks
 
bureau seems odd to me
thing here is, everything is 'of Ontario'
LCBO - Liquor Control Board of Ontario
 
why don't you skip that in the acronym and just make it the MoT?
 
these are different in every province and not connected
it's stupid
@ssube because every province has their own
you need to distinguish
 
user1596138
7:32 PM
@ssube micro-optimize much
 
@someDoge you don't really need that hyphen
 
user1596138
Check out my hat. Idgaf
 
@ssube u dnt actly hve 2 wrte entr wrds
 
I scored backstage passes to see Armin van Buuren playing ASOT!
 
nice
 
7:35 PM
@monners jelly
 
@someDoge it's like the hats were designed for mikedidthis's avatars
 
@KendallFrey I've never seen him live. Always seem to miss the events by a week due to travel
 
ASOT is some of my favourite music.
 
and i.stack.imgur.com/sqs4s.png .. everything lines up so well!
 
@KendallFrey Mine too!
 
7:36 PM
How good would it be to add a single (click) event listener to the document, and route all (click) events according to e.target, from a performance point of view, if I have a lot of event listeners on a page?
 
@AwalGarg Why not let jQ do that for you?
 
user1596138
@rlemon whoa lol
 
@ssube eh?
 
What do you mean by "a lot"?
 
@monners Once when I was sick I laid in bed and listened to I think 2 whole episodes. It's like being high.
 
user1596138
7:38 PM
lol he can't hear me
 
@someDoge We have a slide in our UK office officesnapshots.com/2013/05/15/peer-1-hosting-uk-office-design
 
Plus, consider that a lot of the time, the mouse won't be anywhere near an element you care about (most clicks will be on them, but most input won't).
 
@ssube a lot of elements are dynamically constructed, with event listeners to do different things. Like this page.
 
user1596138
@taco first pic seems like an odd area..
 
@KendallFrey Shipwrecked is probably one of my most listened to tracks in my library
 
7:39 PM
@AwalGarg Look into using $.on and data- driven handling. You can bind to all clicks on a certain class of elements, then decide what to do (which msg to respond to) based on which one was clicked. That ends up being pretty efficient.
 
user1596138
@taco what's this room
 
@someDoge I think that's near an open area with a long table for a shared workspace. I imagine nobody sits there
 
user1596138
It almost looks like a sauna or something
 
@Loktar new favorite reviewer youtube.com/watch?v=D9yKs9P_dCs
 
@ssube I am not using jQuery... but ok. data- driven handling, as in?
 
7:40 PM
Hello,


Quick question, I'm trying to use the href value as my target id. In my console it output the value as correct value, but when I used it, I can't seem to make it work.

jQuery('.links a').each(function(){
var target_id = jQuery(this).attr('href');
jQuery(target_id);
});

Can anyone point out what's my mistake? do I need to convert the target_id to a string first?
 
@someDoge The office doubles as a brothel at night
 
user1596138
How much do I pay to work there?
 
@AwalGarg Do you have something that allows you to bind events to a CSS-style selector, say all clicks on div.chat-msg?
 
@someDoge you can look inside via Google maps google.com/maps/place/Peer+1+Hosting+Southampton/…
 
var target_id = this.href;
@Pennf0lio ^
why introduce jQuery crap there
 
user1596138
7:41 PM
@taco wuttt too bad it doesn't go down the slide
 
user1596138
That is crazy
 
@rlemon, thank you!
 
@Pennf0lio also, the rest of your code makes no sense. what do you want jQuery(somehref); to do?
 
@ssube Event delegation ofcourse.
 
user1596138
7:42 PM
@Taco lol in america....
 
user1596138
This is what you find in a redneck's barn torn up at the ends like that haha.
 
@rlemon, i'll be adding more method to it. sorry for that
 
Why would they even have one. odd
 
user1596138
I'm sure the intent is 100% different haha
 
7:46 PM
@ssube Sorry I can't find anything related to data-driven event handling in javascript :/ Got a link?
 
@AwalGarg .dataset.X or .get/setAttribute('data-X'[,y])
@taco is that where you work or something?
 
@rlemon btw, i'm doing that because i'm trying to geth the hash value of the href and use that value to target a div id with that value
 
@rlemon what does that have to do with event handling?
 
nothing, that is the data aspect of it
 
user1596138
@rlemon I was lookin at the slot cars below lol
 
7:48 PM
I'm sure you can handle event listening
@someDoge haha didn't even notice
 
@AwalGarg Bind to the even on a type of object (a whole group of elements), and when the event fires, pull a data attribute off the node that fired the event. Then decide what to do.
 
user1596138
@taco I wanna work and live there lol
 
@rlemon yeah we must've paid google to come in. Yeah, I work for PEER1, but that's our UK office. My Atlanta office is plain
 
user1596138
I wanna die there
 
It's about 45 minutes south of London I think. I didn't visit when I was in London because fuck that drive
 
user1596138
7:49 PM
No not really I bet someone can top it :P
 
For example, in a chat app, each reply button would have <div class="icon-reply-to" data-reply-msg="msg-id">. Bind to click on div.icon-reply-to and then check data-reply-msg to figure out which message to reply to.
 
I visited San Antonio for a week and our office there used to be Pearl Brewery. It's pretty cool
 
@someDoge doesn't @phenomnomnominal work in a similar type of office?
and @SomeKittens
 
@SomeKittens works in San Francisco, so I'd bet he does
 
@ssube yeah, I am already doing this. (Ughh, terminology pulls me back errytime). And I was wondering how efficient this is, in terms of performance.
 
7:52 PM
@AwalGarg If that's what you're doing, it should be pretty good. Have you noticed any problems?
 
@ssube Not yet. But since there are over ~200 DOM elements on the page with different types of event listeners, I am worried a bit.
 
user1596138
@ssube He's using 1 listener on #document I'm pretty sure lol
 
user1596138
@HatterisMad lmao of course you go in the bathroom rlemon went to the slide
 
7:58 PM
@HatterisMad pft, married
I see that ring
@someDoge @HatterisMad @taco HE'S NOT SHOOTING AT ANYTHING!!!!
 
user1596138
Shootin for scratch
 

« first day (1523 days earlier)      last day (3426 days later) »