« first day (2161 days earlier)      last day (2786 days later) » 

3:01 PM
@Stuart I don't know of a tutorial, but how I would do it is to have a print CSS and then when they click on a coupon, add a CSS class that hides the others, then run the print function, and if you have your print CSS right, you should be left with just the coupon.
 
Thanks @Waxi I'll look into it
 
whew, I got over the big hurdles in converting my knockout app to using react-router. i'm on the home stretch.
 
@Stuart smells like dreamweaver :3
 
!!s/dreamweaver/a freakshow/
 
@SterlingArcher @Stuart smells like a freakshow :3 (source)
 
I think what else would be neat would be when the visitor clicks the coupon that it brings the coupon up as an overlay (not the way it does so now) and is then printable
 
ahh thanks for the link though, i was wondering if that was some kind of obscure reference that i wasn't getting
 
@Stuart You could do that with just CSS.
 
@bitten and @SterlingArcher are you guys suggesting that the current implementation was a dreamweaver plugin? (ie: option you can add with the click of a dw button)
 
@SterlingArcher not sure why but that made me think of
 
3:05 PM
What? I'm suggesting people listen to that music video
@rlemon got that song is so repetative lol
 
three days grace leads to three doors down leads to nickleback
and it's all because of screamo
 
I thought I knew quite a bit about web dev but now Im feeling blank
 
is that like weed leads to heroin?
 
if you listen to screamo, you may as well be listening to nickleback
@rlemon exactly
 
well, you wear a squid hat
so, yea
:puts on screamo:
 
3:07 PM
I spent 2, almost 3 hours trying to get this query to work before realizing the db doesn't support the pivot command. What a bunch of bullshit.
 
weed dumbs you down enough that you enjoy crack, crack dumbs you down more, etc
 
@bitten what do you mean by smells like DW?
 
> Ghost Square Hammer
 
pantera -> nickleback
makes sense
 
3:08 PM
@Stuart nothing really, it had just been a while
 
@rlemon Pantera isn't screamo
 
they scream
 
they're classic metal/rock/arena stuff
 
@bitten what had been a while?
 
3:08 PM
nahh, Megadeath is classic metal
Pantera is heavy / screamo
 
screamo is specifically the stuff that's supposed to be metal, but instead of screaming because the christians killed their women and then burning down a church, they scream because their jeans are too skinny
pantera was good, therefore they aren't screamo :D
 
@rlemon metal, not screamo
 
I no longer value your music classifications
 
3:10 PM
what about Parkway Drive
 
they both crab walk, but Immortal crab walks out of pain and hatred, while Attack Attack crab walks because their nuts hurt
 
You probably hate Of Mice & Men and Beartooth then lol
 
one has the darkest, most unholy loathing filling their black hearts, while the other has black dye filling their hair
 
They were both born of Attack Attack
 
3:11 PM
now I'm just linking good tunes
 
@SterlingArcher oh, absolutely
@rlemon yeah, I have no problem with any of these so far :P
 
user3119231
What the fuck is going on here? o.o
 
I LOVE white zombie, not a big Rob Zombie fan
 
white zombie was much better. Had a lot more variety to their songs.
 
3:12 PM
room 17 radio
8)
 
yea Rob Zombie's personal work seemed like it was going a little too poppy
 
Superbeast is a good song
 
kinda like how Metallica went
 
his personal stuff is just shock value junk
 
now they're arguably just an alternative band
 
3:12 PM
both music and movies
 
He's an amazing director. I love the Halloween reboots
 
@Loktar did you just spam me ;)
 
?
 
@SterlingArcher you could argue that he's better than Michael Bay
 
3:13 PM
not that i know of
 
some "Jason invited you to <social network that looks like linkedin>" just showed up in my inbox
 
I did get a warning about someone logging into an old yahoo account from India, but I didn't care
oooooh
 
he definitely beats Uwe Boll, but Zombie vs Shamwowalien would be a tough one
 
hah yeah that stupid thing
it's some other thing like linkedin
angellist?
 
:P
yup
 
3:14 PM
yeah that annoyed me, I accidently hit ok
and it shot it out to everyone
 
Dammit Loktar
I just got my email
 
@Stuart there is a bunch of auto generated dreamweaver code in there
"smells like DW"
 
@rlemon That's fucking traumatizing if you've ever read Arthur books
 
Watch the show you fucking casual
 
@KendallFrey just past my time
 
3:17 PM
Excuse me for being a bookworm as a kid
 
like I JUST missed the arthur train
 
haha
i didn't start the abbreviation
 
NO NO NO
 
I was more of a berenstain bears fan
 
holy shit
 
I can keep this up all day
 
@rlemon I take it you're not from the old universe
 
@SterlingArcher after four hours you should call a doctor
 
@rlemon omg
 
3:20 PM
@KendallFrey I honestly never remembered stein
so when I see that debate I just think "you stupid bastards"
 
