« first day (2001 days earlier)      last day (2963 days later) » 

12:00 AM
Somewhere I have my JS/Bison thing that turned SQL queries into querySelector so you could SELECT .button as btn FROM .title WHERE btn.active == true
probably the most useless thing I've done, and that's saying something
 
I'm not sure if I like or hate that.
 
Better than the current DOM
 
Needs more $'s
 
even I won't use it
 
$.select('.button').as('btn').from('...
That was more of a joke about awk.
 
12:03 AM
@rlemon oh, thought that was supaQuery
 
since that took me like 0 time to do.. just use the yeoman generator and copy someone's .tmlanguage
 
@SomeKittens ohh god no, that is supaUseful
 
Chrome added support for calc() inside calc() in CSS (also present in Firefox Nightly) http://codepen.io/malyw/pen/ONOqwv https://t.co/jOKaVK9XuU
 
TimeAfter makes no sense because it invokes like 3 things to slow down the timer that it doesn't need to if you just use a recursive timeout on the function itself
 
why would anyone want calc inside of calc?
 
12:05 AM
so it is a convenience over function
yuck
 
yo dawg I heard you liked to calc() in your calc() so I nested a calc() so you can calc(calc())
 
and looking over my github I realized I only use like 5% of the code I've written
:/
 
for that double calc()ed-in goodness?
 
looks neat. but who would ever use it?
 
I'll bookmark it in case I ever need a style for a human trafficking website.
 
12:18 AM
@rlemon Is that intentionally awful?
 
lol
 
Why are some of the shadows pointing the wrong way
 
to show that they can!
 
was the first time I figured out how to layer shadows, and probably the most useful thing I did with it
		!(i%3)&&(s++);
ohh yea
love it
 
12:23 AM
y u no i%3||s++;
 
cuz.. uhhh
shut up
 
for readability.
 
yes.
 
lol
3 years ago
I was basically new
:/
 
12:25 AM
back when you were but a lime.
 
yes, you are older.
this works.
:D
I really don't care about my age. so much as I do about the concept of time getting shorter. as I get older time seems to pass quicker.
when I was a kid a half hour was ages
now it passes in an instant
 
soon it's a fast downhill roll to death with no brakes.
 
a year seems shorter.
it is disconcerting sometimes
 
I thought I would have grown up by now. Adulthood was a lie.
Comedians have been telling us for years, but we didn't listen.
 
@Luggage my theory for that is 25 is the last age we look count down to. everything else we count up to
 
12:29 AM
25 is a very early peak
 
like when you are a kid you are thing "two more years till I'm a teen" and you are excited, 25 is the last real goal. cheaper insurance. then you count till 30, then 40, then 50, then retirement, then dead
 
ahh, i see.
 
it is the last age you look forward too
the rest you just count down till
 
@rlemon I stopped looking forward to age at 18
 
I think 21 was the last age I looked forward to.
 
12:30 AM
maybe my first statement was wrong
@KendallFrey 25 for me.
 
that sounded way more sad than I intended.
 
insurance dropped by like 60%
@Luggage no I really get it
now it is a count down. not a count up
 
but 20s and 30s are pretty even, really.
 
you are excited to be an adult.. then you get there and realize it is not what it is all cut out to be
 
tell me about it
 
12:31 AM
every year there are few more items you can put on the list of being above giving a fuck about.
 
Adults are just kids with responsibilities
 
> You’re born with a ton of fucks to give, so you spend them like a kid with a credit card. You give fucks about your friends, about your grades, about your fashion sense, about strangers’ opinions.
You give way too many fucks about way too many things. You have so many. Then, as you get older, you have maybe 10 fucks per month, so you learn to budget them.
You allocate fucks to family and career, but there aren’t enough fucks to give to the newest fads. Oh, someone at work has something they need my help with that’s outside my job title?
my favorite "quote"
 
> You’re getting like 1 fuck a year, and you have to make it last.
out of context ftw
 
lol
 
            /\
___________/  \__
Fucks per Message
 
12:41 AM
was that spike when someone mentioned jQuery?
 
A friday.
 
I have to poop
excuse me
 
This chat uses a websocket on "wss", does this mean that it's encrypted?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
I see no https
 
I didn't think so
 
12:45 AM
might be with wss?
 
but the network tab of my developer tools says it's on "wss"
 
I'm just pointing out
 
why would the websocket be the only thing encrypted? that's weird
 
@rlemon interestingly, it links to https when you're on an https page
 
til
 
12:47 AM
yea.. i wish it just forwarded you to https. I see no reason not to encrypt.
waste cpu cycles of the NSA, CIA, etc.
FDA..
 
EPA
 
DMV
 
MOB
 
What is that?
 
the mob?
 
12:51 AM
ohh, not a TLA?
 
well if you're talking about money over bitches
 
Three Letter Acronym :)
 
