« first day (1678 days earlier)      last day (3497 days later) » 

user1596138
15:00
@rlemon Job security
12 mins ago, by rlemon
@KarelG asked my boss why, he said he recalls something about "can't reliably start from 0"
@Neil GW2 characters are customized by gear, runes, sigils, consumables, traits, weapons, and skills. You can make a combination nobody uses quite easily.
@Jhawins read the couple below that as well
user1596138
Every time we interview a programmer they end up not knowing how to count
user1596138
I did
15:00
@ssube I think _.omit works quicker for removing a single key
@rlemon maybe it was originally 0, then the first properties were removed
@FlorianMargaine nope.
literally the reason was there was a bug and anything <3 would fail (according to the boss man)
I got another dumb question. It seems easy to create a "class-level" function, but how do you make an instance function?
the bug has since been fixed, but the legacy enum remains
@corvid what's the difference? do you mean static vs instance method?
// easy to apply to the whole class.
Mongo.Collection.prototype.getName = function () { }

var MyCollection = new Mongo.Collection('my_collection');
// how do I make any instance of `Mongo.Collection` have instance level methods?
@ssube I guess its equatable to @classmethod and @staticmethod in python
@corvid #2: you don't. Those are evil.
What you do do (yes, I said doodoo) is use class Foo { static bar() { ... }; baz() { ... } }. Static (constructor) or instance (prototype) methods.
Don't attach methods to the instance itself at runtime. What is this, lua?
Your terms are also confusing me, because "instance level" is prototype.
The first example is an instance method.
maybe a silly Q: can I automagically detect which timezone I'm in so I can tell linux to auto-set the clock?
@rlemon yes
do you know what tool it is?
15:07
no
google just keeps telling me how to set it, not where to get the info from
@rlemon GeoIP?
@BenFortune I could, but there are so many services and different ways to consume the data
I was hoping to get a 'here, just install this and run it' solution
have you tried jquery?
@ssube in that case I am probably just having trouble referencing instance variables within the... instance... this is getting redundant
15:09
ntpdate -b -s -u pool.ntp.org
seems to be the winner
Good morning!
@corvid are your methods bound to an instance or are they just attached to the prototype and nothing else? Your this is probably wrong.
@rlemon i don't get that link
I'm the only tech person in today. I just got to work and I've already had to fix 4 computers printer settings ._.
halp
@KarelG mouse over his face.
@SterlingArcher install adobe reader
15:10
lmao
how about i install my foot in your ass
I think I am using this wrong, like every new javascript user
@rlemon No, he needs Google Ultron
this in javascript is like a fine wine
ultron?
Google no! THEY JUST MADE A MOVIE ABOUT THIS
Y
15:11
Ultron is scientifically proven to run up to 25% faster when run in pink. Use it in pink now!
So I have to wear lingerie now when using google products?
The internet is getting very weird
you don't already?
15:13
>
not wearing lingerie while using google is weird
/
\
Ultron brings to you the best in security and encryption, directly taken from IE 5.5.
15:13
user image
6
!!learn ^ "<>http://iconizer.net/files/DefaultIcon_ver_0.11/orig/arrow-up.png"
@SterlingArcher Command ^ learned
we need this to be the most starred message.
@rlemon why? I don't get it
this'll do nicely
We are ruining chat, but it's good
!!tell FlorianMargaine joke
15:15
Hey Javascripters. Question for you.
I have an AngularJS typeahead with typeahead-editable="false".
I need to clear or invalidate the input if someone enters text that doesn't match the typeahead list.
Does anyone have a solution?
just use jQuery
!!afk making clouds
onblur input.val('')?
is it possible to create python-like decorators for javascript? They're first class objects, yeah?
@Loktar that's so cool
15:23
yeah I love it
going to use it today actually
@Loktar let me know how that goes
I'd love to use it in our new client-only project
@copy you asked for the recording so here is it youtu.be/ha2OoNQAOu4 but its more or less the "highlight"
I don't understand a word
well expected :P
15:27
@SterlingArcher this user has 7k rep... everything in questions...
209
Q: Get the Current Year in JavaScript

Satch3000How do I get the current year in JavaScript?

That's bullshit
@dystroy and no tag rep, and all shitty questions
@Abhishrek now I know how to pronounce your name :D
@towc lol
And none of my answers will ever get as many upvotes as this answer...
414
A: Get the Current Year in JavaScript

Jason HarwigCreate a new Date object and call getFullYear new Date().getFullYear() // returns the current year

