2012 年二月 一 二 三 四 五 六 日 « 一 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 近期评论
- wlx [微博 ] 发表在《google彻底被封?》
- snake 发表在《google彻底被封?》
- Andrew Pelt 发表在《debian testing上安装oracle 10g》
- tiplip 发表在《webmap.cn使用的WEBGIS技术》
- 求助Evolution问题!! 发表在《evolution crashed in gutsy alpha》
分类目录
标签
anjuta apache backup breezy c++ compile convert dapper debian dns edgy evolution feisty firefox flash gnome gobang GRASS gutsy humor intrepid Linux mailman MapServer mysql openoffice Oracle php phpbb postfix PostGIS postgresql qgis sarge scim skype subversion svn tomcat ubuntu utf8 westdc Windows wordpress 中文
Tag Archives: Windows
cout float的显示问题
在c++,使用cout直接显示float类型的数据,在不同系统上显示方式可能有所不同。 测试代码: #include <iostream> using namespace std; int main() { float t=0.000000277; cout<<t<<endl; return 0; } 在LINUX上: 2.77e-07 而在WINDOWS上结果如下: 2.77e-007
在ubuntu中使用samba客户端
主要目的是想在ubuntu中使用WINDOWS服务器上的空间,所有的数据都是挂在WINDOWS服务器上的一个磁盘阵列,操作方法参考此处。 首先安装: sudo aptitude install smbfs 然后准备一个目录: sudo mkdir /media/Storage 输入帐号,放在/root/.cifscredentials文件,内容如下: username=Guest password= 分别对应WINDOWS共享下的用户名和密码。 然后编辑/etc/fstab,添加一行: //192.168.0.10/SHARENAME /media/Storage cifs auto,iocharset=utf8,uid=USER,gid=users,credentials=/root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0 然后修改上述的信息为你实际的信息, 192.168.0.10对应服务器地址 /media/Storage对应ubuntu中的目录 user对应共享后的用户名 users对应共享后的用户组 file_mode=0775,dir_mode=0775的意义是对所有用户都可读写。 然后使用下面的命令执行mount过程: sudo mount -a 如果共享名称里包含空格,可以使用\040来代替。
用批处理进行按星期的数据库备份
需要按星期进 @echo off echo ———– echo name: Oracle data export automata utility echo author: WANG Liangxu echo date: 2006-8-7 echo refined by NAN Zhuotong echo documented by NAN Zhuotong echo Any problem please contact us via wlx@mygis.org; nztong@lzb.ac.cn REM This … Continue reading
cross compile QT4 program for windows on ubuntu dapper
1、首先安装基础程序: sudo wine mingw32 mingw32-binutils mingw32-runtime 2、安装QT4支持(LINUX下的支持): sudo apt-get install libqt4-core libqt4-gui libqt4-qt3support libqt4-sql libqt4-debug-dev libqt4-dev 3、下载QT4 for win程序: wget http://wftp.tu-chemnitz.de/pub/Qt/qt/source/qt-win-opensource-4.1.2-mingw.exe 4、安装: wine qt-win-opensource-4.1.2-mingw.exe 中间会提示找不到MINGW32的位置,没关系,可以直接跳过。 5、修改specs文件 sudo cp -Rf /usr/share/qt4/mkspecs/win32-g++ /usr/share/qt4/mkspecs/win32-x-g++ sudo nano /usr/share/qt4/mkspecs/win32-x-g++/qmake.conf 把和下面相关的内容都进行修改: QMAKE_CXX = i586-mingw32msvc-g++ QMAKE_INCDIR = … Continue reading
编译sqlite for windows on ubuntu dapper
参考其中的SQLITE部分: http://mpa.itc.it/radim/wingrass/INSTALL 下载源码,解压缩: cd sqlite-3.3.5 nano Makefile.linux-gcc #modify: #TOP = ../sqlite-3.3.5 #这个修改不知道有没有意义 # Note: SQLite is using for example its own parser (lemon) which must be compiled first for Linux make -f Makefile.linux-gcc lemon keywordhash.h cp Makefile.linux-gcc Makefile.mingw-gcc nano Makefile.mingw-gcc … Continue reading
mingw:在LINUX下编译WINDOWS程序
MinGW – Minimalist GNU For Windows http://www.mingw.org UBUNTU下可以直接安装: sudo apt-get install mingw32 mingw32-binutils mingw32-runtime 安装后编译程序可以: i586-mingw32msvc-g++(编译C++程序) i586-mingw32msvc-gcc(编译C程序) 用法和gcc/g++非常类似。 如hello.c程序: #include int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, “Hello”, “Hello Demo”, MB_OK); return (0); … Continue reading
postgis在windows下的应用
目前,windows下的版本,postgresql官方已经开始支持,目前是8.0.1版本。POSTGIS目前官方尚不支持windows版本,但有支援者在进行同步维护windows版本,目前是1.0-rc6版本,估计很快就是1.0版本了。 1、安装 安装很简单,首先要安装postgresql,注意其有两个帐号,一是系统帐号,二是数据库管理帐号。安装程序可以新建用户,要提到一点,目前的postgresql数据库不支持远程安装,就是说,不能通过远程桌面进行安装(这个限制,不爽)。windows版本还包括了pgadmin3,图形化的管理界面。 然后安装postgis,需要前面安装postgresql的管理员帐号,同时其还要安装一个postgis数据库。 默认情况下,可执行文件都安装到postgresql的bin目录,几个SQL文件安装在postgresql的share/contrib目录下。 2、使用 对于中文用户来讲,首先要考虑数据库的编码问题,可以使用unicode,utf8,euc_cn等编码,默认的是unicode编码。 第一次使用unicode编码时移植linux下的应用,遇到了很多非常奇怪的问题。改用euc_cn编码,问题就少多了。 建库: createdb -U postgres -E EUC_CN db (linux环境下本机默认都不需要认证密码,但在windows系统下,默认是需要验证密码的) alter database db set client_encode=”EUC_CN” (这个要进入到psql环境中才能运行的,不确定是否必须,在linux环境下不需要) 搭建postgis环境: creatlang -U postgres plpgsql db (这个在windows下默认好象是不需要处理的) 引入postgis支持: psql -U postgres -d db -f lwpostgis.sql psql -U postgres … Continue reading