Skip to main content

ELL Blog

Tag: Tutorial

yt-dlp Audio Download Tutorial

Since my yt-dlp propaganda on YouTube is getting many views, I thought I’d create this article and a future video on how to use yt-dlp to download audio from websites, primarily YouTube.

Troubleshooting

For most errors like 403: Forbidden, try upgrading yt-dlp.

pip install --upgrade yt-dlp

Installing yt-dlp

Rust JSON Manipulation

This post provides a tutorial on manipulating JSON data in Rust, specifically within the context of the Rocket web framework using rocket::serde::json (which wraps serde_json). It demonstrates how to work with arbitrary JSON using serde_json::Value and how to define and manipulate JSON with Rust structs using #[derive(Serialize, Deserialize)] and std::borrow::Cow for flexible string handling. The post includes examples for both GET and POST requests.

React Tips

This post provides various tips for React development, covering topics such as optimizing state updates with objects, using React Fragments instead of redundant divs, defining props in component parameters using object destructuring, organizing Context Providers with a Providers.jsx component, checking variable types, using a useCookie hook for simple storage, understanding the purpose of useLayoutEffect, using useRef for persistence, and ignoring variables from array destructuring.

JavaScript Snippets

This post provides useful JavaScript code snippets for common tasks, aiming to save developers time. It includes functions for converting date and time formats (YYYYMMDDHHMM to Date and vice versa, YYYYMMDD to Date and vice versa), and a utility function for accurately determining the true type of a JavaScript object. The snippets are presented with code examples for easy implementation.