An interesting bit of ssh and sshd behavior

We have a ssh keypair that's used to let an automated script have verylimited access to a remote system. As usual, we set up a whole hostof restrictions in the target account's authorized_keys ; we forcea specific command, we only accept the key from the host we expect itfrom, and we specify the whole raft of no-* options, including no-pty .The command that gets forced for this particular keypair reads variousthings that it needs from standard input (ie


The drawback of using a language with a good interface to the OS

Python generally has a great interface to Unix; through various modules(not just os , but also things like socket , select , and so on) itexposes almost all of the generally useful APIs and does so in a waythat is simultaneously Unixy and Pythonic. The best way of putting itis that everything just works, and just works the way you'd expect itto if you know the C-level API and Python.

(This is one reason that I have never been terribly energized aboutthe ctypes


想民望高企 先毒啞自己

想民望高企 先毒啞自己

「香港女作家的樣子,都慘不忍睹。」一位活躍於創作圈子的朋友搖頭慨嘆。大家都應該估到,我這朋友是個男人。但我不能公開他的名字,因為得罪作家,而且是女作家,下場分分鐘慘過成龍。

這位朋友

愛與友情...同性愛與友情《Dostana》(燃情邁阿密)




Dostana 》(Friendship/燃情邁阿密) 是部合格有餘的現代Bollywood Masala: 邁阿密 (Miami) 的藍天, 陽光與海灘、俊俏男角、性感女角、一大堆性別笑話. 然而加添一筆同性疑雲, 《Dostana》便比一般Bollywood電影多了一份膽識和新意.

Sameer ( Abhishek Bachchan ) , 男護士; Kunal
Continue reading...

How CPython handles (and delays) Unix signals

CPython handles Unix signals somewhat oddly, or at least not in what youmight think of as a standard Unix way. I've covered part of this beforein SignalProblem and made side mentions in other entries, but I want towrite all of this down in one place (even if only as an index).

First, none of this applies if you set a signal's handler to SIG_IGN or SIG_DFL . Those get standard Unix semantics, because CPython justsets the signal to either of


大娛樂家

https://www.hkreporter.com/myradio/channel_list.php?channelid=101

主持人: 蕭定一,袁彌明,愛明
主題: 大娛樂家-(第49集)
目前評分:
Continue reading...

Samsung N310 病毒性廣告

甚麼是Viral Video?Viral者,具病毒性的東西也,病毒的一大特色,就是人傳人加跨社區爆發的效果,呢一刻你中了毒,轉過頭你唔該都無聲就將病毒傳給別人,如是者,一傳十十傳八,八八六十四,六十四乘六十四變四千幾,如此類推


交叉線植入後的效果

From Elle Blog
(手術後6天)
眼皮回來了~
即使化妝以後,雙眼皮還是清晰可見。
效果正如我貼了雙眼皮膠紙一樣。我十分之滿意~~

手術詳情請看今期《忽然一周》。

有興趣的朋友請email我:yuenmiming@gmail.com
經我refer會有折。

手術提供by Dr Reborn

Solving the Python SIGCHLD problem

In brief, the Python SIGCHLD problem is that while C-level SIGCHLD signal handlers are protected against reentrancy, your Python level SIGCHLD handler function is not, because it is not actually executedas a C-level signal handler. This winds up causing heartburn andpotential explosions if you do anything sophisticated when childprocesses exit. (See SIGCHLDVsPython for a longer discussion.)

In thinking about the problem, I've realized that signal.signal() is itself a peculiar but useful atomic operation. This is important,


Reflection from Finland 2

每個孩子都是第一名 》,陳之華,台北﹕天下遠見,2009

當一件事成為賣點後,出書可以很快。去年才剛出版《 沒有資優班 》,事隔一年陳之華就出了第二本書。

不知道該如何討論兩本書的分別。但感覺上,第一本書比較