文章列表
 
您正在查看 "左七右八" 分类下的文章

2010-10-30 0:39
博客到今天为止,杂七乱八的写了645篇文章。

在这些文章里有我高兴的时候,也有我郁闷的时候;
有我学习的时候,也有我偷懒的时候;
有我恨天的时候,也有我怨地的时候;
有我骂人的时候,也有我被骂的时候;
有我思考的时候,也有我脑残的时候;
有我.................,也有我..................;

由于这样那样的原因,这个博客不想再继续下去了。
谢谢很多朋友的关注和留言。也感谢百度,虽然我天天不用他的搜索,还诋毁他的产品。

2008-05-12 13:12~2010-10-30 0:17(2.5 Years)
By notenking  at LiYuan

=============================================
我只有一个目标(Only One Goal)。

But...Yes,I'm hungry,I'm a fool too
=============================================



千千阙歌

徐徐回望 曾属於彼此的晚上
红红仍是你 赠我的心中艳阳
如流傻泪 祈望可体恤兼见谅
明晨离别你 路也许孤单得漫长
一瞬间 太多东西要讲
可惜即将在各一方
只好深深把这刻尽凝望

来日纵使千千阕歌 飘於远方我路上
来日纵使千千晚星 亮过今晚月亮
都比不起这宵美丽
亦绝不可使我更欣赏
Ah... 因你今晚共我唱

来日纵使千千阕歌 飘於远方我路上
来日纵使千千晚星 亮过今晚月亮
都比不起这宵美丽 都洗不清今晚我所想
因不知那天再共你唱
 
2010-10-27 16:26
实在是头疼

第一天登录,告诉我密码错误。。俺忍了,刚上线有bug算了

第二天登录,告诉我“这个用户正在审核中”

我吐血,我可是发了快10个app到你们平台了

这个大会准备的就是这么充分吗?
 
2010-10-23 22:25
最近身体不舒服,在网上随便搜了一下症状对应的病症,吓的我心里一阵发虚...我这啥都没有做,不能就这样对不起祖国人民啊..

早晨起个大早去医院检查后才给我一个安慰。。

回来想想如果我真的要对不起人民,那我现在做什么才能对得起我自己呢?

有空保护下身体,要为国家健康工作50年(这话不是我说的)....
 
2010-10-18 9:17
周末看到大兴地铁站的灯已经亮起来了,我激动的内牛满面,额多年的等待还是有结果的吗!
俺要做地铁....


 
2010-10-16 21:19


早晨起来看到google的logo已经变了,一年又到了重阳节,小的时候很喜欢这首歌曲,节奏鲜明,声音干净。
同时也想起王维的这四句小诗。

独在异乡为异客, 每逢佳节倍思亲。
遥知兄弟登高处, 遍插茱萸少一人。

很久没有回家看看了,又刷新了我离家时间的记录。
 
2010-10-12 8:44
我也不知道,昨天在等车的时候突然想到这个问题。

晚上奇堵无比,可恨的是,那些公交车都不知道在那歇着了。将近一个小时么有见到半辆车,我在那来回转悠,八点半左右才到家....

回到家,我就想,我愿意花多少钱买自己的一个小时呢?如果打车到家要50元左右,不打车将浪费一个小时。
这一小时是否值50元钱呢?我纳闷了一晚上...

你的一小时值多少钱?

 
2010-10-11 9:34
google官方博客发了一篇文章,这也是我5年前一直在想的,为什么 有固定的轨迹,还需要司机呢?

想象一下,某天你下班后,汽车飞快的从车库里钻出来,这时你坐进去,嘴里叫到:shit,我要回家.
汽车飞快的计算当前路况,给出路线图以及时间。然后就在拥挤的车流中飞奔,而你在车里浏览着twitter,
或者敲着代码,到了小区门口,下车,see you,车子自己进入了车库。

这样的生活多么值得向往..
======================
Larry and Sergey founded Google because they wanted to help solve really big problems using technology. And one of the big problems we’re working on today is car safety and efficiency. Our goal is to help prevent traffic accidents, free up people’s time and reduce carbon emissions by fundamentally changing car use.

So we have developed technology for cars that can drive themselves. Our automated cars, manned by trained operators, just drove from our Mountain View campus to our Santa Monica office and on to Hollywood Boulevard. They’ve driven down Lombard Street, crossed the Golden Gate bridge, navigated the Pacific Coast Highway, and even made it all the way around Lake Tahoe. All in all, our self-driving cars have logged over 140,000 miles. We think this is a first in robotics research.

Our automated cars use video cameras, radar sensors and a laser range finder to “see” other traffic, as well as detailed maps (which we collect using manually driven vehicles) to navigate the road ahead. This is all made possible by Google’s data centers, which can process the enormous amounts of information gathered by our cars when mapping their terrain.

