« first day (1430 days earlier)      last day (3516 days later) » 

user1596138
4:01 PM
@nickdugger where are you working?
 
I do miss my home in MN a bit. Flannel, coffee in the midst of a snow storm, a lit fireplace in below-freezing weather, hockey, etc...

@Jhawins I work/live in Houston, TX (for a company that's pretty behind the times in most things, but my boss is awesome)
I actually just learned recently that my boss likes video games. Makes him even cooler
 
user1596138
Nice nice
 
user1596138
I can't wait for winter. The smell of burning corn at mom's int he fireplace is nice
 
user1596138
Sometimes I get a bag of cherry pits to mix in for em and the house smells amazing
 
I'm prepared to be disappointed by winter, here. People say that it rains a good bit, and sometimes it gets icy, but no snow. :(
I grew up with snow, it will be sad
 
user1596138
4:07 PM
There house is heated 100% by dried corn hahaha
 
I love the smell of a fire in winter. But it also means it's almost time for a trip to the mountains to snowboard!
i like this song
 
user1596138
I need to go boarding and skiing this year! Last year I missed out
 
user1596138
Are there any Michigan guys here?
 
hello I need some help about stream mp3 via web rtc
 
@NickDugger 15hr
 
4:09 PM
The audio tag has next src: src="blob:http%3A//localhost/8790d240-867a-4b25-afa4-27a32ca04e67"
 
@NickDugger I'm pretty close to you apparently
 
but when I do element.play() no result
 
@Loktar in texas?
 
@Loktar Don't tell you wife
 
Nebraska
 
4:10 PM
what I miss
 
@Loktar I'm not in MN anymore, I'm in Texas
> Hi Nick Dugger, i have picked up your skype id, i need a good artist for make my gui , i pay, tell me..
^random skype contact request
 
tell me your secrets!
 
Guys, what is a cli in the terminal? I'm trying to setup a local version of this game I develop for, and the owner is helping me, and he said to find my php5 file, and use this command cp -r cli cli-prpg what is that doing? I don't see any files or directories like that anywhere
 
I PAY TELL ME
 
s/TELL/BANG/
 
4:13 PM
He was from France (unrelated). Needless to say, I declined the request.
 
thats some pretty badly broken English esp from France
 
@SterlingArcher have you tried cd cli?
it sppears to be trying to copy a directory
 
That's what I thought, but I don't know why PHP5 would have such a file. Maybe I misunderstood the instructions
 
I feel like, "I don't know why", and "php", are the perfect combination of words to describe PHP
 
The file is not in the repo directory either wtf
 
4:17 PM
 
Here's the instructions he gave me -- help me understand mebbe?
 
google does not seem to know much about that
 
prpg is the name of the repo
> Try enabling our prepend file -- it's a PHP setting that you'll need to enable by hand.

cd /etc/php5/
cp -r cli cli-prpg
cd cli-prpg

edit php.ini, find a line with auto_prepend_file and set it to the full path for:
[your computer path to repo]/php.content-header.php

use this command line:

php -S localhost:8000 -c /etc/php5/cli-prpg

This should solve most of the problems. You also have our database now so you should be able to get everything working -- let me know how it goes.
Firstly, my PHP is in usr/local/php5 not /etc/php5/ so I'm not sure if that's a red flag right there
Any thoughts?
 
Wait... what the hell? Where can I get these?
 
are you 100% certain cli doesn't exist?
 
user1596138
4:20 PM
@SterlingArcher where is this coming from?
 
Not hidden or anything like that?
 
yeah I tried ls -la too
 
in that case, it won't work
 
@Jhawins they're from the owner of the game -- a developer out in Cali
 
Is there anything cli-ish?
 
user1596138
4:21 PM
@SterlingArcher The repo?
 
user1596138
Link to repo?
 
@Jhawins oh the repo is private
Sorry
 
user1596138
Oh.
 
user1596138
If you just need to enable prepending a file you don't need his guide. But I'm guessing that's not the problem
 
Yeah game code is private lol he's very adamant about other games stealing ideas (which happened in the past)
Yeah maybe he needs to send me a file or directory or something
 
4:23 PM
PHP having a CLI version and a server version has caused me problems a few times
 
user1596138
Is there no cli dir in the repo?
 
not that I see
 
there isn't a directory like php-cli
or something like that?
 
let me check
 
user1596138
It's not like PHP is supposed to have a cli directory
 
4:24 PM
Yeah nothing like php-cli in the php dir
 
wait... are you sure its a directory?
 
No, but there isn't a file named that either
 
oh...
 
yeah it's rather confusing
 
admit defeat
 
4:26 PM
never!
 
Yea, I'm going off of a vague memory of something I did before
 
Guys, I need to a clean way of cycling through an array repeatedly in a timeout/interval. Any ideas?
 
depends what you mean cycling
like iterating?
 
@SterlingArcher [1, 2, 3]
 
user1596138
@SterlingArcher you're just being victimized by poor documentation. Askl him what the hell he thinks he's doing haha
 
4:28 PM
I want that in each run of the function/timeout/interval to get
1 -> 2 -> 3 -> 1 -> 2 -> 3 -> 1 -> ...
 
Maybe a forEach call?
I'm not 100% sure I'm following
 
user1596138
function logArrayElements(element, index, array) {
  console.log('a[' + index + '] = ' + element);
}

// Note ellision, there is no member at 2 so it isn't visited
[2, 5, , 9].forEach(logArrayElements);
 
user2620028
@Jhawins when in the year you thinking about going snowboarding?
 
s/poor documentation/php/ -- Is this beating a dead horse now? Is this like one of those, "Yeah, we get it, stop" kind of moments?
 
4:29 PM
@Jhawins it may be a windows -> mac issues. This guy is brilliant -- he taught me how to code from the start
 
user1596138
You should probably iterate an array by iterating an array.
3
 
user1596138
@SterlingArcher Brilliance doesn't mean good at documenting haha
 
user1596138
I know I am terrible.
 
I will say, MAMP > XAMPP (or shitty WAMP)
 
user1596138
4:30 PM
On Windows the php cli shit is a .exe. So it's not that
 
it doesn't help that he inherited a poorly built game and tasked himself to fixing it from the ground up
 
user1596138
@SecondRikudo sorry for the sass it was in good fun. If that's not what you meant... Rephrase maybe?
 
Hmm look at this cli is built into it already
PHP 5.5.16 (cli) (built: Aug 22 2014 11:40:22)
 
user1596138
But yeah, call array.forEach(arrayHandlingFunction) in your timeout seems to be what you wanna do
 
user1596138
@SterlingArcher Oh that's what you're doing? Yeah, cli is enabled by default so is cgi but that doesn't guarantee the proper setup if you didn't flag it at build. SOmetimes it's not what you'd expect
 
4:33 PM
Hmmmm
 
user1596138
Easy way to try tho
 
user1596138
php -a
 
The only thing I truly miss from working on a mac, is "ls"
 
user1596138
@NickDugger ...You mean you use Windows now?
 
user1596138
ls is a standard command in all flavors of nix including OSX
 
4:35 PM
Yes, for work.
 
user1596138
You could always use Ubuntu, will be ridiculously familiar to you as far as CLI goes
 
Anybody here a DNS guru? I'm pretty good with it, but something has me stumped
 
windows' "dir" command sucks donkey dick compared to what ls gives you
 
user1596138
Windows CLI as a whole is trash.
 
I'm having a case of the Mondays. :|
@Jhawins true
 
4:37 PM
@Jhawins php -a just gave me a shit ton of errors
notices and warnings, sorry
 
user1596138
@NickDugger you should go get win-bash, you'll have BASH again (including cd, ls, whatever other normal stuff)
 
user1596138
@SterlingArcher Not good. Post output? All you did was "php -a" and you got that? You should've had a php prompt
 
I do have it, but you know what I can't use those commands in? The Node prompt
 
user1596138
Office-Mountain:bin iMac3$ php -a
Interactive shell

php > echo 'Sterling is a bromo';
Sterling is a bromophp >
 
It might be the directory I'm in
 
user1596138
4:38 PM
@NickDugger Ooooooh
 
user1596138
@SterlingArcher shouldn't be... Try from ~?
 
Ah, durr, I added a auto_prepend_file to php.ini
that must be why
 
user1596138
Haha so you saw the warnings from the prepended php file?
 
user1596138
I've never tried the interactive shell with auto_prepend_file, but I would assume it still prepends it.
 
Yeah, this thing is a mess I need some clarification on his end lol
 
user1596138
4:40 PM
Yeah hahaha. If I were you I'd ask him instead of chasing it myself. Do you know his environment?
 
Hi all
 
@Thinkerer 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.
 
can anyone help on my post?
its here
 
@Jhawins I don't. I have to assume windows, since he's pointing me to /etc/php5 when my PHP is in /usr/local/php5
 
4:41 PM
0
Q: click item in list >>> details, detail page no output? Angularjs & Ionic

Thinkerersorry for another post, still learning. Please help with the problem. Also would be happy if someone could explain their answers too. Thanks! The items show up in a list format with the html code below. <div class="post row" ng-repeat="(postId, post) in posts"> <a href="{{ post.url }}">{{ p...

 
user1596138
@SterlingArcher See..... On windows the slashes would be reversed, and he wouldn't be giving you BASH commands. So it just can't be?
 
still learning so apologies if my basics arent that solid yet....cant solve this problem
would be very happy if someone could help :)
 
@Jhawins weird. Why would my php install into not etc? I didn't specify where, it's just where curl put it
 
user1596138
cp would be copy, unless that is aliased for cmd?
 
no, cp is definitely copy
 
user1596138
4:42 PM
@SterlingArcher We are on OSX brother.
 
I spy a badger!
 
can reply directly on the post, ill try to post any info required as promptly as I can, thanks!!
 
user1596138
The install locations are different.
 
user1596138
Are you using the default PHP installation as well?
 
@Jhawins what environment installs to /etc/?
 
user1596138
4:43 PM
It all depends on how you set it up.
 
I don't know lol
Let's try this
I'm going to remove PHP, and you can show me how to install it correctly?
 
user1596138
@SterlingArcher nooooooooo!
 
user1596138
You have it installed correctly.
 
user1596138
You're fine.
 
You're sure?
 
user1596138
4:44 PM
Where is php.ini?
 
I even did source .bash_profile to make sure it's the default php as well
Loaded Configuration File: /usr/local/php5/lib/php.ini
 
Ah, one of the IP octets was slightly different in my DNS change. Fixed
 
(wow, me a year ago wouldn't have even known what a terminal was)
 
user1596138
Configuration File (php.ini) Path => /etc
 
what are you guys trying to do?
 
4:45 PM
Nope
Configuration File (php.ini) Path: /usr/local/php5/lib
 
user1596138
@SterlingArcher OSX version?
 
user1596138
What did you install your stack with, by hand or?
 
10.9.4
My stack?
 
user1596138
There's no reason to delete it and reinstall, these things vary.
 
user1596138
You just need to know where they are and recognize when a command has you looking in the wrong place :P
 
4:46 PM
@FlorianMargaine I got instructions to configure PHP to run a local version of this games repo (for a personal dev server), but it's not working.
 
user1596138
@SterlingArcher LAMP is a stack ya know, what is the rest of your stack and how did you install?
 
I generally just check php -v after installing PHP @SterlingArcher
 
what's not working? what's wrong?
 
Oh, I didn't install a stack. Doesn't macs come with MAMP?
 
sounds like you have php?
anyway, you better have a virtualbox VM
 
user1596138
4:47 PM
Honestly you don't have any issues that you've brought up yet. You just need clarification on what that mystery "cli" is
 
there are plenty of lamp stack vm on vagrantboxes
 
@FlorianMargaine here are the instructions. When I run php -S localhost:8000 in the repo directory, it gives me errors, so he told me to use those instructions
 
user1596138
@SterlingArcher Ooooh.... Yeah idk. I didn't use the defaults
 
user1596138
Bro just ask him first... If there's still a problem go from there lol
 
@SterlingArcher you may need to enable the stack in System Preferences. (Sharing I think) by checking a checkbox
 
4:48 PM
@SterlingArcher get a linux vm
 
Yeah, I have no idea what the cli is. But I have the auto_prepend_file set, but without this mystery cli-prpg directory/file I can't run php -S localhost:8000 -c /etc/php5/cli-prpg because 1. it don't exist, and 2. php is in usr/local/php5
 
Waiting for a DNS record to update is like waiting for paint to dry
 
user1596138
@SterlingArcher is your Apache running at all? What's at 127.0.0.1?
 
I might have to go linux VM depending on what my game-boss uses
 
user1596138
Should be "It works!" if you haven't changed it
 
4:50 PM
@Jhawins a page that says "It works!"
yup
this is weird, isn't it?
 
user1596138
Nice. Ok well yeah I don't think you have an issue you just need to clarify what he's talking about
 
Yeah, I guess it's the waiting game now. If he can't clear it up, I'm going linux VM
Hell I might just use my source undead server
 
user1596138
Nah nah@SterlingArcher uh oh!
 
@SterlingArcher Just create a symlink
3
A: PHP 5.4 Installation on Mountain Lion

kremaliciousI strongly suggest you use the package installer or use a full stack of configuration options when compiling, including the --prefix option so you know where the binary gets installed to. I can only guess PHP 5.4 installed itself into /usr/local/bin or somewhere else and didn't just overwrite th...

 
hour 6 of the c book reading marathon. Kill me
 
user1596138
4:52 PM
php -S localhost:8000 -c /etc/php5/cli-prpg
 
user1596138
Runs fine for me hahaha. Even though there is no /etc/php5 for me
 
user1596138
No errors
 
user1596138
ls: /etc/php5: No such file or directory
Office-Mountain:bin iMac3$ php -S localhost:8000 -c /etc/php5/cli-prpg
PHP 5.4.24 Development Server started at Mon Sep 15 12:52:02 2014
Listening on localhost:8000
Document root is /usr/bin
Press Ctrl-C to quit.
 
yeah same here, but the localhost page gives me a ton of php errors
 
user1596138
Strange that this isn't the result you have?
 
4:53 PM
that's my result, but the repo just doesn't wanna load normally lol
 
NOTICE and WARNINGS possibly, might not be an issue
you can suppress them if they seem benign
or fix them
 
So any idea?
About cycling an array
 
user1596138
@SecondRikudo What is your question?
 
@taco my local bin doesn't have php =x
 
@Jhawins I have an array: ['a', 'b', 'c']
 
4:55 PM
It's in /usr/local/php5/bin/php
 
I want to cycle through it, so that every run I get
'a' -> 'b' -> 'c' -> 'a' -> 'b' -> ...
 
user1596138
@SterlingArcher The local part is strange
 
@SecondRikudo so you want a timed-iteration basically?
 
user1596138
@SterlingArcher a bandaid would be a sys link from /usr/local/php5/bin/php to /usr/bin/php
 
Pass the index param around in the function call?
 
user1596138
4:56 PM
ln -s $firstDir $secondDir
 
@SterlingArcher It probably would b run in a timed iteration
 
@SecondRikudo how many times?
 
user1596138
But you'll need to decide what you want to do on your own. There is more going on for you
 
@FlorianMargaine Infinitely.
 
yeah I won't touch anything else until I get word from him
 
user1596138
4:57 PM
Because I do have /usr/bin/php
 
user1596138
@SterlingArcher bro if you're bored... Say fuck it, uninstall, reinstall with brew. You do use homebrew or similar right?
 
I think I have brew. But what's wrong with curl?
 
user1596138
Because you have some inconsistencies caused by OSX that you're gonna end up fighting down the road
 
@Jhawins the better solution would be to install a linux vm then
 
user1596138
@SterlingArcher curl is.... curl? It doesn't do anything near what brew does xD
 
user1596138
4:58 PM
@FlorianMargaine Nah, that's dependent on his situation. Maybe he wants a real environment setup on his main dev machine.
 
@SecondRikudo there's no magic then, nested whiles and you're good to go
no stack issue at least
 
@FlorianMargaine Eh?
 
@Jhawins so? that's what VMs are for, a real environment setup on dev machines.
 
I was rather easy setting up php with ubuntu. sudo apt-get was very easy
 
user1596138
@FlorianMargaine It's just another way to approach it. Don't try to push it as right or wrong.
 
user1596138
4:59 PM
@SterlingArcher Same thing with brew. brew install php5
 
user1596138
DON'T use sudo with brew lmao
 
@Jhawins it is right though
 
user1596138
@FlorianMargaine Just like spaces are right over tabs. Uh huh.
 
@SecondRikudo var i = 0; while (true) { while (i++ < 3) { /* ... */ } i = 0; }
 
5:00 PM
@Jhawins no they're not
 
user1596138
I use VMs, I use my digital ocean droplets and I use my normal environment for things
 
@Jhawins no, not really. Spaces over tabs is something experienced devs discuss because of personal reasons. Having a dev environment in a vm (a docker or a vbox, your choice) is not something experienced devs debate on. They all have the same opinion.
 
user1596138
It depends on the use case. And there's nothing wrong with testing locally not within a VM.
 
there is everything wrong with this
but debating with you is tiring, so I'm just going to watch this stream...
 
user1596138
Hahahahaha alright then @FlorianMargaine. Not everything belongs in a VM, don't be like that.
 
5:03 PM
It's ok to disagree guys :(
 
What are we testing in VMs and without?
 
user1596138
Anyway @SterlingArcher you apparently need to uninstall PHP, MySQL/whatever web tech you have on your machine because you shouldn't be using it. Get rid of it all.
 
I develop often without a VM because it's faster.
 
user1596138
There's no point in having it, you shouldn't do anything outside a VM :) // total sarcasm for obvious reasons
 
@FlorianMargaine That's not good. brb
 
5:04 PM
fuck VM's - be like me and have a stand alone box for all supported environments
 
I don't have a VM for testing backend code, I just have a staging environment, and I run the code locally.
 
because who needs wings?
 
I have a VM for testing etc. when I code in Python
@ircmaxell is that a 30MB file?
 
:-P
 
5:05 PM
lol
 
user1596138
@BenjaminGruenbaum Yeah that's more of what I do. Sure I use the VMs but not when I don't need to. What a waste of time, effort etc
 
user1596138
But sometimes it makes sense to.
 
In this case a VM might not be required, I'll see
 
@ircmaxell I expect you to pay for my next data package...
 
@JanDvorak LOL
 
user1596138
5:05 PM
ANyway I am highstrung, the new chick is here again.
 
Good luck with that :-P
 
user1596138
!!afk smoke and pay for the gas I accidentally stole haha
 
@Jhawins Honestly, I never really had deployment issues with PHP
 
@Jhawins go ham brah, it's lunch time for me
 
user1596138
@BenjaminGruenbaum Yeah.... Me neither, none whatsoever. That's why I suggested maybe he just remove the default (like I did) and install it over again using brew. Then everything is where it "should" be
 
5:08 PM
@Jhawins lol you're gonna be mad
 
@SterlingArcher Jhawins is afk: smoke and pay for the gas I accidentally stole haha
 
> Hmmmm i've never installed php on a mac -- i've always done it on Linux (i run virtual machine here)...

I'll install it on my mac and get back to you.
 
!!> (3).maxDecimal(1)
 
@RalphWiggum "SyntaxError: identifier starts immediately after numeric literal"
@RalphWiggum "TypeError: 3.maxDecimal is not a function"
 
I've had issues with php versions so many times... I just run a vm with the php version of production environment just to make sure. My personal php version is like 5.6 so it'll never work in prod, where it's usually 5.4 or something
 
5:08 PM
I guess I'll be going ubuntu VM after work
 
@FlorianMargaine my php is probably a lot simpler than yours
 
Before I go to lunch, does anybody know a good instruction page on installing an ubuntu vm?
I have virtual box, but is there better?
ping me!
Also, <3 @balpha
Not sure we're going to to exactly this, but I like the direction this is going in the best. So... have a bounty :) — balpha ♦ 5 mins ago
My first bounty ever!!
 
@SterlingArcher vagrant
 
@SterlingArcher I don't know the answer, but Ping anyways
 
5:12 PM
@SterlingArcher DOOOOOCKERRR
 
Vagrant is nice, use it when doing python backend.
 
@SomeKittens he's not on linux
 
I will be
 
m59
@SomeKittensUx2666 the problem with docker.com is that I keep typing an "i".
 
5:14 PM
I told you that those vowels on a qwerty keyboard were bad news
bad news bears I tells you
 
!!s/rant|,.*//g
 
@KendallFrey Vag is nice (source)
 
Can't argue there
!!afk lunch time. i'm craving....... mexican.
 
in EcmaScript, 2 hours ago, by Kendall Frey
with one blast of mexican food byproducts
 
m59
Wow.... I have a filter on my internet, so I don't have worries about what dicker.com might be. I checked it out and it's actually a staffing agency.
"Dicker Works for You"
 
5:16 PM
I want...
@ircmaxell do you know what's the tactile thing for?
I don't see its description in the page
 
m59
"So, how'd you get your job?" "Oh, I got my position through dicker.com"
 
oh it's the volume
 
dat juxtaposition
 
@FlorianMargaine no idea
 
m59
5:21 PM
;D
 
!!s/D/3/
 
@RalphWiggum ;3 (source)
 
!!s/;/</
 
@KendallFrey @RalphWiggum <3 (source) (source)
 
4EVA BRUV
 
5:23 PM
:3
I fucking hate Mondays.
 
MOOONNNDAYYYYS
My opinion of Mondays varies drastically by the type of weekend I've had
 
Is there anybody who knows webRTC?
 
@Anton_Sh 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.
 
@Anton_Sh MDN should be able to help
 
MDN didn`t help I tryed it
 
5:34 PM
what have you tried?
 
I am trying to stream mp3 via webrtc. The problem is that I recieved the blob from pc1, I set src (src="blob:http%3A//46.10.143.141/5a5951f0-4861-4874-90e9-5b94a9f6ba0d"), after that I add element.play() I no result
 
m59
Freaking heck guys... life is trying to kill me.
 
Wrong religion?
 
m59
I'm quite motivated and my mind is clear today, so I'm all about getting some serious work done - I can't see straight.
Narcolepsy really blows.
I need to learn to code blindfolded ;D
 
5:39 PM
@m59 get a Das Keyboard
 
m59
and a Das monitor? (everytime I read a line of code my vision goes entirely out of focus)
 
I really like hot and sour soup.
 
m59
I guess that'd be a monitor that doesn't show characters haha
@NickDugger Cold, sweet soup is good too. I think it's called "Koolaid".
 
Nah, mang. this:
Look'it that delicious tofu
 
> “I divide my officers into four classes; the clever, the lazy, the industrious, and the stupid. Each officer possesses at least two of these qualities. Those who are clever and industrious are fitted for the highest staff appointments. Use can be made of those who are stupid and lazy. The man who is clever and lazy however is for the very highest command; he has the temperament and nerves to deal with all situations. But whoever is stupid and industrious is a menace and must be removed immediately!”
 
m59
5:42 PM
Dang, that does look really friggin good.
 
"I know I'm nacho guy, but let me show you a gouda time."
 
m59
wow ^
 
!!luke or rob
 
@Sippy luke
 
Welcome back Ralph
 
5:52 PM
Tofu gives you man boobs. Not joking.
 
You shouldn't give it to young girls either. It kicks off puberty early...
 
any boobs > no boobs
 
famous last words
 
@KendallFrey that's creepy
o.O
 
5:54 PM
I think I'm gonna start buying/selling stocks, for fun.
 
I'm trading my Worldcoin for Darkcoin right now
 
@Jhawins you okay mate ?
 
@AbhishekHingnikar Jhawins is afk: smoke and pay for the gas I accidentally stole haha
 
@AbhishekHingnikar he was arrested for stealing gas
 
accidentally stole gas lol
 
5:56 PM
wtf >
 
#redneckproblems
 
@Jhawins no worries dude i can sign your paycheck from november
 
How did he accidentally steal gas?
I've had to pre-pay for gas since around 2000
 
was filling up his pickup and got a call on the CB that there was a sale on mudflaps down at the local TSC
 

« first day (1430 days earlier)      last day (3516 days later) »