La Boina Roja

The struggles off a future RHCE….


Leave a comment

How to make typing along with Python tutorials easier.

A lot of youtube vids use IDLE in their tutorial, there is absolutely nothing wrong with that. In matter of fact, it makes typing along easier if you use IDLE too, but situations like in the picture below piss me off photo piangry.gif!

typealong1

I prefer this  photo shiny.gif it saves me the hassle of changing screens.

typealong2

So what happened in the second picture? Well, I used Python’s built in interpreter which you can open by simply typing python in the terminal. Look:

typingalong3

And I made the terminal’s background color transparent by changing it’s transparency. You do this by

Edit > Preferences

typingalong4

The following screen will appear, select the tab Appearance, in this tab you can change the transparency settings.

typingalong5

If you are finished with the interpreter but have other stuff to do in terminal, all you have to do is press CTRL d and the interpreter will close and you can do whatever you need to do in terminal.

typingalong6

(Yes, another se7en  photo heart.gif!)

(Remember, you can always do the cliccie for larger piccie photo puh2.gif)


Leave a comment

Recommendation: numbers as bits by Brian Will

This course exists of one vid, which is about 46 minutes long and is a part of his learning to program course.

This is a great introduction into several number systems, binary, octo and hexa. It explains what relationship is between these number bases, how to converse to another base number and it covers how to represent different kind of numbers as bits. This vid does make it painfully clear how important math is!

The vid might be 2 years old, but I don’t think the materials covered will outdate soon null 

Eventhough I found the subject intresting and Brian Will is a great tutor, I did had to watch the vid in three parts. Brian Will his boring and his voice made me almost fall asleep null

Supplementary notes and the slides used in the vid, can be found here.


Leave a comment

A learn to code commercial

I agree with this part:

Knowing how to code is like knowing how to read and write was in medieval times.

I disagree with what is written here:

You can certainly get along without it, but you do so by living in ignorance of many of the wonders around you.

Being able to program is becoming important in the entire STEM fields. I do think that in other fields you can now certainly get along without it, but it won’t be too long before not knowing how to code will have the same devastating effect as it has being not able to read and write in these times. Yeah, I know it is rather dark outlook on the future null

I once heard a dean of an Indian University, where girls and boys were going to separate classes, say:

“It’s the hand that rocks the cradle that rules the world”

She was defending this outright medieval thing of separating boys and girls   I of course disagree with this one too. I think it is the “hands” that know how to code that will rule the world.

Just take a look at Anonymous.


Leave a comment

My own Python challenge

Earlier this morning while working on my math, I had to calculate the LCM (Least Common Multiple) and I was thinking I should write a Python script for it. Just for fun. Yeah “fun” I probably am  going insane null

There is no need to point out the math module in Python,  which probably has a function called LCM.

So I typed what I know right now:

cliccie for larger piccie

cliccie for larger piccie

While advancing in Python, I will improve this script null (I know that I’ve written a loop and that I should make it stop after the first hit, otherwise it will go on forever null)


Leave a comment

Join reddit!

Don’t give me that face null

redditmascot

I know it has quite the reputation, but there are some subreddits out there that will help you out while you are learning to program. By this, I don’t mean you should post your homework there and expect some redditor to do it for you null

By reading frequently on some relevant subreddits, you’ll learn so much. Not only about programming but alos on other relevant things you need to know if you are an aspiring programmer. Hell even the touchy feely stuff, like insecurity, is being discussed there and it amazes me how kindly people react to it. The only time I saw someone behave like a jerk, he got called on it by other redditors null

These particular subreddits are also n00b friendly. You can ask a question that has been asked by other many times and no one ever will write something like ” Use the FREAKING search”. Instead they take time to answer the question like it is the first time someone asked this particular question.

The subreddits I am talking about are:

My username there is RojaB and if you must know, no I didn’t create that “drawing” myself.  I can see why you asked though null


Leave a comment

Recommendation: The Art and Craft of Programming: Python Edition

Free e book written by John C. Lutsh available in HTML and PDF format, this book will not teach you to program. You will learn about how and why things work the way they do in Python on a basic level.

This is a well written starters guide, the PDF file is about 138 pages long. The writer is very novice friendly he, bothers to explain what precedence is for example. He does this in very a efficient and effective way, I personally liked how he explained assignments

cliccie for larger piccie

I myself will not go through the entire book from beginning to end, but seeing how he explains basic things rather well, I will use this book as a reference guide. That is another beauty of this book, it is written so well you only can go through the for you  relevant chapters. Without worrying whether you should have read the chapters before it or not. He should add a search function on the HTML version of the book though null

He has some small exercises in the book, with (thank God null) the answers.

The book is about Python 3, but since the writer is teaching you about concepts in Python,  you can use this book for Python 2 too.