« first day (1663 days earlier)      last day (3284 days later) » 

6:00 PM
a credit card?
or paypal with their credit line?
 
@Luggage I am not 18 so I can't have ccs yet.
 
but you want a payment service that''l pay without taking your money?
 
@Luggage I recieve payments to paypal from individual services. Then paypal autowithdraws to bank because my country's restrictions are retarded.
 
@AwalGarg Stores will allow you to purchase prepaid cards right? Will those work?
 
@CodeWarrior not sure :/
 
6:04 PM
ohh, FROM paypay TO bank.
i see.
 
Does Google Wallet work the same way as PayPal?
 
@CodeWarrior AFAIK, it doesn't. But even if it does, it is not as widely supported as PayPal.
 
Take your stinkin' paws off of me you damn dirty jquery developer!
 
@AwalGarg i simply unlinked my bank card after that linking that. My paypal works, but doesn't withdraw money. I also have ensured myself that there is a rule that Paypal needs my permission to withdraw money.
 
@AwalGarg is the one asking.
 
6:09 PM
hmm, I do have an option to remove my bank account
 
Friends, I am struggling to get async validation working on an angular form. I have the control bound to data on a controller, I have ng-model set to debounce at 500ms, and the validation directive that I have written is making the call to our API and getting good return, but nothing is changing on the view to reflect that.
Here are two pastebins:
Form: pastebin.com/FEAj5nxZ
Directive: pastebin.com/TSrkw2e3
 
@KarelG so what do you do when you want to withdraw money to your bank account?
 
You steal that money from a store, then paypal them what you took.
 
I asked yesterday and m59 responded that I could use a directive that he wrote, but my boss nixzed that as there is no guaranty that it would "be supported".
 
This is a question by a guy who doesn't really grasp the concept of asynchronicity. stackoverflow.com/questions/30084426/…
 
6:11 PM
@CodeWarrior no, it's just a medium between your e-purchases and your bank account. If you buy something from google using google wallet, it purchases the good, then it uses your bank account to deposit the money to google.
@AwalGarg i don't have to do that. I just keep it there for future purchases.
 
@KarelG Ahh. I havent really used it. I though you could put money into it.
 
buy bitcoins
 
