Skip to main content

Posts

Open sesame

Indian food dominated my diet while i lived near a small restaurant staffed by its owner and at most one assistant. the leftover food was featured in at least two meals after my weekly visit. my habit of dining at this restaurant influenced my vacation schedule. at first, the menu included rarities like fish smothered by a very spicy green curry and house-made lemon achar . (the curry was thicker than Hilda's .) after a while, various shortcuts were taken. house-made achar was replaced by store-bought and several favorites became historic, but i remained faithful. i ate there about 700 times before moving away. Pickle jar one evening, the assistant accosted me with a jar of achar and indicated that i should open it for him. so i did. ...
Recent posts

Kimchi brine

Mom claimed her pickled cabbage was Chinese. the rest of my family was skeptical; another possible source for her recipe was the wife of one of my father's colleagues. years later, my mother acknowledged that she had served us kimchi. if i had to guess, it was Baek (white) kimchi. in those days, Asian ingredients were less available here so the recipe may have been an adaptation. in any case, it is much easier to make than the kind we usually see. Deconstructed brine how do we determine the amount of salt? in my opinion, we should ignore the weight of the vegetables. this approach works because brine creates an environment that favors lactobacilli. salt is not the agent per se; it is an enabler. in this case, we amplify its effect by deconstructing the brine, ...

Improper english

Before retirement ended my last spell of unemployment, i wondered if the timing of that dismissal was ideal. one month earlier or later might have been better? improving a server log was my last assignment. like many other companies, their senior management believed in their culture, technology, and tools. like other well-funded companies, they used Splunk and wanted to use JSON format. nobody reviewed the pull request that would have established a baseline for my work. their Splunk dashboard code was not versioned. Overcommunicating JSON can be ideal, and creating a data structure to discover if a log entry describes an error is easy and reasonably fast, but computers find strings very quickly. a faster algorithm uses less electricity; computer activity is human activity. ...

Cat's whiskers

Online forums are good sources of information and/or habitats for groupthink. Jean Valjean ignored the smell; so can you :-) forums are biased in various ways. for example, woodworkers' opinions about linseed oil are informed by wood finish products. in another forum, we might find a recommendation for finishing wood with linseed oil sold by an art supply store. sauce for the painter is sauce for the woodworker? Slippery when wet when i became interested in safety razors, forums were invaluable sources of information. they are still helpful, but i learned enough to continue on my own. at one point i bought cheap shaving soap thinking that it couldn't be as bad as forum contributors claimed. they were right, but the soap was/is still useful: it stays at th...

Obsolete versions

Once upon a time, upgrading packages was just downloading and installing files. after a while, it also entailed compiling source code because my operating systems no longer received first-class support. Descent Into Madness after a while, upgrading a package also entailed upgrading the tools needed to make it and their dependencies. i felt like i had installed every (meta-)build system. on one of my MacBooks, Homebrew maintained two versions of Python and two versions of llvm . as projects migrated from Autotools to CMake, library versions became inconsistent. these inconsistencies puzzled me, because the first test one should perform after adding support for another build system is determining if the result is the same. any differences should be eliminated/explained. in real life, most people didn't ...

Slippery when wet

Ivory soap is known for its purity, but i thought it was harsh and eventually discovered that people in the soap industry agree (personal communication). Rinse and repeat though shampoo manufacturers direct us to apply shampoo twice, the second application often seems unnecessary. maybe it's a ploy to induce us to repurchase more often? meanwhile, everyone knows soap is poor shampoo because it makes your hair gummy. ironically, washing hair with soap can work quite well if the soap isn't too complicated and you apply it twice. more generally, soap scum often rinses off after a second washing with the same soap. when i have to wash one or two things in my kitchen, i use soap instead of detergent. another techniq...

Cache strategies

An ideal cache entry is created just before its value is first needed and destroyed just after it is no longer needed. typical cache strategies do not (try to) approximate this ideal, but half a loaf is better than none? caching doesn't necessarily help. for example, using another host to cache database query results requires more network usage. determining if the additional complexity and cost are worthwhile depends on the database server's behavior (it might be caching the results already), network connection speeds, etc. in a simpler architecture, a server and its cache are hosted by the same machine. if there are redundant servers there will be duplicate cache entries, so analyzing cost/performance still requires effort. there is no free lunch. Server requirements ...