Any sufficiently advanced technology is indistinguishable from magic.
The Dunning–Kruger effect is a cognitive bias in which unskilled people make poor decisions and reach erroneous conclusions, but their incompetence denies them the metacognitive ability to appreciate their mistakes.[1] The unskilled therefore suffer from illusory superiority, rating their ability as above average, much higher than it actually is, while the highly skilled underrate their own abilities, suffering from illusory inferiority. Actual competence may weaken self-confidence, as competent individuals may falsely assume that others have an equivalent understanding. As Kruger and Dunning conclude, "the miscalibration of the incompetent stems from an error about the self, whereas the miscalibration of the highly competent stems from an error about others" (p. 1127).[2]
The effect is about paradoxical defects in cognitive ability, in oneself and others.
http://www.youtube.com/watch?v=76E4A0XsdGk
I've spent a lot of time setting up my host, would like to share my experience.
So what we ve got:
VPS box with ssh access
Two websites, both ruby on rails:
VPS was already preconfigured with Nginx and ruby 1.9.2 as system wide setup, so there are no problems of running the first website, as it will work straight out of the box.
The question is how to setup both web applications with different ruby versions.
As we are hosting applications on different ruby versions, we cannot host them together on the same passenger, so we need to setup proxy on the system wide nginx to run the second website as a standalone application.
The access to the second site will look like that:
First of all we need to install 1.8.7 ruby on our host. The best way to do that is to use RVM, and install it locally as a current user. I would personally don't recommend to install it system wide. The are many good tutorial how to do that, so i'll skip over that:
http://beginrescueend.com/rvm/install/
After RVM is install and running 1.8.7 ruby version, we need to decide how we will host our second application. For this example I run standalone passenger, which is simply an instance of nginx running passenger with single application. This setup is enough, if there is only one site, otherwise we need to setup a separate second instance of nginx for 1.8.7 ruby.
Because it is only possible to have a single ruby version active at the same time, it could lead into extra problems if we don't do it properly. The best way i've found to do that is to wrap 1.8.7 ruby passenger into separate aplication.
rvm wrapper 1.8.7@default redmine passenger
That command will create an executable in
where/rvm/installed/.rvm/ruby-1.8.7/bin/
Now you can test it. Navigate to folder with 1.8.7 application and type
redmine_passenger start
This will start passenger server for 1.8.7, and doesn't matter what is the current RVM environment is setup, this will always use 1.8.7 ruby. You should be able to see you application running at localhost:3000 (by default)
So the second passenger is up and running, we need to setup a proxy on the system wide nging to route requests to the second. This is a good information: http://blog.phusion.nl/2010/09/21/phusion-passenger-running-multiple-ruby-versions/
Pretty much we need to add new virtual host to the system wide nginx.
server { listen 80; server_name www.site.com; root /webapps/site.com/public; location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; }}
After nginx is restarted, all requests should be routed to the second passenger.
At this point, it is all good, you some people can leave it here. The problem with the current implementation, the system wide nginx instance will start automatically after system start, but the second passenger we need to start manually.
Solution is to use Monit.
http://mmonit.com/monit/documentation/monit.html
Monit is simply is a separate process, which monitors other processes and makes sure all of the up and running.
This is my monit configuration file to start and monitor passenger for 1.8.7 as a separate process.
check process redmine_passenger
with pidfile /var/rapp/redmine/passenger.3000.pid
start program = "/bin/su - user -c '/var/rapp/.rvm/bin/redmine_passenger start /var/rapp/redmine/ -a 127.0.0.1 -p 3000 -d -e production' "
stop program = "/bin/su - user -c '/var/rapp/.rvm/bin/redmine_passenger stop /var/rapp/redmine/' "
Replace user with current user. Also notice that there is a space before and after user.
And finally, if you are stuck, here are some good website, which helped me to get my solution.
https://gist.github.com/960540
http://stackoverflow.com/questions/5863815/monit-rvm-thin-on-osx-linux
The only important information in a hierarchy is who knows what
If your facts are wrong but your logic is perfect, then your conclusions are inevitably false. Therefore, by making mistakes in your logic, you have at least a random chance of coming to a correct conclusion.
If you are in hole, stop digging.
Brilliant opportunities are cleverly disguised as insolvable problems.
Corollary
The reverse is also true.
Aaron Koblin: Artfully visualizing our humanity | Video on TED.com
If you can't fix it, feature it.
Beauty is only skin deep, but ugly goes clean to the bone.
Success is more permanent when you achieve it without destroying your principles.
Experience is what causes you to make new mistakes instead of old ones.
A meeting is an event at which the minutes are kept and the hours are lost.
The nice thing about being a celebrity is that when you bore people, they think it's their fault.
Two monologues do not make a dialogue.
A computer program does what you tell it to do, not what you want it to do.
If you want to make enemies, try to change something.
A single death is a tragedy; a million deaths is a statistic.
People get lost in thought because it is unfamiliar territory.
Don't let what you cannot do interfere with what you can do.
Seems like a full text (about 70 pages A4)
Great software for use with iTunes to search and delete duplicates
https://sourceforge.net/projects/itunesdsm/
Good collection of photos
http://nevris.seesaa.net/article/140161670.html?googlesorgu=nevris%20beckham%20hairstyle
Interesting summaries and reviews of the keyboards and mice.
http://xahlee.org/Periodic_dosage_dir/keyboarding.html
Truly Ergonomic Computer Keyboard
http://www.trulyergonomic.com/features.html
Type Matrix Keyboard
http://www.typematrix.com/2030/gallery.php