@KarelG hmm, sounds like a good plan for your use case.
I although have to use the bank account too :(
I have too complicated of a situation.
 
my experiences with google wallet is not so shiney. So linked my paypal to my google wallet. I did the same with my mom's google wallet ( for her tablet), which is linked to my paypal
 
@darkyen00 come to gtalk
 
6:14 PM
@AwalGarg : if you have too much money on your paypal, you can link the bank account, wait 3 days, deposit it to the bank, wait 2 days and then unlink again. ( not sure if it would work )
 
Idaho and Wyoming don't have developers?
 
No, they have potatoes
 
Potatoes need programmers...
 
@KarelG Linking to bank account is not easy. You link to bank, they send make two small payments to bank, you put the amount of those payments in paypal, and then you can withdraw to bank.
 
Wyoming is literally just a rectangle
 
6:17 PM
@AwalGarg yeah, it takes time ofc, that they can ensure that you're the owner of the bank account ...
 
render(){
var scrollY = this.props.scrollY;
var fadeStart = this.props.fadeStart || 100;
var fadeExpanse = this.props.fadeExpanse || 500;

var style = {
opacity: ((fadeExpanse - (scrollY - fadeStart))/fadeExpanse);
};
Throws an error at fadeExpanse
any reason ?
 
whats the error?
ohh. Yes. the answer is yes. There is a reason.
 
what's wrong with this?

else if (computerChoice > 0.33 && <= 0.66) {
console.log("paper");
}

saying 'unexpected <= 0.66' on the console.
 
user image
2
 
maybe I could tell you if you FORMATTED YOUR CODE
scrub
 
6:21 PM
semicolon on the opacity: line
 
computerChoice > 0.33 && computerChoice <= 0.66
 
thanks (Y)
 
eww, a facebook shortcut
it's not the place for that here
anyone tried that goat simulator ? (i don't understand that ... )
 
https://jsfiddle.net/pL7e8sa6/

Always getting "scissors" for some reason..
 
inb4 IEEE
 
6:26 PM
@JoeConsterdine i got "rock" ...
 
really?
 
@JoeConsterdine I get paper all the time
 
@Luggage omg lol i didn't see xD
i guess my eyes wasn't even looking for it.
 
yeah I get paper everytime now haha
 
i have lint in my eyes
it hurts but it's useful
 
6:28 PM
Also I don't understand why no-one uses the tidy-up button in jsfiddle.
 
@JoeConsterdine check this
 
it's based on the user input
but I was wanting to check the computer choice
 
your problem is a too small random scale
 
You have about 700 ways to solve this problem.
 
use Math.random() * 30 and then use modulo for each part ( 0 = rock, 1 = scisor, 2 = paper)
that 30 is arbitrary, can be different
 
6:31 PM
I usually use ~~(Math.random()*100).
fits for most of my needs
 
he might not be experienced with binary operators, especially the mustache one ;)
 
ah right
 
I'm not :)
isn't that a tilde or whatever? :P
well two in this case
 
Yo! If I set 127.168.0.1 whatever.domain then my browser shouldn't load any resources from whatever.domain right?
 
It is used to as a short way to floor down a number. It is not equivalent to Math.floor, but often used as a replacement.
 
6:33 PM
btw what is the shortcut to repeat the previous line in the console?
 
up
 
oh haha
 
Wow that ~~ thing is awesome
 
fast flooring :)
 
@Martin it'll try to load tem from that address.. which is maybe not what you think. did you mean 127.0.0.1?
 
6:34 PM
@Luggage Yeah exactly
Will it snag subdomains too?
 
no, unless the hosts file takes wildcards.
there may be tools to do that you want
like ad-blockers
 
It wasn't working for some reason
From my adblocker
I will try specifying subdomain
 
It won't even route the ip. Even if you change www, it will not work.
 
@Martin + @JoeConsterdine : if interested in the ~~ operator, this post explains it well
 
Sorry?
Thanks @KarelG
 
6:37 PM
in JS, what's the way to say "call this method, if it exists, otherwise, use this default value"?
 
@corvid say way you test for thr existance of any variable and act according to the result
 
Thanks Karel.. I'll read!

I changed it to:

var computerChoice = Math.random() * 100;

and repeated it in the console and got the same number everytime? :)
 
if ( typeof myFunc !== 'undefined' ) myFunc()
else default value?
 
(someFunction ? someFunction() : 'default value')
 
That ^
 
6:38 PM
i wasn't rtying to feed him code but you forced my hand
 
I was kinda hoping I'd get a better way of what I've been doing lol
You just made me a bit better
 
aww
 
@JoeConsterdine jsfiddle.net/pL7e8sa6/1 (check what i did with the computer choice and the conditions)
 
@KarelG Nice read
 
6:39 PM
unformatted code is the sign of a deranged mind.
It's equivalent to having limbs of a prostitute in the trunk of your car.
 
it was already unformatted, forgot to tidyup it
 
use that f***king button suckers
 
i said that i forgot that ;_;
 
:D
@KarelG I was saying that to the OP actually :D
 
@dystroy it's even a fav question ...
 
6:45 PM
Thanks :)

1.Does Math.random have to be in brackets? Is it improper code for it not to be?

2.I understand modulo only a little bit... I understand it's like 12 % 3 = 0 and 12 $ 7 = 5... but I'm not sure in this instance.

So Math.random takes a number from 0-1 and x 100 and then you divide by 3 right? Or is that wrong?
 
@KarelG You must be new here : I fav all the bad questions I vote on so that I can check the following day that I wasn't wrong.
 
!!tell joe mdn javascript lexical grammar, math.random, arithmetic operators
 
Also, modulo of a and b ( a % b ) gives you the remainder of the quotation a / b.
@dystroy : everyone has their strategies :P I just vote. No need to look back
 
