×

Asynchronous Programming in Python - More about this ?

This article covers how to make applications performant and efficiently use CPU cycles and threads. However, it is not all rainbows and unicorns when talking about asynchronous code.

Asynchronous programming is a type of parallel programming in which a unit of work is allowed to run separately from the primary application thread. When the work is complete, it notifies the main thread about completion or failure of the worker thread. 

There are numerous benefits to using it, such as improved application performance and enhanced responsiveness.

On the other hand, A synchronous program is executed one step at a time. Even with conditional branching, loops and function calls, you can still think about the code in terms of taking one execution step at a time. When each step is complete, the program moves on to the next one.


Examples of synchronous program:

1. Batch processing programs are often created as synchronous programs. You get some input, process it, and create some output. Steps follow one after the other until the program reaches the desired output. The program only needs to pay attention to the steps and their order.

2. Command-line programs are small, quick processes that run in a terminal. These scripts are used to create something, transform one thing into something else, generate a report, or perhaps list out some data. This can be expressed as a series of program steps that are executed sequentially until the program is done.

Install Mozilla Firefox on Ubuntu 20.04 - How to do it ?

This article covers how to install the Mozilla Firefox browser on the Ubuntu system. Mozilla Firefox is the official Internet browser for Ubuntu, therefore, most Ubuntu distros have it installed by default.

If your system lacks this browser due to any reason or if you have accidentally deleted it, we will tell you how to install it on your Ubuntu.


To update Firefox on Linux:

1. Click the menu button , click. Help and select About Firefox. On the menu bar click the Firefox menu and select About Firefox.

2. The About Mozilla Firefox Firefox window opens. Firefox will check for updates and download them automatically.

3. When the download is complete, click Restart to update Firefox.


To Delete Firefox and all it's data from Ubuntu:

1. run sudo apt-get purge firefox.

2. Delete /etc/firefox/ , this is where your preferences and user-profiles are stored.

3. Delete /usr/lib/firefox/ should it still be there.

4. Delete /usr/lib/firefox-addons/ should it still be there.

Install Opera Web Browser on Ubuntu 20.04 - Step by Step process to perform it ?

This article covers how to install Opera web browser on an Ubuntu 20.04 system. Opera web browser provides its unique features and has many users all over the world.

Users can access and then use the Opera browser once they have installed it in their systems. You will also learn how to uninstall the browser from the Ubuntu 20.04 system.


To install Opera browser on Linux:

1. Add Opera browser Repository. Let's start by adding an Opera repository and keyring.

2. Install Opera Browser. At this stage to install the Opera browser on Ubuntu 18.04 Bionic Beaver is easy as executing the below command: $ sudo apt install opera-stable.

3. Start Opera Browser.


To Install Google Chrome on Debian:

1. Download Google Chrome. Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.

2. Install Google Chrome. Once the download is complete, install Google Chrome by typing: $ sudo apt install ./google-chrome-stable_current_amd64.deb.


To start Chrome on Linux:

1. Edit ~/. bash_profile or ~/. zshrc file and add the following line alias chrome="open -a 'Google Chrome'"

2. Save and close the file.

3. Logout and relaunch Terminal.

4. Type chrome filename for opening a local file.

5. Type chrome url for opening url.


To install Google Chrome on Linux Mint:

1. Add this link to the list of repo sources "deb http://dl.google.com/linux/chrome/deb/ stable main"

2. Run in terminal "sudo apt-get update"

3. Run in terminal "sudo aptitude install google-chrome-stable"


The sudo apt-get update command is used to download package information from all configured sources.

So when you run update command, it downloads the package information from the Internet. It is useful to get info on an updated version of packages or their dependencies.


To Uninstall Opera on Ubuntu:

1. In order to uninstall Opera through the command line, enter the following

$ sudo apt-get remove opera-stable

2. The repository you added will still be residing on your system. Enter the following command in order to remove it:

$ sudo apt-delete-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free

5 Key Google Chrome Extensions

This article covers the key Google Chrome extensions which will definitely enhance your browsing experience and will make Google Chrome even more helpful and useful for you. Google Chrome extensions are programs that can be installed into Chrome in order to change the browser's functionality.

Adding to do lists or notes to Chrome. Password management. Making it easier to copy text from a site. Protect your privacy and making web browsing more secure.

Some extensions can be ethically dubious or even malicious, but Chrome features new restrictions on extension developers that should help mitigate that problem.

Remove Duplicates in LibreOffice - Step by step process to do it ?

