« first day (3776 days earlier)      last day (1169 days later) » 

12:28 AM
Can it just be done with snowing this winter? Please?
 
 
2 hours later…
2:07 AM
@Tiffany It's still winter for another month.
 
😣
 
 
1 hour later…
3:15 AM
PDO_INFORMIX not working with PHP 8.0 ・ PDO related ・ #80753
 
 
4 hours later…
6:54 AM
Hi guys, do you know how to make a path dynamic? when creating a file, i want to save it in a flashdrive
 
7:48 AM
PDO :: quote should return false, but throws an PDOException instead ・ PDO ODBC ・ #80754
 
Morning all
I'm looking for a piece of advice for example described here https://3v4l.org/bUXnS the question is if there is a better way to reach for both entity ID's _(Profile,Contact)_ than using a callee property of event without polluting ExternalDataWarehouse and ExternalCRM namespaces.
All that goes into dispatch() can be async operation on a queue and passing a callee to an event after handling command was the best I could think about.
The main domain for this example is the Integration namespace with things for interacting of two external systems together.
It's hard for me to figure out how to get rid of instanceof in listen_for_profile_contact_creation event listener function.
 
8:50 AM
@Tiffany Winter has gone
 
9:09 AM
morns
 
9:43 AM
@Tiffany I'm so over this winter. I never liked winter but winter + quarantine is so much worse.
 
10:01 AM
@PeeHaa you're welcome
 
10:36 AM
Hello
Does anyone know why '^[a-zA-Z]' allows bob404
 
10:58 AM
@IluTov it keeps snowing here. I am sick of it.
 
@Tiffany You don't know how many mornings I got up this winter, looked out the window, and was like "are you fucking kidding me" :P
 
Hahaha, I've said that several times over the past week
 
I miss the amount of snow I got in Norway. So pretty, so much skiing to do.
 
Snow looks pretty for a day or two. After that it can fuck right off.
 
But this winter I've had to be mostly at home.
I am bored as hell really.
 
11:01 AM
My washing machine drain pipe freezes in freezing weather. It's been frozen for over a week. I'm fortunate I can wear pajamas to work, but ran out of clean blankets last night >.<
Had to drive to a laundromat, while it was snowing, to do a load of laundry
 
@NikiC FWIW, the asan thing I might get to soonish...
 
11:19 AM
next function does not go strict to next sibling node ・ XML Reader ・ #80755
 
Speaking of snow this year I had to buy a snow shovel first time since I didn't need it in the last let's say 10yrs.
 
Florida man: "Snow? What's that?"
 
When the first snow this winter it was even hard to find a snow shovel.
Right now it's getting close to spring. 4w of winter this year is enough.
But at least kids (learning from home from a year about) had some fun making a snowman.
 
@CupOfJava drive north about 100-200 miles, probably
 
I feel like I'm not missing out on anything
 
11:44 AM
Anyone took a look at my morning example and willing to share thoughts?
Still dunno how to solve it in more elegant way
 
@brzuchal What do you mean?
 
4 hours ago, by brzuchal
I'm looking for a piece of advice for example described here https://3v4l.org/bUXnS the question is if there is a better way to reach for both entity ID's _(Profile,Contact)_ than using a callee property of event without polluting ExternalDataWarehouse and ExternalCRM namespaces.
All that goes into dispatch() can be async operation on a queue and passing a callee to an event after handling command was the best I could think about.
Have the commands and listeners split across 3 domains in integration app
Interaction based on commands and events with a bus (dispatch() here)
How to handle additional info in elegant way listening on events dispatched from one of External domains
Without polluting each with alien ID's from another.
The way I did it was inside Integration domain extending a command and treat it like a container for additional stuff and then on one of External domains emit an event which includes the invoking command object
The part I don't like is the instanceof inside a listener
Any solution has to go with all SOLID rules
 
Since glibc 2.33 NSS must be initialized before calling chroot(2) ・ *General Issues ・ #80756
 
