less pain, more fun
uniquejava · 共 27 篇文章
db2 CLP中如何换行啊
一按回车就执行了,但很多情况下需要输入多行来实现某个功能 给你2个建议: 1、写一个sql文件,使用db2 -vtf target.sql 2、db2 select \ db2 (cont.) => from \ db2 (cont.) => <table_name> 3、假如你想以@作为语句结束符, 你可以通过db2 -td@进入CLP模式, 按ENTER键自动换行, @结束再按ENTER键就结束SQL语句输入 参考:http://www.db2china.net/club/thread-2031-1-1.html
hello db2(资料下载)
我的db2装在e:/db2目录下,在e:/db2/bin下有很多命令可用 附件中的入门资料不错,唉,没事就看看吧。 启动数据库,输入db2start (比oracle的启动命令好记) 发现任务管理器中多了两个进程 也可以在services.msc图形界面中启动名为DB2 – DB2-0的服务 创建sample数据库 直接在dos窗口中输入db2sampl就可以了,可以发现e:/db2/bin/db2sampl.exe这个文件,这个命令专门用来创建sample数据库,这是我唯一发现db2比较好的地方 打开db2命令行工具(或者选执行db2cmd再输入db2) 打开任务管理器可以看到又多了两个进…
2012-04-13 21:44 · db2 · 评论(0) · DB2
python OO之静态方法
边试边整理吧: 不支持方法重载, 和javascript一样,后面定义的method会覆盖前面的 普通方法,self指向类的实例 静态方法,需要在方法定义上面加上注解@staticmethod,此时方法参数中不加self指针 比java多出一类方法的概念(java中静态方法和类方法是一个概念) 需要加上@classmethod注解 此时方法参数中self指向类的定义。。相当于指向java.lang.Class类 class MyClass: def instanceMethod(self): print 'instance method, self=',self @classmethod d…
2012-04-13 13:07 · python · 评论(0) · Python
python为什么要写那么多蛋疼的self
看这里: http://www.cnblogs.com/wangkangluo1/archive/2011/09/23/2186479.html 写得还不错
2012-04-13 01:36 · egg hurt · 评论(0)
在vim中给python加上代码提示功能
去下载pydiciton: http://vim.sourceforge.net/scripts/script.php?script_id=850 下下来的是一个zip包,里边有三个文件。 (1)python_pydiction.vim 这个是plugin文件 我的vim装在d:/home/vim 必须放在D:\home\vimfiles\ftplugin目录,这个目录已经存在的。不知道什么时候就有的。。。 (2)complete-dict 这个是词典文件里边存放了需要提示的关键字。 扔到了D:\home\vimfiles\ftplugin\pydiction目录下 (3)pydiction…
2012-04-13 01:24 · python · vim · 评论(0) · vim · Python · pydiciton
pyside教程 Module_2_关闭按钮
我想下个QT designer。可是找不到。。冒是下QT Creator就行 http://qt-project.org/downloads 好吧。先装再说(d:\ide\qtcreator-2.4.1) 不行,得装QT SDK。。啊。1.7G, i am shattered (补充:后来看到了PyQT这样一个好东西: http://www.riverbankcomputing.com/software/pyqt/download ,只要下载27.6M,就包含了QT, QT designer) 为什么要下。因为在看这篇文章: http://qt-project.org/wiki/PySide…
2012-04-12 23:59 · pyside · 评论(0) · pyside · qt designer
FireFox下enable iteye编辑器的Copy-Paste 功能
看这儿: https://developer.mozilla.org/en/Midas/Security_preferences 在xp的run box中输入%APPDATA%\Mozilla\Firefox\Profiles\ 进到了C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles目录 新建一个叫user.js的文件 user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capabili…
2012-04-12 23:58 · egg hurt · 评论(0)
pyside教程 入门资料及hello world
pyside的tutorial http://qt-project.org/wiki/Category:LanguageBindings::PySide 更进一步newbie教程: http://qt-project.org/wiki/Category:LanguageBindings::PySide::Newbie-Tutorials 更进一步10分钟教程: http://qt-project.org/wiki/PySide_Newbie_Tutorials 更进一步如何安装及hello world http://qt-project.org/wiki/PySideSimplicissim…
2012-04-12 21:26 · python · pyside · 评论(0) · Python · pyside
在vim中运行python
vim7.3自带对python2.7的支持(vim72对应python2.6) read this: http://vim.wikia.com/wiki/Python_-_check_syntax_and_run_script in a word, all you need to do is just append the following lines to vimrc: "=========== F5 run python ==================== autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_comp…
hello vim
i gonna upgrade my vim to latest 7.3 first go to http://www.vim.org/download.php For modern MS-Windows systems (starting with XP) you can simply use the executable installer: gvim73_46.exe double click, it first shows a prompt whether i like to uninstall my previous version. i backed up my previous…
2012-04-12 00:31 · vim · 评论(0)
hello python & why
a byte of python: http://www.swaroopch.org/notes/Python learning python: http://www.ppurl.com/2009/12/learning-python-3rd-edition.html wxPython in Action:the same as above wxPython Chinese Edition: http://ishare.iask.sina.com.cn/f/20466924.html why learn. bcz it is fun, i want to find some fun. i w…
2012-04-09 14:00 · python · 评论(0) · Python
cvs如何revert
使用Eclipse的CVS插件,右键直接有Revert to Base功能。 或者 http://www.linuxquestions.org/questions/linux-software-2/cvs-newby-question-how-to-do-svn-revert-filename-with-cvs-523282/ Hi, I'm used to subversion, but now I have to work with CVS. I'd like to revert I all changes I've done on a specific file while keepi…
2010-12-24 14:53 · 评论(0) · C · C++ · CVS · SVN · subversion