Wow I have 54 helpful flags!
I am so much helpful :D
 
6:50 PM
I have 0 :(
 
Can I even do this?
 
@JoeConsterdine So Math.random takes a number from 0-1 and x 100 and then you divide by 3 right? Or is that wrong? Yes, but the result in variable computerChoice is a remainder of the division by 3. Not the fraction itself. That's the difference between % (gives remainder) and / (gives fraction)
 
var inviteExpires = moment(inviteSent).add(4, 'days').toDate();
// ...
inviteExpires = Accounts._tokenExpiration ? Accounts._tokenExpiration(inviteSent) : inviteExpires;
 
sure, why not
@KarelG 5 % 2 = 1, 5 / 2 = 2.5
or, to put another way, 5 / 2 would equal 2, if you can have a 'remainder' of 1
 
ping joe for that :)
 
6:55 PM
which is what mod (%) gives you
Oops
I read that as "whats the difference" not "thats the difference"
 
no problems ^^
i'm off, bb
 
@KarelG It's not a "strategy". I just want to ensure I'm doing things right
 
We're gonna have a VP host a webcast of our cloud product on May 11th if anybody wants the link
 
aerolab.github.io/nokia-psd < I can't stop sharing this ... its mocking apple !
 
@KarelG thanks! I think I get it more now :)
 
7:00 PM
what's your cloud project?
 
Sorry I was watching Barcelona Vs Bayern :D
 
PS anybody with decent internet connection can you download that file and send me the yellow nokia ?
Please ?
 
If you want to do this on click (and not on hover) I'm afraid there is no non-hackish solution without JS. — dystroy 48 secs ago
Am I right here ?
 
@Luggage it's our take on enterprise cloud. We have two other cloud products, but this one is our baby
 
@taco And how do you open on click (without hackish solutions like disguising a checkbox) ?
 
7:07 PM
@dystroy not a front end guy for the most part, couldn't really say. I just know enough to be dangerous
 
I'm not a front-end guy either... I might not know enough to be really dangerous
 
It looks like maybe html5 data bindings or something
it also looks to me like maybe this "css3" solution still uses js
 
I'm like 80% sure that that 'tympanus' website is stealing tuts from codrops
wait...
codrops is owned by tymapnus
dur
tymp anus
 
guys, should I switch from mongodb to postgresql in my meteor app?
 
@corvid do you like meteor better than angular
 
7:22 PM
@darkyen00 I can download it from my server at 400megs :D
 
@AwalGarg can iu open the file ?
 
@darkyen00 not on a server, no
 
@taco kinda a hard question to answer because they're fundamentally different so hard to compare
 
Is there something like text background in html ? Just wondering if putting it in span is the only trick
 
@corvid I don't see why you shouldn't use postgres
 
7:25 PM
@AwalGarg no point then show-off
its a 166mb pdf
 
I'm currently debating that myself. Every Angular stack pushes mongo, though
 
I vote postgres unless you know you need mongo for some reason
it's much more straightforward to use correctly.
 
Postgres can be used as SQL server or NoSQL document store, while Mongo can only be used for the latter. I think Mongo fails when people try to use it as a SQL server
 
I <3 postgres too. Also see rethinkdb if you are too much into mongo..
 
7:41 PM
and there is a good chance you'll want to use it as a relational db and not realize it
 
What's the debate? Postgres vs. Mongo?
 
@taco same with meteor. I don't care for mongo. I want something a little more stable by default
 
Yup.
 
Postgres/Mongo for Meteor app
 
Apples vs Oranges 2015
 
7:45 PM
Yeah, it's not vs, it's or
 
"Like comparing apples to oranges" is a terrible expression. You can totally compare those things, (and for the record, oranges are better)
 
but you can't always judge an orange on the same criteria as an apple.
 
Obviously you haven't been eating delicious enough apples.
 
like crispness
 
@Luggage Yeah, but they both have the same purposes and goals, and you can certainly judge how well they both meet those goals.
 
7:48 PM
Does GitHub Pages support ASP.NET application?
 
