« first day (1545 days earlier)      last day (3401 days later) » 

11:29 AM
hello
 
@hiero 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.
 
!!tell Zirak define maudlin
 
@Zirak maudlin (obsolete, Christianity) The Magdalene; Mary Magdalene. [14th-16th c.]
 
Ugh, not that.
 
0
Q: jsPlumb multiple instances

hieroI build this connectable elements app, I'm using jsPlumb for connecting elements. My app has the following behavior: When press the BUTTON, will add a new set of elements which the user should be able to connect. As far as I read the jsPlumb documentation 'container' and endpoints should be and...

can anyone help me with this?
 
11:34 AM
How to use jade in sublime text 3?
I cannot to build .jade to .html
 
11:50 AM
Does git pull --all include git pull --tags in it?
 
Hello, anyknow to build file.jade to file.html? I'm using sublime text 3
 
@UlisesContreras you asked once, the message is still here. Also, for the fourth time STOP FORMATTING MESSAGES AS CODE IF THEY AREN'T CODE
Since it's not the first time you do either and it's not the first warning I give you, I will kick you if you do either of those again.
 
Hmm, is ok, text without formatting messa... Is ok.
@SecondRikudo you know about .jade? what is the room perfect by this question.
 
@hiero possibly
 
@SecondRikudo No results found for git pull --tags. Did you mean git pull --no-tags?
 
12:01 PM
@KendallFrey It delegates --tags to git fetch
 
> By default, tags that point at objects that are downloaded from the remote repository are fetched and stored locally.
What is the purpose of --tags?
 
@KendallFrey Pull all the tags
 
would that be "tags that do not point at objects that are downloaded from the remote repository"?
 
Apparently so?
 
--all will "Fetch all remotes" which looks like it means all repositories, and doesn't affect what is pulled from them
 
12:09 PM
who using jenkings ?
 
@RahulDesai hiiiii
 
@argentum47 wassup!
 
Emberjs is up, but I dislike writing the model logic inside the so called Ember.Route.extend(), and I also dun understand if ember_data is so essential for models then why not make it a part of it. what you doing ?
 
hello all
 
@nitesh.kodle123 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.
 
12:14 PM
@argentum47 I never worked on Ember, bro!
 
I want to diable browser back button
 
@nitesh.kodle123 this is a pretty dumb idea
 
Your users don't want you to
 
the user has every right to go back if he/she chooses to
 
how to remove cache page then I don't want user to go to previously visited page
 
12:17 PM
Also my answer was my 500th answer :)
 
maybe you just want a specific page to disappear from the history
 
yes
dats what I want
@KendallFrey dats what I waht
want
 
@RahulDesai I am trying a lot of stuff these days. Like reading newspaper, the last time I read one was like 2 years ago, its embarrassing
 
@KendallFrey Thanks
 
12:19 PM
@argentum47 lol
 
The egghead angular tutorials are good, I resorted to piracy, but its cool to learn the way they teach.
 
my family stopped getting the actual newspaper, they all went online, trying to be modern :P
Yeah, they are cool
 
I could do that, make an app to get the feeds, and read newspaper, but I loose interest after writing the app
 
12:56 PM
Anyone here knows the difference between a spork and a fork on github ?
 
@WillemD'haeseleer What's a spork, lol
 
That's pretty much the question I'm asking
 
spork doesn't exist in the context of github
 
Well, io.js claims to be a spork of node.js
 
That has nothing to do with GitHub
 
12:59 PM
So maybe there just having some lexical fun, or I'm missing something
 
a fork with more features?
 
That might actually make a lot of sense
But isn't that the purpose of any fork ?
 
that lol
 
otherwise, why fork it
 
I think they just diverged enough that they decided to call it something else
 
1:01 PM
it's actually quite clever imo. I get it.
 
I can see how it could make sense
But beside that it's somewhat clever, I'm not really seeing it adding any value to the "fork" term, since all forks are intended to modify the upstream version somehow
 
@copy nice. The find-links function is not very lispy tho
 
@WillemD'haeseleer either it's simply a play or words or that fork is bloated, I guess
 
@Shea I'm gonna go with a play of words, I haven't seen the term spork used anywhere else
Anyone using io.js here ?
I'm really excited to see if they are actually going to release their alpha this month, or somewhere next year.
 
@WillemD'haeseleer this sentence sums up js ecosystem in 2015
 
