- 博客(12)
- 资源 (6)
- 论坛 (1)
- 收藏
- 关注
原创 Yii: 返回数据表中指定字段以及添加自定义字段值
在Yii框架中要返回数据表若干字段而不是全部字段的值,方法有两个:1. 写sql: $sql = "select name,gender from t_user";$users = User::model()->findAllBySql($sql);2. 利用AR: CDBCriteria->select$criteria->select=>array('id,Name');$users= Us
2012-12-26 04:12:22
16397
原创 ufcms:从windows/apache转到linux/nginx
关联链接:ufcms:yii based cms system programming notes主要有两点:1. 需要把apache vhost的配置改为nginx vhost的配置2. 需要把.htaccess文件修改为符合nginx语法规则的文件nginx vhost配置参考如下: server { listen 80; server_nam
2012-12-24 13:56:28
2854
3
原创 ufcms:yii based cms system programming notes
Note: ifCMS(originally named as ycms, but was found confliction with another one, so renamed to ifCMS, which simply means CMS created by iefreer) it is targetted to be a high performance-full function
2012-12-22 01:48:31
3731
5
原创 centos5.5启动eclipse报错Gtk-WARNING **: cannot open display: :0.0
通过yum install eclipse*安装了eclipse,执行eclipse报错:Gtk-WARNING **: cannot open display: :0.0原因是没有可用的xwindow. 可能服务器已有应用占用了xwindow解决方法,可在PC上安装cygwin/X11(xinit和xorg-server)然后启动PC上的xserver: startxwiniefreer@ief
2012-12-18 14:00:05
9130
1
原创 设置mysql表名大小写不敏感
在跨平台的程序设计中要注意到mysql的一些系统变量在windows和linux上的缺省值是不同的, 比如mysql表名称的大小写变量.在windows上lower_case_table_names变量的缺省值为1; 在linux上为0; 在mac os上为2; 该变量值的详细定义如下:ValueMeaning0Table and database names are stored on disk
2012-12-18 13:20:12
30943
3
原创 Android: 实现一个multipart/form-data内容类型的提交
在手机上提交用户资料信息(如需要头像、昵称),或者提交一个商品信息(商品图片和标签),或者共享一个图片到服务器上。我们都需要同时处理文件上传和一般类型数据的提交。这个在web应用中很常见也很简单。移动应用可以模拟web页面提交一个HTTP POST请求,其中Content-type为multipart/form-data。具体代码示例如下: HttpClient httpClient =
2012-12-12 20:45:22
24869
2
原创 最好的那些新兴互联网公司所使用的技术架构
下面是一些著名的互联网创业公司所采用的技术架构,可以了解一下商业成功故事背后的技术取向。Big Data in Real-Time at Twitter: http://www.slideshare.net/nkallen/q-con-3770885Instagram architecture: http://www.quora.com/Why-did-Burbn-Instagram-choose
2012-12-12 13:09:11
5113
1
原创 如何POST一个JSON格式的数据给Restful服务
在Android/java平台上实现POST一个json数据:JSONObject jsonObj = new JSONObject();jsonObj.put("username", username);jsonObj.put("apikey", apikey);// Create the POST object and add the parametersHttpPost httpPo
2012-12-10 23:04:32
100656
8
原创 Restful POST请求提交json或www-form-urlencoded数据格式的选择
www-form-urlencoded是POST数据默认编码格式,POST过去的key-value会被编码成QueryString,格式如下:name=test&gender=male&email=iefreer@live.cn服务器端对接受数据的处理也很简单。json一般更多用来返回数据而不是在提交数据的时候使用,通常Restful服务都会支持json/xml格式的返回数据。json对象及其编解
2012-12-10 22:58:02
26849
2
转载 Android: 上传图片到服务器
PHP is used at server side to serve image. Following is a scenario that indicates how image transforms from one format to another format and finally back to original format.Now, you understand that ac
2012-12-07 17:24:03
4894
原创 Redmine2.1邮件发送配置:使用QQ企业邮箱
Redmine的安装环境为CentOS5.5/nginx/passenger配置为:passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17;passenger_ruby /usr/local/bin/ruby;#rails serverserver { listen 80; ser
2012-12-06 15:15:19
32497
转载 Keepalived Master and Backup for Haproxy
Simple master – slave config, depends on haproxy service running.Master:global_defs {notification_email {admin@domain.com}notification_email_from keepalived1@domain.comsmtp_server smtp-server@domain.c
2012-12-06 14:12:00
2122
Android 三维图形演示代码
2009-10-01
Android开发指南中文版
2009-09-11
Atomikos Transactions Guide
2013-03-16
一种新的Windows Mobile软件架构
2009-07-30
windows mobile 程序异常问题定位指南
2009-03-07
我的博客没有更新个人资料?
发表于 2009-09-25 最后回复 2009-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