« first day (2309 days earlier)      last day (2638 days later) » 

Anonymous
3:00 PM
@Alesana no, that is poop
 
!!docs mysqli_prepare
 
@Shafizadeh Ah for me I just have test.php and I test everything there
 
[ mysqli::prepare ] Prepare an SQL statement for execution
 
@RachelDockter ^
 
@RachelDockter It's like cooking with a pan...
 
3:00 PM
And in order to make your life (a lot) easier, you should use PDO instead of mysqli @RachelDockter
 
!!? what are prepared statements and why should I care
 
!!youtube programming with anthony prepared statements
 
You can cook without it, but ffs you burn your hands many times.
 
the mysqli param binding API is hateful
 
3:00 PM
lol
 
holy fuck, slow down people
 
@MikeM. What is poop?
 
!!friday
also watch this ^
 
ok let me watch this
 
3:01 PM
@Alesana something you do on the toilet ;)
 
4 messages moved to Trash
 
ive seen that i love rebecca black
 
so do we
 
wow r11 sure is agitated this rebecca day
 
3:01 PM
and rebecca loves prepared statements
6
 
@MikeM. Haha I should have asked what you are metaphorically comparing to poop?
 
Gotta prepare your statements on Friday
 
Anonymous
@Alesana That was me. I was referring to your suggestion to use XAMPP
 
@Alesana good idea :-)
 
ok so far i think perpered statement is just sending the query with variables instead of 1 big string
 
3:02 PM
@DaveRandom have to make my mind up, which prepared statement should I take?
 
@JayIsTooCommon Whoops sorry I misread the name
 
@RachelDockter correct
 
ever notice that "rebecca black" can be abbreviated in the same manner as i18n - r11k. some kinda sign there.
2
 
What do you suggest @JayIsTooCommon
 
at the most basic level that is precisely what a parameterised query is
 
3:03 PM
I seriously didn't get what you mean tbh.
But alesana, you might want to run a linux server :P
 
Anonymous
@Gordon isn't it 'gotta' ? If you're gonna quote the goddess, do it right. And yes, I presume that is a direct quote.
 
A VM?
 
No...
Get rid of windows...
 
You want me to delete windows off of my PC for linux so I can do testing on a linux server?
 
user895378
@bwoebi I do, I just haven't had a chance to sit down and work on it since. I do think we should incorporate some form of backoff without the user needing to know about it ... I still want to expose a promise from unsubscribe(), though.
 
3:05 PM
@Alesana no, just install vagrant
 
@MikeM. I will fight you. I will fight you, and I will lose.
 
@DaveRandom That sounds like windows...
 
im running windwos yeh
 
well there is your problem
 
3:06 PM
@Gordon So essentially a VM right?
 
i like windows tho
 
user895378
The arrows mean "run away from w3schools"
 
@Alesana yes
 
Anonymous
@rdlowrey and straight into your arms
 
whats wrong with w3schools
 
3:07 PM
@Alesana For what are you testing your script for?
 
user895378
@JayIsTooCommon I have so much love to give.
 
!!? whats wrong with w3schools
 
