kevin55

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年4月3日

摘要: 其实很简单:chattr -R -i xxxxx #xxxxx为你需要修改的文件,这样就可以了。。。下面全不是重点,扯淡。。。。ln: creating hard link `xxx' => `/opt/xx': Operation not permitted摘自http://www.windowslinuxosx.com/q/answers-how-do-i-remove-a-possible-hard-link-directory-to-root-625072.htmlSolutionThe files anddirectoriesin the.linktorootd 阅读全文
posted @ 2014-04-03 20:52 kernel_main 阅读(2150) 评论(0) 推荐(0) 编辑

2014年3月26日

摘要: 1 /************************************************************************/ 2 /* 功能:boost实现串口通信类 */ 3 /* 作者: kernelmain QQ:835609451 */ 4 /* 版本:v0.1 build at 2014.3.25 */ 5 /***... 阅读全文
posted @ 2014-03-26 00:30 kernel_main 阅读(8180) 评论(0) 推荐(1) 编辑

2014年3月23日

摘要: Mac OS效果Windows 效果想写这个东西其实是因为最近要写个命令行的工具,但是有个问题是什么呢?就是传统的那个黑漆漆的窗口看起来很蛋疼。并且完全看不到重点,于是就想起来这么一个东西。相对来说针对*nix的系统方法会比较通用一些,而windows下这个东西需要用到专门的Windows相关的api来实现。下面先说通用的方法:1.*nix (Linux/Unix/Mac OS)1234567891011121314151617181920212223242526272829303132333435363738394041424344//// main.cpp// ColoredHello.. 阅读全文
posted @ 2014-03-23 18:24 kernel_main 阅读(5379) 评论(0) 推荐(0) 编辑

摘要: 取自:http://www.viksoe.dk/code/all_mfc.htm,里面有各种MFC常用的类// Ini.h: interface for the CIni class.//// Written by Bjarke Viksoe (bjarke@viksoe.dk)// Copyright (c) 2000.//// This code may be used in compiled form in any way you desire. This// file may be redistributed by any means PROVIDING it is // not so 阅读全文
posted @ 2014-03-23 14:09 kernel_main 阅读(4225) 评论(0) 推荐(0) 编辑

摘要: 取自:http://www.viksoe.dk/code/all_mfc.htm,里面有各种MFC常用的类// LogFile.h: interface for the CLogFile class.//// Written by Bjarke Viksoe (bjarke@viksoe.dk)// Copyright (c) 2000.//// This code may be used in compiled form in any way you desire. This// file may be redistributed by any means PROVIDING it is / 阅读全文
posted @ 2014-03-23 14:07 kernel_main 阅读(3582) 评论(0) 推荐(0) 编辑

2014年3月5日

摘要: 转:STL是一个标准,各商家根据这个标准开发了各自的STL版本。而在这形形色色的STL版本中,SGI STL无疑是最引人瞩目的一个。这当然是因为这个STL产品系出名门,其设计和编写者名单中,Alexander Stepanov和Matt Austern赫然在内,有两位大师坐镇,其代码水平自然有了最高的保证。SGI STL不但在效率上一直名列前茅,而且完全依照ISO C++之规范设计,使用者尽可放心。此外,SGI STL做到了thread-safe, 还体贴地为用户增设数种组件,如hash, hash_map,hash_multimap, slist和rope容器等等。因此无论在学习或实用中,S 阅读全文
posted @ 2014-03-05 23:57 kernel_main 阅读(2396) 评论(0) 推荐(0) 编辑

摘要: VC++2010下编译STLport,Boost最近在想向Boost转移,努力掌握Boost代码的过程中,STLport版本:5.2.1Boost版本:1.4.6.1 (1.4.7.0也OK)编译器Visual Studio 2010STLPort的编译,选择Microsoft Visual Studio 20010下面的Visual Studio Tools下面的命令行环境编译工具,Visual Studio Command Prompt(2010)。进入STLport目录,运行1234cd E:\HaveFun\STLport\STLport.5.2.1configure.bat msvc 阅读全文
posted @ 2014-03-05 22:43 kernel_main 阅读(1295) 评论(0) 推荐(0) 编辑

2014年2月22日

摘要: 1. cookies和sission的区别和联系:cookie和session机制之间的区别与联系 具体来说cookie机制采用的是在客户端保持状态的方案。它是在用户端的会话状态的存贮机制,他需要用户打开客户端的cookie支持。cookie的作用就是为了解决HTTP协议无状态的缺陷所作的努力. 而session机制采用的是一种在客户端与服务器之间保持状态的解决方案。同时我们也看到,由于采用服务器端保持状态的方案在客户端也需要保存一个标识,所以session机制可能需要借助于cookie机制来达到保存标识的目的。而session提供了方便管理全局变量的方式 session是针对每一个... 阅读全文
posted @ 2014-02-22 15:58 kernel_main 阅读(561) 评论(0) 推荐(0) 编辑

2014年2月13日

摘要: 如有软件开发需求,请留言或在猪八戒网主页留言http://home.zhubajie.com/8506525/,常年接收c、c++(vs2010、RAD studio xe5\RAD studio 2010\c++ builder 2010)\c#\python\linux shell等软件开发类项目,热烈欢迎咨询洽谈。下面是前不久做的一个项目:运行效果图: 阅读全文
posted @ 2014-02-13 22:46 kernel_main 阅读(1018) 评论(0) 推荐(0) 编辑

2014年1月14日

摘要: 1.Project->Options->C++Compiler 右边Build Configuration 选择 Release,点击Apply选择optionset文件(第四步中保存optionset文件)2.Project->Options->C++Linker 右边Dynamic RTL配置为false3.Project->Options->Packages:Build with runtime packages 取消,点击OK4.Project->Configuration Manager->Configuration 选择 Releas 阅读全文
posted @ 2014-01-14 22:19 kernel_main 阅读(541) 评论(0) 推荐(0) 编辑