TinyDB to the rescue!

I’ve been dreading doing something about my database knowledge, especially when it comes to Python. MySQL, mongo, SQLite, etc. It all just seemed so over the top, and heavy handed to me. Yah, great… So, I’m gonna be using a database that Fortune 500 companies are using? Yah, great. That’ll turn out well.

That’s until I heard about TinyDB. What it does is it uses the same base principles as some of the others, without all the overhead. In other words, you don’t want any ACID (in other words, what enterprise does) testing, but yet you still want to learn about database management? TinyDB is here for you. You don’t want to learn about multiple people trying to leach off your data? TinyDB is here for you. You want to learn and search databases? TinyDB is here for you.

Of course, if you need to have any of those things, then TinyDB falls apart. But as of right now, I’m actually having fun learning about databases, and most importantly, I’m doing searches in a database environment.

I’ve had to set up some of the bigger cousins of TinyDB to even get this website started, and let me tell you, it wasn’t fun. Just getting the initial password to reset was a major PITA. Hell, setting up SSH keys (and logging in) was much easier than this.

Some of you may call TinyDB the little database “that thought it could“. In many ways, you’re absolutely right. Hell, give it the moniker of My Little Starter DataBase. I don’t honestly give a shit. I’m learning, and that’s what matters.

Posted in databases, Programming | Tagged , , , , , , , | Leave a comment

Welp, I’ve completed my anagram generator

https://github.com/goishen/Anagram_generator

Had to delete some tabs in the function call. The damn thing would just keep on running and running and running otherwise.

Posted in Programming | Tagged , , , , , , | Leave a comment

George Orwell’s six rules for writing

https://www.writingclasses.com/toolbox/tips-masters/george-orwell-6-questions-6-rules

I am of the belief that George Orwell made me write more efficiently and succinctly. That’s not to say that there haven’t been other great writers, there have. But, I’ve always felt a connection to Orwell. Dunno why, either. Of course, I guess that’s the main point of a great writer. Get you on their side, and explain to you their point of view.

Posted in Writing stuff | Tagged , , , | Leave a comment

Coding and Ego

https://josebrowne.com/on-coding-ego-and-attention/

Very interesting article. Pretty basically it says that you should remove the ego from yourself and try and stay a beginner. The article has more than that in it, just trying to give you a one sentence description.

It’s definitely something I have, and will, continue to struggle with.

I know now that, “Pros are just amateurs who know how to gracefully recover from their mistakes.” ― Kevin Kelly

Posted in Miscellaneous, Programming | Tagged , , , | Leave a comment

Cool program.

https://soundcloud.com/talkpython/260-from-basic-script-to-interactive-data-sci-app-with-streamlit
Posted in Uncategorized | Leave a comment

Welp, I’ve finally created a github account.

https://github.com/goishen/cleanup

It’s a file for keeping your home folder clean, written in python 3 and tkinter. Should work on every distribution of Linux.

Was a major bitch too, figuring out that I had to change directories over to my home directory. After that, it all went fairly smooth. The only thing I had to figure out then was the logic of making it work on everyone’s system. Was a lot of fun.

Never realized how much of programming was reading. Right now, I’m spending 90% of my time reading, 10% coding. Sure as shit hope that improves.

Posted in Programming, Uncategorized | Tagged , , , , , , | Leave a comment

Mass Effect : Andromeda related

I can speak conclusively when it comes to Andromeda, the [DLC] plans were never in place the way that they are for Anthem.

Read more: https://www.tweaktown.com/news/63104/bioware-set-up-mass-effect-andromeda-dlc/index.html

Posted in Games, Money Hungry Games | Tagged , , , , | Leave a comment

Python and the deceptively simple program

When I first started learning about Python, I ran across this program and in my eagerness to learn, I didn’t pay much attention to it. I’m not sure if the instructors told me how deceptively simple it was, but it was when I was first learning about for loops. It looks a little something like this.

