All Articles
[FIXED]: partially initialized module 'inspect' has no attribute 'cleandoc'
The problem was naming a local module with the same name as an imported module. I had a file called ./tokenize.py and moving it to ./run_tokenize.py solved the problem.
Variational Autoencoder (VAE) — PyTorch Tutorial
By Reza Kalantar. Also, take a look at another VAE by Alexander Van de Kleut.
How to set a default publish_on field when creating a node in drupal 9
Via chatgpt.
An easier example is to set the default title first:
Intuitive Guide to Understanding KL Divergence
From Forward Data Science.
Concept Grounding
First of all let us build some ground rules. We will define few things we need to know like the back of our hands to understand KL divergence.
[FIXED]: Table is marked as crashed and should be repaired
Running this worked for me:
mysqlcheck --repair --all-databasesYou may need to add your credentials and hostname to the command.
UIUX: Examples of Email newsletter designs
Here are some examples of Email newsletter designs - enjoy if you find them useful!
Some UIUX Examples
Below are generated some UIUX examples - enjoy if you find them useful!
A list of useful Drupal modules
Here is a quick list of modules that I find very useful. If you are a drupal developer, I encourage you to look into each of them and consider using them.
Ping / monitoring: Alternative to uptimerobot_com
- uptime kuma
^ that's a self-hosted alternative to Uptimerobot.
How to check where a method is defined, in ruby
You can use this pattern/idea:
CSV.new('string').method(:flock).source_location

Handle configuration settings in custom Drupal modules and example of using the configuration API in Drupal
Handling configuration settings in custom modules involves using the Configuration API provided by Drupal. This API allows you to define, manage, and access configuration settings in a structured and consistent way. Here’s how I approach it and an example of using the Configuration API in Drupal 10/11:
Using the Configuration API
Keycloak: How to override the password reset emails
In order to override the text of the password reset emails in Keycloak, you want to do the following.
Make your own copy of the default themes. These can currently be found at: https://github.com/Halazv2/keycloak-theme/tree/master/themes/base/email
Then, make changes to the theme as appropriate. There are several themes: the login theme stores the styling of the login pages. But the email theme contains the wording of the emails.
Default Drupal file attachment types
I have the following list of extensions that I usually permit in drupal attachments:
txt pdf doc docx html csv xlsx xlsm sh json
cer pem pub key
png jpg jpeg gif
mkv sfv avi mp3 mp4 webm mov
zip tar gz


