Images 0.1

I’ve decided to add some of the images I’m using for my current game (mainly to enable people to assist me with figuring out how to accomplish certain tasks. If you’re one of those helpful people, thanks!

Posted in Pygame | Leave a comment

Removing GoingOnEarth

I rarely get Malware that isn’t simple to remove, but I recently got a “GoingOnEarth” problem. Essentially, my Google searches were rerouted to a particular website. This was annoying, obviously. In the days of SEO, I think it’s become an unfortunate reality that Google searches are dominated by poor quality results. In an effort to help some hypothetical victim of this problem, I will provide the following information:

Spybot Search and Destroy and Malwarebytes both removed symptoms of the problem. But after the computer restarted, the problems went back to being just as bad as before. I ended up downloading Avast Antivirus and running a boot time scan. Depending on your version of Avast, you may take different steps to activate this scan. It may not be worded boot-time scan. You are looking for something that scans your computer when it is restarting, rebooting, etc. Anything that matches that description is probably what you want to choose. For me, the scan took between 1-2 hours, but it completely removed the issue.

Because individual circumstances can vary, this solution may not work for everyone. There may be a simpler solution. Nonetheless, this solution did work for me and if you are willing to wait, it’s likely it should solve your issues. I updated Avast before scanning and I’d recommend doing so (it may catch other things you didn’t know about). GoingonEarth appears to be some sort of Javascript, from what I could see. The scanning did ask me to confirm deletion so you might want to be in the room. I don’t want you to be disappointed when you wake up the next morning at 50% and still have to wait to complete the scan.

Hopefully this helped you with your issue. If not, good luck finding a solution that works for you.

Posted in Malware | Leave a comment

Python Chess-Style Gameboard Generator

import random,math,sys
import pygame
from pygame.locals import *
import os

pygame.init() #Initializing Pygame

screenwidth= 800
screenheight= 600
screen=pygame.display.set_mode((screenwidth,screenheight),0, 0)

def terminate():


def cookie(x,y):
    return random.randint(x,y)

tri = 9

while True:
    while tri==9:
        for event in pygame.event.get():
            if event.type == QUIT:
        x = 0
        y = 50
        w = 0
        while  x!=600:
               w = w+1
               if w%2==0:
               if x>=600 and y!=450:
                    if y<450:
                        x = 0
                        y = y+50
                    if y>=450:
    while tri==10:
        for event in pygame.event.get():
           if event.type == QUIT:

Below I’ve provided the images used and a screenshot of the code being utilized. You may notice the function “cookie” isn’t doing anything. I left in it there because you might find it useful. By using w = cookie(1,3) you can create a loop that will produce an image depending on what random number is generated (between one in three). You simply set up an image blit that varies depending on what the value of your “w” is following the execution of the “cookie” function. Lastly, I am using the term “chess-style” because it’s not a chess-board (it does not have the correct amount of spaces). However, you could easily change things up to generate a chess-board out of this code (I can’t do all the work). You might also use screenwidth to generate a “stop on condition x” that will be consistent regardless of your game dimensions (though this consistency would entail adding fewer or more squares). Anyway, I thought this code might be somewhat useful to the theoretical Pygamer. Enjoy.

Code Image
light blue square
purple square

Posted in Pygame | Leave a comment

Randomizer Using Javascript


<script type="text/javascript">
function displaymessage()
var colors = ["agate", "alexandrite", "chrysoberyl", "aquamarine", "beryl", "chrysocolla", "diamond", "emerald", "feldspar", "garnet", "hermatite", "jade", "jasper", "kunzite", "lapis lazuli", "jadeite", "nephrite", "malachite", "obsidian", "peridot", "opal", "pyrite", "quartz", "agate", "amethyst", "citrine", "chalcedony", "onyx", "tiger's-eye", "ruby", "sapphire", "spinel", "sugilite", "tanzanite", "zoisite", "topaz", "turqoise", "tourmaline", "variscite", "zircon", "corundum", "cubic zirconia", "moissanite", "amber", "ammolite", "bone", "coral", "ivory", "nacre", "jet", "pearl", "andalusite", "axinite", "benitoite", "bixbite", "cassiterite", "clinohumite", "iolite", "onyx", "kornerupine", "zeolite",];
var randValue = Math.floor(Math.random() * colors.length);
document.forms["ninja"].elements["crayons"].value = (colors[randValue]);

<form id="ninja">
  <p align="center">
    <textarea name="crayons" cols="50" rows="5" id="crayons"></textarea>
      </p><p align="center">
    <input type="button" value="Magic" onclick="displaymessage()">


This code is being displayed with a WordPress plugin known as CodeColorer. I’m still fiddling with how it works. I’m hoping I can find a way to highlight multiple types of code in the same document without introducing a second table. I also want to figure out how to maintain the vertical scrolling while removing horizontal scrolling. I’ve recently discovered that I have a habit of inefficiently wandering websites in search of solutions to problems. I learn a bit of stuff that’s usually unrelated to the topic, but it’s not time efficient. Since coding has so much depth to it, I don’t always know when what I “want to do” is far out of reach of what I “can do.” Consequently, I’m trying to learn to leave problems alone and try to learn something else and/or approach the problem in another way.

This code combines HTML and Javascript. I know at a certain point, people are allowed to claim ownership of their source code. I doubt that applies here as it’s a relatively basic code. Plus I’d let others use it anyway. I hope to elaborate on this later by providing a more detailed analysis of each code section and what it is doing. I know a lot of tutorials/guides use generalized names for things. I’ve used labels like “crayons” and “magic.” I find unusual names much easier to deal with than things like “FormId1,” so expect to see more of that. Hope you find this somewhat helpful!

Posted in Javascript | Leave a comment