Search
CSS :autofill
22.9.2022
Autofilling HTML input elements is a frequent user action that can drastically improve user experience. Hell, we all autofill for our passwords and address information. But what control do we have when input elements have been autofilled? To add custom CSS styles to inputs whose contents have been...
CSS :out-of-range
22.8.2022
One aspect of web development I’ve always loathed was working with forms. Form elements have been traditionally difficult to style due to OS and browser differences, and validation can be a nightmare. Luckily the native HTML APIs added methods for improving the form validation situation. With...
git Force Push
19.8.2022
Rebasing is a frequent task for anyone using git. We sometimes use rebasing to branch our code from the last changes or even just to drop commits from a branch. Oftentimes when trying to push after a rebase, you’ll see something like the following: hint: Updates were rejected because the...
How to Reverse an Animated GIF
23.6.2022
Modifying visual media via code has always been a fascination of mine. Probably because I’m not a designer and I tend to stick to what I’m good at. One visual effect I love is seeing video reversed — it provides a sometimes hilarious perspective on a given event. Take this...
CSS :optional
22.5.2022
A decade ago HTML and CSS added the ability to, at least signal, validation of form fields. The required attribute helped inform users which fields were required, while pattern allowed developers to provide a regular expression to match against an <input>‘s value. Targeting required...
How to protect yourself from the recent spate of 'crypto muggings'
13.5.2022
Cointelegraph spoke with security experts who shared tips on how to keep crypto safe after a slew of robberies in the UK successfully stole thousands worth of crypto from everyday holders
Get a Random Array Item with JavaScript
9.5.2022
JavaScript Arrays are probably my favorite primitive in JavaScript. You can do all sorts of awesome things with arrays: get unique values, clone them, empty them, etc. What about getting a random value from an array? To get a random item from an array, you can employ Math.random: const arr =...
Input valueAsNumber
5.4.2022
Every once in a while I learn about a JavaScript property that I wish I had known about years earlier — valueAsNumber is one of them. The valueAsNumber provides the value of an input[type=number] as a Number type, instead of the traditional string representation when you get the value:...
Immediately Executing setInterval with JavaScript
14.1.2022
Employing setInterval for condition polling has really been useful over the years. Whether polling on the client or server sides, being reactive to specific conditions helps to improve user experience. One task I recently needed to complete required that my setInterval immediately execute and then...
JavaScript S
27.12.2021
Replacing a substring of text within a larger string has always been misleading in JavaScript. I wrote Replace All Occurrences of a String in JavaScript years ago and it’s still one of my most read articles. The confusion lies in that replace only replaces the first occurrence of a substring...
Array.prototype.at
8.11.2021
Working with arrays is an essential skill in any programming language, especially JavaScript, as we continue to rely on external data APIs. JavaScript has added methods like find and `findIndex recently, but one syntax I love from languages like Python is retrieving values by negative indexes. When...
Mark Cuban and Voyager CEO Advise How to Get Into Crypto, Offer Tips for New Investors
1.11.2021
Shark Tank star and the owner of the NBA team Dallas Mavericks, Mark Cuban, and the CEO of crypto trading platform Voyager have given some advice to people thinking of starting to invest in cryptocurrencies. “You don’t have to spend a lot of money in order to learn. It’s...
Command Line trash
24.10.2021
One of the first commands you learn when experimenting with command line is rm, the utility for deleting files and directories. Deletion is a core computer UI operation but operating systems use a “Trash” paradigm, where files are stored before truly deleted. With the rm utility...
Terminate Process on a Port from Command Line
10.10.2021
Once a week I have to deal with a zombie process or try to start a process that’s already running on its designated port. In most cases I use macOS’s Activity Monitor to kill the process, which is time-consuming. What if we could just kill a process on a given port from command line?...
CSS accent-color
4.10.2021
For better or worse, form fields have been somewhat difficult to style with CSS. Form control display is dependent upon device, operating system, and browser, so you can imagine the difficulty in making styling easy. We have slowly been given some controls over form control display, as evidenced...
How to Create a UUID in JavaScript
30.9.2021
The UUID identifier has been used in programming since the days a baby-faced David Walsh became a professional software engineer. My first exposure to UUIDs was via a ColdFusion app I inherited and … the less we say about that the better. In any event, I was recently surprised to see that...
Bitcoin hits $45K, TWTR stock price rises 3.8% after BTC tipping comes to Twitter
24.9.2021
Twitter's stock feels the benefit of the "orange pill" as surging stocks add to positive tailwinds for Bitcoin
Twitter Launches Bitcoin Tipping Feature, Explores NFT Authentication
24.9.2021
Twitter has begun rolling out “Tips,” a feature that allows users to send bitcoin or cash tips. The rollout begins with iOS users with Android coming soon. The company is also planning support for non-fungible token (NFT) authentication. Twitter Rolls Out ‘Tips’ With...
AggregateError
17.9.2021
One of the big themes of the web these days is concurrency, which leads to accomplishing tasks asynchronously. In doing so, the possibility of multiple errors can occur. Instead of providing a generic error, optimally you’d provide a wealth of error information. TheAggregateError error lets...
Twitter Rolling Out Bitcoin Tipping Feature, Latest Code Update Suggests
1.9.2021
Twitter is reportedly testing the option of tipping with bitcoin as part of its “Tip Jar” feature. This followed the company’s CEO, Jack Dorsey, stating that bitcoin is a major part of Twitter’s future, hinting that the cryptocurrency will be part of several upcoming...