• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
一蓑烟雨
C/C++,Linux,语音技术
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年2月16日
查看历史操作记录(.bash_history)、修改文件时间
摘要: 查看历史操作记录:1、more ~/.bash_history修改文件时间:1、stat XXX.txt 查看文件时间状态;2、vi XXX.txt 修改文件内容,保存;3、touch -d "2013-02-02 15:14:00" XXX.txt。 阅读全文
posted @ 2013-02-16 09:43 lovemu 阅读(11318) 评论(0) 推荐(0)
2013年2月6日
创建yii第一个应用(gii)
摘要: 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__). 阅读全文
posted @ 2013-02-06 21:45 lovemu 阅读(4664) 评论(0) 推荐(0)
2013年2月5日
Mysql数据库操作
摘要: 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 ; 阅读全文
posted @ 2013-02-05 11:45 lovemu 阅读(244) 评论(0) 推荐(0)
2013年2月4日
PHP初学
摘要: 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 阅读全文
posted @ 2013-02-04 15:36 lovemu 阅读(230) 评论(0) 推荐(0)
2013年1月30日
智能指针:scoped_ptr and shared_ptr
摘要: 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 < 阅读全文
posted @ 2013-01-30 09:55 lovemu 阅读(1040) 评论(0) 推荐(0)
2013年1月29日
时间与日期
摘要: 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 << 阅读全文
posted @ 2013-01-29 17:16 lovemu 阅读(398) 评论(0) 推荐(0)
容器
摘要: 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 阅读全文
posted @ 2013-01-29 16:25 lovemu 阅读(243) 评论(0) 推荐(0)
2013年1月28日
lexical_cast组件
摘要: 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 阅读全文
posted @ 2013-01-28 14:44 lovemu 阅读(389) 评论(0) 推荐(0)
2012年12月27日
fstream--文本数据迁移
摘要: 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) 阅读全文
posted @ 2012-12-27 17:05 lovemu 阅读(382) 评论(0) 推荐(0)
2012年12月13日
解决:缺少aclocal、autoconf、automake
摘要: 下载三个包: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 阅读全文
posted @ 2012-12-13 17:30 lovemu 阅读(26485) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3