sunscreen lowdown

Ingrediants to avoid:  oxybenzone, octinoxate, paba

Currently in our bathroom:

  • Hawaiian Topic
    • sheer touch (7), SPF 50 – avobenzone 3%, octocrylene 6%, oxybenzone 4%  (has propylparabenand fragrance)
    • sensitive skin stick (7), SPF 50 - avobenzone 1%, homosalate 15%, octocrylene 4%, oxybenzone 6% (has propylparaben and fragrance)
  • Chapstick
    • Ultra (5), SPF30 – oxybenzone, octinoxate (has propylparaben)
  • Aveeno
    • protect + hydrate (5), SPF 50 - avobenzone 3%, homosalate 10%, octisalate 5%, octocrylene 6%, oxybenzone 5%
  • Neutrogena
    • healthy defense (4), SPF 50 – avobenzone 3%, homosalate 4%, octisalate 5%, octocrylene 5%, oxybenzone 4%
    • oil-free moisture (5), SPF 35 – avobenzone 3%, homosalate 12%, octisalate 5%, octocrylene 2.35%, oxybenzone 6%
  • Lubriderm
    • daily moisture (4), SPF 15 - avobenzone 2%, octisalate 4%, octocrylene 3%, oxybenzone 2.2%
  • Banana Boat
    • natural reflect (3), SPF 50 – titanium dioxide 2.8%, zinc oxide 4%
  • Blue Lizard (2)
    • Face, SPF 30 – octinoxate 5.5%, zinc oxide 8%
  • Ava Anderson (shop)
    • stick (1), SPF 30 – zinc oxide 21%

sunscreen

Active Ingredient Scores

  1. avobenzone  2
  2. titanium dioxide 1-3
  3. zinc oxide 2-3
  4. octisalate 3
  5. octocrylene 3
  6. homosalate  4
  7. paba 6 http://www.ewg.org/skindeep/ingredient/704390/PABA/
  8. octinoxate 6 http://www.ewg.org/skindeep/ingredient/704203/OCTINOXATE/
  9. oxybenzone http://www.ewg.org/skindeep/ingredient/704372/OXYBENZONE/

This isn’t a sunscreen active ingredient but it’s what makes the Hawaiin Tropic products score so badly: propylparaben 10 http://www.ewg.org/skindeep/ingredient/705335/PROPYLPARABEN/

protein sources



I'm supposed to eat 65-70 grams of protein a day....  also they say I should have 3 servings of dairy.

27     chicken breast (3 oz)
21.6  salmon (3 oz)
21     light tuna (half can, 82 grams)
21     cottage cheese (3/4 c)
18     salmon burger
12     eggs (2)
11.1  plain yogurt (1 c)
10.3  milk (1.25 c)
7       black beans (1/2 c)
6.3    almonds (22)
6.2    sunflower seeds (30 grams)
6       string cheese
5       walnuts (30 grams)
4.2    cheddar cheese (1 cubic inch)
4.1    quinoa (1 c)
4       whole wheat bread (slice)
3       pistachios (30 grams)
3       brown rice (3/4 c)
2.5    broccoli (1 c)
1.5    hummus (2 tbs)

2 glasses of milk, 2 pieces of toast, 20 almonds = 35 grams     <-- a normal meatless day
cottage cheese, 1 milk, 1 c yogurt = 42 grams  <-- 3 servings of dairy, including cottage cheese power house

 - make sure to eat nuts when I don't eat meat
2 servings of nuts + 2 eggs = 3 oz of chicken breast

Family Health History for C and B



JS ( > {C,B})
-          Had cataracts removed from both eyes at 55
SS ( > { C,B })
-          Has been taking atenolol for atrial fibrillation since age 45

BS ( > Steve > { C,B })
-          Died of interstitial lung disease, C. Diff. and renal failure at age 83
-          Had breast cancer at about 70 (in 2000??)
o   Had lymph nodes removed, no mastectomy, had radiation but no chemo
-          Had cataract surgery
JS ( > S > { C,B })
-          Died of cirrhosis and type 2 diabetes at age 78
o   Stopped drinking at about age 68
-          Had glaucoma
AS ( > J > { C,B })
-          Died at 78 of heart problems
o   Had heart attack at 39 (check with Dan?), another at about 55 after which she retired
o   At 78 had heart attack and then subsequent stroke in hospital
-          Had Mom and Jon at about age 37
ES ( > J > { C,B })
-          Died at 97 in sleep (ask Dan for any more detail?)
-          Heart issues?
-          Had glaucoma
-          Had macular degeneration


