« first day (1481 days earlier)      last day (3468 days later) » 

2:00 PM
@jAndy ~~( Math.random() * 11111 ) lol
 
I made the mistake of trying to read what I was looking at
Now my brain hurts
 
:gets out backlog of regression tests that need to be run and hands them to @jAndy:
3
 
@Sippy ... poor you
 
@FlorianMargaine yes.
 
@FlorianMargaine no lolz there !
 
2:01 PM
That's the delay? what do the ~~ do
 
beard operator
will cut away unwanted hairs from the beard
or in other words, it will throw away any decimal point number
 
@AshneilRoy basically... the line gives you a random number between 0 and 11111
 
244
A: What is the "double tilde" (~~) operator in JavaScript?

ghoppeThat ~~ is a double NOT bitwise operator. It is used as a faster substitute for Math.floor().

 
!!> ~~8.53913;
 
@jAndy 8
 
2:02 PM
@AshneilRoy It's similar to math.floor
 
BUT ITS NOT
 
BUT ITS NOT NOT
 
I can't say it's the same cos @copy will stab me
And the rest of you
 
!!> (Math.random() * 11111)|0
 
@FlorianMargaine 6348
 
2:03 PM
:(
 
@FlorianMargaine so basically you only ever make 2 TCP connections to the same server, one for headers and one for content?
 
morning guys
 
@SecondRikudo I'm not sure tbh
I need to read up more on it
 
I was really worried for a little bit instantly looking at my watch...
 
Because that doesn't sound very different from HTTP1.1's Keep-alive
 
2:03 PM
weird channel with so many timezones
 
can someone help me. im trying to start imgAreaSelect once a photo is selected but i can figure it out odyniec.net/projects/imgareaselect/usage.html documentation
 
@SecondRikudo yup, it's more afaik. As I said, I need to read up more on it :)
 
!!afk cooking
 
user1994804
Hello everyone, Anyone up for some AJAX discussion?
 
xhr.open('POST', @YourAdrenalineFix);
xhr.send('message=I%20suppose');
 
2:07 PM
syntax error
 
Repwhoring at it's finest
 
user1994804
Hi @rlemon No, I have something much different to ask about
 
@FlorianMargaine preprocessed
 
48k user... geez
 
@rlemon ... fair enough
 
user1994804
2:08 PM
Ya with me?
 
just ask!
 
!!welcome YourAdrenalineFix
 
@YourAdrenalineFix 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.
 
this is like when my gf asks me a question like "guess what I saw?" and waits for me to say "what" before answering .. even tho I'm staring her in the face clearly waiting for the follow-up
 
user1994804
Ive asked plenty over the past two days and havent heard anything intelligent so before I spelled it all out AGAIN I wanted to make sure I had your attn
 
2:09 PM
Oh, I always thought it was !!tell <name> welcome xD
 
!!tell Cerbrus welcome
 
@Cerbrus 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.
 
user1994804
Im typing
 
it works, it's just the long way
 
Didn't know welcome accepted a target parameter
 
2:11 PM
so what if we just type !!welcome?
 
@YourAdrenalineFix if it's a long question, it's usually better on stackoverflow.com
 
!!welcome
 
@Cerbrus 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.
 
user1994804
I'm retrieving some info via an AJAX call but have no idea where this would use a url as discussed here
 
o_O
 
2:11 PM
Guys what's the vote limit every day
 
user1994804
@FlorianMargaine its not a long question. I just type slow
 
Depends on your rep afaik, @Sippy
 
@Sippy 2*2*10
 
user1994804
So Im getting some basic html via an AJAX call but I dont understand where a url would come in
 
@Cerbrus Ah
 
user1994804
2:13 PM
I feel like a parrot
 
@YourAdrenalineFix Code pls
 
you don't understand why a url is used in an ajax call?
 
@YourAdrenalineFix: AJAX is a server call, right?
How does a server call not involve some kind of url?
 
^
 
user1994804
I dont know??
 
user1994804
2:13 PM
Gimme a sec
 
You need to provide us with your understanding.
 
I think your question was ignored because it doesn't make much sense the way you've worded it
 
user1994804
Code is visible near footer here classifieds.your-adrenaline-fix.com/…
 
can you isolate it?
 
user1994804
which retrieves the shipping info
 
2:14 PM
i.e. copy and paste out the relevant code to pastebin or something
 
!!s/pastebin/plunkr
 
user1994804
Its a baasic ajax
 
user1994804
if(window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
}
 
@DrogoNevets That didn't make much sense. Use the !!/help command to learn more.
 
@DrogoNevets lol fail
 
2:15 PM
typo!
 
user1994804
Tha Fuck
 
@YourAdrenalineFix what is your browser support?
do you have to support old ass IE?
!!caniuse XMLHttpRequest
 
user1994804
Yes for now
 
user1994804
none of that has anything to do with what is at hand
 
user1994804
2:16 PM
IDGAF if the code is old. It'll work for now. In the future I can switch that to updated
 
user1994804
Ive been going in circles for 2 days trying to get a legit answer as to where a url would be used
 
user1994804
.for the following line: <a href="ajax.htm?foo=32" onClick="navigate('ajax.html#foo=32'); return false">foo 32</a>
 
user1994804
(Thats probably the 5th time Ive repeated that the last two days)
 
"where a url would be used" <- this doesn't make much sense to me
can you elaborate what you mean?
 
2:19 PM
^
 
user1994804
FUCK
 
user1994804
Ive been elaborating for DAYS
 
ajax is a technique. it is a regular HTTP request. HTTP requests need to have an end point. I.e the url
 
We can't help you if we don't understand where you're confused, dude.
 
@YourAdrenalineFix you still haven't told any of us what the hell it is you're trying to do.
 
user1994804
2:20 PM
Fuck if I havent!
 
People are gonna stop listening if you keep getting ragey about it.
 
I'm new to the room. Indulge me.
 
I understand it can be frustrating not being able to make others understand your issue. but we can't help you if we don't understand you.
 
@YourAdrenalineFix: calm down.
 
don't get angry.
 
2:20 PM
@YourAdrenalineFix: What exactly do you have and what's missing?
 
user1994804
Sorry...
 
user1994804
 
user1994804
and scroll below the fold you will see 2 freight quotes
 
user1994804
these freight quotes are retrieved via the AJAX call visible in the source
 
user1994804
all fairly simple stuff I wrote
 
user1994804
2:22 PM
and understand fairly well
 
user1994804
Fast fwd to a document from Google describing how to make sure AJAX retrieved code is indexed
 
@YourAdrenalineFix you don't need to do that
Google will make ajax requests for you, by the end of 2014 they guarantee full JS rendering support
 
^
"Google Works"
just believe in it
 
user1994804
2:24 PM
But I don't understand where <a href="ajax.htm?foo=32" onClick="navigate('ajax.html#foo=32'); return false">foo 32</a> would be used
 
@YourAdrenalineFix Devices that support JavaScript will use the navigate function, which supposedly navigates using Ajax and stops refreshing of the page.
 
You would not use it, it's horrible code.
You should read about HTML5 routing. If you have reasonable AJAX requests - you should not worry about it.
 
user1994804
I know, I know I love Google
 
Devices that don't will use the normal method and redirect the page to ajax.htm?foo=32, with a page refresh.
 
it's trying to trick the robots to indexing the URI
 
user1994804
2:25 PM
Now I got ya'll's attention :)
 