15:28
not enough jQuery
@dystroy I'm upset now D: That's so not fair
wow
I listened to Horizon
@copy I like the name
fish are cool
exactly XD
15:29
@Neoares Nice
@dystroy : if people doesn't know how to get the year, they google it, comes at that SO post, and sees the answer. So * upvote *
@Abhishrek some words really sound like english 0.o
like, "usually"
15:30
@towc the ones i speak ?
JavaScript/jQuery:

var currentYear = new Date().getFullYear();
@Abhishrek also, other than the technical ones
i can't speak hindi without using english anymore
@rlemon Look at the edit history xD
also, you don't have a word for bank?
jQuery:

var currentYear = (new Date).getFullYear();

JavaScript:

var currentYear = new Date().getFullYear();
What???
._______.
What is happening
@rlemon nope
15:32
@FlorianMargaine banana
wait, this works?
weird
What if you only want the HalfYear
why wouldn't it?
I thought the precedence order would be different
i.e. it would do new (Date().getFullYear())
noob
15:33
the revision history is blank :o me no access
that's why RPN is badass
:DDDD
@towc do not edit after posting it
15:35
yeah, sorry
more than once .... please
was it more than once?
twice everytime
I like being able to see deleted answers
sorry then
15:36
Some of them are absolute abominations
I hate not being able to do so
@towc its cool
i used to do it myself
@BenFortune Any idea why I'm getting a 404 with this link? Seems to happen a lot with stuff linked in here!
#include <iostream>
#define CALL(f, x) f()

int something_meaningful()
{std::cout << 42 << std::endl; return 0;}

int main() {
  CALL(something_meaningful, \
            (. Y .)
  );
  return CALL(something_meaningful, (\
             meow-  /\_/\
               ____/ o o \
             /~____  =ø=  \
            (_______)__m_m)

  );
}
15:39
you aren't authorized to see the content
@danabnormal Need 10k rep to see deleted answers
@BenFortune cheers both!
int something_meowningful()
@BenFortune what I don't get is why these are not being closed today
are they grandfathered in?
or do people just not want to close something with 3k upvotes
@rlemon yeah
15:41
No, you can still close them can't you?
there's some meta thing about that
that is stupid.
@BenFortune yea ofc, but they might get re-opened
Blame the people that re-opened it
15:41
the "don't delete anything" metatools whine and cry when you close high-rep old questions
it isn't being deleted.
it is being closed as off topic
because.. well.. it is now off topic
specifics elude them
also they don't want to lose the rep
If it's not deleted, you keep the rep though don't you?
after a certain timeperiod you don't lose rep afaik
@BenFortune yes
15:44
!!afk it is madness I tell you.. MADNESS!
I just noticed that Facebook generates all their JS files with PHP
Facebook's code is a jungle of disappointment
haha :D
why do you think that Nick
@NickDugger you are a disappointment
hey @Abhishrek you changed your name and avatar :D
did you marry already?
15:46
@ziGi nope
avatar and name are meh transitional
congratulations
was reading zirak's code for the bot. It looks more like a comedy book for nerds rather than some serious code XD
read above, I'm not repeating this crap
bot.personality.bitch :P
@towc that's what happens when you fall into the lure of regular expressions :|
I can't quite see that far back without my glasses
//warning: if you have more than 7 points of super-sentitive feminist delicacy,
// don't read this file. treat it as a nice black box.

//bitch in English is a noun, verb and adjective. interesting.
XD
15:52
/*
 these properties allow FF to function. without them, a fuckfest of
 inexplicable errors enuses. took me about 4 hours to track these fuckers
 down.
 fuck hell it isn't future-proof, but the errors thrown are uncatchable
 and untracable. so a heads-up. enjoy, future-me!
 */
