`
ggsonic
  • 浏览: 266707 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
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相 ...
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", ...
du -s /home // home目录占用磁盘总大小(KB单位) df fdisk -l
犀牛书 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 ...
转自: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 ...
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中显示出当前命名空间下所有的数据库表类(如本例 ...
sigh... 还以为是vi出了鬼... 2.5支持: try: except: finally: 2.4不支持,2.4需要分开写 try: try: except: finally
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)
简单的说,目标就是获取数据库表中的下一个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 ...
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+'"(或它的组件之一) ...
Global site tag (gtag.js) - Google Analytics