Articles

Le voyage à travers les types de nombres

Partons à la découverte des nombres! Nous allons parcourir le monde des entiers, des décimaux, des rationnels et des irrationnels pour mieux comprendre leur importance.

Cette partie de la série « Math Behind Software » se concentrera uniquement sur les mathématiques. Je vais vous présenter quelques types de nombres que vous pouvez trouver partout et je parie que vous n’avez jamais pensé qu’ils puissent même exister. Commençons par les nombres Armstrong.

Cette partie de la série « Math Behind Software » se concentrera uniquement sur les mathématiques. Je vais vous présenter quelques types de nombres que vous pouvez trouver partout et je parie que vous n’avez jamais pensé qu’ils puissent même exister. Commençons par les nombres Armstrong.

Nombres

Nombre Armstrong

En général, un nombre Armstrong (ou narcissique) est un nombre n dans une base de nombre donnée (nombre de chiffres uniques utilisés pour représenter le nombre – le système le plus courant actuellement est le système décimal) b qui peut être exprimé comme une somme de ses chiffres élevés à la puissance de b.

L’architecture des nombres Armstrong est très intéressante car elle permet de trouver des nombres qui sont à la fois très simples et très complexes. Par exemple, le nombre 153 est un nombre Armstrong car 1³ + 5³ + 3³ = 153. Cependant, il existe des nombres Armstrong beaucoup plus grands qui sont très difficiles à trouver. Par exemple, le nombre 8208 est un nombre Armstrong car 8⁴ + 2⁴ + 0⁴ + 8⁴ = 8208.

Les nombres Armstrong sont très utiles en architecture informatique car ils peuvent être utilisés pour créer des algorithmes plus efficaces. Par exemple, l’algorithme de tri par insertion utilise les nombres Armstrong pour trier rapidement des données. De plus, les nombres Armstrong peuvent être utilisés pour créer des algorithmes plus complexes qui peuvent être utilisés pour résoudre des problèmes difficiles. Par exemple, l’algorithme de recherche dichotomique utilise les nombres Armstrong pour trouver rapidement des éléments dans une liste.

Source de l’article sur DZONE

Créer une solution d'email de notification d'alarme de métrique de journal personnalisé CloudWatch avec Terraform

Créer une solution d’email de notification d’alarme de métrique de journal personnalisé CloudWatch avec Terraform est une tâche complexe, mais pas impossible. Découvrez comment le faire facilement !

Comment intégrer des messages de journal d’application dans les notifications CloudWatch Alarm

En tant que scientifique informatique enthousiaste, je vais vous montrer comment intégrer les messages de journal d’application dans le corps de l’e-mail de notification lorsque l’alarme CloudWatch est activée.

Amazon CloudWatch est un service qui permet aux clients de surveiller une valeur de métrique ou une expression mathématique pour la métrique et de déclencher des actions lorsque la valeur dépasse une certaine limite. Ces alarmes peuvent être utilisées pour déclencher des notifications envoyées via Amazon SNS, e-mail, SMS, etc. Il est donc nécessaire que les messages de journal d’application soient inclus dans le message de notification de l’alarme afin que le personnel opérationnel puisse facilement identifier la cause racine de la notification de l’alarme.

Afin de mettre en œuvre cette solution, nous devons disposer des prérequis suivants : un compte AWS, Terraform installé et prêt à l’emploi, Python version 3.9 ou ultérieure, Node.js version 14.x ou ultérieure. Nous allons maintenant examiner l’architecture cible qui sera utilisée pour mettre en œuvre cette solution. L’architecture cible est représentée par le diagramme suivant et montre les composants impliqués dans cette solution ainsi que leurs interactions.

Source de l’article sur DZONE

Jakob Nielsen’s How Users Read on the Web is 25 years old this week, and one glance at an eye-tracking study will tell you its key observations are still relevant today.

Simply put, users don’t read a web page; they scan it for individual words and sentences.

A typical pattern shown in eye-tracking reports is that users will rapidly scan a page, scrolling down to do so. Then either hit the back button and pump your bounce rate, or scroll to the top and re-engage with the content.

Even when content, volume, and quality tick all the user’s boxes, and they choose to stay on your site, they still don’t read; they scan; a slightly deeper scan, but still a scan.

As a result, it’s vital to design websites to be easily scannable, both in a split-second scan to decide if your page is worth the reader’s time and on a second or third pass.

Clarify the Page’s Purpose Immediately

Every page should have a primary goal. The majority of the time, that goal is embodied in a CTA (Call to Action).

