a programmer
a programmer
-
2010-12-23
c++ runtime symbol lookup error - [C&C++]
c++ runtime symbol lookup error
收藏
Technorati Tags: c++
,rumtime
,symbol lookup error
今天编程遇到问题,我对一个类不加namespace的时候是对的,运行完全正确。可是我加上namespace的时候,编译都对,但是就是运行时... -
2009-11-30
linux debug tool
pstree -p | less
strace -c -p pid -
2009-10-23
debug python script - [Linux]
python -m pdb /usr/local/maui/etc/mgmt/scripts/upgrade_reporting_v1_3_0.py
-
netstat -tuanp | grep 3000
-
2009-10-11
unix network programming
linux % ps -t pts/6 -o pid,ppid,tty,stat,args,wchan
PID PPID TT STAT COMMAND WCHAN
22038 22036 pts/6 S -bash wait4
17870 22038 pts/6 S ./tcpserv01 wait_for_connect
19315 17870 pts/6 S... -
2009-05-05
C++ — Convert int to string - [C&C++]
In order to convert an int (or any other numeric type, e.g., float, double, etc.) to string, you can use:
#include <sstream>
int i = 5;
std::string s;
std::stringstream out;
out << i;
s ... -
2009-04-22
ubuntu 下搭建 nfs 服务 - [Linux]
1、进行NFS服务器端与客户端的安装: sudo apt-get install nfs-kernel-server nfs-common portmap 安装客户端的作用是可以在本机进行NFS服务的测试。 2、配置portmap 两种方法任选一种就可以: (1):sudo emacs /etc/default/portmap 去掉 -i 127.0.0.1 (2)sudo dpkg-reconfigure portmap 运行后选择“否&rd... -
2009-04-22
vmware server 添加磁盘 - [Linux]
从 vmware server 添加一个磁盘 进入虚拟机,运行fdisk, 输入"n", 创建一个主分区(如果选择extened,第三步会出错), 输入“w",保存修改,退出 mkfs.ext3 /dev/sdc1 -
2009-04-04
PostgreSQL数据的导出导入
今天更换公司的开发服务器时用到了这两条命令,做个记录先。
如何导出PostgreSQL数据库中的数据:
$ pg_dump -U postgres -d mydatabase -f dump.sql 导入数据时首先创建数据库再用psql导入:
$ createdb newdatabase
$ psql -d newdatabase -U postgres -f dump.sql -
2009-03-04
How to umount when the device is busy - [Linux]
It happens all the time doesn’t it? You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you...
-
2009-02-25
sources.list - [Linux]
http://hi.baidu.com/aaronmagic/blog/item/424679db0fe07b65d0164eca.html
deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restric... -
2008-12-08
ssh远程执行包含nohup的命令
[root@slz-001 ~]# ssh -l root slz-002 "cat /root/tools/test"
#!/bin/bash
nohup /usr/bin/vmstat 1 | grep 0 >> /tmp/vmstat &
[root@slz-001 ~]#
[root@slz-001 ~]# ssh -l root slz-002 "/root/tools/te... -
b、使用CPAN模块自动安装:
安装前需要先联上线,并且您需要取得root权限。
perl -MCPAN -e shell -
2008-09-29
ubuntu apt-get openssh-server fails - [Linux]
steve@basil:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.... -
2008-09-04
书单"
"perl programming"
"Catalyst" (perl web framework)
"C++ primer" (review)
"Effective C++" (review)
"Inside C++"
"Design Pattern"
... -
2008-09-02
packages -- perl - [perl]
package in perl == namespace in C++ -
2008-09-01
array of array - [perl]
Data Structures (Programming Perl)
for $i (1..10) {
@array = somefunc($i);
$AoA[$i] = @array; # WRONG!
}
for $i (1..10) {
&nb... -
2008-09-01
根据value对hash表排序 - [perl]
1.依据值对Hash进行排序
根据value对hash排序,如下例:
sub test
{
$score{$b} <=> $score{$a}
}
my %score = (”barney”=>54, “fred”=>205, “dino”=> 30);
my @winners = s... -
2008-08-28
BEP 37 ADV - Presentations: Question and Answer (Part 2) - [english]
check if answer is sufficient Does that answer your question?
Is that ok?
Does that make sense?
clarification Let me check if I understand. Are you saying that ...
avoid answering by state a general sta... -
2008-08-28
BEP 36 ADV - Presentations: Question and Answer (Part 1) - [english]
How to open an Q&A section Many thanks for your attention. So, now I'm very interested in hearing your comments.
Refer to an early point (used by audience)Going back to what you were saying. You are saying ..
What exactly do y... -
2008-08-27
BEP 33 ADV - Presentations: Closing Down & Summarizing - [english]
Give your audience a clear signal that you are going to finish. So, as we can see, ...(Summary)
That is all what I have to say about this topic at this moment.
Right, that ends my last section of my talk.
Summari... -
2008-08-26
BEP 102 - Presentations: Linking your Ideas - [english]
The secret to hold audience's attention:
1. find out about the audience and what they want to know
2. Plan what you are going to say and say it clearly and concisely
3. Make sure to signpose thoughout presentation ... -
Thank you and welcome to this presentation.
My name is ... (who you are? you title, you job. Why are you qualified for this speach?)
use “we", "us", "everybody" as many as possible
* greet... -
续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.
下面这种情况不work
($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \
... -
续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.
下面这种情况不work
($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \
... -
续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.
下面这种情况不work
($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \
... -
2008-06-14
初识 web service,随手笔记 - [web service]
两篇入门的介绍文章:
Deploying Web services with WSDL: Part 1: Introduction to Web services and WSDLDeploying Web services with WSDL, Part 2: Simple Object Access Protocol (SOAP)
-
2008-06-09
C++ Traits (转载) - [C&C++]
今天看"modern c++ design"的时候发现自己竟然又把以前好不容易弄懂的Traits技术给忘记了,真是...又重新学习了一下,赶紧记下来。
Traits技术可以用来获得一个 类型 的相关信息的。 首先假如有以下一个泛型的迭代器类,其中类型参数 T 为迭代器所指向的类型:
template <typename T>
class myIterator
{
...
};... -
2008-06-08
The C++ Pimpl - [C&C++]
The C++ Pimpl
by Sobeit Void
06-01-2001
Introduction Despite the similarity, the C++ Pimpl has nothing to do with sex. The C++ Pimpl is a short form for "Private Implementation" idiom, and its usage is populari... -
2008-06-02
简单的 vim 配置(转) - [Linux]
在终端下使用vim进行编辑时,默认情况下,编辑的界面上是没有显示行号、语法高亮度显示、智能缩进等功能的。为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc。
在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本,所以,一般情况下把.vimrc文件创建在当前用户的根目录下比较方便,即创建的命令为:
$vi ~/.vimrc
设置完后
...