Search for "whats wrong with w3schools" (https://www.google.com/search?q=whats+wrong+with+w3schools&lr=lang_en)
• Why not w3schools.com? - Meta Stack Overflow - 17 dec. 2014 - What makes W3Schools bad, and MDN good/better? … there, get bad information, then en… (http://meta.stackoverflow.com/questions/280478/why-not-w3schools-com)
• What is wrong with W3Schools that it is often ref… - There are many errors in their documentation. They've chosen a name that misleads people into think… (https://www.quora.com/What-is-wrong-with-W3Schools-that-it-is-often-referred-to-as-a-bad-resource-for-learn
 
What's wrong with Windows? I understand that it's not the best for a live server but it's still my preferred OS for non-server things
 
!!? principle of least astonishment
 
3:08 PM
Search for "principle of least astonishment" (https://www.google.com/search?q=principle+of+least+astonishment&lr=lang_en)
• Principle of least astonishment - Wikipedia - The principle of least astonishment (POLA) applies to user interface and software design, from the… (https://en.wikipedia.org/wiki/Principle_of_least_astonishment)
• Principle Of Least Astonishment - C2 wiki - The Principle of Least Astonishment states that the result of performing some operation should be o… (http://wiki.c2.com/?PrincipleOfLeastAstonishment)
 
you want your dev env as close as possible to your prod env
 
@MikeM. Linux
 
Indeed, if not just a direct copy of the prod server
@Alesana I mean what is the project/assessment for?
school, a company, another person?
 
Redistribution, therefore I would need it to work on all OS
 
@Alesana School, a company, just another person that asks for it?
 
3:10 PM
Just people who download it and upload it to their server
So just another person
 
Hmm, thus you're developing on a windows machine, to release it for linux machines in the hope it runs perfectly fine without issues?
 
Anonymous
it's PHP
 
@JayIsTooCommon Doesn't mean all variables are okay.
 
I am developing it to work on all machines, so if I were developing it on a linux machine I would then be doing so in the hope that it runs perfectly on a windows...
 
doesn't mean the same default modules are used.
 
Anonymous
3:12 PM
I was referring to the 'Runs perfectly fine' :B
 
@Alesana Whose web server runs on windows anyways (except if they run ASP.net)
 
Hello!
Folks! I'm starting in PHP and I want to learn the right way and not look at my code later and find it crap. My main tutorial is the secure.php.net/manual/en/index.php E en.wikipedia.org/wiki/Object-oriented_programming.
 
@MikeM. I thought that IIS was becoming more and more popular
 
If you run a windows server for your PHP Webserver, you're really not thinking i through..
 
Anonymous
> not look at my code later and find it crap
 
Anonymous
3:14 PM
not a chance :>
 
ain't gonna happen
 
IIS Becoming more popular, who told you that?
 
Anonymous
@MikeM. w3schools
 
Windows Server issues a price per core SPLA if I am correct.
 
@rdlowrey well, the Promise makes no sense once you implement the backoff
 
user895378
3:15 PM
@bwoebi I disagree ... by default you can't make it backoff indefinitely. So it can -- at some point -- just fail despite backoff attempts
 
Lol
 
user895378
And you should still be able to wait until the unsubscribe actually succeeds in your code
 
@rdlowrey The connection could just close at that point.
 
If you're a company holder, would you like to pay for that kind of stuff if you can also get an OS for free and which is lightweight enough that it wouldn't take a lot of space, next to windows taking up about 16gb for the server alone.
 
Morning
 
3:16 PM
@Trowski right.
 
user895378
@Trowski sure. At which point the promise returned from unsubscribe() will fail
 
@rdlowrey why would you, ever?
 
user895378
Because I want to log that the unsubscribe failed. And I also want to log that the connection went away.
 
it makes no sense to log that the connection went away that way
 
user895378
a connection going away isn't the only way a thing can fail
 
3:17 PM
the connection can go away silently in the middle of everything
no further updates are received
 
My script will mainly go towards people who use shared hosting who are not knowledgeable, and a lot of shared hosting give the option to choose between Windows and Linux
 
I am currently a trainnee at a company which is only hosting and such for other companies. currently, less than 5% of the servers are still running on windows server...
 
user895378
connection failure has nothing to do with the unsubscribe question
 
@RenatoLazaro trust me: if you look at your code later and don't think it's crap you didn't learn anything. it's part of being a developer to loathe most of your yesterday's code.
 
user895378
beyond that, there is value in having all methods return a promise
 
user895378
3:18 PM
instead of just one that doesn't
 
Ahh
 
user895378
even though it's an async operation
 
Which of them?

Shared Hosting is as it says, it's shared
The companies want many hosts on 1 server.
 
@rdlowrey This is nice and I agree with having the ability to log the failure being specifically related to unsubscribing failing.
 
if they can run a server with 100hosts on it, or run a server with 125 hosts on it... what do you think they will pick?

(pretty much those hosting providers are low cost and overloads their servers as much as possible)
 
3:20 PM
@bwoebi It's a little different than the websocket close we discussed the other day. We might actually care about the failure here.
 
possibly.
 
Gordon! So the secret is this.
 
I just don't see why you'd ever wait for an unsubscribe
I can see that you'd Amp\rethrow it though
 
how does docker compare to vagrant?
 
@rdlowrey @Trowski I think you might be right with retaining the promise, but the backoff still should exist
 
3:22 PM
Some software' configuration's default LDAP server setting is ldap.company.com. Turns out someone running a server over at that address. What do you think the chances are that login info is being sniffed out?
 
I guess that is your expertise working in a hosting company, but a lot of the people using my script go with something simple such as hostgator or one of their sibling companies (which are a lot) and those offer windows shared hosting. Regardless, all I am trying to say is that in my end product I will want it to work on a Windows as well as a Linux server, I don't think that's unreasonable.
 
I very much want to be an effective developer.
 
@Tiffany docker compares to vagrant as microservice architecture compares to monolith
 
@bwoebi Maybe not so much rethrow, but attach another failure handler.
 
@Trowski yeah, whatever. In general some function which can handle a failing Promise
 
3:23 PM
@Gordon I was looking for more of a differences list, but I guess that works
 
A function for this might be nice… even though it's just a when callback, I think applications should still be discouraged from using when.
 
@Trowski nah, I think in this case when() is appropriate, even in an app
 
so where vagrant creates a VM to work out of, docker still uses the original machine
 
user895378
@bwoebi agree
 
user895378
we'll do configurable backoff where folks can set options for how they want backoff to be handled automatically
 
3:27 PM
@Tiffany Only use docker in dev btw
 
@Tiffany unless you are on mac. I think on mac docker also creates a VM.
 
@Trucy why would you want to use it outside of dev? o.o same with vagrant
 
@Tiffany Because some people thinks it's okay to have it in production :(
 
@Trucy well, docker is intended for production use.
 
user895378
3:30 PM
our entire production stack runs in docker containers on mesos/marathon ...
 
@Alesana You mean this?: hostgator.com/windows-hosting
 
@rdlowrey did you settle on a apm solution for that yet btw? still fixed on rolling your own?
 
user895378
I wrote an async STOMP client (because the protocol is super straight-forward) and enabled the STOMP plugin that comes standard with RabbitMQ
 
that's… not apm?
 
user895378
I assumed apm = asynchronous programming model
 
user895378
3:35 PM
and just figured you were talking about the async message queue consumer I've had on the brain lol
 
user895378
what apm did you mean?
 
ah, sorry. no, I meant application performance monitoring
 
user895378
oh hehe
 
user895378
data dog is the best
 
user895378
and just emit metrics via statsd
 
3:36 PM
pffffff :)
 
user895378
statsd protocol is also trivial. Implemented a client to do that in like an hour
 
you guys should revisit us. we added tons of new stuff since last time.
 
@MikeM. I am not sure, I just remember some years ago working with a windows server on hostgator
 
A-ha so that's the executive guy behind FL.com, TIL
 
user895378
3:45 PM
@Gordon Forgive me, I didn't realize you were in this space. I can haz link?
 
I hate marketing speak so damn much
 
user895378
hehe
 
user895378
@Gordon how does the tracing look? i.e. do I just setup my http client to always include certain headers in similar way to zipkin?
 
user895378
Oh, OpenTracing ... will investigate
 
Hello house, good day
 
3:49 PM
moin @rdlowrey
 
user895378
o/
 
I have an issue with some work
 
user895378
I have an issue with all work
 
Please check this stackoverflow question and help me out
-1
Q: From added fields, submit multiple fields with same name to database - php mysql

Joseph OkaforI have this project. Am trying to submit the values of the inputs of my form to the database for as many times the user clicks the add more button and enter values to it. I can work around the if condition to check for empty fields, but i can't seem to know exactly how to get the value of the arr...

 
@rdlowrey What do you think about i.imgur.com/Fufj3RU.png, i.imgur.com/mFgR9xN.png or i.imgur.com/P6xEJ57.png as Amp logo?
 
Wes
 
user895378
@kelunik I like 1 and 3 ... 2 feels a little aggressive and angry to me
 
user895378
but I'm also not an artist
 
user895378
I also like the one @Wes just posted
 
I actually have a little bit of the form doing a little bit technical stuff and i got lost. First, user can add more fields by clicking the add suborders link, and inside each box that drops, about 3 fields are available, the sample picture, requirement and style code (if any - so this is powered by a simple select field). But getting the values from the arrays to submit to database is my problem, please help out, am almost rounding up the project but got stuck here.
 
I've eaten a whole bag of candy, and feel sick
 
3:53 PM
@Wes that one looks nice
I'd dare to say it's the best one I've seen so far … I just wonder, does it also look good on a white background? @Wes
 
user895378
@Gordon I'm also interested in how the "automatic tracing" works for PHP ... and moreso what I would need to do to make it work inside a userland server that isn't the php web sapi ... presumably in a similar way to the golang way but I'd have to look at it
 
@optimalresource you should look into angular, vue.js or react. working with dynamic html isn't fun with jQuery
 
user895378
Not vue.js
 
user895378
please don't
 
@rdlowrey such a pussy
 
3:55 PM
shuddup
 
Anonymous
@PeeHaa HEY! Back off
 
user895378
Meanwhile, google created angular and they don't even use it
 
I mean he's good on the eye, buuut
 
about vue.js, why not? I've tried it and i liked working with it
 
Wes
@bwoebi yes, colors can be changed easily on that one
 
user895378
3:55 PM
angular takes all the best aspects of javascript and tries to make it like C-family languages
 
@Rovak, please guide me on how to get started with angular. I'll learn fast, but i need to resolve this issue now as it is, i actually set a target for myself alongside my pals
 
user895378
react/redux
 
Anonymous
@kelunik 2, definitely.. 1 and 3 for a pre school, 2 for amp :D
 
react is the better option, but i feel like vue.js sits between angular and react
 
vue peoples' understanding of what "valid html" means is lacking github.com/vuejs/vue/issues/273 which worries me
 
3:57 PM
By now I just say fucking pick one anyone and push it to prod
 
the v- attributes aren't even visible in the generated html
 
@PeeHaa Boo! The message exceeds the 140 character limit. :-(
 
I just said I feel sick already, why you have to talk about js ?
 
i prefer v- over data-
 
@Jeeves Fuck you bro
 
that's very nice
 
Wes
also collapsed, imho even better
 
niice. /me likes
 
there wes. Now just push the thing
 
@Wes collapsed is definitely better
 
Anonymous
3:59 PM
i.imgur.com/9KcaGR2.png I still like this
 
Same
 
strawpoll it and just deal with the result :P
 
@Wes Just the "a" for the favicon then?
 
Anonymous
I found this when I was googling myself, i.imgur.com/QM1nwfr.png kinda cool too
 
@Ekin Said the same yesterday, but wes is scared of polls
 
Wes
4:00 PM
@kelunik not necessarily. wait
 
@Wes reads like "omp"
 
@PeeHaa have you seen what polls have done to the world recently?
8
 
and there's that, yeah
 
@PaulCrovella :P
 
Wes
@bwoebi collapsed without the transparency i.imgur.com/bm3L5ZT.png
 
4:02 PM
@Wes That's two event loops in blue there. :P
 
@Wes anp is nice :B
 
@bwoebi Just change the name of the org
 
@Ekin AFAIK the last strawpoll was an exact 50/50 :-D
@PeeHaa …
 
Unit tests pass, no integration tests https://t.co/8geAsHgSBY
 
Anonymous
awesome
 
4:05 PM
just change the name to "m" and keep the elephpant part @Wes
 
Wes
@PeeHaa here we go again @PeeHaa you are welcome to try anything you like
 
wait, what ?
 
@bwoebi oh well :D
then someone better have a vote that counts 2
 
preferred it with transparency
 
4:06 PM
@Wes Oh fuck no
 
Anonymous
Feb 1 at 12:24, by JayIsTooCommon
well if you get desperate https://sketch.io/render/sk-9f45a16aca65d54616c7500ea5d213cb.jpeg
2
 
Wes
ahhaaha
 
For starters I will use PS because that sucks less
And I cannot even fucking draw
 
Wes
oh btw, is it amp or amphp ?
 
@JayIsTooCommon why does that elephpant have a penis on it's face ?
 
Anonymous
4:06 PM
@PeeHaa i can teach you
 
@Wes both. :P
 
I fail paint by numbers
 
@Wes amphp is the long form, which we chose for avoiding conflicts with an already existing amp orga on github…
 
@PaulCrovella heheh
 
Anonymous
@JoeWatkins :( I think it's pretty
 
Wes
4:07 PM
also, isn't there something in the php license that says you can't do e.g. "phpnuke" but only "nuke for php" <- ahahaha
 
@bwoebi We should just choose a new name, googling for Amp sucks.
 
@Wes Sooo after 1 1/2 year you decided it was a good time to ask it?
 
@JayIsTooCommon penises are not pretty
 
Wow I just realized you can use isset to check for 3 things at once.. if (isset($array['str'][9])) checks if array_key_exists, checks if it is set, and checks if it is at least 10 characters.
 
@kelunik oh god, please no
 
4:08 PM
@JoeWatkins some are
 
@Saitama urm ...
 
Anonymous
@Saitama awkward..
 
...
 
Well, he's not wrong, I guess
 
@Rovak the i makes it sound way cooler.
 
Anonymous
4:09 PM
Danacki
 
Anonymous
you're right
 
JayIsTooCommoni
Doesn't work
 
@bwoebi But maybe we should change the namespace to Amphp in v2 :P
 
Anonymous
that's because I'm already perfect.
3
 
:D
 
4:10 PM
aww
 
@kelunik NO
 
How do I check wether unlink returns false or not I currently tried following: if(unlink(bla)) else {...} but it somehow did not work
 
you should ditch namespaces and prefix everything with amp_php_v2_
 
Anonymous
i agree with nik
 
@JoeWatkins YES!!! :-P
 
4:12 PM
long ass function names are so 2017
 
@JohnDoe2 if(!unlink(bla)) {...} ?
 
ok I am gonna test that
 
@JoeWatkins That's actually reasonable. Everything we don't break can be aliased.
 
/me kills himself
 
</kidding>
 
4:13 PM
/me stops just in time
 
@JoeWatkins (well, I'd honestly am not totally opposed to amp_ prefix in global namespace… but… for consistency with our classes, I'd rather not)
 
@pmmaga does not work
 
he's only mostly dead
 
Like that random single machine gunner left over from an assault in Command & Conquer that you keep hanging around your base
 
@bwoebi Having a proper mechanism to have two different versions of a library installed would be cool.
 
Anonymous
4:15 PM
hehe :P
 
For some libraries, it doesn't make sense, but for most it does make sense.
 
yeah
 
Anonymous
@DaveRandom just recently played zero hour, never gets old.
 
I never played any past Tib Sun
 
Anonymous
ugh, just as I thought you were being cool
 
4:17 PM
I am cool and really old
var_dump($cool & $old); // int(0)
dammit
 
@kelunik We should probably use AMPHP more often for google'ability.
 
@DaveRandom but var_dump($cool | $old); // int(2147438648)
 
you should stick to amp ... you are not supposed to use the word php
 
Anonymous
is that amp or a m p ?
 
amphvm
 
user895378
4:21 PM
@DaveRandom <3
 
mpa ... because acyns
 
user895378
Red Alert for xmas was the best thing that ever happened to 13-year-old me
 
Red Alert was goooooooood
 
Anonymous
-.-
 
I remember having multiplayer C&C via modem and phone line
and getting really pissed of with my sister when she picked up the phone
THIS IS HOW WE USED TO LIVE @JAYISTOOCOMMON
 
4:23 PM
my internet still cuts out when you use the phone ... I could probably have it fixed, but I like it, nostalgia ftw
 
Anonymous
@DaveRandom it's gross
 
@JoeWatkins wut
 
I remember playing Red alert 2 in a LAN
 
you are missing a filter and/or you need to buy some better filters
 
yeah, I know, even on the new line
 
4:23 PM
Nukes everywhere
 
nah filter is there ...
 
Oh wait it's fiber, it should have a filtered faceplate on the line box?
 
@DaveRandom not sure, both have external filters
 
I will come and fix your phone wiring at phpsc :-P
 
Anonymous
@DaveRandom faceplate and external filter do the same thing, no?
 
4:25 PM
Well yes and no. The faceplate filter means that your extension wiring is pre-filtered
assuming it's wired up correctly
 
@Trowski AMPHP, Amphp or amphp?
 
AnusPHP
 
@DaveRandom may be a good idea ... but they are both brand new wiring ... I was quite shocked to hear the engineer describe himself as a phone network engineer, and profess to have no knowledge of computer networks ... he didn't know how I was going to use both lines :s
 
@kelunik amphp ^^
 
@kelunik 1 or 3
 
4:26 PM
@JoeWatkins brand new wiring is usually the bad stuff.. old wiring is old because it's not busted
 
@JoeWatkins Yeh it's a completely different world. BT's ISDN engineers live in a third different world where they pretend the OSI model only has 3 layers.
 
@kelunik Just Amp is probably fine as long as we drop the words async and PHP on our pages enough.
 
it seems like his business though, if I were him, I'd find out about anything that was relevant, wouldn't you ?
 
Searching for "async php" in google puts icicle.io on the first page (at least for me).
 
I get a roundtable podcast ^
 
4:29 PM
I would, yes, I have found that what I would do is usually not a good baseline.
 
The name has neither async or php in it.
@JoeWatkins Toward the bottom of the page?
 
Analogue phone lines will (actually, not joking) run over 2 pieces of wet string for a short distance, those guys are more like electricians that network engineers
 
@Trowski no, first
 
yet, weirdly, electricians will always fuck up phone wiring
 
@JoeWatkins Right, no, I meant is icicle.io toward the bottom of the first page for you?
 
4:29 PM
@Trowski If you google for Amp, you won't have a great time.
 
They over-complicate it because they are used to thinking in earthed multi-phase AC
 
@kelunik No, but "Amp php" solves that problem.
Googling for React doesn't work either…
 
Name it Colin
 
4:31 PM
@kelunik Looks like it's adding some non-english sites inbetween for you.
 
Dave The Asynchronous Multi-tasking Framework
 
Google knows I'm a programmer and just always shows me programmer stuff.
 
creepy
 
@kelunik My point is that the name is less important than the keywords we put in the page.
 
4:36 PM
I should spend more time at the beach.
 
> This is obviously a substantial seizure of class A drugs and its loss will represent a major blow to the organised criminals involved.
I would wager people will be killed for whichever mistakes lead to the loss ... I'm glad it's not on the street whatever ... but bit simplistic to say "great, we found some drugs" ...
 
Morning.
 
they should be looking for bodies ...
 
major blow indeed
 
4:42 PM
haha
\o @Levi
local reporter headline "Have you lost 50m worth of cocaine ? Police are looking to help you..." hahaha
 
@DaveRandom Dispatch Asynchonously Various Events
 
@Leigh Wow that was only like 20 mins or something, that team of writers you employed is clearly paying off
:-P
 
Because I watch this place like a hawk, for opportunities like that, absolutely spent 20 mins on it
@JoeWatkins Heh, basically where I grew up, wouldn't be surprised if it was the intended destination
 
it's not the first time it's happened in that general area
 
Lots of stuff washes up there, it's a shipping lane to the continent and the currents are favourable
 
4:54 PM
all of the south coast of England is a shipping lane though, right ?
 
aye
 
there may be something in currents ... stuff used to wash up in kent too, margate - dover .... but nothing like that volume ...
 
but Yarmouth has docks
 
Also ducks
gotta watch those ducks
 
and dicks, many dicks
 
4:56 PM
duck dicks on docks decks
 
dack
 
dy... nevermind
 
Dack dicks ducks on dock decks
 
4:59 PM
dack apparently means "to pull someone's pants down"
!!urban dack
 

« first day (2309 days earlier)      last day (2638 days later) »