Posts

Showing posts from December, 2013

Recipe for new years good luck.

From  http://www.whfoods.com/genpage.php?tname=foodspice&dbid=52 Compared to other types of dried beans, lentils are relatively quick and easy to prepare. They readily absorb a variety of wonderful flavors from other foods and seasonings, are high in nutritional value and are available throughout the year. Lentils are legumes along with other types of beans. They grow in pods that contain either one or two lentil seeds that are round, oval or heart-shaped disks and are oftentimes smaller than the tip of a pencil eraser. They may be sold whole or split into halves with the brown and green varieties being the best at retaining their shape after cooking. Nutrients in Lentils 1.00 cup cooked (198.00 grams) Nutrient %Daily Value  molybdenum 198%  folate 89.5%  fiber 62.5%  tryptophan 50%  manganese 49%  iron 36.6%  protein 35.7%  phosphorus 35.6%  copper 25%  vitamin B1 22%  p...

Count down script for new years.

Image
Happy new year! 'Nix style new years count down: $ while [[ $(date +%Y) -ne 2015 ]];do figlet $(($(date -d 2017-01-01 +%s)-$(date +%s)));sleep 1;clear;done;figlet 'Happy New Year!' ----------------------------------------------------------------------- Auld Lang Syne Should auld acquaintance be forgot,  And never brought to mind?  Should auld acquaintance be forgot,  And days o’ lang syne! Chorus: For auld lang syne, my dear  For auld lang syne,  We’ll tak a cup o’ kindness yet  For auld lang syne!                We twa hae run about the braes,  And pu’d the gowans fine,  But we’ve wander’d mony a weary foot  Sin’ auld lang syne.               We twa hae paidl’t in the burn  Frae morning sun till dine,  But seas between us braid hae roar’d...

Count down script for new years.

Image
Happy new year! 'Nix style new years count down: $ while [[ $(date +%Y) -ne 2017 ]];do figlet $(($(date -d 2017-01-01 +%s)-$(date +%s)));sleep 1;clear;done;figlet 'Happy New Year!' ----------------------------------------------------------------------- Auld Lang Syne Should auld acquaintance be forgot,  And never brought to mind?  Should auld acquaintance be forgot,  And days o’ lang syne! Chorus: For auld lang syne, my dear  For auld lang syne,  We’ll tak a cup o’ kindness yet  For auld lang syne!                We twa hae run about the braes,  And pu’d the gowans fine,  But we’ve wander’d mony a weary foot  Sin’ auld lang syne.               We twa hae paidl’t in the burn  Frae morning sun till dine,  But seas between us braid hae roar’d...

The new vcr.

Image
Got out the old Mythtv box and updated it. Made a few tweaks and all was well. Now you can get standalone digital recorders aka pvr's that are not tied to a provider, Not tested any of them yet. Mythtv has one advantage that you can use it with thin clients and or touchpads as frontends to watch/listen media. Just like the new pvrs, with MythTV you can use OTA (over the air) antenna TV very easily. No wonder that cable subscriptions have allegedly gone down dramatically. Titantv .com is a good place for TV listings. http://www.instructables.com/id/Setting-up-a-computer-based-DVR-with-Mythtv-for-l/

The new vcr.

Image
Got out the old Mythtv box and updated it. Made a few tweaks and all was well. Now you can get standalone digital recorders aka pvr's that are not tied to a provider, Not tested any of them yet. Mythtv has one advantage that you can use it with thin clients and or touchpads as frontends to watch/listen media. Just like the new pvrs, with MythTV you can use OTA (over the air) antenna TV very easily. No wonder that cable subscriptions have allegedly gone down dramatically. Titantv .com is a good place for TV listings. http://www.instructables.com/id/Setting-up-a-computer-based-DVR-with-Mythtv-for-l/

They are reusable.

Image
Old hardware can be used for doing electronics just like the Arduino, Raspberry Pi, and etc. Parallel port can be used for digital interfacing. You can use the joystick port for analog input just like the Arduino. (less accurate though). The serial port allows you to do communication.   Some vga cards even have i2c interfaces http://www.instructables.com/id/Electronic-Guides/

Teleprompter update

Image
While back I have made a cheap teleprompter, but you had to use the internet to take advantage of it. This software would probably work great with a touchpad as it is basically a web page that does not take up nuch room. you can find more information at: http://www.instructables.com/id/Linux-ghetto-Tele-prompter/ ----------------------------------------------------------------------------------- Example code: Teleprompter.html <html> <head> <style> body {      font-family: Helvetica,Arial,sans-serif;      font-size: 2.4em;      line-height: 1.4;      background: #000;      color: #fff;      overflow: hidden; } #speech {      position: absolute; } p {      margin: .5em; } .slide {      text-align: center;      margin: 0; } </style...

Create your own newspages

Image
Using bash over simplified to create a web page so that you do not have to go to a bunch of web pages and therefore you miss the ads. Update: You can find the similar code for the sub-programs in earlier articles. Update new section to add to script #-------------------------------------------------------- # cnn echo "<h3>CNN Headines</h3>" >> report.html echo "<pre>" >> report.html # creates cnn.txt ./cnn.sh > cnn.txt echo "<pre>" >> report.html cat cnn.txt >> report.html echo "</pre>" >> report.html Original script #---------------------------------------------- # daily journal echo "<html>" > report.html echo "<body>" >> report.html echo "<script>" >> report.html echo "var d=new Date();" >> report.html echo "document.write('<h2> Journal for ');" >> repo...

