« first day (1387 days earlier)      last day (3566 days later) » 
00:00 - 15:0015:00 - 00:00

12:01 AM
I will check that one out @Florian I liked the ERB mustache syntax and JSPref showed ICanHaz to be slightly faster then most, but I did not see polymer on the list. What makes it better persay?
Wow polymer-project.org is alot more then I needed for this project, but looks very cool. I found something to do this weekend
 
@MattGreen yes :) html templates are already native in chrome iirc
 
12:30 AM
hey guys is it possible to accept and handle a get request in pure front end jquery
Everytime someone sends a message to your API username, we are going to trigger a GET request to this URL with the query parameter 'username', which is the user who sent the message.
 
@tejas‐manohar get requests go to the server not the client
You would need a Server Push event to send it to the client, WebSocket and ServerEvents
 
@MattGreen thanks, man
 
I would recommend SignalR if you are on ASP.net
 
@MattGreen Websocket and serverevents?
im on php
 
PHP ... sec
You really need the library to handle server and client delegation
We use Perl Mojolicious and we have to build a whole sub-protocol to use them, packets, PubSub, and RPC. Tis alot of work without Libraries that interact
on Apache 2.2?
There are 4 of us and we got halfway through developing the subprotocol with promises by Q and Durandal events before deciding to go with a library.
Well I guess you can do a long-polling AJAX to a API which will provide you the messages. It is a pull and not a push but will be easier to implement
var getMessage = function () {
return $.get('url')
}
Then getMessage().then( ALL your respone manipulation here)
^ something like that in a settimeout
 
 
3 hours later…
3:47 AM
Uncaught SyntaxError: Illegal return statement
^why this in the console?
this is happening from a xhr.responseText...
anybody here?
 
m59
4:15 AM
It sounds like you have an illegal return statement. @AwalGarg
 
4:52 AM
hahaha
show more code @AbsentWithoutAuthorizedLeave
!!urban awal
 
@AbhishekHingnikar AWAL Acronym for Absent Without Authorized Leave
 
oh see he is now absent without authorized bye bye
that makes him awaab ... whoa now u rhime with kabaab
 
doesn't w expand to both with and without? awal is conveniently ambiguos
 
@Prasanth nope
the internet never speaks wrong
besides
!!urban prashant
 
@AbhishekHingnikar No definition found for prasanth
@AbhishekHingnikar [prashanth](http://prashanth.urbanup.com/1881957) a sweet guy whos fun 2 b arnd n kool 2 chat 2... n he's sumhow managed 2 pik up an american accent :P

he wishes he cud speak hindi so he cud understand da songs he sings! lol luki 4 him i doo :)
@AbhishekHingnikar Prashant A hot kid who is god and is sucha a pimp. He is so cool and handsome and hot.
 
4:58 AM
^ see the internet speaks so much about u
 
for the 1294th time, it's prasanth!
 
@Prasanth idk... it seems like a tatbhav form of prashant
The Indian name Parameswaran is a patronymic, not a family name; thus, the person should be referred to by his given name, "Prasanth". Prasanth Parameswaran(Malayalam: പ്രശാന്ത് പരമേശ്വരന്‍) (born 30 May 1985 in Kayippuram, Cherthala, Kerala, India) is a Kerala cricketer. He is a left-arm medium pace bowler and a right-handed batsman. In first class cricket, he plays for Kerala and in the Indian Premier League, he used to play for Kochi Tuskers Kerala, now the team being discontinued, he is picked up by Sunrisers Hyderabad . He is the first Kerala player to award Man of the match title in IPL debut...
are u that person ?
 
I am NOT!
i don't live in india, i live in a closure online
 
what's with your hair and node.js?
 
5:24 AM
MY hairs well i don't have any so the almighty rlemon photoshopped me some
and node.js u can ask :P i haven't done serious node development in a while
but my skills are still pretty functional
 
5:37 AM
I have a slider I'm trying to stop when clicking a button, cant seem to get it working.... pastebin.com/cuDfNDHT
 
5:55 AM
` directory: "<?php $_GET["f"];?>",` -- I can see that being wide open to XSS attacks
 
