« first day (1410 days earlier)      last day (3555 days later) » 

9:00 PM
?
anyone use angular?
 
> Angularjs is on topic here. stop asking.
 
@tejas-manohar Yep
 
close enough
!!afk because your mom called
 
Lesson to be learned: Nobody reads the fucking topic
 
@RyanKinal lol it amused me at least. The pistol holding like a rifle one hurt me
 
9:01 PM
@SterlingArcher lol, yep
 
@RyanKinal how does this ng-include work? github.com/simplyianm/yo-reddit/blob/master/client/app/main/…
the = path doesnt seem right though :(
 
Mine is more like funcNam('value', index, 'action')
 
what does the "' do, is that indicating "client" components by default or something?
 
@SterlingArcher They were written with a horrible fake Russian accent FFS
 
9:01 PM
where "action" is copy to index, or get current index value, or overwrite array
 
@tejas-manohar ng-include is expecting an expression that evaluates to a string. Thus, you have to double-quote it.
 
@KendallFrey yeah but the accent comes from us
 
@SterlingArcher my fave was the boolets one
 
That could easily be a southern accent
 
9:02 PM
<div ng-include="'components/navbar/navbar.html'"></div> no but main.html is in client/app/main
 
Who says "peestol"?
 
and components is in client
 
A Southern man would never say "peestol"
 
@RyanKinal don't we need some ../ there?
nevertheless, it works yo-reddit.herokuapp.com
 
"pistola"
 
9:03 PM
@RyanKinal maybe it's read in a slavic/russian accent
 
Wheres the pee stall, i gotta take a leak
 
@towc I consulted on the production
 
@tejas-manohar I think the "base directory" is whichever directory your index is in, not where your templates are.
 
@RYanKinal ahhh that might make sense :)
 
Or, rather, where your scripts are being run from
 
9:05 PM
@RyanKinal yep :)
so "' represents working dir
 
:-)
Anyway...
 
@tejas-manohar what is "yo"
 
nice to know
 
!!afk food, beer?, home, music
 
What do you guys generally do if one Unit test depends on another
 
9:08 PM
 
Combine them
 
^
our unit tests all depend on a gazillion things. It's horrible
 
ok thanks
thats how I have it now. Didn't know if that was bad form or not.
 
I was just checking out that fiddle jsfiddle.net/Lv5mdtw8
 
@RyanKinal any idea why the login menu item pastebin.com/f77RwEVG would show if that blob was straight in the main.html file but not when imported from ng-include (about shows either way)?
 
9:11 PM
@tejas-manohar RyanKinal is afk: food, beer?, home, music
 
I still dont understand how this is ok since myApp can be easily overwritten
 
anyone else know?
 
oh good, that change only broke 18 tests
 
2
Q: Angular promise resolves inside function but not outside

Robby AllsoppI have a recursive function checking for some data every half second or so. The function returns a promise. Once I find the data, I want to resolve the promise and pass the data as the resolution. The problem is, the promise won't call .then() outside of the function. Here's the fiddle: http://js...

 
@KendallFrey I think if your unit tests depend on externals, it's probably more of an integration test of sorts, though. I need to learn Mocking REST,SOAP as a system I'm taking over has too many dependencies like that, too
 
9:15 PM
0
Q: What does this regex do? [^/].*?

Nick RetallackI found this in the source code for Werkzeug. What is that question mark doing there?

for the love of atwood..
 
@taco Oh, yes, I'm not pretending that they aren't integration tests
 
Yep. A test is better than no test
What do you guys test with in Javascript? I haven't tested javascript? I've seen some mentions of Grunt and Gulp
It sounds like Gulp is easier
but similair
 
Mocha
 
ok, thanks
Mocha can.... compile ?
 
No, Closure Compiler
I put everything together with shell scripts or Makefiles, but I'm weird
 
9:20 PM
Grunt and Gulp aren't testing frameworks, they're task runners.
You say "Hey Grunt, do X!" (where X is uploading things to AWS, compiling Jade, etc). You can say "Hey Grunt, run my tests" but it's just telling something else (like Mocha) to actually run the tests.
 
ok
 
Uh oh, he's offended by the downvotes
MAN THE COMMENTS!
 
Ah, hence the name Grunt
 
Does underscore.js have something that combines _.findWhere() with _.indexOf() to get the index value of a name value pair?
 
That's odd, two of my questions were downvoted.
 
9:25 PM
wasn't me
 
UUGGHH
so they made the decision to support IE8 today
My boss fought it
now I need to remove the URL node module because it poops.
so annoying
was so fucking easy to use :?
 
my bootstrap dropdowns are all effed too
 
@Loktar Test for it
 
need to figure out why the width is collapsing
 
9:27 PM
IT wins again
 