And command nor event handlers cannot return anything cause all actions invoked by dispatch() are queued
The requirement is to deal with at max 2 remote services for each operation, eg. (http_client + queue), (db + queue) etc. no more
at least for mutations
 
12:41 PM
@Jeeves lol, I reported the same issue to glibc instead
 
12:58 PM
o/
 
1:23 PM
\o
 
 
2 hours later…
3:11 PM
\o
 
Dear PHP Lovers, PHP is a programming language, or just a scripting language???
 
Scripting language is a particular type of programming language.
There is no "just" involved.
 
o/
 
\o
 
o/
 
3:27 PM
\o
 
@Crell ^^ This. "Scripting" gets loaded with the "just" label from a time that no longer exists. It's not better/worse harder/easier, it's just another way to program. And spoiler alert, the gap between scripting languages and compiled language gets smaller every day. Scripting language based apps start to pick up "build" tasks where bootstrap data or code-gen tasks run, and pre-compiled applications increase their scriptability.
4
 
Yep. And anything with a VM is basically just transpiling to a very low-level interpreted language, called bytecode/opcodes/whatever that get interpreted at runtime.
 
Oh my god, it's full of code!
 
/me goes back to C++17 and some real programming
 
3:34 PM
@user15070659 Anyway, I think that answers your question.
 
@Crell how
 
PHP is a programming language. In particular, the subset of programming languages called "interpreted languages." There are other variants, all of which are also programming languages.
 
4:08 PM
Exit code is 0 when could not open file ・ phpdbg ・ #80757
 
4:25 PM
probably an XY problem
I have two log files, I grep the lines that contain errors from log A
The lines contain IDs which I can sed into another file as a list
I need to use the list of IDs and compare with log B, retaining only IDs in the list that aren't inside log B (cont...)
The problem is that I ran a command that imports posts from a wordpress webservice overnight, and at some point during the night, it began throwing MySQL errors (MySQL database went away). I re-ran the command the next day to hopefully capture posts that weren't imported, and this worked, to some degree, but there are posts that were still missed.
So log A contains the errors, and I can grep those errors into a file, but in log B, some of those posts were successfully imported, and I need to exclude the successfully imported posts as part of the final list, so I can focus on the ones that were unsuccessful. Normally, I'd just go one-by-one, but I get a list of ~400-500 items from log A. :/
 
Sounds like you need an intern to do it by hand :-)
 
XD
trying to think of keywords to google the "compare the list with another file, and retain only list items that aren't contained in the other file" but... having trouble making a coherent abstraction
 
Hit up the DB and check for their existence before retrying. DB went away is usually if you leave your connection open for too long without sending a query, add reconnection logic.
Or load them all into PHP and use array_diff
 
may be able to add reconnection logic to the parser
 
mysqli->ping() should get the job done
 
4:31 PM
@MarkR this seems the easiest, I think I'll do that. thanks.
 
4:53 PM
@Tiffany store them all in an array index by ID? and then export that array to wherever you need it.
 
 
1 hour later…
6:13 PM
@Danack doing like array_fill so the values are empty?
 
6:29 PM
@Tiffany Depending on exactly what you're trying to do, yeah fill it with the full list of known IDs first, and then modify the entries for the ones that have been imported okay. Or the other way, and just leave gaps in the array, and when it comes to output, you can sort the array by keys, iterate over it and if ($current_index != ($previous_index +1)) { // $previous_index to ($current_index - 1) need importing }
 
7:13 PM
version_compare does not behave as documented (or even consistently) ・ *General Issues ・ #80758
 
@Sara Did you see my message yesterday? I wrote a (useless) zend_extension in Rust this weekend. Rust is a real language; move over C++!
 
> P.S. I see cmb@php.net has a habit of closing reports like these as "not a bug" with the justification that a "PHP-standardized version string" has some sort of meaning that excludes these inputs.
 
Email address from the company that currently owns WordPress
 
And weirdass spaces for ()'s....
 