oh, I read that wrong
 
just like comparing postgres and mongo. one will meet your needs more than the other
even though they are completely different on the inside
 
Well, I meant user.github.io/asp.
Or is it limited to just .html files?
 
they are static files
 
yeah sorry. I doubt it. I think it has to be static
 
7:49 PM
but they support jekyll for building those static files
 
I could see the use for mongo in some situations, but it doesn't seem like a "general" use case tool
 
I feel like Mongo has been shoehorned, and I'm still waiting to discover why Javascript programmers cling to it
 
at first glance it's so appealing. it's scriptable in JS and stores JS objects so easily
 
now rethinkdb posted by @AwalGarg.... that sounds interesting
I used Mongo for a simple app. It seems alright
All document-based, though, and selected by ID
 
yea, it's easy to use. but when you need multi-document transactions or other features that users of relational DBs take for granted it falls short
there are also some write-performance issues, supposedly, but I never encountered them.
postgres's json datatype does what i need for those bits that need to be schemaless
i'm not a mongo hater
but.. i started my current project in mongo and then migrated to postgres. it was a betetr fit for me.
 
7:58 PM
Anyone know how I end up with a 55mb iOS application file when the .zip I uploaded is 35mb?
Not sure if apple even compresses that but it seems incredibly large
 
it seems to do well in tree-like structures
 
@chronotrigga hidden directories probably
 
I deleted my .git, if I upload the .ipa I received I guess it'll be a 55mb dl?
 
I deleted myself :|
 
8:38 PM
hrmph. dumb question, is there any way to find which css properties are different between two elements?
 
@BenjaminGruenbaum Requesting details: What's your sign? I'm going to guess Libra because that is one of the few that I remember.
 
@corvid one of these might help stackoverflow.com/questions/8024102/…
 
@corvid Sure, developer.mozilla.org/en-US/docs/Web/API/Window/… on both elements, compare the differences.
 
9:01 PM
@chronotrigga because it decompresses it
 
> Michigan House votes to allow personal economics class to be part of high school requirements
we were having a discussion about that a week or so ago
thats a good step, all states need to do it
 
Michigan doin it right!
 
Agree.
as long as it's not creationist-economics
 
i'm afraid to google that
is that a thing?
 
9:21 PM
Joking aside, economics are creationist. All hail the almighty Fed!
 
9:36 PM
Which is the sexiest android phone out there ?
 
(^(?:(\<\=)|(\>\=)|(\=\=\=)|(\!\=\=)|(\=\=)|(\!\=)|(\+\+)|(\-\-)|(\>\>\>\=)|(\>\>\=)|(\<\<\=)|(\>\>\>)|(\>\>)|(\<\<)|(&&)|(\|\|)|(\+\=)|(\-\=)|(\*\=)|(%\=)|(&\=)|(\|\=)|(\^\=)|(/\=)|([\r\n\x{2028}\x{2029}])|([\x09\x0b\x0c\x20\xa0\p{Z}]+)|(/\*[\s\S]*?\*/)|(//[\s\S]*?[\r\n\x{2028}\x{2029}])|(0[xX][0-9a-fA-F]+|\.[0-9]+(?:[eE][-+]?[0-9]+)?|(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][-+]?[0-9]+)?)|((?:[\pLu\pLl\pLt\pLm\pLo\pNl$_]|\\u[a-fA-F0-9]{4})(?:[\pLu\pLl\pLt\pLm\pLo\pNl$_]|\\u[a-fA-F0-9]{4}|[\pMn\pMc]|[\pNd]|[\x{005f}\x{203F}\x{2040}\x{2054}\x{fe33}\x{fe34}\x{fe4d}\x{fe4e}\x{fe4f}\x{ff3f}]|[\x{2
 
what ?
 
@darkyen00 Ha! Good one!
 
that regex will lex every non-single-character token in JS :-)
 
9:37 PM
@ircmaxell your comment was corrupted
 
that's awful
 
how is it awful?
 
it's regex
 
@phenomnomnominal well i am googling them for past 2.5 hours
This one has to come next to on a page with a Nokia Lumia 920, iPhone 6 gold and Nokia 1100 classic
 
show me an easier way to build a lexer, and I'm all ears
 
9:40 PM
Maybe anyone can help me please ?stackoverflow.com/questions/30064644/…
 
@stav 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.
 
@ircmaxell
import computer from startrek;
computer.do("Make a lexxer, authorization picard epsilon 3 alpha");
@ircmaxell btw did you write that by hand ?
 
parts of it, the whole thing is compiled for me by a script I wrote, but I wrote the individual components
    /(?:
          [^\r\n\x{2028}\x{2029}*\\/\[]                    # RegularExpressionNonTerminator but not one of * or \ or / or [
        | \\ [^\r\n\x{2028}\x{2029}]                        # RegularExpressionBackslashSequence
        | \[ (?:
              [^\r\n\x{2028}\x{2029}\]\\]                # RegularExpressionNonTerminator but not one of ] or \
            | \\ [^\r\n\x{2028}\x{2029}]                    # RegularExpressionBackslashSequence
          )+ \]                                                # RegularExpressionClassChar
^^ matches regex literals
 
one of my favorite toys
you can make it build an AST using ES6 classes as you go, too: github.com/ssube/babel-peg
 
@ssube that's a parser. I have that already written. Looking to improve the lexer now
nevermind
it includes both
 
9:45 PM
yep. Performance is generally pretty good, rules are really simple.
Since you can attach a JS snippet to each rule, you can new up an AST node from there... github.com/ssube/babel-peg/blob/master/src/grammar.peg
worth looking at. Probably easier to maintain than a regex. :P
 
yeah, that's interesting (wrong language for my needs, but interesting)
 
10:08 PM
@Shmiddty taurus
@ircmaxell well, are you doing it in PHP or in C?
 
PHP
for now
@SomeKittens sure
 
@ircmaxell then RE might be your best bet indeed :)
Happy Birthday @BartekBanachewicz!
17
 
I'm debating making a parse tree myself... :-)
 
@ircmaxell github.com/marijnh/acorn/blob/master/src/tokenize.js although you probably already know how to do that
Tokenization and parsing make for some of the most boring code to write :D
That's why usually people just use tools that take BNF and give them a parser.
 
I used that for the parser
 
expression:
	expression ',' assignment_expression 		{ $$ = new Expr\ExprList($1, $3); }
	| assignment_expression 					{ $1; }
;
 
Yeah, hand-writing the parser isn't too bad either. Just lots of conditional logic and optimizing stuff.
 
well, making it efficient is another story
 
Well... spidermonkey itself emscriptens so there's that
 
so currently, parsing jquery takes 40 seconds to lex and another 40 seconds to parse o_O
 
10:19 PM
Also Python and stuff.
@ircmaxell yeah, that's not reasonable.
Acorn has a benchmark for jQuery I think somewhere
Acorn	230114 lines per second	100%
Esprima	264868 lines per second	115%
Traceur	64476 lines per second	28%
 
@darkyen00 I like my HTC One, but I would have gone with a Nexus phone had I the option (without paying full price). I hate when a computer comes loaded with 3rd party software.
 
On my crummy laptop
 
@Shmiddty nonono design wise
 
Fairly sleek, and the case is functional
 
10:34 PM
Guys my python texting API is coming along so awesomely
@BartekBanachewicz happy birthday buddy!
 
@SterlingArcher awesome
Gonna call it a day as I have to be at the hospital early tomorrow
 
Youtube needs an audio normalizer
or atleast needs to turn down voice on ads automatically if the user is watching a video which has very low volume
 
ok... maybe I won't disable adblock even after I have no more performance issues on Youtube
maybe on a per-video basis. But i'm still not sure if it makes any difference for the youtuber.
 
cya guys. gotta get my liver biopsied in the morning >:/
 
@taco enjoy that my man lol be safe
 
10:59 PM
!!zalgo zalgo
 
@SomeKittens ẓ̺̙̖̬̰͋̑̾ͪͮǎ͎͉̙̘̺̤ͮ̾̄̍̎̅̚l̶̼̣̭̦͍̮̐̉ģ̺̯̮̺͉̖̭͒ͣ̉̈́̒͂͌̾o̡̜̿́̀̓ͯ̉ͣͧ͢
 
!!zalgo _
 
@monners _͗ͩ̓ͦ͒͏͚͓͙͔͈̥ͅ
 
My work here is done
 
I have an asyncvalidator directive in angular that runs and gets a return from an $http.get request, but I don't know if I am returning what I need to from it. Here is the directive: pastebin.com/LUM6vEmT
If I only put the unique-screen-name directive on my input control, and there is an error, is there a default visual that is applied on error?
On a different form, with an email field (and the email validation setup), I have this:
{{signupForm.email.$error}}
{{signupForm.email.$error.email}}
which will give me feedback that the validation is working. I get a true value when the validation has an error for the email requirement, and I get a small JSON object describing the errors that are registered for the input.
I get nothing for the input that my unique-screen-name directive is on.
 
11:32 PM
Interestingly, I can step through execution and watch an object named uniqueScreenName be added to the $asyncValidators object on my input. When I output the form binding for the input with {{profileUpdateForm.userScreenName}} however, the validator is not there: pastebin.com/rtNysTr1
 
Could somebody help me with a small problem? I would like to prevent a link click to reload the page and instead of that get the "name or value" of the link and apply the value to a input text field.
 
@Procos 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.
 
$("#tags").html("<a class='tag' href=''>" + cat + "</a>");

$('.tag').click(function(event) {
    event.preventDefault();
    alert("click");
    $('#Tag').val($(this).val());
});
but he's not going into that click event.
 
@darkyen00 What is your opinion of Apple?
 
#tags is a div, where all tags should be displayed and cat is a single tag. #Tag is the input text field.
 
11:44 PM
@Procos I seem to recall having to put '#' as the href, but I don;t recall if it was for this problem.
 
@Shmiddty Great Hardware
Okayish software that locks you terrible on phones
Pleasing software that won't crash on macs :P
 
Also, be aware that the last line of your click callback you are referring to an item with an id of 'Tag' where your link has a class of 'tag'
 
I've never had one of their phones.
 
Had an iPHone issued by a previous employer. Did not like it. I have become a pretty die hard Android user over the last few years
 
My better half hates it. I like it.
 
11:46 PM
<3 iphones
 
I just had an epiphany
 
@CodeWarrior the last line $('#Tag') ... is a input text field
 
@Shmiddty if thats what you want as an analysis
 
i've added # and it still don't works. The page is reloading and i don't get any error or message.
 
@Procos, ahh just making sure
 
11:48 PM
@Procos .tag is a dynamic element, you need to delegate the event
 $(document).on("click", ".tag", function(event) {
 
The link that you are injecting there is the only one with class='tag'? In jQuery I tend to refer to items that I want to click or something by ID as ID should be unique on the page.
 
Nope. Lost it.
 
@CodeWarrior irrelevant to the issue, you don't know if there could be multiple .tag's
 
no, there can be up to 5 tags
that's why i use class. ;)
 
@SterlingArcher Gotcha. Been a while since I messed with jQuery.
Struggling with Angular ATM.
 
11:53 PM
that's not jquery though, that's just natural dom stuff
 
$(document).on("click", ".tag", function(event) {

The above is jquery.... It is that to which I was referring. Specifically the fact that the link was a dynamic element and was thus the click was not bound.
 
@SterlingArcher Yep, that works. Thanks. ;)
 
Welcome boss
 
but the tag is still not being applied to the input text field. $('#Tag').val($(this).val());
 
anchor tags don't have values
$('#Tag').val(this.textContent);
in jQuery $(this).text() but DOM is fine for properties
 
11:59 PM
@SterlingArcher does this work in IE already?
 

« first day (1663 days earlier)      last day (3284 days later) »