Hi, Here we will see some common file locations that you may want to access while deploying your application to Apache server in ubuntu. Locations: Error log file /var/log/apache2/error.log Configuration file /etc/apache2/apache2.conf Configuration file for default VirtualHost /etc/apache2/sites-available/000-default.conf Commands: before…
Author: Aman Deep
How to use .htaccess file in apache2 Ubuntu
The .htaccess file can be used in apache server to have it’s own configuration per directory. 1: First step is to enable mod_rewrite module sudo a2enmod rewrite 2: Now restart the apache server sudo service apache2 restart 3: Open the…
Dynamically Create JSON with Foreign Fields nested in Django
I struggled a lot to create a JSON object which should also contain foreign field values. So after Googling and trying a lot, I came up with this masterpiece code 🙂 This code is very simple does not require any…
How to Shuffle (Randomize) QuerySet in Django
Suppose you want get a random item from a QuerySet, It should be random but non repeating. In many posts I saw they use my_list = MyModel.objects.order_by(“?”) but it will produce repeating items. 1st Step: get a QuerySet my_qset =…
An online Drum Machine I built using Web Audio API
Hey guys today I want to share a Drum Machine application that I built using. https://www.onlinetool.in/drum-machine/. Used Web Audio API to built it. The web audio api was initially proposed by google is used for processing and synthesising audio in…
Apache Tomcat option not showing in servers in Eclipse
If you cant find Apache tomcat server option in the Server adding option follow the steps below. 1. Search Apache Server in market place and install Eclipse JST server Adapters like shown in the image 2. After restarting eclipse you…
How to Install latest version of Eclipse IDE in Ubuntu 18.04
In this article we will see how to install the latest version of Eclipse IDE in Ubuntu 18.04. We will use Snappy Package system since the the version in the Ubuntu repository is outdated and also has some problems after…
How to Create WIFI Hotspot from Ubuntu 18.04 Laptop
To create a wifi hotspot in ubuntu 18.04, you should be first connected via LAN. The process is quite simple and can be done via GUI. Step 1: Click on the top right buttons and click on the WiFi option.…
Python Program to Add two binary numbers using built function
Here we will see how to easily add two numbers in python3 using built-in functions. please run this program with python3. Steps: 1. Take input of the two binary numbers as string using the input function. 2. convert them into…
How to show IP address in Ubuntu 18.04 (Connection Information)
As we know that Ubuntu 18.04 ships with Gnome Desktop by default. There used to be a Connection Information option in previous Unity Ubuntu versions which showed IP address, Netmask, DNS address, and various other infos but it’s no longer…