Mac OS X Sleep and Wake log or history

Type the following command in terminal:

pmset -g log|grep -e ” Sleep ” -e ” Wake ”

Advertisements

How to Clean Install Windows on an mSSD Cache Equipped Laptop

Clean Install Windows on an mSSD Cache Equipped Laptop

Note: It is possible to enable/disable RAID configuration in BIOS if you cannot access windows.

The first step would be to disable acceleration using Intel Rapid Storage Technology software.

Next, you need to Release the Hard Drive “Make available” also using Intel Rapid Storage Technology software. The mSSD is no longer used as a cached drive, and should be available as a separate drive in Windows. Restart computer. If not you need to format it in Windows’s Disk Management.

Then, install Windows and necessary drivers as usual.

Finally, you can enable acceleration again using Intel Rapid Storage Technology software. (You would have to download it again).

Disable ‘Reopen windows when logging back in’

Disable ‘Reopen windows when logging back in’

To permanently disable ‘Reopen windows when logging back in,’ you can use the following command:

defaults write com.apple.loginwindow TALLogoutSavesState -bool false

This will effectively disable ‘Reopen windows when logging back in,’ though the checkbox will still be ticked. However, this switch resets itself every time on reboot. To prevent this from happening, again we remove write permissions on the file containing the option:

chmod a-w ~/Library/Preferences/com.apple.loginwindow.plist

This should do it. But there’s where OS X gets nasty. When it can’t write to this file, it will try to put the write permissions back itself. The solution is to change the owner to root, effectively preventing anyone (but root) from changing permissions on the file:

sudo chown root ~/Library/Preferences/com.apple.loginwindow.plist

To reverse this, simply issue the following commands:

sudo chown $USER ~/Library/Preferences/com.apple.loginwindow.plist
chmod a+w ~/Library/Preferences/com.apple.loginwindow.plist
defaults write com.apple.loginwindow TALLogoutSavesState -bool true

Source: http://hints.macworld.com/article.php?story=20110918051930924
By: SeySayux

Disable Saved Application States in Lion

Disable Saved Application States

1- removes any saved application states:

rm -r ~/Library/Saved\ Application\ State/*

2- Permanently prevent Application from writing its state:

chmod -R a-w ~/Library/Saved\ Application\ State

To re-enable the feature, issue the same command, but replace ‘a+w’ with ‘a-w’:

chmod -R a+w ~/Library/Saved\ Application\ State

Aggregate Nutrient Density Index (Dr. Joel Fuhrman’s)

No. Food Score No. Food Score No. Food Score
1 Kale 1000 26 Cantaloupe 100 51 Skim Milk 36
2 Collards 1000 27 Kidney Beans 100 52 Walnuts 34
3 Bok Choy 824 28 Sweet Potato 83 53 Grapes 31
4 Spinach 739 29 Black Beans 83 54 White Potato 31
5 Broccoli Rabe 715 30 Sunflower Seeds 78 55 Banana 30
6 Chinese/Napa Cabbage 704 31 Apple 76 56 Cashews 27
7 Brussel Sprouts 672 32 Peach 73 57 Chicken Breast 27
8 Swiss Chard 670 33 Green Peas 70 58 Eggs 27
9 Arugula 559 34 Cherries 68 59 Peanut Butter 26
10 Cabbage 481 35 Flax Seeds 65 60 Whole Wheat Bread 25
11 Romaine Lettuce 389 36 Pineapple 64 61 Feta Cheese 21
12 Broccoli 376 37 Chick Peas 57 62 Whole Milk 20
13 Carrot Juice 344 38 Oatmeal 53 63 Ground Beef 20
14 Cauliflower 295 39 Pumpkin Seeds 52 64 White Pasta 18
15 Green Peppers 258 40 Mango 51 65 White Bread 18
16 Artichoke 244 41 Cucumber 50 66 Apple Juice 16
17 Carrots 240 42 Soybeans 48 67 Swiss Cheese 15
18 Asparagus 234 43 Pistachio Nuts 48 68 Low Fat Yogurt 14
19 Strawberries 212 44 Corn 44 69 Potato Chips 11
20 Pomegranate Juice 193 45 Brown Rice 41 70 American Cheese 10
21 Tomato 164 46 Salmon 39 71 Vanilla Ice Cream 9
22 Blueberries 130 47 Almonds 38 72 French Fries 7
23 Iceberg Lettuce 110 48 Shrimp 38 73 Olive Oil 2
24 Orange 109 49 Avocado 37 74 Cola 1
25 Lentils 100 50 Tofu 37

Source: www.drfuhrman.com/

Aggregate Nutrient Density Index (Eat Right America)

No. Food Score No. Food Score No. Food Score
1 Kale 1000 26 Peach 73 51 Peanut Butter 26
2 Collards 1000 27 Apple 72 52 Whole Wheat Bread 25
3 Bok Choy 824 28 Green Peas 70 53 Low Fat Yogurt 24
4 Spinach 739 29 Cherries 68 54 Feta Cheese 21
5 Brussel Sprouts 672 30 Flax Seeds 65 55 Whole Milk 20
6 Arugula 559 31 Sesame Seeds 65 56 Ground Beer 20
7 Cabbage 481 32 Pineapple 64 57 White Pasta 18
8 Romaine 389 33 Edarname 58 58 White Bread 18
9 Broccoli 376 34 Oatmeal 53 59 Apple Juice 16
10 Cauliflower 295 35 Mango 51 60 Swiss Cheese 15
11 Green Pepper 258 36 Cucumber 50 61 Potato Chips 11
12 Artichoke 244 37 Pistachio Nuts 48 62 Cheddar Cheese 11
13 Carrots 240 38 Corn 44 63 Vanilla Ice Cream 9
14 Asparagus 234 39 Salmon 39 64 Olive Oil 9
15 Strawberry 212 40 Almonds 38 65 French Fries 7
16 Pomeg. Juice 193 41 Shrimp 38 66 Cola 1
17 Tomato 164 42 Tofu 37
18 Blueberries 130 43 Avocado 37
19 Iceberg 110 44 Skim Milk 36
20 Orange 109 45 Walnuts 34
21 Lentils 104 46 Grapes 31
22 Cantaloupe 100 47 white Potato 31
23 Kidney Beans 100 48 Banana 30
24 Sweet Potato 83 49 Chicken Breast 27
25 Sunflower Seeds 78 50 Eggs 27

Source: www.eatrightamerica.com