Saturday, November 30, 2013

Learn Python through using public data

Thursday, November 21, 2013

Thursday, November 14, 2013

C++ understanding fstream

My brain choked the other day when dealing with the ifstream method inside of the the fstream directive.  I just couldn't wrap my brain around how the ifstream associates variable values.  My friend told me that I was an idiot.  He explained that ifstream works the same way that cin works.

basically
lets say you have a text file that is called names.txt and the file looks like this
Johnny Bobby Dave Suzy
Now you want to assign those values to variables using ifstream

Using 4 variables (name1, name2, name3, name4)  you'd just say
ifstream inputFile;
inputFile >> name1 >> name2 >> name3 >> name4;
Just like it would look with cin
cin >> name1 >> name2 >> name3 >> name4;
 C++ doesn't care if the input is coming from a text file or a keyboard.  Duh.

C++ assigning values to arrays

If you need to assign values to a two dimensional array use a nested "for" loop

ex:
const int ROW = 3;
const int COLS = 2;
int arrayN[ROW][COLS];
int counter1, counter2;

for(counter1 = 0; counter1 < ROW; counter1++)
 { for(counter2 = 0; counter2 < COLS; counter2++)
   {
    cin >> arrayN[counter1][counter2];
   }




When spitting an array out

for(counter1 = 0; counter1< COLS; counter1++)
 { for(counter2 = 0; counter2 < ROW; counter2++)
   {
    cout << arrayN[counter1][counter2];
   }
}

PHP Resources

Everyone could use a new trick or for their PHP bag. Here are some great resources that might just do the trick.

Village Host Pizza Lexington KY

I had the pleasure of eating at Village Host Pizza in downtown Lexington this weekend. I had the cheeseburger pizza. It was pretty good, however the thing to get at this restaurant is the salad bar. It might just have the best salad bar in Lexington .

Christmas Chimes

I wish this was better. It is a little slow. The bells aren't on pitch. It is just not as great as I would like.

Christmas favorites

Fantastic compilation of singers who where hot back in the day. Any Williams, Robert Goulet, Barbara Streisand - you name it. Great record

Christmas Strings

Fantastic record by the Herald Singing Strings playing some classic instrumentals of Christmas favorites. Great great great. The record was totally worn down.

Merry Christmas from Lawrence Welk and His Champagne Music

I absolutely love the happy sounding Lawrence Welk orchestra. These Christmas classics have the added flavor that Welks arrangements have. Some how he manages to make happy Christmas songs even happier!. Great.

Curl

  • curl XML on stack
  • HTTP Authentication with CURL
  • Command Line Curl
  • Instagram oauth with Curl
  • The best no nonesense curl resource on Codular
  • Monday, November 11, 2013

    Asp.net Resources

    I never thought in a million years that I would be learning how to develop on Microsoft platforms. I'm not exactly an enthusiast at this point, but I'm having to learn C# and ASP.net after the main developer at work left. Below is a series of resources that I've found helpful thus far.

    Wednesday, November 06, 2013

    Resources for Putting a SSD in an old Mac Book Pro

    I've wanted to upgrade my Mac Book Pro hard drive for some time now and I'm considering a SSD. Here is an article on doing just that. Installing a SSD in Mac Book Pro
    Corsair 360 GB SSD