Boring Sitemaps

Submitted by John on Sun, 09/08/2019 - 18:46

A boy laying on the bed, looking at the cameraI feel bad when I spend a lot of time on this site that makes things better for me to administer the site, or SEO or whatever, but ultimately isn't making new posts. 

But that's what happened today!

Ah, I will make a sitemap. Research what I need to do to make that happen on Drupal. Pick the right module. Try to install the module using Composer, since I just got the site set up with Composer. 

Fails with an out of memory error. Whaaaaat? I thought I had a swap partition. I do have a swap partition!?

Turns out Composer needs a lot of RAM. Lots and tons and gobs. Okay how do I add more swap space to Linux again?

Finally, got the module installed, oh I have to adjust the permissions. Oh, more permissions and then by the time I get done making the sitemap, I'm like... eh? I guess it worked?

I guess it was fun going through all my old content and seeing what was there. 


Introducing very hot peppers to a very young child

Submitted by John on Sat, 09/07/2019 - 08:34

I introduced my daughter to Thai chili peppers last night. She's one and a half.

Let me explain.

Couple of days ago I made the Hawaiian Chili Pepper Water. Yesterday I used the remaining Thai and cayenne chili peppers from the garden to start a basic fermented pepper mash. I seeded the peppers and chopped them up, and this is where our story begins.

