« first day (2456 days earlier)      last day (2717 days later) » 

09:00
@JoeWatkins i wanted to find the effective path for the called runtime
oh, there's a function for that ...
...
e.g. debian pre-jessie, uses /etc/php5/*, post-jessie is uses /etc/php/major.minor/*
:O
:|
:o
:|
wow, my original question really wasn't clear to anyone was it? I do apologise
09:02
Well, the path to ini feels like a super red herring
sorry, up to and including jessie i meant, not pre-jessie.
Like.... $(dirname $(dirname $(which php))) is probably all you need.
Modulo alternatives... fine
@Stephen turns out "how the fuck was this configured?" is a more subtle issue than you thought
um. that equates to "/usr" @Sara
wait, wait ... just so we're clear, is that a super red herring where the red is unbelievably super, or a super red herring, where the red herring itself is unbelievably super ?
09:03
@Stephen And dirname(dirname(php_ini_loaded_file())) doesn't?
vagrant@simple-deployment-tool:/vagrant$ php -r 'echo dirname(dirname(php_ini_loaded_file()));'
/etc/php/5.6vagrant@simple-deployment-tool:/vagrant$
@Sara it should give you /etc I think
nope
It's an eater of one eyed one horned flying purple people.
it gives the path i expect
anyway, brb.
wifey calling.
09:04
it's a sunburned fish with a cape
Anonymous
@JoeWatkins I wonder if a super red herring would still be red
@Stephen And I'm sure we all know what path you expect. :/
so, how do you actually test a process manager (whose command to execute is obviously hardcoded)?
@bwoebi chroot?
@Sara I said hardcoded, like with __DIR__
09:06
Right, but in a chroot you can replace what it's calling with something else.
Or get creative with eval and token_get_all
BECAUSE THAT'S THE KIND OF MOOD I'M IN RIGHT NOW
oh, was thinking chdir(), woops.
:p
wtf, dude.
It's 5am
I don't like you people /that/ much
WHO AM I CALLING "YOU PEOPLE"
Not sure, I just know what you love every single of us.
@Sara clearly untrue
Anonymous
@Sara Woosah, woosah
09:10
@Sara /me moves path to private property and just uses a closure to change it to a dummy
@Sara your bed. It's probably already calling you :P
Well, I like @NikiC.... and @Andrea is cool. @ircmaxell... okay @JoeWatkins.... fine, I like you too @bwoebi
Anonymous
?
Anonymous
waits impatiently
@JayIsTooCommon Shhh... no... ours is a love that dare not speak its name.
09:18
… I thought I wouldn't have to write a $that = $this; any more ever since PHP 5.4 became the baseline…
You can not typecast through array_map – #74874
<-- makes noob mistakes
@bwoebi Where is your mainframe?
@Jeeves that's not a function..... :|
09:23
@pmmaga Never said it was.
ok cool
Anonymous
You tell them.
Anonymous
@Jeeves Pedro is a bit of an ass, right?
@JayIsTooCommon What's going to happen?
Anonymous
ugh, you were doing so well.
09:24
it'd be fun to look at the stats of bugs.php.net and see if @Jeeves made a real change.
@FlorianMargaine I cannot.
@JayIsTooCommon hahaha :P
Anonymous
@FlorianMargaine it'd be down to @kelunik if so :)
so, it turns out there was a poop emergency
...next time the conversation goes off the rails you now know how to kill it
09:33
this feels like bugs.php.net being the next stackoverflow
should I be less helpful to prevent that? :P
ugh, next you're gonna tell me php.net will roll out documentation too
god no
that'd be horrible
pretty sure its tutorial will have mysql_* functions
@JoeWatkins The changelog for PHP 7.1.7 lists a wrong bug number. Fixed bug #74658 (Undefined constants in array properties result in broken properties). should be bugs.php.net/bug.php?id=74657
And Fixed bug #74101, bug #74614 (Unserialize Heap Use-After-Free (READ: 1) in zval_get_type). doesn't have a link for the second bug.
09:51
you have no idea how much i hate that thing
i can't look at it anymore
Anonymous
hey best friend
@kelunik can we just do another logo
i'm not joking
@bwoebi Wat, why did you do that?
something simpler
you want to repeat this process?
09:53
It should fail when other ops are pending. @bwoebi /cc @Trowski
i'm not encourage bikeshedding this time
@kelunik it still does.
@bwoebi It says:
> The ParallelHandle::seek() function now ignores whether the handle is busy, similarly to the other handle implementations.
oh, oops
fixed the text:
> The ParallelHandle::seek() function now doesn't set the handle to busy, similarly to the other handle implementations.
It should probably set it to busy.
09:56
halp
need to name something again?
;p
UvHandle doesn't and that did make Aerys tests fail on Native. … changing UvHandle to fail would be a BC break, this isn't though. @kelunik
INSERT INTO user (id, name, username, param)
  SELECT id, name, username, :bound
  FROM user LEFT JOIN user_permission AS userPerm ON user.id = userPerm.user_id
  WHERE user_id = :user
can I do this with prepared statements?
I mean the :bound part
@Linus not sure how this is related
10:00
@bwoebi It would have been a bug fix. Reading while seeking just doesn't make any sense.
@tereško try it out? I think it should work.
I cant try it :D
I dont have a machine with PDO that I can access
@kelunik but you aren't simultaneously.
sorry bwoebi misunderstood the question..
@kelunik it totally makes sense to queue read/write ops instead of having to wait for return and back.
I'd go as far and say busy should be removed completely
10:04
@tereško probably. in the worst case you need :bound AS columnName
unnamed columns get numbered maybe? i don't know
@WesStark it will get a name. Just not sure which one.
also, doesn't matter here as he does an INSERT INTO.
ah, right
@WesStark well, yes. That I would do anyway
but the question is where I can bound a static value there
as in INSERT INTO user(foo) SELECT 1
but with a parameter from a prepared statement
yes.
well, lets hope it does
since I will be running through as homespan abstraction layer, because at work, the SQL is still being run through mysql_* functions
(I think they even aliased mysqli_ functions to mysql_)
Anonymous
10:15
nice
Anonymous
how are you not a convicted murderer yet?
morngin
Anonymous
yo penis
yo o/
10:17
/me needs coffeee
@JayIsTooCommon it's a constant struggle
I wrote the abstraction just to keep my sanity
(also, because I need sqlite for running integration tests)
@PeeHaa Come here and you'll get one. :P
That sounds nice. How many km are you from rotterdam :P
Anonymous
> km
Anonymous
pfft foreigners
10:23
About 538.
We do really not have unpack() formats for signed integers with specific byte order?!
10:44
@bwoebi I really miss a lot of python stdlib when using other languages.
11:04
@DaveRandom @LeviMorrison that lxr thing seems down again…
@bwoebi "not poor, just trying to be as up to date as possible" What's poor is that they are not as accurate as they could be. Up-to-date is no excuse for being inaccurate for previous versions. — ChrisJJ 18 hours ago
eih … wattt?
– bwoebi Sep 27 '15 at 9:29 ... and he's just now getting around to complaining about it
@PaulCrovella yes, that's part of the wattt
!!docs dirname
[ dirname() ] Returns a parent directory's path
11:25
Hey guys,
I want to parse this format from MSSQL: 2017-07-06 19:47:15.663 into a PHP DateTime Object.
However, the closest I get to is:
createFromFormat('Y-m-d G:i:s')
It isn't obviously correct because of that millisecond part.
How would I parse that part?
abr
abr
You can use strtotime(), depending on what your needs are
@HassanAlthaf Y-m-d G:i:s.u?
the catholic time :D
I need to get that date
and be able to add a couple of hours.
So basically I'll have to use createfromformat yeah
and compare the time with current
@Gordon Oh, thanks!
why dont you add the couple of hours in the db directly?
user924016
11:32
morn
abr
abr
Boys, situation: I'm uploading a 1mb csv file to a laravel web application. Thing is, I want to run a big set of operations for each line - on a lower size file, it works - and with this file (same but with replicated data) it gives me statuscode 500. (I am uploading, saving on the disk and then using it)
any ideas to fix it?
@Gordon Basically I'm fetching the date, parsing it, adding a couple of hours on it and comparing to see if that calculated time has elapsed
abr
abr
timeout usually happens between ~18seconds-32seconds, tried to set the response time to 5 minutes but error maintains
The amount of hours I need to add is also stored in the same table.
nPeriod = number of hours to add.
11:34
4
Q: How do I add 1 hour to datetime SQL column data?

KelseyI used this part of a query to create a table column for the date and time a row is added: order_date datetime NOT NULL DEFAULT GETDATE() and whenever a new row is created, the data for order_date is set to something like this: Apr 8 2014 9:52AM For some reason, when a row is created and the ...

start from there ^
Hmm, would it not be that way if I had to update the DB?
Never mind, I'll have to change the db schema, which I am not allowed to do.
The main game will break.
@abr You're probably hitting the memory limit or timeouts.
user924016
@HassanAlthaf you need to add 1 hour to an existing value, but you cant because it requires a schema change? How
@RonniSkansing What do you mean
I guess my poor language skills conveyed the wrong message, I apologize for that.
user924016
Or I misread nvm (=
11:43
@HassanAlthaf so what is the datatype of the column you want to change?
You should consider using DATETIMEOFFSET as your daatype instead of DATETIME.
The answer suggests to change the datatype of dtStartDate column
Which I cannot do. Anyways, it has been sorted. Thanks for your help on the DateTime object format.
@HassanAlthaf well, the other answer mentions using DATEADD
15
Q: How can I use a SQL UPDATE statement to add 1 year to a DATETIME column?

Joshua CarmodyI want to add 1 year to a datetime-type column in every single row in a table. Adding using an UPDATE statement is easy for numeric types. ex: UPDATE TABLE SET NUMBERCOLUMN = NUMBERCOLUMN + 1 I'd like to do the same thing with a DATETIME-type... UPDATE Procrastination SET DropDeadDueDate = Dr...

if all you wanna do is update the time its somewhat wasteful to pull the date into php, do the calculation and then update the row. that's two queries plus some processing instead of just doing one query and be done with it
11:59
Hi guys what is phpstorm shortcuts to generate /**@var
just put a typehint instead :P
Dont get the joke
it's not a joke
don't put a comment. put a typehint
@abr You'll need to have something that runs PHP as a background task on the server, rather than trying to do it all inside one http request. I predict supervisord.org in your future.
I'd also recommend breaking the data up into individual pieces of work first (as one step) and then doing the line by line processing as a separate thing, before putting the results somewhere.
12:06
@Gordon Oh thanks! I still can't use it. I cannot change the column data type. It will break the game. I got it solved using PHP code.
Btw Gordon, would you be able to help with this: stackoverflow.com/questions/44860938/pdo-binding-is-not-working
@HassanAlthaf why do you need to change the column data type? What are you currently using for the column?
I'm using DATETIME
ehh .. some countries still live in dark ages: bbc.co.uk/programmes/p057tmhk
@HassanAlthaf so why do you have to change the column then?
12:24
@tereško I'm wondering why really are you interested in reading news?!
@Shafizadeh because I don't want to encounter a personal version of outside context problem
Ah .. I cannot read that link .. but ok, I got your point. You're trying to get familiar with everything to be able to opine about everything.
you cant access wikipedia ?
I can .. but it's a long paragraph in English .. Reading that takes about 30 min of my time
ah
@Shafizadeh then read just the "The usual example given to illustrate an Outside Context Problem .." citation
12:32
FILTER_VALIDATE_URL has bug with "/" in query string – #74875
@Jeeves fixed since 7.0.13
@pmmaga Oohh.
i know right
@tereško I did .. great context
> Congratulations, you got 61% correct!
user924016
^ Programming Language Inventor or Serial Killer?
@WesStark the column name is ? then.
12:50
is it? mysql? too lazy to try
Is this sentence correct? (English Perspective)
> I'm wondering why really are you interested in reading news?!
I mean either "wonder" or "wondering" ?
> Sorry, you need Flash and JavaScript to play this daft quiz
@Shafizadeh is there a reason for the "really"? because in context, it's awkward. It's still technically correct, but it's difficult to read.
"I'm wondering why are you interested in reading news?!" "I'm wondering why are you really interested in reading news?!"
@Tiffany Ah. Well I've used "really" to add some excitement to my question.
add commas :)
12:55
@Tiffany ah ok thx
"I'm wondering why, really, are you interested in reading news?!"
got it
@Tiffany It sounds weird
guys is there a way to generate tables (like it's done in laravel) without having to use a full framework
o/
13:04
@littlepootis AFAIK his native is English.
her*, but it still sounds weird
Shouldn't it be 'you are'?
basically i want to be able to generate mysql table like django or laravel but without having to use a framework, that's my question basicaly
@Lynob generate tables from what?
@Lynob you mean db migrations? plenty of packages for that
13:20
@Lynob phinx
@PeeHaa How important is the BasicClient name for you? Because I'd really like to release v3, because I have packages that depend on it.
I still very much dislike the name as it is meaningless, but it's really up to you people :)
Jun 29 at 14:22, by pmmaga
the class could be Client if the interface was ClientInterface hides
I am agree
That is actually the most clear one of all the suggestions I have seen
@pmmaga It's not going to happen. Before we do that, I'd be ClientClass and Client.
13:27
@PeeHaa liquibase, dbdeploy :P /cc @Lynob
@PeeHaa Just killing the interface is actually still my preferred one somehow.
@kelunik Whaaaa? You would prefer to suffix the class over the interface?
@DaveRandom could you please reiterate the need for the interface?
Client and Client\Client ... clientclientclient
I think I needed it too at some point
13:28
@pmmaga Sure. I use the interface everywhere. I construct a new instance at exactly one point in the app most of the time.
But not sure anymore
@PeeHaa You can just override request, wouldn't make the class final then, obviously.
@kelunik ah, ok. I wouldn't think about it that way but it makes sense
@pmmaga It's why we alias LoggerInterface to PsrLogger everywhere and PromiseInterface to ReactPromise.
If you can't think of a good name for your implementation, an interface probably shouldn't be a thing.
@WesStark yes. At least I get that from the protocol.
13:33
HalfAssedClient
@kelunik Not entirely true. Naming is just hard :)
MvpClient
@PeeHaa I said probably.
@PeeHaa Are you fine with the default timeout?
What is it at?
13:39
@littlepootis Both ways work, in my opinion. It's asked in a form of a question, so "are you" is preferable, but using "you are" shows genuine wonder as to interest in reading news.
yeah sounds sane
@Shafizadeh FWIW, being a native English speaker means very little. There are plenty of people in this country who are native speakers and can't form a coherent sentence, and can be worse than some non-native speakers.
Fucking left idiots @ g20
@PeeHaa Renamed, should github.com/amphp/artax/blob/master/lib/AggregateBody.php also get a new name?
@kelunik it probably should be called just Artax\Body
13:43
And I wonder whether github.com/amphp/artax/blob/master/lib/DefaultClient.php#L54 shouldn't be $defaultHeaders instead.
@bwoebi Well, RequestBody probably.
@kelunik eih, yes.
@kelunik it should.
And github.com/amphp/artax/blob/… should probably just be changed to Promise<InputStream> instead of InputStream.
I am agree with the name chagings
@PeeHaa "I am agree"?
hello agree
13:48
@Tiffany You are too young for that r11 meme
May 7 '12 at 13:26, by rdlowrey
"ok I am agree with all" sounds like meme material to me. I might start using that :)
Any chance you can find the gif? That would be tits
I wasn't aware there was a gif.
there are many gifs, only some are tits
Also, your wrong about the class name. It shows that people should look at this implementation that they can extend for non-basic implementations.
13:52
your?
:P
@Danack it's final
s/extend/copy+paste then edit/
@Danack But you don't know what makes it basic
@PeeHaa your wrong what, that's what I usually tell people, then they get mad at me :(
13:53
@PeeHaa that's fine....if you don't know, then you don't care. It's only if you have need for something that is more advanced, that you would have to care.
May 7 '12 at 21:55, by Carrie Kendall
user image
@Danack The point is. More advanced than what :P
that's no gif
user4962466
Hey guys
user4962466
fridays on fire
the g in jpg stands for gif
13:55
it's also not tits
@bwoebi Hmm... not entirely sure on that. People will probably use it for things like Authorization.
@PeeHaa the more interesting question is: how do you pronounce that? jaypejiff or jaypegif
jaypetiff
sounds french
13:59
I think the problem I have with a term as Basic @Danack is that it is telling as much as naming it George
We should just name it SimpleClient.
As in I implemeted it and had to find the actual docs to find the remark about caching
eye twitch
@PeeHaa Yeah - I just disagree with that. It says that it's a simple implementation that does what is required, without any fancy stuff like caching or retrying.
@kelunik That's the users choice whether he does that or not.
14:00
Though I would also be fine with calling it John.
@kelunik What's the point of returning a Promise here?
"john" is another word for "client" in some industries after all
@bwoebi Not needing the horrible "hack" for files.
@Danack Oh, it actually retries if it fails to receive even the response headers.
Point in case :P
sorry
;-)
14:11
@kelunik there could be a function provided by byte-stream for solving that. Then your code would be essentially only createInputStreamFromPromise(open($this->file, "r")) … I imagine that function being potentially useful in other cases too.
I do not think requiring a Promise<InputStream> is the right thing to do.
@bwoebi Yes, that's the other option and there was actually a comment for that.
But returning a promise simplifies it, but only that case.
@kelunik Yes, only that case, hence no…
@Tiffany ah I see
hello everyone
i want to send html from with use of php mail function
for that phpmailer function is required or i can send html form with out using phpmailer
@bwoebi So where would default headers be useful?
^ /cc @PeeHaa @Ekin
14:22
This is genius: blog.haschek.at/2017/…
default headers?
45 mins ago, by kelunik
And I wonder whether https://github.com/amphp/artax/blob/master/lib/DefaultClient.php#L54 shouldn't be $defaultHeaders instead.
@kelunik sending general headers like DNT or whatever. It's not our task to name concrete cases… but browsers have some headers they always send… so will Artax probably.
@bwoebi Browsers are a different topic there.
Same requirements in this case.
@kelunik or, e.g. Accept header
14:31
@bwoebi It's automatically added.
@kelunik It adds Accept: */* … but do you necessarily want that one by default?
you may have a custom global Accept header
@tereško continuing from my session question, would there be anything wrong with storing $series, $accountId, $key in a session and to use findCookieIdentity()/loginWithCookie() (i think yesterday i only asked about the first one)? if a user doesn't select "remember me", an expiration time of 2 hours will be assigned to expire stale sessions. the only chance of a malicious user stealing a cookie is if they take the sessid, but this can be regenerated during all sensitive actions.
@bwoebi We can add it, but we should have a list of headers to block before.
@bwoebi Thanks; working on it. /cc @Dave
14:35
storing those in a session would be wrong, because you become tied to a session state, @jeremy
what exactly is the problem, that you want to solve?
@bwoebi And we should protect against blog.haschek.at/2017/…, because the size limit only applies to the received bytes, not the inflated ones.
@kelunik why should we? except the ones we'd anyway block within withHeader()
@tereško allow users to sign in without remember me
@bwoebi Why should we block anything in withHeader?
@kelunik right. We shouldn't. Then we shouldn't restrict the headers there either.
14:37
@bwoebi We should, because people are stupid.
@jeremy how is storing $series in session related to user being able to sign in without remember-me?
It's not our responsibility to add arbitrary restrictions there.
And it will leak authorization headers to other hosts on redirects.
@bwoebi It totally is.
It should be hard to do stupid things.
And with default headers, it's really easy to do stupid things like assigning an authorization header.
We should probably just add middlewares.
@jeremy if you are not using remember-me, why would you need to use loginWithCookie() ?
@kelunik It's also easy to just build a function createDefaultReq() { return (new Request)->withHeader('Authorization', …); }
14:39
@tereško i am just a bit lost on how to go about sign in without remember-me. in storing all 3 variables i can manage to still have some information on active identities in the database by using loginWithCookie
@kelunik Seeking is still forbidden while reading or writing. You can issue a read or write while a seek is pending, but because ops will be FIFO I believe it is alright to not mark as busy in ParallelHandle.
@jeremy why are you storing them? All you need is an account ID.
@kelunik We're not really making it easier. It's already stupidly easy to do these stupid things.
@bwoebi No, it's not.
Well, I disagree.
14:45
friday morning: there's literally no one at their desk. I'm almost worried: is there a general meeting I missed?
@tereško i see
if you dont need the remember-me functionality, you dont need the cookie
you just take the account ID from the identity, when user has logged in and store it in a session
done
okay stop it now, it's Friday afternoon ... which is more or less Saturday ...
@bwoebi Should default headers be assigned before or after requestbody headers?
friday :)
14:53
@kelunik the answer is they should be assigned on Monday, in whichever order takes your fancy ... but on Monday ...
@JoeWatkins The voice of reason
...or perhaps raisins. One has trouble knowing all things at all times.
@kelunik before
ohai @Dereleased
Yoooo Joe!
reason, it's reason ... not rambling or raisins ...
I never ramble ... not ever ...
14:58
reasoning about rambling raisins?
rambling about raisin reasons
I trust you have fully recovered by now?
because that's what fridays are for ...
@Dereleased yes, I have, thanks for asking ...

« first day (2456 days earlier)      last day (2717 days later) »