博客园 - lovemu
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=83270
2013-02-16T01:42:32Z
lovemu
https://www.cnblogs.com/huanghuang/
feed.cnblogs.com
https://www.cnblogs.com/huanghuang/archive/2013/02/16/2913138.html
查看历史操作记录(.bash_history)、修改文件时间 - lovemu
查看历史操作记录:1、more ~/.bash_history修改文件时间:1、stat XXX.txt 查看文件时间状态;2、vi XXX.txt 修改文件内容,保存;3、touch -d "2013-02-02 15:14:00" XXX.txt。
2013-02-16T01:43:00Z
2013-02-16T01:43:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】查看历史操作记录:1、more ~/.bash_history修改文件时间:1、stat XXX.txt 查看文件时间状态;2、vi XXX.txt 修改文件内容,保存;3、touch -d "2013-02-02 15:14:00" XXX.txt。 <a href="https://www.cnblogs.com/huanghuang/archive/2013/02/16/2913138.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/02/06/2908164.html
创建yii第一个应用(gii) - lovemu
1、…\yii\framework\yiic webapp D:\wamp\www\mimscmgr …\yii\framework\yiic --- 为解压后的目录,D:\wamp\www\mimscmgr ---服务器目录 执行完,于是就在mimscmgr下创建了一个最基本的应用。2、在protected\config\main.php中,修改数据库连接 ‘db’因为使用mysql数据库,所以修改如下:/* 'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__).
2013-02-06T13:45:00Z
2013-02-06T13:45:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、…\yii\framework\yiic webapp D:\wamp\www\mimscmgr …\yii\framework\yiic --- 为解压后的目录,D:\wamp\www\mimscmgr ---服务器目录 执行完,于是就在mimscmgr下创建了一个最基本的应用。2、在protected\config\main.php中,修改数据库连接 ‘db’因为使用mysql数据库,所以修改如下:/* 'db'=>array('connectionString' => 'sqlite:'.dirname(__FILE__). <a href="https://www.cnblogs.com/huanghuang/archive/2013/02/06/2908164.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/02/05/2892768.html
Mysql数据库操作 - lovemu
1、insert into mc_message_his_0205 select * from mc_message_his_0201 where infoid='3392'; 复制一张表中的数据到另外一张表中2、update dmpush_message_info set sys_flag=0 where requestid='1354778645234690'; 更新表中字段3、delete from mc_file_num where requestid='93058029135'; 删除表中某条记录4、drop table XXXXX ;
2013-02-05T03:45:00Z
2013-02-05T03:45:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、insert into mc_message_his_0205 select * from mc_message_his_0201 where infoid='3392'; 复制一张表中的数据到另外一张表中2、update dmpush_message_info set sys_flag=0 where requestid='1354778645234690'; 更新表中字段3、delete from mc_file_num where requestid='93058029135'; 删除表中某条记录4、drop table XXXXX ; <a href="https://www.cnblogs.com/huanghuang/archive/2013/02/05/2892768.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/02/04/2891883.html
PHP初学 - lovemu
1、windows环境下wampserver的配置教程http://youchunyan5.blog.163.com/blog/static/5896062020123474456352/2、UltraEdit环境下,PHP简单环境配置http://blog.sina.com.cn/s/blog_695d0b3001017hoy.html3、PHP开发基础入门(PHP基础语法入门)http://developer.51cto.com/art/200810/94162.htm
2013-02-04T07:36:00Z
2013-02-04T07:36:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、windows环境下wampserver的配置教程http://youchunyan5.blog.163.com/blog/static/5896062020123474456352/2、UltraEdit环境下,PHP简单环境配置http://blog.sina.com.cn/s/blog_695d0b3001017hoy.html3、PHP开发基础入门(PHP基础语法入门)http://developer.51cto.com/art/200810/94162.htm <a href="https://www.cnblogs.com/huanghuang/archive/2013/02/04/2891883.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/01/30/2882461.html
智能指针:scoped_ptr and shared_ptr - lovemu
1 // boost_ptr.cpp : 定义控制台应用程序的入口点。 2 //智能指针--scoped_ptr,shared_ptr 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <string> 7 #include <boost/scoped_ptr.hpp> 8 #include <boost/shared_ptr.hpp> 9 class ptr_test10 {11 public:12 ptr_test()13 {14 std::cout <
2013-01-30T01:55:00Z
2013-01-30T01:55:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1 // boost_ptr.cpp : 定义控制台应用程序的入口点。 2 //智能指针--scoped_ptr,shared_ptr 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <string> 7 #include <boost/scoped_ptr.hpp> 8 #include <boost/shared_ptr.hpp> 9 class ptr_test10 {11 public:12 ptr_test()13 {14 std::cout < <a href="https://www.cnblogs.com/huanghuang/archive/2013/01/30/2882461.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/01/29/2881750.html
时间与日期 - lovemu
1 // timer.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <boost/timer.hpp> 7 #include <boost/progress.hpp> 8 #include <boost/date_time.hpp> 9 10 using namespace std;11 /*记时器*/12 void timer()13 {14 boost::timer t;15 cout <<
2013-01-29T09:16:00Z
2013-01-29T09:16:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1 // timer.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <boost/timer.hpp> 7 #include <boost/progress.hpp> 8 #include <boost/date_time.hpp> 9 10 using namespace std;11 /*记时器*/12 void timer()13 {14 boost::timer t;15 cout << <a href="https://www.cnblogs.com/huanghuang/archive/2013/01/29/2881750.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/01/29/2881643.html
容器 - lovemu
1 // container.cpp : 定义控制台应用程序的入口点。 2 //any,保存具有不同值类型的单个值的一种安全、泛型的容器,来自 Kevlin Henney. 3 //array - 兼容STL的容器,是固定大小的数组的包装,来自 Nicolai Josuttis. 4 //multi_arry -多维数组 5 #include "stdafx.h" 6 #include <string> 7 #include <vector> 8 #include <iostream> 9 #include <boost/any.h
2013-01-29T08:25:00Z
2013-01-29T08:25:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1 // container.cpp : 定义控制台应用程序的入口点。 2 //any,保存具有不同值类型的单个值的一种安全、泛型的容器,来自 Kevlin Henney. 3 //array - 兼容STL的容器,是固定大小的数组的包装,来自 Nicolai Josuttis. 4 //multi_arry -多维数组 5 #include "stdafx.h" 6 #include <string> 7 #include <vector> 8 #include <iostream> 9 #include <boost/any.h <a href="https://www.cnblogs.com/huanghuang/archive/2013/01/29/2881643.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2013/01/28/2879932.html
lexical_cast组件 - lovemu
1 //强制类型转换 2 #include "stdafx.h" 3 #include <iostream> 4 #include <string> 5 #include <boost/lexical_cast.hpp> 6 7 using namespace std; 8 9 int _tmain(int argc, _TCHAR* argv[])10 {11 string str_int="520"; 12 string str_double="520.2314";13 const double
2013-01-28T06:44:00Z
2013-01-28T06:44:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1 //强制类型转换 2 #include "stdafx.h" 3 #include <iostream> 4 #include <string> 5 #include <boost/lexical_cast.hpp> 6 7 using namespace std; 8 9 int _tmain(int argc, _TCHAR* argv[])10 {11 string str_int="520"; 12 string str_double="520.2314";13 const double <a href="https://www.cnblogs.com/huanghuang/archive/2013/01/28/2879932.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/12/27/2836030.html
fstream--文本数据迁移 - lovemu
1 // ifile_ofile_test.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 #include <iostream>10 #include <fstream>11 #include <string>12 13 int move_data(const std::string _ifilename, const std::string _ofilename)
2012-12-27T09:05:00Z
2012-12-27T09:05:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1 // ifile_ofile_test.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 9 #include <iostream>10 #include <fstream>11 #include <string>12 13 int move_data(const std::string _ifilename, const std::string _ofilename) <a href="https://www.cnblogs.com/huanghuang/archive/2012/12/27/2836030.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816741.html
解决:缺少aclocal、autoconf、automake - lovemu
下载三个包:autoconf-2.68.tar.bz2、automake-1.11.1.tar.bz2、m4-1.4.14.tar.bz21、su - root2、tar xjf XXXXX.tar.bz2 3、cd m4/4、./configure make make install5、cd autoconf/6、./configure make make install7、cdautomake/8、./configure make make install9、exit
2012-12-13T09:30:00Z
2012-12-13T09:30:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】下载三个包:autoconf-2.68.tar.bz2、automake-1.11.1.tar.bz2、m4-1.4.14.tar.bz21、su - root2、tar xjf XXXXX.tar.bz2 3、cd m4/4、./configure make make install5、cd autoconf/6、./configure make make install7、cdautomake/8、./configure make make install9、exit <a href="https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816741.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816710.html
ACE问题记录 - lovemu
1、ACE-6.X 版不支持ACE_static_cast宏,而ACE-5.5是支持的,在强制类型转换时直接用static_cast。
2012-12-13T09:18:00Z
2012-12-13T09:18:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、ACE-6.X 版不支持ACE_static_cast宏,而ACE-5.5是支持的,在强制类型转换时直接用static_cast。 <a href="https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816710.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816690.html
Mysql问题记录 - lovemu
1、SELECT k.imei,p.imsi,n.userid, m.report_type,m.report_time,k.result_code FROM MC_MESSAGE_INFO t,MC_MESSAGE_HIS_1221 k, MC_PHONE_INFO p, MC_MESSAGE_REPORT_1221 m,MC_DEVICETOKEN_MAP_p99999999 n WHERE t.infoid=k.infoid AND k.msgid=m.msgid AND k.imei=p.imei AND p.imei=n.imei AND t.requestid = ‘6766875
2012-12-13T09:06:00Z
2012-12-13T09:06:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、SELECT k.imei,p.imsi,n.userid, m.report_type,m.report_time,k.result_code FROM MC_MESSAGE_INFO t,MC_MESSAGE_HIS_1221 k, MC_PHONE_INFO p, MC_MESSAGE_REPORT_1221 m,MC_DEVICETOKEN_MAP_p99999999 n WHERE t.infoid=k.infoid AND k.msgid=m.msgid AND k.imei=p.imei AND p.imei=n.imei AND t.requestid = ‘6766875 <a href="https://www.cnblogs.com/huanghuang/archive/2012/12/13/2816690.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796917.html
深入浅出Android:传送数据到新的Activity(BMI) - lovemu
1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.net.Uri; 6 import android.os.Bundle; 7 import android.app.Activity; 8 import android.app.AlertDialog; 9 import android.content.ClipData.Item; 10 import android.content.DialogInterface; 11 imp...
2012-11-30T15:41:00Z
2012-11-30T15:41:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.net.Uri; 6 import android.os.Bundle; 7 import android.app.Activity; 8 import android.app.AlertDialog; 9 import android.content.ClipData.Item; 10 import android.content.DialogInterface; 11 imp... <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796917.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796836.html
深入浅出Android:加入新的Activity(BMI) - lovemu
1、如图2、Report.java 1 package example.bmi; 2 import android.app.Activity; 3 import android.os.Bundle; 4 5 6 public class Report extends Activity { 7 @Override 8 protected void onCreate(Bundle savedInstanceState) { 9 super.onCreate(savedInstanceState);10 setContentView(R.layou...
2012-11-30T13:39:00Z
2012-11-30T13:39:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、如图2、Report.java 1 package example.bmi; 2 import android.app.Activity; 3 import android.os.Bundle; 4 5 6 public class Report extends Activity { 7 @Override 8 protected void onCreate(Bundle savedInstanceState) { 9 super.onCreate(savedInstanceState);10 setContentView(R.layou... <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796836.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796478.html
深入浅出Android:添加菜单(BMI) - lovemu
1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.net.Uri; 6 import android.os.Bundle; 7 import android.app.Activity; 8 import android.app.AlertDialog; 9 import android.content.ClipData.Item; 10 import android.content.DialogInterface; 11 imp...
2012-11-30T08:40:00Z
2012-11-30T08:40:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.net.Uri; 6 import android.os.Bundle; 7 import android.app.Activity; 8 import android.app.AlertDialog; 9 import android.content.ClipData.Item; 10 import android.content.DialogInterface; 11 imp... <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/30/2796478.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/29/2795502.html
深入浅出Android:初识Intent(BMI) - lovemu
1、strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 4 <string name="app_name">BMI</string> 5 <string name="height">身高(cm)</string> 6 <string name="weight">体重(kg)</string> 7 <string
2012-11-29T15:11:00Z
2012-11-29T15:11:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 4 <string name="app_name">BMI</string> 5 <string name="height">身高(cm)</string> 6 <string name="weight">体重(kg)</string> 7 <string <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/29/2795502.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/29/2795025.html
深入浅出Android:增加对话框功能(BMI) - lovemu
1、strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 4 <string name="app_name">BMI</string> 5 <string name="height">身高(cm)</string> 6 <string name="weight">体重(kg)</string> 7 <string
2012-11-29T09:21:00Z
2012-11-29T09:21:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、strings.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <resources> 3 4 <string name="app_name">BMI</string> 5 <string name="height">身高(cm)</string> 6 <string name="weight">体重(kg)</string> 7 <string <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/29/2795025.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/29/2794826.html
深入浅出Android:重构程序(BMI) - lovemu
1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.os.Bundle; 6 import android.app.Activity; 7 import android.view.Menu; 8 import android.view.View; 9 import android.view.View.OnClickListener;10 import android.widget.Button;11 import android.widget.Ed..
2012-11-29T08:07:00Z
2012-11-29T08:07:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、MainActivity.java 1 package example.bmi; 2 3 import java.text.DecimalFormat; 4 5 import android.os.Bundle; 6 import android.app.Activity; 7 import android.view.Menu; 8 import android.view.View; 9 import android.view.View.OnClickListener;10 import android.widget.Button;11 import android.widget.Ed.. <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/29/2794826.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/29/2794699.html
深入浅出Android:纪念人生的第一个android程序(BMI) - lovemu
1、界面设计:activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:l
2012-11-29T07:11:00Z
2012-11-29T07:11:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】1、界面设计:activity_main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:l <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/29/2794699.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/huanghuang/archive/2012/11/01/2749673.html
库安装 - lovemu
一、安装pcre-8.311、./configure --prefix=$HOME/libs/pcre-8.312、make3、make install二、安装nginx-1.2.41、./configure --prefix=$HOME/apps/nginx-1.2.4/nginx --with-pcre=/home/dmpush/libs/pcre-8.31 --with-http_stub_status_module --with-http_gzip_static_module2、make3、make install启动nginx4、cd nginx/sbin5、nginx -s sto
2012-11-01T06:54:00Z
2012-11-01T06:54:00Z
lovemu
https://www.cnblogs.com/huanghuang/
【摘要】一、安装pcre-8.311、./configure --prefix=$HOME/libs/pcre-8.312、make3、make install二、安装nginx-1.2.41、./configure --prefix=$HOME/apps/nginx-1.2.4/nginx --with-pcre=/home/dmpush/libs/pcre-8.31 --with-http_stub_status_module --with-http_gzip_static_module2、make3、make install启动nginx4、cd nginx/sbin5、nginx -s sto <a href="https://www.cnblogs.com/huanghuang/archive/2012/11/01/2749673.html" target="_blank">阅读全文</a>