« first day (1697 days earlier)      last day (3257 days later) » 

12:06 AM
@rlemon oh my goodness. This is incredible
100% my new filler text
 
ohh 2001
how I miss thee
 
It was a simpler time
 
12:33 AM
@rlemon so where were we?
 
Mindblow: We have no idea what the Milky Way galaxy actually looks like. We're inside it.
 
we have an educated guess, not "no idea"
we assume we look a lot like our closest neighbor
(I know you know this)
 
@rlemon why? since when it that acceptable logic? I look nothing like my neighbors.
 
It's more mindblowing the way I said it
 
12:37 AM
@royhowie sure you do. you are both two legged, two armed (presumably for both based on statistics)
one head.
minor details we see are not important in the grand scale.
 
@royhowie That's not the only reason
 
@Nolski I was mostly joking
 
@Nolski well no, but it is the easiest to fit into a single line :P
 
@rlemon what does this do? (too lazy to try it)
 
...good point.
 
12:39 AM
you're too lazy to paste it into the console?
 
okay okay
 
then look at the tab title.
then go to another tab and wait for someone to say something
*for those who often have so many tabs they lose the text associated with it
 
safari has no pictures
 
hahahahahaha
I knew safari was bad, but damn.
 
it's actually better on my laptop
(than chrome)
chrome kills battery way faster
 
12:43 AM
Yeah the only reason I use safari on my air is because of the battery
 
pretty
 
user1596138
@Shmiddty lol
 
1:03 AM
:D
 
user1596138
$(this)[0]
 
user1596138
lol
 
1:19 AM
hi
@Loktar cough cough grandpa, but raynos mocks me like a kitten when it comes to RTC :P
@akaRash look at some of raynos's stuff open sourced on rtc.
i know a little
 
i know a little girl
named abhishrek
 
yeah me too
@KendallFrey everybody know your pedofilic intentions.
 
!!ping me in 15 seconds
 
1:26 AM
indeed
 
Such quiet
 
@Shmiddty so how are those ideas comming?
 
Neurotransmitters, I believe
 
Puny carbon-based lifeforms
 
@Shmiddty nailed it
@monners o/
 
1:32 AM
\o
 
Sorry about my disappearance for past 2 days, I was at my fiances.
 
didn't know your hand had its own place
#zing
 
@rlemon lol
 
someone ping me
 
how do i click a img on the home page and hide a div on the page the img loads
 
1:41 AM
@Shmiddty @Abhishrek ping me
 
@rlemon no you!
 
how's that look?
 
sec, keep typing
 
lol
..
.
 
stop
I made a bug >.<
 
1:44 AM
HAMMERTIME!
 
leave the js to me ;)
:P
 
!!tell shmiddty echo something else
 
@shmiddty something
 
@shmiddty something
 
1:48 AM
!!tel Shmiddty ping-a-mundo
 
@Shmiddty ping-a-mundo
 
shorthand
 
Clearly that favicon is not 32x32... haha
 
nope
I just opened cdn.sstatic.net/stackoverflow/img/favicon.ico and saved in GIMP as png
 
1:49 AM
!!tel Shmiddty banana
 
@Shmiddty banana
 
!!tel Shmiddty Bongo
 
@Shmiddty Bongo
 
Wait... I can just document.title = "(99*)" instead of relying on pingspams
 
yup
	disconnect();
	document.title = roomid;
	connect();
before this
I crashed my browser HARD
 
2:26 AM
 
code?
 
sec
 
lol
i like bold better
 
thanks
 
