• Air Freshener and Vacuums. That’s Basically How This N.J. Landfill Is Cleaning Up Its Stench. | NJ.com

    I think this explains why the stink is getting better!


  • Paradigm PDR subwoofer repair

    TL;DR, if your paradigm PDR-10 isn’t powering on automatically, check the fuse. It can be easily accessed by removing the back panel of the subwoofer.

    Sunday morning and I had the house to myself for a few hours so decided to listen to my favorite recording of Beethoven’s 5th Symphony. Firing up the 3rd and 4th movements really loud always serves to restore my faith in humanity. 

    paradigm pdr 10

    Anyway, a few bars into the 3rd movement and I knew something was up with my hifi. My Vandersteen’s sounded a bit thin and I noticed that my subwoofer power light wasn’t on. The paradigm pdr-10 that I have is not a great subwoofer but the vandersteens towers that I have are such that they only need a tiny bit of reinforcement in the very bottom end so it works for me. It is supposed to power on automatically once it detects a signal from the receiver but for some reason it wasn’t powering on and I couldn’t get the light on the front to come on. 

    I hit pause on the symphony and brought the subwoofer over to my kitchen table where a few screws later I determined that a blown fuse was likely my problem. Unfortunately this was not an easy fuse to source. It is a 1 1/2 amp time delay fuse. My local hardware store, which has EVERYTHING didn’t have it but they did test the fuse I brought in and confirmed it was blown so I knew I was on the right track.

    IMG 0384

     

    Ultimately I purchased the replacement part from Amazon and finally got around to hearing the 4th movement in all of its bottom-heavy beauty. 

    This is the fuse you want to order:

    IMG 0385


  • Amazon Dash button to call an Applescript

    The other day Amazon put several of their Amazon Dash buttons on sale for $1.99. I picked up a few.

    The first project I tackled was to get a Dash button to let everyone in the house know that the dog has been fed. This was pretty easy. 

    • Someone feeds the dog and presses the Dash button on the dog food bin
    • a computer on my network (a MacBook Air in my stereo cabinet) running Dasher listens for the Dash button to be pressed
    • that computer uses some java code to call a pre-defined IFTTT webhooks/Maker URL
    • that triggers a text message to everyone in the family that the dog has been fed

    There are step by step instructions for doing much of this in this article. It is surprisingly easy and relies upon the Dasher project code

    As I started looking at the Dasher code I realized that it also had a hook for ExecFile and that could be used to call a script/program etc instead of just calling a URL. Super!

    Using an Amazon Dash Button to Play a Spotify Playlist

    Most of the dash button hacks that people have documented rely on IFTTT. While IFTTT is no doubt super useful, I needed a bit more granularity in what I wanted my buttons to do and wanted to be able to call something more robust like a python or AppleScript file when the button was pressed. As a starter project, I wrote an AppleScript that checks the current time of day and then launches a playlist (and sets the volume) for that time of day. Unfortunately I could not get Dasher to work with the AppleScript.

    I tried:

    • Saving the script as a compiled application and calling it in the command section, this just errored out and didn’t give me any clues
    • Then I wrapped the AppleScript in a shell script calling it with osascript, that errored out with a (-600) “application isn’t running” error which told me that at least the script was getting launched but wouldn’t run right
    • Then I realized that the process calling the shell script was running as root and as such the AppleScript was being called from root.
    • At first I tried all sorts of setuid BS on the shell script but that didn’t work
    • Then in an aha! moment I changed the shell script from ‘osascript /Users/jimwillis/bin/scripts/spotify_launch.scpt” to:
      • sudo -u jimwillis osascript /Users/jimwillis/bin/scripts/spotify_launch.scpt
    • Voila! It worked like a champ, I just needed to make sure that the AppleScript was being called/run as me, not root!

    Calling an AppleScript from Dasher

    So the key here is:

    Setup Dasher to call a shell script in the dasher config.json file, like this:

    {
    "name": “Spotify-button",
    "address": "78:E1:03:C5:D8:AF",
    "cmd": "/Users/jimwillis/bin/scripts/spotify.sh",
    "debug": false
    }

    Then, make sure that the AppleScript is running as you, not root by calling osascript with sudo -u {yourUserName}, so the shell script I’m calling is just a one-liner that looks like:

    sudo -u jimwillis osascript /Users/jimwillis/bin/scripts/spotify_launch.scpt

    Have fun!!  Huge thanks to John Maddox for writing Dasher and Jeff MacDonald for the great HowTo


  • Charlie Parr – Jaybird

    NewImage

    I like the hypnotic quality of the instrumental (National resonator guitar) that leads up to the very short lyric part (which is great in its own right). Feels like a combination of atmospheric and folk at the same time. Not that they’re mutually exclusive but listen and you’ll see what I mean.

    Here’s a live performance of jaybird on YouTube

    If you are a dog person, you will almost certainly dig this track, Dog, off of his more recent release… a soul is a soul is a soul is a soul.


  • Old School Mac

    Desktop

    Spent a lot of time yesterday waiting for sql inserts to load and thought, hmm let me change my desktop background image. From there it was all down hill. Rabbit hole after rabbit hole, looking for vintage Mac icons. I even resucitated DragThing, forgot what a great application it is. Anyway, back to work.


  • Send txt and SMS messages from your Mac’s iMessage app

    [Note/Update: now that Apple has finally linked all the iMessage backend in iCloud you don’t need to jump through these hoops anymore. Just do this instead.]

    Finally figured out how to make iMessage on my MacBook cooperate with a group text thread that includes non-iphone or Android users. This assumes that you have an iCloud account and you have an iPhone and want to send text messages to people who are not apple people. This solution allows you to send iMessages from your mac desktop to individual Android users or hybrid groups that include non-Apple users.

     

    Settings->Messages enable Text Message Forwarding.
    1. Make sure you are logged into the same iCloud account on your Mac (go to System Preferences->iCloud) and on your iPhone (Settings, click your username at the top of the Settings list and go to iCloud). You likely are logged in as the same user but just sanity check this.
    2. on your iPhone go to Settings->Messages and select “Text Message Forwarding”
    3. Select your mac desktop from the list. Once you do, your iMessage application on your Mac desktop will display a string of numbers that you need to type into your iPhone to link up your iPhone and your iMessage app on your desktop.

    Once I completed these steps I was able to send txt and iMessage messages from my desktop.


  • locking down iPad for kids/special needs

    [Note: combine these instructions below for how to lock down AirPlay on an iPad with an app called Volume Sanity and peace will descend upon your house!]

    We use Airplay for music throughout the many rooms and audio systems in our house. Our youngest son likes to watch YouTube videos of buses and trucks all day long. In doing so he fiddles around with the settings a lot on his iPad and this inevitably leads to him broadcasting the trucks/busses audio to one of our home’s HiFi’s. This sucks. Especially early in the morning when you awake to the sound of heavy equipment roaring through a not insubstantial sub-woofer in the living room.

    Besides the transmission of Airplay audio from his iPad to our home audio, no matter what I do to lock down his iPad under “Restrictions” he’s always finding ways to add events to our Family Calendar and albums full of no pictures to our family shared photo albums.

    I wanted to lock down his iPad and disable AirPlay entirely. This turned out to be WAAYYYY more difficult that I thought. After a bit of a rabbit hole I ended up discovering an enterprise deployment tool called Apple Configurator 2. This tool is typically used by large businesses to roll out iPhone or iPads to their employees.

    But it also does a really good job at locking down the iPad for our son. Note that following these steps requires wiping out the iPad entirely and starting from scratch so that it can be prepared as a “Supervised” drive. The process is tedious though. If you’ve used Active Directory or any other enterprise profile-type tool you can figure out. Here are some notes though.

    Apple Configurator 2 to lock down iPad for child

    • download the app from the App Store onto your mac
    • launch the app and go to “Preferences”
      • create a new organization (i just use our family last name)
      • IMPORTANT: Skip enrolling in the Device Enrollment Program
    • ERASE THE iPAD:  Plug in the iPad and click “Prepare”
      • select “Manual Configuration”
      • check Supervise Devices (you can only apply restrictive Profiles to supervised devices)
      • I checked “Allow devices to pair with other computers.” your needs may vary.
      • on the next screen select “Do Not Enroll in MDM”
      • The rest of the screens are pretty self explanatory
    • Once the device is prepared and appears as a “Supervised” device
      • click the App button to install the apps you want on the iPad
      • you will need to jump through some hoops to install apps once you apply the restrictive profile so pay attention and install all the apps you want the first time to save yourself some grief.
    • Go to File, New Profile
      • Fill out the General section
      • Fill out the Restrictions section (i mostly unchecked EVERYTHING on this tab
      • I also went to the AirPlay section and added a fake MAC address to the whitelist section, ostensibly only allowing my son’s iPad to connect to a device that doesn’t exist. I used for the MAC 00:00:00:00:00:00
      • save the profile with a name like “restricted profile”
    • click the green “add +” button in the toolbar and add that profile to the iPad.
    • You should be all set at this point with an iPad that has working apps and has whatever restrictions you set in the profile

     

    two notes

    1. if you want to install apps after you do this but have disabled the installation of apps in the restricted profile, simply create a new profile that has no restrictions, save it as “unrestricted profile.” Plug in the iPad, delete the restricted profile from it and apply the unrestricted one. Install the apps and then put the restricted profile back on the devices.
    2. I tweaked the settings in the profile multiple times and just get removing and re-applying it until i got it right.

     


  • mac spotlight can’t find applications?

    create a shell script with the following lines:

     

    sudo mdutil -a -i off

    sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

    sudo mdutil -a -i on


  • The Great $100 Home Audio Project*

     

    (*Actually only  $70 if you already have an amp/receiver to plug into).

    We’ve been in our house for almost 10 years and I still haven’t found a good way to take advantage conveniently of the speakers that were built into our Master Bedroom ceiling. The speakers feed into a selector box in the basement which is powered by an audio system in our living room.

    The problem with this setup is if I lay in bed an put on some music via the central receiver, the music could also end up playing in the kitchen or living room or outside. At which point I need to  head into the basement to fix the speaker selection.

    Also, the speakers have an in-wall volume control. And let’s face it, if you have speakers in your bedroom you mostly want a way to play music while laying in bed and not have to get up to dial in the volume from the wall.

    So I’ve been thinking of ways to untie the bedroom speakers from the whole house audio system’s selector box in the basement. And I wanted to do so in a way that would not require that I dump a whole lot of money into new equipment.

    Other requirements were:

    • Control music selection and volume from iPhone
    • Have locally stored music available via connection to networked drive
    • Play Spotify playlists
    • Play from my iPhone via Airplay/Spotify connect (so that if I’m listening to something on my phone when I get back from a bike ride I can just send that audio stream to the bedroom speakers when I step into the shower).

    Raspberry Pi 3

    For Christmas I bought one of my sons a Raspberry Pi and also picked up one for myself. It seemed like it could play a pretty key role in my bedroom audio solution. This kit seemed like the best deal:

    Amazon: $52 Raspberry Pi 3 starter kit

    I installed Volumio on the RPi and am really impressed by the feature set (Spotify, airplay, networked drives, etc.). However the on-board audio quality of the Raspberry Pi is really crappy.

    After a bit of experimenting I noted that the Pi sounded great when I hooked up my $200 USB DAC to the Pi but that was only a temporary solution as I need that DAC for my living room stereo. Thanks to China and eBay, I picked up this DAC that was built for Raspberry Pi for $18. It took about 10 days to arrive from China and it sounds great (I would be hard pressed to hear the difference between it and my more expensive USB DAC).

    EBAY:  $18 DAC+ HIFI DAC Audio Sound Card Module I2S interface for Raspberry pi 3 2 B B+

    The DAC component looks complicated but it plugs right into the Raspberry Pi and has two RCA jacks for plugging into an amp.

    It took a few minutes of tinkering to get the DAC working with Volumio but once I got that sorted I just needed an amplifier.

    Again, I didn’t want to break the bank and as I was only powering two small in-ceiling speakers I didn’t need a whole lot of power, just something with enough juice to sound nice. I found this highly-recommended little guy on Amazon:

    Amazon:  $26 Lepy Amp

    This little amp sounds GREAT! Now I can lay in bed at night and queue up some music, adjust the volume, set a sleep timer — all without worrying that my Mozart or Miles is blaring through the backyard speakers.

    For under $100 I am very pleased with this solution:

    • It’s compact – fits in a small shoebox.
    • extensible – new features are added to Volumio regularly
    • Cheap
    • Fun to build

  • Farmer’s Market Challenge!

    The Red Bank farmer’s market is building up to its annual colorful crescendo right about now. The variety of fruit and vegetables available is pretty good and the prices are reasonable.

    The popular stuff abounds — tomatoes, zucchini, peppers — but you can also find some a few examples of strange-looking, less-widely available varieties of eggplant and even daikon and other veggies that you don’t often see available fresh and local at the grocery store.

    In past years my trips to the farmer’s market with my youngest son in tow were too frenetic for me to really spend much time shopping so I’d end up spending about $10 on produce that I would be using in the next couple of meals. 

    As my son’s patience improves (that, and I bring a backpacking chair so he can sit and watch for trains, brilliant!), this summer I’ve got more time to walk around at the farmer’s market.

    With the luxury of time to shop, I’ve constructed a bit of a challenge for myself while shopping: I bring $30 cash with me and make myself spend the entire amount on produce. I just buy whatever looks good or interesting and stuff that isn’t already growing in my garden. Then my challenge is to figure out something to make with it during the week.

    So as I walk around the market on Sundays, I still don’t know what i’ll be making for dinner for the next few nights. Even as I leave with my Xtracycle bags or my car’s backseat fully loaded with vegetables (it is amazing how much produce $30 gets you!), i have no idea what I am going to do with it.

    I just make sure not to waste it.  So far it has usually all been used up by Wednesday night, which is fine since Sea Bright has a farmer’s market on Thursday if i need to restock.

    Over the past few weeks we’ve done pretty well and have had a several amazing dinners that came together as a result of random stuff in the produce drawer:

    • grilled fingerling eggplants and sliced tomato with shaved parmesan with grilled sausage
    • beets/balsamic vinaigrette with goat cheese and basil
    • breaded and fried zucchini served at room temp with fresh moz and sliced tomatoes and basil from the garden.
    • All amazing stuff that i probably wouldn’t have thought to make were the produce not staring up at me from the produce drawer of the fridge.

    A side effect of all of this is that the sheer volume of vegetables we are eating in a given week is just massive right now (and, btw, our grocery bill is a bit lower as we seem to fill up faster on veg and serve it with smaller portions of cheese/meat/protein).

    So the first part of the challenge for me was just making myself spend some percentage of our weekly grocery bill on produce from the farmers market. ($30 works out to roughly 12% of our weekly grocery bill for our family of four, in case you’re interested.)

    The second part of the challenge occurred to me as I walked around last weekend — namely, to try to buy with that budget the widest possible variety of produce I can e.g. as many different items as possible.

    SO instead of blowing $30 on the usual suspects (eggplant, zucchini, spinach), i’m buying smaller quantities of those items and more of the less common items like different varieties of radishes or fresh garlic or squashes.

    Now, this is purely non-scientific, gut-level intuition speaking here but maybe i’ll try to find some research to back it up: It seems to me that eating a wide variety of produce has got to be a good thing.

    Good for us as eaters because, well, variety tastes better and i wouldn’t be surprised if there is some relationship between the diversity of vegetable intake and gut microbiota diversity.

    But also good for the planet because — as plays out each summer in my garden where some tomatoes get diseased and others don’t — diversity of crops is key to healthy farming.

    When i get home and lay the bounty out on my kitchen table my head immediately starts to combine the stuff I’ve bought with items out of my garden and cheese and meat that I can buy downtown.

    It’s a blast and i’ve really enjoyed make dinner for the past few weeks as a result.

    Also, and i’ll try to detail this at some point, maybe try taking some fraction of what you’ve bought and just ferment it right away. I’ve got some killer red cabbage and hot pepper kraut bubbling away right now from my trip to the farmers market a couple of weeks ago.

    Last week I supplemented my garden’s anemic kirby cucumber output with 2 pounds (for under $3!!!!) of kirby cukes from the market and now have an enormous crock of cukes getting pickled on my counter.

    Anyway, to recap my two-part challenge:
    • Pick an amount of money (roughly 10% of our weekly grocery bill in our case) and spend it on produce at the farmers market
    • try to buy the widest possible variety of items you can, maximize diversity
    • (implied third part of the challenge): FIGURE OUT SOME AWESOME STUFF TO MAKE WITH IT ALL!


Current Spins

Top Albums

Check out my album Set It All Down on your favorite streaming service.


Posts Worth Reading:


Letterboxd


Reading Notes

  • Who profits from our constant state of dissatisfaction? The answer, of course, is painfully obvious. Every industry that sells a solution to a problem you […]
  • the shifts have been in place for awhile. A certain kind of book—say those reviewed in the NYRB—will become like opera, or theater, or ballet, […]
  • • No more struggle: “Whatever arises, train again and again in seeing it for what it is. The innermost essence of mind is without bias. […]
  • The real problem, in my mind, isn’t in the nature of this particular Venture-Capital operation. Because the whole raison-d’etre of Venture Capital is to make […]
  • . The EU invokes a mechanism called the precautionary principle in cases where an innovation, such as GMOs, has not yet been sufficiently researched for […]

Saved Links

RSS Error: A feed could not be found at `https://links.jimwillis.org/feed/atom?`; the status code is `404` and content-type is `text/html; charset=utf-8`