LED Lighting – The Cost Effective Lighting Solution WhatsApp is now on your computer browser!! Apple and Microsoft May Merge in next 5-10 years Installing Ruby on Rails on Ubuntu 10.04




An attempt to write a script to notify when a movie is listed online for booking

8 comments:
This is my attempt to write a shell script that sends me an email when a movie is available for booking online.

NOTE: You might want to configure 'mail' command SMTP settings on your box to avoid the mail being sent to your spam folder.

This script takes 2 arguments. The first argument is the URL that has to be monitored and the second argument is name of the theater (Or anything that is unique to that theater).

The script scrapes the URL page once in a given interval period and looks for the theater name, and when it's found it sends an email to the given email ID.


#! /bin/bash
if [ "$#" -ne 2 ]; then
    echo "Illegal number of parameters"
    echo "USAGE: movieAlert <URL> <KEYWORD>"
    exit 1
fi
EMAIL_IDS="username@mail.com"
BODY=$1
SUB="Hurry up!!!"
IP=$1
QUERY=$2
while true; do
    result=`wget -O - $IP -o /dev/null|grep $QUERY|wc -l`
    if [ $result -gt 1 ]; then
        mail -s "$SUB" "$EMAIL_IDS" <<<"$BODY"
        exit 0
    fi
    sleep 60

done
Read More

Share files over devices under same network - Linux

3 comments:
First, Make sure you have python installed in your machine. If not, follow these instructions to install python
sudo apt-get install libssl-dev openssl

wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz

tar -xvf Python-3.4.1.tgz

cd Python-3.4.1/

./configure

make

sudo make install

./python
(source: http://www.sysads.co.uk/2014/06/install-python-3-4-1-ubuntu-14-04/)

Now just follow below 3 steps to create your own file server with one command

1. Create a shell script file with the following content 

e.g.: shareThis.sh

#!/bin/bash
ipaddress=$(ifconfig | grep -A 1 wlan0 | grep 'inet' | sed s/:/' '/ |awk '{print $3}')
echo 'Access any file from location '$PWD' on http://'$ipaddress':8000'
python -m SimpleHTTPServer > /dev/null 2>&1 

Actually this is all you need. Now run the shell script e.g., 
sh shareThis.sh 
In whichever directory you want. 

2. Make an executable command for the same. 
Give full permission to the file.
chmod +x shareThis.sh 

Now you can run it by just typing ./shareThis.sh 

3. Create an alias. 
Alias helps you to run this script just like you run any other command on Linux

Open .bashrc file.
vi ~/.bashrc

At the end of this file, add this line
alias shareThis='~/shareThis.sh'

Source bash file to get immediate effect

source  ~/.bashrc

That's it. Now whenever you want to share files among other devices in your network, just run the command 'shareThis'
Read More

LED Lighting – The Cost Effective Lighting Solution

279 comments:
If you are searching for ways to light up your lifestyle and your home without lighting up your energy bills then this is for you. Led lighting strips provide the perfect lighting solution both outside and inside the home. They may make your furniture appear to float on air, bring a genuine glow towards the walls, provide lighting the stairs for more safety and embrace your home with indirect lighting of most colors which will not only please your eyes but the rest of your senses too.



Indirect lighting can certainly produce a cozy atmosphere free from glares, background lighting can turn your television viewing into a cinema style experience and LED bathroom lighting can create a variety of moods in perfect harmony with your own. Different areas of the bathroom require different qualities of light - it should be functional in some areas but sometimes you may need that it is more calm and relaxing. You may need bright lights to pick you up in the mornings when you want to shave or apply makeup but subtle in the evenings while you are enjoying a relaxing soak in the tub.

It can also give a room an infinitely more spacious feel and can be mounted anywhere - why not set them up on the ceiling and baseboards to provide warm lighting with hardly any shadows for an even distribution of cozy light?

Kitchens might be brought to life, particularly those dark corners and recesses underneath the wall cabinets and well placed LED lighting inside the bedroom will help to set by far the most romantic of tones when required.

LED lights are also perfectly safe for outdoor use and will make fabulous party lights and they also have lots of benefits.



Benefits of LEDs

  • LED lights are longer lasting, energy efficient and intensely eco friendly which means that you’ll be doing your bit for the environment and you’ll also be spending less on your energy bills


  • LED lights could be recycled simply because they don’t contain any mercury. They also don’t emit infrared or UV light.
  • LED lights could be fitted almost anywhere and are easy to fit because the rope and strip lights often have self adhesive backing.
  • LED lights are available in many different different colors to help set the mood and tone of your property. They are available in cozy warm white as well as a variety of other colors.
  • Various types of LED lights are weather proof - water resistant and perfectly safe to be used outdoors. This can provide excellent safety benefits along with help to add interesting focus to some features of your property. Then why not wrapping rope lights around balcony railings for a dramatic effect or maybe subtle lighting beneath the porch ceiling helping you to find your keys when you’re home after dark.
They’ve got a great deal of information and LED lighting products offered at yescomusa.com. In order to get some great ideas about how you can enhance the ambiance both inside and outside your own home using energy-efficient, long lasting LED lights and LED lighting strips, you are able to take a look at your leisure in the home, you don’t even have to step outside.

Don’t put up with dark and dingy corners - install some of these lighting strips in strategic places around the home and you’ll be delighted using the difference. The only thing which won’t see a dramatic change will probably be your bank balance or your energy bills, and that’s certainly worth remembering.
Read More

WhatsApp is now on your computer browser!!

16 comments:
Finally WhatsApp officially arrives on computer screen. Now you can use WhatsApp on your browser. All you need to is just scan a QR code that you can see at https://web.whatsapp.com/ using your mobile phone. That's it!! Now you can use WhatsApp with a 'Secure' connection.

Here are the steps you need to follow.
  1. Download the latest WhatsApp version or upgrade your WhatsApp. Once you see 'WhatsApp Web' option in WhatsApp menu, you are all set to go!! 
  2. Tap the 'WhatsApp Web' button
  3. Goto https://web.whatsapp.com/ on your computer browser (Use Google chrome)
  4. Scan the QR code that you can see on the computer screen using your phone. 
  5. That's it. Congratulations!! You have WhatsApp desktop version now :) 



Read More