because you've finally explained what your confusion is so we understand it
 
user1994804
been trying for two days and thats why I got so frustrated
 
And a negative first impression, tbh
 
+1 for HTML5 routing
 
@YourAdrenalineFix Sometimes you'll get stuck on a code problem for weeks.
 
user1994804
2:26 PM
Ive explained it SO detailed I think people blew me off
 
user1994804
Backing up tho...
 
user1994804
 
user1994804
@BenjaminGruenbaum says I wouldn't, Its horrible code...
 
@YourAdrenalineFix that code is horrible, but you can do ajax navigation through that protocol, no one does though.
 
user1994804
but Im still lost as to how I could implement this functionality into my code
 
2:28 PM
People did it for a few months, we dropped it a few months ago and didn't notice any SEO difference, it was nice maintainability wise to drop it.
 
@YourAdrenalineFix don't
listen to Benji
 
user1994804
Ok
 
@YourAdrenalineFix when you change the hash of the page, no navigation happens, so for exmaple you'd change the url from index.html to index.html#bikeDetails
Which would simulate navigation.
 
I am JS jedi
 
Google's protocol uses #! (which again, is just # followed by a ! for convention)
 
2:29 PM
@youdon'tknow 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.
 
Eesh just reading the docs that feels like a lot of work for not much gain at all
 
