Home

Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Leon's Blogs

Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
CheatSheets - Symfony PDF Print E-mail
Written by Administrator   
Saturday, 11 June 2011 09:18

http://trac.symfony-project.org/wiki/CheatSheets

 

good resource to let you have a whole view and shortcut for Symfony, enjoy it!

 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
How to generate url with suffix PDF Print E-mail
Written by Administrator   
Sunday, 05 June 2011 00:04

symfony is generating the shortest possible URL for that link. You've  
specified the default format as html, so there's no need for it to be  
displayed. If you'd like to alter this behavior, set the  
generate_shortest_url option to false (either for that particular  
route or in your application's factories.yml).

 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Eclipse Keystroke Cheatsheet PDF Print E-mail
Written by Administrator   
Thursday, 02 June 2011 15:46

Eclipse Keystroke Cheatsheet

 

The Eclipse platform can be used as a Java development environment. Here are some handy keyboard shortcuts when using it

in that capacity. (Note that this is a small subset of the keystrokes available, however these are the ones that I call upon the most.)

The official full list of default keyboard shortcuts is also helpful.

NAVIGATION
Ctrl-H Search When editing Java files this will open a Java search
Ctrl-Shift-T Open type Opens a dialog box for searching for class
Ctrl-Shift-R Open resource Opens a dialog box for searching for a file
Ctrl-Shift-G Find references Searches the workspace for references to the item under the cursor
Ctrl-G Find declarations Searches the workspace for declarations of to the item under the cursor
F3 Open declaration Navigates to the declaration of the item under the cursor
Ctrl-T Pop-up type hierarchy Pops up a window displaying the type hierarchy
Ctrl-O Pop-up members Pops up a searchable window displaying the members; pressing the key again toggles the display of inherited members
Alt-Left Back
Alt-Right Forward
Ctrl-PgUp Switch to tab left
Ctrl-PgDown Switch to tab right
Ctrl-Up Scroll line up Moves up the position of the file being edited
Ctrl-Down Scroll line down Moves down the position of the file being edited
Ctrl-M Maximize active editor Toggles the maximization of the current editor
Ctrl-W Close active editor window

CODING
F2 Show tooltip Provides a tooltip for the item under the cursor
Ctrl-1 Quick fix Allows for automatic help while coding, such as adding an import, or delaration
Ctrl-Shift-O Organize imports Arranges imports based on the workspace configuration
Ctrl-I Correct indentation Corrects the indentation of the current line or selected text
Ctrl-Space Content assist Provides completion help while typing
Ctrl-D Delete the current line

REFACTORING
Alt-Shift-R Rename Renames the item under the cursor, updating the references
Alt-Shift-L Extract local variable Extracts the expression under the cursor to a local variable and updates references to the same expression with that new variable

DEBUGGING
F5 Step into
F6 Step over
F7 Step return Also known as step out
F8 Resume
Ctrl-R Run to line
F11 Debug last launched
Ctrl-Shift-B Toggle line breakpoint Toggles a breakpoint on the current line

Last Updated on Saturday, 04 June 2011 12:38
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Symfony resources PDF Print E-mail
Written by Leon Qiu   
Wednesday, 01 June 2011 22:55

symfony1.4(英文):http://www.symfony-project.org/jobeet/1_4/Doctrine/

schema定义表关系:http://www.doctrine-project.org/projects/orm/1.2/docs/manual/defining-models/en#defining-models

http://symfony-project.cn/

symfony1.2(中文):http://www.symfony-project.org/jobeet/1_2/Doctrine/zh_CN/

www.foolbirds.com(东西相对多些)

http://forum.symfony-project.org/(一个symfony学习论坛,英文)

http://symfony.lag.cn/

symfony.net.cn

http://yaron.org.cn (这个不错)

doctrine英文教程:http://www.doctrine-project.org/documentation/manual/1_1/pl

http://www.doupie.com/

(1.4中文)http://symfony-cxne.org/book
http://www.symfony-cxne.org/

http://sf.lag.cn/

http://trac.symfony-project.org/wiki/sfDoctrineFaq#
Imgettingcouldntlocatedrivernamedmysqlwhenirunadoctrinetaskorbatchfromthecommandlinebutdoctrineworksinbrowser.Whatgives

http://www.neatstudio.com/ //php linux博客

http://www.purfeel.com/tracking/?n=Symfony&p=2

http://www.leakon.com/archives/category/symfony

http://sf.thecodecentral.com/askeet_5 //用户登陆

http://www.symfony-project.org/api/1_4/ //symfony1.4 api

国外symfony博客:
www.nacho-martin.com/category/symfony
http://www.nacho-martin.com/dynamic-embedded-forms-in-symfony //内嵌表单(1对多)
http://fabien.potencier.org/ //symfony首席开发师的BLOG
http://snippets.symfony-project.org/ //symfony代码片断


http://www.noupe.com/tools/100-essential-web-development-tools.html //web开发工具
http://www.balsamiq.com/ //编辑工具

插件
http://www.symfony-project.org/plugins/sfThumbnailPlugin //传上图片后切图

http://snippets.symfony-project.org/snippet/343 //限制上传图片的高度和宽度

http://www.symfony-project.org/plugins/sfCaptchaGDPlugin//验证码插件

http://www.symfony-project.org/doctrine/1_2/en/06-Working-With-Data //DQL api

http://symfonians.net/ //开源项目

http://xheditor.com/ //另一款看似比kindeditor还强大的富文本

http://zhg-grj.spaces.live.com/blog/ //android开发极jquery

http://www.itlearner.com/code/ //IT学习者技术文档  里面的js效果很好

http://html5-china.appspot.com/category/school //html5

http://www.qianduan.net/very-useful-collection-of-the-file-upload-script.html 非常有用的文件上传脚本

Last Updated on Saturday, 04 June 2011 12:39
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
The Best Git guidbook - Chinese.pdf & cheatsheet PDF Print E-mail
Written by Leon Qiu   
Tuesday, 31 May 2011 00:02

Git cheatsheet

The best Git Guidbook - Chinese - pdf

Last Updated on Tuesday, 31 May 2011 00:08
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Zend_Db用法速查 PDF Print E-mail
Written by Administrator   
Thursday, 26 May 2011 09:56

点击查看大图:

Last Updated on Thursday, 26 May 2011 10:01
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Why Chinese social networking sites are not available in English PDF Print E-mail
Written by Administrator   
Tuesday, 24 May 2011 11:51

We constantly hear about Facebook wanting to enter China, but how about the possibility of Chinese social networks opening up to the rest of the world?

Just to make things clear, Chinese social networks are NOT blocked, banned or censored outside of the country. They are simply not available in English, which is an obstacle that hinders non-Chinese speaking users from registering and using the service, and in this case even Google Translate might not be able to help.

As much as Facebook wants to connect to the 470 million Internet users in China, I’m sure that it’s equally appealing for Chinese social networks to tap into the billions of Internet users from the rest of the world.

 

为什么中国社会化网络不提供英文服务

Question is, what’s stopping them? Let’s try to break down the probable reasons why:

Is it Worth it?

According to the Council of Economic Development, American companies lose $2 billion per year because they lack cross-cultural skills and turning the tables around, it would naturally be similar for Chinese companies trying to reach out to the rest of the world.

It goes beyond the simple translation of the site’s contents because being openly available to non-Chinese speaking users entails making promotion and marketing, customer support and app development available in English as well.

For Chinese Internet startups, it won’t come as a surprise that most (if not all) are limited to the Chinese but when it comes to two of the hottest Chinese social networking sites today — Sina Weibo and RenRen - it’s rather surprising that neither offer their services in English.

The bigger question here may be: is it worth it? I would say definitely but not without carefully studying the scenario first. Despite the success of these social networking sites in China, it is important to remember that what works in one country might not exactly work the same in others.

The Great Firewall of China

China is still behind the infamous Great Firewall, the system that filters and censors websites with politically sensitive content. As such, popular social networks such as Facebook and Twitter are still blocked in the country.

Just like Facebook treading carefully in regard to its China entry, even reportedly considering blocking off some content specifically in China, it is possible that Chinese social networks are also considering a similar strategy to tap into English speaking users.

There are laws and constitutions governing other countries that protect Internet freedom, which require sites to be completely open — something Chinese Internet companies might not be able to adhere to.

Baidu and China were recently sued for blocking off search results in the US. Although more likely than not, nothing is going to happen or change with Baidu, it can still be a huge headache for the Chinese to have to deal with these kinds of issues once they actively promote to the non-Chinese.

English… or Non-Chinese Users.

As I previously mentioned, localization of Chinese social networking sites go far beyond translation. It actually focuses on local trends and policies that really matter to the Chinese. The reason a lot of Western Internet companies fail in China is because they weren’t local enough.

I’m merely highlighting the fact that users of Chinese social networking sites CAN use English, which makes me believe that the issue is not so much about them being in English but them being used by non-Chinese users. So maybe, beyond the established Great Firewall, the Chinese have developed a sense of discipline when using Chinese social networks. Over the years, the Chinese have instituted a formidable culture of self-censorship mainly because in one way or another, they believe in its value and are still able to enjoy the Internet peacefully despite the restrictions.

While it’s true that a lot of Chinese netizens are openly against the Internet censorship, based on results, and the numbers don’t lie, it is still being accepted and used by majority of the Chinese. 140 million users for Sina Weibo and 31 million for RenRen — that’s pretty remarkable considering these sites are only limited to people who speak Chinese.

The Western Social Networks

Facebook and Twitter have been dominating the world one country at a time and it would be a pretty daunting yardstick for Chinese social networks to reach that level of worldwide superiority.

Take for example Hong Kong or Taiwan, countries that are populated with Chinese, where Sina Weibo and Twitter, Facebook are available. It is evident in those countries that despite the availability of the “localized” Chinese social networking sites, the western counterparts still dominate — and chances are, this will be the same for the rest of the world.

The very essence of a social network not only lies within the number of active users but the social graphs it can get hold of. It would be a shame for the dominating Chinese social networking sites to have the same fate as Friendster or MySpace in countries outside of China. While the guaranteed couple of million users from the curious non-Chinese might look good in terms of the total number of registered users, the level of engagement of the active users might end up being insignificant and in some cases, potentially embarrassing.

This is of course not to say that Chinese social networks have no spice — in fact, we’ve reported before that Sina Weibo is outshining Twitter by innovating more and rolling out unique features, but of course given the already-established network of these Western social networking sites, it would be a real challenge for the Chinese counterparts to penetrate.

The Potential

With several Chinese social networking sites filing for IPO, it wouldn’t be surprising if one day one or two do become available to the rest of the world but now, or even soon, is highly unlikely.

I believe in the ingeniousness of the Chinese. “Copy first, innovate later” is something that works for them and when it comes to the time when the best Chinese social networks become ready to face the popular English social networks, it will definitely pose a real threat. My money is on Sina Weibo.

Last Updated on Tuesday, 24 May 2011 12:16
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Mac mail 客户端怎么了? PDF Print E-mail
Written by Administrator   
Friday, 20 May 2011 11:25

越是在重要得时候越出问题。给客户发邮件,带有一个小小得附件,翻来覆去发了4、5遍,客户都说没有附件!Mac mail客户端处理附件得方式怎么回事?我觉得发送是肯定成功了,但为什么让人就找不到呢?我又不能跟客户说是客户笨,只能从gmail web上又发了一遍,希望这次成功吧!妈的,这次可能耽误了大事!

 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Twitter浪费我不少时间! PDF Print E-mail
Written by Administrator   
Thursday, 19 May 2011 22:27

rockwell给我一个测试题目,抓10条public timeline得item, 然后存数据库里面就行了。

要求是不许用第三方得库,自己写就好了。

草草弄了一个,传上服务器,怎么也不行,后来想起来,国内服务器屏蔽了twitter,靠。

赶紧又解析域名到国外服务器上,等这个域名生效浪费我时间,不然可以下班前就提交给他们了!

Demo: http://rockwell2.danshenhui.com

Last Updated on Thursday, 19 May 2011 22:41
 
Deprecated: Function split() is deprecated in /home/qiulihong/qiulihong.com/administrator/components/com_comment/class.config.comment.php on line 294
Consider The Lilies Of The Field PDF Print E-mail
Written by Leon Qiu   
Wednesday, 18 May 2011 10:40

Consider The Lilies Of The Field     

Matthew 6:28–29
28“So why do you worry about clothing? Consider the lilies of the field, how they grow: they neither toil nor spin; 29and yet I say to you that even Solomon in all his glory was not arrayed like one of these.

You may think that you must work very hard to provide for yourself and get ahead in life. But God wants you to consider the lilies of the field — they do nothing. They toil not, spin not and struggle not. Yet, they grow and are clothed by God while simply resting and basking in the sunshine of God’s love! And when God clothes them, they look even more glorious than King Solomon, the richest king who ever lived.

Like the lilies of the field, God wants you to let Him take care of providing for your material needs, instead of you striving to do it yourself. When you let go and let Him, you will see Him bless you supernaturally, abundantly and generously!

This is what happened to one of our church members who had been looking for a job. Initially, he received only two calls for interviews after sending out 12 résumés. Refusing to be discouraged, he believed that God wanted to bless him not just with a job, but with a position of influence too.

God was faithful. This church member soon became the business manager of an engineering company even though he had no engineering background. He was offered a very attractive remuneration package and within his first week on the job, was asked to quote on two projects. He knew that this was God’s doing because it was difficult enough just to secure an appointment with contract managers to discuss projects, let alone be asked to quote on not one but two projects. Before long, he was offered the position to run the entire Singapore subsidiary with only one other business development manager. He was then only 25 years old!

My friend, God can do for you what He did for this person. Just believe that if God clothes the lilies and grass of the field, which are here today and gone tomorrow, how much more will He clothe you, His eternal and precious child, with beauty and riches! All He asks is that you cease from your striving, allow Him to take over and just flow with Him!

 
«StartPrev123456NextEnd»

Page 1 of 6