0
Q: Better way to get a resolve promise in jQuery?

jfriend00When programming with promises in jQuery, I sometimes need to start out with a resolved promise, particularly when chaining .then() in a loop like this: data.reduce(function(p, item) { return p.then(function() { return print(item); }); }, $.Deferred().resolve().promise()); As i...

 
@Jan Thanks
 
6:15 AM
@m59 my god this is awesome.... you are right. but, why?????
@AbhishekHingnikar kk, I am sending teh codez. wait
 
m59
^ how could someone answer that without code?
if you ask a bad question here, you can be pretty assured we're going to troll you.
anyway, surely you aren't using return outside of a function.....
that was my first thought, but a simple google search would have told you that
 
7:05 AM
@m59 @AbhishekHingnikar no problem. solved it now. was a silly mistake. I was assigning the value to the variable outside the function, so it remained constant, and the algorithm employed evaluated to infinity... crap. :D
 
I think it would be more appropriate if you saved your recommendation of switching to another promise library and trashing of jQuery's promise implementation to times when a difference in implementation was particularly relevant to the particular issue being discussed, not just because someone mentioned jQuery promises in their question. — jfriend00 7 mins ago
Pfft, he's just mad because his answer on stackoverflow.com/q/25101729/1348195 is pretty bad IMO :D
 
m59
Yeah, he's kind of a noob.
I'm not even sure how to explain that considering his rep.
 
@ircmaxell ping, u there now?
 
@m59 he's not a noob, I just don't think he understands promises very well.
 
m59
@BenjaminGruenbaum I'm a super noob and I at least have known about promises for a long while. Months ago, he wasn't even aware they existed...
 
7:15 AM
Heh
 
m59
Half of his answers are tagged jQuery. There are only like 5 questions anyone ever asks about jQuery - the rest are dupes.
and those 5 are dupes.
lol
 
lol
I don't want to bash him, I appreciate people who spend this much time answering questions. I just don't like his "liberal" use of promises :D
 
m59
Yeah, I mean no offense. I am, after all, using myself as the standard by which I measure noobs. More than half of my answers are tagged jQuery. LOL.
Ohh, I'm looking at that wrong
It's by score (doh)
So, rep earned rather than answers.
 
guys what is the best way to set a keyboard shortcut to a button on the page through JS?
 
m59
depends on what for
 
7:28 AM
@AwalGarg wasn't there an HTML attribute for that?
 
@JanDvorak ain't sure. lemme check on that.
 
m59
accesskey
 
naaah. thats not what I want. Like in jsfiddle.net, you can hit ctrl+enter, and it runs your code no matter what the browser of the user may be... something exactly like that. I wanna set two keyboard shortcuts. one is ctrl+delete and another is ctrl+enter... @Jan @m59
any ideas?
 
you could listen to keyboard events on the document
 
m59
there are lots of answers easy to google
 
7:33 AM
@m59 none found... (please, I have learnt to google before bugging people)
@JanDvorak ok. I'll try it out.
 
m59
@AwalGarg I tried several searches and they all returned answers
they are mostly jQuery and mostly garbage, but it's enough to get the right idea.
 
@m59 can you do the search here through caprica please... like !!google 'what you put into that spoon feeding machine'
@m59 i ain't no understand single jquery $.
 
m59
!!google javascript function on key press
 
m59
anyway
here's pseduo-code
window.addEventListener('keydown', function(event) {
  // check the key pressed from event, respond
}
 
7:39 AM
hey, I am not very good with that addEventListener thing, can you please tell me, that attaching it to window or document, which one is better? @m59
 
m59
different events fire on them
window has resize, document has DOMContentLoaded
 
so keyboard events are attached to window, cus they are... well, done in the window. and any event relating the the dom structure and its elements are attached to document. right?
 
m59
I suspect both will work for the keydown event, but I've always used window.
I don't know that it matters which (if both do work)
 
kk. trying that right now, thanks :)
!!afk
 
m59
in the demo, you have to have the demo window selected before the event will pick up
 
8:23 AM
@m59 hey that is superb.... can you clarify me in the second one, why are we passing e as a parameter? in the second and third event listener.
 
