• 18
  • Apr

装了12.04的ubuntu, 发现越发的受不了Unity。终于下决心把WM换成了在arch时使用的组合openbox + tint2 + gmrun

换过之后桌面的启动速度在我的老爷T60上基本上算秒起了,Unity基本要4秒左右。老的快捷键和组合全都在,完全不需要时间另外配置,和用arch时无二

  • 07
  • Apr

安装ubuntu 12.04时卡在 “Removing conflicting operating system files”阶段不动,差一点就换了debian。网上查了一下可以按如下方法解决:

1) Install Ubuntu on the /(root) partition, and mount your /home partition as /home2

2) When the installer has finished, BEFORE restarting, edit /media/[partition]/etc/fstab to change the home partition to be mounted as /home instead of /home2

3) Delete the current /media/[partition]/home directory, and move the empty /media/[partition]/home2 in its place

4) Restart

多说一句就是我在重启之前修改 fstab 时发现安装的盘并没有挂在/media下,手动挂载一下然后修改文件,删除 /home 将/home2改名成 /home

参考:https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/924660 #3 

  • 06
  • Nov

 feh --bg-center "$( ls -l ~/wallpapers/* |shuf |head -1|sed s-[^/]*-- )"

放到crontab里可以实现自动随机更换,放到启动项里可以实现每次开机随机壁纸。

参考:http://www.linuxsir.org/bbs/showthread.php?t=352590

  • 13
  • Sep

If you are using "SELECT DISTINCT" for pager_query you may get wrong pagination (more pages than you expected).

Look into the function pager_query, we can find the statements:

if (!isset($count_query)) {

    $count_query = preg_replace(array('/SELECT.*?FROM /As', '/ORDER BY .*/'), array('SELECT COUNT(*) FROM ', ''), $query);

  }

$count_query is the fourth optional argument of pager_query. If you used "SELECT DISTINCT" in your query and not set this argument. The "SELECT DISTINCT" will be replaced by "SELECT COUNT(*) FROM" and you will get wrong number of total items, so does total pages.

So the fourth argument is needed if you have "SELECT DISTINCT" in your query.

  • 08
  • Sep

 刚放出来没几个小时就被告之有了一个一年多的,目标和功能很类似而且已经成熟的项目Diaspora。搜了一下,发现36kr早有报道。36kr是看的,但不是每篇都看,这个正好漏掉。百度百科上也有相关词条。

从这个项目目前的热度和状态来看,这个东西貌似目前前景不大。有评论说它来的晚了,我倒是觉得它来的还有点早,时机还未成熟

相关文章:

http://en.wikipedia.org/wiki/Diaspora_(software)

http://www.36kr.com/p/7297.html

http://www.36kr.com/p/4258.html

http://baike.baidu.com/view/4885448.htm