1 2 3 4 5 ··· 7 下一页
摘要: Error 2 error LNK2019: unresolved external symbol "char * __stdcall _com_util::ConvertBSTRToString(wchar_t *)" (?ConvertBSTRToString@_com_util@@YGPADPA_W@Z) referenced in function "public: char const * __thiscall _bstr_t::Data_t::GetString(void)const " (?GetString@Data_t@_bstr_t@ 阅读全文
posted @ 2013-10-14 18:45 keepfocus 阅读(693) 评论(0) 推荐(0) 编辑
摘要: #1不喜欢Unity?切换到Ubuntugnome经典桌面注销unity桌面环境,然后选择登录环境为“经典桌面”即可进入。若是你喜欢Unity,可是你的显卡不给力3D不支持,怎么办呢?安装Unity-2D:sudoapt-add-pparepository:unity-2d-team/unity-2d-dailysudoapt-getupdatesudoapt-getinstallqt-unity-default-settings#2安装更新Ubuntu最新版本,并不意味着你的软件是最新版本,对吧?升级你的软件版本:sudoapt-getupdate&&sudoapt-getu 阅读全文
posted @ 2012-12-12 12:22 keepfocus 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1、源代码包的安装 gzip -d apache_1.3.20.tar.gz (解压) tar xvf apache_1.3.20.tar (解包) cd apache_1.3.20 ./configure (配置) ----./configure --help(查看configure选项) make (编译) make install (安装) make clean (卸载) 注:典型的源代码包可以这样安装,但不都是这样,如webmin 要执行其目录下./setup.sh进入交互式配置安装 卸载用uninstall程序 具体如果不清楚看要安装的包下的README文件 2、RPM包的... 阅读全文
posted @ 2012-07-23 12:38 keepfocus 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中...http://www.2cto.com/os/201205/130148.htmlgconf-editor”,回车后打开配置编辑器;(2)在左边的树节点找到/apps/gedit-2/preferences/encodings并单击它;(3)双击右边的auto_detected 键,打开“编辑键”对话框;(4)单击列表右边的“添加”按钮,输入“GB18030”,单击确定按钮,这样列表的最底部新增加了一个“GB18030”。如果你不放心,可以再增加GBK、GB2312编码。(5)选中“GB18030”将其移动到列表的顶部。如果你在第四步后发现没有乱码了,这一步也就可以省略了。( 阅读全文
posted @ 2012-07-23 12:28 keepfocus 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中... 开通了ssh-server,自然就有了scpyou need to SSH or SCP to BackTrack box, you need to start the SSH server that comes with Backtrack.First you need to generate keys. As root, type in the following lineroot@bt:~# sshd-generateGenerating public/private rsa1 key pair. Generating public/private rsa key p 阅读全文
posted @ 2012-07-23 11:53 keepfocus 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 远程登录ubuntu ssh安装报错(Package openssh-server is not available)的问题首先确定你的ubuntu能够联网(我用的是虚拟机,用桥接方式,设置ubuntu和虚拟网卡和真正的电脑一个网段,然后就能上网了),然后执行:sudo apt-get update 一定要执行这个操作结束后执行:sudo apt-get install openssh-server www.2cto.com 然后查看sshps -ef | grep ssh如果看到sshd说明成功。然后可以在其他地方用ssh工具远程登录了。 阅读全文
posted @ 2012-07-23 11:12 keepfocus 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: Ubuntu Server 下的网络配置七月 24th, 2008 Posted in 笔记 | 没有回响检查网络配置$ ifconfig配置DHCP客户端$ sudo vi /etc/network/interfaces加入 iface eth0 inet dhcp配置静态IP地址$ sudo vi /etc/network/interfaceseth0配置如下:auto eth0address 192.168.0.88netmask 255.255.255.0gateway 192.168.0.1让新配置生效保存退出后,使用重启networking命令让新配置生效:$ sudo /etc/ 阅读全文
posted @ 2012-07-23 10:50 keepfocus 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 在显示函数时,多是如下显示:f_install_start proc near ; CODE XREF: f_mainentry:loc_4021B6p.text:00401EF9.text:00401EF9 String2 = byte ptr -468h.text:00401EF9 var_467 = byte ptr -467h.text:00401EF9 Filename = byte ptr -364h.text:00401EF9 var_363 = byte ptr -363h.text:00401EF9 String = byte ptr -260h.text:00401EF9 阅读全文
posted @ 2012-07-16 12:00 keepfocus 阅读(2328) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# Filename: using_file.pypoem = '''\Programming is funWhen the work is doneif you wanna make your work also fun:use Python!'''f = file('poem.txt', 'w') # open for 'w'ritingf.write(poem) # write text to filef.close() # close the filef = 阅读全文
posted @ 2012-07-14 16:41 keepfocus 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一、获取当前目录下的特定文件列表>>>import glob,os>>>curdir = os.getcwd() #获取当前目录>>>os.chdir(workdir) #设置当前目录>>>dir = glob.glob('*.dat') #获取当前目录的dat文件列表>>>os.chdir(curdir) #还原当前工作目录>>>print dir['mudlog.dat','ddd.dat']二、os模块的文件和目录操作函数1.获得当前 阅读全文
posted @ 2012-07-14 16:39 keepfocus 阅读(875) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页