« first day (1216 days earlier)      last day (3746 days later) » 

6:00 AM
@Mosho I tried creating fiddle: jsfiddle.net/rdesai/SKb8W The JSON is not being read though
 
Hey guys I'm having troubles with OnkeyEvent Handlers,
window.addEventListener("keyup", (..) // Works
But "keydown" Event causes my Html Text Input to stop working.. I mean typing into it doesn't display any characters.
I'm not listening for any text characters, just the arrow keys.
 
Is there a good reason why we're all still using jsfiddle instead of plnkr.co?
 
@user2582299 What's in the function?
Is this abandoned or something?
There are supposed to be people here.
Oh! My profile is expanding again
...
 
@bjb568 Just a console.log for now, I'll show you what I have:

window.addEventListener("keydown", function (e) {
e.preventDefault();
switch (e.keyCode) {
case 37:
// left arrow
console.log('test');
break;
This causes my Html Input to not work:
<input id='Messanger' type='hidden' type='submit' onclick='SubmitMessage()'>
 
@user2582299 For one, you've specified two type attributes
 
6:09 AM
I noticed that after I typed it in here, even with that fixed I'm getting the same issue
 
@user2582299 Hehe. You .preventDefault(), then wonder why it's .preventing`Default()`.
 
0
Q: Unable to plot line chart from JSON

Rahul DesaiWhile creating a fiddle, I wasnt able to plot the line chart using the data which was previously into .json file. I am getting an error: Uncaught SyntaxError: Unexpected token o The chart can be plotted if the JSON is external provided I use d3.json(). How do I get my fiddle working?

 
@bjb568 Thanks heh.
 
@SomeGuy Meyer-Briggs test, eh?
 
6:15 AM
No, just take it :p
Have you taken the MBTI, though?
 
Yep
ENTP
 
Ah
I've only taken online tests. Reading about all of them, though, I relate most with INTJ
ENTP has the same functions, but with everything flipped from introverted to extroverted and vice versa
 
According to this test I'm an NDBC
 
Does it seem accurate?
 
60%
 
6:20 AM
Nice. Well, the test doesn't really consider your answers at all en.wikipedia.org/wiki/Forer_effect
 
lol
 
:D
 
:P i'm trying it now
 
this is what I'm getting
 
then I guess 60% is about right
!!afk goin' home.
Ok, home time.
 
6:21 AM
See ya
 
@Mosho What did you change in the code? I was getting that when I changed the class to "bar".
 
you mean the blackness?
I fixed it
 
yes
 
i forgot to add the css
in your fiddle you didn't have a semicolon after the data
and I removed d3.json
 
6:24 AM
d3.json is an http request
 
oh
what should we replace it with?
 
nothing
remove it
 
@SomeGuy Apparently it made up some random thing called QWK which I can't find on Google :P Slightly supicious
 
look at what I changed
 
@Qantas94Heavy How accurate is the result?
 
6:25 AM
I'd say 50%
 
@Qantas94Heavy The point of the test is to demonstrate the Forer effect
 
indeed
Just took it for the fun of it
 
So all of the acronyms it shows are made up
Just to make it look more authentic
 
@Mosho can you please share your updated fiddle?
 
can't get it to work on jsfiddle actually
and it's not drawing circles because you are giving it a date string for coordinate
 
6:28 AM
how to using query string in javascript?
 
@Mosho the fiddle worked for me jsfiddle.net/rdesai/SKb8W/2
:)
 
cool
I was trying to use its built-in d3js
whatever :D
 
How do I get rid of the errors in the console?
 
you are using foreach on an object
foreach is for arrays
 
@Mosho what should I give instead of date string for coordinate for X axis?
ok, what should I change that to?
 
6:31 AM
for(var v in data) { /*do shit*/ }
 
@Mosho I didnt get you
how do I proceed with that?
for(var v in data){//how do I modify the function? }
 
you can leave it as is for now
 
@Mosho ok, then what about the circles, how do I get it in there?
 
they defined scales there
you apply the scales and get the locations
they used that when they created the line
read up on how d3 does things if you want to learn more
 
@Mosho moving it down worked??
 
6:45 AM
no
I replaced d.date; with x(d.date);
same for y
x being
var x = d3.time.scale()
.range([0, width]);
 
I see
You are the man!
:)
 
:>
now go forth, my son
and upvote my answers
 
@Mosho You didnt post your answer dude
I answered it myself
 
I meant in general
but it was a joke
 
ah, :D
my next task is to make it as interactive as this chart c3js.org/samples/simple.html
 
6:50 AM
simple enough
but that one you are going to have to do yourself :P
 
I am new to D3, still exploring
thanks for your help though
@Mosho one last question: is there a way I can change the color of those circles?
 
.attr('fill',/*color*/);
 
@Mosho gotcha!
 
Round 25 with 2 people who had no idea how to play zombies. Not bad.
And shit, my shoulder is bleeding. brb
 
7:11 AM
which one is better guys ?
I mean one has greyscaled background, the other has full saturated colors in bg
 
Hmm iunno.. they're both so good
 
:-/
it decides my products face xD
 
I like the full saturation. It makes it pop just that much more
 
post the same colage
with both options
 
7:22 AM
!!bak
 
@monners This command is bad and you should feel bad
 
ps as oyu can see its not fully greyscale its 60% greey
 
!!s/oyu/you
 
@monners That didn't make much sense. Use the !!/help command to learn more.
 
!!s/greey/grey/
 
7:22 AM
@monners ps as oyu can see its not fully greyscale its 60% grey (source)
 
ps as you can see its not fully greyscale its 60%.
and here is two same collages
 
Note: Once you have set a variable's value, you cannot change or modify that value!
this language is awesome
 
Huh?
 
reading up/trying to use xslt
 
Oh I thought you meant a JS variable. I was like wut
 
7:25 AM
hmm the greyscale looks more appealing by far
 
to me as well
but you are really venturing into overthinking territory
 
Would there be a way to offer a greyscale setting? Maybe a slider?
 
in the app YES
but instead of a slider i will give two modes
 
shit how do I download my git repo onto my desktop using terminal?
ssh git@github.com:RUJodan/zombie.git didn't work
I can never remember this one
 
You have the command on the site, I think
and it starts with git clone etc.
I always do a copy paste. Even after having done it at least 30 times, I can't remember it.
 
7:32 AM
@dystroy i think i should re-design miaou
someday :D
for windows 8.1 ui :->
 
You may try
Did you see the new magical search ?
 
Thats cool
@dystroy I find text too crammed up in miaou
 
Before even thinking about redesigning it, you should use it.
 
I did
lemme pimp it up in browser :D
what font are u using ?
 
@AbhishekHingnikar It's designed to be efficient. Seeing only 5 to 8 messages in the present chat is painful
SO chat couldn't be used to what we use miaou for : not enough text visible.
 
7:37 AM
@dystroy thanks! I don't know why I was trying ssh
 
@AbhishekHingnikar What happened to the color scheme you posted 2 days ago? (the one with the yellow, blue and pink)
Or was that for a different project?
 
@dystroy windows Users can have Segoe UI
 
@AbhishekHingnikar I'd rather have the same look everywhere
 
@AbhishekHingnikar Are you building/testing on windows?
 
7:45 AM
I just googled, this font looks nice
 
!! watch gravity or channel surf
 
@monners channel surf
 
nothing fancy just line-height:2; and padding:8px 4px; on .message with font-size: 16px;
but way more readable
@dystroy you seriously hate margins dont u ?
 
@Nithin 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.
 
7:50 AM
@monners yes
but i am trying to actually find a good mixture of iOS 7 and windows style
 
        var iframe2;
        iframe2 = document.getElementById('pdf_frame');
        iframe2.parentNode.removeChild(iframe2);
is giving me
TypeError: 'null' is not an object (evaluating 'iframe2.parentNode')
Anyone know why?
 
Sounds like pdf_frame isn't an ID
 
@AbhishekHingnikar Yes.
 
yeah, it is
<iframe src="../wp-includes/js/document-viewer/pdf-viewer.php?source=http%3A%2F%2Flocalh‌​ost%2Fwordpress%2Fwp-content%2Fuploads%2F2014%2F02%2FSteinbeck-John-Of-Mice-and-M‌​en.pdf" id="pdf_frame" style="width: 700px; height: 900px;"></iframe>
 
BTW I know miaou's look can be made better. I just don't want to hinder readability or efficiency
 
7:55 AM
Any ideas @RUJordan ?
 
What's the parentNode
 
@AbhishekHingnikar Is that a recent screenshot ? There are UI bugs in your page. The profile should show, for example.
 
iframe-popup-background @RUJordan
 
I think this is simple, I'm familiar with RoR, how to get this in JS
for (var i=1;i<=count;i++)
{
var client"#{i}" = new ZeroClipboard( document.getElementById("copy-button'#{i}'")
client"#{i}".on( "load", function(client"#{i}") {}

}
Both the lines are in Ruby
it evaluates into
var Client1 = new ZeroClipboard( document.getElementById("copy-button1")
and so on
 
Here is the complete structure @RUJordan
<div id="iframe-popup-background"><iframe src="../wp-includes/js/document-viewer/pdf-viewer.php?source=http%3A%2F%2Flocalh‌​ost%2Fwordpress%2Fwp-content%2Fuploads%2F2014%2F02%2FSteinbeck-John-Of-Mice-and-M‌​en.pdf" id="pdf_frame" style="width: 700px; height: 900px;"></iframe></div>
 
7:59 AM
!!format
 
@RUJordan Format your code - hit Ctrl+K before sending and see the faq
 
^ @Nithin @BrandonGelfand
 
@RUJordan Its how its output the HTML in my browser, I am compressing it, nothing I can do
 
@dystroy yes
its a recent screenshot
 
<div id="iframe-popup-background"><iframe src="../wp-includes/js/document-viewer/pdf-viewer.php?source=http%3A%2F%2Flocalhost%2Fwordpress%2Fwp-content%2Fuploads%2F2014%2F02%2FSteinbeck-John-Of-Mice-and-Men.pdf" id="pdf_frame" style="width: 700px; height: 900px;"></iframe></div> @RUJordan thats what it does...
 
8:00 AM
@AbhishekHingnikar You broke things by playing with the CSS I suppose
 
@RUJordan ok got it
 
@dystroy doubtful
all i did was increase the font size
meh ... in short you just need to add some padding and increase legebility of text
line-height:1.5 / 2
looks more appealing
and a font like open sans or segoe
 
hmmm
 
I think this is simple, I'm familiar with RoR, how to get this in JS
for (var i=1;i<=count;i++)
{
var client"#{i}" = new ZeroClipboard( document.getElementById("copy-button'#{i}'")
client"#{i}".on( "load", function(client"#{i}") {}
}
Both the lines are in Ruby
it evaluates into
var Client1 = new ZeroClipboard( document.getElementById("copy-button1")
and so on
 
So what do you think could be causing it to return the error and not remove it? @RUJordan
 
8:04 AM
im not sure, sounds like it should work
 
OH KAY 'rea;ktm gk'asfl ksfm'lsadmf'a ks';m ladlfsa
i need a we][r asf; 'g;l fd sd; work
xD ... works so aw[r e4fpakls;f a,'sf well
 
derp -_- forgot the parent part, lol
iframe2 = parent.document.getElementById('pdf_frame');
 
// evil userscript enters random character sequences while the user is typing
 
Looks useful
Stupidest question of the new day
-3
Q: What is the difference between Go and Ruby?

Sakshi JainI am a Ruby newbie and I have yet to gain command over the language. Recently, I have come across the Go language. What is the difference between Go and Ruby? Why are people serious about this language?

 
@dystroy you should link him wikipedias list of programming languages
her*
PS in general there are hundreds of programming language each with some or the other feature set in mind. For instance langauges like Scratch are made for kids to learn.. As you are newbie I'd suggest learn and master any one programming language. PS what you asked is basically what is the difference between a spanner and a screwdriver. Both are tools intended for some purpose with some analogy. — Abhishek Hingnikar 9 secs ago
Good Guy Abhishek ?
 
8:11 AM
Yes!
Works
@RUJordan Thanks, lol, I think talking helps me find my the issues
 
@dystroy Even stupider than the difference between java and javascript
 
@Kippie even stupdier then difference b/w python and c++
 
Pretty sure those 2 languages are exactly the same
 
Still, how can somebody who claims to be in her final year of CS and who attended a rails summer camp ask that question? It makes no sense
 
8:14 AM
when if first read the format .jsp i thought it stood for javascript page
 
Fuck yeah, tile tracking.
No spamming the same tile for actions
This is exciting
 
8:54 AM
xslt is actually not too bad
I mean, it's kinda awkward
but it gets shit done
 
No, not bad at all. But you can easily get it wrong :P
There are many better tools.
 
such as?
 
Such as don't use XML in the first place ;)
 
I do believe we had this conversation :D
 
Yeah :D
I know, you have to use XML.
The last time I was forced to do some transformations I found it quite convenient to use XSLT.
BTW guys, I'm using Firefox 29.0a2 Aurora since yesterday and I find it very smooth so far. Faster and more stable than my Chrome Canary.
So far.
Love it.
I just moved "close tab" buttons the the left side of tabs and now I'm happy.
 

« first day (1216 days earlier)      last day (3746 days later) »