Although maybe this story should begin two weeks ago, with the sriracha. I have some amazing Vermont Maple Sriracha sauce that I got as a gift from my sister. One of the boys has taken a liking to tasting a tiny amount of it at a time (the rest of the family won't touch it). I have the sriracha out and I am giving it to the child. In comes baby sister.

"want some."
"No honey it's very spicy. It's hot OW!"
"hot ow!"
"Yes. Hot ow!"
"want some! some! hot ow! SOME!"

Eventually I gave in and gave her a teeny amount. She wound up loving it, going from a drop to pea sized to nearly a quarter teaspoon at a time with no problem. Never cried. I had to cut her off, because I was worried about any potential digestive effects if she kept it up.

Back to the present day. Now she knows what the word "spicy" means. She sees the pretty red pepper mash. It's the same color as the sriracha.

"picy. picy. want some picy!"
"Honey. This is very very hot ow spicy."
"picy. PICY!! want some!"

Eventually I gave in and got a piece of pepper about the size of a grain of sand and put that on her tongue.

[a pause]

Massive amounts of crying and tears. It was way hotter than she was anticipating. We are all out of milk because mommy is at the store buying milk. So I gave her cold water in a kids cup. 

She drinks down most of the water. Takes a couple deep breaths with red eyes, and looks up, looks me right in the eye.

"picy. want picy!"

She has another little piece of picy. I have a piece of picy. Four to five rounds of picy and three cups of water later, I ask her if she wants more. She thinks about it a moment and replies

"all done picy."

And that's the story of how my 1 and a half year old daughter and I ate some very hot chili peppers together.


How to get the email of the currently logged in Salesforce user

Submitted by John on Fri, 09/06/2019 - 16:16

Earlier today I spent quite a bit of time trying to figure out how to get the email of the currently logged in Salesforce user. Specifically, using the SalesforceSDK in iOS, using Objective-C.

You'd think this would be easy. Just look at the documentation! Alas! Salesforce has not decided to invest much into the consistency and comprehensiveness of their documentation.

Okay. Google! Surely Google will have the answer!

Alas again! There are a zillion Salesforce frameworks out there! React, Swift, Objective-C, Android/Java, something called "Apex", whatever that is. All of these platforms do the same things, but in a slightly different way. So for a generic query, like "how do I get the email of the currently logged in user in Salesforce?" you'll have to wait

So add "Objective-C" to the query!

The final Alas! is that Salesforce has changed how to do this half a dozen times over the past 3-5 years. So you'll find solutions on how to do it with SFAccountManager, how to do it with SFAuthenticationManager, etc. This was a huge rabbit hole.

Eventually I found a method using SFUserAccountManager... although it too was deprecated! At least there were some Xcode hints on what the correct answer might look like however.

Finally, here's what works in Objective-C using MobileSDK 7.2:

[[SFUserAccountManager sharedInstance] userAccountForUserIdentity:[[SFUserAccountManager sharedInstance] currentUserIdentity]].idData.email

The email is in the idData object. There are a number of other good properties in there, like lastName, firstName, langauge, locale, all of your user info is going to be there.

Hope this helps!

Hawaiian Chili Pepper Water

Submitted by John on Thu, 09/05/2019 - 22:46

A jar of hot Thai chilis in water, next to another chili sitting on the counterInspired by It's Alive with Brad Leone I picked up a copy of Firey Ferments from the library. The book is all about making fermented hot sauces of all kinds (and other spicy ferments, like horseradish and mustard).

I tried looking for a the recipe so I could just link it but alas there are a zillion variations of this, most of which are not fermented. This is pretty much the version from the book:

Hawaiian Chili Pepper Water

  • 4-10 small hot peppers (I used 10 peppers, which were all varieties of Thai hot peppers, although some might have been cayenne)
  • 1 clove garlic
  • 2 slices ginger
  • 1 pint mason jar
  • 2 cups unchlorinated water, plus 1 tbsp salt (combine to make a brine)
  • 1 tablespoon of rice vinegar 

Peel garlic and ginger, remove stem end of peppers. Crush all ingredients with the back of a knife, and place in mason jar. Fill jar with brine, leaving 1 to 1 and a 1/2 inches of headspace. Screw jar lid tightly (no need to burp the ferment). Ferment for 1-2 weeks, until cloudy and it has a pickle like acidity. Add the rice vinegar. Keeps in the refrigerator for up to one year.

I just put it up tonight so I have no idea how it's going to turn out. It's quite a strong brine, but even after 5 minutes of it sitting there I could taste the freshness of the peppers in the water. I'm feeling pretty good about this one!


Pictures are back!

Submitted by John on Mon, 09/02/2019 - 02:32

A boy wearing a life jacket smiling at a fish he just caught

Finally got images working on the weblog again. The answer was, somehow the permissions for the insert module were wrong, and somehow it was disabled for the weblog entry (on the Manage Form Display page).

(Also, somehow my image style for all existing weblog images is messed up. So I have to find all existing weblog images and re-add them, individually, to every entry. Ah well.)

Doctor Who?

Submitted by John on Sat, 08/31/2019 - 22:50

I need a post dated in the future to see if my new "filter by 'authored on' field" condition works for the view powering this blog.

It works! Sort of! I think I might tweak it a little later on but for now I'll leave it alone. I should check the rss feed while I am at it.... and it works as expected as well.

Figuring out the scale on a fretless instrument

Submitted by John on Fri, 08/30/2019 - 07:40

Yesterday I was at the gas station and I spotted a guy with what looked like a cigar box guitar headstock coming up out of his backpack. I walked up to him and started a conversation, and sure enough it was a homemade guitar (not a cigar box, but he used a box that was about the same size.)

[Just the headstock on this thing was so cool. He used eye screws for tuners; it was pretty badass.]

That got me thinking about the cigar box guitar I made several years ago. Sadly it perished in the basement flood, but I did get a few videos of some friends playing it up on my Youtube channel. Here's one of my friend Ian giving a demonstration on finding the full scale on the CBG... but it applies to any fretless instrument, really.

This CBG was tuned to open D tuning, if I recall correctly. D-A-D, I think, with the low E dropping down to a D, then A, then D. Simple and easy to set up with any regular set of guitar strings.


Minneapolis/St. Paul Mini Maker Faire 2018!

Submitted by John on Thu, 08/29/2019 - 18:48

My website was down for a while, and as a result there are a few things I never got a chance to post over here. One of them was my writeup for the 2018 Minneapolis Mini Maker Faire!

In 2018, my project was a deconstructed 16-step sequencer, based on a CD4029. By deconstructed, I mean I designed a 16-step sequencer that was split up into component parts. Each part would then have a little visualizer of what was going on inside that part. So the clock would have a single blinking LED, then the multiplexers would have a couple different visualizers based on what the sequencer was doing at the moment, and so on.

Well of course designing and debugging a number of new analog and digital circuits, plus a half dozen other crazy ideas I tried to tack on to it during the development process, wound up being extremely ambitious. I had a vision that was much bigger than I was able to pull off. But ultimately, with a little help from a friend, I did get the sequencer working.

Unfortunately it rained pretty badly that day so I think overall fair attendance was down, but I still got quite a few people stopping by. The kids liked the sequencer because they could crank the clock rate up and make all kinds of weird beeps and boops. But it was obvious when an actual musician stopped by because they'd dial in a beat and get people dancing in the space of about 15-20 seconds.

I recorded the video just before taking down the booth. I was totally exhausted recording this, and then I realized, while I was making the video, once I got to the circuit itself there was no way I had the intellectual capacity to explain what was going on. This lead to the immortal words:

It's a circuit
There's parts
I don't know how to explain it

Overall, it was great, I still have the sequencer (awaiting repairs) in my living room. The voltage controlled oscillator I used in this project is the same VCO I used in the keyboard synth I made for the 2017 Maker Faire.

And we're back!

Submitted by John on Wed, 08/28/2019 - 06:59

Whew, my website was so messed up I don't even.

In the process of bringing it back online I've made some changes:

  • When I upgraded to Drupal 8, my theme that I've had for years never made the upgrade. When I did the D7->D8 upgrade, I didn't have time to spend learning about themes and picking new ones and everything else. I still don't have time to deal with this. If I wait around until I have time to make it look perfect I'll never have a website. So it looks like a mess, that's okay, we'll get through this together.
  • Some of the image styles are not being automatically generated. When this happens, the pictures don't show up. I spent 3 days trying to fix this before I finally said "ah heck with it" and flipped the switch to turn the site back on. Again, we'll make it through this.
  • I have turned off commenting and new user creation site-wide. The amount of spam this website was getting was truly staggering. At some point in the future I may revisit this decision, but for now its true.

I love all you folks reading this. [heart emoji]