So newer browsers could follow the links correctly and google would know how to crawl it, again - not worth it, don't bother, it's a bad underspecified protocol @YourAdrenalineFix.
 
0
Q: Should we actively encourage use of JavaScript ES5+ features?

AlnitakFor at least three and a half years ECMAScript 5 has been the current version of JavaScript supported on mainstream browsers. (IE9 was released March 14 2011). I believe it's time that we were free to use ES5 features freely in our answers without feeling like we have to mention ES5 polyfills f...

(hi everybody!)
 
@Squiggle sure you are buddy.
@Alnitak (hi)
 
user1994804
Hmm @BenjaminGruenbaum Thanks so much for focusing some attn on this with me
 
2:30 PM
@BenjaminGruenbaum hmm?
 
user1994804
Ive got more defense of why I want to use it
 
@YourAdrenalineFix you're welcome. I've struggled with all their shit myself.
@Squiggle that was hi to Alnitak.
@Alnitak good question.
 
20
A: Do we have to adhere to legacy browsers for answers to questions?

rlemonShort answer: NO Long(er) answer: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO, but in my personal option it is always nice to inform the user if the code does not work in any specific release (worth noting). So if it fails in IE6, who cares... if it does not work in safari or IE7... well I wouldn'...

related
 
user1994804
Please bear with me, I have some interesing bits for you to see
 
however I'm not sure why this is on SE and not SO
:shrugs:
 
2:31 PM
@rlemon I think it's time we stopped mentioning legacy browsers
 
Weird, I somehow got logged out
 
I agree.
@Kippie happens sometimes
@Alnitak I was just saying, related ;)
 
user1994804
@BenjaminGruenbaum this is a sample of what Google is caching for my pages such as what you have likely seen in this discussion\
 
@rlemon I like the "longer" answer :)
 
2:33 PM
<-- currently developing for IE9 :(
 
user1994804
Looking at that you'll see the shipping quotes are not there
 
user1994804
ie: GoogleBot doesn't see them
 
@Squiggle Pfft, at least you can use ES5
 
user1994804
or know they even exist
 
2:34 PM
Hi all, anyone know of a good up-to-date blog or book on Javascript for Analytics / AdWords / Cookies and that sort of thing?
 
user1994804
Where I struck ground at <a href="ajax.htm?foo=32" onClick="navigate('ajax.html#foo=32'); return false">foo 32</a>
 
0
A: Should we actively encourage use of JavaScript ES5+ features?

Benjamin GruenbaumI've dropped mentioning ES5 polyfills for the past year or so. I used to link to the MDN page and mention polyfills or to direct polyfills. However, about a year ago I stopped doing it. No one seemed to really care. In about 400 answers, I got maybe 3-4 "Would this work on IE" which prompted a p...

 
onclick is ugly, onClick is worse :)
Also, file extensions in urls? we have 2014..
 
@YourAdrenalineFix it's ok if the cache looks bad, see how it looks using the Google Webmaster Tools.
@ThiefMaster well, if it's pointing at a file :P
 
user1994804
Great Point @BenjaminGruenbaum
 
user1994804
2:36 PM
BRB
 
I doubt it's a simple static file though if he's sending GET arguments to it
(in any case, use .html instead of .htm if it is a file - 8.3 is not a thing anymore since over a decade)
 
wow, .htm
Haven't seen that in ages
 
@BenjaminGruenbaum ES6 polyfills are a different matter, of course :)
 