This article will guide you on how to get rid of duplicates from either the single column or from the multiple columns in LibreOffice. Removing duplicate entries is necessary to clean up the data. With LibreOffice advanced filter tool, you can easily remove these duplicate values from your data.

You can use Libre Office to open and edit existing #MS Office documents like excel word power point etc. 

Libre Office is a free alternate to MS #office and offers same functionality. Its easy to install and use.

The #VLOOKUP function (short for Vertical LOOKUP) is a built-in Calc function that is designed to work with data that is organized into columns. 

For a specified value, the function finds (or looks up) the value in one column of data, and returns the corresponding value from another column.


To find duplicates in #LibreOffice Calc:

1. Go to the worksheet that has the duplicate entries, and select 'Data' > 'Filter' > 'Standard Filter' (it seems to automatically select the data in the sheet that it will filter, you may want to do this manually beforehand).

2. It should then filter the data, and hide any duplicate records.


To insert a date in Libreoffice #Calc:

To enter a current date as a static date, press CTRL+; (semicolon). It will insert today's date as a static value in the corresponding cell. 

Similarly to enter current time as staic value, press CTRL+SHIFT+; .

Some Useful VLC Media Player Shortcut Keys

This article will guide you on #shortcuts you can use in VLC media player which can control this application very conveniently. Doing this will not only increase your productivity but will also save your time in locating and using the GUI based controls.

To Edit #VLC Media Player Shortcuts (Hotkeys):

1. In the Menu Bar click on Tools and then “Preferences” [CTRL + P is the shortcut].

2. On the left of the preferences option go to “Hotkeys”.

3. To edit a shortcut double click on one of those Action or Hotkey.

4. A “Hotkey Change” option is displayed.

5. If the shortcut is already used up then a warning is displayed.

Different useful LibreOffice writer shortcut keys ?

This article will guide you on how to use shortcut keys when dealing with #LibreOffice Writer documents.

These #shortcut key combinations will ease your life a lot as they will save your time that is spent in performing the most frequently used operations.

If the active cell is empty Ctrl+A selects the whole table; otherwise it selects the contents of the active cell. Depressing Ctrl+A a second time selects the entire table. If the active cell is empty Ctrl+Home moves the cursor to the beginning of the table.

To make a table in LibreOffice writer:

1. Place the cursor in your document where you want to insert the table.

2. Choose Table - Insert - Table.

3. In the Size area, enter the number of rows and columns.

4. Select the options that you want, click OK.

How to install Notepad++ on Ubuntu 20.04 LTS ?

This article will guide you on steps to install #Notepad++ on Ubuntu 20.04 #Linux operating system using snap package manager. Notepad++ is a #GUI based user friendly text editor that can be used on #Linux as well as on Windows platform. To #Install Notepad++ on Ubuntu 20.04 : 1. Install Notepad++ on Ubuntu 20.04. Notepad++ runs over the WINE platform, which provides compatibility for the Windows application on Unix-like operating systems. 2. Open Notepad++. 3. Uninstall Notepad++.

How to upload a video to Google Drive ?

This article will guide you on steps of uploading a video to #Google #Drive within no time. If you upload files from compatible #programs like #Microsoft Word or #Excel, you can even edit them in Google Drive. By following this method, you can upload your video files with sizes ranging from a few #Bytes up to 5 TB. After uploading a file, you can create its copies, download it, share it with the people you want, or may even remove it.

How to make documents read-only in Google Drive ?

This article will guide you on how to make a #Google #Drive #document read-only for yourself or for others by using any of the two methods that are suggested here. These #methods can be used with equal ease both by the experts as well as the naïve users since they are extremely simple to follow. To make a Google Drive folder not read only: 1. Open your Drive. 2. Click "new". 3. Select "folder". 4. Name your folder. 5. Select your folder by "single clicking" it. 6. Adjust your sharing settings by selecting the sharing icon. 7. Select "get shareable link". 8. Then copy and paste the link that is highlighted. Share this link with anyone you would like to have access to the folder.

How to Browse in incognito or private mode of Google Chrome ?

This article explain the benefits of working with the private mode or #Incognito #mode of #Google Chrome. Also, we also demonstrated to you the different ways of entering this mode while using Google Chrome. To browse incognito in #Chrome: 1. Click on the Chrome icon to launch the #browser. 2. At the upper right corner of the app, click on the More icon that looks like three vertical dots to activate Private Mode. 3. Select New Incognito Tab.

A complete guide on how to run two or multiple networks instance of Tinc VPN on same box

This article will guide you on how to use Tinc to create a mesh network of two different VPN on the same server.