1:14 PM
@DenisKugappi Nah, that's not javascript, It's Go
 
> Rogers: [The] first release is scheduled for Fedor's birthday, January 13.
 
@dievardump If they nail that day I will be genuinely impressed
 
Humpf, just saw the article is from 4th of decembre, a little old.
 
2013 or 2014 ?
 
1:23 PM
I remember a similar estimate for v0.12 ( +/- 2 weeks ) somewhere on a mailing list in december 2013. I actually got excited about that then.
 
website says same thing.
> The initial 1.0.0-alpha.1 release is planned for January 13, 2015.
 
Hello , Can anybody help me setting custom headercell template for angular ui-grid
 
Angular with all the modules becomes a little bit the new jQuery :(
@32teeths how do you want to custom it? Design?
 
Here for a custom header template ui-grid.info/docs/#/tutorial/302_custom_header
Here for custom header CSS ui-grid.info/customizer
 
1:30 PM
in PHP, 40 secs ago, by Kevin M Granger
An SEO expert walks into a bar, beer, alcohol, drinks, restaurant, pub...
 
omg, this is a really bad joke, and it made me smile.
 
I love bad jokes
 
@dievardump afaik, angular modules are decoupled though
 
@dievardump : By default we have header template with input box for filtering below the column name . I wanted to remove the column name and set it as the place holder text of the input box
@dievardump : When i googled , I have found that custom header and custom headercell template are two things . github.com/angular-ui/ng-grid/blob/master/src/templates/ui-grid/… is what I want to change
 
You want to have the input to filter (with the name as the placehorder), the arrow to sort, but not the name of the cell ?
 
1:36 PM
yes ...
exactly
 
Who the hell designed that? That'd be pretty confusing :o
 
I love Scotch.
Scotchy Scotch Scotch
Here it goes down. Down into my Belly.
Mmmmmmmmm
 
damn... wrote a really helpful answer but the Q was closed...
This is off topic, but I saw your website, and you're a designer, seemingly trying to get a grasp of javascript, so I'll help out.

**1:** `jQuery(window).load(function(){ ... })`

This code adds a load event to the window. We do this so that we can make sure that the DOM is loaded and we can find our elements. This translated into libraryless javascript would be:

`window.onload = function() { ... }`

**2:** `jQuery( ".flexslider" ).css("margin-top", jQuery( window ).height() - jQuery( ".flexslider" ).height()/2);`
 
I am using ui-grid as a replacement for slickGrid . So i needed that .
 
I just wanted to help :(
 
1:39 PM
@dievardump : I m having the column name as the placeholder , so it want be confusing i hope
 
Anyknow to use file.jade?

For example, back-end use http://stackoverflow.com/questions/14242536/how-to-install-sass-with-express app express, but how front-end i need to pass file.jade to file.html alone.
 
@32teeths You'll just have to create your own ui-gread-header-cell-custom
That'll be pretty fast I think.
 
@UlisesContreras Jade is a templating engine. It will effectively replace .html files. Not sure what you're trying to accomplish, exactly.
 
@dievardump: How do I specify that
 
1 / use the gridOptions "headerTemplate" property and set a custom header.
2 / the custom header will be the content of this file https://github.com/angular-ui/ng-grid/blob/master/src/templates/ui-grid/ui-grid-header.html
but instead of ui-grid-header-cell you put ui-grid-header-cell-custom
3 / you create you ui-grid-header-cell-custom directive, wich will be the exact copy of ui-grid-header-cell directive, but with a modified template file
 
1:44 PM
Columndefs: {field:'field',headerCellTemplate:'template.html'} dint help
 
You'll have to create your own directive for that. Seems there is no possibility to change the headerCellTemplate
 
@dievardump: I think its headerCellTemplate and not headerTemplate u are talking about
 
Nope
 
@NickDugger Yes, but i cannot to see the generated .html files. in sublime text 3.
What u can recommend me?
 
You need to tell the headerTemplate to use a custom directive for the headerCellTemplate
you can't do it by config so you'll have to create a directive, and to call that directive from the headerTemplate
 
1:46 PM
Oh .
THanks ..
it says we can configure
 
@UlisesContreras jade does not generate html files, the server reads your jade file, and compiles it to HTML to render in the browser; an HTML file is never created.
 
@32teeths indeed. I couldn't find it.
 
@dievardump: Under columnDefs there is a prop headercelltemplate
 
Yep
 
@NickDugger for example, with Sass, i can to see my scss files and css(generated), but this jade, not.
 
1:48 PM
@UlisesContreras I just said that's not how jade works
It does not create an html file
 
@32teeths can you show me you configuration object ? Please, think of using a gist if it's too long.
 
@UlisesContreras He must be using something like gulp to save it out as HTML, but why would you ever do that? It's not HAML, it's a templating engine.
 
Hmm, I don't know, but i can do this with sass (css generated), but with jade, not. :))
 
I can't even help you... you don't listen, you just want it the way it's in your head, but that's not the way things work. Why are you even trying to get the HTML file? Are you using Node? Express?
 
1:54 PM
@NickDugger I need to install gem install haml to see my files .html(generated)?
 
what, no. I give up trying to help you
 
@NickDugger I'm front-end, node express is more back-end.
 
There's a very obvious language comprehension barrier that makes communication very difficult. I hate to be a jerk, but try asking someone who speaks your native language
 
The man does not even read what you're saying.
 
I know
 
1:57 PM
@NickDugger I know, I'm spanish, but we cannot speaking spanish here, in other moment i was speaking spanish with a user, and the people, please, here is one room in english.
 
Then create your own spanish javascript room
 
@dievardump I read!
 
@UlisesContreras You didn't. He told you SaSS and Jade are not the same thing in term of behavior, but you still want to do that.
 
@NickDugger Anyway, thanks
 
If you wanted static files to be generated use some static files generation engine, not a template engine.
 
1:59 PM
@dievardump hmm, is ok.
 
this is awesome! jsfuck.com
apparently you only technically need only 6 characters to write whatever you're writing in js
just put the result in the console and it works... I have no idea how tho...
 
ask @rlemon
 
It's written at the bottom, how it works.
 
!!> (![]).toString()
 
@rlemon "false"
 
2:05 PM
remember JS likes to make things strings when it is confused
 
10 more.
 
what the hell? You can add true and false?
!!> true + false
 
@NickDugger 1
 
@NickDugger that's probably because it was really common in C where true is 1 and false is 0
 
2:11 PM
@Zirak do you have a few minutes?
 
Actually, @rlemon I think you can help me too
I'm trying to implement a PoC bot that's able to log in to chat and post a message
 
!!> (+[][[]]+[])[+[]]+(!+[]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+‌​[]+!+[]]+(!+[]+[])[+[]]+(!+[]+[])[!+[]+!+[]+!+[]]+(!+[]+[])[+!+[]]])[+!+[]+[+[]]]
 
