Blog

Page 233 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Convert Dictionary to JSON in Swift
jsonserialization

Convert Dictionary to JSON in Swift

Published on September 2, 2023

# Converting Dictionary to JSON in Swift: A Simple Guide πŸ“πŸ”€πŸ”’ So, you have a dictionary in Swift, and now you want to convert it to JSON. Don't worry, we've got you covered! In this guide, we'll walk you through the process step by step, addressing comm

Cover Image for Storing Images in DB - Yea or Nay?

Storing Images in DB - Yea or Nay?

Published on September 2, 2023

# Storing Images in DB - Yea or Nay? πŸ“ΈπŸ’Ύ So, you're pondering whether to store images directly in the database or save the location in the filesystem instead. πŸ€” It's a common question that many developers face. Let's dive into the pros and cons of each

Cover Image for Run PostgreSQL queries from the command line

Run PostgreSQL queries from the command line

Published on September 2, 2023

# How to Run PostgreSQL Queries from the Command Line πŸ’»πŸ˜ So you've inserted some data into your PostgreSQL database, and now you're eager to display the entire table with all its rows, columns, and data. Luckily for you, running queries from the command

Cover Image for How to remove a field completely from a MongoDB document?
mongodb

How to remove a field completely from a MongoDB document?

Published on September 2, 2023

# How to Remove a Field Completely from a MongoDB Document πŸ’₯ So, you have a MongoDB document and you want to bid farewell to a specific field. Whether it's because you no longer need it or it's causing issues, we've got you covered! Let's dive into how y

Cover Image for MongoDB or CouchDB - fit for production?
mongodb

MongoDB or CouchDB - fit for production?

Published on September 2, 2023

# MongoDB or CouchDB - Fit for Production? πŸ€” Are you considering MongoDB or CouchDB for your production environment? It's natural to have concerns about adopting new technology, especially when they are relatively young projects. But don't worry, we've g

Cover Image for Can I have multiple primary keys in a single table?

Can I have multiple primary keys in a single table?

Published on September 2, 2023

# Can I have multiple primary keys in a single table? πŸ€”πŸ”‘ **Short answer**: No, a table can only have one primary key. 🚫 Now that we've got that out of the way, let's dive deeper into why this is the case and explore alternative solutions for your need

Cover Image for What"s the Hi/Lo algorithm?
algorithmidentifier

What"s the Hi/Lo algorithm?

Published on September 2, 2023

πŸ”Unlocking the Mystery of the Hi/Lo Algorithm πŸ” Have you ever stumbled upon the mystical Hi/Lo algorithm while perusing the depths of NHibernate documentation? πŸ€” Well, fret no more, dear reader, for we shall shine a light on this enigmatic algorithm an

Cover Image for List of standard lengths for database fields

List of standard lengths for database fields

Published on September 2, 2023

πŸ” Unlocking the Mystery: A Guide to Database Field Lengths πŸ“Š πŸ’­ Have you ever found yourself scratching your head while designing a database table, wondering how long each field should be? πŸ˜• It's a common dilemma, and we are here to demystify it for y

Cover Image for How can I stop redis-server?
redis

How can I stop redis-server?

Published on September 2, 2023

# How to Stop Redis-Server and Start Fresh So, you're trying to start a new Redis server, but you're getting an error message saying "Opening port: bind: Address already in use". It seems like there's a Redis server already running on your system, and you

Blog | Matheus Mello