Blog

  • svn log 不会显示刚刚提交的内容

     

    If you make a commit and immediately type svn log with no arguments, you may notice that your most recent commit doesn’t show up in the list of log messages. This is due to a combination of the behavior of svn commit and the default behavior of svn log. First, when you commit changes to the repository, svn bumps only the revision of files (and directories) that it commits, so usually the parent directory remains at the older revision (See 第 3.5.1 节 “更新和提交是分开的” for an explanation of why). svn log then defaults to fetching the history of the directory at its current revision, and thus you don’t see the newly committed changes. The solution here is to either update your working copy or explicitly provide a revision number to svn log by using the –revision (-r) option.

    如果刚刚提交就用svn log命令,则不会显示刚刚提交的内容。因为svn commit操作与svn log操作之间的联系,当提交的时候,只会改变当前文件或目录的版本号,svn log会抓取当前版本,而不会管新提交的。可以先svn update 再查看或用类似svn log -r 8 -v来查看。

  • ubuntu 官方源 | sources.list

    这里只记录官方源,就是以 .ubuntu.com 形式的源,其他源就不用了,还是官方的靠谱

    2012年3月追加11.10官方源

    deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
    deb http://security.ubuntu.com/ubuntu oneiric-security universe
    deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
    deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
    deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

     

    2012年3月4日追加12.04官方源

    deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

    如提示:
    W: GPG 错误:http://archive.ubuntu.com precise Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5
    则执行:sudo apt-key adv –keyserver keyserver.ubuntu.com –recv 40976EAF437D05B5

    清理 apt deb 缓存文件,释放磁盘空间

    apt-get clean
    
  • 2012-03-10主题3个

    A.在原则里面加一条 ,不要为了新鲜去升级系统和软件 ,那就是当定了小白鼠.每次升级 ubuntu.出错误一大堆 ,等着提交报告帮他们解决问题吧 ;支持开源也不能这么 奉献.等下下个版本出来以后 ,再升级是不错的方法.

    B.尽人事 ,就会心安理得 .不管结果怎么 ,时间是用对地方就好.

    C.积累知识 -转为见识 -形成胆识 ,都是一点一点的 ,得有耐心和决心.

  • kindle touch到手了,好小

    “即使你能确认什么是完美,也不要让完美成为好的敌人。更何况你不能确认。因为
    落入过去陷阱的不悦,你会在设计时因为担心自己的缺陷而无所作为。”
    —Greg Hudson,Subversion 开发者

    和以前的kindle3相比,好小

    操作起来没有什么不便,和kindle3用起来也没什么差别

    现在多多用它看书,发挥它的价值

    使用技巧:

    1.选定一个单词,弹出的窗口中选择more-> translation -> chinese simplified,即可翻译成中文。需要联网,它是自动去www.bing.com/translator来翻译。

  • 博客更换网址为jpuyy.com

    搞的太多太复杂就会混乱

    有一个gmail和一个博客,专心做点实事

    用google calendar安排好每天的日程

    contact : jpuyy.com(at)gmail.com

    🙂 EOT

  • 临终病人最后悔的5件事

    Bronnie Ware作了一个概括,有5件事是大多数临终病人最后悔的:

    ★我希望我当初有勇气过真正想要的生活,而不是别人希望我过的生活。

    这是所有后悔的事中最常听到的。你的生活方式、你的工作、你的感情、你的伴侣,其实我们多少人过着的是别人希望你过的生活,而不是自己真正想要的生活。

    ★我希望当初没有花那么多精力在工作上。

    Bronnie Ware说,这是她照顾过的每一个男病人会说的话。因为工作,他们错过了关注孩子成长的乐趣,错过了爱人温暖的陪伴,这是他们最深的后悔与愧疚。其实对于现在的职业女性来说,这也将成为一个问题。

    ★我希望当初我有勇气能表达我的感受。

    太多的人压抑自己的感受与想法,只是为了“天下太平”,不与别人产生矛盾。渐渐他们就成了中庸之辈,无法成为他们可以成为的自己。

    ★我希望当初我能和朋友保持联系。

    很多人临终前终于放下钱、放下权,却放不下心中的情感与牵挂。朋友也好,爱人也罢,其实生命最后的日子里,他们才是我们最深的惦念。

    ★我希望当初我能让自己活得开心点。

    很多人直到生命的最后才发现,“快乐是选择”。他们习惯了掩饰,习惯了伪装,习惯了在人前堆起笑脸。只有临终的时候才会发现,别人怎么看你又有什么关系呢。

    我自己也是错过了好多享受生活,享受爱,享受被爱的机会,人生到底怎么样才算精彩,开心越来越少;感觉时间过的越来越快。