Ken Nguyen

Programming Blog

View project on GitHub

Posts

The Longest Hold Time with Google

05 Mar 2018 | rants

A friend of mine was starting a business and so I helped him out with designing a website and getting his business listed on Google. We started the set up process and filled in all the information required. Finally, we got to a page where Google said that it will send a postcard by mail to the business for verification. No problem, we just need to wait a few days for the postcard to arrive. I clicked on the button for it to be sent. Then Google My Business took me to a page where a notification said “Google has suspended your page due to quality issues.” What? How did Google suspended his business page when he hasn’t even done anything yet?

Useful Python Tips

19 Feb 2018 | programming

This is a collection of some useful Python tips since I first started learning the language. I found out about them through different projects, online courses, and code challenges. The caveat is that they are a bit all over the place. They range from setting up a virtual environment to more general Python tips. As I learn more about the language, I will update this post.

Income Calculator Program

24 Jan 2018 | programming

The first thing I built with Python was an income calculator program. At the time, my job paid me an hourly rate. I had no fixed schedule and had to often come in to cover for my coworkers. My wages vary a lot every other week or so. I used to have to bring up the calculator app every week to crunch out the numbers. I had to remember how many hours I worked on each day of the week, add them all up together and multiply that to my wage. Thinking back on it now, it was really slow and tedious.

Mini Cactpot Algorithm Part 2

07 Jan 2018 | programming

This is the second part of the mini cactpot algorithm. This post is about calculating potential values of each line on the ticket and recommend the highest line of value to the user. If you want to see how to set up the mini cactpot ticket, use this link: Part 1.

Mini Cactpot Algorithm Part 1

26 Dec 2017 | programming

Here is the link to part 2: Part 2

This is the first part of the mini cactpot algorithm. If you want to take a look at the complete code, click on the link: FF14 Mini Cactpot Calculator. I will be talking about two main classes of the program, Game and Calculate. The class Game deals with displaying the ticket to the user, getting user inputs, and updating the ticket accordingly. The class Calculate does the heavy lifting by calculating all possible combinations of three number lines on the ticket and the payout of each.