« first day (3184 days earlier)      last day (1988 days later) » 

00:01
yeh I'm just doing that rain dance atm
lot of guesswork tbh but I'm just doing another run now
It tops out at around 2.2G
...and (assuming I get it working) I will be returning it with a composer.lock :-P
well got it to resolve a viable set of deps at least, just got to wait for 206(!!!) pkg installs now...
srsly, f*ck frameworks...
 
1 hour later…
01:23
@DaveRandom I'm back! Did I miss anything?
see twatter
LoL
 
6 hours later…
07:02
The last message was posted 180 hours ago.
08:00
inkhorn ostentatiously learned : pedantic
there is a linux command like "trail" or "traet" or I don't know, I'm only sure it starts with "t" and it "cats the few last lines of a log file" .. any idea what's that?
08:22
@Shafizadeh tail
08:46
!!rfcs
09:27
mornings
09:59
o/
Wes
Wes
10:13
\o
bleah
this coffee sucks -__-
10:32
another thing I should know by now but apparently don't; what's the correct way to store DateTime's as a string and then convert them back to DateTimes?
Wes
Wes
use a format that includes all the things?
maybe there's some issue in doing that that i don't know. i use the w3 format i think
So just RFC3339 (assuming I don't care about microseconds) ?
Wes
Wes
yeah, or anything with similar features
gold price went down as soon as i bought it
 
1 hour later…
11:47
The last message was posted on Friday.
12:16
is possible to maque the search bar on bootstrap table to query on 2 tables on sql?
Hm, vote on wiki.php.net/rfc/add_str_begin_and_end_functions is more negative than I expected...
i dont agree with the naming tbh
people are scared of opening the flood gates for every possible use-case under the sun, maybe?
everything string ralted in php that is case insensitive uses stri and not _ci
is it possible to have the search bar of the bootstrap table do research on two tables in the bd?
12:21
@Stricted The i doesn't really work if the name has underscores
I mean stripos is okay but str_istarts_with looks super weird to me
Also kinda reads like "I starts with" which sounds like some kind of cat meme
str_replace, str_ireplace
ereg_replace, eregi_replace
works fine imho
@Stricted Ah, forgot about str_ireplace
i would be much happier if the _ci ones would not be in the primary/first vote, but i +1 regardless :D
Wes
Wes
mb_ str_starts_with shouldn't be needed, only case insensitive ones?
gold plummeting
lost 20% of its value in the past 10 minutes
12:40
@Wes It's like the stock market. Don't watch it or you'll drive yourself crazy. It's a crockpot, not a microwave.
At least in part that's because someone wrote 'fiat currency' in a place where I could see it.
Wes
Wes
looks like it's not going to bounce
just because of that FED pick or is there something else going on?
@Wes where are you getting 20% fall from btw?
Wes
Wes
12:50
from the peak price of the day i think
20$ != 20% ....
except in sql queries maybe.
man's iphone's sos thingy is so wonky. somehow triggered it and it called my trusted contacts and almost called the cops
would it be too bad if we had an optional bool as a 3rd argument to str_starts_with to make it insensitive, instead of having it as a separate new function _ci?
also mornings
@Ekin yes, that would be bad. a lot of people hate boolean arguments....
o/
12:58
yeah, guessed as much
@Wes thats not 20% its 20 dollar
Wes
Wes
it's going down again
declare(case_insensitive_string_functions=1) :D
2
Watching it constantly will seriously cause you to be stressed. Stressing for long periods of time will cause health related issues. 85% of illnesses are stress related. You don't need to add to the list of stress inducing activities. =)
Wes
Wes
i am only watching it because i got the sirens. warn me if the price drops below 1410. not that i could do anything, it happened in just 3 minutes
 
1 hour later…
14:23
@bwoebi I built something like that ages ago, for attempting to implement the DCI "pattern". I don't think it's super-interesting though, if you cannot make it work on existing instances.
@2dsharp you can do function (& $wrappedInstance) use ($realInstance) { $wrappedInstance = $realInstance; } or something like that
you terrible people, come forth and answereth:
Basically like committing opcache, but for preloading :P
Does anyone here have GPG encryption working under 7.2? Must be a library, not the extension.
14:47
Morgens
Wes
Wes
15:25
This app wants permission to:
See and make a copy of your Google Contacts
Your contacts may include the names, phone numbers, addresses and other info about the people that you know.
im afraid that includes you @PeeHaa :B
15:50
lol
my friend which i get into the company a year ago is finished with his internship and got an A Certificate \o/
next to go
is it possible to have the search bar of the bootstrap table do research on two tables in the bd?
I have two tables in the database, one with equipment and the other with the serial numbers and the id of the equipment, but in the initial table for the user I only have the equipment table, if it pertains to search the equipment for S / N how i do that
?
@NoobDEV-GBL you'd have to write some code to query those tables.
@Danack
so I'll have to undo the table search bar? is a bootstrap4 table
I have no idea what that means. You'll have to write some code that can be called to provide the info.....exactly how to do that is something more that you should google for how to do...as it has lots of parts to it.
16:05
ok tanks
@Sean I forgot to say one thing - if you have time, using revealjs.com/# to write your slides is really nice. They work on any computer, can be made to look pretty good, and are much easier to edit than things like googles slides.
@Ocramius no idea if that helps you but i found that some days ago: criu.org/Docker you can save the memory as well!
general protection when opcode is enabled – #78255
16:46
@Ocramius The point is to make it work ahead of time, so any instance built will have these methods
A bt like c# extensions IIRC
just with the ability to actually also attach interfaces
Hello. I have 2 functions (up and down), is it possilbe to run them using cmd? For example: php myscript.php -up will execute function up.
$argc is the number of args - $argv is an array of the commands.
@bwoebi yeah, I clearly remember building that as part of ProxyManager, then giving up at some point, because it was too niche
@user3655829 yep, seen CRIU, but I'd like it to be part of the committed image
I was considering something as bad as committing something in /proc :D
i thought about saying something like thats going to be more experimental as criu :D
@Sjon thx
16:58
@BlackB0ne saw that package here in the bus yesterday: github.com/getopt-php/getopt-php
but its probably overkill
@user3655829 well, linux /proc is just filesystem - if I could write to it (tricky) it could work
@Danack @user3655829 Thanks for help.
17:40
@Ocramius It is quite niche, yeah … but honestly it's mostly niche because people are not aware of where they can use it intelligently
It still is a niche thing then, but not as niche as if it would be just an exotic ProxyManager thing
I mean … for comparison … if PHP had a native preprocessor, a lot of people would use it. But now we just have the pre project, which is … quite niche because of missing awareness
There is awareness in CDI, but that's kinda terrible IMO
@Ocramius not sure if talking to me because no idea what CDI stands for
context-data-interaction IIRC
monkey-patching friendly approach to domain logic
yeah, because everything … is going to be a hacky mess, no person has any idea how to debug that (I mean, if you do it custom the file/line will all be fucked up and annoying to debug) etc.
if it were native…
nono, it's a mess also there (prototype signatures)
17:48
@Ocramius hm?
Object.prototype.banana = someGarbage;
oh you mean JS-like
yeah no
as said, I'm thinking much more of c# style extensions
no runtime fiddling allowed
ic
yeah, I'd rather prefer type classes then :P
but I need a better reason to use some sort of inheritance here
18:23
Hi guys
I have I have a page I am loading form pre-loaded fields for search criteria.. But one of the multiple select field taking too much time.. sometimes it takes more that 2 mins because it has 13k rows to scan and load all of them in multiple select field...
is there any way around?
18:41
@Ocramius what do you mean with type class here? as in haskell?
19:18
is there any newsletter related to PHP in stackoverflow?
 
1 hour later…
20:20
@bwoebi Extension methods would definitely not be niche. Like Kotlin implements them.
Does anyone have a good study reference for a Factory Pattern that supports chaining methods to build more complex objects? Eg:

$car = CarFactory::create('Ferrari')->withPassengers(2);

I know how to do it, but I'm wondering if there's a "industry-standard" way of tackling this pattern, specifically
Wes
Wes
builder pattern
Thanks.
That's exactly what I was searching for
Wes
Wes
however, objects with a lot of properties are considered bad, therefore you shouldn't be needing a builder
what are you modeling specifically?
It's writing tests for a WordPress project.
Kinda hard to explain
Basically: $document = DocumentBuilder::create('public')->withAttachment();
Document is a post type. You can add many of them and they will be listed in /documents
It can be public, confidential or have specific visibility rules according to who's logged in
When you click it, it can download an attachment or lead to an external URL, etc
so, basically,
DocumentBuilder::create('public')->withAttachment();
DocumentBuilder::create('public')->withExternalUrl();
DocumentBuilder::create('confidential')->withAttachment()
I'm thinking of using this approach to build documents for tests
20:37
@LucasBustamante I've built github.com/kelunik/builders if you're interested in that.
@kelunik that's nice, even though since I'm using WP, I need to write a custom builder
@LucasBustamante You can obviously do that, but if you have a type you wrap, you can automatically generate that the setters and add custom methods on top.
Wes
Wes
sandblasting is my new fav thing to watch youtube.com/watch?v=JJPLJMFoVzo
20:55
@salathe Why did you vote against str_starts_with?
21:17
@Wes Yeah something satisfying about it. Like a real world refactor :D
Wes
Wes
Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot. Why did this happen?
google thinks i am spamming
you on a shared IP, eg work/Uni?
Wes
Wes
nop
then stop spamming >.< :D
Wes
Wes
:B
Wes
Wes
21:34
arr[2..-1] in ruby is the same as array_slice($arr, 2) ?
yes. what a crap syntax lol
22:26
reminds me of rust:
let a = [0, 1, 2, 3, 4];
let mid = &a[1..4];
default arguments by reference don't work – #78257
Wes
Wes
@Ekin isn't that [1, 2, 3, 4] ?
.. (two dots) is exclusive range if I remember correctly
... is inclusive I think
ruby has .. as inclusive
Another crazy idea. (sure that I'm not first)
Declare internal (pseudo)classes for all primitive types. If primitive followed by `->` suffix
then execute associated function.
"aaa"->uppercase()
cast as
(new string("aaa"))->uppercase();
22:55
@PeeHaa sic! Idea appeared after reading rfc "Add str_starts_withs(), str_ends_with() and related functions". I suggest that those functions is helpful, but I think that adding another 4(8) old-style function into standard library is wrong way. It is vicious circle.
23:10
By the way, 'type handler' may be used not only for primitives. It opens interesting perspective to realize traits usage like extension functions in Kotlin/C#/ect.

register_type_handler("SomeClass", "MyTraitClass");
@rjhdby yeah I am +0 on that one

« first day (3184 days earlier)      last day (1988 days later) »