justinmwright.com

Technical Rants and Life Musings

Discover
Software Development

Helpful Linux/Mac Commands

Cat files to your clipboard Size Info On macOS, you can use the du (disk usage) command. Here are the most common ways: Basic command: The flags mean: Example: This might output something like: 1.2G /Users/yourname/Documents If you want to see the size of each subfolder too: To see just the current directory: Alternative using […]

j 
Software Development

Consider Docker for Python

I am starting to learn Python because every machine learning tutorial these days seems to be focused on using Python. Python is great, but setting it up on a Mac can be a bit challenging since OS X wants to have its own specific version of not only Python but certain Python modules available globally. […]

j 
Software Development

IE10 End-of-Life Countdown

[hoops name=”ie-countdown”] function countdown(targetDate) { var nowMillis = new Date().getTime(); var targetMillis = targetDate.getTime(); var diff = targetMillis – nowMillis; var years = Math.floor(diff / 3.154e+10); var diffMinusYears = diff – (years * 3.154e+10); var months = Math.floor(diff / 2.628e+9) % 12; var diffMinusMonths = diffMinusYears – (months * 2.628e+9); var days = Math.floor(diffMinusMonths / […]

j