- 浏览: 77281 次
- 性别:
- 来自: 大连
最新评论
文章列表
推荐一个rails做的英语学习网站
- 博客分类:
- Ruby/rails
推荐一个rails实现的英语学习网站: - www.master.fm
后台使用rails2和rails3。
rails3 比之前的版本都强很多.
网址 http://www.master.fm
欢迎大家多提意见 . .
Since Lucid Lynx is still in beta, tor isn’t packaged up at torproject.org yet but there is a PPA!
https://launchpad.net/~sevenmachines/+archive/tor
$ sudo add-apt-repository ppa:sevenmachines/tor
$ sudo apt-get update
$ sudo apt-get install tor vidalia privoxy firefox-torbutton
To start it up with ...
require "rubygems"
require "redis"
require "json"
redis = Redis.new(:host => "localhost", :port => 6379)
module AutoJ
def auto_j
h = {}
instance_variables.each do |e|
o = instance_variable_get e.to_sym
h[e[1..-1]] = (o.respond_to ...
Hi,
It is needed by the COM infrastructure. When you don't use threads this
function call is needed too, but it is done by Python automatically.
In a new thread before any COM call you have to call CoIniztialize. If I am
right multiply CoInitialize call in the same thread doesn't cause any harm.
So p ...
- 2009-09-11 01:45
- 浏览 897
- 评论(0)
http://www.pythonclub.org/python-basic/codec
- 2009-09-10 13:22
- 浏览 855
- 评论(0)
首先要搞清楚,字符串在Python内部的表示是unicode编码.
因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。
decode的作用是将其他编码 ...
- 2009-09-10 10:09
- 浏览 48713
- 评论(0)
备份是一种安全策略
很大的一个问题是编码问题,全部utf-8
1.首先是/etc/mysql/my.cnf:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the progra ...
- 2009-09-09 15:22
- 浏览 2417
- 评论(0)
以前一直用date设置,这次参考网上资料,终于整了个全的。
Linux时钟分为系统时钟(System Clock)和硬件(Real Time Clock,简称RTC)时钟。系统时钟是指当前Linux Kernel中的时钟,而硬件时钟则是主板上由电池供电的时钟,这个硬件时钟可以在BIOS中进行设置。当Linux启动时,硬件时钟会去读取系统时钟的设置,然后系统时钟就会独立于硬件运作。
Linux中的所有命令(包括函数)都是采用的系统时钟设置。在Linux中,用于时钟查看和设置的命令主要有date、hwclock和clock。其中,clock和hwclock用法相近,只用一个就行,只不过clock ...
- 2009-09-09 09:01
- 浏览 971
- 评论(0)
http://wwwsearch.sourceforge.net/ClientCookie/
- 2009-09-06 21:23
- 浏览 724
- 评论(0)
python -m smtpd -n -c DebuggingServer 0.0.0.0:25
from:http://initiative.yo2.cn/archives/636736
- 2009-09-06 17:33
- 浏览 1006
- 评论(0)
http://www.pixelbox.net/demos/downloadProgressBar/MyDownloadProgressBar.as
package com.example.preloaders
{
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.TimerEvent;
import flash.geom ...
- 2009-08-27 23:04
- 浏览 1033
- 评论(0)
flex 中的一些细节真是很难 全部掌握 。 记下来 可能以后用的到 。
设置 routation 属性 为 90 即可 。
- 2009-08-12 14:05
- 浏览 1317
- 评论(0)
The tests installed by restful_authentication encounter undefined-method errors, starting with "undefined method fixtures'" for the unit tests. The problem seems to be that the tests derive only from Test::Unit::TestCase, whereas the relevant methods are defined in ActiveRecord::TestCase an ...
- 2009-07-16 10:11
- 浏览 805
- 评论(0)