« first day (2824 days earlier)      last day (2108 days later) » 
00:00 - 13:0013:00 - 00:00

12:40 AM
@StatikStasis building an online bill payment system?
 
More like testing out the payment system of other programmers... with my real money.
 
1:06 AM
@StatikStasis @ircmaxell did a talk that includes that
 
I do it monthly. have a link?
 
sec
 
I copied Misko Heverly's talk where he says that story
 
I will check it out.
ty
 
1:12 AM
keep getting the time wrong
I think I have it right now
lol
change the a to an s... I missed the edit window by a split second
 
sad thing is, I was right on the second edit...
 
@Tiffany as an aside, all credit card companies have set aside cc numbers dedicated to testing. use those.
 
1:28 AM
@PaulCrovella I'll tell our DBA... she's used her credit card for testing stuff... lol
 
@Tiffany They have testing cards but sometimes we still do tests on live servers. We usually create test items for 1 cent.
We use the test cards on our dev environments.
 
in our situation, an item has to be purchased, so coworker buys a 20 USD gift card, and uses it in our bookstore when she wants stuff
 
2:27 AM
Good morning room
 
2:58 AM
o/
Haven't talked to you guys in a while. I may be moving to Java. :p Not enough OO in PHP for me to find a job I want it seems.
 
:O!!!!!!
Traitor! ... or something
shrug, do whatever works for you. A job I'm looking at will probably focus primarily on PL/SQL and Java. Java I'm a little rusty on, but PL/SQL I can pick back up in a day or two
anyway, bedtime for me \o
 
\o
 
3:18 AM
o/
 
 
2 hours later…
5:05 AM
@Allenph Not enough OO - uhm... Okay?!
 
@bwoebi I live in Silicon Valley. People are more concerned with churning out applications than with building empires...something Laravel and other frameworks are good at....unfortunately.
Honestly I'm a bit concerned that for the people who are doing it the right way, my skills aren't adequate to sate their requirements.
Especially considering the pay I require...
 
user9059272
Hi
 
user9059272
Can someone please explain me the meaning of below text present in brackets?
 
user9059272
There are no limitations on the values the string can be composed of; in particular, bytes with value 0 (“NUL bytes”) are allowed anywhere in the string (however, a few functions, said in this manual not to be “binary safe”, may hand off the strings to libraries that ignore data after a NUL byte.)
 
user9059272
That is (however, a few functions, said in this manual not to be “binary safe”, may hand off the strings to libraries that ignore data after a NUL byte.)
 
5:12 AM
What is not to understand? Some functions will consider null to be the end of the string.
 
Well, that's what these frameworks were designed for - I agree though, the very most jobs are boring in that way. You do not really want these jobs I guess. Just because you become good at a framework you don't want to work with these all day long without other choice
@Allenph don't write null. Nul(l) byte or "\0".
 
user9059272
I'm not able to understand which entity ignores data after a NUL byte? Whether it is non-binary safe functions or the libraries to which non-binary safe functions hand off the strings?
 
The latter
 
The functions are a wrapper around those (presumably C) libraries.
@bwoebi It's hard to decide whether to deplete my savings in search of a job I want or to just suffer through writing code the wrong way. I have no college degree, I'm not a professor, I certainly am not ready to teach. I have people to car for, but I also want to work in what I enjoy without wanting to bash my head in every day.
 
user9059272
What are exactly non-binary safe functions in PHP?
 
5:16 AM
If there is no such place, maybe I shouldn't have quit in the first place. I have people that depend on me to take care of them.
@SerialKisser What exactly are you trying to do?
 
user9059272
I'm trying to understand the concept by reading the PHP manual text.
 
