• Auto
  • Games
  • Movies
  • Sports
  • Stay Connected
Nuldi.com - Everything You want to Know.
 
  • Home
  • Auto
  • Business
  • Food
  • Games
  • Gadgets
  • Music
  • Photos
  • Sports
  • Travel
  • Movies
  • Turn Off the New "Elastic Scrolling" in OS X Lion

    In Mac Tips, Scrolling, Trackpad, Mac, Mac Os X, Os X, Terminal, Command Line, Tweaks, Clips, Lifehacker Video, / 10 May 2012 / 0 comments

    Turn Off the New "Elastic Scrolling" in OS X Lion Lion introduced a new feature called "elastic scrolling", in which you can scroll past the top or bottom of the window and it'll "bounce back" like a rubber band. If you find this feature distracting or annoying, you can turn it off with a Terminal command.

    Just open a terminal and type:

     defaults write -g NSScrollViewRubberbanding -int 0 

    Then, restart any elastic-enabled apps that are currently running. You should find that scrolling has returned to its old, more traditional method. To restart the Finder, just type this command in a Terminal:

     killall Finder 

    Of course, you can log out or restart your machine to make the changes as well.

    If you want to revert back to the default elastic scrolling, just run this command and restart your apps again:

     defaults delete -g NSScrollViewRubberbanding 

    Check out the video above to see the tweak in action. Note that while this should work in many apps, it won't necessarily work in all of them—it'll definitely work with all apps that come bundled with OS X, though.

    Remove Rubber Band Scrolling in Most Apps | MacOSXHints

  • VIM Adventures Is a Fun Puzzle Game That Teaches You How To Use The Awesome Text Editor Vim

    In Text Editors, Command Line, Linux, Vim, Text, Time Savers, Keyboard Shortcuts, Learning, Tweaks, Clips, Lifehacker Video, / 27 April 2012 / 0 comments

    VIM Adventures Is a Fun Puzzle Game That Teaches You How To Use The Awesome Text Editor VimVim is one of our favorite text editors, but there's a steep learning curve because it only uses keyboard commands—no mouse. VIM Adventures will teach you Vim shortcuts in a very enjoyable way: Playing an old school Zelda-like puzzle game.

    Here's the story line:

    You play a blinking cursor appearing one day in a semi text based world inhabited by little people but ruled by bugs. You soon discover that your arrival was foretold by an old prophecy and that you're expected to restore order to the world.

    When you start the game, you can only move up, down, left, or right using the keyboard to get through a maze, collect keys and treasure chests, and follow hints to proceed to the next level and master VIM.

    Two levels are available now to play, with a third in development. It's probably the most fun way to learn the basics of Vim and get started editing text files with lightning speed. (While waiting for the third level of the game, you can also supplement your Vim gaming/learning with an interactive tutorial.)

    VIM Adventures | via Dougal Campbell's geek ramblings

  • Supercharge Quick Look on Your Mac with These Plugins, Terminal Commands, and Shortcuts

    In Mac Shortcuts, Quick Look, Mac Tips, Os X, Time Savers, Terminal, Shortcuts, Command Line, Plugins, Utilities, Mac Downloads, Downloads, / 08 March 2012 / 0 comments

    Supercharge Quick Look on Your Mac with These Plugins, Terminal Commands, and Shortcuts Quick Look is one of OS X's best features. Just highlight a file and press the space bar, and you can see a preview of the file. It works best with video and music, but some documents are out in the cold, folders and archives just don't work well, and other file types just don't display properly. With these handy plugins for your Mac, you can use Quick Look on just about any type of file you may want to preview before you open the application required to work with it.

    Quick Look is great, but with these plug-ins and tweaks, you can make it much better. Regardless of the type of file, folder, or archive you want to open, there's a plug-in or a Terminal command that gets the job done. Here's a list:

    Plugins

    • Supercharge Quick Look on Your Mac with These Plugins, Terminal Commands, and Shortcuts Archives: The Betterz Quick Look Plugin supports users running Lion, and Leopard/Snow Leopard users can use the original Archive.qlgenerator Plugin (Japanese, translated to English) to view the contents of ZIP, RAR, and 7z archives before extracting them.
    • Folders: The Folder.qlgenerator Plugin works like a dream to show you folder contents on systems running Leopard and Snow Leopard.
    • String Files: Thong is a Lion-compatible plugin that allows you to use Quick Look to browse your string files just by pressing the spacebar.
    • Code: qlcolorcode may only officially support Leopard and Snow Leopard, but it does a great job of letting you sift through code without opening your text or code editor of choice. If you need an alternative, enscript gets the job done as well and supports additional scripting languages. If <a href="http://macromates.com/"TextMate is your preferred code editor, TextMate in Quick Look is a plugin that uses TextMate's color-coding in Quick Look.
    • AppleScripts: ScriptQL allows you to view AppleScript files from the finder without opening them first.
    • CSV Files: The quicklook-csv plugin arranges your CSV spreadsheets so they're readable and scrollable in Quick Look.
    • Packages and Installers: Suspicious Package, aptly named, lets you check the contents of any package file or installer application before running it to make sure it is what you think it is.
    • Animated GIFs: As its name implies, the Animated GIF Quick Look plugin saves you from opening a browser or a media player to see that GIF you downloaded in action ever again.

    Supercharge Quick Look on Your Mac with These Plugins, Terminal Commands, and Shortcuts

    Terminal Commands

    Whether you live at the command line or you just want a way to beef up Quick Look's features without installing a plugin, these terminal tweaks can help:

    • This previously mentioned Terminal trick allows you to view any file in Quick Look right from the terminal—useful for people who live at the command line.
    • Viewing a file in Quick Look is great, but if you want to copy text with it, you don't have to open its parent application. terminal command enables x-ray view on your folders, so even if you don't want to install a plugin like folder.qlgenerator, your Leopard or Snow Leopard mac can still see a view of the files inside a folder when you use Quick Look.

    Hacks and Tips

    Here are a few Quick Look tips that you may not be familiar with:

    • If you do have to open the file you're viewing in its parent application, but wish you had more control over which one, this is how you do it.
    • You can open a file in Quick Look in full-screen by holding the Option key before pressing space, or by pressing Cmd+Opt+Y (in case you have Opt+Space tied to an app launcher like Alfred.) It's perfect for reading PDFs or other documents without distractions.
    • Supercharge Quick Look on Your Mac with These Plugins, Terminal Commands, and Shortcuts You can preview fonts with Quick Look and leverage CoverFlow to flip through files, folders, and documents easily.
    • If you have Perian installed to add .mkv support to Quicktime, you can leverage Perian in Quick Look with this quick hack.

    These are just a few ways to beef up Quick Look so it's even more useful. Do you have a favorite Quick Look plugin, trick, or hack that we missed? Share it in the comments below.

  • Automatically Back Up Your Web Site Every Night

    In How To, Backups, Web Sites, Web Publishing, Command Line, Terminal, Shortcuts, Command Line, Plugins, Utilities, Mac Downloads, Downloads, / 15 February 2012 / 0 comments

    Automatically Back Up Your Web Site Every NightEarlier this week, web site owners with sites hosted at a service called Cornerhost got a big scare: The service appeared to be closing without notice, and their owner was nowhere to be found. Terrifying, right? Unless you back up your web site regularly, that is. Here's how to set up automated backups for your web site so if worst came to worst, your data would remain safely in your hands.

    If you pay for web hosting in order to run any kind of web-based application—from your WordPress blog to a nameplate site to a file-sharing service to a social media data archive—you need to back up your web server's data the same way you back up your computer's data. On database-driven web sites, there are two kinds of data you want to preserve and restore in case of disaster: the files that make up your site (the PHP/Perl/Python, JavaScript, CSS files, etc), and the contents of your database. Further, any good backup system should make both a local copy and a remote copy of the backed-up data.

    I run several database-driven sites and applications, including this blog, so my backup system has to be solid. Here's how I have it set up.

    This method assumes a few things:

    • You're running a LAMP-based web site (Linux, Apache, MySQL and PHP/Perl/Python).
    • You have command line access to your web server via SSH.
    • You know how to make new folders and chmod permissions on files.
    • You're comfortable with running bash scripts at the command line on your server and setting up cron jobs.
    • You know where all your web server's files are stored, what databases you need to back up, what username and password you use to log into MySQL.
    • In order to have remote data backup, you need access to another server that's available via SSH in addition to your site's server. I asked a friend of mine for an account on his server to store some backup files and he kindly obliged. If you don't have a friend with a server at a different host, you can run an always-on server at home and back up to there. I prefer not to have a computer on at all times in my home, where bandwidth speeds can be slow, so I'd recommend finding a friend to back up to (and you can offer your friend the same courtesy).

    All systems go? Let's get your backup system set up.

    First: Local Backup

    In order to back up your web site, your script has to back up two things: all the files that make up the site, and all the data in your database. In this scheme you're not backing up the HTML pages that your PHP or PERL scripts generate; you're backing up the PHP or PERL source code itself, which accesses the data in your database. This way if your site blows up, you can restore it on a new host and everything will work the way it does now.

    First, SSH into your web server, and in your home directory, create a folder named backups. Inside this folder, create a file named backup.sh. Then, create a folder name files.

    Here's what the result should look like:

     your_home_directory/ | + - backups/     |     + - backup.sh     |     + - files/ 

    The file we care about right now is backup.sh. This file will be the script that zips up your data and saves it in the files.

    The script I run is heavily based on an example I found on The How-To Geek's wiki. Here's the source code of backup.sh that takes care of smarterware.org's files and database:

     #!/bin/sh  THESITE="smarterware.org" THEDB="my_database_name" THEDBUSER="my_database_user" THEDBPW="my_database_password" THEDATE=`date +%d%m%y%H%M`  mysqldump -u $THEDBUSER -p${THEDBPW} $THEDB | gzip > /var/www/vhosts/$THESITE/backups/files/dbbackup_${THEDB}_${THEDATE}.bak.gz  tar czf /var/www/vhosts/$THESITE/backups/files/sitebackup_${THESITE}_${THEDATE}.tar -C / var/www/vhosts/$THESITE/httpdocs gzip /var/www/vhosts/$THESITE/backups/files/sitebackup_${THESITE}_${THEDATE}.tar  find /var/www/vhosts/$THESITE/backups/files/site* -mtime +5 -exec rm {} \; find /var/www/vhosts/$THESITE/backups/files/db* -mtime +5 -exec rm {} \; 

    Copy and paste this source code into your backup.sh file. To successfully run this script in a setup similar to mine, on lines 3 through 7, you must replace smarterware.org, my_database_name, my_database_user, and my_database_password with the right values for your web site.

    This version of the script makes two assumptions about file locations. On my web server (and many, but not all setups), my home directory is a path that looks like this: /var/www/vhosts/example.com/ (where example.com is your web site domain). All of the public, web-accessible files are located in /var/www/vhosts/example.com/httpdocs/ (where example.com is your web site domain).

    Your web site file path may vary. If it does, in the script's source code, replace /var/www/vhosts/$THESITE/backups/ with the path to your backups folder location, and replace /var/www/vhosts/$THESITE/httpdocs/ with the location of your site's web-accessible files.

    Let's walk through what this script is doing. After setting some variables in lines 3 through 7, line 9 is running a mysqldump of all the data in the database named in line 4, archiving it, and storing it in the files directory using a filename that looks like dbbackup_example.com_1402120101.bak.gz.tar. Line 11 and 12 are archiving the site's source code files in the httpdocsdirectory, and storing them in the files directory, using a filename that looks like sitebackup_example.com_1402120101.tar. Notice both these filenames include the date, so you can see when the backup was made.

    Finally, lines 14 and 15 are deleting any backups made more than 5 days ago. You're going to run this backup script nightly, and the files will take up a lot of space quickly. That's why these last commands delete older backups. You can change the number 5 to any number of days you want to keep backups from.

    In order to run this script, you must chmod +x backup.sh. Run it manually to make sure it generates the backup files you expect. Finally, schedule it to run as often as you like in your crontab. To run it at 1:01 am every morning, your crontab would look like this:

     1       1       *       *       *      /var/www/vhosts/example.com/backups/backup.sh 

    Make sure you are running this script for every web site and database you care about.

    Once this backup script has run a few nights while you're sleeping soundly in your bed, your files directory will fill up with at least 5 days worth of file and database contents backups. Nice job.

    But you're not done yet.

    Next: Remote Backup

    Having backups on your web server will save your bacon if a WordPress update goes awry or your accidentally delete a blog post from your database. However, it doesn't help if your web server is unreachable or dies in a fire. That's why you want to send copies of this data to a remote server automatically.

    Once you've got access to a remote server thanks to a generous friend or at home, you're going to set up an rsync job which transfers all your web server's backups over to it in case of total disaster. I ran down how to mirror files across systems with rsync years ago, so I won't rehash it, but you're going to use that same approach here.

    In short, on the remote server, create a folder called offsitebackups. To rsync your new web site backup files to your remote host, SSH into that host, and cron a job which looks something like:

     rsync -e ssh -a —delete you@example.com:/var/www/vhosts/example.com/backups/files/ /your/path/to/offsitebackups/ 

    Replace the username, web site name, and paths with your information.

    That command will sync all the files in your host's backups folder to your remote server's offsitebackups folder. Run it to make sure it works. It should prompt you for the password to log into your web server when you do. When it's done syncing, you should see your backup files in the offsitebackups folder.

    The problem is, you won't be around to enter the password every night when cron tries to run it. To run it without intervention, you'll need to set up passwordless login into your web server. This excellent tutorial on automating backups with rsync runs down those steps as well.

    Setting up local and remote, database and file backup of your web server requires upfront time and effort, but once you've set it up, you can forget it. Using this system you can blog away, get your blogging software up-to-date, and manually edit files directly on your web server without having to worry about losing changes or not being able to restore your data ever again.

    Automatically Back Up Your Web Site Every Night | Smarterware


    Want to see your work here? Send an email to submissions@lifehacker.com!

 
