windows

Scala code to find (and move or remove) duplicate files

My MacBook recently told me I was running out of disk space. I knew that the way I was backing up my iPhone was resulting in me having multiple copies of photos and videos, so I finally decided to fix that problem by getting rid of all of the duplicate copies of those files.

So I wrote a little Scala program to find all the duplicates and move them to another location, where I could check them before deleting them. The short story is that I started with over 28,000 photos and videos, and the code shown below helped me find nearly 5,000 duplicate photos and videos under my ~/Pictures directory that were taking up over 18GB of storage space. (Put another way, deleting those files saved me 18GB of storage.)

Researchers are developing photovoltaic windows that can provide shade and generate electricity

From a fastcodesign.com article: “Researchers at the Lawrence Berkeley National Laboratory are developing smart photovoltaic windows that can shade you and generate electricity at the same time ... This coated glass is about 82% transparent when it’s at room temperature ... At 7% efficiency, they’re still under the minimum of 10% that the team led by Professor Peidong Yang believes would be adequate for commercial purposes. Dou told me that they hope to reach that mark in the next three to five years ... They also face a manufacturing roadblock: the color. Right now, Yang’s team can get the glass to turn orange, red, and brown ... But the main problem, right now, is the glass’s temperature threshold, which they’re working to reduce to 122 degrees Fahrenheit, the typical temperature of glass exposed to a typical sunny midday.”

How to use the Android 7 split screen feature (tutorial)

Android 7 comes with a cool new “split screen” feature where you can look at two apps running at the same time. This little pictorial/tutorial shows how to use this split-screen feature.

Android File Transfer error: Can’t access device storage (solved)

Summary: This article shows a solution to the Android File Transfer app “not working on Mac” problem, where you get the error message, “Can’t access storage device.” (This solution probably also works on Microsoft Windows systems, though I don’t know for sure.)

The Apple Tax - $299 on a new MacBook

Apple's recent announcement that Mac Java support is deprecated inspired me to look at the so-called "Apple Tax" -- the premium price tag you're going to pay when buying an Apple computer, whether that be a MacBook, MacBook Pro, iMac, or Mac Pro instead of a Windows PC.

I just ran a comparison of a base model Apple MacBook versus two different Dell Windows notebook PCs, and the numbers are pretty scary:

The Apple Tax on a base MacBook is a whopping $219 to $299
more than faster, better-equipped Dell notebook models.

iPad backup and restore tutorial

iPad backup/restore FAQ: How do I make an iPad backup? Also, how do I restore an iPad backup?

When it comes to making backups, the iPad is a curious device. The iPad isn't like a traditional computer where you say, "I want to backup folders X, Y, and Z." Curious about Apple's thinking, I've dug into the iPad backup and restore topic, and here's what I've found.