@AwalGarg The e parameter is the event parameters
All event callbacks accept an Event object, which is filled with information about the event by JavaScript
 
@SecondRikudo yes. but the second jsbin example, if you look closely at the last two event listeners, e was not used. does that still count?
 
for example, for a mousedown event, you get the element that got clicked, the exact coordinates, which mouse button was clicked, etc.
@AwalGarg Yes, because in JavaScript, this is valid:
var whatever = function() { return 42; };
console.log(whatever("I can pass", "Whatever I want!")); //42
 
okk. this is cool.
 
So even if your callback doesn't support or use e, it will still be passed, and that's valid.
 
8:30 AM
awesome. It works flawlessly. thanks @m59 @SecondRikudo @JanDvorak :)
 
 
1 hour later…
9:34 AM
@AbhishekHingnikar censored... rofl
 
10:15 AM
@AwalGarg lmfao /cc @SomeGuy
 
hey, I have made something, which I want to test, but on github, we can't run code. so how to do it? I don't own a server... (and no money :P)
and also, I want everyone else to have access to the code... (not jsfiddle since it can't run server side, (or can it?))
 
plenty of free server services around
I used heroku.com but am told there are better options
 
I have experience with Google App Engine. Supports Java, Python and Go for server-side
 
10:31 AM
if I host the code on heroku, can I share the code with you guys for help?
 
heroku uses git
you just take your codez from github and stick it in heroku
 
kk. I'll try that right now. btw, isn't it the samething facebook uses for apps and things?
 
dunno
 
ok, thanks :)
 
10:43 AM
has anyone used reveal.js ? I am facing problem, coloring/formatting the text
 
yeah, I have
I even wrote a chrome extension for it
it's been... over a year though
 
@FlorianMargaine How do we format the text written inside <p> or <h> tag ?
 
@FlorianMargaine o/
 
i want to color them in just one particular slide, not all of them
 
10:45 AM
you can use typesetting.js
and ping @rlemon for it
 
@ItachiUchiha add a class
 
or you can make 2 spans for side of colors and stuff
 
@ItachiUchiha ignore what abhishek said, and simply add a class.
 
@AbhishekHingnikar we dont have div's while using reveal.js
 
@FlorianMargaine uh why ?
@ItachiUchiha reveal.js that hakim guys library ?
have u seen slid.es ?
 
10:47 AM
@AbhishekHingnikar you're making it way more complicated than it should ever need to be
 
@FlorianMargaine what if he wants a gradient dudee ?
 
@AbhishekHingnikar I have seen this, but these are for non-programmers
and the themes are limited
@FlorianMargaine cool it works !
 
ugh FFS i read slide as side
 
1 more help, there is one particular slide, where I want the text to be at the bottom, can this be achieved ?
@FlorianMargaine
@AbhishekHingnikar are you sure I can embed typesetting into reveal ?
 
slides.com/pricing <--any ideas why people make such thick top bars and waste vertical screen real estate?
 
10:52 AM
@ItachiUchiha sure can :P ... but if u just need to change a slide u don't need to do anything
@ItachiUchiha add a class
learn css positioning
@AwalGarg clickability
show off
 
@AbhishekHingnikar you make no sense. the text inside it is not even half the height of the bar.
@AbhishekHingnikar eh, thats weird... what are they showing off btw?
 
@ItachiUchiha css..
 
@AwalGarg its a design thing
i tried with narrow bars
 
hahaha. itachi asks, florian says css... lol
 
the just don't feel good
 
10:54 AM
position: fixed;
bottom: 0;
width:100%;
text-align: center
on the css doesn't do it, any idea ?
 
!!afk - tha daye shtartsh :D
 
this css is used on a paragraph
 
@ItachiUchiha show a test case ? // jusfiddle codepen something else
ps for this case position:absolute will be bettar
 
i guess I am not able to override the reveal.css setting
this is without css
now when i add the class
.myclass {
color : blue;
position: absolute;
bottom: 0;
text-align:center;
}
it becomes, something like this
 
incognito??????? why??????
 
11:01 AM
@AwalGarg that doesn't make a diff to the css :P
 
The question remains :-P
 
