RSS4G Privacy Statement/RSS4G 隐私声明

《RSS4G 隐私声明》

本程序向庄严承诺以保护使用其交互性产品和服务之用户的隐私。以下声明旨在披露与本程序有关的隐私政策:

1、隐私策略

本程序并不记录用户的任何个人信息以及位置,本程序将严格保障用户隐私权,对上网用户的个人信息保密,请放心使用!

本协议所使用的Google账号信息,仅用于程序内部信息获取,在任何情况下,绝对不会采集任何用户信息,也不会将用户信息非法散播。

2 、其他规定

2.1

本协议构成双方对本协议之约定事项及其他有关事宜的完整协议,除本协议规定的之外,未赋予本协议各方其他权利。

2.2

如本协议中的任何条款无论因何种原因完全或部分无效或不具有执行力,本协议的其余条款仍应有效并且有约束力。

2.3

本协议中的标题仅为方便而设,在解释本协议时应被忽略。

Using clozure commond lisp script under windows console

Recently, I am trying to study the common lisp, and this is really an interesting computer language, and I never see such kind of language before, although I have learned C++, python, js and a little java.

I select coluzure common lisp during my study, but I found that using lisp script is not so convenient as python, maybe there is really much difference for python and lisp itself. It is a pity than I have to run a lisp script from a wx86cl.exe internal console every time using “ccl:load”.

I am really want to run the lisp as python and make it more easy to use, so I wrote the following bat script, as well as, solve some kind of problem about passing command line arguments.

@echo off

REM Search for the wx86cl.exe, which should be contained in %PATH%
REM If not found, alert and exist, without run anything

set ccl_exe=wx86cl.exe
FOR %%a IN ( %ccl_exe% ) DO (
    set ccl_path=%%~$PATH:a
)
IF "%ccl_path%" == "" (
    echo ccl.cmd: Can't find wx86cl.exe, please add it to %%PATH%%
    goto end
)

REM Because x86-32 and x86-64 is not the same name convention
REM Process the exe path and compile filename

set lisp_filename=%~1

IF "%PROCESSOR_ARCHITECTURE%" == "x86" (
    set fsl_filename=%lisp_filename:.lisp=.wx32fsl%
) ELSE (
    set ccl_path=%ccl_path:wx86cl.exe=wx86cl64.exe%
    set fsl_filename=%lisp_filename:.lisp=.wx64fsl%
)

REM Compile the file before the lisp source file is changed
REM Bug: cause the time using batch file can just get minite
REM but cannot get seconds, this will lead to unchanged 
REM fsl file to be execute, so I just close the compile
REM logic here.

REM IF NOT EXIST %fsl_filename% goto compile
REM 
REM for %%a in ("%lisp_filename%") do (
REM set lisp_timestamp=%%~ta
REM )
REM 
REM for %%a in ("%fsl_filename%") do (
REM set fsl_timestamp=%%~ta
REM )
REM 
REM IF "%fsl_timestamp%" LSS "%lisp_timestamp%" (
REM goto compile
REM ) ELSE (
REM goto run
REM )
REM 
REM :compile
REM %ccl_path% --eval "(progn (compile-file \"%lisp_filename:\=\\%\") (ccl:quit))"

:run
REM run the lisp, which means load the lisp file
REM You can get the command line argument using *UNPROCESSED-COMMAND-LINE-ARGUMENTS*
shift
%ccl_path% --eval "(progn (load \"%lisp_filename:\=\\%\") (ccl:quit))" -- %1 %2 %3 %4 %5 %6 %7 %8 %9

:end

And, after saving the content into a ccl.cmd file, you must do also
1. right click a normal lisp file, in “property” dialog, using “ccl.cmd” to open this file always
2. open register via regedit, find the path HKEY_CLASSES_ROOT/lisp_auto_file/shell/open/command
repalce : “some_path_to_ccl_cmd\ccl.cmd” “%1”
to : “some_path_to_ccl_cmd\ccl.cmd” “%1” %*
3. add wx86cl.exe in your system PATH
And, that’s all.

You can use ccl:*unprocessed-command-line-arguments* to get the command line arguments passing to your script file.

So, let us test, make a file test.lisp

(defun main()
  (format t "~{~a~%~}" *UNPROCESSED-COMMAND-LINE-ARGUMENTS*)
  0)

(main)

D:\>test.lisp 12 foo bar
12
foo
bar

If you get the same result, it proves that everything is OK, enjoy lisp~

python自动检测文档内码[zz]

python 2.x以上自带内码检测模块chardet,是从firefox中移植的,判定正确率比较高。

chardet.detect(buffer)会返回一个字典。

chardet.detect(rawdata)
{’confidence’: 0.98999999999999999, ‘encoding’: ‘GB2312’}
其中confidence是可信度,encoding是编码。

下面是用法示例。

python 2.x以上自带内码检测模块chardet,是从firefox中移植的,判定正确率比较高。

chardet.detect(buffer)会返回一个字典。

chardet.detect(rawdata)
{’confidence’: 0.98999999999999999, ‘encoding’: ‘GB2312’}
其中confidence是可信度,encoding是编码。

