Community Posts

Last Updated: 2024-06-06
Submit a blog

Initializing ZendHQ JobQueue During Application Deployment

May 7, 2024 -

In the past few years, I’ve transitioned from engineering into product management at Zend, and it’s been a hugely rewarding experience to be able to toss ideas over the fence to my own engineering team, and have them do all the fiddly tricky bits of actually implementing them! Besides packaging long-term support versions of PHP, we also are publishing a product called ZendHQ. This is a combination of a PHP extension, and an independent service that PHP instances communicate with to do things like monitoring and queue management. Read more about Initializing ZendHQ JobQueue During Application Deployment

A Quick F# Load Test Script

April 23, 2024 -

A Quick F# Load Test Script Here’s a quick way to hit your api with a lot of requests in parallel using F# . Requirements FsHttp A way to run F# VS Code is helpful with the F# Ionide Extension create a .fsx file in VS Code, highlight all and alt-enter or click the play button Code #r “nuget: FsHttp” open FsHttp [|1..1000|] |> (fun x -> (x, http { GET “https://{your-url}/api/” //AuthorizationBearer "" // add a custom header if you need: this is needed for Azure Functions header “X-Functions-Key” "" body jsonSerialize x } |> Request. Read more about A Quick F# Load Test Script

A Space Heater from a Bitcoin AntMiner

April 22, 2024 -

A Space Heater from a Bitcoin AntMiner In February, 2024, my co-worker sent me a picture of an ASIC S9 AntMiner at the local pawnshop. I couldn’t get the idea out of my head, so I started searching for resources and finally went it bought for $120 (they had it listed for $139.99, but I offered less). Suprisingly the owner did know some things about Bitcoin and had mined Ethereum in the past. Read more about A Space Heater from a Bitcoin AntMiner

Deferring JS Until Script Load

April 9, 2024 -

A common recommendation when using JavaScript is to put your <script> elements at the end of your HTML, including those that reference a JS file on your site. One issue, however, is that if you then have a script that references a function from another script, how do you ensure the other script is loaded already? The problem Let’s say you have the following: <script src="some/other/javascript.js"></script> <script> (function (){ // call a function defined in the other JS file })(); </script> If javascript. Read more about Deferring JS Until Script Load

Why I Like Lifting Weights so Much

April 9, 2024 -

I had a “aha!” moment the other day, and I felt like it was something that was important enough to share. This moment came to me when working out in my home gym, which I then shared with my wife. If you know me, you likely know I enjoy lifting weights. If you did not know that about me, the title of this article likely gave that fact away. I have never really understood why I enjoyed the act of picking up heavy objects repeatedly so much. Read more about Why I Like Lifting Weights so Much

Use .Net CancellationTokens

April 9, 2024 -

Use the CancellationToken in your .Net Applications In .Net, the MVC/API Controller gives a CancellationToken. You should use this and pass it to the HttpClient inside of our Http package. See Recommended patterns for CancellationToken - Developer Support “Long running requests and cancellation Have you ever been on a website where you’ve made a request for a page, and it just sits there, supposedly loading? Eventually you get board and click the “Stop” button, or maybe hammer F5 to reload the page. Read more about Use .Net CancellationTokens

Addressing AWS S3 Sync Folder Issues

April 8, 2024 -

I have used S3 and S3-compatible storage for a long time now, and have used both s3cmd and the AWS CLI tooling to sync, either between buckets or with a local filesystem. It generally "just works". Except that when it doesn’t, it’s really hard to debug. The problem The issue I had recently was that I was creating a "folder" in a bucket for namespacing some specific files. In my case, I was doing this on DigitalOcean Spaces, but over the course of trying to isolate the issue, I also tried on AWS S3, and had the same issue. Read more about Addressing AWS S3 Sync Folder Issues

Software I Use as a Software Developer

March 14, 2024 -

Being a software developer by day, and many nights, I am always trying out new software and interested in what I can use to be the most effective human. In particular I am always on the hunt for software that can help me become a better father, husband, professional, software developer, and lifter. The tools that I use change fairly frequently, but I try to keep the transaction costs of switching to a minimum. Read more about Software I Use as a Software Developer