linux disk usage (du)

http://www.codecoffee.com/tipsforlinux/articles/22.html


Basics taken from above...
$ du
Typing the above at the prompt gives you a list of directories that exist in the current directory along with their sizes. The last line of the output gives you the total size of the current directory including its subdirectories. The size given includes the sizes of the files and the directories that exist in the current directory as well as all of its subdirectories. Note that by default the sizes given are in kilobytes.

$ du /home/david
The above command would give you the directory size of the directory /home/david


$ du -h
This command gives you a better output than the default one. The option '-h' stands for human readable format. So the sizes of the files / directories are this time suffixed with a 'k' if its kilobytes and 'M' if its Megabytes and 'G' if its Gigabytes.

bash configuration (including my ~/.bashrc)

bash shell scripting


# basic for loop
for i in `ls *`; do echo $i  ; done



scared skinny?

overweight moms are/have:

  • 4 x more likely to get gestational diabetes
  • 2 x as likely to have high blood pressure (increased blood clots, stoke, death)
  • higher chance of C-section (18% instead of 11%)

  • babies 2 x more likely to have spina bifida,  0.3 x as much heart defects
2/3 maternal deaths in US are related to complications from obesity.


While it’s not entirely clear how a woman’s weight before conception may impact her baby’s brain, Helderman says the leading theory involves inflammation. Excess weight can keep levels of potentially destructive immune cells high; these are the cells that rush to the site of trauma to clear away debris. Studies show that inflammation can adversely affect the brain, and it’s possible that an expectant mom’s heightened inflammatory response could filter through to her developing baby.

Read more: http://healthland.time.com/2012/03/12/how-moms-weight-before-pregnancy-can-affect-a-babys-brain/#ixzz2RyxIBgzs

caffeine content


Caffeine in Chocolate
Ghirardelli  72% Cacao Twilight Delight: 22mg per 17g square 
Ghirardelli  86% Cacao Midnight Reverie: 20mg per 13g square
dark chocolate in general is 28 mg per 1.4oz (40g)
1 oz (28 g) Cadbury (small) bar  is 15mg
milk chocolate in general 3-10 mg per 1.4 oz (40g)


Caffeine in Tea
Black Tea: 23 - 110 mg Oolong Tea: 12 - 55 mg Green Tea: 8 - 36 mg White Tea: 6 – 25 mg

Drink green, white and lightly oxidized oolong teas are good choices, as they tend to benefit from lower water temperatures and shorter steeping times.


Guidelines
Adverse effects have been reported when pregnant women consume more than 200mg a day.

I aim to have less than 100mg a day, which would be:
 - 1 green tea and two Ghiradelli squares
 - three Ghiradelli squares

pre-pregnancy list

- preconception checkup
     - ask about immunizations, get a flu shot
- take 400 mg of folic acid a day for one month before conception and during first trimester
- make sure that your multivitamin doesn't contain more than 770 mcg RAE (2565 IU) of vitamin A, unless it is in beta-carotene form
- don't drink during last two weeks of cycle (or at all)
- limit caffeine to 200 mg per day
- get my BMI below 24 (160lbs would be 24.3, 158lbs would be 24.0)
- don't eat: shark, swordfish, king mackerel or tilefish
- don't eat more than 6 oz per week of: chunk light (solid white and albacore are worse) it's good when it comes from skipjack and bad when it comes from yellowfin
- do eat two servings of fish a week: salmon, herring(Atlantic, jack, chub), farm-raised rainbo trout, sardines, whitefish
- floss
- call insurance about prenatal coverage, ask about deductibles, tests and procedure covered
- avoid soft cheese, cold deli meat, raw fish, unpasturized juice

Ling Links

health: probiotics and mood

family tree software

Grep Regex



grep  "twitter \|wikipedia " filename                        # grep for A or B
grep -P  "twitter |wikipedia " filename                     # grep for A or B
grep "\\\\" filename                                               # grep for a single \



grep -P "\t" filename                                             # grep for tab

