Pages

Sponsorship

40% off your First Order with GoDaddy.com!

Jan 29, 2010

Substitute Strings in Files with Ruby


Uses a list of regular expressions and replacement strings to make changes in text files.

Put in file "edit-all.rb" and run with
ruby edit-all.rb *.txt

Now accepts the target and the replacement from the command line or from the keyboard.

Jan 24, 2010

Easy Crock Pot Chicken Recipes


With the temptation of fast food, processed meals, and eating out, it's difficult to spend time to prepare good, healthy, home-cooked meals. If you're like many, the last thing you want to do after coming home from work is prepare a gourmet dinner. By using your crock pot and spending 5-10 minutes each morning, you can come home to delicious home-cooked meals without hours of preparation right before dinnertime. Below are three quick and easy chicken crock pot recipes you're sure to enjoy, and each with 7 ingredients or less!

Salsa Chicken

Ingredients:
  • 6 boneless skinless chicken breasts
  • 1 ½ cups salsa
  • 1 tsp ground cumin
  • 3 tbsp lime juice

Spray crock pot with non-stick cooking spray. Place chicken in slow cooker, pour salsa over chicken. Cover and cook on low 6-7 hours or high 3 hours, until chicken is tender and no longer pink. Stir in cumin and lime juice, cover and cook an additional 15 minutes.

Note: For an extra spicy kick, add a pinch of ground red chili powder with the cumin and lime juice.

Lemon Chicken

Ingredients:
  • 4 boneless skinless chicken breasts
  • ¼ lemon juice
  • 1/3 cup water
  • 2 cloves minced garlic
  • 1 tsp thyme

Spray crock pot with non-stick cooking spray. Place chicken in crock pot. Combine juice, water, garlic, and thyme in a small bowl, pour over chicken. Cover and cook on low 8 hours or high 4 hours.

Ranch Chicken

Ingredients:
  • 6 boneless skinless chicken breasts
  • 1 can condensed cream of chicken soup
  • 1 envelope ranch dressing mix
  • ½ cup water
  • ½ cup sour cream
  • 2 tbsp ranch dressing
  • 2 tbsp flour

Spray crock pot with non-stick cooking spray. Place chicken breasts in crock pot. In a small bowl, combine soup, ranch dressing mix, and water; pour over chicken. Cover and cook on low 8 hours or high 4 hours. Remove chicken from crock pot. Stir in sour cream, ranch dressing, and flour; replace chicken. Cover and cook on high 20 minutes.

Jan 23, 2010

The Laws of Money

One of your major goals in life should be financial independence. You must aim to reach the point where you have enough money so that you never have to worry about money again. The good news is that financial independence is easier to achieve today than it has ever been before.

The Law of Abundance
We live in an abundant universe in which there is sufficient money for all who really want it and are willing to obey the laws governing its acquisition. People become wealthy because they decide to become wealthy. People are poor because they have not yet decided to become rich.

The world is full of thousands of people who have had far more difficulties to overcome than you could ever imagine, and they've gone on to be successful anyway. So can you.

The Law of Exchange
Money is the medium through which people exchange their labor in the production of goods and services for the goods and services of others. The amount of money you earn is the measure of the value that others place on your contribution. To increase the amount of money you are getting out, you must increase the value of the work that you are putting in.

The Law of Capital
Your most valuable assets, in terms of cash flow, are your physical and mental capital—your earning ability. How much time you put in and how much of yourself you put into that time largely determine your earning ability. Time and money can be either spent or invested. If you invest your time or money in becoming more knowledgeable and better skilled, you can increase your value.

The Law of Time Perspective
The most successful people in any society are those who take the longest time period into consideration when making their day-to-day decisions. Your ability to practice self-mastery, self-control, and self-denial, to sacrifice in the short term so you can enjoy greater rewards in the long term, is the starting point of developing a long time perspective.

The Law of Saving
Financial freedom comes to people who save 10 percent or more of their income throughout their lifetime. Savings today are what guarantee the security and the possibilities of tomorrow.

The Law of Conservation
It's not how much you make but how much you keep that determines your financial future. The true measure of how well you are really doing is how much you keep out of the amount that you earn.

The Law of Three
There are three legs to the stool of financial freedom: savings, insurance, and investment. One of your major responsibilities, to yourself and to the people who depend on you, is to build a financial fortress around yourself over the course of your working lifetime. To be fully protected against the unexpected, you require liquid savings equal to two to six months of normal expenses.

The Law of Investing
Investigate before you invest. This is one of the most important of all the laws of money. You should spend at least as much time studying a particular investment as you do earning the money to put into that particular investment. The only thing easy about money is losing it. If you think you can afford to lose a little, you're going to end up losing a lot. Invest only with experts who have a proven track record of success with their own money.

The Law of Magnetism
The more money you save and accumulate, the more money you attract into your life. The Law of Magnetism has been written about for more than 5,000 years. It explains much about success and failure in every area of life, especially in the financial arena. The more positive emotion you associate with your money, the more opportunities you will attract to acquire even more.

Jan 22, 2010

Ruby CSV to XML Converter


This code will take an input CSV file and output XML. IT was easy to write, but I haven't found anything out there to do this. The first line of the CSV file should contain the element names.

Jan 20, 2010

GDM2 Setup Gets A New Look And An Ubuntu PPA


GDM2 Setup is a GUI configuration tool for the new GDM (2) something that was missed by a lot of people. It doesn't have as many options as the old GDM setup tool, but that's because the new GDM2 doesn't support too many customizations.

Add the GDM2 Setup PPA in your source list using:
sudo add-apt-repository ppa:gdm2setup/gdm2setup

Update source list using:
sudo apt-get update

Install GDM2 Setup using:
sudo apt-get install python-gdm2setup