When developing an e-commerce application, you generally want to avoid overselling. First attempt, creating deadlocks MySQL has 4 transaction isolation levels: SERIALIZABLE, REPEATABLE READ, READ UNCOMMITTED, READ COMMITTED. In the following proof of concept, where we have 50 of the same product in stock, and we run seige to represent concurrent customers buying the same…
“A startup is an organization formed to search for a repeatable and scalable business model.” -Steve Blank If we agree with that definition then: Cut & paste from Intro to Lean Startup (https://www.slideshare.net/slideshow/intro-to-lean-aplp-ss/41009271)
Bash Here are two (of many) options: Install Git for Windows. Git for Windows provides a BASH emulator. Install “Bash On Ubuntu on Windows” Apt / Homebrew Checkout Chocolatey or Scoop. ALT + ` Install EasySwitch. Privacy Install Shut Up 10. Check out BleachBit. Minimum Viable Toolset Start Menu Shortcuts go in: Where is the…
“O&O ShutUp10++” is a free must-have tool to protect your privacy. Every listed setting can be clicked to reveal a full description of what toggling it on/off implies. The actions menu has an easy to use recommended defaults. https://www.oo-software.com/en/shutup10
The wp-admin panel is already password protected in that you are required to login. Sometimes that’s not good enough. This tutorial explains how to add an additional layer of authentication to the login process, essentially blocking wp-login.php requests from annoying bots or other malicious users. Step 1: Create a `/path/to/.htpasswd` file. Step 2: Create a…
Your form will still be slow but the user experience will be better. They will see a progress bar and see status updates in real time. The idea is to refactor something like this: Into this: And this: Before Imagine you have this form somewhere on your corporate intranet. The user clicks submit. They wait,…
When you get a new Macbook Pro with M1 chip you get an old version of Bash. Bash isn’t old. It’s still being maintained. It has millions of Linux and Windows users. Here’s how to put the newest version of Bash back inside your MacOS box. Prerequisite: Install Homebrew. (Install iTerm2 for good measure.) Install…
The WordPress REST API has been available since 4.7. It’s robust, consistent, and nifty to work with. Why? Backend and mobile developers can use other frameworks while still keeping WordPress around for their customers. Frontend developers can build sites using JavaScript without having to touch PHP. Let’s get started! Recommended Tools Troubleshooting Getting Started WordPress API supports…
Getting cwRsync to work with Vagrant on Windows 10 is a pain. This tutorial is for people who have: Reading comprehension 101: cwRsync is a standalone version of rsync for Windows that doesn’t require Cygwin to be installed. I don’t have Cygwin installed because Git For Windows includes Git Bash and this is “good enough.” With a…
pcov is faster, uses less memory, is more accurate than phdbg. Phpdbg Pcov Caveat, only works with PHPUnit 8+… Or does it? How to switch to pcov if you are stuck with PHPUnit 7 If you are doing this: Or this: Simply change to: And you’re done.