Posts

Weather pic to ascii

Image
Yet another weather picture grabber and the the picture is converted to ascii. Note: Also see http://www.instructables.com/id/Radar-graphics-in-a-text-world/ #!/bin/bash #Set variables DOWNLOAD_DIR=/tmp/weather/ WEATHER_GIF=http://archive.wfaa.com/weather/images/core/animated-loops/comp/880x495/new_tarrant.gif COUNTER=0 #check for  download directory if [ ! -d "$DOWNLOAD_DIR" ]; then   mkdir -p $DOWNLOAD_DIR fi #remove old files rm  $DOWNLOAD_DIR/*gif rm  $DOWNLOAD_DIR/*.png rm  $DOWNLOAD_DIR/*.txt #get weather gif wget $WEATHER_GIF -O "${DOWNLOAD_DIR}map.gif" #extract gif to png convert -coalesce "${DOWNLOAD_DIR}/map.gif" "${DOWNLOAD_DIR}/map.png" #convert images to text for i in $DOWNLOAD_DIR/map-*; do    img2txt -f utf8 -W 100 -H 30 $i > $i.txt done #display images while [ $COUNTER -lt 5 ] ; do   for i in $DOWNLOAD_DIR/map-*.txt; do      printf '\033[1;1H'   ...

Triple feature!

Image

Beginning c/c++ compiling.

How can I compile a simple C or C++ program on Linux operating systems using bash Terminal application? Tutorial details Difficulty: easy Root privileges No Requirements GNU C/C++ compiler Estimated completion time 10m GNU C and C++ compiler collection Development tools Development libraries IDE or text editor to write programs Part 1: Install C/C++ compiler and related tools To compile a C or C++ program on any Linux distro such as Ubuntu, Red Hat, Fedora, Debian and other Linux distro you need to install: >Fedora, Redhat, Centos, Or Scientific linux: # yum groupinstall 'Development Tools' >Debian, Ubuntu, or Mint $ sudo apt-get update $ sudo apt-get install build-essential manpages-dev To verify the install, type the following commands to display the version number and location of the compiler on Linux: $ whereis gcc $ which gcc $ gcc --version Sample outputs: $ whereis gcc gcc: /usr/bin/gcc /usr/lib/gcc /usr/bin/X11/gcc $ wherei...

Shakespeare?

Image
2B | !2B

Spacebar.

Image

Wifi and the Arduino.

Image
Good for arduino to arduino. Have some of the nrf24l0 wifi units to play with. will test them with the Arduino first. One person suggest that a 100 nf capacitor be placed between plus five and ground for more power stability. More information at: http://playground.arduino.cc/InterfacingWithHardware/Nrf24L01 Experimental code: https://github.com/tmrh20/RF24 Note had to set up and SPI directory and copy the files over to the Arduino folder. The you had to tell the arduino  about the library ---------------------------------------------------------------------------------------------- Compatible to computer networks. What is the ESP8266? The ESP8266, is a cheap WiFi module which you can address using the UART protocol. It’s been featured on Hackaday and other DIY electronics blogs very recently, and lots of DIY electronics tinkers are very excited at the doors this module opens for their projects. The module is: Small Footprint Easy to integrate with (usi...

One ipaddress into many.

Image
Ever go somewhere and you need to have several systems be able to access their network, but they say all you can have is one Ipaddress. An Ipaddress is like a phone number for a computer.  You can only have one per system under normal circumstances. Here with an extra system, we will show you how to do this. A multitude of reasons exist as to why one would want to build a custom router vs. suffer with the performance, reliability issues, and limitations of an off-the-shelf solution. In the spirit of keeping this post short, I won’t launch into a long diatribe on the pros and cons of each here, but I have plenty of thoughts on this, so if you are interested, just ask. What we are about to do is configure an incredibly fast and stable router/gateway solution for your home/office in about 15 minutes. (Note: This post assumes you already have your machine loaded up with a fresh copy of Ubuntu 14.04 or an equivalent and you have the two needed NICs installed.) T his is not a f...