- 博客(28)
- 资源 (65)
- 收藏
- 关注
原创 实现《C++程序设计语言(特别版)》第6章 表达式和语句 - 桌面计算器 - Linux
这个实现只是一个思路,需要容错和优化。表达式语法分析如下: ***************** * program: * END * expr_list END * expr_list: * expression PRINT // PRINT is ; * expression PRINT expr_list * expres
2012-06-27 23:35:35 4548 2
原创 VIM+CTAGS+TAGLIST IN WINDOWS
DOWNLOADS:ctags - http://ctags.sourceforge.net/taglist - http://www.vim.org/scripts/script.php?script_id=273Extract ctags.exe from ctags58.zip to "C:\Windows\system32\" folder, so that
2012-06-26 11:37:33 1887
原创 BASH脚本(ok2makefile):生成带有makefile的C++ "Hello world"程序
这个脚本也是闲着没事儿准备以后用的,应用场景:“在Linux下开发C++项目的时候,有时候需要临时创建一个简单的C++工程来尝试一些用法,但是全新编写一个带有makefile的hello world还是需要几分钟时间的,也是个反复的活儿,要是有个命令能够一下子生成一个目录,里边含有main.cc和makefile就好了。”如果你也会经常遇到这种场景,到可以试试ok2makefile.sh脚本,
2012-06-24 21:07:46 1584
原创 bash 脚本写的“抓阄程序”(随机数)
刚才想着抓阄,又懒着去找笔,就顺手写了一个抓阄的脚本:使用前创建一个抓阄项目的文件,比如,我想以后着重研究“C/C++"、"Java"、"Python"中的一个,首先创建一个随便什么名字的文件:xiwang@ubuntu:~/Dev/DrowLots$ cat records.txtC/C++JavaPython然后运行脚本:xiwang@ubu
2012-06-16 22:35:02 3715
原创 简单的、智能搜索源文件的 Makefile(随意扩展bin或lib)
上一期: 《简单的、智能搜索源文件的 Makefile》下载代码:http://download.csdn.net/detail/wxqee/4377256包括《简单的、智能搜索源文件的 Makefile》和本期《简单的、智能搜索源文件的 Makefile(随意扩展bin或lib)》的代码。过了一天,过来写一个模版,其预期的场景是这样的:同一个工程下,需要编译一
2012-06-16 20:21:33 1528
原创 Linux SSH 服务器的安装和启动
在Ubuntu Linux中,安装 SSH 和 SSH SERVER 可以使用命令:sudo apt-get install ssh openssh-server启动 SSH SERVER 命令:/etc/init.d/ssh start相关下载:PUTTY及其维护的产品: http://www.putty.org/
2012-06-16 00:17:21 3169
原创 简单的、智能搜索源文件的 Makefile
如果,你正在为寻找一个通用简易的、智能搜索源文件的 Makefile 而奔波的话,那么下边的Demo你有可能看得上它:例如,你有一个目录,这个目录里目前只是生成一个二进制文件,其源码全部在这里,那么你可以尝试第一个版本的 Makefile# Makefile, 2012-06-15 T1738# TODO# ----------------------------------
2012-06-15 18:06:11 2038
原创 Trim a string with C++
Trim a string with C++ demo code following: // TrimStringDemo.cpp#include #include using namespace std;string LTrimString(const string str){ int h = 0, t = str.size(); while (h < t && (
2012-06-15 16:58:07 1204
转载 如何让linux启动后自动进入图形界面或不让它进入图形界面?
转自:http://www.cnblogs.com/helloBreak/archive/2011/09/03/2165897.html方法一:To 3 字符[root@15 system]# rm -rf /etc/systemd/system/default.target[root@15 system]# ln -s /lib/systemd/system/runlevel3
2012-06-14 22:20:11 13422
原创 我的Linux $PS配置(命令行提示样式)
配置~/.bashrcPS1='\e[33m[\u@\h:\w]\e[0m\n$'PS2='> 'PS4='+ '显示效果:[xiwang@Linux01:~/tasks/]$
2012-06-14 09:58:03 1512
原创 XML相关的一些技术
自学网站: http://www.w3school.com.cn/x.asp知识框架【XML】指扩展标记语言【XSL】指扩展样式表语言。【XSLT】指XSL转换,比如使用XSLT将XML转换为XHTML文档。【XSL-FO】指可扩展样式表语言格式化对象(Extensible Stylesheet Language Formatting Objects),可以使用XSL-FO对输出的
2012-06-13 17:15:37 760
原创 使用vimdiff替换默认的'svn diff'
手动配置第一步,配置 .vimrc目标:vimdiff可以快速wrap很长的一行信息自动换行" ~/.vimrc"BEGIN for vimdifffunc Wrap() set wrapendfuncmap :call Wrap() :call Wrap()imap :call Wrap() :call Wrap()"END for vimdiff
2012-06-12 13:32:22 2995
转载 Linux常用命令大全
// Linux常用命令大全.txt//// @history// *2012-6-11 01:40PM init, 转自 http://www.php100.com/html/webkaifa/Linux/2009/1106/3485.html// 系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2)
2012-06-11 13:47:48 782
原创 Everything search engine - Everything本地文件搜索工具
和大家分享一个工具Everything, 下载链接:http://www.voidtools.com/.但是,Everything究竟可以做啥?总体来说,就是一个工具,它可以搜索本地的文件和文件夹,关键字就是文件名字。当然,它支持通配符,比如'DSC_00*.jpg'是可行的。下面看看官网的描述: Everything search engineLocate files
2012-06-09 13:42:54 2725
转载 [C/C++] Using `getopt' in c/c++
Using `getopt' in c/c++Could not get the real original version for the examples, list one of them first, usefully and well tested.ExamplesExample 1// getopt_example.cpp#include int m
2012-06-08 14:00:08 1176
原创 Process options from command line in BASH
Have you ever met thus kind of requirement:Use BASH to write a script with options to implements some functions??For example, here is the requirement.. "We need a script in BASH to get its options
2012-06-08 13:07:45 834
原创 Tracebin in C++
Core filestracebin.h// tracebin.h#ifndef _TRACE_BIN#define _TRACE_BIN#include #include extern int ftracebin(FILE* pf, const char* data, int length);extern int tracebin(const char* data,
2012-06-08 11:54:38 1059
原创 How to Use `strace` to Trace the System Call in Linux
Howto:Use `strace` to trace system calls for a runtime app:# @option -T 显示每一调用所耗的时间.# @option -t 在输出中的每一行前加上时间信息.# @option -p 追踪某一个PID的进程.# @option -x 无法显示的字符,用16进制输出.> strace -T -t -p -
2012-06-08 11:47:22 1055
原创 Configuration for Linux command `screen`
Touch a file .screenrc to $HOME, then copy the following configuration to .screenrc file.Try the affects by command `screen`: > screen## ~/.screenrc## Show Time and List of Windows within the
2012-06-08 11:43:37 928
原创 bash 脚本实现的配置文件(ini/inc.sh)的读写操作
这两个bash 函数是以前写的,目的是对一个已经存在的ini配置文件进行修改和读取,当然实在Linux Bash Shell下进行的:例如一个配置文件 config.ini# config.ininame = xiwangage = 27执行脚本,修改name=xiwang为name=Xiaoqiang Wang(Eric),期望的输出:xiwang@ubuntu:~
2012-06-08 10:00:47 9559
原创 Linux下对已有项目快速打RPM包(只需编辑XML文件)
期间公司在做Migration的工作,经常遇到这样的场景:需要对现有的二进制第三方库和头文件打包成RPM包,以便临时测试用或者第三方库管理。但是,修改SPEC文件并编写Makefile是个郁闷的事情,总是重复去做,对RPM新手来说是个灾难。于是乎,小强就创建了一个开源项目RPMBuilder来完成这件事相对郁闷的事情,理由很简单,每个童鞋只要下载、编译、安装RPMBuilder以后,就
2012-06-07 23:17:32 2879
原创 Makefile - Build CPPs with each one has a main for apps
There always are cpp files and each of them has a main function as a standalone app each. For example, in my folder DesignPatterns I have filesfactory_example.cpp and command.cpp, they ready to be b
2012-06-07 23:11:13 1041
原创 Design Patterns - Factory Method - Example 1
// factory_method_example.cpp, 2012-06-05 T2146// @history // 2012-06-05 init #include #include using namespace std;// interface Productclass Product { public: virtual string getName
2012-06-07 23:09:47 602
原创 Design Patterns - Decorator - Example 3
#include #include using namespace std;class I { public: virtual ~I(){} virtual void doIt() = 0;};class A : public I { public: ~A() { cout << "A dtor" << endl; }
2012-06-07 23:09:12 604
原创 Design Patterns - Decorator - Example 2
#include #include using namespace std;class AbstractStuff { public: virtual string show() { return "Unknown Stuff"; } protected: string discription;};class BenzCar : pu
2012-06-07 23:08:37 574
原创 Design Patterns - Decorator - Example 1
#include #include using namespace std;// interface Beverageclass Beverage { public: virtual string getDescription() { if (description == "") { description = "Unknown Beverage
2012-06-07 23:07:32 551
原创 Design Patterns - Abstract Factory - Example 1
#include #include using namespace std;// interface AbstractProductAclass AbstractProductA { public: virtual string toString() = 0;};// interface AbstractProductBclass AbstractProduct
2012-06-07 18:44:54 579
原创 Design Patterns - Command - Example 1
// command_example.cpp#include #include using namespace std;// interface Commandclass Command { public: virtual void execute() = 0;};class NoCommand : public Command { public: vo
2012-06-07 16:35:39 547
PuTTY Color Theme
2011-08-13
web2pdf - 强力推荐
2011-08-13
学习Emacs 编辑环境
2011-08-06
GNU Makefile -- E-Book in .doc --
2011-04-24
Linux GDB Debug -- Ebook in .doc --
2011-04-24
Advanced CORBA Programming with C++
2010-11-02
Beginning Unix(PDF)
2010-07-28
UNIX Shells By Example
2010-07-17
SQLiteDB的PHP实现
2010-06-16
javascript 面向对象程序设计博客文章
2010-06-12
cakephp php-framework
2010-06-11
zoop-1.50-skeleton.zip
2010-06-10
Ruby on Rails 教程 - 201406
2014-06-08
Junction v1.06
2014-02-10
sendmail - SRC - C - 2013/04
2014-01-16
Tracebin 源代码(自己写的工具类)(wxTracebin_20130203T0526.tar)
2013-02-03
Tracebin 源代码(自己写的工具类)
2013-02-02
C++ - Tracebin Utility - A binary tracer
2013-02-02
问题步骤记录器 Win7
2013-02-02
XML2XSD TOOL - TRANG
2013-01-24
Notepad++ Plugin - NppExec - NppExec_0432_dll_Unicode_20130109.zip
2013-01-23
ThinkPHP 3.1.2 - PHP的开发框架MVC - 含Core,Extend,Example
2012-11-26
表达式求值C++实现(类似编译器)
2012-06-27
简单的、智能搜索源文件的 Makefile(随意扩展bin或lib)
2012-06-16
简单的、智能搜索源文件的 Makefile
2012-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人