What Python's global interpreter lock does (and doesn't) protect
Most people doing threading in Python know about Python's GlobalInterpreter Lock (GIL), which causes only one thread to be running inthe CPython interpreter at any one time. This means that threadedcode already has a certain amount of implicit locking going on,making certain operations thread-atomic without you writing explicitlocks.
The important thing about the GIL for this is that it protectsbytecodes, not Python statements . If something happens in a singlebytecode, it's protected; otherwise, you need explicit locking
How not to set up your DNS (part 3)
Presented once again in illustration:
; sdig ns isotech.com.cydns2.lordosinfo.com.dns1.lordosinfo.com.; sdig ns lordosinfo.com.dns1.edynet.com.cy.dns1.lordosinfo.com.; sdig ns edynet.com.cy.dns2.netconnect.com.cy.dns1.netconnect.com.cy.
At the moment:
- dns2.netconnect.com.cy is not responding,
- dns1.edynet.com
還有30分鐘
便踏入25歲了。
很期待很期待... ...
Weekly spam summary on November 26th, 2005
This week we received 20,583 email messages from 213 different IPaddresses. Our SMTP server handled 21,213 sessions from 1,044different IP addresses. This is a significant jump in incoming emailcompared to last week .
We saw a major jump in connections compared to last week :238,300 connections from at least 32,400 different IP addresses.Broken down by day, it goes:
| Day | Connections | different IPs |
| Sunday |
How not to set up your DNS (part 1)
Presented in illustrations:
; dig +short ns harvest.idv.tw.harvest.idv.tw.www.harvest.idv.tw.; dig +short a harvest.idv.tw.219.84.30.59; dig +short a www.harvest.idv.tw.219.84.30.59
To those setting up nameservers: when people said 'have twonameservers', they did not mean 'and feel free
How not to set up your DNS (part 2)
Today's examples of MX entries are all drawn from domains presented toour mailer in MAIL FROM 's over the past 28 days or so. ' sdig ' is ascript that does a ' dig +short '. Presented in illustrated form:
; sdig mx oakhavenresort.com.10 mail.10 mail.oakhavenresort.com.
It's interesting that they get this simultaneously wrong and right. Isthe plain ' mail. ' supposed to be in some other domain?
; sdig mx
無限廣告在險峰之二
可惡, Kubrick讀詩會 不能不去,但 八樓本週日在西洋菜街讀詩 (我贊成「橫詩街頭」這個名字),我實在很想去。嗚。長恨此身非我有呀。 能去的人,替我去看看、撐場、讀詩啊。
2.訪問a
「創作者智海充滿藝術的
A little sysadmin twitch
Every system administrator has little twitches, behaviors that strikeoutside observers as somewhere between odd and superstitious. Sometimesthese are just habits, but sometimes they have interesting storiesbehind them.
One of my twitches is that when I use su , I always type ' /bin/su '(or on some irritating systems, ' /usr/bin/su '), not plain ' su '.(By now it's a reflex.)
This habit originated in a bit of security advice. The story goes
Making self-signed SSL certificates with OpenSSL
So that I don't have to try to remember it or look it up next timearound, here is how to generate a real self-signed SSL certificate withOpenSSL. The basic but incomplete incantation is:
openssl req -x509 -nodes -days-keyout .key -out .crt ... If you want a merged PEM certificate, just make the
-keyoutand-outarguments the same thing. The key (or the PEM
無限廣告在險峰
我和可洛都會去, 當然也要請各位到場撐場,讀讀自己的詩 。否則我們一直讀下去就太悶了。(ps.這不是發佈會)。
幻聽不曾移動瓶子樹 廿九几讀詩會
日期:2005年11月27日
時間:15:00-16:30地點:kubrick書Menu