@rlemon "No"
 
ohhhh, I get how it works now.
 
2:14 PM
Do you know what is needed to authenticate to chat (as a user) and then get a weebsocket stream?
 
@SecondRikudo no clue about auth
but websockets are easy after auth
 
@rlemon that's genius
how does he call functions tho?
 
@rlemon How do I do it?
 
the way this works, does it mean some letters are unattainable?
 
nvm...
 
2:15 PM
@rlemon I think you just implemented Brainfuck in JavaScript
Assuming I've authed, how do I grab a websocket connection?
 
that is getting messages
 
does github keep recodes when we pull upstream ?
i mean when sync a fork
 
@rlemon Where is fkey() defined?
 
the chat
 
I'm doing a server-side app, so that doesn't really help me in this case
Any idea what it does?
 
2:18 PM
generates the key you need to pass with the messages
 
(Hopefully just get the fkey from DOM?)
 
you need the fkey
 
@SecondRikudo you can get it from the DOM safely.
 
you can grab it from the dom as well I believe
 
Also, just run phantom.
 
2:19 PM
Oh, that's generated client-side?
I thought you got that from the server once you auth?
 
function fkey(b){b||(b={});if(!b.fkey)b.fkey=$("input[name='fkey']").attr("value");return b}
 
@SecondRikudo it's a CSRF validation token.
 
Yeah, grab from DOM
Alright
@BenjaminGruenbaum I might
Haven't decided yet
@rlemon So after auth, you load the chat page, and fkey should be in the DOM
Right?
 
yes
 
Guys, I cant seem to understand why the <input type="range"> isnt working properly. I am trying to drag its handle but its kinda flickering and resisting the action in Chrome. jsfiddle.net/rdesai/tz0opmf4/4 Please see line # 54 in the JS, the console.log() aint working.
 
2:23 PM
Then you just pass that in to a POST request and it should respond with a URL
 