7:30 PM
@LeviMorrison I want to do more Rust, but whatever language pays the bills makes a BIG difference ;)
 
@Sara Any interest in coming to Datadog to write Rust for PHP extensions?
You can respond to that by email if you prefer :)
 
Oct 25 '18 at 19:00, by Tiffany
I fucking hate Wordpress
 
@Sara And yes, it's a serious question.
 
@LeviMorrison Without actually answering that question, I will comment that my 4 year vesting cliff is about 3 months away. #justSayin
 
Ahaha, "Hey, Google, in 3 months remind me to ask Sara if she wants to come to Datadog to write Rust for PHP extensions."
 
8:05 PM
@LeviMorrison Is this a good time to mention that I will be on the market myself in two weeks?
 
@Crell It's always a good time to mention such things :)
 
Well, I'm available starting in March. Just sayin'.
 
We are looking for extension developers, so background in C, C++, or Rust is required. I know you've dabbled at least; do you have a current resume or something that shows your expertise there?
 
My C/C++ experience is about 15 years old, and I've only dabbled in Rust slightly although I keep looking for an excuse to learn it properly.
I haven't put together a new resume yet. My paid-code experience is all PHP for the last 15 years.
Well, not entirely true; A little bit of JS, Python, and Go at the current job. Porting a bridge library between all of those languages.
 
@LeviMorrison suggestion would be to remind in less than 3 months, such that right after vest is when changeover happens :)
 
8:14 PM
I have to run out for a doctor's appointment. Will be back later.
 
9:03 PM
@LeviMorrison If you have a listing, you should link to it.
 
@LeviMorrison Is there a job posting online? US only or is remote work possible? There are 0 Rust jobs in Switzerland.
 
Let me see if it's updated online. It's remote, though if you live in near one of the big offices (NYC, Paris, Boston, etc) you might have to go into the office; that's a tax thing I don't know the answer to.
It doesn't explicitly mention Rust; here's the listing: datadoghq.com/careers/detail/?gh_jid=2067579.
2
We're moving code from PHP land into the extension, and we don't want to do all of that in C, so we're actively exploring other languages. The only two that made prelim requirements are C++ and Rust, so it absolutely will be one (or both) of those languages.
There are multiple products, so each product may choose C++ or Rust, basically.
I'm doing a deeper dive into Rust for extensions starting next Monday.
 
9:25 PM
@LeviMorrison Thanks! Interesting. Remote sounds like the only options for me, although this last year I've really started appreciating human contact and actually going in to work. Not sure what to do at this point. I'll think about it.
 
@IluTov Understandable. Even though I was working from home before the pandemic, I still leave my house a lot less since the pandemic started and I feel that loss too.
 
C++ would honestly be easier as it's explored territory. Plenty of C++ PHP extensions exist.
That said, I wouldn't expect Rust to be /massively/ hard, just annoying.
I'd probably build some abstractions before actually getting into the specifics of individual projects.
 
9:51 PM
@Girgias Do you want me to add you to my LastPass Family account? :D
 
@MateKocsis I mean sure :') but isn't that a bit of a weird proposition :p
 
@Girgias Yeah, I admit :'D Do you use the same email address with which you commit?
 
Well no as I commit with my php.net address :p
But it's the same one as the one I post on the list
 
ah, ok. I'll send you the invite :)
 
10:42 PM
@Sara Yep. Getting zend_execute_data across all PHP 7 versions is going to be a bit of work, for sure.
@Sara But, there are also pretty big downsides.
Notably, gotta be careful with exceptions. If you want to use newer C++ versions then you can't use the c++ std lib or else there will be link issues.
And, of course, C++ is less memory safe than Rust. I know C++ experts like to downplay it with "You can build safe abstractions in C++ too" but in my own experience Rust catches more issues at compile time than C++ will.
And, I'm C++ experienced and Rust inexperienced, so that's saying something.
 

« first day (3776 days earlier)      last day (1169 days later) »