Search

Nalezeno "blog": 1889

Typový systém: Iterated union


Rust má poměrně slabý typový systém, nelze například napsat takovouto funkci: /---pre fn readVectN(n: usize) → Vect { … } \--- Překladač ohlásí chybu „attempt to use a non-constant value in a constant“, což nedává, pokud se nad tím zamyslíme, smysl, neexistuje žádný důvod, proč by typové parametry...

WordPress Developer Blog


Well, hey check this out. Looks like there is a brand spankin’ new blog over at WordPress.org all about WordPress development. In the original proposal for the blog, Birgit Pauli-Haak writes: The Make Core blog has a heavy … WordPress Developer Blog originally published...

How to Internationalize Numbers with JavaScript


Presenting numbers in a readable format takes many forms, from visual charts to simply adding punctuation. Those punctuation, however, are different based on internationalization. Some countries use , for decimal, while others use .. Worried about having to code for all this madness? Don’t...

DigitalOcean Welcomes Cloudways to the Family


Hey folks! If you’ve been keeping up with the latest DigitalOcean news, you might be aware that we recently announced our acquisition of a company called Cloudways. In case you’re curious about what this means, we thought it might … DigitalOcean Welcomes Cloudways to the Family...

GeekRoom: PASS ZX2C4 - Udržujte svá tajemství


GeekRoom: PASS ZX2C4 – The Standard Unix Password Manager Před několika lety jsem přešel z Enpass GUI aplikace na linuxový Pass. Před několika měsíci mě kamarád poprosil o návod a úvod do pass. Nakonec to trvalo déle, ale článek je konečně hotový. Jsem moc rád, že vyšel, protože Pass rozhodně stojí...

Midterm Elections 2022: Crypto Live Blog


The U.S. votes for the House and Senate today. Control of the legislature is up for grabs. CoinDesk’s Nikhilesh De, Jesse Hamilton and Cheyenne Ligon will bring you live updates on the crypto market’s reaction and what the results could mean for the industry

Jet - nový PHP8 framework #3 - MVC - ne, fakt to není CMS :-)


V minulém díle jsem „z rychlíku“ ukázal jak co zhruba Jet obnáší. A pochopitelně to vzbudilo reakci, kterou jsem tak trochu očekával. Tedy to co jsem předvedl mohlo budit dojem, že Jet je nějaké CMS. A ne, Jet opravdu není CMS. CMS jsou více či méně zaměřené na určitý účel (a ano, vím, že existují...

A Couple Changes Coming in Chrome 108


“A change to overflow on replaced elements in CSS”: From Chrome 108, the following replaced elements respect the overflow property: img, video and canvas. In earlier versions of Chrome, this property was ignored on these elements. This … A Couple Changes...

Locate Empty Directories from Command Line


As a software engineer that lives too much of his life on a computer, I like keeping my machine as clean as possible. I don’t keep rogue downloaded files and removes apps when I don’t need them. Part of keeping a clean, performant system is removing empty directories. To identify empty...

How to Extend Prototypes with JavaScript


One of the ideological sticking points of the first JavaScript framework was was extending prototypes vs. wrapping functions. Frameworks like MooTools and Prototype extended prototypes while jQuery and other smaller frameworks did not. Each had their benefits, but ultimately all these years later...

C++20: Jak se budí korutiny


Minulý článek vyzněl jako kritika implementace korutin v C++20. To jsem ani nechtěl, naopak si myslím, že je to skvěle vymyšlené z ohledem na užitečnost a vyjadřovací svobodu, kterou to přináší. Problémem je spíš neexistence pravidel a doporučení jak korutiny implementovat. Nositelem takových...

Jet - nový PHP8 framework #2 - Jak se s tím pracuje?


V minulém díle jsem představil svou maličkost a vysvětlil jsem mé pohnutky proč jsem PHP Jet vytvořil a nastínil filozofii toho PHP8 frameworku. V dnešním díle již žádné teoretizování a hurá rovnýma nohama do praxe. Ukažme si způsob práce v PHP Jet na malé aplikaci – databázi restaurací. Ta bude...

How to Use window.crypto in Node.js


I’ve been writing a bunch of jest tests recently for libraries that use the underlying window.crypto methods like getRandomValues() and window.crypto.subtle key management methods. One problem I run into is that the window.crypto object isn’t available, so I need to shim it. To use...

Convert Fahrenheit to Celsius with JavaScript


The United States is one of the last bodies that refuses to implement the Celsius temperature standard. Why? Because we’re arrogant and feel like we don’t need to change. With that said, if you code for users outside the US, it’s important to provide localized weather data...

Create a Thumbnail From a Video with ffmpeg


Creating a thumbnail to represent a video is a frequent task when presenting media on a website. I previously created a shell script to create a preview video from a larger video, much like many adult sites provide. Let’s view how we can create a preview thumbnail from a video! Developers...

Detect System Theme Preference Change Using JavaScript


JavaScript and CSS allow users to detect the user theme preference with CSS’ prefers-color-scheme media query. It’s standard these days to use that preference to show the dark or light theme on a given website. But what if the user changes their preference while using your app?...

How to Use Storage in Web Extensions


Working on a web extension is an interesting experience — you get to taste web while working with special extension APIs. One such API is storage — the web extension flavor of persistence. Let’s explore how you can use session and local storage within your Manifest V3...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace