Mohammed Hammoud·Oct 29, 2023How to use .env in package.jsonI’ve done this many times, but like every other developer, I often start by searching on Google. Unfortunately, many posts are long and…A response icon1A response icon1
Mohammed Hammoud·Oct 24, 2023How to test abstract models In DjangoI recently created an abstract model for handling soft deletions in Django and wanted to add some tests to verify the behaviour. Testing…A response icon1A response icon1
Mohammed Hammoud·Jul 31, 2017How to install an npm package from GitHubSometimes the JavaScript package you want to install has not been published to the npm registry and you really want to install the npm…
Mohammed Hammoud·Jul 23, 2017How to avoid being asked for git passphraseOk so this is super annoying. Every time i wanted to make git pull/push or whatever my terminal was prompting me for my git passphrase…
Mohammed Hammoud·Jul 23, 2017How to install pip on macOS or OS XOk so you’re probably here because you want to know how to install pip on maxOS or OS X, well it’s quite easy.
Mohammed Hammoud·Jul 22, 2017Running Elasticsearch on startupI recently created my own Elasticsearch cluster, and for some reason, I don’t know if it’s by default but the Elasticsearch service didn’t…
Mohammed Hammoud·Jul 21, 2017Being a developer isn’t all sunshine and rainbowsBeing a developer does not automatically mean that the creative part of the brain shuts down and that there is only one way to solve a…
Mohammed Hammoud·Jul 20, 2017How to remove extra spaces in a JavaScript StringRecently I wanted to remove extra spaces inside of string. The easiest way to do that was by extending JavaScript’s String object. You…A response icon1A response icon1
Mohammed Hammoud·Apr 27, 2017Fix locale.Error: unsupported locale settingOk, so I’ve just encountered the following error on my newly installed Ubuntu Machine: locale.Error: unsupported locale setting when I was…
Mohammed Hammoud·Apr 26, 2017PostgreSQL — Create User, Create Database, Grant privileges/access.Let’s assume that you’ve already have PostgreSQL installed on your Ubuntu machine and that you want to create a user, create a database and…A response icon6A response icon6