What it’s supposed to do is go through the numbers one through ten and find all the even and odd numbers. However, if you’re a dipshit like me, you probably wrote the code somewhat like this.

Who needs all those fancy f’s and squiggly brackets anyway, right? That is until you got something like this.

Let’s go back and take a look at why that won’t work, first of all.

Same as before

You probably entered just before this something like…

mylist = [ ‘1’, ‘2’, ‘3’, ‘4’ ….. etc]
Or alternatively
mylist = [ 1, 2, 3, 4, …. etc ]

Both of those will not work with the code written above. I know that it caused me to tear my hair out in confusion. In the if num % 2 == 0: line, it’s expecting an integer. If you put in the variable mylist = [‘1’, ‘2’, ‘3’, ‘4’… etc ] you’re putting in strings. You might as well ask it to divide an apple by an orange, and seeing if its remainder is a house. It just doesn’t make sense.

Or, alternatively, if you put in the variable mylist = [ 1, 2, 3, 4, … etc], the print(‘Odd number’ + num) is expecting a string, not an integer.

So, then, let’s take a look at how we fix this mess.

Well, for the first thing, it’s going to be all in the variable that you declared. So let’s go with mylist = [‘1’, ‘2’, ‘3’, ‘4’… etc ] first.

Now, the first thing you can probably see is that I’ve added int to if int(num) % 2 == 0: This is because it will try and treat everything inside of the parenthesis as an integer. Also note that in the line print(‘Odd number’ + num), you don’t have to do anything because it already is a string. Remember what you declared your variables as. (mylist = [‘1’, ‘2’, ‘3’, ‘4’… etc ])

Alternatively if you declared your varibles as mylist = [ 1, 2, 3, 4, etc … ] your code would have to look something like this.

Here we have if num % 2 == 0:, because it already is and integer. Here, what we have to do is change it over in the print statements. If you’ll note the str(num) in both of the print statements.

This can work with tuples, too. Mess around with it and try it out. Just remember what you declared your variables as.


I dunno if this helps any of you, but I sure as hell know that it helped me.

Posted in Programming | Tagged , , , , | Leave a comment

Why I am not against microtransactions.

Wait a minute, before you for the reply button, lemme explain. I’m not against microtransactions in mobile gaming. In PC gaming, oh yeah, I’m right there with ya. Bring out the pitchforks and the hay and lighters.

But in mobile, it’s quite a different story. Why? Well, let’s back up a bit and take the entire world as a stage.

In Asia, mobile markets are HUGE. I once heard a report that most people in China don’t even own a PC or a laptop, preferring to use their smartphone for everything.

And many Asians are fine with P2W mechanics in their games.

So, why bother? EA, UbiSoft, and Bethesda already have their cash cow, called Asia. It’s not a matter of if, nor when. It’s already taken ahold.

But I’ll be damned if I’m gonna stand by and let them ruin my games with that bullshit.

Posted in Games, Money Hungry Games | Tagged , , , , | 1 Comment

Is Steam playing it smart?

About a year ago, I guess, a new launcher was, well, launched. Epic Games Store. And Steam sat there idly by.

Throughout the process of Epic buying up exclusives, including, but not limited to, Phoenix Point, The Outer Worlds, Borderlands 3. Still, Steam remained quiet.

Now, this got me to thinking. Either… And you’ll have to bear with me now, but either… Steam is so sure that future of gaming lies in the hands of the indie studios, or… Steam believes that enough big budget games are coming their way.

Or possibly, both. They could believe that eventually A developers will turn into AAA developers. Like what happened over at Larian Studios just this past week (or rather, just announced this past week). I’ll cut to the chase, they tripled in size.

I personally think so. Whatever Steam is doing is working. And by working on Linux and games for linux, is always a plus.

Posted in Games, gnu stuff, Operating Systems | Tagged , , , , , | Leave a comment