« first day (2022 days earlier)      last day (2927 days later) » 

2:00 PM
@Zirak
 
 
@SterlingArcher Oh. My. God. I want this.
 
Oh my god the alt text on that comic is fucking hilarious
 
I fucked Hilarious once
...there was no "punch line".
 
1 message moved to Trash can
@im1dermike Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Ohhh wow, I just remembered my dream. I had a dream that my desk monitors wouldn't line up correctly, and I was super upset about it
 
having an issue with the callback in `$q.all()` working. in the code below, `displayError()` doesn't get called, but `loadSuccess()` does:

        $q.all({
            request: repository.getRequest(requestId),
            lookup: repository.getLookups()
        }).then(loadSuccess, function (data) {
            displayError(data.data);
        });
 
@SterlingArcher youtube.com/watch?v=cym2hj4SVqw This was a roller coaster.
 
so react users
 
2:13 PM
Leviathan isn't that exciting
it's like drop zone
neat the first few times, then just another ride
 
@SterlingArcher They ruined it, they should have turned the outer pizza into a calzone.
 
@rlemon I like it
 
@im1dermike I don't get it, why do you want your errors callback run when the method was a success?
 
It's great at night
 
So is your mom
 
2:15 PM
GODDAMMIT
 
@SterlingArcher: ignore the name of that function. i just renamed it for this example
is the syntax correct?
 
bravo, good sir
 
displayError should be called after loadSuccess, no?
 
@SterlingArcher i.imgur.com/t7GSIFI.gifv
 
@im1dermike no
Check out the docs, the second function callback param is an error handler
If the first callback runs, the second does not
 
2:17 PM
oh i see. thanks
 
@rlemon hold my.. juice box?
@im1dermike no problemo
 
hell
hello
 
lool
@SterlingArcher what language do you know?
 
Speaking language or programming?
 
2:21 PM
programming
 
all of them
sterlink is a cunning linguist
 
!!urban cunning linguist
 
@JanDvorak cunning linguist A clever play on words to use in place of the word [word]cunnilingus[/word]‌​. The first play on words being of the similar sound, one who thinks a bit more about it will realize a "cunning linguist" would be someone who is skilled at speaking, implying the mouth, thus, someone skilled with their mouth.
 
Ummm, HTML, JS and CSS aside... PHP, NodeJS, ColdFusion, Java, Python are my most dominant languages
 
2:22 PM
cool
 
PHP sucks
 
well done lol
> Ummm, Tim Horton's, hockey and maple syrup aside... PHP, NodeJS, ColdFusion, Java, Python are my most dominant languages
 
Python is my weakest, CF and Java meh, NodeJS and PHP are my strongest server languages
 
@JanDvorak I haven't used PHP for a while, but it appears it got a lot better
 
anyone want coding any shape or anything in css with me?
 
2:23 PM
PHP7 is actually good
 
so, it sucks ... less?
 
Hey everyone, wonder if it is good practise using the call or apply to scope i 'private' function inside a object constructor of javascript. I've been using the var self = this; variable, but it feels a little bit hacky. How do people commenly deal with this problem? Jsffiddle for demostrating what I did: jsfiddle.net/qeLj8zz5
 
@SterlingArcher you want coding any shape or anything in css with me?
 
PHP to us is like JS to the Lounge. It's so easy to write shit code
 
yeah, remember Facebook's HHVM? it sort of got included into the language, kinda like jQuery did
 
2:24 PM
It still carries a ton of crud from its past, I would assume
 
@MattewDeveloper no thanks, my spare dev time goes to a game
 
youtube.com/watch?v=84J0K1BDgqs @SterlingArcher for the Cosby joke
 
php will always be bad, Jordan just likes it because it isn't coldfusion
 
@FilipDupanovi @ndugger you want?
 
@JanDvorak iunno, I recently discovered register_globals was a thing, and was so happy to find it was deprecated
register_globals is probably the worst cancer I've ever seen in a php config file
 
2:25 PM
speaking of PHP -- I'm converting some site away from CI (ohh I know) to node + express. I can see my search forms point to two different actions, one is /search one is /search.php -- both work, there is no search route or search.php file :/
it just searches google
I'm sitting here now like... how
 
I don't know... there are multiple bad cancers in PHP
 
Anyone want?
 
@MattewDeveloper Stop bugging people, we told you. Figure out a project and practice that way. We're all adults with full times jobs, we don't have time to help some kid all day .
 
@MattewDeveloper thanks for the invite, but I'm full. I'd be happy to review if you need another pair of eyes
 
@JanDvorak PHP has destucturing too
 
2:26 PM
cool
 
php has a lot of $
 
so does jQuery
 
The $ symbol gave Nick PTSD
 
Oh man, throwing back to 2007 BFMV
jam time
 
2:27 PM
@rlemon .htaccess?
 
