Friday, May 28, 2010

不要老想着要把事情做多好

不要老想着把事情做得多好,要超过谁谁谁。这只会徒增心理负担和失败后的挫败感。

只管happy地去做就行了,不要有所期望。

Wednesday, May 19, 2010

赢不难,难的是输得起

你好好考哦,我等你6月份考完了回来和你们耍,兰军姐也回来了。

现在把高考都研究成精了,我也没啥好帮你的,到时报志愿的时候我们可以一起研究。。

反正考场上找到洒脱的感觉就不会错了,游刃有余,但不是因为题目简单。尤其是理科和数学,遇到“难”题你就当出题老师二百五,选不管它,把简单明了考基础的题先做完。

不要想一定要考上什么学校或者专业,徒增压力。无数的事实证明这些全是浮云。是强者终是强者,,,,弱者再拿名份修饰自己还是个弱者。。。不要太在乎结果,才可能有最好的发挥。。赢不难,难的是输得起。。

Saturday, May 1, 2010

How to Get an Email Address With My Own Domain Name?

So instead of just signing up with 3rd free email services such as hotmail.com or gmail.com and end up with the same domain name part in your email address with everyone else, you want to try something new, that is to have your own domain name and use your own domain name to set up an email address for yourself?

If the answer is yes, you've come to the right solution. Just follow me through the steps listed below.

1. You will need to register a domain name. There are a lot of places to register a domain name but to find the cheapest vendor, you got do a little homework or just listen to my tip at the end of the article.

2. After you have registered the domain name, you will need to set the 3 name servers of your domain to ns1.dreamhost.com, ns2.dreamhost.com, ns3.dreamhost.com.

3. Sign up for a shared hosting account at dreamhost by the coupon I have at the end of this article so you can save $70.

4. After you have become the user of dreamhost, go to domain manager, add your domain registered at step 1 to the system.

5. Go to Google Apps cpanel page and add the domain name you registered at step 1. Follow the steps through to create your apps account with Google.

6. Google Apps will ask you to change some DNS settings for your domain, but you don't have to do that because the reason I chose dreamhost in this is that they automatically do the dirty work for you when you were adding the domain name. Cool, huh?

7. Create a user from Google Apps under your own domain by the Add User link. This is the email you are going to use. Note that there is a limit of 50 accounts per Google Apps free version license.

8. After creation and specifying the user name and password, you can log in into your own email under your own domain at Google.

9. The interface is just like that of Gmail. Very easy and intuitive to use yet you have your very own email under your own domain name!

When you are signing up with the shared hosting, make sure you provide the DreamHost promo code to get $70 discount off the first year which is a rather generous promotional discount. Other than this, you may also find the Cloud servers review useful in finding a great host.

Friday, April 2, 2010

PHP文件里的include或require以哪个文件的目录为基准?

http://localhost 现有以下文件。

/1.php:

<?php include('2/2.php');


/2/2.php:



<?php include('./3.php');


/3.php:



<?php echo '3';


访问 http://localhost/1.php 得答案。显然是以第一访问文件,即 1.php 所在的目录为基准的,并不是以 include 或 require 所在的文件的目录为基准。这样绕来绕去很头疼,就这么办。在1.php中放置:



<?php define('AP', dirname(__FILE__));


然后



<?php include(AP.'/3.php');

Sunday, March 21, 2010

定立目标的五个原则:SMART

S – Specific,具体的

M – Measurable,可数量化的

A – Attainable,可达到的

R – Results,结果导向,即一切以结果为最终衡量标准

T – Time-based,时间导向,即不是遥遥无期的

 

来自微软。

Tuesday, March 9, 2010

梦是云的

理性是土壤,直觉是花朵,灵感是风儿,梦是云的。。。。


蔼是云的,慕是风的

购买二手房(采用按揭)的所有费用

本人在西安,不知道其他城市的具体情况比如中介费是多少,但估计大部分项目应该是差不多的。

对于有房产证的二手房(小于144坪)、采用银行贷款按揭的方式购买、卖方不承担一切费用(比如营业税和个人所得税)并只收房款的情况:

契税:1.5% x 成交价
资料费+查档费+登记费:141块
交易服务费:6块/坪
评估费用:0.005 x 成交价
垫资费:0.01 x 贷款
押抵登记费:103块
按揭代理费:1.5% x 贷款
过户费:600块
中介费:3% x 成交价(西安某21世纪不动产)
营业税:5.5% x 溢值差额(该次成交价 - 上次成交价)
个人所得税:1% x 成交价

对于等于或超过144坪的非住宅类二手房,契税提高为3% x 成交价,营业税提高为5.5% x 成交价。