Start | < Previous | 1 2 3 4 5 6 7 8 9 10 | Next > | End   Page 1 of 73

Search

 
 

NULDI Facebook Widget

 
 

Latest Posts

  • Repurpose 2-Liter Soda Bottles Into a Broom

    Repurpose 2-Liter Soda Bottles Into a Broom

    14 April 2012 / 0 comments

     
  • Hang High Heels on a Kitchen Rod

    Hang High Heels on a Kitchen Rod

    14 April 2012 / 0 comments

     
  • DIY Compass with a Needle, a Fishing Float, and a Freezer Bag

    DIY Compass with a Needle, a Fishing Float, and a Freezer Bag

    14 April 2012 / 0 comments

     
  • Freeze Water Balloons to Keep Drinks Cold

    Freeze Water Balloons to Keep Drinks Cold

    14 April 2012 / 0 comments

     
  • Repurpose Plastic Easter Eggs as Snack Containers

    Repurpose Plastic Easter Eggs as Snack Containers

    14 April 2012 / 0 comments

     
 
 

Social Widget

  • Facebook
  • Twitter
  • Youtube
  • Vimeo
 
 
 

Gallery

  • Keep an emergency $20 in your phone case

    Keep an emergency $20 in your phone case

    Money Smartphone Case / 12 May 2012

  • Identify and hone your work that could become timeless

    Identify and hone your work that could become timeless

    Quotables Timeless Work / 12 May 2012

  • SloPro captures beautiful, 60 frames per second video with your iPhone 4S

    SloPro captures beautiful, 60 frames per second video with your iPhone 4S

    Ios Downloads Apps Slow Motion / 12 May 2012

  • CodeTwo Sync For iCloud Syncs iCloud Data with Outlook

    CodeTwo Sync For iCloud Syncs iCloud Data with Outlook

    Outlook Icloud Sync / 12 May 2012

  • Use the Template Cooking Method for Stress-Free Meals

    Use the Template Cooking Method for Stress-Free Meals

    Cooking Food Recipe / 12 May 2012

  • Dropquest is Back with Tons of Free Dropbox Space

    Dropquest is Back with Tons of Free Dropbox Space

    Dropbox Free Space Dropquest / 12 May 2012

  • Top 10 Ways to Supercharge Your Favorite Webapps and Services

    Top 10 Ways to Supercharge Your Favorite Webapps and Services

    Lifehacker Top 10 Webapps Gmail / 12 May 2012

  • Recalibrate Your iPhone’s Home Button for Snappier Performance

    Recalibrate Your iPhone’s Home Button for Snappier Performance

    Iphone Ios Tweaks / 12 May 2012

  • Clean Up and Organize Your Music Library This Weekend

    Clean Up and Organize Your Music Library This Weekend

    Weekendhacker Music Digital Music / 11 May 2012

  • Remains of the Day: It’s Confirmed: Apple’s HDTV is a Real Thing

    Remains of the Day: It’s Confirmed: Apple’s HDTV is a Real Thing

    For What It's Worth Remainders In Brief / 11 May 2012

  • Being Shy Is Just a Bad Habit, and You Can Break It With Regular Practice

    Being Shy Is Just a Bad Habit, and You Can Break It With Regular Practice

    Habits Bad Habits Mind Hacks / 11 May 2012

  • Create a Large Mobile Workstation with Built-in Storage out of IKEA Bookshelves and Some Board

    Create a Large Mobile Workstation with Built-in Storage out of IKEA Bookshelves and Some Board

    Diy Ikea Hacks Ikea / 11 May 2012

  • Daily App Deals: Get Call Master Pro Key for Android for $2.99 in Today’s App Deals

    Daily App Deals: Get Call Master Pro Key for Android for $2.99 in Today’s App Deals

    App Deals Deals Dealhacker / 11 May 2012

  • Stop Freaking Out Over Plastic Bottles: They’re Not Leaching Toxins Into Your Water

    Stop Freaking Out Over Plastic Bottles: They’re Not Leaching Toxins Into Your Water

    Myth Busting Health Water / 11 May 2012

  • Ringtone Maker Creates Custom Tones for Nearly Any Phone in Just a Few Clicks

    Ringtone Maker Creates Custom Tones for Nearly Any Phone in Just a Few Clicks

    Friday Fun Ringtones Smartphones / 11 May 2012

  • Put Your Phone in a Drinking Glass to Boost Its Alarm Volume and Avoid Oversleeping

    Put Your Phone in a Drinking Glass to Boost Its Alarm Volume and Avoid Oversleeping

    Macgyver Tips Clever Uses Audio / 11 May 2012

  • Fry Spices for an Instant Flavor Boost (and Other Cooking Shortcuts for More Flavor)

    Fry Spices for an Instant Flavor Boost (and Other Cooking Shortcuts for More Flavor)

    Food Hacks Cooking Food / 11 May 2012

  • Cubby Is Like Dropbox… If Dropbox Also Had Free, Unlimited Syncing (And We’ve Got Invites)

    Cubby Is Like Dropbox… If Dropbox Also Had Free, Unlimited Syncing (And We’ve Got Invites)

    File Syncing Synchronization Storage / 11 May 2012

 
 

About Us

We Provide You Quality to Read.

Nuldi.com,
123 Boulevard, Chicago

 
 
 

Images Stream

Coming Soon..
 
 
 

Latest Tweets

  • A new theme was released yesterday - "Magazine Explorer" --> http://t.co/kO3zquRm9 May, 2012
  • @WPExplorer Hope you like it :) // Pavel 9 May, 2012
 
 
 
  • Home
  • Auto
  • Business
  • Food
  • Games
  • Gadgets
  • Music
  • Photos
  • Sports
  • Travel
  • Movies
 

Approved By Nuldi

Copyright © 2012 Nuldi.com. All Rights Reserved.