Manjaro vs Xubuntu?

Thinking about trying out something new for a change and switching to Manjaro as my main OS. I am getting a new laptop around Christmas and in my research I am looking not only at the hardware but the software I wish to power the beast. I got hooked on linux because I use an Acer C720 Chromebook as my main laptop these days. I found that ChromeOS was awesome for most things but I really needed more power, so I installed GalliumOS which is based on Xubuntu. Using it as my daily OS has made me realize why I fell in love with Linux in the first place when I was a kid. However…I’ve been hearing about Manjaro these past few days and am getting interested in trying a new ecosystem out with the Arch platform over the Ubuntu….so we will see where this goes.

Family Tree solved…

I sat down this morning and took another look at the check.io What is wrong with this family quest…and it really racked my brain. But…I got it finally. Here is the code:

def is_family(tree):
    source = tree[0][0]
    fam = {}
    for i in range(len(tree)):
        if tree[i][0] not in fam.keys():
            fam.update({tree[i][0]: []})
        if tree[i][0] in fam.keys():
            children = fam.get(tree[i][0])
            children.append(tree[i][1])
            fam[tree[i][0]] = children
 
 
    # build a list of all children and fathers
    children = []
    fathers = [n for n in fam.keys()]
    for father in fathers:
        for i in range(len(fam.get(father))):
            children.append(fam[father][i])
 
        # find the source
        if father not in children:
                source = father
 
        if father in fam[father]:
            return False  # cannot be your own father!
 
        for i in range(len(fam[father])):
            if fam[father][i] in fathers:
                if fam[fam[father][i]][0] == father:
                    return False  # you cannot be your fathers father.

        if father != source:
            if father in fam[source]:
                for i in range(len(fam[father])):
                    if fam[father][i] in fam[source]:
                        return False  # cannot be a father to your brother
 
        if father not in children and father != source:
            return False  # No strangers in the family...
 
    return True

Checkio again…

Thank God for Check.io. I had a bit of an issue this morning looking for a challenge and not having any projects in which I could embark, I decided to work on a check.io puzzle. I started Brackets, and honestly it has been pretty challenging for me. I had it solved all but 1 test case… so I had to rethink my entire strategy…for some reason I am in some sort of funk right now trying to get my head on straight. I read something discouraging earlier about “older” folks trying to get starting in coding as a career. I guess I am not even really trying to start a “career”, I’d definitely like to supplement my income, and work on this stuff as a hobby. Problem is at some point you run out of projects to work on…so I have to keep things fresh. Checkio has been a great way to keep me thinking and challenged and also learning new concepts that I may not encounter with a web development project.

Video 2

I’ve definitely got to get some better equipment and work on my presentation some…but here is another video.

This one I go through taking a bootstrap theme and applying a flask backend to it.

Website is coming along as well: https://www.flaskcasts.com

 

Git

Gotta keep my tradition up. So today I added delete functionality to the flaskcasts site. Was easy. My issue mainly has been getting used to using Git to deploy and make changes to the site in production.

I use Pycharm and pay for the professional version. It’s amazing…but I was being lazy and used their git functionality that is built in. I was getting really confused on how to do everything correctly.  I am really inspired by Corey Schafer on Youtube. He has a great video…here it is:

Google Assistant blog post…

I’m on a mission to write a blog post every day about what I’m learning with python and web development in general. It’s been really hard to keep up with it that idea was to keep this going for at least 66 days so I can stay focused on my goal of learning as much about Python and flask web development as possible.

 

I truly have the desire to become someone who is recognizable in this field and not necessarily for a Fame purposes or reasons but mostly because I just want to be able to do this professionally. I just spent 12 hours in a car driving from my day job and a lot of days is good some days like today or not so good but I have to stay focused and I have to keep my mind on the prize.

 

I had a couple of ideas what I’m wanting to try to do with my flask at side is work on some tutorials and maybe even go through a freelance website and dig through some projects and see what people are requesting and looking for. So today I was on upwork and I found a project where a guys looking for someone to Cody flask microservices site that will take ancestry.com file and spit out Json objects. He was only paying like $35 for the project but it would be fun to try even though I’m not really capable or ready to bid on a project I’d like to try and test the waters and see what I can do so I think I’m going to pick that up and make a video about it and maybe even do multiple videos on projects freelance projects and and you trying to sift through those projects to find ideas for things that help you learn more about programming in general.

 

So to get started I think my first thing is going to be a flat file Blog then I’m going to add some functionality to that blog and just keep kind of working at it building things up and hopefully it’ll help other people and I can grow my knowledge around all these.

Working through the SaaS flask tutorial on Udemy…

I’ve started going through a SaaS application tutorial on Udemy and discovering that the structure of building an application with Flask is very confusing in the early stages. Especially depending on what tools you are using. In this example he is using Docker to contain the app, and this is my first time using Docker. Seems really cool but I will have to work through this tutorial to get a full understanding. One problem I am having with the tutorial is that you aren’t really writing the code as you go, he has everything in sections already written, and he just walks through and explains it. Which isn’t a huge problem but I plan to use this code as a base for what I am going to build later, so I guess I will just use each chapter and step to build my own product. More details on what that is going to be once I am more comfortable. A few things that are new to me:

Prior to working with Flask, I was introduced to web development frameworks through PHP in the mid 2000’s with Codeigniter and CakePHP…which I really didn’t use a lot…but I gained an understanding of the MVC pattern…then I went on to complete a few tutorials on Rails. So the pattern I am familiar with…but the way in which most Flask tutorials and projects are structured seem to be more like Django, in that they are using the MTV pattern. I’ve linked the article above for further reading on my part to get an idea of how to “not get stuck” in the early stages of planning a project because the pattern is there to assist me.

More tutorials…

I challenged myself with a project and set a deadline to have it done by 9/6. It doesn’t look like a lot, but was a learning experience. Now it is time for my next project. I am floating a few ideas around in my head and feel like it may be a good idea to actual make some videos for the Flask Casts site walking through some ideas. I am also looking to complete some more Udemy tutorials, I have 3 that I would like to complete. One of which is dealing with building API’s with Flask, another on building a SaaS site with Flask and also covers some new material such as Docker which I am very interested in learning. I have some that are more on Python itself which I am finding that I have a basic understanding of, but need more intermediate and advanced experience.

Ill post some updates on the SaaS course, because I believe it will be the one that I begin with.

Final touches to my Flask Casts before release

I am making the final touches to the site over the weekend. Today the plan is to get the MAJORITY of the site completed and then make a few little front end tweaks before pushing the site live.

Update at 8PM. I basically got it done today.  Now it’s a matter of deployment.

Going to walk through a tutorial on digital ocean.