Blogs

How to Prevent Osteoporosis?

Read Chapter 10 of The China Study. It starts on page 203.

The meat (actually, more like the potatoes) of it => A research study on hip fractures done at Yale:
"It found that a very impressive 70% of the fracture rate was attributable to the consumption of animal protein. These researchers explained that animal protein, unlike plant protein, increases the acid load in the body. An increased acid load means that our blood and tissues become more acidic. The body does not like this acidic environment and begins to fight it. In order to neutralize the acid, the body uses calcium, which acts as a very effective base. This calcium, however, must come from somewhere. It ends up being pulled from the bones, and the calcium loss weakens them, putting them at greater risk for fracture" (The China Study - p. 205)

bash foreach file in directory

How to iterate over all files in a directory:
This works on my MacBook, running Mac OSX Snow Leopard (10.6). Unix.

To list all files in your Documents folder, for example, enter in Terminal (Mac's command-line):
for file in ~/Documents/*; do echo "$file"; done;

To create hardlinks in the present working directory that point to files in your Documents folder, enter:
for file in ~/Documents/*; do ln "$file"; done;

Is Coffee God or Bad for You?

This is my response to a comment made on my facebook page:
http://www.facebook.com/profile.php?id=514417&v=feed&story_fbid=59396232...

GTE - Day 2

Nice Edwin.
Okay. so i'm kinda embarrassed to share this... but... i got honest with myself and reminded myself that:

1. get disturbed/get honest
I'm single and in a slump (it's been about a month since any action... haha... although i have been in a new place for the past 3 weeks. prague... have to build up new social circle of prospects.. haha.. there i go with the excuses again! :) )

GTE - Day 1

let's get this party started. here's my share.

guess we're supposed to start with 1st week of PP2 but are skipping it? that's cool. i did the first 10 days of PP2 twice before, although a refresher wouldn't hurt since it's been a while. anyhow... i don't mind skipping it. on with the fun.

parts of day 1 audio that i liked:
-skepticism is being afraid to get your hopes up.
-in today's world, depression is merely a prozac deficiency. LOL!
-yeah, a ton of people talk the talk... but action is what matters. walk the walk.

How to Send Email with MAMP

How to use the mail() php function to send mail.

This works and is REALLY easy! And can be undone later. It's just editing a text file. I know it's scary and advanced (I was scared and confused at first), but just do it. It's fine. And if it doesn't work, you can change it back. Simple! :)

  1. Shutdown MAMP completely
  2. Edit /etc/postfix/main.cf
    • Search for "relayhost"
    • Add relayhost = smtp.example.com
  3. Start up MAMP again

In the Future, We Won't Have to Work

Going off my last post of musing about what the future holds in store for us, is it me or do we work way too hard these days?

With the age of computers and technology and this new age of information... our goal should be AUTOMATION...

The World Without Computers

Eventually, computers will be obsolete. Not in the general sense of the word, but personal computers specifically.

What is the point of a personal computer?

I use mine to write papers, make presentations or websites (and blog posts like this one), and to check email. You can also use computers to advertise and sell products and services (e-commerce).

So, yes, computers are useful, especially as a means of communication and business, but isn't there better?

PHP Benchmark Testing

echo vs. assignment and string concatenation inside a display function.

I made this function nav() to display the navigation

    (unordered list) on index.php for my main page and because I wanted to reuse this code on index.php of my wordpress blog for the same site. two index.php pages... i couldn't figure out how to condence the wp index.php file into my main index.php file for the main part of the site...

CSS Styling Tips

If ur gonna be doing a fair amount of css styling, you must download the firebug firefox extension (google firebug). if you don't have firefox, you could try firebug light or you might prefer downloading webkit. http://webkit.org/

Syndicate content