Posts

Showing posts from September, 2014

Frico

Image
You have some shredded cheese, but no cheese slices... Frico Ingredients: 4 ounces sharp white cheddar or your favorite cheese, grated (about 2 cups) 1 teaspoon all-purpose flour Directions Step 1 In a medium bowl, toss together cheese and flour. Heat a large nonstick skillet over medium-low heat. Sprinkle about 1 1/2 tablespoons cheese mixture into skillet to form a 4-inch round. Step 2 Cook until cheese is starting to melt and become firm, 1 1/2 to 2 minutes. Using a small offset spatula, turn; continue cooking until it is firm and slightly golden, 15 to 30 seconds more. If skillet gets too hot and frico begin to color too quickly, remove from heat for several minutes before proceeding.

Grab videos.

Image
Good job for an old computer to get videos from youtube. Data flle (aka vidlist) consists of lines like this: https://www.youtube.com/watch?v=3kJXbXhEPrk https://www.youtube.com/watch?v=yxAhrUAvjo0 http://www.youtube.com/watch?v=9DTjssGms8I https://www.youtube.com/watch?v=ACsy6xSIBm8 The code: <code>  #================================ # #  Get youtube videos # #================================= # Assignments # -------------------------------- datafile="vidlist" #================================= # # Data input #--------------------------------- while read line         do theurl=$line                 youtube-dl $theurl -f mp4 done < $datafile </code>

God bless America.

Image

Not soup?

Image
Wanted something quick, but not soup.

Couple of legacy web tricks.

Image
Legacy way to combine text and a graphic. <table>     <tr>         <td>                 <img src="prof.png" alt="">        </td>        <td>06/01/2008 The Info pages are done <br> 06/09/2008 Locally on-line as of 03/05/2008 <br> 06/08/2009 Some web pages updated <br> 06/30/2010 Redoing student services web pages. <br> 09/15/2014 Menus are restructured        </td>    </tr> </table ---------------------------------- Change text in many files with one command. Say you want to duplicate some web pages to another server, but the web server names are different. That means all the links in the pages will be wrong. For example take the following simple web page: [code] <html> <title> Offshore Educators (C1001) </title> <title> Send us some comments </title> <body bgcolor="aquamarine"> <CENTER><h2><B><I&g

Parallel port floppy control.

Image
Though floppy drives are not really used anymore, they can be adapted for other purposes. Most web cameras only look in one direction. With the help of a floppy drive and a sort of lazy Susan, you can control the direction of view for the webcam. The electronic wiring is fairly  simple. You can connect in several ways.  Variation: if the jumper from pin 11 to 12 is set and you have the power source connected, the led of the disk drive should be on. If you do not want to use the picture: A. Connect Pin 11 and 12 with a Jumper on the drive. B. Connect Pin 18 of the drive with Pin 2 of the parallel port. C. Connect Pin 20 of the drive with Pin 3 of the parallel port. D. Connect the rightest pin of the power from the drive to the red wire of the floppy power cable. E. Connect the pin left of the rightest pin of the power with black wire on the floppy power connector and to the ground to pin 18 of the parallel port. Actually I did not touch the ground wire on the

Linus must be happy.

Image

Amore.

Image

Loading...

Image

Pizzamail.

Image

Shell shock attacker?

Image

Ever feel like this?

Image

So respected?

Image

Hot air?

Image

Warning: security issue in bash!

Image
So many have blogged or left a message on the web at such places as Google+, this is probably old news. :(){:|:& };: env x='() { :;}; echo vulnerable' bash -c "echo this is a test envX='(){(a)=>\'bash -c echo "echo date"; cat echo --------------------------------------------------------------------------- Per ArsTechnica: Security vulnerability in the GNU Bourne Again Shell (Bash), the command-line shell used in many Linux and Unix operating systems, could leave systems running those operating systems open to exploitation by specially crafted attacks. “This issue is especially dangerous as there are many possible ways Bash can be called by an application,” a Red Hat security advisory warned. The bug , discovered by Stephane Schazelas , is related to how Bash processes environmental variables passed by the operating system or by a program calling a Bash-based script. If Bash has been configured as the default system shell, it

Quickie home made video.

First attempt at merging video and audio. Pretty easy with ffmpeg on Linux. The chess video is no longer a silent film. Microsoft allegedly has an equivalent ffmpeg. ffmpeg may also be known as libav or avconv. $ ffmpeg -i git.mp3 -i chess.flv  chess.mp4 Pretty lucky here as the video and the movie were about the same length. Being a film editor must be fun, We will do more complicated stuff later. Makes for much respect for noted film maker Ken Burns and all his crew. Do not have a guitar anymore, but again that was me playing the guitar.

Egg drop soup

Recipe 1 Ingredients     6 cups reduced-sodium chicken broth     2 large eggs     2 tablespoons freshly grated Parmesan     2 tablespoons chopped flat-leaf parsley     2 tablepoons chopped fresh basil leaves     1 cup lightly packed spinach leaves, cut in thin strips     Salt and freshly ground black pepper Directions Bring the broth to a boil in a large saucepan over medium-high heat. In a bowl, whisk the eggs, cheese, parsley, and basil to blend. Reduce the heat to medium-low. Stir the broth in a circular motion. Gradually drizzle the egg mixture into the moving broth, stirring gently with a fork to form thin strands of egg, about 1 minute. Stir in the spinach, then season the soup, to taste, with salt and pepper. Ladle the soup into bowls and serve. ------------------------------------------------- Recipe 2. Ingredients     6 cups brown chicken stock, recipe follows     3 eggs     3 tablespoons semolina     3 tablespoons grated Parmigiano-Reggiano     1 tablespoon Italian parsley, f

