• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4320 shaares
61 / 216
Filters

A Bayesian analysis of human decision-making on bandit problems.

QRCode

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.

http://www.ejwagenmakers.com/2009/SteyversEtAl2009JMP.pdf
January 21, 2021 at 2:46:06 PM EST *
probability games
FILLER

Unix Toolbox

QRCode

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.

http://cb.vu/unixtoolbox.xhtml
January 21, 2021 at 2:43:08 PM EST *
unix linux cheatsheet
FILLER

Why Tailwind Isn't for Me - DEV Community

QRCode

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.

https://dev.to/jaredcwhite/why-tailwind-isn-t-for-me-5c90
January 21, 2021 at 2:30:32 PM EST *
tailwind css webdesign
FILLER

The pencil-lead mines of Asiatic Siberia : a historical sketch, ... - Full View | HathiTrust Digital Library | HathiTrust Digital Library

QRCode

The pencil-lead mines of Asiatic Siberia : a historical sketch, 1761-1861 / I.P. Alibert, A.W. Faber.

Jean Pierre Alibert

Riverside Press

http://www.minbook.com/site_files/25-1_EN_p44-55.pdf

https://babel.hathitrust.org/cgi/pt?id=nyp.33433089970887&view=1up&seq=12
January 21, 2021 at 2:25:05 PM EST *
pencils
FILLER

How I Reduced Docker Image Size from 1.43 GB to 22.4 MB | by Mohammad Faisal | JavaScript In Plain English | Medium

QRCode

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 ./build
https://medium.com/javascript-in-plain-english/how-i-reduced-docker-image-size-from-1-43-gb-to-22-4-mb-84058d70574b
January 13, 2021 at 3:18:16 PM EST *
docker
FILLER

The Ultimate Guide to Bulletproof Buttons in Email Design - Litmus

QRCode

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 to fill the entire background of the link. The background color needs to be applied to the instead of 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]-->
https://www.litmus.com/blog/a-guide-to-bulletproof-buttons-in-email-design/
January 8, 2021 at 9:46:08 AM EST *
email buttons
FILLER

Minimal CSS Frameworks — dailydevlinks

QRCode

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).

https://dailydevlinks.com/minimal-css-frameworks/
January 8, 2021 at 7:53:00 AM EST *
css frameworks
FILLER

Type Scale - A Visual Calculator

QRCode
https://type-scale.com/
January 7, 2021 at 2:43:34 PM EST *
typography webdesign
FILLER

How to Favicon in 2023: Six files that fit most needs — Martian Chronicles, Evil Martians’ team blog

QRCode

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" }
  ]
}
https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
January 7, 2021 at 1:51:41 PM EST *
favicon webdesign
FILLER

Flexible, Full-Width, “Justified” Text Blocks

QRCode

Justify text blocks even with fonts of different sizes.

https://codepen.io/reubenlillie/pen/xemGmd
January 7, 2021 at 8:40:41 AM EST *
codepen typography
FILLER

Laying Out Basic Stair Stringers - Fine Homebuilding

QRCode

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

https://www.finehomebuilding.com/project-guides/framing/laying-out-basic-stair-stringers
January 7, 2021 at 8:36:26 AM EST *
home stairs fhb
FILLER

Optimizing Image Depth | CSS-Tricks

QRCode

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.

https://css-tricks.com/optimizing-image-depth/
January 7, 2021 at 8:32:59 AM EST *
graphics webdesign png
FILLER

Making Sense of Minisplits - Fine Homebuilding

QRCode

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

https://www.finehomebuilding.com/2020/11/06/making-sense-of-minisplits
January 7, 2021 at 8:30:16 AM EST *
home hvac fhb
FILLER

The Retirement Planning Radio Show | Retirement Planning Group, LLC

QRCode

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.

https://www.rpgretire.com/the-retirement-planning-radio-show
January 6, 2021 at 2:58:07 PM EST *
finance retirement
FILLER

Perl Advent Calendar 2020 - There is No Try

QRCode

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';
};
http://perladvent.org/2020/2020-12-03.html
January 6, 2021 at 2:55:14 PM EST *
perl
FILLER

Parametric Color Mixer 0.25 - colormixer.web.app

QRCode

Parametric Color Mixer

#332971 #5f3767 #ac5067 #e67369 #fb9c63 #febf57 #ffd043

https://colormixer.web.app/02332971ff623007ff9bc9505a440301ffff7c5f55610300/Sunset
January 6, 2021 at 2:50:50 PM EST *
colorscheme color
FILLER

Mobility Workout | All-Out Studio Phase 1 Mobility 1

QRCode

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

https://www.runnersworld.com/training/a32209303/run-faster-mobility/
January 6, 2021 at 2:48:41 PM EST *
mobility workout fitness
FILLER

Bodyweight HIIT Workout | Bodyweight Workout

QRCode

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.

https://www.runnersworld.com/training/a35006515/bodyweight-hiit-workout/
January 6, 2021 at 2:39:14 PM EST *
workout fitness
FILLER

On Bean Dad and Gen X Irony | by Emily Pothast | Jan, 2021

QRCode

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.

https://emilypothast.medium.com/on-bean-dad-and-gen-x-irony-7882fe110f80
January 6, 2021 at 2:02:25 PM EST *
lifehacks genx
FILLER

4th brake job in 5 years.... | Honda Odyssey Forum

QRCode

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

https://www.odyclub.com/threads/4th-brake-job-in-5-years.362112/
January 6, 2021 at 1:47:52 PM EST *
honda brakes
FILLER
61 / 216
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community