Quantcast
Channel: Laurence Gellert's Blog
Browsing all 15 articles
Browse latest View live

Making Django’s Database Connection More Secure for Migrations

Since Django 1.7 (September, 2014) and the introduction of schema migrations, it has always bugged me that Django needs to connect to the database with a user that has pretty close to ALL privileges....

View Article


Why Software Should Not Be Grouped Under Information Technology (IT)

My first programming instructor told the class one day: “Technology is like floating on a river, and every so often you have to open your wallet and pay someone to stay afloat.” Partly it is nobody’s...

View Article


Image may be NSFW.
Clik here to view.

Full Stack Developer Retrospect

Back in 2012 I wrote a post What is a Full Stack developer. Somehow it ended up being the top hit in google for “full stack” for a number of years. It has had over 1.1 million views since 2015 when I...

View Article

Django Rest Framework How To Whitelist (Safelist) IP Addresses

Here is how to setup a list of IP addresses / subnets that are allowed to call a Django Rest Framework endpoint.  All other IP addresses will be blocked. Using an IP safe list is much easier than...

View Article

ADA Compliance Tips for Web Developers

After working on projects involving ADA / WCAG compliance I can assure you, the internet sucks for people who are visually impaired. Unless you are on a government website (required by law to be...

View Article


Full Stack Developer Skills and Technologies for 2019

Here are the specific technologies and skills that go with being a full stack developer in 2019.  Full stack development has two sides, front end and back end.  A full stack developer is someone who...

View Article

Basic Git Commands I Use Everyday

My opinion is very strong on this point – if you are using git, you should be using it on the command line. Git is the best and most popular tool for doing source control.  There used to be...

View Article

Image may be NSFW.
Clik here to view.

Why is WordPress so Popular?

WordPress is arguably the most successful “killer app” of the web in the last 10 years.  Since it is written in PHP and has a history of security vulnerabilities, most “software brains” dismiss it as a...

View Article


Image may be NSFW.
Clik here to view.

Mac vs Dell for Software Development with Cost Breakdown 2020

My 2015 Mac Book Pro is getting a little old and tired. I recently joined a project that uses a docker-compose configuration that spins up 8 separate containers. It barely works on my Mac. It takes a...

View Article


Querying Complex Data in Django with Views

Django has a powerful ORM, but like any ORM it suffers when querying data that has complex relationships. Django supports foreign keys and many to many relationships out of the box with ease. Sometimes...

View Article

How to Stop/Start an AWS EC2 instance using AWS CLI command line

In my experience the smaller the AWS EC2 instance the more often it freezes / completely locks up. Something goes wrong inside the AWS infrastructure and poof, no ability to SSH or do anything with it....

View Article

Image may be NSFW.
Clik here to view.

Getting back lists of data from the ChatGPT API

I’m working on a project where I’m trying to harvest lists of data from ChatGPT via its API. This post applies to the gpt-3.5-turbo model called via the API. I don’t have access to the GPT 4.0 API yet,...

View Article

Image may be NSFW.
Clik here to view.

Visualizing Relationships in ChatGPT

The other day I asked ChatGPT for some recommendations for new piano pieces based on one I had just finished. To my astonishment the list it provided was pretty good and lead me to a new piece I...

View Article


Image may be NSFW.
Clik here to view.

How To Make Python Code Run on the GPU

As a software developer I want to be able to designate certain code to run inside the GPU so it can execute in parallel. Specifically this post demonstrates how to use Python 3.9 to run code on a GPU...

View Article

Image may be NSFW.
Clik here to view.

Hitron CODA56 cable modem upgrade – before and after

I recently upgraded my cable modem from a Motorola MB8600 to a Hitron CODA56.  Reason being Xfinity was emailing me letting me know I could upgrade to DOCSIS 3.1 and get faster upload speeds. The...

View Article

Browsing all 15 articles
Browse latest View live