ArchivePage 2 of 33

Some Basic VI Commands

I’m bored right now so I’m messing around on my server. Sometimes people forget VI Commands so I thought I’d share some basic VI commands. Hopefully this quick reference can help somebody out. For those that don’t know, VI is an editor used in the Linux/Unix environment to edit files that contain text. http://en.wikipedia.org/wiki/Vi

To edit a file in SSH you’ll run this command
# vi /path/to/file/whatever.sh

First… you must learn there are 2 different modes.

Insert mode and Command mode

hit escape to enter command mode.
from command mode… these are the keys to go into insert mode
i => will make you start inputing at the cursor
a => will make you start inputing after the cursor
o => will open up a new line below the current line your cursor is
on,and move the cursor there.

when in insert mode, hit the escape key to enter command mode again
basic command mode commands
:w => save the file
:wq => save the file and quit
:q! => quit w/o saving

/textstring => searches for the textstring in the file ( hit n to find
next instance and N to find previous )

simple copy and paste
yy => yanks single line ( aka copy line into buffer)
p => will paste buffer onto the line below where the cursor is.

to get fancy, you can prepend yy with the number of lines you want to
copy ex .

5yy  => will yank 5 lines from where the cursor is and below in the buffer
p => will paste those 5 lines

dd => cuts single line ( aka cuts line into buffer )
p => will paste cut buffer onto the line below where the cursor is.

And that’s about it. For more in depth instructions you can check out these two sites:
http://osr600doc.sco.com/en/FD_create/vi_summary.html
http://www.cs.colostate.edu/helpdocs/vi.html

Can’t connect to iTunes Store: Windows 7 and iTunes 9

Problem: “Can’t Connect to iTunes Store”

Detailed Problem: After I reinstalled Windows 7 and installed the latest iTunes (version 9.2.0.61) I started getting this error  no matter what internet connection I was using. iTunes would update apps, update my podcast subscriptions, but always just hang there saying it’s loading the iTunes store but eventually fail every time. So I did some searching on the net and here’s the solution that worked for me.

Solution:

  1. If you have any custom settings in the preferences, take note of these first because they’ll be gone after you follow these instructions. In iTunes you click Edit then click Preferences. (I changed some settings before such as where I store my library. )
  2. Close / Exit iTunes
  3. Find the iTunesPrefs.xml file. You can search your computer to find this, or navigate your way to C:\Users\USERNAME\AppData\Roaming\Apple Computer\iTunes but most likely your AppData folder is hidden, but you can get there by clicking My Computer, C (Local Disk), Users, then your User Name, then in the address bar just click the text area after your username, and type at the end \AppData and hit enter. Then navigate to \Roaming\Apple Computer\iTunes
  4. You should see iTunesPrefs.xml in that folder (C:\Users\USERNAME\AppData\Roaming\Apple Computer\iTunes) so either rename it to iTunesPrefs.xml.backup or you can delete it if you want. I choose to rename the file in case I need to restore to the original one for some reason later on (like if I didn’t write down all of my settings correctly from step 1).
  5. Launch iTunes, follow the setup instructions from iTunes.
  6. Make sure to go into the preferences (Edit > Preferences) and change your settings back to anything custom you had before. For example, I don’t keep my iTunes library in the default location so I had to change the location again because iTunes reset the Preferences to the default settings.

If you have any problems with your iTunes skipping while listening to music, I had this issue back in the day and here’s the solution to that: My iTunes Skipping Problem

“Can’t Connect to iTunes Store”

Windows Mobility Center is available only for laptops!?

I’m running Windows 7 on my laptop and I got an error today “Windows Mobility Center is available only for laptops” which made me go “whaaaaaaaaaaat?” because I am using a laptop. Well I found out the problem is due to the fact that I removed my battery from my notebook (or laptop, however you want to call it). You can also have this problem if your laptop is plugged into a UPS too. Here’s a quote from their site.

http://support.microsoft.com/kb/938322

This issue may occur if the following conditions are true:

  • The computer is plugged into an uninterruptible power supply (UPS).
  • The battery has been removed from the computer.

When these conditions are true, the computer’s role may be set incorrectly in the BIOS.

Iowa Mortgage

What to Expect When Buying a Home in Iowa

Maybe you’re buying your first home in Iowa, or perhaps you’re relocating to Iowa from another state. Either way, it’s important that you educate yourself on Iowa home loans before shopping for a home and mortgage. This article explains what you’ll need to know before buying a home in Iowa:

The median home value in the state of Iowa is $82,500. Current interest rates in Iowa are above the national average, and job growth rates are below the national average.

In the state of Iowa, purchase transactions on sub-prime loans are subject to a $30,000 minimum. Additionally, if you live in Iowa and file bankruptcy, you do not necessarily have to forfeit your home. If you have been current on your payments and continue to be, state law does not require you to surrender your home.

If you’re buying a home in southern Iowa, you qualify for state FHA loans through the Southern Iowa Home Ownership Program. First-time home buyers qualify for loans with below-market interest rates and down payment assistance. Borrowers must meet certain income requirements and specific guidelines, and must purchase a home in a southern Iowa county: Appanoose, Davis, Jefferson, Keokuk, Lucas, Mahaska, Monroe, Van Buren Wapello, or Wayne.

