I have had a bitbucket pipeline setup which had been working flawlessly for a year yet it stopped working few days ago Here is the beginning of my bitbucket config image: atlassian/default-image:2 …
PHP with Kafka – rdkafka
Iam dealing with kafka and php, Im beginner the kafka has been set upped correctly on the server, now am on local I have installed: librdkafka.dll on xamp/php and php_rdkafka.dll on xamp/php/ext and i added this on php.ini: extension=php_rdkafka.dll then, i have created a php page contains this code: Answer A…
Second Graph is not showing up chart.js, mysql in php
I can’t figure out why my second graph isn’t showing on web? I am using chart.js and querying data from mysql, and graphing it. I have two functions drawChat1 and drawChart2. drawChart1 is working fine and showing graph but no data is showing for drawChart2. I left a picture for reference. UPDATE:…
Get text value of the last children of PHP DOM-XML takes too long time
This post is somewhat related to this post: Increase performance of PHP DOM-XML. Currently takes too long time . So it might be better to visit that post first before delve into this post I have an array which contains 7000+ value This foreach loop gets text value inside <mrk> tags in a given XML file I…
PHPUnit – suffix argument ignored in directory tag under testsuite
I recently realized that I cannot run all my phpunit tests at once unless I use the “php artisan test”, and I don’t understand why. I would use the other option but I can’t do coverage with that. I assume it’s somehow related to my configuration file being wrong because of a synt…
how to make Carbon null in laravel?
I’m making a table in Laravel and I want my “besttime” to be a nullable but it’s returning the current time if I keep it empty. (I’m using carbon because I want the H:i format without the seconds) here’s what my input looks like Answer I will suggest you to add mutators in …
Google Cloud Platform – Create instance with IPv4
I’ve using Google Cloud API and I’ve created instance but without IPv4. I need instance with IPv4. Can anyone help me to config AccessConfig? I think I missed something like this: Can anyone help me? Source: https://github.com/googleapis/google-cloud-php/tree/master/Compute/src/V1 And: https://git…
User’s cant upload images on published website
I have a website which you can upload pictures and see them. I was uploading and gettin pictures with no problem on localhost but after publishing with freewebhostingarea i get these errors. Warning: move_uploaded_file(img/pexels-garvin-st-villier-3874337.jpg): failed to open stream: Permission denied in /hom…
PHP change file extension in HTML as plaintext
I want to change file extension in HTML code on PHP output. Probably with regex and this is something I really cannot handle.. …some code…<img data-src=’https://static.example.com/gallery/image.jpg’>…some code… should be changed to …some code…<img data-…
Cluster PHP array
Let’s say I have an array of items with each item a value. I’d like to create a new array where the items are clustered by their relative distance to each other. When an item has a distance of one to another item, they belong to each other. This will create an output of overlapping arrays. What I …