La Boina Roja

Linux, the struggles are real!


Leave a comment

How to install IDLE 3 in Fedora

Today was on odd day, I got two requests. One was if I was willing to sell my used panties o_O the other was if I can make a tutorial on how to install IDLE 3. In case you wonder 😕 these 2 requests came from two different people. I declined the request to sell my used panties but decided to grant the request regarding IDLE 3.

Fedora these days comes with Python 2 AND Python 3 preinstalled.  You can check it for yourself.

To see if you if Python 2 is installed, fire up terminal and type:

python

Python 2 will open, as you can see below:

python2

To exit Python 2 type:

ctrl+d

To check if you have Python 3 type:

python3

python3

You exit Python 3 the same way as Python 2.

For Python 2 you need IDLE, for Python 3 you need IDLE 3. Yep, seperate IDLEs for different Pythons 🐱 If you want to install IDLE read this post. For IDLE 3 follow instructions below.

To install IDLE 3 open terminal and type:

su

When asked type your password. Then:

dnf install python3-tools

intallidle3

After IDLE 3 is installed, to open it you need open terminal and type:

idle3

openingidle3Notice how you don’t have to be root to open IDLE 3?

****WARNING!****

Don’t close terminal while having IDLE3 open, if you do so it will close IDLE3 too!

Remember, you can always do the cliccie for a larger piccie 😛


Leave a comment

Recommendation: Hacking Secret Ciphers with Python

Want to learn Python and learn how to hack at the same time ?

Then this book is for you photo thumbsup.gif
cover_hackingciphers_thumb

This is a beginner book in Python 3, while learning this you also learn hacking. Cryptography is a subject touched in this book, now I know that a lot of cryptography courses require a decent understanding of math.  But When I asked Al Sweigart about this, he came with this reply:

You only need to know basic arithmetic. The book covers the mod operator, greatest-common-divisor, and everything else math-related. There really isn’t that much to it.

So basically, any 10 year old would be able to follow along.

I most likely will not be doing this course null  I am recommending this book because during my initial searches about Python beginner courses, his earlier books came highly recommended by several communities. The other reason why I recommend him is, he is willing to answer questions from people who are going through the books and he is honest null Another quote:

Basically, this book uses crypto as a way to make learning programming interesting. It’s good for a complete beginner, but not comprehensive for becoming a programmer.

Now, if only other people were as honest about their beginner courses null

Ooh, did I mention you can get this book for free null You can get this book in various formats too!( HTML, PDF and mobi).

When you finished the book, you should check out Mystery Twister C3 it is a platform, created by Al Sweigart, where you can test your cipher skills and discuss your methods.  The last part is very important if you want to become a (better) programmer, imho.


Leave a comment

Recommendation: Transforming Code into Beautiful, Idiomatic Python

A speech given by Raymond Hettinger, who has been working on Python for the last 13 years.  So it is safe to assume that he knows what he is talking about  photo puh2.gif What I really like about this speech is,  he gives examples you can use in your own code straight away plus all the examples are in bytesizes. He is also very passionate about Python, it makes the speech rather inspirational.

This video, which is about Python 3, is aimed at intermediate and advanced users. That being said,  I as a total n00b  photo picool.gif  found the speech interesting and I understood (= not able to implement yet) like 45% of the code. The slides he used can be found here, they are excellent reference material! If they are not available anymore on the link provided, just click on the pink button below.

download-button

If you are learning Python 3 by any chance, check out Raymond Hetting his twitter account @raymondh, he tries to teach Python through it.