To develop this technology, we gathered some of the very best engineers from the DARPA Challenges, a series of autonomous vehicle races organized by the U.S. Government. Chris Urmson was the technical team leader of the CMU team that won the 2007 Urban Challenge. Mike Montemerlo was the software lead for the Stanford team that won the 2005 Grand Challenge. Also on the team is Anthony Levandowski, who built the world’s first autonomous motorcycle that participated in a DARPA Grand Challenge, and who also built a modified Prius that delivered pizza without a person inside. The work of these and other engineers on the team is on display in the National Museum of American History.

Safety has been our first priority in this project. Our cars are never unmanned. We always have a trained safety driver behind the wheel who can take over as easily as one disengages cruise control. And we also have a trained software operator in the passenger seat to monitor the software. Any test begins by sending out a driver in a conventionally driven car to map the route and road conditions. By mapping features like lane markers and traffic signs, the software in the car becomes familiar with the environment and its characteristics in advance. And we’ve briefed local police on our work.

According to the World Health Organization, more than 1.2 million lives are lost every year in road traffic accidents. We believe our technology has the potential to cut that number, perhaps by as much as half. We’re also confident that self-driving cars will transform car sharing, significantly reducing car usage, as well as help create the new “highway trains of tomorrow." These highway trains should cut energy consumption while also increasing the number of people that can be transported on our major roads. In terms of time efficiency, the U.S. Department of Transportation estimates that people spend on average 52 minutes each working day commuting. Imagine being able to spend that time more productively.

We’ve always been optimistic about technology’s ability to advance society, which is why we have pushed so hard to improve the capabilities of self-driving cars beyond where they are today. While this project is very much in the experimental stage, it provides a glimpse of what transportation might look like in the future thanks to advanced computer science. And that future is very exciting.
 
2010-09-29 13:17
某同学结婚了,房子都买上了,一阵口水,恰好google的招聘有个题目又严重的唰了一把程序员
所以俺啥也不说...

题目
现在北京有一套房子,价格200万,假设房价每年上涨10%,一个软件工程师每年固定能赚40万。如果他想买这套房子,不贷款,不涨工资,没有其他收入,每年不吃不喝不消费,那么他需要几年才能攒够钱买这套房子?

程序:(我做了一个限制,你能工作80年(罕见啊),你别欠1000W以上)
public class Google {
public static void main(String[] args) {
// TODO Auto-generated method stub
int year = 0;
double debt = 0;
double house_price=200;
while (debt >= 0 && debt < 1000&&year<80) {
year++;
house_price*=1.1;
debt = house_price - 40*year;
System.out.println("在"+year+"年后,你还需要 "+debt+"万 元买到房子");
}
}
}

执行结果如下:
在1年后,你还需要 180.00000000000003万 元买到房子
在2年后,你还需要 162.00000000000003万 元买到房子
在3年后,你还需要 146.2000000000001万 元买到房子
在4年后,你还需要 132.8200000000001万 元买到房子
在5年后,你还需要 122.10200000000015万 元买到房子
在6年后,你还需要 114.31220000000019万 元买到房子
在7年后,你还需要 109.7434200000003万 元买到房子
在8年后,你还需要 108.71776200000033万 元买到房子
在9年后,你还需要 111.58953820000039万 元买到房子
在10年后,你还需要 118.74849202000041万 元买到房子
在11年后,你还需要 130.6233412220006万 元买到房子
在12年后,你还需要 147.68567534420072万 元买到房子
在13年后,你还需要 170.4542428786209万 元买到房子
在14年后,你还需要 199.49966716648294万 元买到房子
在15年后,你还需要 235.44963388313124万 元买到房子
在16年后,你还需要 278.9945972714444万 元买到房子
在17年后,你还需要 330.8940569985888万 元买到房子
在18年后,你还需要 391.98346269844774万 元买到房子
在19年后,你还需要 463.18180896829267万 元买到房子
在20年后,你还需要 545.499989865122万 元买到房子
在21年后,你还需要 640.0499888516345万 元买到房子
在22年后,你还需要 748.0549877367978万 元买到房子
在23年后,你还需要 870.8604865104778万 元买到房子
在24年后,你还需要 1009.9465351615256万 元买到房子

八年后希望破灭了。


 
2010-09-21 22:23


做一件事情了不起;
做好一件事情很了不起;
坚持做好一件事情非常了不起;
把一件失败的事情坚持再次做好,实在是了不起;
把一件成功的事情做失败再次做成功,那是神了。

我还没有做好一件事情。
 
2010-09-15 10:34
某个歌曲你设为手机铃声一段时间,某天你又换掉了这个铃声,但是某天某地你突然听到这个铃声,你是否会“咯噔"一下?

一个程序的某点出现过bug,即使你修改了,可是测试人员点击的那一刻,你是否会”咯噔“一下呢?

这样的”咯噔“是很难受的过程,每当上述过程发生在我身上的时候,我总是有种很难受的感觉,可是,可是
如何解决呢?

