Becoming a Millionaire -- A Real-Life Example
Albert Einstein is quoted as saying, "The most powerful force in the universe is compound interest." When someone as brilliant as Big Al talks about the power of compounding, I don't know about you, but I tend to listen!
Well, here's another smart guy, this time from Kiplinger's, who says, "Time is the most powerful weapon in an investor's arsenal. Nothing comes close to it." Why? Because of the power of compounding. Here are some of his key thoughts:
The article then ends with this conclusion:
But enough numbers. If you're a young person, all you need to know is that you must start early. If you are an older person who has young progeny or young friends, encourage them to start early. If you're particularly generous, set up a long-term trust or a Section 529 tax-advantaged college savings plan, or simply open a mutual fund account that the young person promises not to touch (or perhaps doesn't know anything about).
The piece then goes on to talk about where to invest your money. Me? I like index funds.
Just a great overall summary of one of the pillars of growing your net worth. Every person needs to know, understand, and apply this financial wisdom to make the most of their finances. I've been doing it for 15 years or so now and the power of compound interest is still really starting to take off -- it's really making a strong impact on my net worth. I can't wait to see what it does over the next 20 years!!!!
One of my favorite quotes about taking action is this:
The best time to plant a tree is twenty years ago. The second best time is now.
If you've lost a lot of investing time because you've procrastinated, just didn't know what to do, didn't have the willpower to save, weren't able to save, or whatever reason you might come up with -- stop fretting about it. It's water under the bridge. There's nothing you can do to get back that lost time. But you can still make a difference in your finances. How? Start saving today! 20 years from now, you'll be glad you did. ;-)
C# NET 2.0, Formatting and Validating Data
Using the UNIX shell
Following on from my last post about PostgreSQL, i've found a couple of things were 'off' with the setup, so this is a quick re-write and update... on with the show!
So, if the last guide worked, what's different with this set-up...
Before we move on, this guide was tested on (and intended for) the current stable build of Ubuntu (5.04 - Breezy Badger), but it should also work fine on any other build of Ubuntu/Debian (6.06 - Dapper Drake etc).
First off, PostgreSQL 8.1 isn't in the main repositories in Breezy, you'll need to have backports enabled to get hold of the latest packages. Once you've done that, let's move on.
Right, now let's install the database server. At the command-line, enter the following (Or you can do all this in Synaptic - just search for and install the packages listed in the commands):
> sudo apt-get install postgresql-8.1 postgresql-client-8.1
> sudo apt-get install pgadmin3 pgadmin3-data
This installs the database server, and the pgAdmin administration application (If you don't really get on with the pgAdmin GUI, there is an alternative in the form of phpPgAdmin - a web-based administration interface. A quick 'How To' on getting this up will be coming shortly! ;) ).
Now we need to reset the password for the 'postgres' admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):
> sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD '*password*';
template1=# \q
Then, from here on in we can use pgAdmin to run the database server. To get a menu entry for pgAdmin do the following...
> sudo gedit /usr/share/applications/pgadmin.desktop
Then paste the following into the file:
[Desktop Entry] Comment= PostgreSQL Administrator III
Name=pgAdmin III
Encoding=UTF-8
Exec=pgadmin3
Terminal=false
Comment[en_GB]=PostgreSQL Administrator III
Icon=/usr/share/pixmaps/pgadmin3.xpm
Type=Application
Categories=GNOME;Application;Database;System;
Name[en_GB]=pgAdmin III
Then save the file and exit gedit. You should find the launcher in the System Tools section of the Applications menu. Alternatively, you could just type 'pgadmin3' at the shell. The wizards to connect to the database should be pretty simple to figure out.
Finally, we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine (The guidelines here are for opening up your server on a secure LAN - if you are not on a secure LAN you may want to look into adding SSL authentication before proceeding with these steps).
To do this, first, we need to edit the postgresql.conf file:
> sudo gedit /etc/postgresql/8.1/main/postgresql.conf
Now, to edit a couple of lines in the 'Connections and Authentication' section...
Change the line:
#listen_addresses = 'localhost'
to
listen_addresses = '*'
and also change the line:
#password_encryption = on
to
password_encryption = on
Then save the file and close gedit.
Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.
> sudo gedit /etc/postgresql/8.1/main/pg_hba.conf
Now add the following lines to the file:
# Allow any user on the local system to connect to any database under
# any user name using Unix-domain sockets (the default for local
# connections).
#
# Database administrative login by UNIX sockets
local all all trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ip address] [subnet mask] md5
and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).
That's it, now all you have to do is restart the server and all should be working!
> sudo /etc/init.d/postgresql-8.1 restart
ah god... i'm growing tired of answering why the internet is slow, why their email send/receive is flaky. i can not perform miracles. really, sometimes internet flakiness/ISP's QoS should be reported to company's internet service provider. sometimes i just want to go back to philippines or elsewhere, find a job where a programmer can just concentrate on programming again. i can not perform miracles.
ONLINE ORIGINAL: Carlos Slim: "The Key Is the Internet": "A: It's not a question of arriving [at a new company] and putting in a whole new administration, but instead, arriving and 'compacting' things as much as possible, reducing management layers. We want as few management layers as possible, so that executives are very close to the operations. We also don't believe in having big corporate infrastructures.
Slashdot | HardOCP Spends 30 Days With Vista: "
Chris Taylor : Remoting Exceptions:
: "1. Change your thinking by asking better questions.
DBCC SHRINKFILE(starhonda_log, 2)
Make MSHFlexGrid Editable without help of any - visual basic, vb, vbscript:
Slashdot | Vista Security The 'Longest Suicide Note in History'?:
Slashdot | Why Palm Still Covets Palm OS: "PalmOS is definitely stone-age internally, but guess what: being a PITA for programmers has *NOTHING* to do with its unmatched usability for end users.
What's the suspicious Rundll32.exe process?: "o know the module which is executed by Rundll32, proceed further. Without any third-party tools, here is a neat way to track down what the Rundll32 is executing. Open a Command Prompt window and type the following command:
Slashdot | Drinking Alcohol May Extend Your Life:
But unfortunately the correlation may not imply causation. i.e. people who live longer drink more, but not vice-versa.
Lotsa possible ways to spoil things.
Adjusted for inflation, $5,000 in 1940 is equivalent to $66,500 today. $66,500 is no small amount of money now, and -- though I wasn't alive -- $5,000 was no small amount of money in 1940. The average salary at the time was $1,300, so he invested 3.8 times the average salary in that first year.
Investing $5,000 now might set you on the path to becoming a multi-millionaire in the year 2070, and you'll be better off than if you hadn't, but $1,000,000 won't go so far in 2070 based on historical inflation.
To get that same purchasing/giving power in 2070 that this guy has today, you'd have to start investing with $66,500 according to inflation or assuming the average salary today is $30,000, the same factor of 3.8 would require an initial investment of $114,000.
1940 average salary info: http://kclibrary.nhmccd.edu/decade40.html