A better question would concern why this is causing a problem rather than requesting a list of possible functions that might run into this situation.
Be pragmatic. Who gives a shit (except for the case where you're only interested in theory) if it doesn't cause a problem for you?
 
user9059272
@Allenph : I'm not requesting for list of possible functions.
 
@SerialKisser Don't understand what you're asking then?
 
user9059272
@Allenph : I only want to make my concept crystal clear.
 
5:20 AM
What concept?
 
user9059272
@Allenph : What exactly mean by the category non-binary safe and binary safe string functions?
 
That functions considered binary safe will not cause that problem, and those that considered non-binary safe will.
You've just given us text from the manual that states as much. As far as I can tell by what you've produced that is the exact definition of that category.
Or are you asking if PHP strings and binary strings are the same thing?
 
user9059272
@Allenph : The definition from the manual is very confusing as it's wording is quite clumsy and mixed with another concept of libraries and handing off strings an all. I want simple definitions of binary safe and non-binary safe string functions.
 
You're going in circles.
 
user9059272
@Allenph : I want to get out of it. Please help me.
 
5:25 AM
A binary safe string function is one that takes a string and runs an operation on it as if it was a binary string, a non-binary safe string function is one that that does not do that.
One might work only with the binary representation of a string, where the other deals only with the abstraction of a string. Does that make sense?
Also, keep in mind that I have no idea what I'm talking about, am very drunk, and am several weeks out of practice...but these seems a straightforward question...
 
user9059272
@Allenph : Then when do so called libraries come into picture and for what purpose? What's the need of those so called libraries?
 
A library is a piece of code that does something right?
 
user9059272
@Allenph : I know the meaning of libraries but asking the need of them here
 
Why would a programmer do something that was already done?
When you're building an application, you use libraries when you want to do something that there is already code to do. In the same way these function are built using libraries which do part of the thing they're trying to do.
And it appears in some cases these different libraries do things in different ways...and since the functions are built on top of them, they suffer the same shortcomings (or benefits depending on the function and who you ask) as the libraries they utilize to do their job.
 
user9059272
@Allenph : My straight forward question is are the libraries used only with non-binary safe functions or binary safe functions or with both?
 
5:36 AM
It could be either or. One binary safe function could use a different library than another binary safe function. A binary safe function and a nonbinary safe function probably won't but could use the same library.
As long as you understand that different libraries may handle things in different ways, and functions may use different libraries you can understand why two different functions may provide different degrees of binary safety...whether by design or by accident.
 
user9059272
@Allenph : I'm sorry to say but you are drunk and what you are saying is just vague statements.
 
I don't think it's vague, in fact I'm quite satisfied with my explanation. I think it just hasn't clicked for you yet.
Try and read it again.
 
user9059272
@Allenph : Tell me whether I'm getting it right or not. Non-binary safe functions are the functions which ignore data after a byte with value 0 (“NUL byte”)
 
That's right.
There may be other reasons why a function is not binary safe though.
 
user9059272
@Allenph : and binary-safe functions are the functions which DO NOT ignore data after a byte with value 0 (“NUL byte”)
 
5:42 AM
Yes.
Although they may be considered binary safe because they do that AND they do other things that binary safe functions dont.
I'm not sure what those "other things" are or if they exist, but I would guess they wouldn't call it "'binary safe" for only one reason.
 
user9059272
@Allenph : Then why is the manual text saying that non-binary safe functions(which ignore data after a byte with value 0 (“NUL byte”)) hand off the strings to libraries that also ignore data after a NUL byte?
 
Because it's not saying that the functions themselves do that and then hand off their results to libraries which also don't do that. It's saying that those functions use libraries which are not binary safe, therefore those functions cannot be considered binary safe.
 
user9059272
@Allenph : Are you saying that the the usage of non-binary safe libraries is another reason behind calling few string functions as non-binary safe apart from ignoring a byte with value 0 (“NUL byte”) in a string they work upon?
 
I'm not saying it's another reason. I'm saying it is the reason. Say you use 100 libraries and 99 of them are binary safe, but one of them is not. That function still must be called non-binary safe.
 
user9059272
@Allenph : It must be called another reason because the basic reason behind calling a string function non-binary safe is that it ignores a byte with value 0 (“NUL byte”)
 
5:53 AM
Sigh...if you don't understand I'm done explaining.
I simply don't know how to say it another way.
 
@Allenph yeah, for sure getting a job is more important - you still can search afterwards for a better one
 
It is and it isn't. As @Tiffany said...it's more important to work to live than live to work.
But, when you have people who will end up on the streets without you, it's harder to decide.
I've already quit one job because it was driving me mad...
 
user9059272
@Allenph : Very True my friend.
 
hi, quick question im having hard time looking for an answer on internet. How can I get a parameter outside of parameters.yml in symfony ? (vich_upload.yml)
Doing this doesn't work :
$this->container->getParameter('vich_uploader.mappings')
 
@r00t Don't use globals. :D
 
Wes
6:06 AM
46
Q: How do I add two integers together with Twisted?

GlyphI have two integers in my program; let's call them "a" and "b". I would like to add them together and get another integer as a result. These are regular Python int objects. I'm wondering; how do I add them together with Twisted? Is there a special performAsynchronousAddition function somewher...

 
6:16 AM
I could config a server (from the scratch) all o by myself ..! Yay for me.
 
Hello all, I'm looking to use mail() to submit a contact form, I've read there are dangers in adding email addresses field with /n, can I escape that by using a regex such as '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'? Is there anything else I should worry about
 
@Wes 13 up-votes for asking whether or not it will block...
 
@Allenph what do you mean ? Im not using global in my code, I'm just trying to get a configuration parameters located in "vich_upload.yml" using $container->getParameter() in symfony, but it doesnt work, it works only for parameters located in parameters.yml
 
That's a global. :D

What are you doing? that would be a good start.
 
Oh sorry then I mixed that up. We are using Sonata Admin for a project and we installed vich upload bundle to handle uploads of files. Now we want to get the parameters inside vich_upload.yml to use them inside a view (twig). To pass variables to the view in the PostAdmin class (in configureFormFields() method) we simply declare a variable as follow :
$this->test = $this->container->getParameter('database_host')
And get the value in the twig template as follow :
{{ admin.test }}
Problem is, it works only for parameters located in parameters.yml, im not able to get parameters inside vich_upload.yml using that method (getParameters()), so Im looking for a way to get them but no luck
@Allenph
 
6:31 AM
@r00t You're not doing this correctly first of all.

But, you're already half way through. You're using a standard view class if I understand correctly (bad). You may have put yourself in a bad situation. You'll probably have to read that file directly in your controller or whatever you call that (not a controller) class and then attach it manually.
But I don't know about you're particular setup. For such particular questions, ask a question on main.
 
Read it using the php way ? like file_get_content() ?
 
Yeah. Something like that. I would presume you would parse it through some other thing.
I would Google SOLID principles to learn how you can prevent such architectural mistakes in the future. Again, though. There may be a way to do it in your setup, but I wouldn't know.
 
Alright thanks for your help, I was hoping that there was a cleaner way of getting configuration parameters using symfony's classes/methods
 
Again, you're doing it wrong.
Globals should be at the beginning, not the middle. They're unavoidable, but bad. Minimize them. Google SOLID. If you need training wheels (as I did and still do) Google DDD. (Domain Driven Design.)
 
Thanks
 
6:48 AM
Hi there! I am using PyroCMS (laravel is embedded in it) and having problems with passing (posting) data between pages. What are some of the ways to pass data? I used to use the forms and reach elements with their ids in Laravel by making use of the $_POST but cannot do it in Pyro now. I can use URI ids.
 
@M.Kaan Seek help from those framework's/libraries'/CRMs' forums. There's not much love for Laravel here.
 
Thanks @Allenph! Have a good day!
 
Happy Tuesday!
 
morns
@Allenph hmmm, I thought you lived in Ohio
 
7:10 AM
Nah. They don't allow 12 year olds there.
Where'd you get that idea?
 
@Allenph hahaha
@Allenph I don't know
@Allenph Sorry, not Ohio, but Utah
 
.oO( Ohio, Utah, both four letters, so must be the same )
 
Fuck I said Silicon Valley. I meant Silicon Slopes. Drunk.
 
@Allenph see, that's what confused me. :P
 
You're ping crazy.
 
7:17 AM
:P
@Allenph You know, I have been feeling the same way, and with the rising popularity of frameworks like Laravel and a lot of legacy code being written in ROR and whatnot. And the project managers are forcing me to choose Laravel for every new project that is supposed to be built from scratch, because our company have more "experts" in laravel, and I am getting sick of it. So, I am planning to move towards DevOps professionally and working with php only on opensource projects.
 
posted on July 10, 2018

New Cyanide and Happiness Comic

 
Hello
 
@mega6382 Yeah. Everyone here is either extremely lucky or wants to be a professor, at least from what I can tell.
 
@mega6382 devops? did no one tell you that devops is on it's way out already?
 
@Gordon Yeah. They have a Node module for that now.
 
7:20 AM
@Gordon That can't be right. I am planning to take the "AWS DevOps Engineer - Professional" exam, by the end of this month. And then microsoft azure's exam and then google cloud's exam in the next month.
 
What do I need to create my own web hosting server ?
 
@Gordon I guess, what I mean by devops is more in the line of, working on solution architecture rather than the code.
 
@Webdev a computer with a webserver installed connected to the internet
 
Wes
@Feeds can someone remove the feed? it's getting pathetic
 
webserver like apache or ngnix? @Gordon
 
7:24 AM
@Webdev any you deem fit. but yes, apache or nginx would do
 
apache
 
gesundheit
 
@Wes #LeaveItAlone
Also o/ Wes.
And Teresko.
 
@SudharshanNair Someone here said to me apache is difficult to configure
 
o/
 
7:27 AM
\o
 
@Webdev. Not difficult than nginx, and also depends on your requirement, what your project does actually ?
 
@Wes ah, so I am not the only one who can't stand that shit
 
You guys don't like Cyanide and Hapiness?
 
no
 
I just realized I haven't checked XKCD in weeks. I only checked it at work. o.O
 
7:29 AM
@SudharshanNair database connetcing ,json parsing to devices
 
@tereško and @Wes STFU :P <3
 
@Webdev. You mean web services?
 
I really can't stand "nonsense humor"
 
Oh. Now that Mega is on my side I agree with you guys.
 
lol
 
7:30 AM
@tereško You Europeans...missing out on the good part of life. Enjoying fart jokes.
 
@tereško you don't count. you hate everything anyways. though I agree that cyanide isn't particularly funny.
 
^ Good point.
 
@SudharshanNair I planned to do like 000webhost.com
 
Wes
@tereško it's very stupid now. used to be great (this one of my favs files.explosm.net/comics/Rob/gamesatwork2.png)
 
Yeah, I will admit, it has become very stupid now. And if we are going to remove it from feed, then I vote we add donthitsave.com in its place
 
7:33 AM
@Wes it's still purile, just not disgusting as it is now
is monkeyuser.com already in the list?
 
@SudharshanNair tereško has said to me apache is old
 
then that would be my suggestion for a replacement
 
@Webdev Dude, Google around for 5 minutes. Jesus.
 
@Webdev citation needed
where the fuck I said that?
 
7:37 AM
@Allenph ok but I am not a christian
 
^ WTF reply of the year.
 
@tereško You don't said that?
 
@Webdev he was just taking lord's name in vain, not implying that you are a christian. Jesus.
 
I need a beer
 
@mega6382 lord != jesus
 
7:40 AM
... and it's not even noon yet
 
Come have one of mine. I need a middle of the night drinking buddy.
 
@Gordon I wouldn't know, I am not a christian. :P
 
@Gordon lord ==?
 
.. you are getting distracted
 
@Gordon but obviously, you are wrong.
 
7:43 AM
@tereško you advice me with ngnix?
 
yes, but not because apache was old
 
@Webdev the lord == god. jesus is the son of god. /cc @mega6382
well, at least to religious folklore
 
@mega6382 Gordon we need to create a chatting room for this
 
@Gordon Do we have to get into Abrahamic religious trees right now?
 
@Webdev no
@Allenph no
 
7:45 AM
No need?
 
Seeing this makes me wonder what I've missed when I was sleeping.
 
@Gordon doesn't the saying go as "Jesus Christ, our lord and savior"
 
something like that
 
This is why I love you @tereško.
 
holy trinity batman
 
7:46 AM
@Gordon yeah in christianity
 
3 messages moved to Trash
 
@mega6382 You're a mod?
 
only of @Jeeves
 
@Webdev Read between the lines. We're of multiple cultural backgrounds here. We don't care about what your religious beliefs are, let alone cater to them. It was a figure of speech. Just go Google webserver for a couple hours.
 
@tereško triangles mathamethics
@Allenph well
 
7:54 AM
@Allenph you are not?
 
I don't know. I can barely get a link to work in chat. I'm sure you've seen me struggle with it before.
Besides, people find me young, abrasive, naive and inexperienced. I wouldn't give me any kind of mod privileges.
 
@Allenph Yeah, but I am literally young, abrasive, naive and inexperienced. I am just 20 years old. And also @JayIsTooCommon is alos like 22 years old, and he is an RO.
And it seems like you are not in the list
 
3 messages moved to Trash
 
Yeah, but I'm socially dumber than both of you, and don't know as much. I'm fine being a pain in the ass.
 
makebate Archaic. a person who causes contention or discord.
 
user9059272
8:24 AM
Hello
 
user9059272
Someone please explain me the meaning of the statement : Note, however, that state-dependent encodings where the same byte values can be used in initial and non-initial shift states may be problematic.
 
I want a better design for my upload button, I want it to be at the middle
echo '<input type="file" style="height:50px" class="form-control" ng-model="Store_Image"> ';
 echo ' <button class="btn  btn-info" name="upload" ng-click="insertstore()">Insert</button> '; ibb.co/nBedj8
 
user9059272
URL for the page containing above statement is : secure.php.net/manual/en/…
 
@SerialKisser why don't you go and re-read the last time we explained this to you
And the answers to the question you made about it
They explain it
 
user9059272
8:32 AM
@Leigh : The wording used in the answer for my question stackoverflow.com/questions/50758669/… is very hard to understand
 
user9059272
@Leigh : I'm not able to understand what the writer of the answer want to say. It's very unclear as he has used very clumsy language in his answer.
 
user9059272
@Leigh : I'm not able to understand what the writer of the answer want to say. It's very unclear as he has used very clumsy language in his answer.
 
Maybe comment on his answer instead?
SO is a place for learning, I'm sure if you let the poster know it wasn't explained well enough that he'd be happy to break it down a bit more
Plus, it means anyone else coming across your question in your position will understand it too, rather than just you getting it from a chat room that noone else will probably see
 
sometimes I think zeev's goal is to actually drive away other php contributors
 
8:50 AM
> Thanks for choosing not to push it for 7.3.
Nobody said that
 
@PaulCrovella only sometimes?
 
other times I forget he exists
@pmmaga there's so much backhanded bullshit packed into that email... argh
 
I want a better design for my upload button, I want it to be at the middle

echo '<input type="file" style="height:50px" class="form-control" ng-model="Store_Image"> ';
 echo ' <button class="btn  btn-info" name="upload" ng-click="insertstore()">Insert</button> ';
 
Don't spam @Webdev.
 
@Webdev Stop posting the same thing over and over, if someone is going to help then they will help. Posting over and over will not encourage anyone to help you more.
 
8:56 AM
@Webdev throwing echo in front of it doesn't make it about php, go take it up with some css sadists
 
o/
 
\o
 
o/
 
\o
 
9:09 AM
o/
 
👋💩
 
@Webdev that's not PHP
 
@Webdev just wrap it in a div and give the div text-align:center?
 
Wes
morning 2
if you saw a terrifying road incident almost happening, but ultimately it doesn't, would you call authorities?
 
9:25 AM
on what merit?
 
Wes
there is this bit of road with indications nobody follows, and there's nobody enforcing them. basically the motorway shrinks on 1 lane only, because the lane on the right is used as acceleration lane for a road that joins the motorway
 
@mega6382 good luck
@mega6382 do you have a CV I can look at?
 
@FlorianMargaine I usually, just export my dev story as the cv, you can look at that.
 
@FlorianMargaine thanks :)
 