1,喜欢的歌曲尽量不设为手机铃声。
一首再好的歌曲设为铃声后,也是”月亮之上“,因为每次都是播放前几S,久而久之,听到这首歌曲和被蛇咬的感觉就相似了。

2,代码
遇到问题如果仅仅是绕开问题,下次还是问题,下下次还是,彻底的理清问题的根源才是解决咯噔的必需之路。
 
2010-08-25 17:36
一,菲佣的polices相当业余
无论是绑匪,还是狙击手,还是现场特警,感觉都是国内的民兵水平,不对,侮辱民兵了。

二,咱们出去玩还是不安全的
假如是美国,我想不会让菲佣去做这样的事情的,而我们只有眼睁睁看着这群猪抗着大锤去砸钢化玻璃

三,自己的手是最可靠的
关键的时候自己的小手是最具有信任力的,小命不要了,也要跟你试试。

四,网络太强大了
实时性体现的无与伦比,让世界清楚看到的那些猪做了哪些错事。

五,肉体很脆弱...

六,拥有一个更加强大的智能手机很必要。
随便猜想下,假如那个导游的手机是android系统,同时装上bambuser,估计外面的猪会跑的更快点,也让这帮猪知道他们自己干掉了多少良民。
 
2010-08-15 2:50

I am seeing a lot of new web services are implemented using a REST style architecture these days rather than a SOAP one. Lets step back a second and explain what REST is.

What is a REST Web Service

The acronym REST stands for Representational State Transfer, this basically means that each unique URL is a representation of some object. You can get the contents of that object using an HTTP GET, to delete it, you then might use a POST, PUT, or DELETE to modify the object (in practice most of the services use a POST for this).

Who's using REST?

All of Yahoo's web services use REST, including Flickr, del.icio.us API uses it, pubsub, bloglines, technorati, and both eBay, and Amazon have web services for both REST and SOAP.

Who's using SOAP?

Google seams to be consistent in implementing their web services to use SOAP, with the exception of Blogger, which uses XML-RPC. You will find SOAP web services in lots of enterprise software as well.

REST vs SOAP

As you may have noticed the companies I mentioned that are using REST api's haven't been around for very long, and their apis came out this year mostly. So REST is definitely the trendy way to create a web service, if creating web services could ever be trendy (lets face it you use soap to wash, and you rest when your tired). The main advantages of REST web services are:

  • Lightweight - not a lot of extra xml markup
  • Human Readable Results
  • Easy to build - no toolkits required

SOAP also has some advantages:

  • Easy to consume - sometimes
  • Rigid - type checking, adheres to a contract
  • Development tools

For consuming web services, its sometimes a toss up between which is easier. For instance Google's AdWords web service is really hard to consume (in CF anyways), it uses SOAP headers, and a number of other things that make it kind of difficult. On the converse, Amazon's REST web service can sometimes be tricky to parse because it can be highly nested, and the result schema can vary quite a bit based on what you search for.

Which ever architecture you choose make sure its easy for developers to access it, and well documented.

From:http://www.petefreitag.com/item/431.cfm

 
2010-08-03 15:51
参考这个(程序员的一生


 
2010-07-31 21:29
今天参加了一位大学同学的婚礼。

同学是男方,家不在北京,女方家是北京的。

司仪口才很厉害,把整个现场搞的很有气氛,在婚礼进行中,出现一点点的小动作,让我很感动,也很难受.


按照程序,男方会拥抱一下他的母亲,感谢这么多年的养育。我的这位同学按照程序把他母亲紧紧拥抱在怀中,过了一会,我同学放开了他的母亲,在放开的一瞬间,他把双手在他母亲的脸颊上停留了几秒钟,认真的看了一下他的母亲,(从我看来,多么像是20年前母亲托住我的脸,看我的脸上是不是有伤痕(我儿时很调皮..))。这时他的泪水流出来了,此时他的母亲的眼睛也湿润了。

这一看我无法猜测我同学的具体用意,但是流露的感情让我很感动,让我觉的我这位同学很不错。
 
2010-07-07 10:34
如果时间可以被我控制

我想我会尽可能的用我的时间来延缓父母的衰老

如果身体可以被我控制

我想我会让我的血液流淌在父母身上,让他们思维敏捷,脚步轻松

如果幸福可以被我控制

我想我会把我的幸福包围在父母周围。
 
   
 
 
文章存档
 
     
 
最新文章评论
  

还有就是我的是两个TabHost,底部的TabHost是在另外的一个主的Activity里面,现在的A
 

关键是我的每个具体的Activity都有自己的title啊,那我怎么动态设置title呢?
 

感谢你发出这个帖子! 我看了诸多类似帖子都语焉不详,看过你的后才搞定!
 

回复hejinghust:如何解决的
 

怎么解决的?
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu