Posts

Showing posts from July, 2015

Playing soduku.

Image
Soduku is an interesting game of numbers and logic. You can not lose of you play it right. The board with preset numbers already sporadically spaced on the  board can be divided into nine sections  with each section of nine squares.The numbers one through nine must be strategically placed so that no number is duplicated in any column or row. Here is your typical sections. Section: The whole board: or you could mentally separate it into three columns or rows. You can have a maximum of one number shown three times in any column or row. For example we already have the number eight three times but the number nine is only shown twice. so we need another nine. In the upper right hand corner we have three possibilities where another number nine can go.  So we look at the whole board to eliminate the possibilities in our mind. In this case, it was easy to figure out the where the third nine should go. It will not be that easy with every number. It...

Clone me.

Image
You just bought a new computer and the first thing you want to do is to turn it on and play with it. DON'T. You will want to make a pristine duplicate of your computer's hard drive first. Why? Because that way you can be sure that you can go back to the beginning if you need to. In fact, I recommend getting two extra drives unless you have a server with plenty of space. Why two drives?  The first drive will be a duplicate of the virgin hard drive. The second drive will be a duplicate of the modified and  setup system you can use as a base in case you have problems.  After setting up thousands of systems in the corporate environment, the words come from experience. You will also need software to back up your drives without it having to be installed. You will have to do some research as they change all the time. The two I have used most is Clonezilla and Ghost. Clonezilla is free for personal use. Best to read the manual before using the software. Eve...

Making led control easy.

Image
Controlling leds can be a real challenge, unless you know how to use a bit shifter aka the 74hs595. Oversimplified here, but one you get the gist of it only the sky is the limit. From wikipedia:( https://en.wikipedia.org/wiki/Shift_register ) In digital circuits , a shift register is a cascade of flip flops , sharing the same clock , in which the output of each flip-flop is connected to the "data" input of the next flip-flop in the chain, resulting in a circuit that shifts by one position the " bit array " stored in it, shifting in the data present at its input and shifting out the last bit in the array, at each transition of the clock input. More generally, a shift register may be multidimensional, such that its "data in" and stage outputs are themselves bit arrays: this is implemented simply by running several shift registers of the same bit-length in parallel. Shift registers can have both parallel and serial inputs and outpu...

RPi GPIO

Image
Just a little documentation for easy access. Raspberry Pi GPIO Pinout Raspberry Pi GPIO Pinout NOTE1: The Raspberry Pi is a 3.3V device NOTE2: The GPIO pins are unbuffered and unprotected, so if you short something out, you could fry your whole Pi, so be careful! As with Revision 2 of the Rasberry Pi, there are some changes to the GPIO connector. Make sure you use the correct diagram for your board Raspberry Pi Version 1 Raspberry Pi Revision 2 Raspberry Pi B+ For full details see http://elinux.org/Rpi_Low-level_peripherals Also see: http://computoman.blogspot.com/2013/08/simple-io-for-raspberry-pi.html http://computoman.blogspot.com/2013/09/rpi-gpio-update.html http://computoman.blogspot.com/2014/11/turn-on-led-in-low-voltage-circuit.html

Yet another randomizer.

Image
Many months ago I introduced a batch file called Oracle. The one incentive I had was to separate the data from the code and make the code was flexible and reusable. In this case the author keeps the code and the data in the same file. of course that makes it seemingly more portable.Coding is both a science and an art. How you do it is up to you. $ ./8ball.sh Outlook good 8ball.sh [code] #!/bin/bash # start data answers=( "It is certain"   "It is decidedly so"   "Without a doubt"   "Yes – definitely"   "You may rely on it"   "As I see it, yes"   "Most likely"   "Outlook good"   "Yes"   "Signs point to yes"   "Reply hazy, try again"   "Ask again later"   "Better not tell you now"   "Cannot predict now"   "Concentrate and ask again"   "Don't count on it"   "My reply is no"   ...

Text in batch files.

Image
Saw this pic and thought it was an interesting login. Using ., ", d, Y, and P on the corners was certainly inventive; To make it easier to duplicate the printout we split the text into two lines into two lines. 888 888 888 d8888 888 888 888 888 d88888 888 88888888888888 888 d88 888 888 888 888 888 d88 888 8888888 .d8888b 88888b. 888 888 888 d88 888 8888" d88P" 888 "88b 88888888888888 YOP d88 888 888 888 888 888b 888 888 d8888888888 888 Y88b. 888 888b 888 888 888 d888 888 888 "Y8888P 888 888 888 d8b Y88b d88P 888 YOP Y88b d88P 888 Y88u88P 888 888 88888b. 888 888 Y888P ...

Remember Visicalc?

Image
What if Software Arts had patented Visicalc, Visiword, and etc?  Would office365 and Libreoffice never have existed?   Picture is actual VC.com running in the dosbox emulator. Per www.archive.org VisiCalc was the first spreadsheet computer program, originally released for the Apple II. It is often considered the application that turned the microcomputer from a hobby for computer enthusiasts into a serious business tool. VisiCalc sold over 700,000 copies in six years. Conceived by Dan Bricklin, refined by Bob Frankston, developed by their company Software Arts, and distributed by Personal Software in 1979 (later named VisiCorp) for the Apple II computer, it propelled the Apple from being a hobbyist's toy to a useful tool for business, two years before the introduction of the IBM PC. VisiCalc was, in part, inspired by earlier "row and column" spreadsheet programs in widespread use on systems of several national timesharing com...