Wes
9:30 AM
everybody just go straight in the acceleration lane, rather than moving on the left lane
 
@mega6382 are you looking for a job?
 
@FlorianMargaine I kind of really am
 
@Wes I guess you could write an email to your local whoever cares for that. dunno if police or some other authority
 
@mega6382 a devops, rather oriented towards ops, position would suit you?
 
@mega6382 you will work sitting right next to @DaveRandom wearing a mankini
 
9:33 AM
@Wes Why would the mob care about your road?
 
@FlorianMargaine Yes, I am planning on moving more towards the ops.
 
ok, I'm pinging my ops guy
 
@Gordon Don't tempt the man.
 
@Allenph hey, if @FlorianMargaine doesn't point out the work benefits…
 
@Gordon After seeing all his nudes, I am sure a mankini will be an improvement. :P
 
9:35 AM
There are nudes? I thought there was just an obscure view through a bong?
 
@FlorianMargaine Thank you, very much. :)
 
@Gordon unfortunately, we're all remote, so he wouldn't be sitting next to @DaveRandom
 
Have mankini will travel
 
@DaveRandom 100K. Don't even have to code.
It's almost 4 AM and I'm out of beer. Night.
 
@FlorianMargaine well, get some of these youtube.com/watch?v=0gxiTb0bTfE
@Allenph did you still have beer at 2am?
 
