Command Line Polling
Here's the basic syntax:
# while ! (command here); do
while ! mysql -uroot; do
The example above performs the
mysql -uroot operation (which will fail until
mysqld is up) every second. Keep in mind the poll operation you run should be as simple as possible, just enough to know that what you want to use is available!
I was inspired when I first saw Addy Osmani's original ShineTime blog post. The hover sheen effect is simple but awesome. When I started my blog redesign, I really wanted to use a sheen effect with my logo. Using two HTML elements and...
One of the most rewarding experiences of my life, both financially and logically, has been buying and managing cryptocurrencies like Bitcoin, Litecoin, Ethereum. Like learning any other new tech, I made rookie mistakes along the way, but learned some best practices along the way. Check out...
Buttons (or links) are usually the elements on our sites that we want to draw a lot of attention to. Unfortunately many times they end up looking the most boring. You don't have to let that happen though! I recently found a...
One of the little known HTML5 APIs is the window.postMessage API.
window.postMessage allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX without the server shims. Let's take a look at how
window.postMessage works and how you...