A Bayesian analysis of human decision-making on bandit problems.
Steyvers, M., Lee, M. D., & Wagenmakers, E.-J. (2009).
A Bayesian analysis of human decision-making on bandit problems.
Journal of Mathematical Psychology, 53, 168-179.
Unix Toolbox
This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.
Why Tailwind Isn't for Me - DEV Community
I think the folks building Tailwind are talented and nice people. But at a pure technical level, I simply don't like Tailwind. Whoever it was built for, it was not built for me.
- Reason 1: Tailwind promotes ugly-ass HTML.
- Reason 2: @apply is fundamentally incompatible and non-standard (and largely unnecessary).
- Reason 3: Tailwind's focus on design systems and tokens could mostly be replaced by CSS Custom Properties (aka variables)—which IS a standard.
- Reason 4: Tailwind forgets that web components exist.
- Reason 5: Finally, Tailwind encourages div/span-tag soup.
...using <div> and <span> tags everywhere in your markup is an anti-pattern. We live in a world where custom elements (aka <whatever-you-can-dream-of>) are fully supported and enabled by modern browsers.
The pencil-lead mines of Asiatic Siberia : a historical sketch, ... - Full View | HathiTrust Digital Library | HathiTrust Digital Library
The pencil-lead mines of Asiatic Siberia : a historical sketch, 1761-1861 / I.P. Alibert, A.W. Faber.
Jean Pierre Alibert
Riverside Press
How I Reduced Docker Image Size from 1.43 GB to 22.4 MB | by Mohammad Faisal | JavaScript In Plain English | Medium
Step 4. Multistage Build
In our previous configurations, we were copying all of our source codes into the working directory.
But it’s unnecessary as we only need the build folder to serve our website. So now we will use the concept of multi-stage build to cut down the unnecessary code and dependencies from our final image.
The configuration will look something like this.
# STAGE 1
FROM node:12-alpine AS build
WORKDIR /app
COPY package.json ./
RUN yarn install
COPY . /app
RUN yarn build
# STAGE 2
FROM node:12-alpine
WORKDIR /app
RUN npm install -g webserver.local
COPY --from=build /app/build ./build
EXPOSE 3000
CMD webserver.local -d ./buildThe Ultimate Guide to Bulletproof Buttons in Email Design - Litmus
Padding + Border-Based Buttons
The padding and border-based buttons combine elements of the previous two approaches.
Essentially, this approach uses the same structure of styling the link with both padding and at least a solid 1px border. Then, a background color is applied to the
<a> in this instance because Outlook does not recognize horizontal padding on the <a> tag (since it does not support such styling for non block-level HTML elements).
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="border-radius: 3px;" bgcolor="#e9703e"><a href="https://litmus.com" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; text-decoration: none;border-radius: 3px; padding: 12px 18px; border: 1px solid #e9703e; display: inline-block;">I am a button →</a></td>
</tr>
</table>
</td>
</tr>
</table>
Horizontal Padding Hack for Outlook
A quick hack that can be used to increase the horizontal “padding” for Outlook is to conditionally add inline non-breaking space(s) on each side of the link.
<!--[if mso]> <![endif]-->
Minimal CSS Frameworks — dailydevlinks
Looking for a lighter framework for your next project? Here's a list of some of the best minimal CSS frameworks out there.
https://hakanalpay.com/bahunya/
Dark mode based on tacit
https://github.com/yegor256/tacit
https://purecss.io/
Pure builds on Normalize.css and provides layout and styling for native HTML elements, plus the most common UI components. It’s what you need, without the cruft.
🔗 https://picturepan2.github.io/spectre/index.html
Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development.
https://andybrewer.github.io/mvp/
MVP styles your root HTML elements, so you don’t need to learn a new CSS framework or naming conventions.
It’s like an amped up CSS reset that you can toss into any project to get decent styling.
https://newcss.net/
new.css is a classless CSS framework to write modern websites using only HTML.
https://github.com/oxalorg/sakura
Wonderful for people not really good or interested with design as sakura is nothing but a set of reasonable defaults
https://watercss.kognise.dev/
Now you can write your simple static site with nice semantic html, and Water.css will manage the styling for you.
https://jenil.github.io/chota/
Magical 12 column grid
Comes with a handful of components & utilities
http://getskeleton.com/
You should use Skeleton if you're embarking on a smaller project or just don't feel like you need all the utility of larger frameworks. Skeleton only styles a handful of standard HTML elements and includes a grid, but that's often more than enough to get started. In fact, this site is built on Skeleton and has ~200 lines of custom CSS (half of which is the docking navigation).
How to Favicon in 2023: Six files that fit most needs — Martian Chronicles, Evil Martians’ team blog
Instead of serving dozens of icons, all you need is just five icons and one JSON file.
In your HTML, for the browser:
<link rel="icon" href="/favicon.ico"><!-- 32×32 -->
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
And in your web app manifest:
// manifest.webmanifest
{
"icons": [
{ "src": "/192.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/512.png", "type": "image/png", "sizes": "512x512" }
]
}Flexible, Full-Width, “Justified” Text Blocks
Justify text blocks even with fonts of different sizes.
Laying Out Basic Stair Stringers - Fine Homebuilding
1. Clamp a guide to the square.
To make it easy to align the framing square on the stringer consistently, clamp a straight wood strip to the square. On the outer edges of the square, align the strip with the run dimension on one leg and the rise dimension on the other.
2. Find the crown.
Sight down the edge of the stringer stock to determine if it crowns. If it does, lay out the stringer so that the crown on the completed stair will face upward.
3. Lay out the first tread and the second riser.
Hold the square so that the leg with the tread dimension is closest to the end of the stringer stock but far enough from the end to allow for a riser below. Try to lay out the notches so that cutting them gets rid of knots and defects.
https://www.finehomebuilding.com/2013/10/15/lay-out-accurate-stair-stringers-with-this-custom-tool
By Andy Engel Issue 248 - Dec/Jan 2015
Optimizing Image Depth | CSS-Tricks
By default, lots of image editing tools save PNGs with 2^24 color depth, just in case.
So in Acorn, my image editor of choice, I’ve been taking special care to crank down the bit depth on PNGs in the export dialog. In many cases, I’ve cut image weight 80% or more by indexing colors to a palette of 256 or fewer values, with no loss of visual fidelity.
That PNG at full-color depth is about 379KB. Restricted to a palette of 32 colors, it’s 61KB. And that’s just at the export time: once I run them through ImageOptim, the optimized sizes are 359KB and 48KB.
Making Sense of Minisplits - Fine Homebuilding
For well-insulated houses, minisplits are beginning to dominate the market. They are especially suited for lower heating and cooling loads and providing quiet comfort with surprisingly low amounts of energy—energy that can be produced on-site or pulled from renewable sources on the grid.
Minisplits have a few disadvantages and downsides, and they are interrelated, combining to make or break the minisplit decision. The big three are the price of electricity, the severity of the winter, and the quality of the building envelope.
From Fine Homebuilding #296
The Retirement Planning Radio Show | Retirement Planning Group, LLC
The Retirement Planning Show, hosted by David Kopyc, can be heard every Saturday morning from 8:00 A.M. – 9:00 A.M. and Sunday Evenings 8:00 PM - 9:00 PM on News Talk Radio AM 810 and 103.1 FM.
Perl Advent Calendar 2020 - There is No Try
eval Stinks!
Even if not a huge increase in the code needed for the operation, it's a bunch of magic to remember every time. If you don't do this sort of thing, though, you've got a big opening for horrible error-handling problems.
use Try::Tiny;
my $start = Time::HiRes::time;
return try {
$self->computation_helper->compute_stuff;
} catch {
my $error = $_ eq '' ? 'unknown error' : "$_";
$self->set_last_error( "couldn't get stuff computed: $error" );
return undef;
} finally {
my $failed = @_;
my $end = Time::HiRes::time;
warn sprintf "took %f seconds to %s",
$end - $start,
$failed ? 'fail' : 'succeed';
};Mobility Workout | All-Out Studio Phase 1 Mobility 1
Improve your range of motion with this workout from Tinman Elite Coach Chris Lee.
Ankle Mobility
Hip Mobility
Adductor Mobility
Hamstring Stretch
Windmill
Figure-Four Stretch
Quadruped to Downward Dog
Modified Brettzel Stretch
Lunge to Rotation
Alternating Reverse Four Point Bridge
Bodyweight HIIT Workout | Bodyweight Workout
These three moves will boost both cardio and strength. It requires no equipment but will help you get fit, fast.
Air Squat
Straight-Leg Sit-Up
Push-up
How to do it: Perform each move for the recommended number of reps (30, 20, 10). Repeat the circuit 5 times through, resting for 60 seconds between each set. If you want to tack this on to the end of a run instead, Movold suggests completing 3 rounds.
On Bean Dad and Gen X Irony | by Emily Pothast | Jan, 2021
What a guy who wouldn’t help his kid open a can says about the Culture War
This is the chasm between between those who have decided that joking about “funny rape” or ironically calling someone a “fag” actually isn’t very original or creative (and honestly never was), and those who feel alienated by the prospect of living in a world where their jokes about Jews (delivered with or without affecting a Cartman voice) are no longer met with unconditional approval.
4th brake job in 5 years.... | Honda Odyssey Forum
I followed John U's mantra in part. We bedded the pads on both vans when we got them. As well, whenever I replaced pads, I thoroughly sanded off any accumulation of adherent brake pad material from the rotors using 100-grit sandpaper. Then, I would drive out after midnight, find a secluded stretch of highway, and bed the new pads.
We've enjoyed about 365,000 miles of shudder-free driving between our two Odysseys (210,000 on our 2002 EX, and about 155,000 on our 2003 EX, which we bought used with about 50,000 miles on the odo.)
Many, many years ago, somebody on this forum pointed me to these two StopTech papers written by their engineering and tech staff:
The ‘Warped’Brake Disc &Other Myths of the Braking System
https://centricparts.com/getmedia/bd69395a-b65c-481d-93f7-b26b1bd0638d/Centric_and_APC_Technical_Whitepaper_B1-Warped-Brake-Disc-8-2018_1.pdf
Pad and Rotor Bed-In Theory, Definitions and Procedures
https://centricparts.com/getmedia/b62c7705-ab5f-4a05-97a8-4a7390feedd1/Centric_and_APC_Technical_Whitepaper_C2-Bed-In-Theory-8-2018_1.pdf