i was kidding lol. I think your problem is that the bottom:0 thing is being set relative to the div it is inside. you should make a fiddle. when I am stuck in such situations (in old days, now I can understand the css I write, so not often), I can find help easily in debugger. the computed position and box model are greatly helpful.
 
but can i make a fiddle with the reveal.js in it ?
 
@ItachiUchiha sure you can. :D
@JanDvorak maybe those google search tabs have something in them... who knows? and that mail tab... lol
 
@ItachiUchiha w3schools??????? why???????
 
11:05 AM
@AwalGarg I have always made simple fiddle's with html, js. How to include js, css libraries ?
 
jsfiddle.net sidebar has option for external resources,
 
@SecondRikudo I am not that good with css and js, so for reference ! :P
 
@ItachiUchiha MDN
 
@AwalGarg I know the website :P
do I copy the reveal.js and put it inside the js container ?
 
@ItachiUchiha but you don't know how to operate it :P (even I don't, I am learning too :D, handshakes)
 
11:06 AM
that wud be lame
 
> sidebar has option for external resources
don't you read????? :P
 
@SecondRikudo stop exploring the tabs of my browser and help me :P
 
@ItachiUchiha please be polite (super polite actually) with him. he can drop a meteor on your head... and you will go to haydes :D he is a god. a non-existent being who can create and destroy anything.
 
@AwalGarg Oh, he knows.
 
@AwalGarg I know him :P
 
11:08 AM
Itachi is from the Uchiha clan as well. He's well aware of my prowess.
 
I thought it was Shinchan...
 
@ItachiUchiha you can irritate him then. keep pinging him all day long.
 
@ItachiUchiha and yet w3schools suck hard
 
@SecondRikudo people of your clan use w3school??? what kind of resourcism is this?
 
11:10 AM
@JanDvorak may be you are right..
 
@AwalGarg The kind that gets a meteor dropped on your head.
 
hahaha. XD
 
@ItachiUchiha definitely I am :-)
 
@AwalGarg I am not able to add external resource in jsfiddle
the + doesnt work :P
 
@ItachiUchiha what browser?
 
11:12 AM
chrome
everyone knows that ;)
its in incognito mode :P
 
then the + should work
try reloading
 
which version of chrome?
 
can i add a github link directly ?
inside the external resource URI ?
 
you need a raw link
 
11:14 AM
@SecondRikudo there is a warning saying github is not a CDN
 
@ItachiUchiha That's because github isn't a CDN
2
 
@ItachiUchiha jsfiddle.net/rLsc8 here, take a head start from me.
 
@SecondRikudo isn't it?
 
@AwalGarg its not that easy, coz I can bring a normal text to the bottom of the page, but it's not working with reveal, so I need to include all the js and the css and then make a demo
 
then ping Second Rikudo... keep pinging him until you get the solution to your problem...
btw, @SecondRikudo why not First Rikudo? or third?
or better forty second rikudo?
 
11:20 AM
@AwalGarg The First Rikudo was the Sage of Six Paths, if I'm a god, then he's the master god.
I am the Second (and currently last) person to achieve Rikudo.
 
What about her mother ? :P
 
You take your shit seriously, man
 
@ItachiUchiha She's an Alien. She doesn't count.
@SomeGuy What was that mortal? :P
 
@SecondRikudo so basically you are low profile god, right?
 
@AwalGarg Yup, but god enough to kick yo' mortal ass.
 
11:21 AM
doesn't seem to work
 
@SecondRikudo I challenge, you can't even downvote any of my post (or upvote for that matter)... leave kicking... :D
 
@AwalGarg These puny fake internet points mean nothing to me.
 
@SecondRikudo ok then, award all your points in bounty to Itachi.
 
@AwalGarg I will not award anything to any puny mortal.
 
@AwalGarg @SecondRikudo can anyone of you look at my fiddle and let me know why its not working ?
 
11:25 AM
@ItachiUchiha it is working for me.
 
the reveal.js must put a background and the text must be aligned in the center by default !
I have included the external resources
it must be this way
got it
there are too many dependecies
zzz
I can't make a fiddle for my problem
 