I remember stain because it's so counterintuitive it stands out
 
+1 stein.
 
I'd just like to point out that the Berenstain bears have fantastic names.
 
If you were a kid when those came out your opinion doesn't matter cause you barely knew how to read, but I saw how adults claim they remember it as stein.
 
berenstain bears and munch books were all the rage when I was growing up
 
3:25 PM
Never heard of munch, but I definitely remember the Berenstain bears.
 
robert munsch*
sorry my spelling sucked
 
but then I grew up in a time when I just sat on my mom's lap while in the car..
safety had not yet been invented.
 
lol
 
@Luggage safety was invented somewhere around 2001 I think
 
@rlemon I c what u did thar
 
3:27 PM
that pivoting point when you couldn't have kids sitting in the flatbed of your pickup without being arrested
 
It's only illegal if you get caught.
 
we did that, too.
my sister and I would just slide around back there.
 
@rlemon that is legal in some states in the US
at least they don't care in a lot of the southern states
 
@KendallFrey i.imgur.com/gjD3xIP.png that was a wild fucking ride
 
@Luggage friends dad used to drive like 15 kids to the local public pool. 4 in the cab, everyone else pile in the back
 
3:29 PM
@SterlingArcher "school principle" I'm out
lol jk
 
you could still do it
 
> justice pellets
i lost it
 
omg this is gold @SterlingArcher
 
Does knowing multiple languages(speakable) make you a better programmer?
Is this question suitable for any site?
Yes I know this isn't a general chat room
 
3:36 PM
How does spoken language translate into programming in any way?
 
@William Not consequentially, but probably.
 
Is that spanish documented jQuery plugin really the make it or break it feature?
 
^ hahhah
 
$.si()
 
anyways could that asked on meta.programmers?
 
3:37 PM
@William I suck at programming and I speak three.
 
Hey all!
 
Albert Einstein spoke multiple languages so I think it might help
 
@BanjoFox Welcome to the JavaScript chat! Please review the room 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.
 
@William Um, that's not a meta question
@William Oh yeah, Einstein's long-forgotten programming years
 
@William Adolf Hitler also spoke multiple languages.
 
3:38 PM
he was genius before his time
 
learn german, will help with variable naming
german: need a new word? take two other words and just mash them together. new word.
 
Learn Hebrew, will help with error naming
 
okay what about meta.math.se
 
for (let dasI = 0; dasI < count; dasI++)
@littlepootis i see what you did there
@William It's neither a meta question nor a math question
 
3:39 PM
you guys are being to literal meta isn't strictly meta
 
uh yes it is
 
its for questions you shouldn't ask on the main site
 
I dream of the day when someone converts all tokens in coffeescript to hutteese
Mwa Chut_chut =>
    @foo Sa ['Hello', 'World'];
    Bata @foo.Weeteebah(' ');
 My Greeting =>
  foo is ['Hello','World']
  return foo.join(' ');
 
No, it's for questions about the main site
And why wouldn't the question be suitable for the main site?
 
ok I'll ask it then
 
3:41 PM
aside from the fact that it's a bad question
 
