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的时候,编译都对,但是就是运行时...

    Tag:C++
    lzhshen 发表于16:37:00 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2009-11-30

    linux debug tool

    pstree -p | less

    strace -c -p pid

    Tag:pstree strace debug
    lzhshen 发表于17:39:38 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2009-10-23

    debug python script - [Linux]

    python -m pdb /usr/local/maui/etc/mgmt/scripts/upgrade_reporting_v1_3_0.py

    Tag:debug python
    lzhshen 发表于13:58:53 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2009-10-21

    查看被占用端口 - [Linux]

    netstat  -tuanp | grep 3000

    Tag:netstat port 端口 linux
    lzhshen 发表于11:58:59 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:ps
    lzhshen 发表于00:31:05 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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 ...
    Tag:int string
    lzhshen 发表于11:26:57 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:nfs linux
    lzhshen 发表于16:04:05 | 阅读全文 | 评论 1 | 编辑 | 分享 0
  • 2009-04-22

    vmware server 添加磁盘 - [Linux]

    从 vmware  server 添加一个磁盘 进入虚拟机,运行fdisk, 输入"n", 创建一个主分区(如果选择extened,第三步会出错), 输入“w",保存修改,退出 mkfs.ext3 /dev/sdc1
    Tag:linux vmware disk
    lzhshen 发表于14:16:48 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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
    Tag:postgres
    lzhshen 发表于22:38:47 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...

    Tag:linux
    lzhshen 发表于16:18:11 | 阅读全文 | 评论 0 | 引用1 | 编辑 | 分享 0
  • 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...

    Tag:ubuntu sourcelist
    lzhshen 发表于16:03:41 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:ssh nohunp hang
    lzhshen 发表于17:33:09 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-12-06

    perl 模块安装 - [perl]

    b、使用CPAN模块自动安装: 

    安装前需要先联上线,并且您需要取得root权限。 
    perl -MCPAN -e shell 
    Tag:perl
    lzhshen 发表于09:38:10 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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....
    Tag:apt-get
    lzhshen 发表于13:17:46 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-09-04

    书单"

    "perl programming"

    "Catalyst" (perl web framework)

    "C++ primer" (review)

    "Effective C++" (review)

    "Inside C++"

    "Design Pattern"
    ...
    Tag:books
    lzhshen 发表于21:01:52 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-09-02

    packages -- perl - [perl]

    package in perl == namespace in C++
    Tag:package
    lzhshen 发表于22:35:13 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:array
    lzhshen 发表于21:49:00 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:hash 排序 sort
    lzhshen 发表于13:32:08 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:Q&A
    lzhshen 发表于22:50:46 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:Q&A
    lzhshen 发表于21:58:12 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:sumarize
    lzhshen 发表于20:47:08 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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 ...
    Tag:link
    lzhshen 发表于22:36:14 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-08-25

    BEP 101e - Presenting for Success: Making your Introduction - [english]

    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...
    Tag:introduction
    lzhshen 发表于22:30:21 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-07-30

    续行符 (\) - [Linux]

         续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.

     下面这种情况不work

    ($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \

           ...
    Tag:
    lzhshen 发表于13:24:11 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-07-30

    续行符(\)的位置 - [perl]

         续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.

     下面这种情况不work

    ($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \

           ...
    Tag:
    lzhshen 发表于11:53:15 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-07-30

    续行符(\)的位置 - [perl]

         续行符 (\)断在 = 之后 有问题,需要断在函数名称之后,不知道什么原因.

     下面这种情况不work

    ($ss_write_mode, $mds_write_mode, $mdls_write_mode, $mauifs_write_mode, $rms_write_mode) = \

           ...
    Tag:
    lzhshen 发表于11:53:15 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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) 
    Tag:soap wsdl
    lzhshen 发表于19:50:32 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-06-09

    C++ Traits (转载) - [C&C++]

    今天看"modern c++ design"的时候发现自己竟然又把以前好不容易弄懂的Traits技术给忘记了,真是...又重新学习了一下,赶紧记下来。
    Traits技术可以用来获得一个 类型 的相关信息的。 首先假如有以下一个泛型的迭代器类,其中类型参数 T 为迭代器所指向的类型:

    template <typename T>
    class myIterator
    {
     ...
    };...
    Tag:traits
    lzhshen 发表于11:16:14 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 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...
    Tag:Pimpl
    lzhshen 发表于09:32:51 | 阅读全文 | 评论 0 | 编辑 | 分享 0
  • 2008-06-02

    简单的 vim 配置(转) - [Linux]

    在终端下使用vim进行编辑时,默认情况下,编辑的界面上是没有显示行号、语法高亮度显示、智能缩进等功能的。为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc。

    在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本,所以,一般情况下把.vimrc文件创建在当前用户的根目录下比较方便,即创建的命令为:

    $vi ~/.vimrc

    设置完后
    ...
    Tag:vim vi 配置
    lzhshen 发表于13:56:36 | 阅读全文 | 评论 0 | 编辑 | 分享 0
共2页 1 2 下一页 最后一页

个人资料

lzhshen

日历

搜索

管理

  • 进入后台 写新日志
  • 文章管理 评论管理
  • 更换模板 访问统计

文章分类

  • Linux[16]
  • 全景图[1]
  • C&C++[7]
  • 操作系统[3]
  • 算法[5]
  • web service[1]
  • perl[6]
  • english[5]

Tag

  • 算法[6]
  • linux[5]
  • ubuntu[5]
  • 排序[3]
  • debug[2]
More..

最新文章

  • c++ runtime symbol lookup error
  • linux debug tool
  • debug python script
  • 查看被占用端口
  • unix network programming
  • C++ — Convert int to string
  • ubuntu 下搭建 nfs 服务
  • vmware server 添加磁盘
  • PostgreSQL数据的导出导入
  • How to umount when the device is busy
全部日志>>

最新评论

  • 失眠怎么办:都没人顶下,我帮你顶下!...

链接

    存档

    • 2010 [1]
    • 2009 [10]
    • 2008 [38]
    • 访问统计:
    • RSS 什么是RSS?
      用IM提醒我内容更新
      订阅到QQ邮箱
      订阅到鲜果阅读器
      订阅到Google阅读器
      订阅到抓虾阅读器
    • 《城客》第四期:创意之城
      博客大巴
      博客大巴使用指南
      博客大巴模板中心
      免费注册博客大巴
      一键博客搬家工具
      中文互动杂志城客
    Copyright © 2002-2012 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
    博客大巴模板设计:简约风格3 | 作者: hengge