`
huangro
  • 浏览: 335355 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
原文章地址:http://www.ithowto.ro/2009/03/howto-install-guest-additions-for-virtualbox-on-debian-lenny-50/ I have the following setup. The Host machine is running Windows Vista 64 with VirtualBox. I’ve installed Debian Lenny 5.0 from a NetCD and now i want to install the guest additions modules. The gues ...
首先,需要给所有需要排序的字段设置属性sortable: true,参考示例代码: // create the grid var grid = new Ext.grid.GridPanel({ el:'grid-products', width:405, height:300, title:'Adventure Works Products', store: store, stripeRows: true, loadMask: true, enableHdMenu: false, // grid columns columns:[{ hea ...
在Ubuntu下安装Opera10.10之后,发现没法使用scim输入中文。每次按Ctrl+Space组合键之后,总是跳转到Opera首页。 查了下资料,解决方案如下: 1. 执行以下命令: sudo apt-get install scim-qtimm 2. 更改opera的配置文件: sudo vi /usr/bin/opera 在文件的开始位置(第二行)填入以下内容: export QT_IM_MODULE=SCIM 重启Opera,就可以输入中文了。
From: http://www.webtoolkit.info/javascript-base64.html /** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding ...
记录下: 1.安装防火墙ufw sudo aptitude install ufw 2. 启动 sudo ufw enable 3. 启用/取消 记录日志 sudo ufw logging on 4. 为TCP启动80端口 sudo ufw allow 80/tcp 5. 启用ssh设定的端口 sudo ufw allow <SSH port> 6. 锁定 sudo ufw default deny

linux下ssh授权

写下这个作为备忘: 1. 创建目录 mkdir ~/.ssh 2. 生成密钥 ssh-keygen -t rsa 3. 拷贝到目标计算机上 scp ~/.ssh/id_rsa.pub <username>@<slice ip>:/home/<username>/ 4. 在目标计算机上将密钥设置 mkdir /home/<username>/.ssh mv /home/<username>/id_rsa.pub /home/<username>/.ssh/authorized_keys ...
之前写了一个上传文件模块,但是当文件很大时就会挂掉,分析了一下,原来是我将文件所有数据先读到内存,然后再写入文件,这样极大占用了CPU资源。现改进了下: def upload_file(request): file_obj = request.FILES.get('file', None) if file_obj: str_time = time.strftime('%Y-%m-%d_%H:%M:%S',time.localtime(time.time())) fname = file_obj.name; fname ...
Ubuntu9.10 sources.list: deb http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse deb http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse deb http://ubuntu.srt.cn/ ...
Date 对象的方法 FF: Firefox, N: Netscape, IE: Internet Explorer 方法 描述 FF N IE Date () 返回当日的日期和时间 1 2 3 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31) 1 2 3 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6) 1 2 3 getMonth() 从 Date 对象返回月份 (0 ~ 11) 1 2 ...
本文转至: http://hi.baidu.com/windsfot/blog/item/7cf4c10887a5c3930b7b82c5.html 对象指页面上的某一部分,如:Input等。我觉得在EXT JS中会有三类基本对象,htmlelement , EXT.Element和CompositeElement 。分别解释一下:      htmlelement指html页面的各种标记元素,可以用document.getElementById()获得,具有html对象的方法和属性。     EXT.Element是最重要的EXT对象,在dom对象的基础上,又包装了很多方法和属性,可以用 ...
1.Open Flash Chart: http://teethgrinder.co.uk/open-flash-chart-2/ 2. Jquery Google Chart: http://www.maxb.net/scripts/jgcharts/include/demo/# 继续整理中...
原文地址:http://www.cnblogs.com/yd1227/archive/2009/10/18/1585487.html Graphical interface wxPython http://wxpython.org Graphical interface pyGtk http://www.pygtk.org Graphical interface pyQT http://www.riverbankcomputing.co.uk/pyqt/ Graphical interface Pmw http://pmw.sourceforge.net/ ...
首先,需要导入urllib2及cookielib。 然后,关键部分代码: cj = cookielib.LWPCookieJar() ah = urllib2.HTTPDigestAuthHandler() ah.add_password(realm, login_addr, username, password) ch = urllib2.HTTPCookieProcessor(cj) opener2 = urllib2.build_opener(ah, ch) urllib2.install_opener(opener2) 其他的就是常规的登录操作了。
deb http://mirror.lupaworld.com/ubuntu jaunty main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu jaunty-security main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu jaunty-updates main restricted universe multiverse deb http://mirror.lupaworld.com/ubuntu ...
服务提供商 webfaction.com  dreamhost.com theplanet.com nextlevelinternet.com textdrive.com rackspace.net datotel.com ovh.net serverbeach.com secureserver.net nac.net eli.net oneandone.net gypsyhosting.com xlquest.net vpslink.com recrutae.net dallas-dat ...
Global site tag (gtag.js) - Google Analytics