阿杰博客那波突

基于typo的ajax博客

稀缺租金的定义

Posted by Jay Fri, 20 Jun 2008 06:38:00 GMT

SCARCITY RENT:

The marginal opportunity cost imposed on future generations by extracting one more unit of a resource today. Scarcity rent is one of two costs the extraction of a finite resource imposes on society. The other is marginal extraction cost–the opportunity cost of resources employed in the extraction activity. Scarcity rent is the cost of "using up" a finite resource because benefits of the extracted resource are unavailable to future generations. Efficiency is achieved when the resource price–the benefit society is willing to pay for the resource today–is equal to the sum of marginal extraction cost and scarcity rent.

no comments |

制作属于你自己的徽章

Posted by Jay Sat, 07 Jun 2008 15:44:00 GMT

在“男人装”上发现的一个网站,可以帮助你制作属于你自己的徽章,可以是队徽阿,车徽之类的。通过图形的简单组合获得一个个性化的徽章,很方便,你也可以试试,以下是我设计的几个作品:

网址:http://www.scionspeak.com/

no comments |

Jason Mraz--- live high

Posted by Jay Wed, 04 Jun 2008 12:43:00 GMT

no comments |

A guide of Typo 5.0.3 hosting on bluehost

Posted by Jay Thu, 22 May 2008 11:00:00 GMT

I wrote this in Enlish because there are many typo users who are not Chinese.

There are many who want to host their typo on bluehost, but there are few related resources on the Internet.

The only detailed introduction I could find is this one on http://bartgdev.com/articles/2006/08/07/installing-typo-on-bluehost. But it’s 2 years ago. I tried his way but always fail. But in this article I refered some content from him, thanks to the writer.

This article asummes that you have SSH access to bluehost. Reader can google how to get SSH access.

1. get typo

Into SSH, create a fold:

[~]# mkdir rails

[~]# cd rails

download typo:

 

[~]# wget http://rubyforge.org/frs/download.php/32865/typo-5.0.3.tgz

then tar the .tgz file:

[~]# tar -xzvf typo-5.0.3.tgz

2. create subdomain

This article assumes you put your typo as a subdomain, something like "typo.yourdomain.com".

Subdomain can be created on the bluehost cPanel.  After you created subdomain "typo", you can delete the folder ‘typo’ under ’public_html', and create a symbol link to your typo's public folder. In this article, it is'~/rails/typo-5.0.3/public'. You can do it this way:

[~]#rm -rf ~/public_html/typo

[~]#ln -s ~/rails/typo-5.0.3/public ~/public_html/typo

 

3.FastCGI

Open file ‘public/.htaccess’ , comment out the second line, uncomment the third line, and then your .htaccess should look like:

# General Apache options
#AddHandler fastcgi-script .fcgi
AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
#Options +FollowSymLinks +ExecCGI

 

4. create necessary database

 

You can create the development database and use it by default, or you can jump right into production. You’ll need to update some files to point to production, as development is set by default.

Uncomment the fifth line in config/environment.rb to make your typo running under production mode, this could make your typo work faster. The config/environment.rb will look like:

# Be sure to restart your webserver when you modify this file.

# Uncomment below to force Rails into production mode
# (Use only when you can’t set environment variables through your web/app server)
 ENV[‘RAILS_ENV’] = ‘production’

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), ‘boot’)

# need this early for plugins
require ‘typo_deprecated’

Use phpMyAdmin to setup your dev or prod database, as per bluehost’s instructions here.

5. create tables

After you create all the database, you can run ‘rake db:migrate RAILS_ENV=production’ to help you create all the tables.

6. try it!

Try to type ‘typo.yourdomain.com’ in your brower, then you should get in the login panel. And there is a typo bug, after you log in, you must change something in setting and save, and typo will work just fine.

 

Reference:

http://bartgdev.com/articles/2006/08/07/installing-typo-on-bluehost

http://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&id=232

 

Special thanks to sprewell who gives me much help and patience.



 

 

 

Posted in | 1 comment |

Hello World!

Posted by Mr Typo Thu, 22 May 2008 09:08:32 GMT

Welcome to Typo. This is your first article. Edit or delete it, then start blogging!

1 comment |