[WordPress]设置了一个Gravatar头像
Gravatar是什么?是一个提供头像服务的站点,在支持Gravatar的网站发布评论或留言时,会根据你留下的Email地址匹配显示你在Gravatar网站设置的头像,very cool
看看俺的头像

是铁拳3中的一个游戏人物,很NB吧,是以前我的sina博客使用的头像
Gravatar是什么?是一个提供头像服务的站点,在支持Gravatar的网站发布评论或留言时,会根据你留下的Email地址匹配显示你在Gravatar网站设置的头像,very cool
看看俺的头像

是铁拳3中的一个游戏人物,很NB吧,是以前我的sina博客使用的头像
我要投诉
我前段时间在张江农工商超市买了一把伞,具体时间忘了,不超过一个月,33.8元人民币,比正常价格贵是吧,可是当时正在下雨,我没带伞
说说那把伞,质量那叫一个差啊,骨架很软,还都是锋利的铁皮,奶奶的,心里不爽
知道今天发生什么事了吗,其实那把伞就没用几次,家里有好几把伞,得了,今天赶上下雨,就拿了那把伞,竟然一阵风给搞折了,断裂处一看,质量真不是一般的差啊。
正好路过张江农工商超市,俺去投诉了,其实俺也知道,早就把购物小票扔了,就是去发泄下
越来越不喜欢上海的中年妇女……
果然不出我所料,非要我拿小票出来,丫的肯定知道一般人谁每次都留着小票啊,故意刁难,哎
没办法,以“真他妈的……”结束交涉
在编译程序的时候可以使用-D来定义一个宏开关-Dmacro,等同于C中的#define macro
或者定义一个变量,-Dmacro=1,等同于C中的#define macro 1,不过请注意,变量的值只能是数字,不能是字符串
不过对我来说数字就够用了,哈哈
因为最近我重新设计以前的系统,不同的模块连接不同的数据库,我不想在代码中硬编码指定一个数据库连接,总之需求比较特殊,因为是维护以前的系统,也不能全部重新编码,哈哈,有了这个发现我就可以省下很多力气了
今天终于实现了基本的功能,上传到服务器了,其实还不能算正式发布,只是放到服务器上给自己一点信心和动力。哈哈
http://www.globstudio.com/globproject/使用这个网址访问。
我做页面实在是没信心,做的丑陋不说,还真的不想去做,这个也是硬着头皮走的一套页面(很简单的页面,希望以后会美化下)
目前还只支持单用户,但是我的目标是支持多用户的哦
阅读全文…
以前发表在CSDN Blog中的,今天用到转发此地。
http://blog.csdn.net/wuhuiran/archive/2008/05/10/2427419.aspx
一,vc6.0版本
‘——————————————————————————
‘FILE DESCRIPTION: New Macro File
‘——————————————————————————
Sub filedescmacros()
‘DESCRIPTION: A description was not provided.
‘Begin Recording
ActiveDocument.Selection = "/"
ActiveDocument.Selection = "******************************************************************"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* Copyright (c) 2008, xxxxx有限公司"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* All rights reserved."
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 文件名称:" + ActiveDocument.Name
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 摘 要: "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 当前版本:1.0"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 作 者:吴会然"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 完成日期:" + CStr(Date())
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 取代版本:"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 原 作者:"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "* 完成日期:"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection.NewLine
ActiveDocument.Selection = "*"
ActiveDocument.Selection = "*****************************************************************/"
ActiveDocument.Selection.LineUp dsMove, 10
‘End Recording
End Sub
我的初衷是这样的,有一个so1模块实现数据库连接池的管理,其他业务实现so2中需要用到连接池so1,又因为连接池只能有一个,所以连接池在进程Bin1中创建并管理,在so2中获取连接池,实际上就是Bin1中调用so1创建的连接池,哈哈,我的问题解决了。
我的想法是,因为在进程Bin1的一个业务中,会用到多个数据库的连接(多个不同的数据库呃),那么Bin1中创建一个session(session的代码中so1中),用当前线程id作为session的标识,在so2中的业务代码中根据线程id获取到session信息,需要获取什么类型的数据库连接由so2的具体业务确定,获取到连接之后注册到当前session,这样当业务取消或失败的时候,可以统一的abort数据库操作。
测试代码很简单,在dll1.so中是一个单例模式的类
在bin1中创建单例对象,并执行一个增加int的函数
dll2.so中只有一个函数,获取单例并返回一个int值
从结果我们可以发现,实际上dll2.so中使用的单例对象就是bin1中创建的单例对象
测试代码:下载
指定目录排序列出目录树并写入文件中
#! /usr/bin/env python import os import sys def list_and_sort( path ): dirs = sorted([d for d in os.listdir(path) if os.path.isdir(path + os.path.sep + d)]) dirs.extend(sorted([f for f in os.listdir(path) if os.path.isfile(path + os.path.sep + f)])) return dirs; def listdir(space, dir,file): if space == '': file.write(dir + '\n' ) prev = space #list = os.listdir(dir) list = list_and_sort( dir ) for line in list: filepath = os.path.join(dir,line) if os.path.isdir(filepath): if line.find( '.svn' ) >= 0: continue space = prev + '--' file.write( space + line + '\n' ) listdir( space, filepath, myfile ) elif os.path: ext = os.path.splitext(os.path.join(line) )[1].lower() if ext == '.o': continue space = prev + '--' myfile.write( space + line + '\n' ) dir = raw_input('please input the path:') myfile = open('filelist.txt','w') listdir( '', dir, myfile )
【转自】http://www.blogjava.net/temper/archive/2009/03/24/261657.html
怎样查看oracle当前的连接数呢?只需要用下面的SQL语句查询一下就可以了。
select * from v$session where username is not null
select username,count(username) from v$session where username is not null group by username #查看不同用户的连接数