CSS :placeholder-shown

One of the first plugins that would hit a new framework in the early days of JavaScript frameworks was a placeholder plugin, which is why we were so excited when HTML5 brought us the placeholder attribute. Then CSS lovers like me were thrilled when the CSS spec allowed us to style placeholders. One recent problem […]
The post CSS :placeholder-shown appeared first on David Walsh Blog.

Link: https://davidwalsh.name/placeholder-shown

Set Desktop Wallpaper from Command Line on Mac

Whenever I need to accomplish a basic task that typically calls for interacting with a UI, I challenge myself to complete the task from command line. After all, most UIs are simply a mask over basic commands, especially when it comes to the operating system. Suddenly I feel like an automation or systems engineer! One […]
The post Set Desktop Wallpaper from Command Line on Mac appeared first on David Walsh Blog.

Link: https://davidwalsh.name/desktop-wallpaper-command-line

Mac Dark Mode from Command Line

One of the best professional decisions I ever made was switching to a dark text editor theme. I suffered from horrible headaches for years, partially caused by late night coding sessions with blindingly bright computer screens. Recently Apple implemented a dark OS theme which helps my eyes, and thinking in a command line state of […]
The post Mac Dark Mode from Command Line appeared first on David Walsh Blog.

Link: https://davidwalsh.name/mac-dark-mode

React indeterminate

I’ve fallen in love with React.js and JSX over the years; state-based rendering and a logical workflow have made me see the light of this modern framework. That doesn’t mean I don’t sometimes get a bit frustrated that the “simple” things seem harder than they should be. Getting a reference to an element and modifying […]
The post React indeterminate appeared first on David Walsh Blog.

Link: https://davidwalsh.name/react-indeterminate

JavaScript Labels

No matter how long you’ve been a JavaScript developer, there will always be language features that you didn’t know about until you saw them in a fringe piece of code. Your reaction generally is a bit like: One of those features I see developers quizically trying to figure out is JavaScript labels, which allow you […]
The post JavaScript Labels appeared first on David Walsh Blog.

Link: https://davidwalsh.name/javascript-labels

Colorized Brackets for IDE

Coders treat their text editors and IDE’s like fragile beings, and for good reason: we spend a ton of time in them and having our tweaks and extensions can make us incredibly productive for our personal workflows. I always love hearing about what extensions and workflows other developers use to see if I can put […]
The post Colorized Brackets for IDE appeared first on David Walsh Blog.

Link: https://davidwalsh.name/colorized-brackets

Git Checkout at Previous Timeframe

In the past I’ve blogged about checking out branches created on a specific date as well as sorting git branches by date, but one frequent usage of git and dates is checking out a commit at a given time in the past. For example, I often say “Weird, this feature was working a month ago” […]
The post Git Checkout at Previous Timeframe appeared first on David Walsh Blog.

Link: https://davidwalsh.name/git-checkout-at-previous-timeframe

How to Change the WordPress Media Upload Directory

One thing I’ve always missed about the “old” way of web development was the simplicity of FTP. No deploy scripts, no fuss: simple drag and drop of files and the files are there. I’ve used FTP for assets on this blog for over a decade but I’m finally ready to be lazy enough to want […]
The post How to Change the WordPress Media Upload Directory appeared first on David Walsh Blog.

Link: https://davidwalsh.name/wordpress-upload

How to Send an iMessage From Command Line

As somewhat of a recluse, believe me when I say that text messages, instant messenger, and iMessage have relieved me of loads of anxiety and wasted time with short, meaningless voice chat. It’s been a decade since these communication types have become popular so we’ve moved on from appreciate these technologies to trying to optimize […]
The post How to Send an iMessage From Command Line appeared first on David Walsh Blog.

Link: https://davidwalsh.name/how-to-send-an-imessage-from-command-line

Nested Destructuring

Destructuring in JavaScript can initially feel confusing but the truth is that destructuring can make your code a bit more logical and straight forward. Destructuring does look a bit more complex when you’re looking for a property several objects deep, so let’s have a look at how to do that! Simple destructuring looks as follows: […]
The post Nested Destructuring appeared first on David Walsh Blog.

Link: https://davidwalsh.name/nested-destructuring