The good news is, if your SEO (Search Engine Optimisation) has gone to plan, your goal (i.e., to sell something) and your user’s goal (i.e., to buy something) will align. By clarifying the page’s purpose, you can show the user that your goals align.

You can be experimental if you’re an established company and the user knows what to expect. But if you’re new to the market or have a lower profile, you need to conform to established design patterns. This means that a SaaS should look like a SaaS, a store should look like a store, and a blog should look like a blog.

Including your CTA above the fold — which in the context of the web, means the user doesn’t have to interact to see it. Doing so makes it easier for the user to progress and clearly tells the user what you are offering.

The landing page for next month’s Webflow Conf 2022 clarifies the page’s content, with a clear CTA above the fold.

Employ a Visual Hierarchy

The Von Restorff effect states that the more something stands out, the more likely we are to notice and remember it.

Visual hierarchies are excellent for guiding a user through content. HTML has the h1–h7 heading levels — although, in reality, only h1–h4 are much use — which gives you several levels of heading that can be scanned by different readers scanning at different rates.

For example, we know that subheadings have little impact if a user diligently reads the page from top to bottom, but they are excellent for catching the eye of skim readers.

Amnesty uses very a very simple hierarchy, the only change for its subheading being increased weight. But it is enough to catch the user’s eye.

You can also create visual hierarchies with other forms of contrast; weight and color are often employed in addition to size. For accessibility and inclusive design, it’s wise to combine visual indicators when creating a hierarchy; for example, headings are usually larger, bolder, and colored.

Use Negative Space

Imagine a person standing in a crowd. Let’s say they’re wearing a red and white striped jumper and a red and white bobble hat — pretty distinctive. But if there are hundreds of other characters around them, they might be hard to spot.

Now imagine the same person dressed the same, standing on their own. How long will it take you to spot them? Even without the stripy outfit, it’s not much of a challenge.

Elements in isolation are not only easier to spot, but they pull the eye because the negative space (sometimes referred to as white space) around them creates contrast.

When using negative space, the key is to give elements enough room to breathe and attract the eye without giving them so much room that they are disassociated from the rest of your content.

Across its site, Moheim uses negative space to highlight UI elements while grouping associated content.

Use F Patterns

Users scan a page using either an F-pattern or a Z-pattern.

Because users scan your page in predictable ways, we can employ layouts that cater to this tendency.

Designers have been aware of F and Z patterns for some time, and because they’ve been used for so long, they may be self-fulfilling, with users being trained to scan a page in this fashion. However, both patterns are similar to how eyes travel from line to line in horizontal writing systems.

Whatever the cause, by placing key content along these paths, you increase the chance of capturing a user’s attention.

Kamil Barczentewicz uses a beautiful, natural layout that also conforms to a classic F pattern.

Include Images with Faces

Images are a great way of conveying brand values and making a site engaging. But when it comes to catching the eye of a user scanning your design, the best images include faces.

For example, a testimonial with an image of the customer will catch the eye more than a text-only testimonial.

The Awwwards Conference uses an animated computer with a face to capture attention. And large images of speakers making eye contact.

This is almost certainly due to social conditioning; we see a face, and we engage with it to see if it is a threat or not. Most of us naturally look to expressions of emotion to understand situations, and the distinction between a real-life person and an image hasn’t made its way into our mental programming yet.

You don’t need to use photos. Illustrations are fine. The key is to ensure there is a face in the image. That’s why illustrations of characters perform so well.

Copy Print Design

Print design is centuries older than the web, and many print applications, from newspapers to advertising, developed design elements to catch the eye of readers scanning the design.

Subheadings, lists, blockquotes, and pull quotes all catch the eye. Introductory paragraphs in a larger size or even italics draw users into the text. Shorter paragraphs encourage users to keep reading.

Horizontal rules used to delineate sections of text act as a break on eyes traveling over content with momentum. They are a good way of catching a scan-reader who is losing interest.

You can use a horizontal rule or break up your layout with bands of color that divide content sections.

Omono uses horizontal bands to highlight different sections of content.

Mass, Not Weight

We often discuss design elements as having weight; font-weight is the thickness of strokes.

But it is more helpful to think of design elements as having mass; mass creates gravity, pulling a user’s eye towards them.

The trick is to design elements with enough mass to attract the user‘s eye when scanning at speed without forcing the user to change how they engage with your content.

 

Featured image via Pexels.

Source

The post How To Make Your Designs Scannable (And Why You Should) first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

A breakdown of a simple app, from UI design to deployment, that shows off why coding is a magic tool for designers.