Uses for your own private cloud.

Image
If you have an old machine that is still good shape, but may not run the latest software, considering turning it into a home server. There is so much you can do with it.  In fact, I just installed a personal accounting application on the server the other day. Using that old machine will be the best money you never spent on a system. More information at: http://www.instructables.com/id/Uses-for-your-own-private-cloud/ Just tooling around the server. softserv and oesrvr1 are actually coming from the same machine commonly know as virtual hosts.  Actually have five plus hosts on that system. Then you are taken through a myriad of free open software programs that have been installed available from sourceforge.net and other sites. The latter part of the video displays standalone web applications from web pages that have been extracted and added to the server. Plus a few of my own apps are featured.  Pretty powerful coming from an old Pentium III computer. Not for the real world, but f

The clock.

Code is at: http://www.instructables.com/id/Old-laptop-or-pc-into-a-clock/

Rasperry Pi security.

Image
(Article from instructables.com with author's permission). Security is becoming more and more important to people. So they are used in protecting property. Actually the are other reasons. Set up security cameras in the testing lab at the school where I use to work to aid in keeping students from cheating. Most people want to be able to use a computer to fill that need without spending zillions of dollars on a special system. We use a Raspberry Pi plus an inexpensive web cam to do just that. There are two major software packages for linux to set up video security and they are Zoneminder and Motion. Like Motion because of the smaller footprint. That makes for better performance on embedded devices such as the Raspberry Pi. . Since the video is internet based, you can watch it from virtually anywhere you can connect to the system. More information on Zoneminder at: http://www.instructables.com/id/Computerized-video-security-setup/ Here is a quickie setup we did for the Raspberry

Software equivalents between platforms.

Image
One of the questions I get is that what software may I use to replace the programs that I used on my old system. Personally, I have been off of proprietary software such as Microsoft systems for more than seven years and have not looked back.  Well here is a table that might help.  By the way, this list is by no means exhaustive. One old example Wordstar Joe's own editor By the way:  Thanx to Troy R. Schulz who compiled this list.  MSWindows Application Open Source Application Adobe Acrobat Reader KPDF People want to be able to view PDF files quickly and easily. We usually recommend KPDF, but if someone uses Google Apps for Business they can view PDF's right in their Chrome Browser. Adobe Illustrator, CorelDRAW! Inkscape Some of our customers (including myself) do vector graphic design. Some are sign shops. Honestly, most use Corel Graphics Suite, but many ar

Tinymce + Simplenote

Image
No install software such as a simple editor, can be a real advantage. Here are two. A no install web editor is tinymce ( http://www.tinymce.com/index.php ) The demo version is nothing to look at, but if you download the development version and change one line of code, it becomes a bit more powerful. Original: <!DOCTYPE html> <html> <head><!-- Hosted --> <script src="tinymce.js"></script> <script>tinymce.init({selector:'textarea'});</script> </head> <body> <textarea>Your content here.</textarea> </body> </html>   With the development package it becomes: <!DOCTYPE html> <html> <head><!-- CDN hosted by Cachefly --> <script src="tinymce.dev.js"></script> <script>tinymce.init({selector:'textarea'});</script> </head> <body>     <textarea>Your content here.</textarea> </body&

Disappearing spreadsheet.

Image
  The code is at: http://thiscouldbebetter.wordpress.com/2013/04/16/a-simple-spreadsheet-in-javascript/

Simple spreadsheet

Image
Ever wanted to use a spreadsheet just for a quick calculation either on your computer or especially on a touch pad.  If nothing else it can be used as a learning to in building your own spreadsheets. Years ago I found this source code for a minimal spreadsheet from a CPM (forerunner of DOS operating systems) magazine. Typed it in and have been using it since. Of course many improvements have been made since the original code was typed in.  As I port the code to new platforms, there are always enhancements to be made. Everything now is web based so why not a basic spreadsheet. It is made up of three files that need to reside in the same directory. Major improvements can and should be made. Hope you enjoy this page as much as I did from the code I used years ago.  To be honest there are many good javascript spreadsheets (aka http://www.simple-groupware.de/cms/Spreadsheet/Home ), this article is just for example in case you wanted to dabble one of your own. ----------------------

Using java.

Image

The new math?

Image

You speak what?

Image

Having fun with audio!?!

Image
Like to use my server as a stereo so to speak. Either can play sound files directly or can play music from the internet! For some reason the sound was not working on my system, so I decided to remove the pulse stuff and reinstall the alsa setup. This is the only method that I have found that works flawlessly: $ sudo killall pulseaudio $ sudo apt-get purge pulseaudio pulseaudio-utils gstreamer0.10-pulseaudio \  libpulse-browse0 paman pavumeter pavucontrol  $ sudo apt-get purge $ sudo mv /etc/asound.conf /etc/asound.conf-bak $ rm ~/.pulse-cookie $ rm -r ~/.pulse Reboot. Then install:   $ sudo apt-get install alsa-base alsa-tools alsa-tools-gui alsa-utils alsa-oss \  alsamixergui libalsaplayer0   Everything now works fine! In fact, sound is better than it ever has been.  Speakers seem to gently boom out the sound. Now you will want to install mplayer.  Most everyone knows how to use mplayer, if not use   $ sudo apt-get install mplayer $ man mplayer   That should do we

Test movie

Had some old video without audio and had some old audio without video, so I decided to put them together to see what would happen. Feel like I am in an old silent movie theatre playing the piano. Actually that is me playing the guitar from many years ago. Did it in no time at all with ffmpeg.