Skip to main content

Posts

Showing posts with the label Self-study

ATBSWP - A Lesson in Python (Part 1)

Hello Everyone, I have decided to mark my journey going through the information referenced over at Automate the Boring Stuff with Python through this blog so I can keep track of items that I have learned and things that I may re-learn through this. For everyone's reference, the documentation that I am following is through this website or directly from the vendor . Chapter 0 - Basically helps you setup Python3 on your PC. In this case I am using a variant of Debian to install it on. It also explains how to properly troubleshoot an error, and how to look up problems online. Chapter 1 - Explains how math works in Python using Idle. Basically the only thing that I did not know, mainly because I did not use it often is that % is Modulus/Remainder. It reads from Left to Right, and checks quotes and {}()'s accordingly. Difference between Strings, Integers and Floating Point Numbers (aaa, 1 or 2 or 3, and 1.242). You also need to have single quotes at the beginning and end of s...

Book Review: Subtle Art of Not Giving a F*ck

I have recently read the above book, and would like simply comment that excluding the explicit in the name, the book itself is actually quite good. Basically it is meant to make you take a look at the way that you currently view things and change them. Personally, I took a bit more information from this book more than any other "Lifestyle" or "Self-Help" that I have read in the past because whether it was the way that Mark explained it, or it just seemed to click properly in my head, I thoroughly enjoyed it. I would definitely recommend it to friends or anyone in general that may need a bit of guidance, and even those who think they have everything together can take something from it too. Link to Mark's Website and I believe you can also source the book off him directly here.

Linux and Unix - Manipulating Files

Below is some common commands that I would like to know better so figured, why not and made a post about them: wc -w <file> #This counts the amount of words in a file. wc -l <file> #This counts the number of lines in a file. head <file> #This reviews the first set of text at the beginning of the file. It can be piped out to more using "| more" . tail <file> #Same as above but the end of thr file. This is commonly used to go ahead and tail a log file and watch it as it does stuff, for this however it requires the -f switch. grep <option> <keyword> <file(s)> #Here is where things get a little more complciated. With Grep you can either search files for certain keywords with no options or using options such as -<num> to view num of lines before and after where it was found, or -i for searching without case sensitivity. Keep in mind you can also search many files just using wildcards. sed '/<text...