nope
ahhh I do it in js
:D awesome
holy crap this was bad
 
@SterlingArcher so does your mom, but that doesn't mean much
 
I'm confused, should I have a git repo for every site I have (sub folder) or do I have just 1 in the root?
 
well, that depends
define "site"
 
I have a folder like /www that has all my sites/apps and I need source control on all of them so I can manage shit between dev and pro, all internal...nothing living on GitHub.
@FilipDupanović I think that's beyond what I need...I think.
 
you using Node.js @Waxi?
 
@FilipDupanović No I'm not, using apache/php for the server. (need to switch to node though)
 
@Waxi are those sites different subdomains, directories of one bigger site, totally separate apps running on the same origin, ...?
if you update them separately, you probably want multiple repos
 
2:39 PM
I don't get why this git is so confusing to me, it's proving to be more difficult than learning a language lol.
They are separate apps running, not connected to one another.
 
if you update files at random, then one big repo
one repo per deployed thing
 
@KendallFrey the ascii thing
 
@Waxi What tutorial have you learned from?
 
was it window.URL that killed you?
 
@ssube Ok thank you...let me try that.
 
2:40 PM
@rlemon ???
 
what is the error
 
@Waxi typically, when you have /var/www/foo-company-com and /var/www/bar-company-com, you'd have repos for foo and bar
 
there was none
 
so you can test and push them individually
 
@BartekBanachewicz I started with this try.github.io/levels/1/challenges/1 and I think the terminology threw me off. So then I opted for an interface like GitKraken hoping that would ease the pain, but without understanding git it's not going to help.
 
2:41 PM
FF doesn't like the mime type
 
now it's "Failed to load resource: the server responded with a status of 404 (Not Found)"
 
works for me on chrome
not FF
gonna re-encode the video
 
I'm not on FF
 
@Waxi Isn't there any glossary for the terminology? You really just need clone/pull/commit/push for simple usage
 
@Waxi about.gitlab.com/2014/09/29/gitlab-flow has some good general info at the start, before they get into branching
 
2:42 PM
@Waxi I found this git tutorial/game very enlightening: pcottle.github.io/learnGitBranching
 
So it works on Chrome but not Opera
also, the 404 is just the favicon
 
@KendallFrey that's called the internet, pal
 
@ssube @apsillers @BartekBanachewicz thank you much, will do some reading now!
 
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style>
	#app {
		padding: 5px;
    	font-family: courier;
    	font-size: 5px;
	}
	</style>
</head>
<body>
<pre id="app"></pre>
<script src="script.js"></script>
</body>
</html>
what fav icon ??
 
2:43 PM
well exactly, that's the cause of the error
there is none
 
@Waxi Kraken is great for exploring your repo, but you'll probably feel more comfortable learning from the CLI
 
glorious
 
@William yes
It's older
 
@Loktar @FlorianMargaine get down \o/
 
2:46 PM
happy FRIIIDAY
@William actually I guess technically dos is older, but wide user adoption didn't happen until after the C64 really
C64 was the first big hit home computer
highest selling of all time
maybe still?
 
@rlemon -_-
 
\o/
 
In Angular is it weird that if you have a directive and set some variables on its scope that any nested HTML inside the directive does not have access to the scope variables? Only works if you define a template for the directive
 
declaring variables to hide globals is a Bad Thing, if that's what you mean
 
and it's not always reliable
 
2:52 PM
<some-directive>{{ someVar }}</some-directive> If I do $scope.someVar = 'Hello'; in the controller or link functions of the directive how come that variable doesn't exist inside any inner HTML/child elements of the directive?
Seems crazy
 
9
Q: Can I explicitly reference a JavaScript global variable that's been shadowed by a local with the same name?

CodererI've seen tons of posts about the difference between global and function scope in JavaScript, far too many to link here. I've also seen my exact question asked about Python. So what I want to know is, how can I access a global variable when a "closer" scope also has a variable with the same nam...

 
I'm not even mad.
 
Amost 1/6 of my flags have aged away.
 
user1596138
@HatterisMad lol you suck
 
2:57 PM
@Josiah lol you blow
 
searching for 'npm lint' isn't yielding positive results
 
comment it out
 
stupid
I should have looked there
 
2:58 PM
That moment when you find a script in the repository that's been put through dean edward's packer... and then beautified.
 
I think a few scripts have special names that line up to short commands
 
@rlemon npm run lint
 
lint and test, maybe
 
run-script*
 
all the other scripts have to be under run-script
 
2:58 PM
not running for me
npm 3.3.12
 
do you have eslint installed globally?
 
not sure why he has eslint set up like that
 
I've always had to run-script for anything but test and start
 
Hello
 
@hello Welcome to the JavaScript chat! Please review the room 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.
 

« first day (2022 days earlier)      last day (2927 days later) »