yes
 
Awesome
My idea is this, tell me what you think guys
A fully functional SE chat client (i.e. able to post, star, message, change acceess, etc), that is controlled via a HTTP/WebSocket API
Then the consumer can use that simplified API to communicate with SE chat
 
@SecondRikudo Hmm, so essentially we're talking about an API to use SE chat
 
@Neil Yes
An API used by no-browser environments to communicate with SE chat
To make bot creation simple.
Instead of implementing the authentication for instance, you'd just POST /login with the credentials, the server and the default room ID
 
@SecondRikudo You might see a lot of spam bots making use of it though
 
2:28 PM
@Neil I've already posted a queston on the internal SE chatroom asking if it were okay
But technically speaking, spam bots can exist with or without this
And they can always be banned very easily and quickly.
 
Make an account, use API to mass spam every SE chatroom about penis enlargements until ban
 
The more spam they post, the more we can flag and exterminate :D
 
hey
 
I don't have a problem with it though, so long as something like that doesn't happen
 
@Neil You mean, make an account, reach 20 rep, and use API to mass spam
Reaching 20 rep is not a trivial task
It's easy, but spammers look for trivial.
 
2:30 PM
@SecondRikudo true
 
If it were that open, it would be easier to make accounts and manually pasting crap in rooms until ban
Given that ban is inevitable, it's less work than to make a bot to do it.
 
Ugh
 
Connection problems? :D
I can relate.
 
Indeed
 
@BenjaminGruenbaum C# question
using (var client = new HttpClient(handler))
using?
 
2:33 PM
While I think that's a good idea, I don't think I could ever write a program like that
 
@Neil Which is why I'm writing it :D
 
Half-way through I'd feel like I were reinventing something and get easily distracted by other ideas
 
Then when you have an idea to create a bot, it'll be as simple as firing up an HttpClient and running it.
 
Is GitHub down?
 
@RahulDesai Nope
 
Thanks. Appreciate that.
 
@SecondRikudo nice tool, I never seen before :)
 
Its just me actually. :-/
 
@RahulDesai clear cache and cookies, try from a different machine
 
@SecondRikudo Tried all that. Still doesnt work. So weird!
 
@dievardump Nope.
 
Nope ?
 
new HttpClient(handler) is not a nameespace.
And var client is not an alias.
 
no sorry is wanted to link to the statement
 
Ah, I see
It's for disposables.
Yeah, that makes more sense.
Thanks :)
 
2:49 PM
@SecondRikudo that's a try/finally
That's roughly:
 
try { set var } finally { set var = null }?
 
{
    HttpClient client;
    try{
        client = new HttpClient();
        // rest of code
    } finally {
        client.Dispose()
    }
}
 
Yeah, okay.
 
The point is Dispose will be called even if an exception is thrown.
 
2:53 PM
This is even cooler than I thought it would be: jsfiddle.net/kendfrey/13qvf7jy
 
I'm reading this, it's a class for authenticating to SE chat
@KendallFrey Please update for us simpletons without fat arrow functions yet.
 
ew htmlagilitypack
 
@SecondRikudo just turn on the harmony flag
@BenjaminGruenbaum Ew, having to use an API that returns HTML
 
@KendallFrey it's a lot more bearable with CsQuery
 
That would require me to relaunch wouldn't it?
 
2:56 PM
idk
 
@KendallFrey arrows are removed from the flag in Chrome in canary iirc since they were broken and people started using them
 
well drop Chrome then
 
Your alternative?
"Maxthon"
 
IE
 
Opera
 
2:57 PM
@SecondRikudo Oh hey, Maxthon? 2004 called.
 
@Unihedro I have a friend still using that -_-
Makes me facepalm every time he fires it.
 
javascript is SO HARD to learn... can anyone help please
 
!!resources
 
i have 3 years of C++ but am having trouble with javascript
 

Javascript Resources.

Sep 4 '12 at 13:36, 2 minutes total – 8 messages, 1 user, 2 stars

Bookmarked Sep 4 '12 at 13:40 by rlemon

 
2:58 PM
@Lanaru anything speciffic?
 
@Lanaru what are you trying to do, what results do you expect, what results/errors are you getting?
 
well i am trying to make a website game but no matter what code i write i cant get my character to jump...
 
posted on January 08, 2015

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) {}

 
@Lanaru Canvas?
 

« first day (1545 days earlier)      last day (3401 days later) »