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

What is VPS?

What is VPS? Virtual private server (VPS)

A VPS is a virtual machine running in software on the same physical computer as other customers’ virtual machines and is functionally equivalent to a separate physical computer.

Virtual private servers bridge the gap between “shared web hosting” services and “dedicated hosting” services, giving independence from other customers of the VPS service in software terms but at less cost than a physical dedicated server.

What is Cloud server?

A VPS, which is dynamic, (that is, it can be changed at runtime) is often referred to as a cloud server. Key attributes for this are:

- Additional hardware resources can be added at runtime (CPU, RAM) – Server can be moved to other hardware while the server is running (automatically according to load in some cases)

Source: http://en.wikipedia.org/wiki/Virtual_private_server


VPS providers (Monthly cost comparison)

Monthly cost Memory Memory/$ Storage Transfer
Slicehost $20.00 256MB 12.80MB 10GB 100GB
Linode $19.95 360MB 18.05MB 16GB 200GB
Prgmr $20.00 1024MB 51.20MB 24GB 160GB
Rackspace $21.90 512MB 23.38MB 20GB -
Amazon $62.05 1.7GB 28.05MB 160GB -

Source: journal.uggedal.com/vps-performance-comparison/

Create PDF from office documents (Print as PDF)

dopdf

dopdf

Mac users already have a “Save as PDF” option built into every Print dialog by default. Windows users need a an extra software.

doPDF or CutePDF installs itself as a virtual PDF printer driver so after a successful installation will appear in your Printers and Faxes list.

You can Print or Scan to PDF simply choose the printer and it’ll save the document to PDF (instead of printing it on paper)

iPhone Grey App Icon – Problem Solved!

Grey App iPhone

Grey App iPhone

1- Connect your iPhone to iTunes (if you chose auto sync switch to manual)
2- Uncheck the affected apps and then sync (This will uninstall those apps from your iPhone)
3- Restart your iPhone
4- Connect your iPhone to iTunes
5- Recheck those apps and then sync again (This will Install the apps back on your iPhone)

You’re Done

Note: deleting the apps directly from your iPhone won’t solve the problem.

Stick the abovementioned steps.

Set up a self-hosted WordPress Blog

How to move your blog from WordPress.com platform to your own (self-hosted) web server?

blue-j

When hosting on WordPress.com:

- You don’t have to deal with installation or upgrades
- You don’t have to create and maintain a database
- You don’t have to register a domain
- All you have to do is create your blog, and start posting
- You can have you own domain on WordPress.com

When hosting at your own (self-hosted) web server:

- You’ll have more themes
- You’ll have Google AdSense
- You’ll have Web widget
- You’ll have Plugins
- You can strengthen your search results

If you’re thinking of self-hosting you WordPress blog, you should at least have a simple understanding of the following:

- Register and host a domain Name
- Install & Run (MySQL)
- Install & Run (PHP)
- Install & Run (WordPress)

How to do it:

- Purchase a web-hosting plan (Make sure the server meets the minimum requirements to run WordPress)
- Delete spam comments on the WordPress.com blog
- Export your data from WordPress.com
- Install and configure (WordPress/PHP/MySQL) on your web server
- Import the WordPress data
- Repoint the domain name

Many web-host providers; like (bluehost.com or dreamhost.com) have a one-click installation of WordPress. This will make the process as simple as “export/import”; however, in many cases you’ll have to alert the php.ini file manually to get things up and running.