Sunday, August 9, 2015

How to schedule MySQL database backups

No comments :

If you are a Database Administrator and want to safe keep your business you need regular backups.  Here is a small bash script I made to schedule MySQL databases and dump mysql database and compress the output file.
All you need to do is give values to USER, PASSWORD,DB_NAME,OUTPUT reflect your MySQL user, password, database name and folder where you want to put the dumps.

mysql_backup.sh
USER="db_user_name"
PASSWORD="db_password"
OUTPUT="/backup_folder_path"
DB_NAME="db_name"

databases=`mysql --user=$USER --password=$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`

for db in $databases; do
    if [ "$db" = "$DB_NAME" ]; then
        FILE=$db"_"`date +%Y%m%d%H%M`.sql
        echo "Dumping database: $db"
        mysqldump --force --opt --user=$USER --password=$PASSWORD --databases $db > $OUTPUT/$FILE
        gzip $OUTPUT/$FILE
    fi
done



Now make mysql_backup.sh executable by setting permission
chmod 700 mysql_backup.sh


Now you are ready to schedule the job and run the backup script. Simply add to crontab so that it will run automatically

# m h  dom mon dow   command
00 4 * * * sh /path_to_your_script/mysql_backup.sh

The above crontab is scheduled to every morning at 4AM

Monday, July 27, 2015

Chillhub - The Ubuntu Smart Fridge

No comments :

Chillhub is a refrigerator with USB capabilities and WiFi connected, that will give a platform to developer to create awesome new add-on products like a butter softener compartment, food scale/weight sensor, deodorizer, auto-fill water pitcher, temperature modules, baby bottle IR, external speakers, voice control, etc.



Chill hub is powered by The Green Bean Connect Kit which includes all the parts necessary for quickly IoT'ifying your home and appliances.

ChillHub is connected to the web, and has its own smartphone app and can be upgraded with new features and functionality at any time. It runs Snappy Ubuntu Core, Canonical’s transactionally-updated minimal Ubuntu spin designed specifically for the Internet of Things. 

With the built in sensor it monitors the consumption of items stored id it, in the future this might give you the option to order online when the stock is low.

The included USB ports will open opportunity for  product makers the development of new modules that can operate inside this smart fridge.

Already modules are been developed for this smart fridge which include 
  • Milky Weigh milk jug sensor ($49)
  • Auto-fill water pitcher ($149)
  • Other example accessories mooted include a deodorizer, butter softener and food scale.
Chill hub is community powered project and has been developed by FirstBuild, a group formed in partnership between GE Appliances (a branch  of General Electric’s Home & Business Solutions) and Local Motors.


The open-source Chillhub Firmware can (in theory) be played with by building a Raspberry Pi, a connected Green Bean circuit board (see above) and a USB hub into a fridge door. ChillHub will relay messages from the cloud and the fridge to connected USB devices and from connected USB devices back to the cloud.


The smart refrigerator will retail at $999 through FirstBuild.com, though to kick things off a small number of pre-orders are available for just $799.

Saturday, July 25, 2015

How to get free unlimited lives in Candy Crush Saga

No comments :
This is how i get free extra lives in Candy Crush without waiting
It's easy to get free unlimited extra lives in Candy Crush without waiting or buying extra lives. This trick works for iOS and Android version of Candy Crush.

Candy Crush give you a few lives each day, and then make you wait for hours for extra lives or you can buy extra lives. But you don't want to wait or spend your money on that, so the wait for extra lives in Candy Crush can be infuriating, especially when you just want to play on. With this cheat you can skip the wait for extra lives in Candy Crush by changing the time on your Device.

If you are not playing online or you dont want to trouble your Facebook friends, so let's return to the time-hacking cheat we discussed before. Here is how it works in Candy Crush.


Getting free lives in Candy Crush is easy. Here is how to get your free unlimited extra lives in Candy Crush on Android devices:

  1. Open your device's Settings menu.
  2. Under "System," touch Date & time.
  3. Uncheck "Automatic date & time" and/or "Automatic time zone."
  4. Use the fields underneath to enter the date, time, or time zone.
  5. Press the Home button and tap the Candy Crush icon to launch the game. Check that you have an extra life (don't start playing). If not you'll need to set the time further forward.
  6. Go Back to settings and change the time back to normal.

Now you can return to Candy Crush and start playing the game. The time on your Device is set back to normal and you can continue doing this for free unlimited extra lives.

Friday, July 24, 2015

Windows 10: What to expect on July 29

No comments :

Windows 10, Microsoft’s new operating system will be launching on July 29. Windows 10 preview testers will be able to download on 29, while everyone else have to wait for the following days. If you havent "reserved" your free upgrade, now would be the time. Some of you may have notice the pop-up message in the windows notification center.

The major difference between Windows 10 and older versions of Windows? It’s a totally free upgrade — provided you have Windows already installed on your computer. All users running Windows 7 or Windows 8.1  on the machine, can get a free upgrade to Windows 10 within a year of the July 29 launch, after one year the upgrade price will be $119.



That’s a big change for Microsoft which never gives away there latest operating systems for free. It’s also a shift that’s emblematic of larger changes at the company under CEO Satya Nadella, who’s moving many of Microsoft’s software products to subscription-based sales models.

World's First Wearable Cuff with Stereo Bluetooth Headphones

No comments :
World's First Wearable Cuff with Stereo Bluetooth Headphones

Why leave your valuable headset hidden in your pocket, you don't have to. Meet Helix The worlds first wearable with headphones on your wrist by Ashley Chloe. In a sleek form, Helix ensures that fashion and tech are always at hand.

Fashion and Function Always on Hand with Helix they are the the principles on which created for. Helix is created for something unique for music-lovers, tech users, and smartphone mavens. It takes your tech to a whole new level with a wearable that complements your lifestyle.

World's First Wearable Cuff with Stereo Bluetooth Headphones

Helix engineers created it knowing that the human wrist is valuable real estate. They paid a lot of attention to the quality of the aesthetics and materials and created a design that looks sleek and stylish, feels comfortable, and cleverly hides its technological power.

The Helix is made so that it contains high quality sound in conveniently small headphones. It was challenging to engineer this given the incredibly small sizes of the speakers, but Helix engineers managed to overcome this obstacle impressively.


World's First Wearable Cuff with Stereo Bluetooth Headphones

Helix comes in two unisex colors: White and Black in the classic edition. The classic edition comes with accents of silver or champagne gold aluminum embellishments. Helix also has a Gold Edition which comes with Bright Red color on the cuff and 18k plated-gold embellishments.
World's First Wearable Cuff with Stereo Bluetooth Headphones




Features

Diameter of the earbuds: 10mm 
Diameter of the speaker: 8mm 
Metal Housing
Sweat Resistant
Mic with Call Controls
Supports iOS, Android and Windows
Battery: Three hours (expected) and rest on standby for up to 200 hours (expected)
Charge time for Helix is less than one hour
Bluetooth 4.1, working distance 30ft

Helix is now available for preorder on Kickstarter for $99 in white, black, and red.