@jbolanos I need to look into how to do that
I'm using browserify
wonder if I could do a conditional requires or something
 
What a world
 
@jbolanos hmm yeah I guess I could wrap that in something that checks for IE8 or whatever URL is borking on
but then I need to write something with a similiar API just for the few small things I use it for
 
test for support
 
9:29 PM
does Webstorm have a concept of a vhost?
 
have you looked at Modernizr
 
@jbolanos would rather not include another dependency
Basically I just need to test for support on this
// Get and return all the query strings for a url

var url = require('url');

exports.getQueries = function(path){
    path = path || '';

    var url_parts = url.parse(path, true),
        query = url_parts.query;

    return query;
}

exports.getQuery = function(path, query){
    path = path || '';
    return this.getQueries(path)[query] || false;
}

exports.getQueryString = function(path){
    path = path || '';
    var queryString = url.parse(path, true).search;

    return queryString;
}
 
I use this to lookup url params
//- PARSE URL BY KEY -\\
function getURLParameter(sParam){
    var sPageURL = window.location.search.substring(1);
    var sURLVariables = sPageURL.split('&');
    for (var i=0; i < sURLVariables.length; i++){
        var sParameterName = sURLVariables[i].split('=');
        if (sParameterName[0] == sParam){
            return sParameterName[1];
        }
    }
}
 
Do I spend another week trying to improve my code?---or----Do I launch this flying minivan.
 
does codepen support web workers?
 
9:34 PM
if (getURLParameter('name')) {}
 
Hi sinners
 
@jbolanos yeah thats what I'm going to have to fall back onto
 
@Loktar o/
 
its not as sexy as using require('url') though :P
but ty
o/ @AbhishekHingnikar
 
@Loktar You can do something similar and just dump them into an array of name values
 
9:35 PM
Hey lok a simple question about canvas
 
actually yeah. Shit man Ill just have another file like urlie8.js
and ill include that conditionally
 
I have a friken showcase for filters
 
thanks @jbolanos nice talking it out to come up with a solution
 
