Kamal Mustafa

Kamal Mustafa @k4ml

About: Python/Django Developer at Kafkai.com, AI Writer for Generating Content, Built Exclusively for SEOs and Marketers.

Location:
Malaysia
Joined:
Aug 9, 2017

Kamal Mustafa
articles - 52 total

Passing Django request object

It handy to pass the request object around but that's a bad practice. Maybe it's influenced from past...

Learn More 1 0Oct 30 '24

Adding pytest command to Django manage.py

The preferred way to invoke pytest is via the pytest command. Even the app pytest-django doesn't...

Learn More 1 0Oct 28 '24

PostgreSQL as a Celery Broker

I’m currently using Redis as the broker for Celery, but since I already have PostgreSQL running, I...

Learn More 3 2Oct 23 '24

Wagtail programmatically create page translation

I can't find any programmatic interface to create page translation. All the logics seems being...

Learn More 1 0Sep 30 '24

Inline script defer

Problem when using defer to load external script is when you have inline script that depends on the...

Learn More 1 0Jan 4 '24

Chiselled Ubuntu containers GA

Smaller Ubuntu container images. But I think it still low level tools for building such images,...

Learn More 1 0Dec 11 '23

Isso comment system - alternative to disqus

It's a simple self hosted comment system, build in Python and just use sqlite database. By default it...

Learn More 0 1Aug 2 '23

Any estimates longer than 3 days tend to be wrong

So breakdown tasks so that each part can be finished within 3 days. Break down tasks by 𝗱𝗲𝗰𝗼𝗺𝗽𝗼𝘀𝗶𝗻𝗴...

Learn More 0 0May 16 '23

Python virtualenv no activate

My workflow when starting new python project or experimenting with something:- mkdir myproject cd...

Learn More 1 2Jan 19 '23

GNOME Asia Summit 2022

GNOME Asia Summit 2022 this year was held as physical event in Kuala Lumpur for the first time after...

Learn More 4 0Dec 8 '22

Misc notes on Github Codespaces

Just some quick notes since I have spent few hours trying to get nix working on Codespaces and get...

Learn More 3 2Jun 26 '22

Django: _ (underscore) settings gotchas

It so happened that after we add some localization setup in our app, running our tests error out...

Learn More 6 0Jul 27 '21

Firefox and Chrome resolve any localhost domain (*.localhost) to loopback address

I was reading this reddit's thread and this comment caught my interest:- Chrome and Firefox also co...

Learn More 6 1May 24 '21

Python explicit self and turning function into method

Python self is one of the source of confusion and questions when someone start learning Python, espec...

Learn More 6 0Jul 21 '20

Law of leaky abstraction and on learning the internal a.k.a the hard way

Update #1 2021 - Someone pointed me to this article about cargo cult programming is killing (Sri...

Learn More 8 7Jun 26 '20

pipm: pip install to local-packages and pip run

Updates Look like there was already previous effort on this, there's even PEP being writte...

Learn More 7 1Nov 27 '19

Python local-packages, à la npm node_modules

Updates Follow-up post where I made this into simple program called pipm. ****************...

Learn More 10 0Nov 26 '19

Python: Compile standalone executable with nuitka

So nuitka compile python code into an executable. I have always impress with Go ability to generate s...

Learn More 12 6Nov 9 '19

Git extract single file with history

We have one python module that we want to split into it's own repo as we start using it in more than...

Learn More 9 0Aug 11 '19

DevOps is a culture, not a role

The traditional problem between dev and ops is the conflicting goal that they have in order to achiev...

Learn More 48 7Jul 23 '19

Editing images in Linux

tldr; It still painful. I've just switched to Thinkpad X1 Carbon and running Fedora 30. Really misse...

Learn More 7 4Jul 5 '19

Recalling memory in the age of information overload

Oh man, recalling memory is hard in this information overload days 😅 It started by a friend sharing...

Learn More 3 0May 30 '19

AWS ALB routing based on HTTP method

tldr;- It's not possible at this moment. The new AWS ALB has more flexible way...

Learn More 8 1Mar 12 '19

Receiving email with SES and Slack

When getting new domain, one of the crucial thing we need to have is to be able...

Learn More 8 2Jan 15 '19

Snippet or not indexed posts

Sometimes I just want to add quick notes but it's not qualify as proper post. I...

Learn More 6 2Jan 9 '19

How bad is self-signed cert?

How bad is you when it come to verifying a cert? People use cert from CA becaus...

Learn More 4 1Jan 8 '19

Python: DIY virtualenv

virtualenv in Python is a very well known tools. Almost all tutorial will recom...

Learn More 11 0Jan 3 '19

How is a program on linux executed?

Just a self notes to refresh my mind on this, as it keep popping from time to time and I have to goog...

Learn More 8 2Dec 28 '18

Nashorn JavaScript engine

Few days ago, while looking at this SIP server, I noticed it being executed usi...

Learn More 3 1Dec 26 '18

Python urldecode on command line

I have some logs that contain url with encoded characters and I need to extract...

Learn More 6 2Dec 2 '18