Figma, Adobe XD, Photoshop, Wacom Tablet, sketchbook… all tools for interfaces and web designers, yes? Take 2 minutes, and try to remember why you want to become a designer and why you enjoy designing stuff.

Chances are it’s because you like to create; you’re a creative person. Maybe you started with artistic experiences as a child, then turned that creative energy into problem-solving while continuing to express it visually: You became a designer, a creative problem solver.

Today, I’ll try to show you how coding is an underrated tool to express your creative problem-solving mindset by building a real SVG generator from scratch. So let’s get into it!

Step 1: Don’t get an idea; solve a problem

We didn’t go into deep business considerations here, but seeing problems you face and deciding to solve them yourself is a great way to start.

During client work, I needed some SVG waves for illustrations. So I looked for a wave generator: There were a ton of wavy colorful wave generators with parametric inputs but no simple, perfect sine waves generator. I decided to draw it on my math tool GeoGebra and then export it to SVG.

Okay, but not fast. And we like to get our jobs done quickly. But wait… Why don’t we create a perfect sine waves generator? Without equations & boring math software to open, just a curve and an export button. You got it, now let’s design it.

Quick tips: If you are looking for a problem, look for memes in your field. They always show a deep, painful, well-known problem.

Step 2: Design the solution simple as possible

Two main rules: First rule, think about who will use it; the second rule, predict what they expect from how it works. So who? Front-end developers. What are they waiting for? A curve that can be edited with direct feedback and an export button.

Wireframe design

High-Fi design

A quick tip: You can grab the Figma design of the app for more technical tips on the design.

Step 3: Build it for real

As a designer, stopping at step two is perfectly fine. But imagine if you could build what you design! You already know you can create everything you want.

You can see coding as a way to translate your UI that will surely end with a .com application that is usable by everyone. This is why “best languages” don’t matter; coding is just a tool to express your creativity and build stuff for others. And as a designer, a creative person, this might sound…interesting.

UI to functionnal app

UI to functional app

Every web app interface can be translated from UI design to code with HTML/CSS/JS. There is how we can see the role of each of those 3 “languages”:

HTML: I want a button.

CSS: I want my button to look rounded.

JS: I want something to happen when I click on my button.

To build our app, I’ll use Svelte. Svelte is a JavaScript compiler that allows us to use all those three “languages” in one place. So, let’s see how code can translate our UI to functional things.

HTML button code

“Hey web browser, I want a button named “exportButton” and everything in a function named “downloadSVGpath” to be carried out when someone clicks on the button :) Thanks”

CSS style button code

“Hey web browser, I want you to apply these style rules to my basic HTML button: I want a beautiful rounded corner at 16px, a mouse pointer when we hover it, I don’t want any borders, but I want a cool color gradient as a background color. Then, I want the font inside the button to have its color set to #fcfcfc and use the Inter typeface (bold, please). Like my Figma design, I also want to center stuff in the button and add padding. Oh, and add a subtle shadow :) Thanks.”

Drawing SVG curve function

“Hey, web browser, each time our slider moves, I want to run this function: I want you to draw a curve inside a frame that I have defined inside my HTML code. I also want my curve stroke to look rounded at each cap and have a color and width I’ve defined inside variables. You will take the sine function parameters from the stored values of the sliders. Finally, while your x variable hasn’t reached the total width in the x-axis of our frame, you will solve the y-axis point position of the sine equation and draw the curve :) Thanks.”

Quick tips: You can grab the source code files of the app to explore them.

Summary

  • Coding is just a tool that allows us to translate our very visual metaphors into something that everybody can use. How cool is that?!
  • Coding helps us to envision our design goals and forces us to see beyond the visual range: how is my button will be supposed to work? How does it look when hovering? How my popup modal can be designed for mobile devices?
  • Coding allows us to create the weird idea we designed “just for fun” instead of pushing the design case study into our portfolio under the “personal project” tag.
  • Coding shows us how much work is required to achieve what we designed. So we can better understand our design clients’ needs, challenges, and resource management.
  • Coding is flexible. You can replicate the Netflix website pixel perfect with pure HTML/CSS, the Vue Framework, or any other Web framework.

Source

The post Designers Should Code: Build an App From Scratch first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

Every day design fans submit incredible industry stories to our sister-site, Webdesigner News. Our colleagues sift through it, selecting the very best stories from the design, UX, tech, and development worlds and posting them live on the site.
The best way to keep up with the most important stories for web professionals is to subscribe to Webdesigner News or check out the site regularly. However, in case you missed a day this week, here’s a handy compilation of the top curated stories from the last seven days. Enjoy!”

