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.


Raspberry Pi headless setup

If you’re banging your head on your keyboard because your Raspberry Pi is pingable but connecting via ssh gives you “Connection Refused” errors, read on.

Buried in an hour of frustration was this post on stackexchange:

All you need is to place an empty file named ‘ssh’ onto the boot (FAT) partition of your SD card (no need to mount ext3). Tested with 2016-11-25-raspbian-jessie-lite.img.

Source: https://www.raspberrypi.org/documentation/remote-access/ssh/

Tested this with RASPBIAN JESSIE LITE/Pixel release 2017-04-10. Hope this helps someone save some time.

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


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


for i in map:

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


#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.]

Promoted to Staff Sergeant (Army)

save1 (Large)

I was promoted today from Sergeant (E-5) to Staff Sergeant (E-6). I want to say that I’ve worked really hard to earn this, however the more I think about it, the more I realize that I don’t do anything out of the ordinary [for me].

Continue reading “Promoted to Staff Sergeant (Army)”

worse end of the year ever ::redux::

I wrote too soon. I judged myself and my actions far too quickly without looking at the larger picture.

Essentially, my reality was obfuscated by the delusions of another, and I believed so much in their world, that I lost touch with my own world.

After finding out the depths of the lies and deceit, I felt sad only because I fell for the trap. This sadness, luckily, was short lived, and when I was able to process all of the information, I realized that this person was quickly burying themselves in the web of deception.

Feels good, the clarity.