本地push远程更新的HEXO部署

材料: github bitbucket VPS

部署

  • vps上安装hexo并在/source/_post目录下建立git仓库,同步bitbucket上的私有仓库。
  • vps上的hexo配置文件中填写github站点的deploy信息。
  • 本地只保存/source/_post下的文件。本地不安装hexo,自己写程序生成md文件。
  • 将vps上的ssh public key生成并加入到github和bitbucket上。
  • bitbucket上的仓库增加webhook,当有push时会调用。这一webhook只是告之有更新,在vps上用来更新flag文件的时间戳。
    1
    2
    3
    <?php
    system("touch /home/wangfan/public_html/ghblog/hexod_flag");
    ?>

Read More

cuda7 安装 ubuntu14

操他妈。
以为驱动装的挺好的,今天一开机,卧槽,ubuntu进不去了,登陆界面是个黑屏。后来发现ssh可以登陆进去就放心了一些,至少数据没问题。然后开始找原因。
首先怀疑的就是显卡驱动的问题,由于事情比较复杂,设疑一个显卡驱动,还有个之前安装的cuda7,不清楚到底是这俩哪个问题。网上一堆说cuda装完或者显卡驱动装完就黑屏的解决教程,但是情况各异。有的是进桌面后黑屏,但是我的是登陆界面就黑了。
下面是过程,留着以后别忘了。

Read More

Hi, Magic Closet, Tell Me What to Wear!

所谓的中层表达就是一些服装属性。作为隐变量的SVM的隐含层结点。

To narrow the semantic gap between the low-level features of clothing and the high-level occasion categories, we adopt middle-level clothing attributes (e.g., clothing category, color, pattern) as a bridge. More specifi- cally, the clothing attributes are treated as latent variables in our proposed latent Support Vector Machine (SVM) based recommendation model.

Read More