DEIENAMI Techblog
  • Home
  • Engineering
  • Business & Startups
  • Insights
Subscribe
Engineering

[Solved] CORS policy error when connecting frontend frameworks to Django

When trying to integrate frontend frameworks to Django you usually face an error.Which says something like the following : Access to XMLHttpRequest at 'http://localhost:8000/" from orgin 'http://localhost:8080' has been blocked by CORS policy: Request header field access-control-allow-orgin is not allowed by Access-Control-Allow-Headers in preflight response This
Sep 6, 2022 — 1 min read
Engineering

Floating point issue & how to escape it.

Computers are better than humans in calculations. But here comes the floating point maths issue. As we all know when we do the following math  1.2 - 1.0 = 0.2 0.2 is the desiered result. but when we try to do it with programming languages using native
Aug 5, 2022 — 2 min read
Engineering

Repair Wordpress Database

In some cases you will get an error named error establishing database connection or some irregularities in wordpress workflow. This may be due to a corrupt database. You can easily solve the corrupt database issue by wordpress inbuilt feature of database repair. You can do the following steps to repair
Jul 1, 2022 — 1 min read
Engineering

How to secure your Wordpress website

Wordpress is one of the best opensource tools to host a website, portfolio or an ecommerce store with a ton of functionalities and features it makes the best choice of development. It offers you a pretty stable infrastructure to build your website and in some cases web applications in. Its
Jun 27, 2022 — 6 min read
Engineering

Resize Images in Python

Python Script to resize images in python without loosing aspect ratio. By using this script you can resize images without loss of aspect ration either by height or by width. To install Pillow, use the pip module of Python: $ python3 -m pip install Pillow Scaling by width without losing the
Jun 24, 2022 — 1 min read
Linux & Servers

Creating EC2 Instance in AWS in Simple Terms

AWS is the most trusted and one of the most used hosting services around the world. Hosting a wordpress website to an AWS instance is not different than hosting directly to usual hosting providers but said here are certain configurations and tools to start deploying wordpress to EC2 servers for
Jun 21, 2022 — 3 min read
Linux & Servers

Import / Export MySQL database via Terminal

To export a mysql database you should use the following command. You can get the name of the database by login into mysql and using the command "show databases" mysqldump -u YourUser -p YourDatabaseName > output.sql you will be prompted with a password and after successful authentication the SQL file
Mar 25, 2022 — 1 min read
Linux & Servers

How to create zip and unzip a .zip file in Ubuntu Command Line

First you will have to install unzip package using apt. sudo apt install unzip To zip a folder you will have to use the following command zip -r output_zipfilename.zip This command will create a zip of the folder and will generate a zip file of the folder To
Jan 31, 2022
Wordpress

How to change Wordpress URL from wp-config.php

To change wordpress site urls from wp-config.php file in wordpress site root. You just have to add the following to wp-config.php file define( 'WP_HOME', 'http://yoursiteurl.com' ); define( 'WP_SITEURL', 'http://yoursiteurl.com' ); At thep point where yoursiteurl.com is defined you can add your new website
Jan 30, 2022
Linux & Servers

How to move a folder from one Linux server to another using SCP

In some cases we will have to move whole folders or files from one server to another. its not always practical to download the file and upload it to the new location. If you are dealing with a VPS server and you have the shell access on both the systems,
Jan 29, 2022 — 1 min read
DEIENAMI Techblog © 2023
  • Company Home
Powered by Ghost