Twitter | Search | |
Mior Muhammad Zaki
Rocking on Orchestra Platform, Laravel and Vue.js
13,874
Tweets
419
Following
2,740
Followers
Tweets
Mior Muhammad Zaki retweeted
Scott Williαms Feb 14
Dear API developers, Please please please please do not use 200 OK as your error status. ❤️
Reply Retweet Like
Mior Muhammad Zaki retweeted
Nat Alison Feb 12
In 69% of cases the phras "AI" and "machine learning" can be replaced with the phrase "regex". "We created a regex to do sentiment analysis." "Regex startup Matchly raises $4.6B in new investment round." "Will Regex put you out of a job in the next decade?"
Reply Retweet Like
Mior Muhammad Zaki Feb 13
Replying to @themsaid
Laravel use BufferedOutput when calling a command from another command. But that would cause issue with the new appendRow feature with console table
Reply Retweet Like
Mior Muhammad Zaki Feb 13
Replying to @crynobone
nevermind, found the use case
Reply Retweet Like
Mior Muhammad Zaki Feb 13
There's some limitation with the new implementation. - You can't call command with table from another command (the request to command will use BufferedOutput). - You can't call command with table from a controller.
Reply Retweet Like
Mior Muhammad Zaki Feb 13
looking to get some insight on PendingCommand. Is there a reason why you mock BufferedOutput instead of say ConsoleOutput.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Color scheme media query support for light/dark mode using
Reply Retweet Like
Mior Muhammad Zaki retweeted
Kamal Mustafa Feb 12
It's sad that verifying cert when making TLS connection still an alien concept to many developers. SSL problem? Try to set verify=False (or CURLOPT_SSL_VERIFYHOST, FALSE), it works! And that wrong teaching continue to be passed around.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
Yup, To reduce the latency of blocking I/O (we still need to write to db), we split it to multiple process.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
This is one example using ReactPHP, listen to Redis Pubsub message and run in under Laravel to process each ping and analyst the value to notifications, such as speeding violation.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
ReactPHP with Event Loop handle all the request in the same instance, so you have the full application. But anything that is blocking I/O will be blocking, so you need to be careful with it.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
I would consider Spatie doing a parallel process, while reactphp is based on 3 main features; event loop, promise and stream. Parallel process is executed as a different process, so your booted app instance isn't available (Spatie) does provide an option to boot the app.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
But also I might get confused between threading and async when referring it in PHP.
Reply Retweet Like
Mior Muhammad Zaki Feb 12
Replying to @themsaid @marcelpociot
I done a lot of integration with ReactPHP for Laravel projects and loving it.
Reply Retweet Like
Mior Muhammad Zaki retweeted
Emma Bostian 🐞 Feb 10
When developing UIs, use rem over px for font sizes. This is much more accessible. If a user sets their font size preference to 20px over the default 16px, the font sizes will scale accordingly if rem is used. A 20px header, in contrast, will remain 20 px. Use rem over px! ☺️
Reply Retweet Like
Mior Muhammad Zaki Feb 10
Is there any advantage or disadvantage on using new Table($this->symfonyOutput->section()); instead of new Table($this->symfonyOutput);
Reply Retweet Like
Mior Muhammad Zaki retweeted
NUNO MADURO 🅱 Feb 10
Creating a package, with the name Laravel Mojito, to test blade views in isolation. Here is the public API. 🍹
Reply Retweet Like
Mior Muhammad Zaki Feb 10
Zttp on top of PHP-HTTP, that would be awesome.
Reply Retweet Like
Mior Muhammad Zaki Feb 6
This is also a nice solution, but does lack whereJsonContain (or where with json field) and whereHas (which I guess only possible via marking an exist query) like how solved it. Thank you for sharing.
Reply Retweet Like
Mior Muhammad Zaki Feb 6
Replying to @crynobone
It also means that it is possible to have some artisan commands in the core of Laravel Framework to be accessible outside of Laravel. Imagine using migration commands when you use illuminate/database with SlimPHP framework etc.
Reply Retweet Like