How to take control of Flexbox
-
Flex children are just that:
display: blockordisplay: inlinedon't have any affect oncedisplay: flexis defined on the parent. -
Flexbox is controlled inside --> out: The size of the children affect the size of the parent. Grid is outside --> in: the size of the parent is specified and the children fit inside.
-
Defaults: flexbox by default uses the 'best' size for the children. It doesn't expand them, but it will shrink them if necessary.
flex-shrink: 1;
flex-grow: 0; -
If you have multiple rows and columns, and you want them consistent, grid is the better choice
-
width is the same as flex-basis IF you are using columns
CSS for printing to paper
At work, one of the things I do pretty often is write print generators in HTML to recreate and replace forms that the company has traditionally done handwritten on paper or in Excel. This allows the company to move into new web-based tools where the form is autofilled by URL parameters from our database, while getting the same physical output everyone's familiar with.
This article explains some of the CSS basics that control how your webpages look when printed, and a couple of tips and tricks I've learned that might help you out.
Stephen Inglis Plays a Ukulele Version of the Grateful Dead‘s “Friend of the Devil” | Ukulele Magazine
Stephen Inglis, who has a long relationship with the Grateful Dead’s music, plays his ukulele arrangement of "Friend of the Devil" and shares some playing tips.
Carl Angel 5 Pencil Sharpener - helical blade
Made in Japan with point adjustment:
https://carl-officeproducts.com/products/a-5-royal-pencil-sharpener/
Remove the helical blade from rotor, if you can, by unscrewing the rod that holds it in place. Wear a thick leather glove on one hand. Place 300-400 grit sandpaper strip on hard flat horizontal surface in front of you. Hold one helical blade(cylinder) with long screw through it from the ends between your thumb and middle finger so that blade rotates freely. Lay the helical blade against the sandpaper while holding it. Place two or three fingers of your gloved hand on top of blade to push down against the helical blade. Now pull on helical blade so that it rotates while being pressed down against sandpaper. The blade will bite into the glove and cause it to rotate. Repeat until the blade has rotated a few times. Replace helical blade. I'm sure there are other ways, but that's how I do it.
There is a youtube video of an older man putting the helical blade against a sanding belt. Takes too much metal off.
javascript - How to inspect JQuery UI tooltip? - Stack Overflow
I have a default JQuery UI tooltip function call on my page. Is there a way to style the tooltip div interactively using the Inspector? If I had two mouse pointers, one would be hovering over an el...
2- Choose Sources: Choose Sources
3- On the right side, you found accordion, Open "Event Listener Breakpoints" Open "Event Listener Breakpoints"
4- You will found all events, Open "Mouse", then Select "mouseout" event, this will stop execution of code and stop before "mouseout action". Open "Mouse", then Select "mouseout"
5- Go to App screen, and Try to hover only the item which has the tooltip, then screen will freeze, and you will found the tooltip stand as you want. tooltip stand as you want
Better Sales Pages with better Typography - Pimp my Type
Five tips to design a convincing sales page by better using typography.
CSS Button Styles You Might Not Know | David Bushell
Visual Focus
Accessibility is for everyone. I like using keyboard navigation to tab through interactive elements. Sadly I’ve lost count of how many clients have asked me to “remove that ugly border” around focused buttons.
Button focus state can be improved with two tricks:
.button {
&:focus-visible {
outline: 2px solid magenta;
outline-offset: 2px;
}
}
First, I replace the default focus pseudo-class with focus-visible. MDN has a long section on focus vs focus-visible. Basically it’s what the original should have been in hindsight.
https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible#focus_vs_focus-visible
Second, I use outline-offset to give some breathing room between the focus ring and the button itself. If the button has a prominent border style the outline would sit flush against it looking like a double border. Adding an offset makes the focus state more visible.
One thing to note is that ::file-selector-button does not get focus, rather the parent input does, so apply styles there.
Designing better target sizes
An interactive guide on designing better target sizes on the web.
Time for a Change: Introducing irreversible time in economics - Dr Ole Peters
An exploration of the remarkable consequences of using Boltzmann's 1870s probability theory and cutting-edge 20th Century mathematics in economic settings. An understanding of risk, market stability and economic inequality emerges.
The lecture presents two problems from economics: the leverage problem "by how much should an investment be leveraged", and the St Petersburg paradox. Neither can be solved with the concepts of randomness prevalent in economics today. However, owing to 20th-century developments in mathematics these problems have complete formal solutions that agree with our intuition. The theme of risk will feature prominently, presented as a consequence of irreversible time.
A lecture by Dr Ole Peters
The transcript and downloadable versions of the lecture are available from the Gresham College website:
http://www.gresham.ac.uk/lectures-and-events/time-for-a-change-introducing-irreversible-time-in-economics
GitHub - zaghaghi/openapi-tui: Terminal UI to list, browse and run APIs defined with openapi spec.
Terminal UI to list, browse and run APIs defined with openapi spec. - zaghaghi/openapi-tui
GitHub - extrawurst/gitui: Blazing 💥 fast terminal-ui for git written in rust 🦀
Blazing 💥 fast terminal-ui for git written in rust 🦀 - extrawurst/gitui
If you want to be creative, you can’t be certain | Ida Persson
You have to be willing to step into the unknown if you want to be creative.
The will to do things that haven’t been done before.
When we’re creating things that have not been done before, uncertainty is inevitable.
The willingness to stay in the question long enough for the dots to connect.
My inability to make decisions is frustrating, but it also allows me to stay in the question longer. I’m not rushing to find a quick fix but rather twisting and turning problems. I often find the need to go back and research some more. To make sure that the path I’ve decided to take is the right one. It wasn’t until I got more comfortable in my role as a designer (I wish I could say that my imposter syndrome went away, but it still surfaces in every project) that I discovered the benefit of this. When it comes to solving problems with creative solutions, we must first spend time figuring out the right problem to solve. Then make sure that the solution we propose is helping more than hurting.
Smooth Drywall Skim Coats - Fine Homebuilding
The Level5 Skimming Blade is a lightweight and versatile tool for achieving smooth and consistent drywall skim coats.
By Josh Risberg Issue 321 – Feb/March 2024
Design-Pattern Guidelines: Study Guide
Unsure how to design and implement user-interface patterns? Use this collection of links to our content about specific patterns.
- A Note on Interface Guidelines
- Input Controls
- Forms and Wizards
- Tooltips, Dialogs, Instructional Overlay
- Icons and Indicators
- Menu Design
- Site Navigation Elements
- In-Page Navigation
- Search
- Errors
- Privacy and Ethics
Finish Carpentry Tips Every DIYer Should Know | Family Handyman
Trimwork can be challenging to install. Here are some tips to help you handle the most troublesome situations that finish carpentry poses.
Tighten Up Open Miters
The quickest and easiest way to cut a slight back bevel is to shim the molding so it’s resting at an angle to the saw blade. A pencil makes a handy shim and is just about the right thickness.
Cut Steep Angles on Your Miter Saw
It’s not common, but occasionally you’ll run into a situation that requires miters greater than the 45- or 50-degree angle available on miter saws. An easy way to handle this is to cut a block of wood at a 45-degree angle and cut a flat spot for the clamp. Clamp the molding to the block and line up the miter saw with the mark to make the cut.
Scribe Trim to Fit Uneven Walls
Angle a Nail to Close Baseboard Gaps
Make Blocks for Tough Transitions
Big Humps Require Surgery
A stud that’s not lined up with the plate causes a big hump in the wall, making it difficult to get the baseboard tight.
Clean Out Corners Before You Start
Keep Baseboard from Tipping
Cut strips of wood to the thickness of the drywall and cut off small pieces to use as spacers at inside corners or wherever they’re needed.
Join Moldings with Biscuits
Fabric Gelli Printing: Jayne Emerson • Textile Studio • Online courses + community (@jayneemersontextiles)
Using sewn fabric to make gelli prints
Modern CSS Tooltips And Speech Bubbles (Part 1) — Smashing Magazine
Tooltips are a very common pattern used in CSS for years. There are a lot of ways to approach tooltips in CSS, though some evoke headaches with all the magic numbers they require. In this article, Temani Afif presents modern techniques to create tooltips with the smallest amount of markup and the greatest amount of flexibility.
How to Install Surface-Mounted Wiring and Conduit | Family Handyman
Adding a new light or receptacle to your garage or basement is easier than you think.
Always work from the power source to the end of your pipe run. That way, you always have an “open” end of the conduit for adding boxes and fittings. (It’s really hard to jam a piece of pipe in between existing, attached boxes.) Remove the existing box from the stud. If you have extra Romex in the wall, great! Pull it through the hole.
How to Be More Agentic | Cate Hall
It’s never too late to control your own fate
In my way of thinking, radical agency involves finding real edges: things you are willing to do that others aren’t, often because they’re annoying, unpleasant, or obscured in a cloud of aversion.
The idea of finding real edges, rather than eking out wins by grinding harder than everyone else, clicked for me when I started playing poker. Pros spent nearly as much time studying as they did playing, using solvers to seek out tiny mathematical advantages. I noticed a massive edge that was almost entirely ignored: physical reads, or tells.