下面是用法示例。

1 #!/usr/bin/env python
2 # -*- coding: UTF-8 -*-
3 # author ablozhou <a title="" href="http://blog.csdn.net/ablo_zhou" target="_blank">周海汉</a>
4 # ablozhou@gmail.com
5 # http://blog.csdn.net/ablo_zhou
6 # 2010.3.14
7 import chardet
8 import urllib
9 if __name__ == __main__:
10     mydet = {
11         SHIFT_JIS:http://www.mankan.or.jp/,
12         GB2312:http://g.cn/,
13         Big5:http://www.programmer-club.com.tw/,
14         UTF8:http://zh.wikipedia.org/
15         }
16     for url in mydet.values():
17         print url
18         rawdata = urllib.urlopen(url).read()
19         enc = chardet.detect(rawdata)
20         print enc[encoding]

 

执行:

python encdet.py
http://zh.wikipedia.org/
utf-8
http://www.mankan.or.jp/
SHIFT_JIS
http://g.cn/
GB2312
http://www.programmer-club.com.tw/
Big5

Connect Console with Python using Subprocess

PyVim is written for a while, during the writing code, there indeed a lot of problems.

I try to implement the buffer for a console ( now just on Windows ) , but i find that the subprocess using for the communication for the process has a problem with “communicate” function.

It will close the input/output function if you once using the “communicate” function.

So there just another way to do it .

  1. import subprocess
  2. cmd_ins = subprocess.Popen(
  3. ‘cmd.exe’ ,
  4. stdin = subprocess.PIPE ,
  5. stdout = subprocess.PIPE ,
  6. stderr = subprocess.STDOUT ,
  7. shell = True )
  8. def Run( output , filename ):
  9. file_handle = open( filename , ‘a+’ )
  10. while True :
  11. file_handle.write( output.readline() )
  12. file_handle.flush()
  13. import threading
  14. t = threading.Thread( target = Run , args = ( cmd_ins.stdout , ‘D:\\output.txt’ ) )
  15. t.start()
  16. while True :
  17. print >> cmd_ins.stdin , raw_input(“> “)

just a emulation for connecting to the console , and you can modify the code as you wish.
PyVim is going on ~~

这段太经典了,好怀念大学时的时光

赞小白~! 总结的太经典了
PS:这里荒废太久了
 
口有点俗啊,观者见谅,哈哈哈
 
—————————————-
大孟:477你离我远点儿
477:我嫩死你。。。
小孟:你滚!
小军:啊哈哈哈,哦也哦也!!(看魔兽录像中。。)
大孟:你哈啥呢你,鸡巴。。
小军:别吵。。别吵。。。啊哈哈哈,留逼,留逼!
胡指:%……*%……¥%#¥#……
大孟:我操谁他妈又把我鼠标拿走了啊,我日他媳妇儿!!477,是不是你个贱人拿了?
477:不告诉你,不告诉你。。
小孟:你们俩别吵!!!(bbsing)
冬冬:哟呵,又在和哪个mm聊天呐?
小孟:吉跋猫!
冬冬:-,-|||
胡指:%!%#……@*¥&……!*¥¥@%!
死灵:我说那谁,大孟!。。。大孟!!!我桌上那鼠标是你的吧?。。
macana:小军你这是玩儿的啥呀。
小军:哦也哦也,留逼,留逼。。。
QQ:马擦那,快回去打扫卫生,今儿该你了。
吕楠:又是哪个mm呐。。
小孟:¥%¥%@
吕楠:快上呀
小孟:人家小mm,还是cn呢。
吕楠:那更要上呀,上了就是你的了,快快
小军:哦也哦也,冲!冲!冲!留逼,留逼
吕楠:小军你别看了,咱打一局吧,你不准用键盘的啊。
胡指:¥%&¥%%……&*%……&(走了)
哈哈:有人此换的嘛?有人此换的嘛?  ( 个人注解: 此换 ==> 吃饭的谐音 )
大孟:走,蓝梦。
QQ:咱去晋南吧,我又想吃那炸酱面了。
小芳:谁去晋南?给我带份茄汁牛头炒饭!
 
——————————————
 
期待后续版本

孤军奋战

公司SWQC发表会,孤军奋战啊。。。
( SWQC是什么,就别解释了,反正就当作是一个在一群boss面前演讲的事情吧)
 
看着别的组的人员都呼呼的来,帮着解释的,帮着说的,帮着争论的~~
我看了一圈,真好,我们组就我一个人,无语*∞。。。
 
也罢,也罢,反正整个报告就我一个人编的,知道什么叫编么,恩,就和写小学作文差不多。
没人帮就没人帮吧,估计其他组员连题目都不知道呢,就我一个人侃吧~~
一个人面对4个大boss,说的我心里发虚呢。。哎,还好也就20分钟吧,算是混过去了
多少其中一个boss是我们部的,总算为我扛了几句。。感动呀~~
 
PS:最近烦心事真是不少啊。。哎
     我可爱的群员们,你们真是让我欢喜让我忧啊
     该加油的加油,该放手的放手,都好好努力吧,为了自己和所爱的人。。。