200 (Posts) OK

Advertisements

Hello everyone,

Hard to believe it, but I have officially hit the 200-post mark on this blog! Crazy, right-I mean, 2018 doesn’t feel that far off?

Now, I know I mentioned in the last post that I had something special planned for post #200 so let’s see what we’ve got!

In honor of post #200, let’s use the Python requests library to send an HTTP request to this very blog:

import requests
response = requests.get('https://michaelsprogrammingbytes.com/')
response.status_code
200

Well, what do you know, it’s a 200 response, OK?

Let’s visit my blog’s GitHub repo while we’re at it:

import requests
response = requests.get('https://github.com/mfletcher2021/blogcode')
response.status_code
200

It appears my blog’s GitHub repo is also keeping it 200, OK?

How about we go back to June 13, 2018-the day this blog launched into the World Wide Web:

import requests
response = requests.get('https://michaelsprogrammingbytes.com/welcome/')
response.status_code
200

Even from post #1, this blog keeps it 200, OK!

Last but not least, let’s go send an HTTP request to my blog’s Medium home:

import requests
response = requests.get('https://medium.com/@michael71314')
response.status_code
403

Apparently, unlike the other three requests, my Medium page keeps it 403, Forbidden. Not cool Medium, not cool.

In case you didn’t figure it out from the date this post is released, I have one thing to say…

…HAPPY APRIL FOOL’S DAY

  • P.S.-Don’t worry, I’ll continue the milestone celebration with an actual big celebratory post-it’ll just be my 201st post! I just thought I could have a little fun with this post being both the annual April Fool’s Day post AND 200th overall post. As always, thanks for reading!

A Very Cool Byte-Sized Python Demonstration!!!

Advertisements

Hello everyone,

Michael here, and in today’s post, we’re gonna do a very cool byte-sized Python demo! You ready? Here goes!

print("Hello World")
print("¡Hola, Mundo!")
print("Bonjour, le Monde!")
print("Hallo, Welt!")
print("Olá, Mundo!")
print("Nǐ hǎo, shìjiè!")
print("Bonjou, Mond!")
print("Sawasdee, Loke!")
print("Hello, Duniya!")
print("Habari, Dunia!")

Hello World
¡Hola, Mundo!
Bonjour, le Monde!
Hallo, Welt!
Olá, Mundo!
Nǐ hǎo, shìjiè!
Bonjou, Mond!
Sawasdee, Loke!
Hello, Duniya!
Habari, Dunia!

Wow, take a look at this! Hello world in 10 languages from across the world (English, Spanish, French, German, Portuguese, Mandarin, Creole, Thai, Urdu, and Swahili, respectively).

That’s it-that’s the demo!

Thanks for reading and also,

HAPPY APRIL FOOLS

  • Hey, my tagline does promise byte-sized programming classes for all coding learners ;-). A blogger’s got to stay true to his word right?

Michael’s Lost Posts

Advertisements

Hello readers,

Michael here, and boy do I have some exciting news for you!

So, as you all may know, I’ve been writing this blog for nearly 6 years now, having covered 8 different programming tools over the course of 161 posts (that’s a lot when you think about it)

However, today I have a new exiciting announcement! Look, I know you were all expecting another post on R trigonometry or Python game-design, but I thought today would be the perfect time to announce the release of Michael’s Lost Posts.

What is Michael’s Lost Posts you ask? It’s a collection of never-before-seen-or-finished posts, straight from the Drafts folder of this great blog.

What kinds of posts might you see in Michael’s Lost Posts? Let’s preview this great collection, shall we?

First off, have you ever wanted to learn more about the wonders of the Raspberry Pi mini-computer? Now you can with Michael’s Lost Posts:

I mean, look at this well-written post-it’s certainly been kept in pristine condition in the Drafts folder since March 2022. After all, if you know me, you know I only release quality content to you all.

Learn about how to build your own Raspberry PI, up until the point where you hook up all the cords and cables. After that, well…good luck:

But wait, there’s more! Ever wonder if you could build a neural-network machine learning translator that’s BETTER than Google Translate? This Lost Post on Seq2Seq neural-network machine learning models will teach you to do just that…

…up until the point of actually implementing the model:

A post so nice, I didn’t even have a dataset for it.

If you really want to see some gems from Michael’s Lost Posts, check out this lesson on Image Arithmetic (with Python):

Now this post takes the cake. One of the finer posts in Michael’s Lost Posts, and unlike many of the other posts in this collection, it’s so amazing that I didn’t even finish writing the introductory paragraph. In fact, I even ended the introductory paragraph mid-sentence.

Now that you’ve seen a preview of Michael’s Lost Posts, you can find them along with other Lost Posts at the following link:

APRIL FOOL’S!