function checkForData(){ return $q.when().then(function poll(){ return data || $timeout(400).then(poll); }) - fixed that for you. No reason for that code to be more than 3 lines long. $timeout already returns a promise, promises chain and you have a deferred anti pattern. — Benjamin Gruenbaum 4 mins ago
 
on the website
 
9:36 PM
Replacing 15 LoC with one is fun.
 
most of the other sections are videos
@BenjaminGruenbaum that $timeout(400).then(pull) is so much more readable
 
@Loktar helps me too
 
Yeah, it's wrong, I wonder if anyone will notice :P
 
@rancho just do it. What's the worst that could happen?
 
It's supposed to be $timeout(angular.noop, 400) but I don't want OP to copypasta
 
9:37 PM
I did :P
 
That's nice :P
 
but there should be a version which automatically pushes noop
it'd be much more readable :P
 
Yeah, the return value is deteremined by the inner then, the real way is actually shorter
 
wait(20).then(reThinkWhatYouSaid);
 
It's return $timeout(poll, 400) - again I don't want OP to copypasta.
 
9:38 PM
Sounds like a plan. Just do it.
 
Anyways back to @Loktar when does a canvas actually renders ?
 
Good enough for michael jordan, and thelma and louis
 
function checkForData(){ return $q.when().then(function poll(){ return data || $timeout(poll, 400); })
 
@AbhishekHingnikar what do you mean?
 
afaik if i set a .raf it will call a function everytime it renders
 
9:39 PM
JS functions so verbose.
 
yea
 
@Loktar i just want to extremely reduce the load of an app runinng inside a website
 
you can do your own isdirty check or something
 
In short I have 3 videos showcases and 2 insane demos on the website
on chrome the "huge" images start making the browser act suspiciously slow on inferior gpu's
so my solution was to activate the demos only when needed
didn't work out very well as the "initilialization" makes animations quirky
 
how the fuck do I lose a sim card :/
 
9:42 PM
@rlemon you pop it out of your tray to clean or something and then it just gets lost
or you are getting pranked
or your phone got stolen
or nsa is about to tap you
 
I took it out a while ago (work phone) because the GF was borrowing the phon e
now I can't find it
 
take a light
make it as horizontal as possible
hopefully your metallic side will shine.
[ususally how i find small things that i lose on floor ]
 
UUghh
indexOf not supported
FU IE8.
lol damnit all this shit
 
@Abhishek yea not that kinda lost
 
lollololol @Loktar
 
9:45 PM
oh boy. @rlemon good luck my friend.
ps gsap is superrrrrrrrrrrrrrrrrrrrrrr cool
 
Told ya ;)
Ohh well. This phone still has WiFi
 
I would start compiling a list @Loktar. Then tell them to get IT to standardize on a newer browser
 
Its just so I can chat from the can. Forgot my phone at work.
 
You can't let the user base fall behind on browser versions, for security reasons alone
 
@taco yeah they already know that.. the problem is this one super important app works on IE8
 
9:47 PM
Why is red-eye removal not automated using facial detection on Android and iPhone ?
 
hopefully your boss doesn't know about backported fixes...
 
and they haven't upgraded yet.
 
ah poop
 
our external users are down to like 4% for IE8
internal its like 40%
fucking sucks.
 
@Loktar wait what ?
IE 8 40 % ?
u sure your internals are not external internals from china ?
 
9:48 PM
Maybe they should remote desktop into a terminal with IE8
 
yes all of our reps use it for this one important application
@taco haha I wish, its an application that integrates witht heir phones
 
I feel you man
 
so user A calls, they can automatically connect or some shit via the phone and IE8 idk
but its better than 6/7 :p
I woudlnt be mad at all if I was initially told
they said Only IE9 and above when I started
then I get it done.. "We need IE8 support"
are you serious?
 
Ie8 more like ie great!
 
Thats why requirements are so important
 
9:49 PM
IE8 the new IE6
 
"That's going to be x weeks more dev time"
 
!!s/8/9/
 
@Shmiddty IE9 the new IE6 (source)
 
yeah thats what they want me to tell them now how long it will take
being honest Ill be done today and supporting IE8
 
2-8 weeks
 
9:50 PM
just sucks having to lose some of the JS fanciness.
 
So can I add poop time to the workout log. I feel like my abs are getting a good run here.
 
okay... trying to make a brainfuck interpreter in js
can't figure out an elegant solution for the while loop
probably some regexp would be of help
I have a string which is the whole brainfuck code
my interpreter looks for every character in the code sequentially
then it does stuff based on instruction with a switch statement
but when I hit a '[' I'm not really sure what I am supposed to do
I mean, I know many solution, but none seems right enough
they would work, but I feel like they're horrible
 
stack
 
!!youtube dotcom dumptruck
 
9:56 PM
@copy I thought of that
but I realized there would be something more elegant
 
Well, it's likely not RE
 
I just had a good idea, it doesn't happen often! wait a sec
RE?
Right Enough?
 
Regular Expression
 
oh, yeah
I thought there was an easy way to get what's in a pair of parenthesis with that, if there were parenthesis inside
but I actually may have found something better
 
A girlfriend?
 
10:02 PM
-_-
no, it was more like using the js stack itself instead of building mine
 
@towc your website looks to have spam url's in the chat
 
@copy I could add a girlfriend too somewhere in there
@taco the website is bound to be completely reset and redesigned soon, so no problem there. take a look at this
 
It could still kill your SEO
 
@copy but I'm waiting until I get to germany, it's not worth it in italy
 
10:05 PM
@taco it's not like I really care, nobody is browsing on my site now I guess, really not much to see
@AbhishekHingnikar don't laugh ;|
 
@towc oh dude send me some pizza basses and cheeeze
or ffs send me some authentic pizzas and pasta ^^
 
!!youtube Adam Sandler They're All Gonna Laugh At You
 
!!youtube perform this way
 
10:06 PM
@AbhishekHingnikar I don't actually dislike german food
 
!!youtube I am what I am
@towc i am talking about italian
 
wtf
lol
 
!!undo
gosh ...
 
@AbhishekHingnikar I know, but it's not a reason for me to like italy more
 
!!youtube emenim the way i am
 
10:07 PM
 
@AbhishekHingnikar lol
 
@towc DUDE I AM A FOODHOLIC
 
that's what you get for laughing at me :P
 
and.... i have been wanting to taste an actual italian pizza :-/
 
what's foodholic?
 
10:08 PM
!!urban foodholic
 
@AbhishekHingnikar No definition found for foodholic
 
darn :-/
 
!!define foodholic
 
@towc It means I aint got time to learn your $5 words.
 
@towc ^
anyways.. i love food and i love eating it and trying more types of it. I hate dominos but thats all i get
 
10:10 PM
@CapricaSix who made you?
 
@towc the legendary the almighty the incredible dork zirak
and then contributions from the room people
@Zirak
 
@AbhishekHingnikar I really want to taste a dominos' one ;(
 
OH THEY ARE HORRIBLE
i like pizza hut or papa john more
 
@towc Ahaha
 
but they also suck :-/ compared to a real pizza i have heard :-(
@copy have u tried an italian pizza ?
 
10:12 PM
I've been told they're just like italian pizza, just thinner
 
They're terrible
All of them
 
:O
then how come my cook friend [who has almost tasted every cuisine possible... hes tasted indian dishes that my grandma refuses to believe] loves them over dominos ?
 
I mean all American chain pizzas
Obviously
 
@copy oh xD
@towc i have heard from him that the italian ones actually have a flavour in the bread itself that the american ones just don't have.
and they are cooked fairly different ways
 
user2620028
Stone baked thin crust pizza is amazing
 
10:15 PM
exciting first day
 
@Mosho nice!
 
managed to corrupt a production database within 2 hours
 
An Italian pizza *made in Italy* is really really different from an American pizza and even from a lot of "Italian" ones made in the US as well, since most of the them are just exploiting the name.

A true Italian pizza have a thin crust made with flour, yeast (natural) (*) and water. Nothing else.
An American pizza have a thick crust, you can possibly also find oil or other fat inside.
The topping on an Italian pizza is very light compared to an American one: the most popular in Italy is "pizza margherita", which just have meshed tomatoes, mozzarella and basil; a spoon of extra virgin oliv
 
lol
 
@towc ^
@taco are you mexican ?
 
10:17 PM
A former co-worker of mine did that and it made the NY Times
 
@Mosho XD
@AbhishekHingnikar when it was describing the american pizza it described the pizza I'm used to eat XD
I'm in the north of italy
I was told that the true pizza is in the south
sooooo
 
Couldn't find the NYTimes article, but found this stevenmansour.com/en/writings/2006/jun/30/0235/…
 
now I wanna taste italian pizza too XD
 
so it could be worse @Mosho
 
@taco italy is too small to have a north and south. :o
 
10:19 PM
@AbhishekHingnikar trust me, we have huge differences
 
wow :o
that explains why north and south indians are two seperate races :x
 
north, center, south and islands
 
and mafia ?
 
@taco yeah, it was back up in 5 minutes
still slightly embarrassing :D
 
@AbhishekHingnikar no, that's the south of the center
 
10:20 PM
alias it, more readable
 
the north is known to be the efficient, dense and more hierarchic part
 
New co-worker decided he didn't need my help with adding a new RAID drive, and corrupted the RAID set .... hit the NY Times the next day
 
!!map India
 
@AbhishekHingnikar That didn't make much sense. Maybe you meant: man
 
but all the free publicity revived the user base, so in a ways it was good
 
10:21 PM
then the south is mainly for the rich guys, and it's the most corrupt part
I meant, middle
the south is for the proletarians, where most of the farms and unpopulated areas are
then the isles are almost purely turistic
also, in the south the food is much better than in the nort
 
Write less code more
 
I've had pizza in Amsterdam. It was nothing like American pizza.. not sure what it would be considered... Dutch? Italian.... should've made a note
 
@AbhishekHingnikar That didn't make much sense. Maybe you meant: man
 
I'm starting to recall why I blocked that guy
 
I can see why
 
10:30 PM
Alright guys, have a good one!
 
so, after years of trying to find out what wasn't working with my interpreter (@copy for which I've found an elegant solution to the while problem: recursively nested js-while loops) I figured that the problem may be that brainfuck contains < and >, which may cause problems with the dom... and I don't think that translating them to html char entities is a good idea, is there any other way?
@Mosho just wondering: what's your IRL first name?
this is my brainfuck interpreter: codepen.io/MateiGCopot/pen/ECtxv
should theorically work
but something is wrong
on the console it says: unexpected token '>'
which I think might be from the input.innerHTML= thingie
it gives not much of any other reference
if I put any console.logs after it nothing logs, but if I also put something before it it doesn't log
so I really have no idea what's going on
 
@towc why would you wonder that
 
@Mosho for curiosity
I hate not knowing the name of someone I've know for over a month
and with whom I keep talking to
 
fair enough
 
10:41 PM
some here have said Sharon
is that right?
 
yes
 
and you're male, right?
 
let me check
 
-_-
I've usually seen sharon in a femaleish context
but in my mind you're totally a male
 
you're a boy
I'm a man-child
but yeah, it goes both ways in Israel (the name)
 
10:45 PM
oh
mistery solved. thx!
 
it gets pretty tedious in Canada etc.
 
yeah, it doesn't even exist in italian
 
anyway, I'm off to bed
 
ok, 'night!
help with interpreter anyone? I don't even get how does the error help me. I clearly see that my script isn't even loaded, if I put a log on the first line it doesn't log
 
@Mosho glad you clarified on it going both ways in Israel :p
 
10:55 PM
@Mosho when I was talking to Benji I said the name you told me. he had no idea and I was so confused when he was saying sharon
I .... I feel so used :sobs:
 
jQuery('.GradientCanavasClose').click(function() {
        jQuery('.GradientCanavas').dialog( 'destroy' );
});
Shouldn't that destroy the dialog?
 
it destroys muh eyes
 

« first day (1410 days earlier)      last day (3555 days later) »