Skip to main content

Posts

Showing posts from January, 2022

Prerequisite for Data Science Developers in Python

Data Science is a very important job in today's age of data being the aspect that plays a vital role in most of the field whether it may be the medical field, business, agriculture, engineering, sports and the list go on and on. Python is one of the programming language, which is used for data science and machine learning. It consists of many libraries and a very good community built within the past couple of decades. And it also has the upper hand among other languages as this same language can be used to build the system. While I talk about libraries in Python for Data Science(DS), the first library that come into thought is "NumPy", NumPy (abbreviation for Numerical Python) is the library built with the purpose of scientific calculation in numerical data. It is best for storing the numerical values in an array as a NumPy array that may be single or multi-dimensional (also called Tensors). "Okay, then why not List?"  T...

Things you should know about Python as a Developer

Hey readers, today I am going to write something interesting about Python that every developer should learn about. This is about the Python Programming Language, it's speciality and some pitfalls. So let's begin start exploring and learning about this beautiful high-level programming language. Python is an interpreter based language. To elaborate, when we write the code in python, every section of the program gets compiled not like that of Java, C++ and C where the entire program is compiled first and we run the compiled file to get the output. Here in Python, it is different so the variable(let's suppose x) is an integer at line number 4, the same variable can be the list at line number 5. So, it is called dynamic language. Another important thing about Python is it has a Global Interpreter Lock (GIL) which prevent two thread to run parallelly simultaneously. That means when there are multiple threads in Python they use the 'coordinated multi tasking...

Django Localhost URL for all devices in your LAN

While building and running server to see the outcome of the site you have built you have been using a magical command : And it will generate the server in the localhost 8080 as http://localhost:8080 or http://127.0.0.1 And with that you can visit that url in your device(host) from whichever browser you want and it will give the response as the site you created (Of course, given that you have the page built in ' ' url in urls.py) But today I am going to show you how you can generate the url such that it can be viewed by any device within your Local Network from whichever devices you want provided that the device is connected to same network to the host device with the website built. To do so, nothing more is required, just slight changes in command will work for you: After that all you need to do is to open the url with the network IP address and add the port 8080 For example: If your IP address is 192.168.1.101 URL for the site will be http://192.168.1.101:8080 You can view yo...