yeah MOB could mean money over bitches
 
I don't think that's a real agency, but I could be wrong.
 
dunno about MOB, but I do know about MOP
 
12:53 AM
well 2pac said it was
 
and look where it got him.
 
maybe the secret MOB organization felt the need to shut him up
hmmm?
 
now we're all screwed, thanks
 
damn SEO
 
Anonymous
    //parse commands block
    var curChar,
        directoryPassed,//not yet
        expectGetValue,
        getContent="",
        getStarted,//? not started ($_GET)
        inPort,//not reading port
        portRead,//port not read yet
        state=0,//first state
        text="",
        urlTree=[];
    var url="wss://stackoverflow.com";
    for(;;){
        curChar=url.charAt(0);//first char
        if(state===0){
            //expects http... ws... file or https, for example.
            if(curChar===""){
 
Anonymous
1:00 AM
I was just replying to a question
 
Anonymous
urlTree
 
Was the question "what is the maximum you can paste in chat?"? :)
 
Anonymous
Hmm... @Luggage, but
 
Anonymous
there are persons
 
Anonymous
who do the same here :)
 
1:05 AM
@Luggage The Lawrence Arms?
 
Sure, why not.
 
1:58 AM
!!youtube bohemian rhapsody
 
can someone please explain how this code works, how are the values compared. HOw are the values passed to the function? console.log([3,20,1000].sort(function(a,b){
if (a < b) {
	return -1
} else if (a == b) {
	return 0;
} else {
	return 1;
}
 
sort is a native JS function
each engine decides what sort algorithm to use
 
Hey guys
 
it then passes values into that function as that algorithm requires
 
2:02 AM
Anyone know of any projects that anyone needs done immediately and willing to pay?
I'm in need of a quick job.
and freelancer is full of a bunch of idiots that fill up the bids with I'll do it for a dollar ..
 
i still dont get it. there is an array with 3 values, how are the values passed to the function
 
@lovetolearn think about a basic sorting algorithm
you need to compare values against other values to see what order they should be in
that's what the sort function does when you call it. It has a default comparison function, but you can pass in your own one (as in your example)
try [3, 20, 1000].sort(); to see what that returns
All you are doing is saying, "hey JavaScript engine, when you sort this array, use this function to compare values."
 
user2620028
the values inside the [] symbols actually make it an array of values, and the .sort method is a method being called on that array
 
i know what [3, 20, 1000].sort(); returns which is why i am using the function
.sort does sort them in orderfrom smallest to largest
 
try this:
[3,20,1000].sort(function (a,b){
    console.log(a, b);
    if (a < b) {
	return -1
    } else if (a == b) {
	return 0;
    } else {
	return 1;
    }
});
also, in this case .sort().reverse() is probably a good solution
 
2:21 AM
He's asking how the function is able to get the values from the left-hand assigner (I may be saying this wrong, self taught);
so, might be useful to show how you would create your own function, like: function call_me(){ //logic }; and how you can run: [3,20,1000].call_me();
I personally don't know how it's done either, as I've never done it
 
@SterlingArcher The galaxy currently appears to be about 13 billion light years away. But in fact, is nearly 30 billion light years away.
 
ohh, w3schools, didn't know what to call it so took me a few searches
3
Array.prototype.my_sort=function(){return this.sort().reverse();}
 
Actually, when you call array.sort(...), what you put in parenthesis is called a "callback". You're giving a function to the JS engine. The engine is going to call that function and pass it values, so you have to build your function so that it accepts and uses said arguments.
 
Is there a global prototype, that is used by objects, arrays, strings and all that jazz?
 
Object.prototype
but don't add to it
 
2:34 AM
ohh, Object is used by them all, didn't know that.
Was just curious
 
!!> Object.prototype.toPoop = function() { return this + 'poop' }; 'hello '.toPoop();
 
@rlemon "hello poop"
 
@GregBorbonus in js everything is an object
for all intents and purposes
 
Woah! I don't know what JQuery is doing, but when I added a function to Object.prototype in the console here, it broke everything.
 
ohh, now I have to try that
 
2:37 AM
adding to the Object prototype is dangerous
it is highly discouraged
 
Hey, can you guys help someone who hasn't worked on algorithms in forever?
I'm trying to design best strategies for that HunieCam game and I think I'm onto something :)
 
ohh, I don't want to do it for real, it's better to make a new prototype
and add to that, like jQuery
but it's good to know how it's done
thanks @rlemon advice taken to heart, don't do it./
 
heh
np
 
I want to form a group of N people, where person 1 is friends with person 2, which is friend with person 3... which is friend with person N, which is friend with person 1. Basically, a friend cycle of N members.

I currently have an array of people where each person has a property "friends" which is an array of their friends.
 
so, multi-layered array
 
2:43 AM
circular buffer?
 
sorry, multidimensional
So, where is this going and what is the question?
 
I think I managed to make a list of a persons's friend's friends that don't include myself or my own friends
But making that algorithm work with Nth friends is where I get stuck... just a sec
I'll show some code
// create friends arrays
for(var i=0; i<girls.length; ++i) {
  var me = girls[i];
  me.friends = [];
}

// fill friends arrays
for(var i=0; i<girls.length-1; ++i) {
  var me = girls[i];

  for(var j=i+1; j<girls.length; ++j) {
    var her = girls[j];

    if(isFriend(me, her)) {
      me.friends.push(her);
      her.friends.push(me);
    }
  }
}
So I end up with an array of objects, each object has a property called friends which is also an array of objects, each with their own friends...
Here's how I find my friend's friends:
var secondFriends = function(me) {

  var meAndFriends = me.friends.concat(me);
  var subfriends = [];

  // for each of my friends
  for(var i=0; i<me.friends.length; ++i) {
    var her = me.friends[i];
    var onlyHers = her.friends.filter(x => meAndFriends.indexOf(x) === -1);

    subfriends = subfriends.concat(onlyHers);
  }

  return subfriends;
}
But of course, if multiple of my friends are friends with the same person, I get duplicates... and I'm already lost in my own thoughts ^^
Perhaps I need to use Sets...
You know what, I'll take a pen and pencil and make diagrams for myself instead, graph theory isn't easy to work out through chat ^^
 
3:42 AM
36
Q: Is watching porn in university a crime?

Juan CarlosI am about to start my graduate studies in an American university, moving from my native Peru. Over the course of my under-graduation, I have developed this strange habit of watching porn at odd times, say afternoon, or morning. Sometimes I watch in classroom too, of course, reducing the volume t...

 
4:06 AM
how do I add an import in a babel plugin vOv ? file.addImport created and identifier
 
4:53 AM
@AwalGarg @FlorianMargaine @copy Hnnnnnnghhhhhhh wiki.osdev.org/Main_Page
You guys have probably known about it for a while, but I just found it, and it feels like I'm a child getting all the free ice cream in the world!
 
@William That was... interesting. Made me realize I could be in trouble because I did browse 4chan and play HuniePop on our student club's computer, making minors in the room see adult content. The more you know. I still think it's dumb that a 16 year old isn't allowed to look at porn, but whatever.
 
Hi guys
 
anybody here who have used this jquery chart:pureexample.com/jquery-flot/tooltip-chart.html
 
github.com/darkyen/babel-plugin-looptar @Loktar now drunk you are available as a babel plugin.
mother of god you were still awake to star it o_O
 
5:12 AM
I don't use jquery, can't help you.
I'm curious as to why ES6 Sets have a length property of 0 and a size property that is the number of values in the set.
But I guess I should ask that when there are actually people awake :)
 
@JacqueGoupil set is not an array
also I think you are using babel :P
Set#length is undefined in chrome
 
@SomeGuy all the old ice cream, you mean :P yeah, that wiki is great indeed, even if you are not building your own OS, just wanna know more about them.
 
@AwalGarg hangouts
 
5:43 AM
@Abhishrek Actually, I was reading the MDN :)
I hadn't actually checked if chrome followed it.
 
6:15 AM
Is NodeJS a networking library to write server programs something like this‌​?
 
6:28 AM
no
 
@CSᵠ no ?
 
@Abhishrek no.
 
@CSᵠ no about what ?
 
@CSᵠ =(
 
6:31 AM
:)
 
what's the point in a try...finally?
or any combination of try and finally
according to MDN, finally runs in any case
it's just there in case you want to make unreadable code
as it is written after a chain of catches, but regardless it runs as if it wasn't part of any clause
try {
	//...1
} catch( e ){
	//...2
} finally {
	//...3
}

//same as

try {
	//..1
} catch( e ){
	//..2
}
//..3
or is there some language design going on that I really don't understand...
 
iirc finally should be used for cleanup
 
cleanups?
what is there to clean up?
 
thinking of a practial example
good question actually
 
or is it a more deep tech term? Like memory cleanup and stuff..
I was wondering because I saw this:
let x = (() => { for (var i = 0; i < 5; i++) { try { return i; } finally { if (i != 3) continue; } } })(); console.log( x ); // ? #js
mdn'd finally and was really wtf. Maybe it's useful there...
and that definitely just logs 0, right?
!!> let x = (() => { for (var i = 0; i < 5; i++) { try { return i; } finally { if (i != 3) continue; } } })(); console.log( x );
 
6:42 AM
@towc "undefined" Logged: 3
 
so finally does do something unexpected
maybe it ALWAYS runs even if you're getting out of the stack?
even from a memory management perspective I don't see how can this be an advantage
 
Hello anyone can help me i want fetch all airport of us using google api .can any one send me code
 
@AkashDeep Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
always is on point
 
@towc it is a common hack used in injected code to break out of isolation
 
6:48 AM
@AkashDeep sure. How much are you going to pay?
@AwalGarg can't tell if kidding or not
example?
 
not kidding
!!noodles or cold-drink and chips?
 
@AwalGarg noodles
 
still, example? :P
 
the code in the tweet is the example
 
how is that breaking out of isolation?
if the code happened to finish in a try you can inject a finally with the grand result of remaining in that stack?
 
6:51 AM
!!> let x = (() => { for (var i = 0; i < 5; i++) { try { return i; } finally { } if (i != 3) continue; } })(); console.log( x );
 
@CSᵠ "undefined" Logged: 0
 
^
finally ALLWAYS executes once entering a try
 
@CSᵠ I got that. I don't see why anything like that would exist tho
 
there are plenty of ways of exiting the try
return, throw
cleanup
classic example, make sure you really close the file opened
 
!!mdn cleanup
 
not a term, more like cleanup on isle 5
 
that doesn't make me less confused
 
now me using free account
@towc
 
congrats @AkashDeep
 
@AkashDeep if we're going to write code for you, we're going to get paid
 
user5992646
6:54 AM
why isn't the twitter follow button not working straight out of the box? jsfiddle.net/0e3gs030
 
i work for free, i like doing it for hours and hours in a row
3
 
@towc you can me send link
 
@AkashDeep one better way to say what you said is "how do I fetch us airports via an api"?
 
yes
 
shit
 
6:55 AM
@AkashDeep so you're going to pay me? How much?
 
user5992646
Could somebody have a look into my problem?
 
@town you cann't help me without pay
 
he can't
 
@AkashDeep I can't write code for you. But I can guide you through writing your own code
 
user5992646
@towc could you do that for me too?
 
6:56 AM
yes thank you
please guide me
 
@TodoPertin reading through it. Try logging the values every now and then to see if they exist
I think you're missing some html...
 
@AkashDeep where do you live in India?
 
Just read the news this morning, and I fall on @FlorianMargaine's name: nodejs.org/en/blog/release/v5.10.0/…
11
 
well, I gotta go to school. Cya people
 
user5992646
@towc It is copied entirely without any mod from twitter's official website. It used to work earlier.
 
6:59 AM
cya @towc
 
@TodoPertin but does it say that you should also add something else?
try to look at it and find out how it works
there's definitely something missing
 
Chandighar
 
nothing in your html with that id
 
user5992646
@towc ok I'm going to have one more look. thank you.
 
@AkashDeep oh nice! Do you own a bike?
 
user3119231
7:00 AM
o/
 
and you're also looking for the first script in the HTML. Maybe due to quirknesses in JSFiddle some extra scripts are added
 
@towc you are being late for school. rush
 
@AwalGarg but moooom
 
towc knows his mom is big
 
user5992646
7:04 AM
OMG what has Twitter done to its own follow button. It's not working anymore.
 
user5992646
They have screwed it up big time.
 
@aw
@AwalGarg sir please help me
 
Yo mamma's so fat, when you say she sits around the house, you mean she sits around the house
 
@awal sir
 
user5992646
@AkashDeep what do you need help with?
 
7:05 AM
@AwalGarg sir, please, help them
 
user5992646
@AwalGarg sir please help me too. Twitter follow button is not working right out of the box anymore. why would they do this to themselves?
 
ok ok shhhh, I will help. what is issue akash?
one by one pls
 
akash you're in line with ticket #1
Todo you're in line with ticket #2
 
i want fetch all airport of US using google api
 
sir @AwalGarg helping at the moment, please stand by
 
7:08 AM
@AkashDeep what?
 
user5992646
@AkashDeep that's such a piece of cake
 
@AkashDeep please clarify your question, what does that mean, exactly?
 
I want fetch all US airport list using google api in javascript
 
user5992646
@AkashDeep wow!
 
@AkashDeep you can use something like maps.googleapis.com/maps/api/geocode/…
 
user5992646
7:09 AM
Now it's my turn to get helped.
 
@AwalGarg Sir, but my chacha ji runs an 8-star hotel called Airport
 
user5992646
here is my fiddle: jsfiddle.net/0e3gs030/3
 
@AwalGarg this api not return data
 
He doesn't want that to show up, sir
 
@littlepootis plz ask your chacha ji to shutdown the hotel?
@AkashDeep it is returning data for me :/ what do you see when you access that link?
 
7:11 AM
no sir he has been running for a few quadrillion years. He can't stop.
 
HAMMERTIME!
 
user5992646
@CapricaSix !!shut down
 
@AwalGarg it return only 5 but i want all listing
 
Look it up, dood
 
user5992646
@AkashDeep it is quite easy to add more airports to your code now. you have been given everything.
 
7:13 AM
@AkashDeep oh, ok. wait, let me check
 
@AwalGarg Ok sir
 
user5992646
@AwalGarg could you have a look into my problem, sir?
 
Todo you are now #1 in line
 
user5992646
@CSᵠ I hope I am.
 
7:15 AM
Akash has been helped, he now has to use the help himself
you are next, hang on
 
user5992646
@CSᵠ not looking good for me though. No positive signs from the Sir.
 
user5992646
yet
 
Sir Awal's time is very valuable, please have patience
 
user5992646
@AwalGarg thanks for ignoring me.
 
7:16 AM
todo is tiny avatar'd for me :( wait fixing
 
user5992646
@CSᵠ ok I love being patient.
 
user5992646
@AwalGarg wow thanks!
 
@TodoPertin please be respectful here, nobody has to help you
Sir Awal is helping out of his own kindness
 
user5992646
@CSᵠ okey dokey.
 
7:18 AM
@TodoPertin ok I see your fiddle. what exactly is the issue?
 
fuck
 
user5992646
@littlepootis haha some video that was.
 
user5992646
legendary rebecca black.
 
user5992646
@AwalGarg can't see the twitter follow button. Just the text which is not clickable.
 
@littlepootis that was clever, clicked it regardless the obvious possibility
 
user5992646
7:21 AM
those poor girl friends.
 
@TodoPertin as the api docs say, the script relies on the fact that the script is being eval'ed globally inline. jsfiddle runs your code in the onready handler of document, so it doesn't actually run the script at all.
try it on a simple html page
 
user5992646
but it's not showing up on my website as well?
 
link to website?
 
user5992646
It used to run on JS fiddle too.
 
7:26 AM
@DenysSéguret hehe :)
 
@TodoPertin on line 217 in the source, you need to add the script inline. that's what global inline eval means
 
user5992646
@AwalGarg you sure it will be fine then?
 
yes
 
user5992646
Try. I will get back to you after that.
 
user5992646
Unfortunately it's still not working.
 
user5992646
7:32 AM
God, I'm so unlucky.
 
I just locally replaced your code in the debugger and it is working here. Are you behind a proxy or something?
 
user5992646
Nope.
 
how can i get the javascript function from a style attribute?
 
@rlemon @Loktar @KendallFrey today is another day
 
user5992646
@Orion here: how to get javascript function from a style attribute google.com/…
 
user5992646
7:43 AM
@FlorianMargaine lol everybody loves this.
 
user5992646
I agree she has so much talent.
 
this is in the style attribute:
left: calc(((8.33333% - 11px) + 12px) * 5); width: calc(((8.33333% - 11px) * 3) + 24px); top: calc(((10% - 10.8px) + 12px) * 0); height: calc(((10% - 10.8px) * 3) + 24px);
what i get using: $(this).css("height"); is: 171px
using: $(this).attr("style"); i get the first string
however can i get the non-calculated value from the style attribute?
I'm using the angular material grid list, but it does not give me the functions to calculate the correct height etc. So I decided to get the function from the style attribute and change it so I can calculate the proper height myself
 

« first day (2001 days earlier)      last day (2963 days later) »