Posts

Showing posts from April, 2015

Rest your eyes and just listen.

Image
Ereader is optional by using your portable music player. http://www.instructables.com/id/Ereader-is-optional-by-using-your-portable-music-p-1/

Remote computer radio.

Image
 Set up your own computer based radio. radio - locator .com is a good place to start for looking to find available stations. Many radio stations will let you listen to their live stream, Sometimes you can find and use the link on their web page. Sometimes you have to venture through web page html to find it the file and download it from their server. So if that file gets updated, you will need to get the file again. A play list might look like: $ cat klolfmaac.pls [playlist] File1=http://2243.live.streamtheworld.com:80/KLOLFMAAC_SC File2=http://2243.live.streamtheworld.com:3690/KLOLFMAAC_SC File3=http://2243.live.streamtheworld.com:443/KLOLFMAAC_SC Title1=KLOLFMAAC_SC Title2=KLOLFMAAC_SC-Bak Length1=-1 NumberOfEntries=3 Version=2 or $ cat koda-fm.m3u http://107.14.43.102:80/7/597/20097/v1/auth.akacast.akamaistream.net/koda-fm http://koda-fm.ng.akacast.akamaistream.net:80/7/597/20097/v1/auth.akacast.akamaistream.net/koda-fm http://koda-fm.ng.akacast...

Open java install.

How to download and install prebuilt OpenJDK packages JDK 7 Debian, Ubuntu, etc. On the command line, type: Runtime $ sudo apt-get install openjdk-7-jre For development $ sudo apt-get install openjdk-7-jdk To make sure you are using the right version $ sudo update-alternatives --config java For the browser: $ sudo apt-get install  icedtea-7-plugin The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-7-jdk package. Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. On the command line, type: $ su -c "yum install java-1.7.0-openjdk" The java-1.7.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.7.0-openjdk-devel package. JDK 6 Debian, Ubuntu, etc. On the command line, type: $ sudo apt-get install openjdk-6-jre The openjdk-6-jre package contains just the Java Runtime Environment. If you want ...

Command line sql database setup.

Image
This is just enough to hang yourself with. #========================================================================== # pseudo-code or generic instructions to set up a lamp web server apps on # Debian based lamp servers you will have to modify it to your needs. # this is assuming a lamp server is already properly set up. # Setup is another discussion. # all rights unreserved by the unknown admin #************************************************************************** # Get file from internet chances are you visited the sit and have the # location of the file to be downloaded. # use Curl for a directory or wget for a single file. use the man pages for # additional instructions wget $website/$subdirectory/$filename # Extract the file in the home directory (not the destination filename for use # in the next step. tar zxvf filename.tar.gz # move the directory into the web document root for use with http # webappdirectory will become webappname sudo...

Network scanner.

Image
Setting up a network scanner: Here are the steps to installing and accessing a network scanner from Ubuntu desktop client. It is assumed that the network scanner server is already up and running. 1) Let us first check whether there is a scanner available on our Ubuntu client host. Without any prior setup, you will see the message saying that "No scanners were identified." $ scanimage -L 2) Now we need to enable saned daemon which comes pre-installed on Ubuntu desktop. To enable it, we need to edit the /etc/default/saned file, and set the RUN variable to yes: $ sudo vim /etc/default/saned 1 2 # Set to yes to start saned RUN= yes  3) Let's edit the /etc/sane.d/net.conf file, and add the IP address of the server where the scanner is installed: 4) Restart saned : $ sudo service saned restart 5) Let's see if the scanner is available now: Now we can open "Simple Scan" (or other scanning utility) and start scannin...

Digital rain.

Image

Alternative abacus

Image

In case of emergency, break glass.

Image

A little Raspberry Pi for later.

Image

A case for microcontrollers

Image
Cases can be expensive for micro-controllers, but if you can forgo the exactness you can use very inexpensive containers, This is especially true for controllers that might have several layers or capes, and or add-on boards You can get inexpensive containers 3 or more for a dollar at a discount store. Once you have your containers, you will want to modify them. Then lastly you will want to bolt down the board. #4 machine screws should work fine for this. and viola you have your own case.

Zenity.

Image
Many programming languages have some way of coding a graphical interface. Some languages like Python have special bindings (PyGTK, PYQT, etc.) and others, like Visual Basic, have their own commands for designing GUIs. As a result, many shell-script writers probably wish there were something like that for shell scripts. Well, there is a special way to code a GUI for scripts in the script itself. A special program called "Zenity" can be used in scripts to make GTK+-based windows. Zenity is used like other commands in a script with parameters and such. NOTE: Readers should have an understanding of shell scripting to fully grasp this article. Although, knowing how to script is not entirely necessary. Obviously, the script writer would make a script as usual. Now, the programmer can add Zenity commands or replace echo and read commands with windows that perform the same function. The basic usage of Zenity is like this - zenity --info --text="Something import...

Update/upgrade now!

Image
Please keep your systems up to date!    For linux depending on the distro: $ sudo apt-get update; sud apt-get upgrade $ sudo yum update; sudo yum, upgrade $ sudo pacman -Syu etc etc

More collected goodies.

Image

RPi 1 cased

Image
There are a lot of diy cases on the net. Probably the most notable one is the cardboard case.  You can easily find them on the net by looking for RPi printable cases. Be sure and tell the printing program not to resize image for printing. This next two were not real impressive and not so easily put together. Kind of flimsy? This next one seemed a bit complicated. Then there are the .dxf files with Librecad so you can use them a laser cutter or cnc router.

Your choice

Image

Code tidbits.

Image
#Titanic { float : none; } #Tower-of-pisa { font-style: Italic; }

Grandma and Batman

Image
Nana Nana Nana Nana Batman...

Ipv6.

Image
Intro One of the main benefits of Internet Protocol version 6 (IPv6) over previously used Internet Protocol version 4 (IPv4) is the large address-space that contains (addressing) information to route packets for the next generation Internet. IPv6 supports 128-bit address space and can potentially support 2128 or 3.4W1038 unique IP addresses (as opposed to 32-bit address space of IPv4). With this large address-space scheme, IPv6 has the capability to provide unique addresses to each and every device or node attached to the Internet.       IPv6 Why we need IPv6 Addressing An escalating demand for IP addresses acted as the driving force behind the development of the large address space offered by the IPv6. According to industry estimates, in the wireless domain, more than a billion mobile phones, Personal Digital Assistants (PDA), and other wireless devices will require Internet access, and each will need its own unique IP address. The exten...

A hole in the bucket Mariah.

Image

Remote music gui.

Image
Now let us take a look a remote music controller called mpd. With mplayer we could do everything from the command line, mpd we should be able to use the gui on the remote machine. We will not need to use ssh here either. You will want to set up your host machines with speakers as before. Then we need to add a new piece of software called mpd. It is available for a wide variety of systems including Android. http://mpd.wikia.com/wiki/Clients $ sudo apt-get install mpd Server does not have to have gui installed. Copy your music files to the server if they are not already there. Then you will want go edit the config file for you file settings and etc. $ sudo vim /etc/mpd.conf Once you have that done, you will need to go to the client machine and install the following: $ sudo apt-get install mpc gmpc Then go to the gui menu for the  sound and video.   Choose the gnome-music-player-client. Everything is gui from there. You will need to set the servernam...