yahoo的fetchr,https://github.com/yahoo/fetchr Fetchr augments applications by allowing the same syntax to be used on the server and client to fetch data. 让你用相同的代码在客户端和服务器端发起获取...
分类:
其他好文 时间:
2014-11-19 20:42:07
阅读次数:
188
作者:zhanhailiang 日期:2014-11-18
Linux在使用一些工具时经常会生成一些以特殊字符开头的文件,如以-开头,此时若使用普通rm,会提示“invalid option”:
[root@~]# rm -\,trail\:-
rm: invalid option -- ','
Try `rm ./-,trail:-' to remove the file `-,tra...
分类:
系统相关 时间:
2014-11-19 11:16:41
阅读次数:
618
我在save方法里的array里放了两个参数,希望一次保存两个字段。save(array('rank_price'=>$price));结果报错:syntax error, unexpected T_DOUBLE_ARROW最后拆分成两次保存,就OK了。应该可以通过事先把要保存的所有字段赋值给一个变...
分类:
其他好文 时间:
2014-11-19 10:52:10
阅读次数:
161
Django运行时出现‘url‘requiresanon-emptyfirstargument的解决办法:参考了stackoverflow里面的一个帖子IstartedusingDjangorelease1.5andgotaproblemwithmyoldcode:
<ahref="{%urlauto.views.viewpostpost.slug%}"><h3>{{post.title}}</h3></a>
Error..
分类:
Web程序 时间:
2014-11-19 02:14:32
阅读次数:
171
作者:zhanhailiang 日期:2014-11-18
Linux在使用一些工具时经常会生成一些以特殊字符开头的文件,如以-开头,此时若使用普通rm,会提示“invalid option”:
[root@~]# rm -\,trail\:-
rm: invalid option -- ','
Try `rm ./-,trail:-' to remove the file `-,tra...
分类:
系统相关 时间:
2014-11-19 01:17:31
阅读次数:
238
linux shell scripts:Syntax error: Bad for loop variable
sh add.sh 报错:
add.sh: 4: Syntax error: Bad for loop variable
代码没有错误,Ubuntu为了加快开机速度,用dash代替bash。
解决办法:取消dash,使用bash:
sudo dpkg-reconfigure dash
选择No选项。...
分类:
系统相关 时间:
2014-11-18 16:01:51
阅读次数:
226
故障现象:SQL> connect scott/scottERROR:ORA-01017: invalid username/password; logon deniedSQL> connect scott/scottERROR:ORA-28000: the account is locked表明:...
分类:
数据库 时间:
2014-11-18 14:41:58
阅读次数:
203
参见博客http://blog.csdn.net/lzflydream/article/details/20570813这上面这么说的,但是大神们说的太高端了我不知道怎么解决 911 : 42000 :java.sql.SQLException: ORA-00911: invalid charac....
分类:
数据库 时间:
2014-11-17 15:44:19
阅读次数:
457
Markdown 的语法的权威介绍是 Daring Fireball 的 Markdown Syntax Documentation,不过有一些 Markdown 的实现对原本的 Markdown 语法作了扩展。本页面仅作为简单的参考,并不是对这个文档的翻译,因此懂英文的都...
分类:
其他好文 时间:
2014-11-17 14:20:31
阅读次数:
154
今天在eclipse中编写pom.xml文件时,注释中的中文被eclipse识别到错误:Invalid byte 1 of 1-byte UTF-8 sequence,曾多次遇到该问题,问题的根源是: The cause of this is a file that is not UTF-8 is ...
分类:
其他好文 时间:
2014-11-17 13:59:48
阅读次数:
191