Repair hd

Under construction ---------------------------- "Bad block messages" usually happens when drives will not mount or boot completely. Checkout error for sure dmesg | tail [ 4324.292510] sd 3:0:0:0: [sdb] Assuming drive cache: write through [ 4324.292521] sd 3:0:0:0: [sdb] Attached SCSI disk [ 4327.713599] EXT4-fs (sdb1): ext4_check_descriptors: Checksum for group 1536 failed (18982!=0) [ 4327.713612] EXT4-fs (sdb1): group descriptors corrupted! [ 4331.946594] EXT4-fs (sdb1): ext4_check_descriptors: Checksum for group 1536 failed (18982!=0) [ 4331.946607] EXT4-fs (sdb1): group descriptors corrupted! [ 4342.836612] EXT4-fs (sdb1): ext4_check_descriptors: Checksum for group 1536 failed (18982!=0) [ 4342.836625] EXT4-fs (sdb1): group descriptors corrupted! [ 4600.601626] EXT4-fs (sdb1): ext4_check_descriptors: Checksum for group 1536 failed (18982!=0) [ 4600.601637] EXT4-fs (sdb1): group descriptors corrupted! Get back up blocks (if any) so problem can be resolved...

Twas the night before xmas...

'Twas the night before Christmas, and while not a creature was stirring (not even an optical mouse), /.'ers were posting & moderating with squeals of delight. When out on the Internet there arose such a clatter, I sprang from my keyboard to see what was the matter. I knew in a moment it must be Alek's Controllable Christmas Lights Webcam. But remembered in previous years it was a hoax - /. said darn. And then, in a twinkling, I realize Alek has done it for real — W'OH! With 20,000 lights plus giant inflatable Elmo, Frosty, Santa, SpongeBob, and Homer Simpson — D'OH! The X10 controls and 3 live webcams provide such clarity, that it has raised over $70,000 for Celiac charity. 'Merry Christmas to all, and to all a good night!'"

Happy Hollidays!

Image
The xmas tree!

Mediatomb.

Image
There are several media servers on the market that work well with TVs and PlayStation 3’s. I prefer MediaTomb , a uPnP -compliant server, because it is simple to install and configure. MediaTomb works flawlessly with my WD TV Live, and allows me to stream video (mostly AVI files), audio (mostly AAC files with .m4a extensions), and photos from my server to my TV. Install MediaTomb MediaTomb is simple to install on Ubuntu Server because a Debian package for it is in the repositories. To install MediaTomb, simply install the mediatomb package. $ sudo apt-get install mediatomb The MediaTomb daemon will start automatically after installation. Configure Port Number By default, MediaTomb will pick the first available port starting with 49152. When restarting the server, it may pick a different port, such as 49153. I prefer to lock MediaTomb down to a certain point, so my bookmarks for the web interface are always correct, and so I can set firewall and networking rules consisten...

Mediatomb.

Image
There are several media servers on the market that work well with TVs and PlayStation 3’s. I prefer MediaTomb , a uPnP -compliant server, because it is simple to install and configure. MediaTomb works flawlessly with my WD TV Live, and allows me to stream video (mostly AVI files), audio (mostly AAC files with .m4a extensions), and photos from my server to my TV. Install MediaTomb MediaTomb is simple to install on Ubuntu Server because a Debian package for it is in the repositories. To install MediaTomb, simply install the mediatomb package. $ sudo apt-get install mediatomb The MediaTomb daemon will start automatically after installation. Configure Port Number By default, MediaTomb will pick the first available port starting with 49152. When restarting the server, it may pick a different port, such as 49153. I prefer to lock MediaTomb down to a certain point, so my bookmarks for the web interface are always correct, and so I can set firewall and networking r...

Couple of bash scripts

----------------------------------------------------------------- Simple bash scripts for NFL football. ------------------------------------------------ nfl data for phase = 2 week = 14 season = 2013 ------------------------------------------------ Home           Score              Away Thursday, December 5 Houston 20 - 27 Jacksonville Final Sunday, December 8 Minnesota 26 - 29 Baltimore Final Kansas City 45 - 10 Washington Final Buffalo 6 - 27 Tampa Bay Final Miami 34 - 28 Pittsburgh Final Detroit 20 - 34 Philadelphia Final Oakland 27 - 37 NY Jets Final Cleveland 26 - 27 New England Final Atlanta 21 - 22 Green Bay Final Indianapolis 28 - 42 Cincinnati Final Tennessee 28 - 51 Denver Final Seattle 17 - 19 San Francisco Final NY Giants 14 - 37 San Diego Final St. Louis 10 - 30 Arizona Final Carolina 13 - 31 New Orleans Final Monday, December 9 Dallas 2...

Yet another music server.

Image
Love MPD. It is both a music player and an internet radio player. You can install this on a really old machine or a new arm based linux device. Just add an amp and  speakers and you have a new age stereo that can be controlled remotely..  Make your directories where you want your music to be and then copy them there if they are not already there. Now to inbstall the basic software. You have the program itself (mpd)and a command line player to test it.(mpc) $sudo apt-get install mpd mpc. Sure sure your stero and or speakers are attached to the sound card and they work. Now to test it. We will do it with a radio station if you do not have any music to t4est with. $ mpc add http://relay3.slayradio.org:8000/ adding: http://relay3.slayradio.org:8000/ $ mpc play You should hear the radio station out of your speakers now. Now let's edit the config file for file location and to allow the server to be accesed from other systems . Warnin...