- 浏览: 266707 次
- 性别:
- 来自: 北京
最新评论
-
liuyangfiy:
我有一个小小的疑问!文中说“[size=x-small]而在这 ...
netty 线程模型 -
夜雨小天:
非常不错的指导,谢谢
netty 线程模型 -
chxiaowu:
very good!
netty 线程模型
文章列表
1. Unicode和UTF-8
为了统一全世界各国语言文字和专业领域符号(例如数学符号、乐谱符号)的编码,ISO制定了ISO 10646标准,也称为UCS(Universal Character Set)。UCS编码的长度是31位,可以表示231个字符。如果两个字符编码的高位相同,只有低16位不同,则它们属于一个平面(Plane),所以一个平面由216个字符组成。目前常用的大部分字符都位于第一个平面(编码范围是U-00000000~U-0000FFFD),称为BMP(Basic Multilingual Plane)或Plane 0,为了向后兼容,其中编号为0~256的字符和Latin-1相 ...
- 2009-09-17 16:00
- 浏览 1209
- 评论(0)
http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.
To install, first open a terminal window and enter the following command:
sudo apt-get install samba smbfs
...
use flex-iframe(http://code.google.com/p/flex-iframe/) to embed a html page into flex app. it is recommended to set "wmode","opaque". work fine with firefox, chrome, even in IE8, but not good in IE7, the textfield can not gain focus.
solution : in IE7, not set "wmode", ...
- 2009-09-02 14:33
- 浏览 1699
- 评论(0)
犀牛书
Conditional Comments in Internet Explorer
In practice, you'll find that many of the incompatibilities in client-side JavaScript programming turn out to be IE-specific. That is, you must write code in one way for IE and in another way for all other browsers. Although you should normally avoid bro ...
- 2009-09-01 16:35
- 浏览 773
- 评论(0)
转自:http://www.bit-101.com/blog/?p=523
Sometimes you need to have a full browser screen filled with a swf. Everyone knows how to do that. You go into Publish Settings, set Dimensions to “Percent” and Width and Height to 100.
The problem is that you still end up with a margin around the edge of the p ...
- 2009-09-01 11:05
- 浏览 684
- 评论(0)
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class User(Base):
... __tablename__ = 'users'
from sqlalchemy import create_engine
engine = create_engine('sqlite:///:memory:', echo=True)
Base. metadata.create_all(engine)
则可以在shell中显示出当前命名空间下所有的数据库表类(如本例 ...
- 2009-08-19 18:32
- 浏览 2220
- 评论(0)
sigh... 还以为是vi出了鬼...
2.5支持:
try:
except:
finally:
2.4不支持,2.4需要分开写
try:
try:
except:
finally
- 2009-08-10 13:48
- 浏览 1899
- 评论(0)
url = os.path.abspath(os.path.dirname(__file__))
siteUrl = os.path.join(url,'site')
fileUrl = os.path.join(siteUrl,'ce.html')
root = static.File(siteUrl)
root.putChild('', static.File(fileUrl))
site = server.Site(root)
j = internet.TCPServer(8080, site)
- 2009-08-05 18:09
- 浏览 921
- 评论(0)
简单的说,目标就是获取数据库表中的下一个auto_id sequence.
先看了这篇文章: http://blog.jamiedoris.com/geek/560/。在MySQL中使用 "SHOW TABLE STATUS LIKE '$tablename'";
我用的PostgreSQL8, Google了下,找到了一个pg下类似的方法:
select currval(pg_get_serial_sequence(tablename, id_seq))
但出现错误:currval of sequence is not yet defined in this session ...
- 2009-07-31 18:18
- 浏览 871
- 评论(0)
as脚本 ExternalInterface.call("Run", 'notepad'); 另一个js文件里 function Run(strPath) { try { var objShell = new ActiveXObject("wscript.shell"); objShell.Run(strPath); objShell = null; } catch (e){alert('找不到文件"'+strPath+'"(或它的组件之一) ...
- 2009-07-31 18:13
- 浏览 2490
- 评论(0)