Archive for June 2011
by Alice Munro
这书蠻好看的 是我看的第一本 alice munro的书 但是还挺喜欢的
同名的 那篇并没有觉得特别好 但是后面几篇越来越好 看到后来 完了 还觉得意犹未尽 再有几篇就好了. 印象比较深刻的 一个女人a single day affair却记了一辈子 不断的添加想象 早已和事实大相径庭 但是 the memory gained a life of its own, fed on its own growth, and filled in the gaps of a long marriage. 另外就是那个有个老年痴呆的爱妻 但又不断出轨的老公 爱妻不再记得他是谁 反而和养老院另外一个不能动的老头 attachment起来 老公只能靠回忆 和 反省生活 但是出轨的机会仍然存在 只是这次真的是为了妻子而出轨了.
一个 collection写了很多横跨爱情/家庭各个阶段的故事 从不同的视角 大多是女性角度 看待贫穷 生活 掙扎 demanding husband or family 看了感同身受. munro reminds me of annie proulx, but not that detail oriented or incisive writing. still the struggle of a poor life is vividly on the paper.
第一次看到 munro的名字 是在 grad school的 时候 学校main street上有个旧书店, 我平时经常去逛逛, 里面在层层书架之间 有个蓝白条相间的布沙发 我有时就坐下来 看书 因为店面很深 能看一下午 都不知道天黑了. 那个沙发一点都不像放在商店里的东西 更象某个 beach house里的家具 因此坐上去更有 时光/地点穿梭机的感觉 读的书分外有趣些. 至今我仍然很怀念它.
当时有一次书店摆了一些 american contemporary writers的书出来 其中一本就是 munro, 哪一本已经想不起来了 但是记得当时很想看 但有事情 不能 indulge自己 翻了几页就走了 一直记到今天.
菜谱在这里. 这个blog我已follow了好几年了 是个很有名的food blog. 但是这是我第一次做她的recipe. 不是太成功. 味道很普通 没有什么特别的地方. 不知道是不是自己 french cooking的段位比较低的缘故 没有把人家的风味做出来.
这个菜谱比较有收获的地方是我第一次用 leek这个东东, 一下子就 fall in love了, 到现在变成了几乎每周必买的fridge staples. 下面还有两个关于 leek的 更好吃的 菜. 这里我第一次发现 leek的颜色 味道都是这么迷人 更不用说和 spring zucchini抄在一起 简直是动人心斐的嫩绿色 和春天的心情仿佛是绝配.
今天我 自己发现了一个命令: =%
要先把光标放到curly brace上面 然后就可以indent all code within the curly braces
很久以前看到过有这样的命令 但是 google没找到 突发奇想 因为 % 可以找 matching braces的吗
<input type=’…’ name=’…’ autocapitalization=’off’ autocorrection=’off’>
you can put them to the form element too. that way, all the inputs in the form will not auto-capitalize or auto-correct user inputs.
I should have known this a long time ago — i overheard quite some conversations about them in my ex-ex-employer but never really spent time thinking or trying to understand what other people were saying at the time — this proves the point of never being lazy again. Everything you got lazy about will come back and bite you. This is probably the number one lesson I learned in my entire life 🙂 不能懒啊. 一时的懒惰日后都要付出代价的.
Anyway this time, after hours spent in a marathon push, I figured everything out, hopefully. There is a parameter when you set a cookie: secure or not secure. If you mark it secure, then it won’t come back through a http connection. If you don’t mark it secure, it will come back for both http and https connection. That is it.
We got a report from a guy who lives in Tokyo on a page of ours that is vulnerable to XSS attacks. Seems he sent multiple emails to different companies on the topic. It is a sure way of securing interviews. I hope he run a program to find the holes, instead of finding them by hand 🙂
Anyway, despite my two years in a security infrastructure team, I actually got more education on XSS this time — it is a very common security flaw and was taken advantaged of fairly early in the history of my ex-employer. So the issue was fixed well ahead of my time and I never really paid any attention to how they solved it.