grep -h          - suppress filename content is found in
grep -A 2       - returns matching line and to lines After
grep -B 2       - returns matching line and to lines Before


Grep Regular Expressions

grep regex
http://www.bo.infn.it/alice/alice-doc/mll-doc/usrgde/node28.html

more about unicode hex etc

common python snippets



Python Modules  http://wiki.python.org/moin/UsefulModules


regex subsitution in myString
myString= re.sub("\([0-9][0-9]*\)", "", myString)
myString= re.sub("\\\\", "", myString)      # remove a single backslash
myString= re.sub(r"\\", "", myString)      # remove a single backslash using a "raw string"


string substitution (*not* for regex)
    c = c.replace(u'\xae', '') # ®
    c = c.replace(u'\xbb', '') # »
    c = c.replace(u'\x99', '') # char for TM
    c = c.replace(u'\xa9', '') # ©
    c = c.replace(u'—', '-')  # replace mdash u2014 with regular dash
    c = c.replace('?', '') # ?
    c = c.replace(':', '') # :
    c = c.replace(';', '') # ;




save regex-matching string to a new variable
        pageObj = re.search("od [0-9][0-9]*", pagetext)
        if pageObj:
            pageObj2 = re.search("[0-9][0-9]*", pageObj.group())
            numb = pageObj2.group()
            print "numb is ",numb
            pages = range(2,int(numb)+1)

            for p in pages:
                newUrl = locUrl+'afpg/'+str(p)+'/Default.aspx'
                print "adding ", newUrl

stuff to write about



BIO notation

Inside-Outside Algorithm

HPSG

HPSG (Head-Driven Phrase Structure Grammar) 

Stanford and Berkeley espouse this syntactic theory.
It is a "highly lexicalized, non-derivational generative grammar theory."
It is a type of phrase structure grammar, as oppsed to a dependency grammar (The syntactic trees I learned are dependency grammars).


sed one-liners


sed 's/ Телефон: /\t/' filename             # basic search and replace
sed 's/ [-] .*//' filename                       # put tricky chars in []
sed 's/\&amp/\&/' filename                  # example of escaped char
sed 's/.\{1\}/& /g' filename                   # insert 1 space between each char
sed 's/.\{2\}/& /g' filename                   # insert 2 spaces between each char
sed 's/\(.*\)\/word$/word\1/' filename     # search and replace with a captured pattern () on LHS and \1 on RHS
sed 's/word/&\n/' filename                   # search and replace insert a newline
sed '/^\s*$/d' filename                         # delete blank line




Good resources for one-liners with examples 
http://sed.sourceforge.net/sed1line.txt

Starting Off in Python


We’ll start off by looking at material from these sites.
http://www.astro.ufl.edu/~warner/prog/python.html
http://www.sthurlow.com/python/

http://learnpythonthehardway.org/book/ <- recommended for new programmers

using "screen" command to handle multiple sessions

from http://www.cyberciti.biz/tips/linux-screen-command-howto.html


$ screen -S 1
CTRL+a, c            -- create another screen window
CTRL+a, n            -- switch to next screen window I've got open




  • To list all windows use the command CTRL+a followed by " key (first hit CTRL+a, releases both keys and press " ).
  • To switch to window by number use the command CTRL+a followed by ' (first hit CTRL+a, releases both keys and press ' it will prompt for window number).

Common screen commands

screen commandTask
Ctrl+a cCreate new window
Ctrl+a kKill the current window / session
Ctrl+a wList all windows
Ctrl+a 0-9Go to a window numbered 0 9, use Ctrl+a w to see number
Ctrl+a Ctrl+aToggle / switch between the current and previous window
Ctrl+a SSplit terminal horizontally into regions and press Ctrl+a c to create new window there
Ctrl+a :resizeResize region
Ctrl+a :fitFit screen size to new terminal size. You can also hit Ctrl+a F for the the same task
Ctrl+a :removeRemove / delete region. You can also hit Ctrl+a X for the same taks
Ctrl+a tabMove to next region
Ctrl+a D (Shift-d)Power detach and logout
Ctrl+a dDetach but keep shell window open
Ctrl-a Ctrl-\Quit screen
Ctrl-a ?Display help screen i.e. display a list of commands

Suggested readings:

See screen command man page for further details:
man screen