I feel really dumb right now, and my Google-Fu is lacking. Right now I am trying to figure out how to set a -static- array of values 0..n. At present the application I am modding basically checks for comma, separated integers and then does stuff based on that. In ruby I can use the 0..100 notation and it will automatically understand that I want 0, 1, 2, 3...100 but I cannot find a JS equivalent :(
 
there isn't a range operator in js
you have to make a utility function or map an array
Array(length).fill(0).map( (_,i) => i);
 
that
 
I did see that as an option but I'm not sure if what will break other functionality.
 
how would it possibly break other functionality?
!!afk lunch
 
3:44 PM
Right now, the chat application looks at "array(0,1,2,3,4)" and says "Okay user you can have access to channels 0,1,2,3,4. If I start adding maps other parts of the app may not render properly.
 
> makes you gifted
lol
 
what's so funny
 
words
 
what would you say insntead
 
3:47 PM
@BanjoFox not following what your concern is. the code snippet rlemon suggested is exactly what you asked for
 
so far so good no close votes it appears
 
lol there's already a shitstorm brewing in the comments
 
well crap
> Supplementary to Luiz's comment: Einstein is not generally considered as a mathematician in the modern sense :). I can recall at least two esteemed mathematicians informally implying this point: S.T. Yau and S.S. Chern.
 
lmao.
 
..
 
3:55 PM
Mathematics is the root node of knowledge
 
is that like nodejs
 
Math meta is so tame. On so meta that'd be voted to oblivion
 
@rlemon its not meta but yes that is true
 
That's math main
 
Even worse..
 
user1596138
4:02 PM
This seems off topic enough..
 
user1596138
Who has full coverage in the USA and who do you use? Progressive wants $650+ to starta new policy and Allstate wanted $240 but doesn't like me or something.
 
user1596138
@SterlingArcher put me on your cheap ass insurance plz
 
well I have to go to class I look forward to seeing what happens on my math question
 
@William Why on God's green earth would you think the question would be acceptable on any meta site?
There's nothing meta about it
 
Stop being so meta
 
4:06 PM
I'm So Meta Even This Acronym
 
@KendallFrey jfc, I just got that.
 
I swear I've seen that a few days ago.
XKCD
 
yeah
it's old
 
4:24 PM
2 downvotes not to bad. I should be able to see close votes yes?
 
Angular 2 is out for realz.
 
> 2 downvotes not to bad
standards
 
Wes
evening. is there a preference for the js community between single quoted and double quoted strings?
 
definitely a mix is the best idea. In all seriousness it doesn't matter
 
@Wes no
 
4:32 PM
Use double quotes for strings.
 
My preference is for languages that don't have pointlessly different ways to do the same thing.
 
Wes
sure one has to be more popular :P
@KendallFrey true dat
 
@Wes javascript compilers like google are double quotes
so that is probably the standard i guess
 
Wes
also TIL json is double quotes only
 
while you are at it you should use 2 spaces not tabs
 
Wes
4:35 PM
... 2 spaces? not 4 like the rest of the planet? :P
 
yes 2 has to be 2. Not 3 or 4
 
be.. consistent.
 
Wes
i think i'd hate reading 2
 
I use 2 because my terminal's 90 chars wide by default.
 
the diagram here is giving me cancer en.wikipedia.org/wiki/Units_of_information
 
4:41 PM
@towc I read the snippet text and still don't undertsand the diagram
 
Wes
@littlepootis aren't you nesting blocks too much? except function signatures i hardly have lengthy lines...
i think i'll stick to 4. 2 makes me go crosseyed
 
@Wes Well, in JS, you often end up with many nested levels.
 
tabs ftw
 
Wes
@SterlingArcher shots fired
 
@SterlingArcher how many spaces wide? :P
 
4:44 PM
4
 
tabs are 8
 
2 makes readability shitty
Plus nobody uses consistent indentations when you switch between it's a nightmare
 
Wes
@littlepootis does that look ok to you? :P
 
Javascript is pretty easy because a lot of compilers can convert between them
 
@Wes of course
@SterlingArcher That's why you have eslint in your pipeline.
 
4:47 PM
@SterlingArcher I agree
I always use 4
and that's the rule here I set as well
fuck 2
 
Wes
hey @Loktar :D -40 days
 
noiice
I still need to watch fear the walking dead
last season and the current :/
I'm so behind on that
can't wait to see who is dead
 
Wes
last season and current it's the only two seasons that exist :P
that is finally getting interesting though
 
oh really? I thought it was on the third right now
 
Wes
nope, still 2nd
 
4:49 PM
last ep I saw is when they just got to that dudes house who has the boat
they hadn't left yet
it was the season finale for season 1
so I guess I'm just 1 behind
 
@Loktar plot twist: nobody dies
 
finally got around to watching Stranger Things
 
@towc nah someone will, but would be funny if it's some random dude you've never seen before haha
> They killed Gregory!
> Who the fuck is Gregory?
 
Wes
:D
 
was trying to make an "undead" pun
 
4:50 PM
just some dude who walked into the woods on a fishing trip
@towc ahh lol
 
yeah, no easy way I can see to do that :/
 
I don't know where I would be without moment.js.
 
@Waxi in the past
 
@Waxi you don't know where you are with moment.js, you need the timezone plugin for that
 
Wes
4:54 PM
@Loktar i don't even remember when that happened because it was shit up to that point... i think you are right though
 
lol
 
@Wes there is no standard, like at all, just don't mix them
const foo = "poop";
const bar = 'ha!';
// die
 
Use double quotes because if you get into the habit of single quotes and go into another program/language, they will more than likely expect double for strings, so save yourself the future headache.
I know because I learned this the hard way.
 
I use single quotes in js, double in html
no real reason
 
don't waste your time hitting shift in JS
 
4:58 PM
^
mostly why I use single in js
 
single quotes are easier. double in html, so it's consistent even if embedded in js for some reason.
 
(and I don't write much html)
 
React allows single quotes for their stuff, too
so I always use single quotes, code and markup
 
SQL uses single for strings and double for objects in the database.
 
if I for some reason need to produce an html string in js, template strings FTW
 
4:58 PM
right, that's a different language, so you'll write it differently
 
no quoting mess at all
 
@Waxi SQL does not use single quotes for strings and does not use double for objects either.
in fact, SQL quoting isn't even standardized and varies between servers
 
sql quoting is fooking dumb m8 ^
I also prefer single
 
119
Q: What is the difference between single and double quotes in SQL?

VineetWhat is the difference between single quotes and double quotes in SQL?

 

« first day (2161 days earlier)      last day (2786 days later) »