@ItachiUchiha Sure you can, get rid of dependencies
Or simply upload it to some kind of hosting
 
@ItachiUchiha jsfiddle.net/evan/L6GZh/1 <--reference for you. (check it please @Madara, I'm not sure if this is what he can take as reference)... :D
 
@SecondRikudo it's pretty simple, the text that you see has to be at the bottom, but I haven't aligned it to the center, it done automatically but the reveal.js
 
Are you trying to vertically align text?
 
11:36 AM
@All : Good Evening.
 
@Meredith nope, I want the text to be at the bottom of the page as I want an image to take place on the top
 
Draw a picture
 
@ItachiUchiha just put the image first. text will automatically be pushed down.
 
@AwalGarg my bad, the text will float on the image
as the image is the background for the slide
 
@ItachiUchiha why use it as background?
 
11:40 AM
So why not use the image as a background
If that's exactly what you're trying to do
 
better, put the text in the image... eat your pc if that doesn't work out.
 
haha
yeah, let me try !
not puttin the text in the image
still not able to align your text is really frustrating !
 
@ItachiUchiha I still don't understand why the hell you need a JS file to vertically align text...
@AwalGarg Please don't troll and confuse those who might take it seriously.
 
@SecondRikudo me too.
 
Probably doesn't know how to do it without js
 
11:45 AM
@SecondRikudo sorry. removed them.
 
@SecondRikudo @Meredith I am trying to use a library called reveal.js ! It is a html presentation creator. All the things that you add into it, gets center aligned, which is ok !
 
err, so many ways to write things...
 
but sometimes I need to align text here and there, which I am not able to achieve
I hope things are clear now ! :)
 
I don't know why you need a javascript library for making a glorified slider
 
Well that is my choice ;)
 
11:49 AM
I think like 90% of the problems new javascript developers have are because they're trying to use a library that they don't understand
 
well I am not a js developer ! I create my own js functions, when I need them !(small one's)
this is something which I am doing to create something for my brother on his b'de ;)
 
@ItachiUchiha Any specific reason you aren't using PowerPoint or some other sort of specialized program for that?
 
I want to create a small website to wish him :)
with images from the past and some wishes for him
i want to add few pun's(text) on the images that I am adding, but can't help it.. err !
 
@ItachiUchiha have you seen slides.com?
 
yes I have, but then I dont have the control with me and I am not sure if they will provide me the source to add it on my website
@SecondRikudo
 
user3141603
12:41 PM
Hello. I'm trying to get JSON using ajax:
$.getJSON( "http://www.oref.org.il/WarningMessages/alerts.json")
and i'm receiving that error:
XMLHttpRequest cannot load http://www.oref.org.il/WarningMessages/alerts.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:71' is therefore not allowed access. demo.php:1

What can I do?
 