9:42 AM
@Gordon we may.
 
@Gordon I still had beer at 3:39 AM. I'm not working.
 
9:55 AM
@FlorianMargaine You work for Platform.sh, right?
I remember applying for your company, and I got a response something like, "even though you seem to have some qualities for the role, we have decided to keep going with some other candidates"
 
right
how long ago was that?
 
Also, the role I applied for was "Security Specialist", so the response was pretty much what I expected.
@FlorianMargaine Last month, I believe.
 
Ah, I see
 
@mega6382 you lost out to @DaveRandom… nothing to be ashamed of. he cheats anyways with his nudes
 
lol, yeah, you are right.
 
10:01 AM
Current status: Everything works locally. Everything works in staging. iOS (and only iOS) failing in production...
Some days... I hate everything
 
@Gordon nah, not the same position :P
 
10:33 AM
o/
 
10:47 AM
!!rfcs
 
23 hours ago, by pmmaga
E_TOO_MANY_RFCS
 
oh hmm. yeah plenty in voting indeed
 
i'm wondering about sms otp
Is otp store in database?
 
@bwoebi Looks like we're getting one more alpha and should include a vote for 7.3 or not (in which case another alpha)
@bwoebi The RFC is still missing a performance analysis
I think that's important
We want to prevent dmitry coming along in the vote and telling everyone this is "super" slow, like what happened last time
 
