【明報專訊】第一次接到電話,希望我談談「中國夢」的時候,我的第一個反應是:「一千枚飛彈對準我家,我哪裏還有中國夢啊?」
可是沉靜下來思索,1952年生在台灣的我,還有我前後幾代人,還真的是在「中國夢」裏長大的,我的第一個中國夢是什麼呢?
我們上幼稚園時,就已經穿著軍人的制服、帶著木製的步槍去殺「共匪」了,口裏唱著歌。當年所有的孩子都會唱的那首歌,叫做《反攻大陸去》:
反攻 反攻 反攻大陸去
| ss = document.getElementsByTagName('select'); | |
| for (var i = 0; i < ss.length; i++) { | |
| var se = ss[i]; | |
| for (var j = 0; j < se.options.length; j++) { | |
| if(se.options[j].text=='只读'){ | |
| se.options[j].selected = true; | |
| } | |
| } | |
| } |
| # -*- coding: utf-8 -*- | |
| import codecs | |
| import urllib2 | |
| import json | |
| from sets import Set | |
| """ | |
| 一个用来检测字符表里面是否有可用的拼音域名的脚本 | |
| http://pypi.python.org/pypi/chardet 用来检测编码 | |
| """ | |
| f = codecs.open('data/pinyin.dic', encoding='utf-8') |
| #!/usr/bin/python | |
| #coding=utf-8 | |
| import urllib | |
| import urllib2 | |
| import re | |
| import threading | |
| import Queue | |
| url = 'https://who.is/whois/name_search/' |
| <table> | |
| <tr> | |
| <td width="80px" bgcolor="#f5f5f5"> | |
| <label for="box" style="display:block;line-height:80px"> | |
| <input id='box' name="chco" value="" type="checkbox"> | |
| </label> | |
| #!/usr/bin/env python | |
| # | |
| # Converts any integer into a base [BASE] number. I have chosen 62 | |
| # as it is meant to represent the integers using all the alphanumeric | |
| # characters, [no special characters] = {0..9}, {A..Z}, {a..z} | |
| # | |
| # I plan on using this to shorten the representation of possibly long ids, | |
| # a la url shortenters | |
| # |
| function build_http_query($params) { | |
| if (!$params) return ''; | |
| // Urlencode both keys and values | |
| $keys = array_keys($params); | |
| $values = array_values($params); | |
| //$keys = OAuthUtil::urlencode_rfc3986(array_keys($params)); | |
| //$values = OAuthUtil::urlencode_rfc3986(array_values($params)); | |
| $params = array_combine($keys, $values); |
| .markdown-body { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| } | |
| .markdown-body > *:first-child { | |
| margin-top: 0 !important; | |
| } | |
| .markdown-body > *:last-child { | |
| margin-bottom: 0 !important; | |
| } |
| // 安装 php memcached 扩展 http://www.php.net/manual/zh/book.memcached.php | |
| // 注意:不是http://www.php.net/manual/zh/book.memcache.php | |
| // 确保已经安装了libmemcached | |
| wget http://pecl.php.net/get/memcached-2.1.0.tgz | |
| tar zxf memcached-2.1.0 | |
| cd memcached-2.1.0 | |
| phpize | |
| ./configure | |
| make |
| <?php | |
| $file_name = "7"; | |
| $out = $file_name.".out"; | |
| $num = 3000; | |
| $lines = get_lines_random( $file_name, $num); | |
| foreach($lines as $key=>$value) { | |
| file_put_contents($out, $value, FILE_APPEND); | |
| file_put_contents($out, "\n", FILE_APPEND); |