yeah, lol
enuses lol
// because people are bad at reading instructions, accept a wide range of
// values for the command
yes, we take extra leeway. shut up.
meet Winded Weasel. he helps you make decisions and he answers questions.
ok, I'm done
15:54
Flickr’s seemingly impressive image recognition system is making some embarrassing slips when identifying black people and concentration camps
LOL
It describes how a portrait of a black man named William got auto-tagged as “blackandwhite” and “monochrome” along with “animal” and “ape”.
Elsewhere, pictures of the Dachau concentration camp were tagged with “jungle gym” and “sport”, while one of Auschwitz was also tagged as depicting “sport”.
''/*Z̶̿̄ͮ̅̎̽Ą͖̺͇̫̮̯̓͌̒̓ͬL͚ͩ́͞G͍̻ͣ̋̾ͥͦ̍ͦO̭̭̪͔̣̒͒̏̔̋̔̚ ̙̻̖̱̈́̍ͫ̓̄̃͞I͉̻̽ͧͣͅS̶̺̦͖ͤ͗͆̊͛̓ ͩ̎̂͋̅͆̚͝C̄̀ͥ͋̔҉̞̥Ȍ̠̤̳͉̺͒̽̓̄̓͝ͅM̓͑̾̐I͎͉̥̤̱͓ͦ̑̋̓͆̽N̙̥͖̯͔̯G̲̹͓̣͙̾̑͊̆ͭ̀̌*/''
i'm loving these comments
@towc why are southern girls so hot
wut???
here we say exactly the same about northern ones, so enjoy yours
@towc haha I don't enjoy Dutch girls that much
because they're closer to the equator?
15:58
Torino isn't that "south" in my opinion though
anyone have any thoughts on google charts in comparison to other charting libraries?
@danabnormal easier but less powerful
Could you please stop making jokes on Auschwitz and Dachau. Thanks from germany.
@springfeld 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.
@springfeld who's making jokes?
15:59
@springfeld who made a nazzi joke?
@GNi33 italy is a southern country, that's what I was referring to
Turin is higher than New York from a latitudinal perspective
there was one comment copy-pasted from an article and it was very far away from being a joke. but it's important to complain about something I guess
@ElliotBonneville I'm using them extensively for a dashboard as - like you say - they're very easy to implement and are nicely interactive for management, but havent had a chance to stop and compare yet
@Neil yeah, but you are talking about america right now, not europe
Thanks from Austria
16:01
@danabnormal They're nice but if you like at like D3 for example it can do so much more
*look at D3
@ziGi yeah, I know what you mean. for me northern italy is still very different from the southern parts. I can't talk about the hotness of girls though
@ElliotBonneville i've got a few d3's cobbled together from sample scripts, but the way it applies data to the chart is a mind f**k for me
@springfeld Germany sucks
!!afk
@danabnormal Yeah, if you can get past that it's amazing though :-)
@BenFortune and it's always raining in the UK and your food sucks!
16:02
Why is Austria a separate country from Germany when the same language is spoken?
@ziGi And so? I associate new york with cold temperatures and high winds
@ziGi I know, right? how weird is that
@GNi33 you take that back! its gloriously sunny right now and I had fish and chips last night. FISH AND CHIPS!
And above New York is Canada for crying out loud
@Neil it's not comparable, we have the hot part of gulfstream you have the cold one
16:03
@danabnormal NEVAR
In before meta post chat is all racists
@GNi33 true story, same goes for USA and Canada
and all the lation countries in central and south America
nah, I love the UK. Food was delicious most of the time (and yes, the fish and chips are awesome) and it didn't rain this much
Turin is one of the coldest cities in Italy, just sayin :P
@ziGi they have also french and italian speakers
16:04
in both senses
Austria right now on the other hand, that weather is making me sick... our food is okay though
@KarelG where?
@towc I know. :(
ever been there?
@ziGi Austria was kicked out of Germany when they found out the Austrians weren't capable of building cars.
16:04
@GNi33 went to a club in vienna, cant remember its name but it was under a bridge and.... odd.........
a club under a bridge... huh
big one?
@ziGi the region around lausanne
New England is the best, you all should move here
@ssube that's so race - ist
@GNi33 kinda like a cavern, like a railway tunnel. dont think it was that big.
16:06
@KarelG in Austria?
@danabnormal They didn't beat you that hard with the club I hope
well, there are some of those
yes
I'm not that much in Vienna myself though
@KarelG they should be parts of France and Italy then
16:06
lol
@ssube I... but.... wah...
I think a lot of cultural traits are related to the language people speak + neighboring countries
;_;
I have to completely disagree on that
what do you say about russians and ukrainians?
@GNi33 what? it's true
16:07
austria isn't the only country with such dividion. My country, belgium has 3 regions which differs both culturally and on languages ( language - region => Flemish - Flanders <> Wallon - Wallonia <> German - East Kanton )
@ziGi to be fair, Germans and Austrians don't really speak the same language
name a good austrian car company
United kingdom is best kingdom. sips tea
the dialects differ too much :D
@ssube Puch
North Korea is best Korea
16:08
@GNi33 a good one?
doesn't exist anymore, but they used to build great stuff :D
@GNi33 but that's not true, take for example people from hamburg and bavaria, completely different dialects
@GNi33 it might have been flex cafe...
@ziGi yeah. ask a bavarian if he's a German
@GNi33 the language is still Hochdeutsch
16:08
@danabnormal that's very possible
one of the more well-known clubs
@ssube Not a car but KTM
@ziGi depends on who you're asking
I wouldn't say that I speak "Hochdeutsch", not at all actually, as "Hochdeutsch" is a dialect as well
in north-west italy we don't know what's happening in the rest of italy, not even north-center or center-west italy :P
@GNi33 the country officially uses Hochdeutsch
we're tooooo different
16:09
Bavarians most likely speak "Bayrisch"
@ziGi Austria too
@BenFortune gawd bless her madge
that sounds ruder than it was meant to
@GNi33 so officially it's the same language
it's said that in italy we have a new dialect every 5km
@ziGi yes, officially it is
@towc people in northwest of italy talk about dividing italy in half from rome downwards :P
16:10
if you tell a Dutchman though that he speaks german, then its not true
So that shouldn't surprise you
officially just doesn't mean crap
one side of turin hardly understands the other side, even if we technically speak the same language
although the languages are highly similar in words and grammar, although Dutch one is simpler
of course we speak German in Austria
16:11
@Neil yeah, luckily that project fell apart
@ziGi A drunk dutchman can speak german ("drunk" for a dutchman means a BAC < 0.01%)
just a couple steps to complete fascism if those people take power
nah, don't think so
it's just that then we won't get any of the resources from that part of italy, and they won't get any money
@ssube haha not true at all
the movement towards right political ideas all over Europe is pretty intimidating
16:12
they're the same ultra-conservatives who would start renaming cities to sound more italian near the border of france
in the north all we do is wine and potatoes. downsouth they may not have the best engineers and schools, but they do pretty much everything
@BenFortune they make cars, or "a car", too xpowerdays.sperrer.at/fileadmin/redaktion/media/images/…
0
Q: How to exploit "onclick" XSS with restricted set of unfiltered characters

chrislampI have a challenge for you. I want to exploit the following XSS vulnerability: Request: GET /some/url'-alert(1)-'=1 Response: <img src="/some/image.gif" id="oneID" border="0" onclick="somefunction('InsertImage','/some/url'-alert(1)-'=1&amp;some=some','40px','5px',event)" /> Unencoded chars: '...

These questions make me mad
@SterlingArcher this is why I won't spend enough time on main to get 10k rep
too painful
@SterlingArcher You want another one ? This one just fresh
2
Q: How to make an if statement do something if a String contains a searched text

Corwin AshleyI want to be able to do this: var input1 = prompt("INPUT:"); if(input1 === "run"){ alert("You cannot do that"); } On the prompt lets say you enter "run taco" How would I make the if statement activate if only part of it matched the string.

16:17
oh god D:
@GNi33 That barely looks road legal haha
I find it funny that anti-virus stuff like that is spammed. The slight irony amuses me
well, it's McAfee
Mcafee antivirus customer service phone number usa
16:23
their founder is still hiding in south america, no?
homicide or something like that, right?
he was a diddler and getting sued, so he dipped out of the continent
@ssube I think it was actually the other way round
He was living in Belize and his neighbour got shot or so
so he went "undercover" for a month or so and fled back into the United States
16:33
something like that.
His software is bad and he should feel bad and also he's a creep.
@FlorianMargaine ^ nows your time to shine!
D:
@SterlingArcher We've made a change (still showing an image, as it' ssupposed to be done in CRM). Can you kindly please remove the downvote so the guy next to me can join SO for real? — Konrad Viltersten 5 mins ago
really makes me want to not remove my downvote. I did vote, but he keeps pestering.
16:51
The information represented in the table pictured could just as well be represented by, say, a table. — ssube 22 secs ago
Did you just add jQuery, a 90kb library, just to calculate width? — Sterling Archer 19 secs ago
._.
I think my answer my be wrong. if (1 < 2 < 4) yields true, and (1 < 2 < 0) yields false
Is it doing a linear comparison or is it just comparing the last 2?
it's doing tricksy things
1 < 2 < 3 is true but 1 < (2 < 3) is false but (1 < 2) < 3 is true
so I think it does left-hand grouping, then compares the boolean (0/1) to the next
so (1 < 2 < 4) evaluates to (true < 4)?
!!> (true < 4)
@SterlingArcher true
!!> 1 < 2 == 1
16:59
@ssube true

« first day (1678 days earlier)      last day (3497 days later) »