Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,157,936 members, 7,835,120 topics. Date: Tuesday, 21 May 2024 at 05:03 AM

Benchatronics's Posts

Nairaland Forum / Benchatronics's Profile / Benchatronics's Posts

(1) (of 1 pages)

Programming / How To Install Golang In Termux by benchatronics: 2:34pm On Apr 22
Go, also known as Golang, is a well-liked programming language that is renowned for its effectiveness and simplicity. Termux is an app that lets you run command-line programs in a terminal environment. If you haven't installed it yet, follow this tutorial to install it on your Android device and start using Go on it. This tutorial will guide you through the process of installing and configuring Go in Termux. You can also review this list of termux command line options after installation, as well as how to configure allow host in Django.

Prerequisites for this tutorial
make sure you have the following:

1. An Android device with the Termux app installed.
2. Internet connectivity for downloading Go.

3. Free space at least 1gb

Step 1: Update and Upgrade Termux

Open the Termux app and ensure that your package repositories are up to date by running:


pkg update
Continue reading >> How to install Golang in Termux
Programming / What Is Django Host Header? by benchatronics: 1:23pm On Apr 22
What is Django ?
Django is not far from being a python Framework that is made for web applications.
In recent times years people have always choose JavaScript over any web applications but with Django you can do many things as it is python supported making it much versatile.
In this post I am going to explain what is Django Header and how you can add two domain in web applications project.

Step of how Django Uses the Host Header
Routing Requests: Django’s URL dispatcher uses the Host header to route incoming requests to the appropriate views or applications.
This allows you to serve different content based on the domain or subdomain requested by the client.

Multi-Tenancy: In scenarios where you’re building a multi-tenant application with Django, the Host header helps in identifying which tenant or client is making the request.
This enables you to dynamically serve content specific to each tenant.

Subdomain Routing: If your Django project involves serving content on different subdomains (e.g., blog.example.com, shop.example.com), the Host header assists in directing requests to the corresponding Django apps or views handling those subdomains.
Read more What is Django Host header?

1 Like

Programming / How To Create Django Unique Slug , Warning Of Duplicate Slug by benchatronics: 8:46pm On Apr 21
How To Create Django Unique Slug is very important in Django because a slug beautify our url and make it more neat.
Think of having spaces in our url or having two slug which might result into a data base error . In other to avoid this I have written a wonderful tutorial I name How to avoid duplicates slug in Django Follow the tutorial to learn each step on how you can set it up on your site
Business / How To Borrow Money From Opay Instantly by benchatronics: 8:30pm On Apr 21
Of no doubt opay is one of the digital banking in Nigeria now. From the last rating we saw that opay is way richer than Zenith Bank.
Now let us go to the main reason why you are here how to borrow money from Opay ?
How to borrow money from Opay
Step one : Register and download Opay
Step Two : click on the loan in the interface
Step three: complete the form
Step four : Then click on the borrow button you see the money ASAP in your bank account.
Full post is here with guidelines How to loan money from Opay
Programming / How To Install Vs Code In Kali Linux Or Nethunter by benchatronics: 9:27pm On Mar 06, 2023
What is Linux
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security.
Nethunter is a minimal installation of kali linux that is base on android installation.
Nethunter is very good when it comes to handy installation with android because with nethunter you can actually turn your phone into a pc.
In this tutorial we are going to see how we can be able to install vs code in kali linux or nethunter .
To Install kali linux or nethunter in your android phone then follow this post install nethunter
How to install vs code in nethunter/kali linux android
There are many ways to install vs code but in this article we are going to see all the process to it.
method one.
Manual Download
method two.
By using command line
Method one
Navigate to official website of Vs Code and download it
Continue Reading

1 Like

Programming / How To Add A Return Button To Previous Page In Your Website by benchatronics: 6:48am On Mar 02, 2023
Some times you may want your visitors to click a button to return to a previous page they have visited instead of using the browser return button.

In this article we are going to see how we can add a return button.
There are many ways to do this we can use JavaScript or use the http meta refferer.

Methods to add a return button in website
1.onClick="javascript:history.go(-1);
2.{{request.META.HTTP_REFERER}} for django developers
3.href="../"
The illustration of how to use AND implement return button code is detailed 👉 here
Credits: benchatronics
Programming / How To Access File Manager In Kali Linux Nethunter by benchatronics: 11:04pm On Feb 27, 2023
Whether you are running Kali Linux or Nethunter on Android there would be a need that you would want to access your file manager right from your Android.
How to use your file manager in Kali Linux and nethunter
step one
run ls to see what is in your directory
step2 run the below command

sudo nano install-nethunter-termux
After running the above command edit the file according to this tutorial
Run ls again to see what you have in your directory

install-nethunter-termux
kalifs-arm64-full.tar.xz
install-arm64 storage

save then reinstall nethunter following the tutorial below

Follow this tutorial to use your android file manager in linux Tutorial guide
Follow the guide step by step
good luck guys

