未臨

醉里挑燈看劍 夢回吹角連營 

关于水木家版

下面的评论还是很中肯的,嗯...
 
,----
| loveLccCc (最近对Odom越来越有爱) 于 (Sun Mar 2 13:39:30 2008) 提到:
|
| 她一直都很听话 恩...
|
| 家版是个女人数量>>>>>>>>男人数量的版块 基于自己的立场和利益
|
| 基本上没有过分的情况 舆论肯定是倒向女方 这本来就没啥公平可言
|
| 与其说是家庭版 还不如说是怨女集中抱怨版
|
| 另 建议在家版看帖要有自己的想法 很多人在写帖的时候都会隐瞒对自己不利的事实
|
| 就像电影的剪辑一样 把所有对方的错剪出来给大家看
|
| 等到另一半上来把他她它剪的帖出来时 根本就不像是同一件事
`----

Comments [0]

[emacs] 轻松计算税后到手工资

实例:

(salary-show 10000)
=> "税前(10000) - 个税(1225) - 四险一金(2245) = 最后到手(6529)"

数据均基于北京的标准。

elisp 代码如下:

;; ,----
;; | salary
;; `----

;; 保险
(defun salary-insurances (salary)
  ;; 养老、医疗(另加3元)、失业、公积金
  (let ((s salary))
    (when (> s 9966)                    ; 上限是 1196 左右
      (setq s 9966))
    (+ (* s (+ 0.08 0.02 0.005 0.12)) 3)))

;; 个税起征点
(setq salary-tax-base 2000)             ; 北京

(defconst salary-tax-table
  ;; from  to     rate 扣除额?
  '((0     500    0.10 0)               ; (0, 500]
    (500   2000   0.10 25)
    (2000  5000   0.15 125)
    (5000  20000  0.20 375)
    (20000 40000  0.25 1375)
    (40000 60000  0.30 3375)
    (60000 80000  0.35 6375)
    (80000 100000 0.40 10375)

    (10000 0.45 15375)))

(defun salary-tax (salary)
  (let ((table salary-tax-table)
        (i nil)
        (exceeded (- salary salary-tax-base))
        (rate 0)
        (to-substract 0))
    (while table
      (setq i (car table))
      (setq table (cdr table))
      (if (= (list-length i) 3)
          (when (> exceeded (car i))
            (setq rate (nth 1 i)
                  to-substract (nth 2 i))
            (setq table nil))
        (let ((low (nth 0 i))
              (high (nth 1 i)))
          (when (and (> exceeded low) (<= exceeded high))
            (setq rate (nth 2 i)
                  to-substract (nth 3 i))
            (setq table nil)))))
    (- (* exceeded rate) to-substract)))

(defun salary-at-hand (salary)
  "除掉个税、保险后真正到手的钱。"
  (- salary (salary-insurances salary) (salary-tax salary)))

(defun salary-show (salary)
  (interactive "n税前:")
  (message "税前(%d) - 个税(%d) - 四险一金(%d) = 最后到手(%d)"
           salary
           (salary-tax salary)
           (salary-insurances salary)
           (salary-at-hand salary)))

Comments [0]

picasa for mac, finally out!


> Very nice!
>
> 不过,好像不能从 web album import 诶,试了几次,总出现下面的出错提示:
>

Comments [0]

更早的 blog 在这里

Comments [0]

(hello, world)

does it support Chinese? let me try.

你好!

--
William

Comments [0]