因為之前 Server 死 Hardisk ,所以在下的兩個動畫網站 EVA Zone 和 Section9 都關閉了。家中有這些文檔的 Backup,但仍在考慮用什麼方法重建。
做這些動畫 Fanpage ,最主要的問題是一旦內容齊全了,就會開始少了更新。主要原因當然是網主懶得更新 (如我)
For my sins, I am one of those people who doesn't always read Python'sfine documentation carefully enough. For example, I wrote a large chunkof code using the helpful os.path.join() before I noticed a littlegotcha: it's very helpful. In particular:
Joins one or more path components intelligently. If any component isan absolute path, all previous components are thrown away, andjoining continues .
(Right there in black and white in the fine documentation .)
因為之前 Server 死 Hardisk ,所以在下的兩個動畫網站 EVA Zone 和 Section9 都關閉了。家中有這些文檔的 Backup,但仍在考慮用什麼方法重建。
做這些動畫 Fanpage ,最主要的問題是一旦內容齊全了,就會開始少了更新。主要原因當然是網主懶得更新 (如我)
There's three ways to build RPMs: the silly way, the easy way, andthe better way.
The silly way starts with /bin/su root , which should be enough of a warning sign. You really don't wantto be building and installing packages as root unless you don't have achoice, and you do.
The easy way is:
$ cat >$HOME/.rpmmacros
%_topdir /some/where
^D
$ cd /some/where
$ mkdir BUILD
One of the things they tell you in programming school is 'side effectsare bad; you should avoid them if possible'. Apparently every now andthen I need a reminder of this, because side effects were at the bottomof my feed whoops from last night.
One of the most expensive bits of DWiki is converting pages from DWikiText into HTML. Originally the conversion was simple andstraightforward; stick wikitext in, get HTML out. But as DWiki grew morefeatures, the wikitext started having additional information: whetherpeople
In the process of enabling caching in DWiki , I managed to illustrate theimportance of thorough testing by failing to properly cache the realtitles of entries and then not noticing, because that the Atom feedsstayed the same was the one thing I didn't test. (I carefully andsomewhat obsessively tested that the rendering of all of the otherpages did stay the same. I even have that automated.)
This caused the syndication feeds for WanderingThoughts to revert toplain filename based titles for eight hours or so, until
This isn't my work; it's from a comment on an earlier entry . I'm repeating it here partly to haveit handy, and partly because DWiki mangled the nice clear plainASCII formatting of the original. So thank you, mostly anonymouscommenter.
The following are the explanation of patchdd script exit codes:
| 0 | No error |
| 1 | Usage error |
| 2 | Attempt to apply a patch that's already been applied |
| 3 | Effective UID is not root |
| 4 | Attempt to save original files failed |
| 5 | pkgadd failed |
| 6 | Patch |
David Heinemeier Hansson in the comments on one of his entries :
Joe: Atom is just RSS without the bugs. [...]
What he said.
The more I've learned about syndication formats, the more thankful I'vebeen that I picked Atom way back when .(I'm not sure why I chose Atom; possibly because it seemed the more upto date of the choices at the time, since it had an RFC in developmentand all.)
The difference between Atom and RSS
CSS
When I start grumpily thinking of ways to punish a program's badbehavior is about when it sinks in that I don't like it. Which meansthat Google Desktop has a problem.
Back in December I wrote about Google Desktop and conditional GET and concluded that I didn't have enoughevidence to really know what the heck was going on. Well, I have severalmonths more data and more people using Google Desktop against me, andI've reached a conclusion: Google Desktop doesn't do