2:30 AM
it's pretty sloppy. haha
Just had a silly idea: Actually modify the favicon image to indicate the message count
starts as an empty bucket [, 1 message - 10 messages = [|, 11-20 = [||, etc
And then use the 4 extra sprites to animate the pinged indicator
 
2:52 AM
how do you show and hide to diffrent divs with javascript
document.getElementsByClassName('english')[0].style.visibility='hidden';
document.getElementsByClassName('korean')[0].style.visibility='show';
that does not work
 
3:16 AM
Heyo
console.log(parseFloat(value.amount)) returns NaN
but console.log(parseFloat(value.amount) !== NaN) returns true
 
3:29 AM
wait never mind
found out about isNaN()
 
I'm so proud of the me of a year ago.
(in all honestly, at least I didn't throw the errors, like I did in other parts of this project)
 
3:47 AM
If you think logging errors is better (and resuming execution), maybe you need another year
 
@copy don't worry, I handle them now
 
4:05 AM
Nice one @royhowie ! Couldn't you use a case/switch block to catch the errors? Nice code however. :)
 
4:19 AM
@Asher 😬
 
mr5
4:44 AM
"(no)".replace(/(no)/g, "<img src='$1' />");
Why the above code does not remove the parenthesis, and the below code
does not execute the `$1`
"(no)".replace(/\(no\)/g, "<img src='$1' />");
?
 
mr5
4:57 AM
o/
 
@mr5 Are you familiar with the concept of an XY problem?
 
mr5
Yes, but the latter actually is in question.
since parenthesis are keywords in RegExp
 
@akaRash @AwalGarg my internet connection ended on 7th they didn't auto recharge, will check today
 
5:13 AM
@mr5 In that case it's because you need both
!!> "(no)".replace(/(\(no\))/g, "<img src='$1' />");
"<img src='(no)' />"
 
@SomeKittens "<img src='(no)' />"
 
But your use of regex that near HTML makes me nervous
 
hello
 
mr5
@SomeKittens I have almost done it.
 
any one know free ssl web host like heroku?
 
mr5
@SomeKittens btw, since the backreference is said to become deprecated soon, do you know any alternatives for it?
 
@FastSnail So free, and has HTTPS support?
 
@SomeKittens yes
 
Heroku does that, but only for *.herokuapp.com
anything that has HTTPS for custom domains won't be free. You can cheese around with CloudFlare
 
@SomeKittens i don't care about domain.i only need free hosting with https ..heroku give only 5mb space that's is the onlyy problem
 
5:24 AM
@FastSnail what for?
 
@SomeKittens host a facebook application
 
well, you don't get that sort of thing for free
 
@SomeKittens isn't there any one like heroku but give more space .atleast 100mb
 
What do you need that much space for?
 
@SomeKittens ok at least 50mb?? you know5 mb is never enough .i have created lot of applications.but ihaven't hosted them yet
 
5:32 AM
YAGNI
 
what
 
You Ain't Gonna Need It
i.e. you're worrying about things that aren't core to what you're trying to do (as far as I can tell)
 
mr5
Why do these things yields different results?
var pattern1 = new RegExp(/\((no)\)/g);
var pattern2 = new RegExp("\((no)\)", 'g');
They return
(<img src='no' />)
<img src='no' />
respectively from this regex: "(no)".replace(pattern, "<img src='$1' />");
 
6:19 AM
In pattern1 you are escaping the capture brackets making them them regular paranthesis @mr5
 
@Identity1 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.
 
THE
hiya
 
Hi
 
mr5
@Identity1 oh well thanks. I have made a confusion between escaping string characters and escaping regex keyword.
Adding another backslash solves it
Welcome as well in the chat room :) @Identity1
 
Thanks!
 
THE
6:29 AM
.ClassName ul (select all ul except 1...)
anyone knows how
 
Please elaborate
Do you mean to say select all '<ul>' within an element with classname "ClassName" except the first '<ul>'
?
 
THE
found it, it would be .ClassName ul.not(.ClassNameOfElement)
 
Tx3
Argh, I'm stuck with the BlueBird promise library again.

How can I get return values of two promises in case of sequential execution?

For example I need to get count (promise 1) before deleting (promise 2) and finally have values from both promises as a callback argument
 
THE
all ul except one, was what i was looking at
 
@Tx3 .bind
 
6:35 AM
I'm trying to learn plain javascript, is learning by IDE ok?
 
I might be wrong but is there any other selector in jQeury to select BODY and(!) all its desendents ? I know I can do this but is there anything better ? $("body,body *")
 
$('body') selects body and all its descendents @RoyiNamir
 
wat ?
 
I'm using ES5 (node). I want to send some post parameters. Thus, I'm using querystring.stringify({'apikey': API_KEY, 'action': action}) to encode them.
However, 'action' is optional and I don't want to send 'action=' in the query string. What is the most idiomatic way to filter out undefined elements in a Javascript map?
 
@JDong 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.
 
6:39 AM
$('body') contains all descendents too
 
Are you serious ? come on
contains yes , but they are not in the array which you can manipulate them
$('body').length != $('body , body *').length
 
Ok! If you want them in an array its another case
 
Tx3
@SomeKittens you mean like this Dashboard.findByIdAsync(id).bind(countQuery)
 
read my question again. is there any other selector in jQeury to select BODY and(!) all its desendents ?
 
You want to avoid all descendents of <body> right?
 
6:44 AM
I want to do params.filter(function (e) { e !=== undefined; }), but params is a dictionary. Should I just make a new dictionary by iterating over the keys in params?
 
THE
7:00 AM
meow meow
 
I don't know what you are doing, asaik there's only !== @jd
 
@RoyiNamir $( 'body, body > *' )
 
Tx3
7:13 AM
@BenjaminGruenbaum Mr. BlueBird guru. Any ideas how to solve this issue:

"Argh, I'm stuck with the BlueBird promise library again.

How can I get return values of two promises in case of sequential execution?

For example I need to get count (promise 1) before deleting (promise 2) and finally have values from both promises as a callback argument"

I tried to use .bind

But what happened was that delete callback argument went to null

`var deleteQuery = Dashboard.findByIdAsync(id).bind(countQuery)
 
@Tx3 I'm going up to speak at a conference in 30 minutes - so not now.
 
@RoyiNamir document.all
 
Also, you should Google it, there are a bunch of questions about it in Stack Overflow, it's very easy.
 
Tx3
@BenjaminGruenbaum Okay, I'll try my luck. Have a nice conf!
 
@BenjaminGruenbaum good luck :)
 
7:14 AM
25
Q: How do I access previous promise results in a .then() chain?

BergiI have restructured my code to promises, and built a wonderful long flat promise chain, consisting of multiple .then() callbacks. In the end I want to return some composite value, and need to access multiple intermediate promise results. However the resolution values from the middle of the sequen...

 
@BenjaminGruenbaum small joke before you go
in Lounge<C++>, 1 min ago, by rightfold
I just realised why Haskell programmers don't have sex. It's because sex is I/O.
 
@VamsiPavanMahesh I'm trying to filter a dictionary to leave only the key-values with non-null values, e.g. {'a': 1, 'b': undefined} -> {'a': 1}. I want to know the best way to do this.
 
@FlorianMargaine the condom monad
 
Florian I believe document.all was only for IE IMHO
 
7:18 AM
@JDong for ( var k in obj ) if ( obj[k] === undefined || obj[k] === null ) delete obj[k];
 
@Sheepy No. this would mean direct childs and I dont want that. I need descendants.
 
@RoyiNamir and yet it works in chrome! woohoo!
 
@RoyiNamir What do you mean by descendants? Can you give a more accurate example?
 
document.all works in all browsers
 
7:21 AM
no. Not in firefox.
 
@Sheepy Hmm I guess the only good way to iterate over a dictionary in Javascript is with for (var key in dict) {...}, thanks.
 
Florian works for me in FF
 
@RoyiNamir oh? cool
@JDong there is Object.keys too
 
I believe you :)
 
7:23 AM
However all prev mentions of this prop , are saying it's old prop of IE . but it seems other browsers embraced it
 
Its deprecated
 
@Identity1 . it's sooms not.
other browsers do embrace it
(they didn't - before)
What's the opposite of deprecated - resurrection ?
 
@RoyiNamir Other browsers supporting it does not mean it is not deprecated.
 
it's still deprecated
other browsers support it for backwards compatibility
 
It's risky to use it
 
7:26 AM
Looks weird to me. they didnt support it before , and now they do.
 
@RoyiNamir I am not that certain they did not support it before...
 
Im sure. Ive tested it once ( many times)
chrome didnt support it till one of last versions.
in fact I've seen code that tested IE via if (document.all)
16
A: Why is `document.all` falsy?

Fabrizio Calderandocument.all is available only on Internet Explorer, webkit and Opera. On every other browser all is an undefined property of document object (and undefined is considered as a false value) As historical note: many (really many) years ago document.all was used to tell Internet Explorer from Ne...

(ugly /wrong way to test , but still it didnt appear oin other browsers)
 
The relevant answer is at 2012. In fact IE 11 does not support document.all now.
 
it does
 
Oh you are right, it still does!
So everyone support it now?
 
7:29 AM
 
allElements = document.all ? document.all : document.getElementsByTagName("*");
Just to be at the safer side
 
Useless prop anyway. no one will ever use it
 
no one use it now.
There was a time when IE 6 was the leading edge, the standard bearer.
 
Sheepy there are other ways ( bettter) to select elements like querySelectAll
 
@RoyiNamir There are now.
 
7:35 AM
fine
Everything relates to now. but regarding document.all vs querySelectAll - there is no doubt which to use
 
If really no one used it, Firefox wouldn't border to add support of it, why waste the code?
 
To enlarge their browser usage and compatibility
what else ?
 
document.all should have never been used, if you ask me. Even when there wasn't any alternative.
 
I didnt say it should be used
 
@RoyiNamir That must means some present sites are still using it.
 
7:38 AM
Yes. the whole point is to make popular browser
which I think this battle is doomed. chrome beats everyone
 
@RoyiNamir True. Which is sad.
 
well , back to work
 
@jd What ever it is you are doing, there is no such thing as !=== . It's !==
get it?
 
How do I rewrite $(document).ready() in plain javascript?
 
did you try something?
 
7:45 AM
morning
 
I saw a solution on YouMightNotNeedJQuery but I think there is a simpler way...
 
show us what you tried.
 
mr5
I think you could try window.onload ?
 
1 message moved to Trash can
@Charly Please don't post unformatted code - hit Ctrl+K before sending, and see the faq.
 
@Charly does it not work?
@mr5 no, onload is much later than document.ready
 
7:47 AM
yeah I've seen the faq but it doesn't work wrapping the whole thing in "`"
 
@Charly that's why the bot is telling you to hit Ctrl+k
 
oh...
 
And @Zirak congratulations. This feature works great.
 
mr5
There's no bot that tells me to do that?
 
@mr5 Caprica Six is a bot
 
mr5
7:49 AM
@FlorianMargaine
 
@mr5 because you haven't posted unformatted code
 
mr5
I do
See the above regex
And all my previous post in other chat rooms?
Or this is custom for rooms only?
 
@Charly Place your script before </body> end tag and use immediate function, this will work as document.ready()
 
It's unique to this room
 
@ThomasWeglinski 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.
 
mr5
7:51 AM
@SomeGuy oh..
 
Thanks @ThomasWeglinski
 
document.addEventListener("DOMContentLoaded", function(event) {
  //do work
});
 
found this
 
mr5
Why don't they just named their bot with prefix so we could recognize them better
 
7:55 AM
Because that's not fun :)
 
@mr5 How can you not recognize a Cylon? We all recognize the Cylons, right?!
 
mr5
I might get acquainted with someone else in this room and it'd be disheartening if I found out that it's a bot.
:)
 
That might be a bit difficult with Caprica Six. :p
 
@mr5 Love conquers all.
 
mr5
lol. acquaintance != love
 
8:09 AM
It's just a different degree of love.
 
Hi
 
It might be hard to get acquainted with Caprica without reading her, um, bot manual.
 
shhhh... her feelings
 
hello.. are you guys aware that modal windows in IE is not supported on versions 10 and above?
 
Modal windows?
 
8:22 AM
window.showModalDialog i mean..
 
It has been deprecated.
 
@Sheepy ok.. now that its clear, how do you suppose to re-design existing implementations that rely on that feature of disabling input to opening window until an action has been picked on the popping dialog? if you have any idea
 
hi
 
@LeeJeong That behaviour is exactly why this api is deprecated. Perhaps it would be better to redesign the site/app to not rely on popup model dialog?
 
did dailymotion just copy youtube again ?
 
guys, do yow know how to compare if 2 txt files are exactly the same?
(both are 2GB text files)
 
@Neoares Calculate checksums and compare them.
 
@Sheepy Ok :D
let's download software
 

« first day (1697 days earlier)      last day (3257 days later) »