« first day (1366 days earlier)      last day (3598 days later) » 
00:00 - 21:0021:00 - 00:00

12:49 AM
Hey guys.. could anyone help me out with a quick Audio problem? (buffer size, sample rate and latency)
 
Hey, Please guys, I'm coming from jQuery, I can't reach this: stackoverflow.com/questions/24718592/… Thanks for any help :)
 
@Deptroco 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.
 
Yep, sorry then
I woner how can we perform ng-repeat on plain text
no html elements
 
@CCInc Depends what it is
 
12:58 AM
I fixed my original problem.. but noob question.. it's not possible to use my USB headset with my external soundcard, right? the headset does its audio processing all independently?
 
does your external card have a USB port?
 
@copy marry me
 
nope :/
 
then I would guess not
though it's merely a guess
 
Have you heard of Atom?
 
1:02 AM
@Deptroco it's an attribute directive, so no
but why would you not want to have an element
 
1:35 AM
@BartekBanachewicz Your favorite language runs in your least favorite language
 
 
6 hours later…
7:21 AM
6 hours? Y'all are slackin!
 
Happens every Sunday
 
@SterlingArcher HEY FUCK YOU
 
8:07 AM
and then you benchmark it with postgresql, #burns for mongo
 
8:38 AM
Anyone using Atom? And if you are, have you found a good vertical select plugin?
 
@phenomnomnominal intel Atom ?
 
@AbhishekHingnikar github atom
 
oh that !
I see steve ballmer inspired.
 
9:31 AM
haven't tried yet that editor
... but probably will soon, since ST3 developments has somewhat .. emm .. died
 