These loans are revolving, so there are only a specific number that can be given out at any period of time. When a person with a FHA loan through this program sells their home or refinances it, then their loan is made available to another qualified applicant.

About the Author

Jessica Elliott recommends that you visit Mortgage Lenders Plus.com for more information about on the mortgage lending process. http://www.mortgage-lenders-plus.com/

Playing the Iowa Lottery

Though the odds are not necessarily in your favor, there is always a possibility that you can hit the jackpot with Iowa Powerball. Even though your odds are not great, you still have just as much of a chance at winning per ticket than anyone else. The Iowa Powerball lottery game involves choosing six different numbers. Five of these numbers must range from one to fifty-five, and the sixth number, the Powerball number, must fall between one and forty-two.

The rules of the game are simple. If you get all six Iowa Power Ball numbers correct, you win the jackpot. This is a really big deal, considering that it has been more than six hundred million dollars in the past! Jackpots can get so large because Power ball lottery game tickets are sold in twenty-seven different states, making it the largest multi-state lottery in the country. The Iowa Powerball lottery jackpot builds from one drawing to the next, and if there is no winner of a drawing, the jackpot amount rolls over. This means that a single winner could win more money from the Iowa Power Ball lottery than he or she could ever imagine.

Continue reading ‘Playing the Iowa Lottery’

Is Coffee Healthy?

Considering all the past concern about possible health risks from drinking coffee, newer reports of coffee’s possible protective effects may leave many people confused.

Overall, recent studies suggest that coffee (regular and decaffeinated) may offer a variety of health benefits against diseases such as cancer and diabetes. However, coffee may not deserve a place in the same category with other healthful foods like vegetables, fruits and whole grains.

Laboratory studies suggest that the anti-inflammatory, antioxidant compounds in coffee could help reduce risk of cancer. Coffee also has a tendency to speed the passage of waste through the digestive tract. Potentially, this may lessen the time that cancer-causing compounds spend in contact with the intestinal tract, which could reduce the risk of colon cancer. Population studies, however, tend to split between coffee intake having no effect on or reducing risk of breast and colon cancer.

Continue reading ‘Is Coffee Healthy?’

Iowa Payroll Law and Practice

he Iowa State Agency that oversees the collection and reporting of State income taxes deducted from payroll checks is:

Department of Revenue Income Tax Division Hoover State Office Bldg. P.O. Box 10457 Des Moines, IA 50306-0457 (515) 281-3114 (800) 367-3388 (in state) www.state.ia.us/tax

Iowa requires that you use Iowa form “IA W-4, Centralized Employee Registry Reporting Form/Employee Withholding Allowance Certificate” instead of a Federal W-4 Form for Iowa State Income Tax Withholding.

Not all states allow salary reductions made under Section 125 cafeteria plans or 401(k) to be treated in the same manner as the IRS code allows. In Iowa cafeteria plans are not taxable for income tax calculation; taxable for unemployment insurance purposes. 401(k) plan deferrals are not taxable for income taxes; taxable for unemployment purposes.

In Iowa supplemental wages are taxed at a 6% flat rate.

State W-2s are not applicable in the state of Iowa.

Continue reading ‘Iowa Payroll Law and Practice’

Top 10 Cities For Younger Retirees

Young retirees looking out for the best cities in the U.S. to retire young but still be engaged in an active lifestyle may take a look at the top ten cities that have been chosen by the Money Magazine with Bert Sperling of Bestplace.net this year. The best cities have been selected based on important factors for an active lifestyle such as population growth, cost of living, economic health, recreation opportunities and leisure activities. The city’s proximity to a large metro area, college presence in the vicinity and housing costs that are below $350,000 have been taken into account. However, the study also made a few exceptions for cities that offered unique benefits and did not strictly fit the criteria.

1. Coeur d’Alene, Idaho: Pronounced as ‘Core da lane’, this city offers a wonderful ski environment, stunning scenery and a flourishing golf culture. The city is picking up in the tourism sector. The median home price is $311,700 and the population is 38,246.

2. Charlottesville, Virginia: The Blue Ridge Mountains, University of Virginia, and variety of entertainment and recreation, makes Charlottesville an attractive option to retire in. This is also a city with a strong historical background. All these positive features offset the slightly high median home price of $398,400. The population of Charlottesville is 41,425.

3. Logan, Utah: Home to the Utah State University, Logan is a popular city that offers various recreational activities including plenty of water sports at Bear Lake. Logan has a historic downtown and the scenic Logan Canyon Scenic Byway is a great attraction. The city has a median home price of $205,400 and population of 44,599.

Continue reading ‘Top 10 Cities For Younger Retirees’

Romantic Destinations in Iowa

When you first think of romance, Iowa might not come to mind. In truth, romantic destinations in Iowa are excellent and show you a beautiful hidden side of this underappreciated state.

Romantic Destinations in Iowa

The Hawkeye State, Iowa, holds much more beauty than a lot of travelers give it credit for. There are ten different travel areas for tourists to explore when they come to this state, from the Northwest area (where you can follow the path of historic explorers Louis and Clark) to the Southeast area that boasts of containing the world’s “crookedest” street. Lovers will also find much to do here, such as solitary hiking and just holing up in a room and enjoying each other’s company – romantic destinations in Iowa are enjoyable for everyone!

Romantic Destinations

Continue reading ‘Romantic Destinations in Iowa’