Questioning Emotional Reactions

I was encouraged to start writing about my emotions as a means to facilitate my emotional expression regarding loss and grief. I’ve never kept a journal nor really taken the time to really think about how I feel about certain things, and I think this is going to be beneficial exercise.

Starting to do the above was actually the motivator to moving my site to a new host, which was quite a bit of fun and will save me about 120 a year on hosting fees, so a plus on multiple levels.

I’m going to tag posts related to this subject with ‘therapy’ so they’re easily searchable (or avoidable).

move to a new domain complete

Decided to stop paying so much for a shared hosting solution and do something a little funner and harder. So .. welcome to the new host! Glad I did it because I got exposed to security hardening, dns configuration, ssl certificates, and other hosting-related things.

Next goal is to set up a simple mail server to replace the functionality from the previous host. That isn’t really up yet, but it will be as soon as I figure that out.

That’s pretty much it for now.

1994 Honda Civic Brake Light Won’t Turn Off

If a car you are working on is experiencing a symptom where the brake lights won’t turn off, one possible issue could be the brake switch. It is located on the brake pedal. Inspect it for missing parts, such as the nipple not sitting properly in the groove or is completely missing.

If it is not seated properly, you’ll notice a depressed switch which the brake pedal would normally press. Fix that part. I repaired it using a bolt with two nuts, one on either side of the part of the metal used to mount the nipple item.

Information for this post was gathered from a honda-tech.com post. I’m writing this to archive the data in case that forums data is lost, as years-old posts tend to become. Hope this helps somebody.

https://honda-tech.com/forums/honda-accord-1990-2002-2/rear-light-brake-lights-stay-when-car-off-2593854/

Some Opening Principles and Chess Strategies

Quick List of Chess Strategies:
*  Avoid Moving a Chess Piece Twice During the Opening is a good chess strategy.
*  It is Better Chess Strategy to Develop the Knights before Their Respective Bishops.
*  A good chess strategy is to Develop Both Knights before the Queen or Bishop.
*  A good chess strategy is Do Not Develop your Chess Pieces Exclusively on One Side.
*  A good chess strategy is as a Rule Do Not Play a Piece beyond Your Own Side of the Board in the Opening.
*  A good chess strategy is if You Have Castled Do Not Permit the Opponent to Open a File on Your King.
*  A good chess strategy is to Avoid Pinning the Opponent’s King’s Knight before He has Castled, Especially When You Have Yourself  Castled on the Kingside.
*  A good chess strategy is to Avoid Making Exchanges which Develop Another Piece for the Opponent.
*  A good chess strategy is to Avoid Exchanging Bishops for Knights Early in the Game.
*  A good chess strategy is to Avoid Premature Attacks.

Continue reading “Some Opening Principles and Chess Strategies”

Python: write a function to create an image of a circle

I’m having a lot of difficulty figuring out the logic behind assignment 6.3.

I’m attempting to visualize the solution as a grid. I generate a list within a list to contain the information I will later use to code an image.
For example, if the radius is 3, the off states would look like this:
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]
[0, 0, 0, 0, 0, 0, 0]

With the intention of turning on the corresponding pixels to the circle function I am to create:
[0, 0, 0, 1, 0, 0, 0] 
[0, 0, 1, 0, 1, 0, 0]
[0, 1, 0, 0, 0, 1, 0]
[1, 0, 0, 0, 0, 0, 1]
[0, 1, 0, 0, 0, 1, 0]
[0, 0, 1, 0, 1, 0, 0]
[0, 0, 0, 1, 0, 0, 0]

Obviously, a radius 3 circle is not going to look very defined, this was just a demonstration. I then intend to parse through each row and use the setPixel() function to activate the pixel in an EmptyImage object.

My trouble is figuring out how to get my function to encode the map of pixels..

I think I am doing this in a much more complicated manner than intended. Any advice?

Code thus far:

from cImage import *
from math import pi

radius   = 3
diameter = radius*2
pixel = Pixel(80,80,80)  # grey pixel

column    = []
for i in range(0, diameter+1): #allow for an odd number of columns

column.append(0)

map = []
for i in range(0, diameter+1): #allow for an odd number of columns

map.append(column)

for i in map:
print(i)

# All this spits out is the circumference, stuck here.
def myCircle(thisRadius):
circumference = 2 * pi * thisRadius
return int(circumference)

print(myCircle(radius))

#win    = ImageWin(“circ”, diameter, diameter)
#cirImg = EmptyImage(diameter, diameter)

Revert Spotify to Pre-latest Update and Prevent Upgrade [Windows]

If you don’t like how the latest Spotify update works, I’ve searched about the internet and found a method to upgrade down to version 0.9.7… and to also prevent automatic upgrades. This works for Windows.

  1. Download the old version you wish to use. I found this to be a great source:  linky
  2. Install that version, and exit Spotify when it auto loads.

Next, follow these instructions (found at linky):

  1. Go to C:/Users/<Name>/Appdata/Roaming/Spotify
  2. Make a new empty text file
  3. Name it Spotify_new.exe
  4. Right click the file and make the file read only
  5. Make a new empty text file
  6. Name it Spotify_new.exe.sig
  7. Right click the file and make the file read only

That’s it. Enjoy the radio functionality and other features for which you pay [one way or another.]