Social Icons

Tuesday, January 25, 2022

In the new system presented by Google, the principle would be that the user himself holds his advertising profile. This profile would be built according to his browsing on the Internet, and the Internet user would retain some control over him.

Google presented on Tuesday the new system that it proposes to introduce on the Chrome browser to put an end to advertising "cookies", these tracers which make it possible to profile Internet users to send them targeted advertising.

Monday, January 24, 2022


In this article we will show step-by-step how to

application on the
. PythonAnywhere is a service, like Heroku, Digital Ocean, Scala hosting, Django Europe... that gives us access to a server where we can host our Django application. They have a free offer that allows you to create a web application with limited functionality.

Sunday, January 23, 2022


1 - What is git what is github ?

GitHub is a code sharing plate-forme, on which you can publish projects whose code is managed with the Git version control system. By default, the system is open source, which means anyone can view the code, use it to learn or improve it, and collaborate on projects. You can therefore participate in other projects or, conversely, people can collaborate on your projects! In this article, we will see how to publish content to the web using "GitHub pages" (also called gh-pages) which is one of the features of GitHub.

Saturday, January 22, 2022


We will see in this tutorial, how to deploy a django application on Heroku in step by step details. To start, you must: 

  1. Download and install Git Bush on your machine:  
  2. Download and install Heroku CLI on your machine:

1 - Installing Git on Windows

By default,
is installed on

computers as a command-line option. However, Microsoft Windows does not include a Git command. Below are the steps to install and use Git and GitHub on Microsoft Windows.  

Friday, January 21, 2022

A brief overview of the secret codes that allow you to unlock hidden features on Android.

You may not have suspected it, but your Android smartphone has various information, functions or even hidden menus. These “secret” options are accessible by entering certain specific codes in the Phone application.

How to use a passcode on an Android phone?
You must use the Phone application preinstalled on your Android smartphone to enter the codes. Please note that some codes are specific to a specific brand or model of phone. To redeem Android secret codes, follow these steps:

Thursday, January 20, 2022


The Dutch software quality specialist, Tiobe, has just published its annual list of the most popular programming languages ​​and Python is named “programming language of the year”. The C language is relegated to second position, Java occupies third place while C++ and C# complete the top 5. 

Last July, Tiobe CEO Paul Jansen predicted that “Python seems to have the best chance of becoming number 1 (this year) due to the rise of data mining and artificial intelligence”. 

Python is the most taught language in universities. He is number one in statistics, artificial intelligence, scripting, and writing system testing. He is one of the leaders in web programming and scientific computing. For the record, this language owes its name to the British comedians, the Monty Python.

1 - About Generic Views (Class Based Views)

Django adopt the DRY philosophy and so is designed to have to write only the minimum , so the framework includes a system of generic views, which saves the developer from having to write simple and identical functions, saving us time and lines of codes. Since version 1.3 of Django, views are based on classes. These classes are grouped by functionality. To process forms, the following views are found in django.views.generic.edit: FormView, CreateView, UpdateView and DeleteView. In order to keep it simple, we will treat this tutorial on an example that we have already covered: Student management system.

Tuesday, January 18, 2022

1 - Simple menu with QMenuBar PyQt5

To create a menu, the PyQt5 library has a class named
which allows you to create a menu bar. By making an instantiation on the

class, we create a menuBar object with the methods: 

        1 - addMenu(): allowing to add a menu like File , Edit, Option...
        2 - addAction()
: allowing to add commands to menu items like: File->Open , File->Save , File->Save As , File->Exit,...
        3 - addSeparator():
allowing to add a separator between the menu elements


from PyQt5.QtWidgets import QApplication, QWidget,QMenuBar
import sys 

app = QApplication(sys.argv)
root = QWidget()
root.setWindowTitle("Simple QMenu PyQt5")
root.setGeometry(100 , 100 , 500 , 300)

# create a Menubar by instanciating the QMenuBar class
menuBar = QMenuBar(root)
menuBar.setGeometry(0,0, 500, 25)

# create a menu called 'File'
File = menuBar.addMenu('File')

# add actions to the menu 'File' 
File.addAction('Open' )
File.addAction('Save As')

Monday, January 17, 2022

1 - Brief reminder of the previous tutorial: student management with django

To achieve this paging system we will adopt the previous tutorial of student management:

1.1 - Creating a new new app django studentsApp

We start by creating a new django project and a django app called studentsApp

Sunday, January 16, 2022

1 - Creating blog application: First step:

Before starting to create a blog with django, you must first complete the preliminary steps that we have already covered in previous tutorials:
  1. Create a django project named mysite
  2. Create an administrator interface 
  3. Create a django application and give it a name, for example: blog (configure its url)

After carrying out all these steps, you will have a blog project that looks like this: 


Saturday, January 15, 2022

1 - Create a new django project with an app named accounts

To start we proceed by: 

