Posts

Showing posts with the label tutorial

Project Wild Penguin 20.4.2017: Wifi Connection Bug in Xubuntu 17.04

After updating my Xubuntu to latest version 17.04, I've found out that my wifi was disabled. No wifi connections were being shown in the indicator plugin. On googling, I've found out that there is a bug in the latest release. So to fix the bug, I followed the steps mentioned in one of the solutions provided by the good folks at askubuntu.com. The steps given were as follow: Open terminal and run: sudo vim /etc/NetworkManager/NetworkManager.conf   At the bottom of the file, copy and paste the following: [device] wifi.scan-rand-mac-address=no     Then just save and close the file and run: sudo service network-manager restart Check if Wifi is enabled or not. If it is still not enabled, go to Softwares & Updates > Additional Drivers > Click on Do not use the device under Broadcom Wireless Drivers as shown in the image below.      5. Click on Apply Changes and then restart the system, the Wifi should be enabled now. Hope...

Project Wild Penguin 19.4.2017: How to install manually installed packages on one system to another system remotely

Image
So, finally after a long time, I've found an original solution to my set of problems stated below: To backup and restore repositories.  To install manually installed packages on a new system or another system remotely. Most of the times, I've found straightforward answers to my queries from techgurus at askubuntu.com or any other sites. But this time, I've to be a bit more jugaadu by applying combinatorics to various solutions that I found to create a single solution for my problem  .  While implementing the solution, the question that was on back of my mind is beautifully depicted in the following xkcd comic: Will it work? If it doesn't, there is a likely chance of my system breaking down and lose of valuable time in fixing it. But thankfully, it did work.  Now, I'll share the process that I followed in implementing this solution. First part of the problem was achieved using the Y PPA Manager that I've mentioned in my blog post Fix dup...

Project Holy_Python_Grail_Quest - Argparse

In this post, I'll be sharing my notes on Argparse module on python. I've come across argparse module while working on my project. After googling, I've found this great tutorial at official python website:  https://docs.python.org/2/howto/argparse.html . If you go through this, you'll get a very good idea about argparse and its usage. I'm just posting this as a summarized version of what I've understood from the tutorial. Anyone can go through this for quick reference. Introducing Positional Arguments :  import argparse parser = argparse . ArgumentParser () parser . add_argument ( "square" , help = "display a square of a given number" , type = int ) args = parser . parse_args () print args . square ** 2 add_argument - To specify command line arguments the program is willing to accept parse_args() - returns some data from the options specified help - gives an idea about what the argument does a...