@erikroyall ... wat
 
2:39 PM
at least for a couple of years...
 
Hopefully, only two. When IE9 drops dead we're rid of the only relevant browser that doesn't auto-update.
 
posted on November 05, 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) {}

 
@BenjaminGruenbaum I'll wait to see if this gets any more answers rather than accept straight away...
 
user1994804
@BenjaminGruenbaum Great Call!! I've had the voice whispering for me to do a fetch as Googlebot since yesterday and I just did per your suggestion and Woila'
 
@Alnitak there is not a lot of point in accepting answers in meta, at least keep it unaccepted for another day or two so it doesn't look 'resolved', 3-4 votes is hardly a consensus
 
user1994804
2:42 PM
the freight quotes show up
 
I never got why people accept straight away
 
We just dropped IE8!!!
 
@GusDB 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.
 
@Feeds That one is actually pretty good
 
user1994804
but I'd still like to better understand whats discussed here developers.google.com/webmasters/ajax-crawling/docs/learn-more
 
2:43 PM
@GusDB congrats!
 
user1994804
I guess I'll just read on it...
 
user1994804
but I think Im good to go on this issue.
 
user1994804
Thanks @BenjaminGruenbaum You Da Man!!
 
@Squiggle Thanks, my boss was getting sick of it
 
@YourAdrenalineFix you're welcome.
@GusDB happy dev day.
 
2:44 PM
much happy
 
@BenjaminGruenbaum I'm slightly surprised how limited ES6 Set objects are - no set operations, for example. And there ought to be a better way to create an Array from an Iterator without relying on the ES6 spread operator.
 
2:55 PM
@Alnitak I complained.
@Alnitak (me complaining)
 
You can use for..of to iterate over either
 
Also, for creating arrays you have Array.from, but the API is still very bad.
 
@BenjaminGruenbaum Not to mention browser support...
 
posted on November 05, 2014

Today I published my tests of CSS transitions in the desktop and mobile browsers. I created the test cases ages ago, but interpreting the results turned out to be tricky. Big overview: transitions are supported very well, except in the proxy browsers (which can’t handle this kind of client-side interactivity) and IE9. However, there are a few more subtle problems: All WebKit-based b

 
I have an angularjs problem I am trying to get my head around...
Its a basic todo list app. I have two views - one to list the tasks, other to add...both are separate views, and are "routed" to the same controller...
in the 2nd view (add) I execute the logic to add new task to the scope, the view changes to the first one, but the list doesn't get updated...
tried to do this spa style...hence I cannot host it in jsfiddle or else where...
 
3:12 PM
goodring mon
 
What's the type of image called where it perfectly tiles
Or maybe seamlessly is the word
 
@rlemon you're twitter active today and I love it :D
 
so... did you twerk it?
 
up = down; I think I need to change my variable naming slightly
 
I jsut tweeted you back, you might lol a lil bit
 
3:18 PM
I don't get the joke
:fails:
 
@KendallFrey Lol
 
I also just wrote this:
thrusting = up;
2
 
Heh... thrusting
 
Heh... up
 
im bored of meetings
 
3:23 PM
I'm bored of working on shitty code that will be sunsetted in 6 months anyway.
 
@RyanKinal Same Y_Y
 
:-(
 
@RyanKinal you're alive!
 
I am!
 
beer TS saturday night
??
 
3:27 PM
What's up?
 
mikes in
 
I will likely be coming back from Cleveland Saturday night.
Going to see Newsies with the girlie.
 
nice, so I then take that is going well.
 
Quite
 
or has stockholm syndrome just set in
;)
 
3:29 PM
{ language_id: 'tly',
  language_name: 'Talysh',
  speakers_native: 800000,
  total_speakers: 912000,
  name_alt: 'Taleshi',
  country_main: 'az' }
undefined

