Creating a Pencil Effect in SVG

Scott Turner, who has an entire blog “Exploring procedural generation and display of fantasy maps”, gets into why vector graphics seems on these surface why it would be bad for the look of a pencil stroke:

Something like this pencil stroke would require many tens of thousands of different elements.  Basically each little blob of gray in that image would be separately defined. 

But, SVG filters to the rescue.

It’s all about <feTurbulence.

Squigglevision!

Direct Link to ArticlePermalink

The post Creating a Pencil Effect in SVG appeared first on CSS-Tricks.

from CSS-Tricks https://heredragonsabound.blogspot.com/2020/02/creating-pencil-effect-in-svg.html…

Navi – An Interactive Commandline Cheatsheet Tool

A while ago, we posted some good alternatives to Linux man pages. Those tools skips all theoretical part and gives concise Linux command examples. If you are a lazy Linux user who wants some practical...

The post Navi – An Interactive Commandline Cheatsheet Tool appeared first on OSTechNix.

from OSTechNix https://www.ostechnix.com/navi-an-interactive-commandline-cheatsheet-tool/?utm_source=rss&utm_medium=rss&utm_campaign=navi-an-interactive-commandline-cheatsheet-tool…

How to use CSS Scroll Snap

Nada Rifki demonstrates the scroll-snap-type and scroll-snap-alignCSS properties. I like that the demo shows that the items in the scrolling container can be different sizes. It is the edges of those children that matter, not some fixed snapping distance.

I like Max Kohler’s coverage as well, which includes a demo where the snapping can happen in multiple directions.

This is one of those things where, if you didn’t know about it, it’s worth a solid golf clap for CSS.

Direct Link to ArticlePermalink

The post How to use CSS Scroll Snap appeared first on CSS-Tricks.

from CSS-Tricks https://blog.logrocket.com/how-to-use-css-scroll-snap/…

Emergency Website Kit

Here’s an outstanding idea from Max Böck. He’s created a boilerplate project for building websites that fit within a single HTTP request. This is extremely important for websites that contain critical information for public safety. As Max writes:

In cases of emergency, many organizations need a quick way to publish critical information. But exisiting (CMS) websites are often unable to handle sudden spikes in traffic.

What’s so special about this boilerplate? Well, it does smart stuff like:

  • generates a static site using Eleventy,
  • uses minimal markup with inlined CSS,
  • aims to transmit everything in the first connection roundtrip (~14KB),
  • progressively enables offline-support with Service Workers,
  • uses Netlify CMS for easy content editing, and
  • provides one-click deployment via Netlify to get off the ground quickly

The example website that Max built with this boilerplate is shockingly fast and I would go one step further to argue that all websites should feel as fast as this, not just websites that are useful in an emergency.

Direct Link to ArticlePermalink

The post Emergency Website Kit appeared first on CSS-Tricks.

from CSS-Tricks https://mxb.dev/blog/emergency-website-kit/…

Being on the Safe Side of Being Online

Oh, the world wide web, how fascinating our lives have been with it! It has opened is to a whole new dimension of information we have no access to before. But then, just like any other place that’s worth exploring, there may be dangers that lurk on the sides that if you fall victim to, will damage your entire experience. So, you need to be aware of these hazards and keep yourself safe when surfing online. What’s great is that you don’t really need to be a computer science genius to know how to amply protect yourself when exploring the internet. Minimize your risk by taking note of these tips to enjoy a safer web experience.

The Importance of Upgrading

Let’s admit it: Most, if not all of us, get annoyed when programs in our computer get upgraded without our permission. These silent upgrades are not done for no reason, though, as they play a key role in keeping everyone safe. Moreover, browsers and OSes have made it point to roll out their updates in a seamless fashion, making it a point to not bother users. It would be best to apply these updates on all applications and programs, not just on your browser or frequently used programs. Don’t allow old versions of programs to be left in your machine, as they are susceptible to attacks, not to mention that they may soon (or may have already) be without support.

Silent upgrades might occasionally be annoying (and costly), but they’re a big part of keeping you safe, which is why the updates for most OSes and browsers now happen seamlessly. Apply updates whenever you’re asked to on all your applications, not just your browser, and be wary of leaving older hardware gathering dust on your network.

Viruses and malware are constantly evolving to exploit vulnerabilities in your software and hardware. Software developers try to fix these flaws as soon as they are discovered. What many people don’t realise is that infections occur because people delay software updates that fix these

Maintaining Performance

Real talk from Dave:

I, Dave Rupert, a person who cares about web performance, a person who reads web performance blogs, a person who spends lots of hours trying to keep up on best practices, a person who co-hosts a weekly podcast about making websites and speak with web performance professionals… somehow goofed and added 33 SECONDS to their page load.

This stuff is hard even when you care a lot. The 33 seconds came from font preloading rather than the one-line wonder of font-display.

I also care about making fast websites, but mine aren’t winning any speed awards because I’ll take practical and maintainable over peak performance any day. (Sorry, world)