- creating of a new project named mysite
- migration and creation of a super user account
- creating of a new app called accounts


Next, let's register our accounts application at the file:


Our site will therefore have the following structure: 

Thursday, January 13, 2022

1 - The virtualenv module

Python has a module named virtualenv to create a virtual python environment, that is, an isolated working copy of Python that allows you to work on a specific project without affecting other projects. So basically it's a tool that allows multiple side-by-side installations of Python, i.e. a clean install for each project.

2 - Creation of a virtual environment under Linux

Tuesday, January 11, 2022

1 - Creating a new new app django studentsApp

It often happens that you want to add a file field to a registration or data insertion form ... So far we have not yet dealt with this type of field. the file field type can be treated either in isolation or within a model. To keep things simple, we will deal with this last type. Let's start by creating a mysite project in which we create an application named studentsApp

Monday, January 10, 2022

In this tutorial, we will learn how to use a table in our PyQt5 application using the QTableView widget. A table is an arrangement of data in rows and columns and widely used in communication, research and data analysis. We can add one or more tables in our PyQt application using QTableWidget. For a better understanding of the concept, we will take an example where we want to display the name and city of different people in a table in our application. We can extract the data from a database, a JSON file, or any other storage platform.

Sunday, January 9, 2022

1 - PyQt - Absolute positioning

Absolute positioning measures the position and size of each widget in pixels. When using absolute positioning, you should understand the following limitations: Resizing the window does not change the size and position of the widget. Apps may look different on different platforms. Changing the font of the app can break the layout. If you want to change the layout, you have to refresh it completely, which is very tedious.

Saturday, January 8, 2022

# to binary
print( format(14 , 'b')) # display 1110
# to hexadecimal
print(format(255, '#x'), format(255, 'x'), format(255, 'X')) # display 0xff ff FF
# to octal
print(format(10, '#o'), format(10, 'o'))# display 0o12 12
print(format(10,'b')) # display 1010

# from hexadecimal to  binary
print(format(0xA,'b')) # display 1010

Younes Derfoufi
# converting a string to int, float by using int(), float()

# initializing string
s = "10110"
# convert string to int in base 2
c = int(s,2)
print ("The value of '10110' in base 2 is  : ", c) # display 22

# convert string to int in base 10
c = int(s,10)
print ("The value of '10110' in base 10 is  : ", c) # display 10110

# convert the string to float
f = float(s)
print ("After converting to float,  f = : ", f) # display 10110.0

Younes Derfoufi

1 - The QLineEdit class

The PyQt5 library is equipped with the QLineEdit class which allows you to create input fields with a single line. QLineEdit comes with a useful collection of editing functions, including undo and redo, cut and paste, and drag and drop. This is the basic PyQt5 widget to receive keyboard input, the input can also be text, numbers or even a symbol.

1 - About QPushButton class

The QPushButton widget provides a command button. The button, or command button, is perhaps the most commonly used widget in any GUI: pressing a button to command the computer to perform an action or to answer a question. Typical buttons are OK, Apply, Cancel, Close, Yes, No, and Help.

2 - Create a PyQt5 Button with the QPusButton class

To create a command button of the QPushButton type, all you have to do is instantiate the QPusButton class:

Friday, January 7, 2022

1 - About the QPixmap PyQt5 class

A QPixmap is one of the widgets used to manage and manipulate images. It is optimized to display images on the screen. In our sample code, we'll use the QPixmap to display an image on the window. A QPixmap object can also be loaded into another widget, typically a label or button. The Qt API has another similar class QImage, which is optimized for I/O and other pixel manipulation. Pixmap, on the other hand, is optimized to display image on the screen.

2 - Insert an Image with the QPixmap PyQt5 class

To insert an image on a PyQt5 window you must: 

  1. import the QPixmap class from PyQt5.QtGui 
  2. create an instance object of the QPixmap class 
  3. associate the QPixmap instance object with a QLabel via the setPixmap() method:

We will see in this practical tutorial, how to create a mini PyQt5 application With Qt Designer which asks the user to enter an integer N and return its double 2 * N by clicking on the Validate button:


1 - Creation of a QLabelPyQt5

To create labels within a window, PyQt5 offers us the QLabel class. You just have to instantiate this class by adding the parent container as a parameter:
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel

app = QApplication(sys.argv)
widget = QWidget()
widget.setWindowTitle("Label Example")

# create a QLabel
qlabel = QLabel(widget)
qlabel.setText("Hello World !")

# define the qlabel dimensions & position
qlabel.setGeometry(50 , 50 , 200 , 50)

Learn Python For Beginners

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) Bootstrap CSS (1) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (15) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) Github (2) HTML (7) IT News (3) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (36) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (13) Python Reference (1) Python Source Code (3) Python-Books (6) Python-DVD-Training (1) Python-Exercises (297) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) python-temp (3) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (4) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)

Sample text

Sample Text

Blogger Templates