10:02 AM
@tereško yeah i will have to move to atom sometime but that thing looks scary.
What if Github is taken over by Microsoft someday :-[
 
I'm finally back to torture this room with 24/24h wifi!
 
 
1 hour later…
11:55 AM
@BenjaminGruenbaum dude
zoom is extremely estensive.
its more like
transform blah blah blah and then ie < 8 fix zoom
 
12:11 PM
To support modern browsers, zoom isn't that extensive (and we no longer support IE8 right).
-webkit-transform: scale(0.8);  /* Chrome, Opera 15+, Safari 3.1+
      -ms-transform: scale(0.8);  /* IE 9
          transform: scale(0.8);  /* Firefox 16+, IE 10+, Opera
 
-o-transform
-moz-transform

for **somewhat old** browsers
 
-moz-transform is outdated, noone uses FF 15 anymore
 
nobody uses firefox anymore :D
 
^ and there's that !
 
"In browser ads" were my point of leaving firefox installed just for testing
IE / Chrome / Safari => MS / GOOG / APPL
makes sense no ?
 
12:20 PM
@AbhishekHingnikar HAve you checked out their dev tools lately? FF is makin' a comeback!
 
@monners only for devs ?
Think of a users perspective ?
I love google chromes cloud sync oh fucking helpl the browser feels like a complete Operating System
 
@AbhishekHingnikar Well yeah, I am talking from a dev perspective
 
Anyone help me with a problem i'm having at the moment, novice coder.
 
@22Ryann 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.
 
1:02 PM
@monners I guess 2-3 years ahead in time we probably will use google chrome / chromium for most of our stuff :P
we => common users
otherwise internet explorer or safari
even microsoft accepts chrome's rise as a threat for itself as big as APPL
facebook.com/… see the comments
 
1:18 PM
@Loktar ^ Game Jesus
explain that pls
 
@AbhishekHingnikar explain what?
 
super marianno
 
1:35 PM
!!tell AbhishekHingnikar urban sarcasm
 
@AbhishekHingnikar sarcasm A tongue of which the user speaks of something the complete opposite of what the user means. It often has the best comedic value.
 
Going to vomit: people from lifehacker.com rated php better then js, c better than c++ and java better than evrything.....
let's not start an argument about c and c++ though
 
1. Python 2. C# 3. JavaScript 4. Java 5. C++ 6. C 7. PHP
With a bunch of languages missing between 2. and 3.
 
1:51 PM
@copy that would be your list?
 
Among the 7, yes
 
I thought you were an oldschool guy, maybe considering fortrand and basic as the best ones...
and C after the 2, then the other languages
still php at the bottom tho
 
In the list of infinite languages, PHP would still be on the last place
2
 
I don't think anyone considers Fortran and Basic the best ones right now
Maybe Lisp
 
2:16 PM
Please, the only reason Java is popular is because that's the only more or less recent, more or less decent thing old school teachers know and propagate
 
@djfm 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.
 
@towc no one said anything about better as a language
only job prospects
Java is extremely popular
I'm sad I had to do this:
Number.prototype.mod = function(n) {
  return ((this%n)+n)%n;
}
 
Problem is, both signed modulus and unsigned make sense, depending on the application
 
why would you?
 
to get the modulo behavior I expect
 
2:25 PM
how is that different than normal modulo?
 
@copy "SyntaxError: missing ) in parenthetical"
@copy [-1,-2]
 
!!>function mod(a, b){return [((a%b)+b)%b, a%b]}; for(var i=1; i<10; ++i){for(var j=1; j<10; ++j){var res=mod(i, j); if(res[0]!==res[1]) console.log(res)}}
 
it returns positive values for negative left operands
 
@towc "undefined"
 
Wait
 
2:28 PM
@Mosho oh! seems fair now
 
I guess it's not a well-defined behavior of modulo though
 
what would you need that for?
 
convenience
 
hi
anyone using node.js here?
 
@towc if I do (value-1).mod(5) and value happens to be 0, I want it to return 4, not -1
 
2:34 PM
@Mosho I guess that checking if value is 0 is faster than making the program do more calculations, maybe not as elegant, but still
 
guess I could do that too
sounds less readable, but it's all minute anyway
 
3:07 PM
Hello fellows
Can anyone tell me why does this output undefined in console when custom validation attribute (ten in this case) is placed, but without any validation attrs or with required only it outputs correct values?
 
Is there a way to skip the prototype.call ?
http://jsfiddle.net/Schoening/6qFTq/
I have a really hard time explaining it. I think it is best just to look at the 20 lines.
 
3:24 PM
posted on July 13, 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) {} Last day of GaymerX! I'm doing a panel today where I'll be updating

 
@copy I won't keep php that behind
 
@Schoening - like this -> http://jsfiddle.net/adeneo/6qFTq/1/
 
@adeneo brilliant! Thank you :) Anything I should be weary of doing this?
 
0
Q: AngularJS unit-testing basics: testing for a $q deferred object's resolution and rejection in a service

user3123768I'm learning angularJS unit-testing and I'm struggling unit testing a basic "login" function on an "AuthenticationService" service. The service method uses $q.defer() to set up a promise and then rejects or resolves it based on input. How do I spy on or otherwise test that promise? What is wro...

 
Actually. It probably won't do what I want. Since I would need to be able to call any instance created by the Instance constructor. Cool tho!
 
3:31 PM
@Schoening - The classes aren't related, so the easiest is just to pass the instance to the constructor of action, that way you don't need the call, but it's basically doing the same thing, just differently with an argument.
 
@adeneo What book I could read to improve Javascript/jQuery skills?
 
What I would like to know is if there is any difference between using prototype.call and passing the this as a parameter
 
@Schoening - There is of course a difference, but in performance there shouldn't really be any notable difference as far as I know
@WilfredoP - Donald Knuth's "The art of computer programming" is a good place to start, come back when you're done reading it and tell us what you think of the books.
 
@Mosho Wow! Much thanks! How come you don't have to use the hasOwnProperty ?
 
3:41 PM
because it's not its own property :P
you could make a depth search and just bind everything to this in the constructor
depends on what you want
 
Alright nice! But it still uses the prototype? This isn't just some fancy way of cloning the functions onto the Instance?
 
@rlemon RyanKinal is afk: going home
 
what do you think of the improved design?
works much better
 
@Schoening well, no :P
but who cares :D
 
3:46 PM
Just askin :)
 
@rlemon Duuude! That's sweet.
 
And this is gonna be a bit performance intensive.. I am kinda making a scripting language, inside JS lol
 
@RyanKinal thanks
got the ambition this morning to take another crack at it
it's cool that I had enough parts that I didn't have to dismantle the first attempt
 
@rlemon Sweeet
 
once I get it finally working I hope to have some 'progression' models :)
 
3:49 PM
wait a sec
 
higher res look at the board
pretty simple little circuit, getting them "calibrated" right isn't so easy
top is the led, bottom is the diode
 
@Schoening you could also do this jsfiddle.net/6qFTq/4
 
@Mosho Nah.. I have both "Actions" and "Conditions"
Not a biggie. Either gonna use Bind or Call :)
I got a bigger issue now.. function executes once. But on each loop after that it says it's undefined D: damn u code god!
 
4:10 PM
And i thought sanskrit numbers were messed
 
How to XOR hex strings in JS?
$a xor $b //php
^JS equivalent?
@AbhishekHingnikar why would you think so?
 
!!> 17 ^ 16
 
@ThiefMaster 1
 
@AwalGarg: ^
also...
 
wait, I'll remove caprica from ignore list...
 
4:17 PM
!!google javascript xor
 
don't feed the indian stereotype by being too lazy to google. :)
 
@ThiefMaster thats decimal. I meant hex
 
...
why would that matter?
 
@ThiefMaster google didn't help so I came here. I have avoided coming here since the Nick case. Its your choice anyways.
 
4:18 PM
@AwalGarg saptanavatihi - 97
 
@ThiefMaster and why would that not matter?
 
if you have a hex string, use parseInt(yourstring, 16) to convert it to a number
 
@AbhishekHingnikar never learnt that far :P
 
because those operators act on numbers - no matter if you represent them in hex, binary, decimal or any other system
 
@ThiefMaster ok, wait I'll try and comeback.
thnx
 
4:22 PM
!!urban charizarding
 
@SecondRikudo Charizarding When you light a girls pubes on fire, put it out with your jizz then flap your arms and say "You don't have have enough badges to train me"
 
Enjoy!
 
@ThiefMaster it logs infinity, no matter what I parse. jsfiddle.net/3S3Ez
what am I doing wrong?
 
that number is WAY too large to handle in JS
are you trying to do crypto?
 
@ThiefMaster yep
 
4:28 PM
!!google cryptojs
 
@ThiefMaster ok, I didn't google this to be honest
isn't there a straightforward way to xor that string to a similar string?
in JS?
 
@AbhishekHingnikar lol probably selling in China, you see lots of weird bootlegged stuff like that
 
maybe there's some lib that can do arithmetics on arbitrary-precision numbers stored in strings.. dunno
 
FOR ALL JQUERY QUESTIONS PING @adeneo <-- can jQuery XOR large hex strings?
!!afk
 
4:36 PM
user image
4
 
Yay, Joy!
 
That's not her
 
Yay, some random dog!
 
They look alike, yes, but I'd never do something like that to Joy
 
You're a kinky dude
 
4:41 PM
is dblclick total trash or is it just me?
 
Look at how utterly lost he is!
@Mosho That's what they said about your mom
But she turned out to be quite a nice lady
 
@Mosho Thanks again :) I am using the bind method now. Since the *prototype.call* would not work in my case. http://codepen.io/schoening/pen/fJcmC
(Relevant code at the bottom, rest is setup)
 
We had tea and scones a few days ago, talked about this and that.
 
nice, it's been a while since I had a dad
3
 
5:22 PM
@Loktar gamejesus knows everything !
my faith in you have deepned
where are germans ??
 
lol
 
@AbhishekHingnikar I knew that too :(
 
@Mosho don't compare yourself to game jesus foolish mortal
his 5 & 7 year old kids wrote computer games !
at 5 & 7 my fiance won't let my kids touch a computer -_-
 
I would have done that too
but I was too busy having sex
 
wait waht @AbhishekHingnikar?
why wont she let them touch a computer!?
that knowledge is important man
 
5:34 PM
computers are after 10
which is quite right I think :P
let them feel the need to want to use a computer :3
^ Wow thats pretty brutal :-(
 
5:55 PM
What is this place...
 
@DuncanSmith 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 see
3
 
@DuncanSmith this is the place where people sing in js
 
and flirt in js
 
and we poop js... on slides, because we have style
 
6:03 PM
and we moan in js aswell
 
user image
5
 
sigh, does anyone know an online qr code generator that creates pdf or eps files in CMYK and lets you either choose the foreground color or uses 0/0/0/100?
 
@rlemon lol
 
@copy not as amazing, but still
 
6:13 PM
:(
 
let me rephrase:
!!>(new Array(100)).join('ha')
 
@towc "hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha‌​hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahah‌​ahahahahahahahahahahahahahahahahahahaha"
 
is there a way to combine tell and js?
!!tell hopenoonehasgotthisname >(new Array(10)).join('ha')
 
@towc Command >(new does not exist. (note that /tell works on commands, it's not an echo.)
 
!!tell towc eval 4
 
6:18 PM
@towc 4
 
oooh
interesting, thx
 
@Zirak it's like you wrote the thing or something
 
Uncanny
 
Zirak, Mosho, Benji, Second... err
 
you know who else had a list of jews, don't you?
 
Not Santa
 
I love the fact that you all are from same country :P
and such smart ! and such trolls
 
I thought mosho was canadian...
 
Wait, @Zirak you're from Israel too? :o
That's news to me
 
he feels closer to zirak's & benji's timezone to me
 
6:24 PM
I thought I was from Belgium
2
 
I thought i was born in hell, well on a second thought that is true.
 
I thought once!
 
I am confused then ^_^
2 mins ago, by Abhishek Hingnikar
Zirak, Mosho, Benji, Second... err
 
Well, someone once said that the earth is another planet's hell.
2
 
1 min ago, by Abhishek Hingnikar
I love the fact that you all are from same country :P
 
6:25 PM
it's pretty obvious Zirak is a 93 year old man from Parsons, WV
 
I think zirak is yoda, he will just age a few thousand years more to tell us hes actually 100k instead of 92k
 
internet don't lie
 
@Mosho not 94?
 
My grandma once told me her internet was broken
 
ah ninja'd
 
6:26 PM
And I said "gramda, this is 1930, the internet wasn't invented yet"
2
And she spanked me for being a wise-ass
That's why I became a ninja sumo
 
gramda, eh?
 
GRAMDA
 
6:42 PM
@towc I'm in canada
 
6:55 PM
<select ng-model="numResults" ng-options="n for n in [5,10,15,20]"></select>
this is pretty neat
could do without the n for
 
7:06 PM
yeah the select is dope in ng
 
m59
@Mosho dota?
 
@m59 maybe later, about to head out
will ping you
 
m59
league it is, then =D
I only have about 2 hours.
so, maybe next time. You're not missing much - I'm horrid.
 
should be back soon
honestly, dota2's graphics are hard to adapt to
compared to league, both of which I played the same number of games (1)
 
m59
Yeah! It's the graphics!!!
For real, that's exactly how I felt. Everytime I died, I didn't even know I was being attacked.
And it felt like if you can even see an enemy champ, you're in their attack range.
I mean, heck...My attacks hit twice as far as my screen height. That's odd.
 
7:12 PM
doesn't sound right :P we'll see
 
so. Is nodejs hard to learn?
 
m59
@Crow I don't think so IF you aren't already way accustomed to apache/php
 
making a basic server takes around the time it takes to hit copy and paste
 
m59
^ unless you are stuck thinking in terms of apache
 
Iunno, never used apache or PHP I did a lot of Flask mostly
 
m59
7:15 PM
Probably fine then.
 
All I really need to do is manage comments, users, and a lot of file uploads.
 
@Crow If in your mind the end result looks simple, you haven't talked to the Complexity Genie
 
hmm, maybe not simple, but common is probably the more appropriate term
 
For instance, you have comments. Can anyone post a comment? Do you need signup? How would you store passwords? Or maybe you'll use something like OpenID. But now assuming someone can comment, what will they be like? Is it just a list, or maybe you can comment to comments? What's the max nesting? How will you select that?
And what about flagging offensive comments? What about spam? How will moderation be handled?
 
Well, kind of the idea is to aggregate comments by a common tag, and anyone can reply on them in a forum like style. There would actually, come to think of it, have to be a fairly complex algorithm to determine the most relevent comments to any user
 
7:45 PM
nvm i suck
no wait
!!> document.createElement('img') instanceof Image
 
@AbhishekHingnikar "ReferenceError: document is not defined"
 
it comes out as false :-/
why ?
 
HTMLImageElement
Image is just a shortcut function
 
Err um wtf. and okay
 
8:01 PM
dat wording bro
 
Is there any difference between var input = document.createElement('input') and var input = new HTMLInputElement()?
 
Have you tried both?
 
Yes, not seeing much of a difference
 
!!> (document.createElement('input'))==(new HTMLInputElement())
 
@towc "ReferenceError: document is not defined"
 
8:03 PM
What kind of crackjob browser are you using?
 
Hmmm yeah I got confused, meant Image not Input
 
You also can't do new HTMLImageElement
So you probably meant document.createElement('img') and new Image
The answer: Nothing. You can just pass the width and height in the latter, instead of defining them later.
 
I see
 
                function createImage(img, filter){

                    if( !(img instanceof Event) ){
                        // Ah fuck this is so ulgy ugly fucgly
                        img = img || scope.source;
                        filter = filter ||  scope.filter;

                    }


                    if( (img instanceof HTMLImageElement) === false ){

                        // handle idiot programmer
                        // that is most likely me
                        // oh burns !
now now i have really written legendary bad code.
 
wat
 
8:09 PM
The rest of the function transforms the incoming image into a filtered image
 
ugly but works... what's the purpose of addr?
oh... nvm
 
that wont work @towc
in callback the img will always be an event
and then i am giving a temp image the source of .. yes you got it EVENT !
 
8:31 PM
COMON GERMANS
 
00:00 - 21:0021:00 - 00:00

« first day (1366 days earlier)      last day (3598 days later) »