Writing
2026
2022
- Get the length of a Map in JavaScript
- Delete an element from a Map in JavaScript
- Get the first element of a Map in JavaScript
- Get an element from a Map using JavaScript
- Update an element in a Map using JavaScript
- Add an element to a Map in JavaScript
- Convert a Map to an object in JavaScript
- Convert an object to a Map in JavaScript
- Convert an array of objects to a Map in JavaScript
- Create a new Map object in JavaScript
- Remove trailing zeros from a number in JavaScript
- Parse float with 2 decimal places in JavaScript
- Format a number to 2 decimal places in JavaScript
- Round a number to 2 decimal places in JavaScript
- Calculate days between two OffsetDateTime objects in Java
- Calculate days between two ZonedDateTime objects in Java
- Calculate days between two LocalDateTime objects in Java
- Calculate days between two LocalDate objects in Java
- Check if an enum value exists in Java
- Iterate over enum values in Java
- Convert a string to an enum value in Java
- Convert a string to a char array in Java
- Convert a char array to a string in Java
- Convert a list to a map in Java
- Convert a list of objects to a list of strings in Java
- Convert a list of strings to uppercase in Java
- Remove the last character from a string in JavaScript
- Get the last N characters of a string in JavaScript
- Get the last character of a string in JavaScript
- Remove the first character from a string in JavaScript
- Get the first N characters of a string in JavaScript
- Get the first character of a string in JavaScript
- Check if a string is empty in JavaScript
- Use String replaceAll() method in JavaScript
- Replace a character in a string using JavaScript
- Replace multiple spaces with a single space in JavaScript
- Capitalize the first letter of each word in a string using JavaScript
- Loop through object properties using Object.entries() in JavaScript
- Loop through object values using Object.values() in JavaScript
- Loop through object keys using Object.keys() in JavaScript
- Iterate over object properties using for...in loop in JavaScript
- Check if a variable is a string in JavaScript
- Check if a variable exists or defined in JavaScript
- Check if a variable is undefined or NULL in JavaScript
- Check if a variable is an integer in JavaScript
- Check if a variable is a number in JavaScript
- Convert a date to another time zone in JavaScript
- Get current date and time in UTC using JavaScript
- Get a UTC timestamp in JavaScript
- Trim all strings in an array using JavaScript
- Update all elements in an array using JavaScript
- Convert milliseconds to a date in JavaScript
- Add years to a date in JavaScript
- Add months to a date in JavaScript
- Add seconds to a date in JavaScript
- Add minutes to a date in JavaScript
- Add hours to a date in JavaScript
- Get a list of all time zones in JavaScript
- Get the length of an object in JavaScript
- Read a text file into an array using Node.js
- Copy a file using Node.js
- Check if a file contains a string using Node.js
- Find files that match a pattern using Node.js
- Remove a query string from a URL using JavaScript
- Push an object to an array in JavaScript
- Format a number as a currency string in JavaScript
- Making an HTML number input display 2 decimal places using JavaScript
- Round a double or float number to 2 decimal places in Java
- Replace a string in a file using Node.js
- Check if checkbox is checked in JavaScript
- Check if an element is hidden or visible using JavaScript
- Get the previous page URL in JavaScript
- Check for a hash in URL using JavaScript
- Remove the hash from URL in JavaScript
- Send a JSON object as a parameter in HTTP requests in JavaScript
- Detect browser or tab closing in JavaScript
- Sort an array of objects by a property value in JavaScript
- Sort object property by values in JavaScript
- Validate an email address in JavaScript
- Upsert a document in Mongoose
- Query documents with "like" statement in Mongoose
- Increment or decrement a number value in Mongoose
- Query for distinct values in Mongoose
- Query documents at a specific date in Mongoose
- Delete a field from a document in Mongoose
- Query documents where value is not null in Mongoose
- Push or pull item from an array in Mongoose
- Delete documents in Mongoose
- Update documents in Mongoose
- Find documents in Mongoose
- Intro to Mongoose Queries
- Intro to Mongoose Subdocuments
- Intro to Mongoose Documents
2021
- Convert a string to an array in Java
- Convert an array to a string in Java
- Format a string in Java
- Delay or sleep a JavaScript function
- Pause the code execution in Java
- Terminate a Node.js application
- Download a file using Node.js
- Convert an integer to a string in Java
- Update the URL without page reload in JavaScript
- Reload the current page with JavaScript
- Redirect to another web page with JavaScript
- Get the current URL with JavaScript
- Intro to JavaScript Location Object
- Get the current day, month, and year in JavaScript
- Convert a date to a string in JavaScript
- Remove whitespace characters from a string in JavaScript
- Replace new line (\n) with HTML br tag in string using Java
- Loop through an array of objects in JavaScript
- Merge two maps in Java
- Convert a list to a comma-separated string in Java
- Convert a comma-separated string to a list in Java
- 4 ways to concatenate strings in JavaScript
- Find duplicates in an array using JavaScript
- Encode or decode a URL in Node.js
- Get the file extension from MIME type in Node.js
- Get the file extension in Node.js
- Convert a date to UTC string in JavaScript
- Create and read cookies in JavaScript
- Add or remove multiple CSS classes using JavaScript
- Create a multi-line string in JavaScript
- Use template literals in JavaScript
- Get current time zone in JavaScript
- Working with FormData API in JavaScript
- Upload files with FormData using JavaScript
- Limit the maximum files chosen using JavaScript
- Iterate over FileList in JavaScript
- Why is it still worth it to learn Java?
- Use the reduce() method in JavaScript
- Split a string in JavaScript
- Catch exceptions in setTimeout and setInterval
- Detect a mobile device with JavaScript
- Load a script asynchronously using JavaScript
- Detect when the user stops typing in JavaScript
- Create an object with dynamic keys in JavaScript
- Download a file in JavaScript
- ?AcquireBase: Buy and Sell Internet Startups for Free
- Use String replace() method in JavaScript
- Use computed property names in JavaScript
- Thymeleaf switch statement with multiple cases
- Check if Java is installed
- Install RabbitMQ on macOS and Ubuntu 20.04
- Mongoose connect using async/await
- Intro to Mongoose Models
2020
- Intro to Mongoose schema types
- Use ES6 classes to create Mongoose schemas
- Intro to classes in JavaScript
- Use Mongoose timestamps
- Get started with Mongoose virtuals
- Intro to Mongoose Schemas
- Connect with MongoDB using Mongoose in Node.js
- Setting up a local MongoDB connection in Node.js
- Working with MongoDB using the Mongo Shell
- Install MongoDB on macOS using Homebrew
- Install and use Homebrew on macOS
- Storing and retrieving objects in local storage using JavaScript
- Iterating over all keys stored in local storage using JavaScript
- Check if a key exists in local storage using JavaScript
- HTML Web Storage API: Local Storage and Session Storage
- Add days to a date in JavaScript
- Use Object.is() method in JavaScript
- Generate random numbers in JavaScript
- Convert an array of objects to an object in JavaScript
- Get the current day, month, and year in Node.js
- Get the size of a file in Node.js
- Hash passwords using Bcrypt in Node.js
- Generate a random string in JavaScript
- Detect Internet Explorer browser using JavaScript
- Toggle password visibility using JavaScript
- Insert an element after another element in JavaScript
- Detect if caps lock is on using JavaScript
- Detect if an element has focus using JavaScript
- Check if document is ready using JavaScript
- Triggering built-in and custom events using JavaScript
- Create a one-off event handler in JavaScript
- Remove an event handler in JavaScript
- Add an event handler in JavaScript
- Read and write JSON files in Node.js
- Monitoring Your Node.js App with Scout APM
- Prevent default action of an event in JavaScript
- Stop propagation of an event in JavaScript
- Get all own properties of an object in JavaScript
- Own and inherited properties of an object in JavaScript
- Check if a property exists in an object in JavaScript
- Convert an object to an array in JavaScript
- Get the offset position of an element relative to its parent in JavaScript
- Get the scrollbar width of an element using JavaScript
- Replace a CSS class of an element using JavaScript
- Toggle a CSS class of an element using JavaScript
- Remove a CSS class from an element using JavaScript
- Add a CSS class to an element using JavaScript
- Get the width and height of the window using JavaScript
- Get and set scroll position of the document using JavaScript
- Get and set scroll position of an element using JavaScript
- Get height and width of an element using JavaScript
- Remove an attribute from the element using JavaScript
- Set the value of an attribute using JavaScript
- Get the value of an attribute using JavaScript
- Check if an element has children using JavaScript
- Check if an element has attributes using JavaScript
- Check if an attribute exists using JavaScript
- Remove all children of an element using JavaScript
- Replace an element using JavaScript
- Clone an element using JavaScript
- Get all siblings of an element using JavaScript
- Get the next and previous siblings of an element using JavaScript
- Get the closest element by selector using JavaScript
- Get first and last children of an element using JavaScript
- Get the children of an element using JavaScript
- Get the parent of an element in JavaScript
- Select elements by name using JavaScript
- Encrypt and decrypt data in Node.js
- Access data in Thymeleaf templates
- Check if a value is an object in JavaScript
- Understanding Object.assign() Method in JavaScript
- Remove a property from an object in JavaScript
- Add a property to an object in JavaScript
- Compare two objects using JavaScript
- Clone an object in JavaScript
- Merge two objects in JavaScript
- Create an object in JavaScript
- ES6 Object Literal Property Value Shorthand in JavaScript
- Populate an array with zeros or objects in JavaScript
- Convert arguments object to an array in JavaScript
- Use Array.from() method in JavaScript
- Add, remove, and replace items using Array.splice() in JavaScript
- Lowercase or uppercase all array values in JavaScript
- Check if an array contains a value in JavaScript
- Deep clone an array in JavaScript
- Use object & array destructuring in JavaScript
- Remove items from an array in JavaScript
- Flatten an array in JavaScript
- Merge two arrays in JavaScript
- Add items to an array in JavaScript
- Shuffle an array in JavaScript
- Convert a string to an array in JavaScript
- Convert an array to a string in JavaScript
- Check if an object is an array in JavaScript
- Copy an array in JavaScript
- Compare two arrays in JavaScript
- Find matching items in an array using JavaScript
- Use Array.map() method in JavaScript
- Remove duplicates from an array in JavaScript
- Empty an array in JavaScript
- JavaScript arrays
- Get all query string parameters as an object in JavaScript
- Get query string parameters in JavaScript
- Add and update query string parameters using URLSearchParams
- Convert an object to a query string using JavaScript
- Check if an image exists on the server in JavaScript
- Edit an XML file with Node.js
- Read input from the command line in Node.js
- Convert XML to JSON in Node.js
- Delete a non-empty directory in Node.js
- Check if file is readable, writable, or executable in Node.js
- Rename a directory in Node.js
- List all files in a directory with Node.js
- Create a directory in Node.js
- Check if a directory exists in Node.js
- Convert JSON to CSV in Node.js
- Convert CSV to JSON in Node.js
- Encoding and decoding Base64 strings in Node.js
- Get a random value from an array with JavaScript
- Get the current directory in Node.js
- Pretty-print a JSON object with JavaScript
- Get the last modified date of a file with Node.js
- Append data to a file in Node.js
- Delete a file in Node.js
- Create an empty file in Node.js
- Read and write a JSON object to a file in Node.js
- Convert HTML to Markdown with JavaScript
- Start a local web server from any directory
- Install Nginx on Ubuntu 18.04
- Remove an element from the DOM in JavaScript
- Insert an element after another DOM element with JavaScript
- Insert an element before another DOM element with JavaScript
- Insert an element to the DOM in JavaScript
- Update the text content of a DOM element in JavaScript
- Update the HTML markup of a DOM element with JavaScript
- Create a DOM element using JavaScript
- Select a DOM element by ID using JavaScript
- Select DOM elements by tag name using JavaScript
- Select DOM elements by class name using JavaScript
- Select DOM elements by CSS selectors using JavaScript
- Hide and show DOM elements using a CSS class in JavaScript
- Check if an element contains a CSS class in JavaScript
- Add, remove, and toggle CSS classes in JavaScript
- Hide and show DOM elements using JavaScript
- Add multiple CSS styles using JavaScript
- Set CSS styles using JavaScript
- Get CSS styles from an element with JavaScript
- Intro to HTML DOM style property in JavaScript
- Convert a NodeList to an array in JavaScript
- Difference between a NodeList and an Array in JavaScript
- Intro to HTMLCollection in JavaScript
- Intro to NodeList in JavaScript
- Decode a URL using JavaScript
- Encode a URL using JavaScript
- Open a URL in a new tab or window on button click in JavaScript
- Convert an array to an object in JavaScript
- Converting strings to uppercase and lowercase with JavaScript
- Using the Fetch API to get HTML response in JavaScript
- Monitor progress using XMLHttpRequest (XHR)
- Upload a file using XMLHttpRequest (XHR) and Node.js
- Remove the last character of a string in Java
- Reverse the elements of a stream in Java
- Extract digits from a string in Java
- Handle XHR JSON response in JavaScript
- Send JSON request using XMLHttpRequest (XHR)
- Send POST request using XMLHttpRequest (XHR)
- Difference between for...of and for...in loops in JavaScript
- Iterate over DOM elements using JavaScript
- Iterate over object keys and values in JavaScript
- Loop through an array in JavaScript
- Use for...of loop in JavaScript
- Base64 encoding and decoding in JavaScript
- Use forEach() Loop in JavaScript
- Spring Boot Optional Path Variables
- Display a custom error page in Spring Boot
- Change or disable the default banner in Spring Boot
- Change the default port in Spring Boot
- Spring Boot and Thymeleaf File Upload Example
- Working with Thymeleaf Layout Dialect in Spring Boot
- Use fragments in Thymeleaf
- HTML Form Handling in Thymeleaf and Spring Boot
- How set a JavaScript variable in Thymeleaf
- Get query string parameters in Thymeleaf
- Get session attributes in Thymeleaf
- Dynamically add/remove CSS classes in Thymeleaf
- Iterating through Map, List, Set, and Array in Thymeleaf
- Get the current environment in Thymeleaf
- Display and compare enum values in Thymeleaf
- Set and use a local variable in Thymeleaf
- Conditionally add attributes in Thymeleaf
- Construct URLs in Thymeleaf
- Check if a variable is defined in Thymeleaf
- Handle null values in Thymeleaf
- Use Custom HTML5 Attributes in Thymeleaf
- Use conditionals in Thymeleaf
- Use Thymeleaf with Spring Boot
- Intro to Spring Boot Starters
- Upload and parse a CSV file using Spring Boot
- Install MySQL on Ubuntu 18.04
- Scaffold a Spring Boot application
- Read and parse a CSV file in Java
- Calculate days between two dates in Java
- Check if a string contains a substring in Java
- Convert a Java object to XML using JAXB
- Read and write XML using Java
- Generate random numbers in Java
2019
- Convert string to LocalDateTime in Java
- Convert string to LocalDate in Java
- Convert LocalDateTime to string in Java
- Convert LocalDate to string in Java
- Convert a date to string in Java
- Add days to a date in Java
- Compare two dates in Java
- Get the Unix timestamp in Java
- Get current timestamp in Java
- Convert a string to date in Java
- Get current date and time in Java
- Intro to Java 8 Date and Time API
- Convert a byte array to a string in Java
- Filter a Map with Java 8 Stream API
- Use forEach() method to loop in Java
- Create a temporary directory in Java
- Create a temporary file in Java
- Get the current working directory in Java
- Traverse a directory structure in Java
- Move a file to another directory in Java
- Copy files from one directory to another in Java
- Create symbolic and hard links in Java
- Check if directory is a symbolic link in Java
- Check if directory is empty in Java
- Delete a directory recursively in Java
- Delete a directory in Java
- Create a directory in Java
- Get the absolute path of a file in Java
- Get the file last modified date in Java
- Change the file last modified date in Java
- Check if a file is hidden in Java
- Make a file read only in Java
- Check if file is readable, writable or executable in Java
- Check if a directory exists in Java
- Check if a file exists in Java
- Read a File to a String in Java
- Download and save a file from Internet in Java
- Read an Object from a File in Java
- Write an Object to a File in Java
- Convert InputStream to OutputStream in Java
- Convert an InputStream to a File in Java
- Convert a String to an InputStream in Java
- Convert an InputStream to a String in Java
- List all files in a directory in Java
- Delete a file in Java
- Create a file in Java
- Get a file size in Java
- Read a file using Files.readAllBytes() in Java
- Lock a file before writing in Java
- Save a string to a text file using Java
- Append text to a file in Java
- Write to a file using FileOutputStream in Java
- Read a file using FileInputStream in Java
- Create and write to a file in Java
- Write to a file using BufferedWriter in Java
- Read a file using BufferedReader in Java
- Reading and Writing Files using Java NIO API
- Read and Write Binary Files in Java
- Read and Write Text Files in Java
- Reading and Writing Files in Java
- Concatenate two arrays in Java
- Check if an array contains a value in Java
- Convert an Array to a List in Java
- Split a string by new line in Java
- Split a string in Java
- Read JSON from a file using Gson in Java
- Write JSON to a file using Gson in Java
- Read and write JSON as a stream using Gson
- Pretty print JSON using Gson in Java
- Convert JSON String to and from Map using Gson
- Convert JSON Array to List using Gson in Java
- Convert Java Object to JSON using Gson
- Read and write JSON using Gson in Java
- Read JSON from a file using Jackson
- Write JSON to a file using Jackson
- Create a JSON Object using Jackson
- Create a JSON array using Jackson
- Working with Tree Model Nodes in Jackson
- Convert Java Object to JsonNode using Jackson
- Pretty print JsonNode to JSON string using Jackson
- Convert JSON string to JsonNode using Jackson
- Map a dynamic JSON object with Jackson
- Ignore unknown JSON properties with Jackson
- Pretty print JSON using Jackson in Java
- Ignore Null Fields with Jackson in Java
- Convert JSON String to Map using Jackson
- Convert JSON array to a list using Jackson in Java
- Convert Java Object to JSON using Jackson
- Read and write JSON using Jackson in Java
- RestTemplate POST Request with JSON and Headers
- RestTemplate GET Request with Parameters and Headers
- Spring Boot RestTemplate Error Handling
- Read and write JSON using JSON.simple in Java
- Read and write JSON Files in Java
- Spring Data JPA Auditing using Spring Boot and MySQL
- Dynamic Queries with Spring Data JPA Specifications
- Intro to Spring Data JPA Repositories
- Spring Data JPA Composite Primary Key Mapping Example
- Spring Data JPA Many To Many Relationship Mapping Example
- Spring Data JPA One To Many Relationship Mapping Example
- Spring Data JPA One To One Relationship Mapping Example
- Pagination with Spring Data JPA
- Sorting Query Results with Spring Data JPA
- Use Spring Data JPA Named Queries
- Spring Data JPA Custom Queries using @Query Annotation
- Derived Query Methods in Spring Data JPA
- Accessing Data with Spring Data JPA and MySQL
- Spring Data JPA with H2 DataBase and Spring Boot
- Get started with Spring Data JPA
- Read and write CSV files using core Java
- Base64 Encoding and Decoding in Java
- Install Node.js and NPM on Ubuntu 18.04
- Encode or decode a URL string in Java
- Read cookies in Spring Boot
- Express File Upload with Multer in Node.js
- Install Gradle on Ubuntu 18.04
- Install Java on Ubuntu 18.04
- Increase Tomcat Default Memory Size
- Use basic authentication with RestTemplate
- Make an HTTP Post Request using Node.js
- Make HTTP Requests using Node.js Request Module
- Make HTTP Requests in native Node.js
- Read and write CSV files using OpenCSV
- Use for...in loop in JavaScript
- Capitalize the first letter of each word in a string using Java
- Capitalize the first letter of a string in Java
- Sort a List using Stream sorted() in Java
- Sort a Map in Java
- Check if a string contains a substring using indexOf() in JavaScript
- Check if a string contains a substring using includes() in JavaScript
- Read and write CSV files using Apache Commons CSV
- Install MongoDB on Ubuntu 18.04
- Create a Sudo User on Ubuntu 18.04
- Add and Delete Users on Ubuntu 18.04
- JSON with Examples
- Get the Unix timestamp in JavaScript
- Read a file line by line in Node.js
- Check if a file exists in Node.js
- Read and write files in Node.js
- Convert a string to an integer in Java
- Read a file line by line in Java
- Use the Fetch API to GET and POST data in JavaScript
- Schedule Tasks in Spring Boot
- Object.entries() and Object.values() methods in JavaScript
- Check if an object is empty in JavaScript
- Uploading files on the server using Fetch API
- Make HTTP requests using XMLHttpRequest (XHR)
- Use the URL Object in JavaScript
- 4 ways to compare strings in Java
- Create an ArrayList in Java
- Convert a List to a Set in Java
- Check if a date is today in JavaScript
- Get current year in Thymeleaf
- Convert country code to emoji flag in Java
- Convert a string to a number in JavaScript
- Set a cookie with Response Entity in Spring Boot
- Upload a file with Ajax in Spring Boot
- Make HTTP requests using RestTemplate in Spring Boot
- Intro to Service Workers in JavaScript
- Understanding objects, prototypes, and classes in JavaScript
- Get DOM elements using JavaScript
- Understanding JSON.parse() and JSON.stringify()
- Intro to Map object in JavaScript
- Intro to Set object in JavaScript
- Use async/await in JavaScript
- Using Fetch API to make HTTP requests in JavaScript
- Use Axios to make HTTP requests in JavaScript
- Use Promise.all() in JavaScript
- Intro to JavaScript Arrow Functions
- Intro to Promises in JavaScript
- Reverse a string in JavaScript
- Capitalize the first letter of a string in JavaScript
- Display Desktop Notifications using JavaScript
- Replace all occurrences of a string in JavaScript
- Make HTTP Requests using Needle in Node.js
- Intro to JavaScript Regular Expressions
- Check if a string contains a substring in JavaScript
- Create and read cookies in Spring Boot
- Change the default Java version on Ubuntu
- Serve static resources in Express
- Make HTTP Requests using Axios in Node.js
- Upload files in Node.js and Express
- Upgrade Ubuntu 18.10 to 19.04 Disco Dingo
- Upgrade Ubuntu 18.04 to 18.10 Cosmic Cuttlefish
- Export & download data as a CSV file in Spring Boot
- Add Deep Anchor Links to Your Blog using JavaScript
- Upload and download files using Spring Boot REST API
- Parse XML response in Spring Boot
- Accepting credit card payments with Stripe in Spring Boot
- A guide to type conversion in Java
- Create a Spring Boot console application
- Parse JSON data in Spring Boot
- Export PostgreSQL table data as JSON
- Spring Boot Thymeleaf Pagination
- Send emails using Amazon SES in Node.js
- Make HTTP requests in Node.js
- Upgrade Debian 8 Jessie to Debian 9 Stretch
- Fix Tomcat 8 slow start issue