I’m saving a few recipes we used this Thanksgiving
Ingredients:
1 cup heavy whipping cream
2 T maple syrup
1 tsp vanilla extract
Put the whipping bowl into the freezer a few hours ahead of time so it’s really cold. When ready to whip, combine cream, maple, and vanilla. Whip — Anya likes to shake it in a jar or use the old-school hand-cranked spinny beater. I prefer a firm peak — when you see peaks and valleys formed as the beater moves through the cream & picking up the beaters leaves behind a little mountain of whipped cream.
But it seems silly to allocate memory just for the delimiter … not a big deal from a resource perspective, and probably using the delimiter variable is more comprehensible in the future … but I’ve always wondered if you couldn’t just use a static string with the join method. Turns out you can —
As we finally managed to get through the Chase IVR only to be told that the expected wait time is ten minutes … in addition to the eight minutes we’ve already spent trying to convince their IVR that we didn’t need to pay our bill or check out balance, I wonder how feasible it would be to drop the caller into the CS rep queue when the call is first answered, let them spend some of their hold time telling the IVR what exactly they need (possibly moving their placeholder to another queue if, say, they seem to want tech support and not general CS), and either deleting the placeholder because the caller’s problem actually got resolved by the computer or adding a “ready to talk” attribute to the placeholder so the call is ready to transfer out to the next available agent. Bummer that I haven’t done IVR call route development in decades because I’d love to prototype that logic and see if it actually works (it’s possible we’d just end up with hundreds of pointers to people who are still navigating the IVR instead of actually reducing wait times).
I’d created a couple of quick code snippets to export Microsoft Stream transcripts & someone asked if you could include a way for users to click on a hyperlink and pop into the video at the right spot for the line in the transcript they clicked. Seemed like a good idea — I’ve searched though my meeting transcript & now I want to see/hear that important part in the original video.
The method I’m using to grab the transcript text actually grabs a LOT of information that’s thrown into an object being called ‘t”:
I was only using t.eventData.text to build my transcript. What do you need in order to create a jump-to-this-timecode URL for a Stream video? I had no idea! Luckily, MS supplied an easy answer — if you share a video, one of the options is to start the video at a specific time. If you pass in “st” (which I assume stands for ‘start time’) and the number of seconds ( (17 * 60) + 39 = 1059, so the 17:39 from my video matches up with 1059 seconds in the st)
We still need the unique ID assigned to the video, but … I’m exporting the transcript from MS’s Stream site, which includes the ID in the URL. So I’m able to use window.location.href to get the URL, then strip everything past the ? … now I’ve got a way to create timecoded links to video content. I just need to glom that into the code I am using to export the transcript.
Question is … how to display it to the user? Clicking on a link for 1059 seconds doesn’t really mean anything. If I were doing this at work, I might pass the number of seconds through a “pretty time” function to convert that number of seconds back into hour:minute:second format so the user clicks on 17:39 … but, as a quick example, this builds hyperlinks with the integer number of seconds as text:
I might also just link the transcript text to the appropriate URL. Then clicking on the text “I want you to remember this” would jump you to the right place in the video where that line occurs:
Smoked using maple wood chips at 200F for about 2 hours, then at 235F for many more hours — until the internal temperature was about 180F. We had it cubano-style with pickles, Swiss cheese, and freshly baked rolls. And quick pickled cabbage on the side.
We want to get a semi-auto 12 gauge shotgun for hunting waterfowl (and maybe deer). I like the box mags, so there are a couple of options we’re considering:
TriStar KRX — cheap gun available at Cabelas. Fixed stock.
Panzer KMR — A little more expensive. Can replace stock, but not telescoping.
UTAS looks like they’ve got a gun with an adjustable stock in the 500 dollar range
I’ve got some code that is cobbled together from a couple of different places & it’s got namespace collisions that wouldn’t exist if I’d been starting from scratch. But I’ve got what I’ve got … and, occasionally, new code falls over because a class has already been declared.
Luckily, there’s a way to find out from where a class was loaded:
$strClassName = "Oracle_Cred";
if( class_exists($strClassName) ){
$reflector = new \ReflectionClass($strClassName);
echo "Class $strClassName was loaded from " . $reflector->getFileName();
}
else{
echo "Class $strClassName does not exist yet";
}
We butchered our broilers and ducks for the year. In a larger household, a whole bird is probably a perfectly reasonable amount of food. But, for us? It’s too much food. Half a bird is a lot more reasonable.
In looking at techniques for grilling and smoking poultry, we came across spatchcocking — basically splitting the whole bird along the spine so it lays flat. It looked like a much quicker way to butcher — and, if we didn’t want to have a whole bird in the end anyway it isn’t like the approach would be counterproductive.
So we’ve been butchering by detaching the crop, airway, and throat. Placing the bird so the backbone is up and the neck facing you, cut along the spine. It’s a little tricky to cut at the hip joint — you’ve got to find the right spot to snip, but the oyster is always included with the leg using this method — and be careful not to pierce intestines. You can leave the spine with one half or cut down the other side of the spine. Cut around the vent, then clear out all of the innards — one entire mass is removed. Either finish spatchcocking to store a whole bird or use shears to cut along the breastbone and have two halves. I’ve found this approach to be a lot quicker than the normal technique — and, since the carcass is open, removing the innards is very easy.
Had to figure out how to do string replacement (Scott wanted to convert WMA files to similarly named MP3 files) and pass a single parameter that has spaces into a shell script.
${original_string/thing_to_find/thing_to_replace_there} does string replacement. And $@ is the unexpanded parameter set. So this wouldn’t work if we were trying to pass in more than one parameter (well, it *would* … I’d just have to custom-handle parameter expansion in the script)