user3141603
(in PHP file_get_contents("http://www.oref.org.il/WarningMessages/alerts.json") works, but I can't always sent AJAX request to my server)
 
Oh, you're doing that thing, I did that once.
 
@VladGincher Which part of the error message you were given do you not understand?
 
They don't do jsonp nor do they do CORS iirc. You need a proxy server, or to run your code from the dev tools on their website.
 
user3141603
@SecondRikudo All of it :D
 
12:45 PM
@VladGincher They won't let you get resources from their server.
Pikud Oref sucks.
 
user3141603
@SecondRikudo So what can I do? Why using PHP it works?
 
@VladGincher PHP doesn't use AJAX
@BenjaminGruenbaum Wait
 
user3141603
So it doesn't allow only AJAX?
 
What's the point of an alerts.json which is clearly some sort of API... if it doesn't allow CORS?!
 
@SecondRikudo I just put it on their site in the dev tools, it was pretty easy.
@SecondRikudo it's not meant to be consumed by browser clients, they built it for their phone app. Everyone uses it though.
 
user3141603
12:47 PM
So what can I do? How can I get the data every second without using my server?
 
@BenjaminGruenbaum So?!
 
There are a million sites for that already, why do you need it?
 
It's an API dammit! It's another line of code/configuration!
 
@SecondRikudo so, why would they support CORS in their private API? You're not even supposed to consume it to begin with.
The fact you can even access it is them being nice.
 
@BenjaminGruenbaum Either it's public or it isn't.
 
12:49 PM
@SecondRikudo it isn't
It's just not secure since it's not private information just a private API
 
1:24 PM
Question fellas. I want to display a map of the earth (most probably a UV map) and using information from some API, I want to display and fade out particles on that map.
The idea is to eventually create some sort of sparkling heatmap (where more active areas get more particles and less active ones get less).
Anyone knows of technologies or libraries that can help me do it?
We're talking about thousands of such particles, so WebGL support is ideal.
 
@SecondRikudo three.js?
 
@Mosho I'm not aiming at 3D here
 
I don't see why you need a library to do that
 
I don't see why you need to do that :P
 
@AwalGarg It's a map to tell me which major city to drop a meteor on first.
 
1:36 PM
@SecondRikudo you can get that info easily through google. no need to reinvent the wheel.
 
The more Awal Gargs living in those cities, the "hotter" they are, and the more likely they are to get bombarded.
 
lets cut the crap... I have a more realistic problem at hand:
I have some divs, with common class, and ids of the format - "subDiv+[Auto_Increment_Number_Indexed_From_0]"
now, I need to select all divs with id greater than some number...
how to do that?
 
@AwalGarg Loop
 
@SecondRikudo ow that makes sense. lemme try...
 
1:57 PM
guys where is the spec which describes what is allowed to be changed from js? I am not sure if changing the id of an element is considered a good behavior from many browsers...
 
Can anyone please help me with Node js problem ?
 
@Manish 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.
 
i am having problem with socket in node js chat application
when i am displaying room names on webpage, socket is returning junk values
 
posted on August 03, 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) {} Only 19 days left to submit for BAHFest!

 
@SecondRikudo @m59 @JanDvorak hey guys, you 3 helped me make that key board shortcut thing this noon, right? I just noticed a problem, when I press the Alt key on my keyboard, it leaves an error there.... any ideas why this is happening?
Uncaught TypeError: undefined is not a function (index):47
(anonymous function)
^is the error...
if it matters, I have remapped my left shift to alt, and that is pressing which I get the error. I have remapped my menu (context) key to alt key as well, and pressing it leaves the same error. Pressing the other shift key gives the same error.
wait, I just noticed, it happens only when I press the key twice.
 
2:19 PM
so.
I need ideas of graphs to generate for plotsvn
here is the kind of data you can find in an svn log file: github.com/Ralt/plotsvn/blob/master/sample-svn-log-public.xml
what graph can I generate from this?
 
@m59 hey why did you do:
var fn=command; fn();
and not
command;
?
 
2:34 PM
@m59 Yeah, it becomes unbearable after some time. I now understand why moderators took a more "aggressive" stance on the situation.
0
Q: Automated tool for detecting migration

SangeetaI am Sangeeta, a PhD scholar& Assistant Professor at a state university at India working in the area of mining software repositories and empirical software engineering. I am currently working on a project to study behavior of migrated questions on StackExchange. I working towards automating quest...

Should we keep that meta question or vote to close?
 
jquery datatables
 
!!s/d\w+s//
 
@SecondRikudo jquery igh (source)
@SecondRikudo jquery sigh (source)
 
lol doesn't preserve tags
 
2:43 PM
datatables isn't making an xhr request for some reason but it doesn't tell me why
0
Q: jQuery DataTables - No XHR request made

hanleyhansenI have a simple datatable with the following initialization options: $('#inventory').dataTable({ "sPaginationType": "full_numbers", "ajax": '/api/inventory/', "columns": [ { "data": "id" }, { "data": "description" }, { "data": "cost_price" }, { "data":...

 
2:56 PM
wait what will the batman movie after dark knight returns called ?
Batman Dark Knight Returns Again !
Batman Dark Knight Returns One More time !
Batman Dark Knight just keeps coming back ?
 
@AbhishekHingnikar nope. it will be for (i=1; i>0; i++){console.log("Bat Dark Knight " + i);}
 
thats so non creative
 
00:00 - 15:0015:00 - 00:00

« first day (1387 days earlier)      last day (3566 days later) »