RSSAmplifier

Blog

Website and Phone App Strategy for Tech Companies | Harry Moreno

Website and Phone App Strategy for Tech Companies | Harry Moreno

morenoh149.github.ioRSS feed ↗10 posts

Latest posts

Google Cloud SQL Provision Cheapest Postgres Database

Here is the command for provisioning the cheapest database on Google Cloud SQL. There were a couple of pitfalls as I’ll explain. gcloud sql instances create myinstance \ --project my-project \ --database-version POSTGRES_16 \ --tier db-f1-micro \ --region your-region \ --edition ENTERPRISE Notes: By default you may be instructed in the code labs to run gcloud sql instances create myinstance…

Sliding Window in python trapezoid

I often find myself having to reimplement the sliding window algorithm. Here is a basic template for sliding windows. It is a good starting point for adding other features like counting characters or tracking the largest size of the window. This template takes a basic two-pointer approach. But it reads better from top to bottom and generalizes more than other solutions I have seen. First we…

Django log slow queries

It is important to keep track of the performance of your application. One popular way to do this is to log slow queries. Below is how to do this in Django python. Your logging config will vary depending on how your django app is setup. On simpler django sites it might be in settings.py LOGGING = { 'version' : 1 , 'disable_existing_loggers' : False , 'filters' : { 'slow_queries' : { '()' :…

My review of Pandas 30 day challenge

Recently I completed the Leetcode 30 day Pandas Challenge. Pandas is a popular python library for data analysis and Leetcode has made a set of problems to learn it. Here I share my thoughts on the problems and whether you should try it too. Some background. Before this challenge I felt I had a good understanding of Pandas. I understood what dataframes and Series are. How pandas builds upon numpy…

How to prepare for the Flask Backend Engineer Interview

Python development is great for modern web development. There are several python based web frameworks that can help speed up building your web app. In this post we’ll go over one popular framework, Flask, and some of the topics you might get asked in an interview setting. How to prepare Review Flask documentation : It’s important to have a good understanding of the Flask framework and its…

Monitoring Django with Tracing and OpenTelemetry

Distributed tracing allows to observe requests as they propagate through distributed systems, especially those built using a microservices architecture. In a distributed environment, tracing also helps you understand relationships and interactions between microservices. Distributed tracing gives an insight into how a particular microservice is performing and how that service affects other…

How to Test TLS in SWAKS

In this post we detail how to use Swaks for testing emails over tls. This post picks up where the manual page leaves off and more explicitly goes over how to send a test email over tls. Swaks is a popular tool in penetration testing circles, it is written in Perl and according to it’s github history it was first published on December 12th 2001. Installing Swaks is available from most popular…

Cybersecurity Tips that Could Save Your Small Business

Cybercriminals like to go after small businesses because they tend to be vulnerable and unprotected compared to larger companies. In fact, nearly half of all cyber attacks target small businesses! Did you know that most small companies that experience a cyber attack go out of business within just six months? Fortunately, there are several precautions you can take to protect your customers’ data…

Django Find Records in an Hour

Here we show how to select all records that occur in an hour. This is useful for cases where you are running an async task at some interval smaller than a day. My first attempts at doing this type of filtering involved providing a start and end datetime. But there is a way to do it more simply by leveraging some database functions. I needed to schedule microservice calls based on some business…

Django Email Management Command

Here we share a small django management command that sends an email. This command is useful because it will use the same email credentials the rest of your django api is using to send emails. So you can use this as a sanity check to see if your settings are correct. # <your app>/management/commands/send_email.py from django.conf import settings from django.core.mail import send_mail from…