My Journey in Python (or any programming) as a non-Programmer

Python knowledge these days is kinda like a must. Because Python is everywhere and has many uses. Bonus points for you if you have this knowledge.

Disclaimer : This is my experience as a non-programmer learning how to program. My job has never been a Programmer.
I did Networks, Linux, Surveillance, VoIPs throughout my career but never been much into programming.

So I needed to learn Python. What did I do?

First I tried Video Tutorials, I watched a couple of them, Youtube Tutorials, bought some Udemy tutorials and so on. Giving 1 – 3 hours a day, I would complete each series in less than a week.
Was I able to program good enough? Of course Not! I had a basic knowledge and grasp about how functions work, how to use libraries etc. Not that the instructors don’t explain well, the instructors explained very well, I also coded along, but my point is, I had been missing a gap of real life programming.

Not satisfied, I moved onto READING beginners tutorials again. There were many tutorials with examples on how to use loops, data sets etc. Different instructors used different approach. I tried different IDEs, text editors. Theoretically, I thought I knew how to code, but in reality, I could not jump much higher than simple basic programs.

The thing about Python is it’s widely used different sets of applications. Python is everywhere. Realistically what you want to learn is Real life applications. You can start with printing out tuples and simple loops and operators, but eventually you need to jump onto the REAL codes. I mean the REAL CODES. Not just tic-tac-toe games.

So I decided what I wanted to learn. I wanted to build a small camera app. I have a knowledge about Cloud and CCTV networks so I thought I would build a program based on that. But I have to admit, I did not build apps from scratch.

What I did was I Reverse Engineered. I tried to get some source codes from actual working programs, I learned how they worked, learned what each buttons did, and I tried to break the code. Removed some lines, added some lines. Got some more programs, extracted bits out of it, combined in the first program. Installed Libraries and modules. Tried to compile and make them work.

I simply thought rather than myself writing buggy codes and spending hours and hours, its better to learn from more cleaner, well-written codes by more advanced programmers. The more I broke, the more I understood how each lines of codes worked. I thought that was a better learning curve, at least for me. (Again, as a non-programmer)

Maybe if you have ever been stuck on learning programming, you can try my approach. It will not make you the best programmer but it might get you somewhere where you can start. It may even be a short cut for you to become the best programmer.

Regards

Teza




















Wireless Troubleshooting on Linux (applies for Kali linux and Parrot OS) with Realtek chipset

After installing Parrot Security OS, I was not able to connect to wifi anymore. The reason being Parrot OS not supporting my laptop’s Realtek wifi chipset.

Long story short and get to the troubleshooting steps, that got me going.

ifconfig
See if your wifi interface is up, normally you should see a loopback interface, LAN interface and a WLAN interface.

lspci
Check your chipset model. Below is my wifi card. If you see something similar but WLAN interface is not showing up on ifconfig, then its most likely the driver issue.

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter


Temporary internet connection
You will need an Internet connection
I know it sounds silly when your WLAN interface is not showing up, but trust me its alot easier to try to connect to internet first. Get a wifi adapter or an Ethernet cable to connect to the internet first.

Step 5 – Disable Secure Boot in Bios

reboot your computer, in Bios configuration, Enable Legacy and disable Secure Boot.
Save and Exit. Depending on your Laptop make, F key will be different. For HP, it is F10.


Git Clone driver for Linux
sudo git clone https://github.com/tomaspinho/rtl8821ce

change to download folder
cd rtl8821ce

Change permissions
chmod +x dkms-install.sh
chmod +x dkms-remove.sh

Run the Installer

sudo bash dkms-install.sh

Reboot your computer