Direct Link to ArticlePermalink

The post Maintaining Performance appeared first on CSS-Tricks.

from CSS-Tricks https://daverupert.com/2020/03/maintaining-performance/…

40+ Best Hand Lettering & Handwriting Fonts 2020

If you’re looking for a different type of a font to make your design stand out, a cursive font can be a great choice. Cursive and script fonts aren’t new, but they’re a less common choice for many designers. This gives you a chance to use cursive fonts to add some originality to your next project.

Fonts play an important role in every design. Whether you’re designing a book cover, a website header, social media post, greeting card, or a poster, the typography is the main aspect that captures everyone’s attention.

In this collection, we’re featuring some of the most beautiful and modern cursive fonts you can use for your various types of designs. Plus, a series of helpful tips for choosing a hand lettering font to help you make the right decision.

Top Pick

Delich- Handwritten Script Font

Delich- Handwritten Script Font

Delich is a calligraphy style handwritten font that features a smooth and creative character design. The font can be used as an all-rounder for designing everything from greeting cards to logos, posters, business cards, badges, and much more.

It also comes with lots of OpenType stylistic alternates, ligatures, swashes, and more to help make your designs look even more unique.

Why This Is A Top Pick

The simple yet flawless design of the letters is what makes this font stand out from the rest. It features a certain elegance that makes it a great choice for many different types of print and digital designs.

Southeast Better – Handwritten Script Font

Southeast Better - Handwritten Script Font

This modern handwriting font features a script design making it a great choice for crafting everything from logos, signatures, poster titles, and more. The font features both uppercase and lowercase letters as well as numbers and punctuations.

Southem – Clean Marker Font

Southem - Clean Marker Font

Southem is a modern marker font that comes with a handwriting design. The font features a smooth character design with both uppercase and lowercase letters. It’s perfect for social media, creative, and kid-friendly design projects.

Daytonia – Hand Lettering Script Font

Daytonia - Hand Lettering Script

Daytonia is a beautiful hand lettering scrip font …

How To Convert Images Into ASCII Format In Linux

This guide teaches how to convert images into ASCII format in Linux. For the purpose of this task, we will be using Jp2a. Jp2a is a command line tool that helps you to convert the...

The post How To Convert Images Into ASCII Format In Linux appeared first on OSTechNix.

from OSTechNix https://www.ostechnix.com/how-to-convert-images-into-ascii-format-in-linux/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-convert-images-into-ascii-format-in-linux…

Consistent Backends and UX: How Do New Algorithms Help?

In previous articles, we explained what consistency is, the difference between “strong” and “eventual” consistency, and why this distinction is more important than ever to modern application developers. We also introduced the notion of ‘consistency tax’: the extra time and effort that a development team needs to invest if they choose a system with only eventual consistency or limited consistency guarantees. 

Several modern databases use state-of-the-art algorithms to eliminate the tradeoff between consistency and performance. Of course, we would not want you to take our word for it without a proper explanation. Therefore, in this final article, we dive into the technical details behind some of these databases. Typically, the only source of information for these technical details are research papers, so the point of this article is to explain these systems in simpler terms.  Because these systems are far more complex in reality, we’ll provide the links in the text in case you want to know more and love to read research papers.

Introduction

In parts 1 and 2 of this article series, we explained how distributed databases use different replicas to spread the load and/or serve users in different regions. To summarize here, for new readers, a replica is just a duplication of your data. And this duplication can live either in the same location for redundancy, or in another location to offer lower latencies to users in those locations. Having multiple replicas that can handle both reads and writes has a strong advantage, because the database becomes scalable and can offer lower latency to all your users, no matter where they are. However, you do not want each of the replicas to have their own interpretation of the data. Instead of small data differences between each replica, you want one unique interpretation of the data, which is often referred to as a single source of truth. In order to achieve that, you need to have some …

Get Static

In this piece, Eric Meyer argues that performance is more important than ever right now — especially for websites that contain critical information for the public:

If you are in charge of a web site that provides even slightly important information, or important services, it’s time to get static. I’m thinking here of sites for places like health departments (and pretty much all government services), hospitals and clinics, utility services, food delivery and ordering, and I’m sure there are more that haven’t occurred to me. As much as you possibly can, get it down to static HTML and CSS and maybe a tiny bit of enhancing JS, and pare away every byte you can.

What Eric means by “it’s time to get static” is that we need to serve regular ol’ HTML, CSS, and JavaScript files to the browser with server-side rendering. That way, our sites are faster and with fewer bottlenecks that can render the whole website useless.

On this note, Zach Leatherman recently looked at 200 sites built with Eleventy and found that the mean Lighthouse performance score was 93.7! In other words: static site generators are gosh darn fast. And if that’s not a great reason to make the switch or to start learning about static site generators in general, then I don’t know what is.

Direct Link to ArticlePermalink

The post Get Static appeared first on CSS-Tricks.

from CSS-Tricks https://meyerweb.com/eric/thoughts/2020/03/22/get-static/…