/home/dor/datatest.js:71
                if (typeof(previous.name_alt) === "string") { //In this first
                                   ^
 
what happened with @Jhawins?
 
.reduce(function combineToOneObject(previous, current) { //Then combine it into one object
    console.log(previous);
    if (typeof(previous.name_alt) === "string") { //In this first object, the name_alt would be a string.
 
got a message on twitter
 
@Loktar Got suspended for a week
 
@Loktar Took an opinion too far, suspended for a week.
 
3:29 PM
wtf why?
he said it was due to gamergate
 
Yeah.
Well, there was a joke about spamming someone's github inbox that wasn't taken very well by SE.
And it resulted in unhappiness.
 
@Loktar irc
 
Man, you guys are confusing in your communication ways
There's this channel, then there's the reg/ecmascript channel, then there's miaou, and now there's also irc?
 
♥üror: iid INTEGER NOT NULL,  format 3☻
        uuid VARCHAR(32),
        state INTEGER,
        number VARCHAR(18),
        PRIMARY KEY (id),
        UNIQUE (uuid)
)=☻♠↨Q+☺
windows pastes me that.
what could that possibly mean ?
 
miaou == irc, @Kippie
 
3:33 PM
@Cerbrus miaou != irc
miaou is custom --- on git
 
oh?
I thought it was an irc client
 
na - uh
 
No, it's a node server
 
@Kippie its implemented in node.js
*
 
I don't really see what you're trying to clarify there :p
 
3:34 PM
it has a node server, it isn't a node server
 
I'm so confused
 
miaou == miaouirc?
 
potato potato.
 
it is a "webapp"
 
@rlemon did you serious get "sternfaced" for making quite an obvious joke?
 
3:35 PM
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.
 
miaou == sound-a-cat-makes
 
And what the hell did Jhawins say that was so bad?
 
@SterlingArcher we're ignoring it for now
 
> for now
they'll spend the next few years plotting revenge
 
3:36 PM
Is the IRC chat less hinged than this one?
 
0
Q: Iterating through an array and sum a value based on a condition in lo-dash

Matthew HarwoodI have a data set which i've simplified : var data = [{ size: 400 }, { size: 500 }, { size: 800 }, { size: 400 }, { size: 400 } { size: 300 }, { size: 300 }, { size: 800 }]; var windowWidth = 800; Using lo-dash how would I make a new array based on how many of s...

Can you guys figure out what kind of calculation the OP wants?
'Cause I have no clue
 
From what I can see, 500 goes into 800 once, but 800 goes into 800 twice, as per OP logic and what he's written.
gg.
Also 3 and 4 times!
more gg.
Ooo stack exchange has an app
stack exchange app is officially pretty.
 
gets annoying
SO notifications to my phone was a deal breaker
aint nobody got time for dat!
 
Surely you can turn those off?
 
You can
 
3:47 PM
@Sippy yes.
 
I can't imagine this being useful for writing a half decent answer, but for most other stuff
Not bad
 
!!afk Work's done, yay!
 
PSA - The reg room has temporarily moved to miaou. - for more info see the reg room.
9
 
@BenjaminGruenbaum Invite only?
 
No, it's actually a public room in miaou, at the moment. We want to keep the drama off SO chat.
 
4:00 PM
why doesn't miaou pull the SO user id from the SO API when I login using a SO account?
 
4:22 PM
Lazy programmers?
 
@Squiggle programmer with a real job ?
 
@ThiefMaster privacy-wise... ugh
 
4:39 PM
My classmate learnt why not to use float for the price - the hard way :D
 
@mikedidthis it took too long for you to make my avatar so i made one with a similar style ^_^
 
what's the box-shadow default values?
I need to reset it
 
@user990717 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.
 
<B> test</b>
 
4:51 PM
@tereško 0s, I guess, or initial should work.
 
whats the purpose of this channel/
 
@user990717 it's markdown, so **hi**.
 
Chat
 
cool
 
Usually, it's JS discussion, but atm everyone is very annoyed at someone so everyone is talking elsewhere.
So there's that. Usually it's just JS.
 
4:52 PM
actually, usually its just politics and religion.
3
 
*****
 
@jAndy It is almost that only... just that sometimes some offtopic discussion about javascript erupts...
 

« first day (1481 days earlier)      last day (3468 days later) »