3 Essential Design Trends, March 2022

40 Impressive Design Agency Websites

7 Web Design Trends for 2022

Hermes Rebrands with 194,481 Logos

We Need More Calm Design

Write HTML, the HTML Way (Not the XHTML Way)

Those HTML Attributes You Never Use

How to Use CSS Math Functions

5 Tips to Help You Improve WordPress Security

Sol – Open Source MacOS Command Palette

Kodezi – Grammarly for Programmers

Source

The post Popular Design News of the Week: March 21, 2022 – March 27, 2022 first appeared on Webdesigner Depot.

Source de l’article sur Webdesignerdepot

Java Collection is a pretty favorite subject in Java articles. But here, I’ll share my personal thoughts and ideas that you might not know.

Discrete Math and Java Collection

From the first look, Java Collection is a set of structures that fit different problems, like quick data search. But in practice, Java Collection interfaces are representing notions from discrete math.

Source de l’article sur DZONE

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers.

The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week.

10 Free Calendar 2021 Vectors

 

Free HTML/CSS Landing Page Templates Without JavaScript

 

Botsman – Free Platform to Develop, Test and Monitor Telegram Bots

 

Typography Principles

 

Top 10 Web Development Trends to Look Out for in 2021

 

Parametric Color Mixer

 

Add to Calendar Generator – Generate ‘Add to Calendar’ Buttons for your Website

 

What Designers Need to Know About Copyright Infringement

 

Lose the Very – “Very Good English” is not Very Good English. Lose the Very.

 

Linkish – All-in-one Bookmark Manager

 

Life of a Designer Through Funny Memes

 

APIs all the Way Down

 

Got Milk Font

 

14 Bootstrap Profiles

 

Big Review of Major UI Design Trends for Web and Mobile in 2020

 

How to Use Figma’s Inspect Panel

 

Reducing Motion in Animations

 

Dopely Colors – Free Color Palette Generator

 

How to Upload an HTML File to WordPress

 

Using Math in Photoshop

 

How to Set up your WFH Space for Creative Success in 2021

 

StackWhats – Add the WhatsApp Live Chat to your Website

 

How to Export a WordPress Site (Beginner’s Guide)

 

Podpage – Build a Podcast Website in Less than 5 Minutes

 

How to Paginate Data with PHP

 

Want more? No problem! Keep track of top design news from around the web with Webdesigner News.

Source


Source de l’article sur Webdesignerdepot

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers.

The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week.

34 Impressive Examples of Fullscreen Navigation Menus

 

Radix Icons – An Open Source Crisp Set of 15×15 Icons

 

Nocode – Turn Google Docs into a Website

 

How to Design a Great Dashboard for your UI

 

The Most Futura. Ever.

 

5 Mistakes to Avoid When Designing your Nonprofit Website

 

UCalc – Functional Calcs and Forms

 

AreYouInterested – A Super-Simple Landing Page Builder for Bulk Idea Validation

 

Unlearning to Learn Design

 

Just FYI: Acronyms are Hurting your UX and ROI

 

3 Concrete Steps to Learning a Programming Language

 

MathJax – Beautiful and Accessible Math in all Browsers

 

What is a WordPress Child Theme?

 

How to Create a UX Writing Portfolio

 

A Step-By-Step Guide to User Experience Research

 

5 Most Common Mistakes in FinTech Design

 

31 Ways to Improve your Web Design Skills

 

Designing the Ada Lovelace Hashflag Emoji

 

Powered by Buttons – An Acquisition Channel Nobody is Talking About

 

Top 10 Tools for Managing Remote Teams Efficiently

 

Email Design Accessibility: Why it is Important to Improve it

 

Why Web Design Client Referrals Aren’t a Slam-Dunk

 

Host Rider: A Game for Learning CSS Flexbox

 

Stanza – Learn Coding Concepts Faster

 

How to Present your Logos to the Client

 

Want more? No problem! Keep track of top design news from around the web with Webdesigner News.

Source


Source de l’article sur Webdesignerdepot

Deep Learning has spurred interest in novel floating point formats. Algorithms often don’t need as much precision as standard IEEE-754 doubles or even single precision floats. Lower precision makes it possible to hold more numbers in memory, reducing the time spent swapping numbers in and out of memory. Since this where a lot of time goes, low precision formats can speed things up quite a bit.

Here I want to look at bfloat16, or BF16 for short, and compare it to 16-bit number formats I’ve written about previously, IEEE and posit.


Source de l’article sur DZONE (AI)