11:02 AM
@VintageBeef if you are using time-based OTPs then you dont need to store them. you can simply recalculate them
 
Wes
i am a bit pissed off that the object comparison was put to vote. i don't like people being rushed into a vote on the last minute
and it's very different from typed class properties that were already voted once and studied for months, or case insensitive constants that nobody has ever used in the past 15 years
 
@Gordon as in Erlang OTP ?
 
oh, will have to read
 
@Gordon any example for time-based OTPs?
 
11:06 AM
@VintageBeef easy to google
 
@VintageBeef Store the seed, and the last verified counter
For time-based, the counter is like, intdiv(time(), 30)
You'll have to account for skew, but recording the counter is important, it prevents using a previous code after a current one
 
@Wes meh, I expect it won't pass regardless
 
Wes
also why put it to vote given that people were mostly against it? @rtheunissen
maybe not against, but unsure about it
 
why are we against friend classes?
 
@Gordon Programmers don't have friends, duh.
 
11:15 AM
@NikiC not true. come work at Instana.
 
Wes
because wrappers/facades are the correct way to share information privately between a group of objects
friend classes require that you know in advance which classes (including future ones) will require private access. of all solutions it's the worst
 
^ and that's in case if you do not break the encapsulation, which would just make it more shit
 
@NikiC Good point, measuring impact on wordpress - what else does it need?
 
@bwoebi Probably some microbenchmarks too?
 
whatever happened to those benchmarks that used to get automatically posted to internals?
 
11:27 AM
Don't know, runtime cache heavily affects microbebchmarks @NikiC
 
@bwoebi But that should be in our favor, right?
 
It should, yes, if you want nice numbers :-P
 
I want nice numbers :D
 
haha then yeah
Something about never trusting benchmarks you haven't faked yourself
8
 
11:46 AM
@NikiC by the way, if you assign a constant value to an is_const assign_obj with constant ce on a typed property, the property is marked untyped in the rt cache and should exhibit the same perf characteristics as an untyped property after first write :-)
If you want to show that typed properties are "fast" :-P
 
@bwoebi heh
You can show that case as well ^^
I mean, it should not be too uncommon, right?
 
Right
 
Wes
12:15 PM
overflow-wrap
word-wrap
word-break
meanwhile at css
 
sicko
 
Wes
12:32 PM
and line-break
 
and you wonder why everyone thinks you're an oddball
 
Wes
i just want the pain to end
 
that's easy. dont do css
 
Wes
and hyphens, another css property
 
00:00 - 13:0013:00 - 00:00

« first day (2824 days earlier)      last day (2108 days later) »