Find Empty Files and Directories from Command Line

If you are anything like me, you like to keep your projects as tight as possible.  By “tight” I mean no lingering, useless files or directories, because bloat is an incredible annoyance and distraction.  And we don’t want distractions, do we? There’s a really easy way to find empty files and directories from the command […]
The post Find Empty Files and Directories from Command Line appeared first on David Walsh Blog.

Link: https://davidwalsh.name/find-empty-files

Better Node.js Console Dumps with console-probe

Writing JavaScript in the Node.js environment has always felt a bit more difficult; probably because browser developer tools have become incredibly powerful, interactive, and visually appealing.  Using console.log on the client side isn’t the best of experiences and obviously isn’t interactive. Though not interactive, I’ve found that console-probe is an improvement over console.log, providing me highlighted […]
The post Better Node.js Console Dumps with console-probe appeared first on David Walsh Blog.

Link: https://davidwalsh.name/console-probe

Faster PR Pulls with Git Aliases

I love the traditional GitHub workflow of receive pull request, pull down pull request to test, and merge the pull request.  GitHub makes the first and the third steps easy but pulling down pull requests from new contributors requires some boilerplate work that annoys me… …namely navigating to their fork and copying the fork address […]
The post Faster PR Pulls with Git Aliases appeared first on David Walsh Blog.

Link: https://davidwalsh.name/pull-down-pr

Create a Password Protected ZIP

Have you ever wanted to put very basic security (a passphrase) on a file?  You can do so if you ZIP the file — let’s have a look at how you can password-protect a ZIP file! Creating a password protected ZIP file from command line is done so via the following command: # zip -er […]
The post Create a Password Protected ZIP appeared first on David Walsh Blog.

Link: https://davidwalsh.name/password-protected-zip

Fix git After High Sierra Upgrade

Every major operating system upgrade is a grand adventure.  No matter the vendor or how vanilla you keep your system:  stuff is going to break.  This was very much the case with git when I upgraded my MacBook Pro to High Sierra. After the upgrade I tried to pull down a git branch and received […]
The post Fix git After High Sierra Upgrade appeared first on David Walsh Blog.

Link: https://davidwalsh.name/fix-git-high-sierra-upgrade

How to checksum on Mac

Many of us see the term checksum and checksum outputs frequently but don’t really take the time to run them — oftentimes we simply trust the file we’ve downloaded is in working order and from the original source.  This past weekend when I was attempting to recover my Bitcoin Cash, however, I wasn’t willing to […]
The post How to checksum on Mac appeared first on David Walsh Blog.

Link: https://davidwalsh.name/mac-checksum

Show Hidden Files in Mac Finder

Setting up a new machine is a great time for me to write blog posts about configuration settings that I’d forgotten to document.  Much of the time I refer back to this post to figure out how I did things like Add Dock Separators and add support for Xbox controllers. One important configuration detail developers […]
The post Show Hidden Files in Mac Finder appeared first on David Walsh Blog.

Link: https://davidwalsh.name/show-hidden-files

Node EADDRINUSE (Address Already in Use) Error

Every once in a while my Macbook Pro freaks out and a process goes rogue.  This oftentimes happens when I’m working on the excellent debugger.html project; I attempt to start the server side of the debugger and suddenly I’m hit with an error that resembles the following, leading to the process not starting from that […]
The post Node EADDRINUSE (Address Already in Use) Error appeared first on David Walsh Blog.

Link: https://davidwalsh.name/node-eaddrinuse

Detect Supported Audio Formats with JavaScript

As streaming becomes our main entertainment source and vendors fight to create the best video format, it’s going to be more and more important that we detect device and browser video support before posting videos on our websites.  We think less about audio but the same principle applies:  detect whether or not a given audio format […]
The post Detect Supported Audio Formats with JavaScript appeared first on David Walsh Blog.

Link: https://davidwalsh.name/detect-supported-audio-formats-javascript

Split Files Into Smaller Files

As fast as internet connections have gotten over the years, it seems the size of files we want to share has grown faster.  Whether it’s archive (ZIP), video, or any other host of potentially large file types, it’s still tricky to put these large files somewhere to download since many storage providers have file size […]
The post Split Files Into Smaller Files appeared first on David Walsh Blog.

Link: https://davidwalsh.name/split-files