1 Like

Nairaland / General / Who Is The Owner Of Nigeria : Is Dangote The Owner Of Nigeria by benchatronics: 1:48am On Jan 22, 2023
Aliko Dangote GCON is a Nigerian business magnate who is the founder, chairman, and CEO of the Dangote Group, the largest industrial conglomerate in West Africa.

According to Bloomberg Billionaires Index, Dangote's net worth is estimated at US$18.7 billion as of January 2023, making him the richest person in Africa and richest black person in the world.

Is Nigeria worth only $18.7 billion dollars? including your papa , your mama and your siblings.
There are more harm to this why Nigeria is said to have been sold to Aliko Dangote.
To find out more read If Nigeria was sold out and why
Romance / How To Snapchat Hot Girls On Snapchat by benchatronics: 12:44pm On Jan 09, 2023
Snapchat is a popular social media platform where you can connect with so many people online. Whether it's for a friendship, a relationship, or a business transaction, with Snapchat, you can find as many girls as you can imagine.

Snapchat is usually used by a lot of girls who want to slay, chill with the big boys, and also want to drink water and drop cups without running helter-skelter.

In recent days now snapchat has turn to where hot ladies find their daily bread either by making videos or hooking up or being noticed.

On Snapchat, you can find millions of beautiful girls. Any type of your choice, whether ebony or white babe, they are all on Snapchat.
Therefore to find Hot girls in snapchat is very easy, you can find girls by following the outlined guides below.
Step to find girls on snapchat
Programming / How To Fix Termux Error Process Completed Signal 9 by benchatronics: 6:56pm On Jan 05, 2023
Original tutorial at TECHFLOW


Android 12 and above was built with a phantom process which help the android to monitor under ground processes.
What does this means ?
Phantom process is responsible for terminating any app that has a high CPU usage , therefore the phantom process will kill any app with out the knowledge of the user.
Now say you are on a program or project on an app that consumes a lots of cpu and phantom process kill the app with out your knowledge how will you feel. Say you are running Kali Linux on Android or Nethunter on Android and phantom process keep killing your termux , it is weird to see that happen therefore I have prepared a tutorial to disable this Phantom process in Android '
Check out this How to disable phantom process in android
Follow the steps one after the other.
Good Luck Guys
Programming / Text Editors You Can Integrate In Your Website Or Blog by benchatronics: 8:33pm On Dec 27, 2022
The first time I learnt programming my first project was blog site . So after building the blog everything was okay but the problem I had was how to render dynamic contents like pictures , inserting pictures anywhere I want. If you are a Django developer you will notice that without text editor you can only add pictures out side your contents.
so I started checking other people website such as my competitors so I found out that they can write post at ease. But the bad thing there is that the person that taught me programming didn't introduce me to text editor so I just feel like it is the only way to do.
Haha in Django it is models.CharField or models.TextField
So I have find out many text editor you can integrate in your website.
This solution is for Django developers only. Other language can google how to do this.
Ckeditor
When it comes to text editor ckeditor is my best . Follow this Steps to integrate it in your project
SummerNote
Summer note is another ckeditor alternative. from this step to Integrate in your blog

Tinymce
Tinymce is another alternative to Ckeditor but it has direct comparism to Summernote.
Follow this tutorial to implement it
Markdown is another texteditor, but one draw back is that it is not free.

Disadvantages of texteditors.
1. because it uses javascripts to load content rendering contents to users might be slow compare to different text editor.
2. Some editors are light weight and some are heavyweight e.g Ckeditor loads contents lazily.

1 Like

Programming / How To Create Comment Section In Django by benchatronics: 10:36pm On Dec 24, 2022
After you have created a site , another good thing is to interact with users , therefore to this you need to do one the following
in Django either you use Django model using ForeignKey or you use already made template.
In this tutorial we will making use of Django already made template.
I Have taking time to do this ,to implement this you have to create a model , create views and urls in your app .
Next thing to do is to install Django comment-xtd then you are to add it to your installed app.
Follow this guide https://www.benchatronics.com/detail/how-to-create-comment-section-in-django to implement Django comment section in your site.

1 Like 2 Shares

Programming / How To Develop A Django Website Using Your Phone by benchatronics: 1:19am On Dec 05, 2022
In this Tutorial I will be guiding us on how to code with your phone, using python framework called django.
To get started , All you need is android phone or Iphone then get termux and pydroid installed.
Follow this tutorial https://www.benchatronics.com/detail/How-to-install-termux-on-android to get termux installed the right way
After you have installed termux is time to set storage in termux , do that by running termux-set-storage. then create a virtual environment follow this tutorial to learn how to create a website using just your phone. Check out this
Tutorial
In the above tutorial i have explained very well but writing every thing on nairaland would be hard on me so follow the above tutorial if you want to learn more about developing website using just your android phone or iphone

1 Like

(1) (of 1 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 39
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.