software wars

November 26th, 2008 / No Comments » / by Centeur

software wars

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags:

免费 linux/unix shell 账号

November 25th, 2008 / No Comments » / by Centeur

一些免费的 linux/unix shell 账号,对于想了解 linux 命令的 windows 用户无疑会有很大的帮助。

  1. http://freeshell.org
  2. http://sdf-eu.or
  3. http://www.grex.org
  4. http://www.nyx.net
  5. http://m-net.arbornet.org
  6. http://www.xox.pl
  7. http://www.rootshell.be
  8. http://www.daforest.org
  9. http://www.polarhome.com
  10. http://www.titanix.net

更多账号见这里

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

dlopen of /usr/lib/dri/i915_dri.so failed

November 24th, 2008 / No Comments » / by Centeur

启动 X 时出现该错误,运行 LIBGL_DEBUG=verbose glxinfo 发现找不到 i915_dri.so 这个库文件,遂将目标锁定于 media-libs/mesa,才发现 mesa 好像更改了 USE。

解决问题:

在 /etc/make.conf 中作出变更,重新 emerge mesa
VIDEO_CARDS="intel vesa"
(原先是 VIDEO_CARDS="i810 vesa")

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: , ,

wordpress 迁移到新域名后数据库的修改

November 21st, 2008 / No Comments » / by Centeur

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

用 linux 使人肥胖?

November 21st, 2008 / No Comments » / by Centeur

tshirt

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags:

linux 下 gvim 启动最大化

November 18th, 2008 / No Comments » / by Centeur

通俗情况下首先考虑到的是利用 wmctrl 来控制,这里已经给出了答案。

如果桌面环境是 openbox,可以在 $HOME/.config/openbox/rc.xml 中添加如下内容来达到目的:

<applications>
<application name="gvim" class="Gvim">
<maximized>true</maximized>
</application>
</applications>

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: , ,

30 个很酷的 linux 登录界面

November 16th, 2008 / No Comments » / by Centeur

  1. Somatic
  2. By: pokemonjojo2

  3. Clear Crisp Morning
  4. By: penseleit

  5. Tux vs. MS
  6. By:  alcapcom

  7. Doe
  8. By: xyzwqt

  9. Blue Swirl
  10. By: darkknight9

  11. Magic Book
  12. By: gHiRo

  13. Pixel Girl
  14. By: fabiand

  15. Super GNOME Bros
  16. By: linuxville

  17. Sunshine
  18. By: paullinux

  19. Relaxing Water
  20. By: cooper14

  21. Still Alive Sunshine
  22. By: savagehp

  23. Soft Flower
  24. By: solarfields

  25. Avio
  26. By: tobain

  27. Sunset
  28. By: Dav87

  29. Arc Colors
  30. By: perfectska04

  31. Toxic
  32. By: guerrerocarl

  33. Clean
  34. By: Simoo

  35. Porum
  36. By:linuzoid

  37. Sweet Darkness
  38. By: Snooky (distro logos can be changed)

  39. WorldKDM
  40. By: codicem

  41. LoveKDE
  42. By: invernomuto

  43. Peace
  44. By: nico67

  45. Impressions
  46. By: linuzoid

  47. Skyline
  48. By: Soravis

  49. KdmLinux
  50. By: Codicem

  51. Earth Abstract
  52. By: repli2dev

  53. True Nature
  54. By: Stanlus

  55. KDM Retina
  56. By: codicem

  57. Xmas KDM
  58. By: thio83

  59. Flamenco Modern
  60. By: twi

  61. Deep
  62. By: mPtTybOB

via Royal HeHe2-ness!

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

华丽网页 flash 造

November 14th, 2008 / No Comments » / by Centeur

这里是一个很华丽的网页,运用的都是 flash 技术,我不得不坦率的承认,我被雷到了,页面如此漂亮、精细度保持的这么好,速度还这么快,看来 swf 文件优化的不错。

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

缓存 js 输出

November 8th, 2008 / 2 Comments » / by Centeur

我的 elsewhere 页面通过加载 friendfeed 的 js 文件展现了我在互联网上的足迹,包括我在 twitter 上的信息、在 del.icio.us 上收藏的书签等。但这个 js 文件的输出内容比较大,以至于每次浏览 elsewhere 页面都会出现短暂的停顿,所以我将其进行了缓存,每1小时更新一次,以减少浏览的不良体验。

<?php
$num = 40;
$uri = 'http://friendfeed.com/embed/widget/centeur?v=2&amp;num='.$num.'&amp;hide_logo=1&amp;hide_comments_likes=1&amp;hide_subscribe=1&amp;width=515';
if (!$output = wp_cache_get('friendfeed', 'js_cache')){
if (!class_exists('Snoopy')) include_once(ABSPATH . WPINC . '/class-snoopy.php');
$snoopy = new Snoopy;
$snoopy->fetch($uri);
$output = $snoopy->results;
wp_cache_add('friendfeed', $output, 'js_cache', 3600);
}
?>

<script type="text/javascript"><?php echo $output; ?></script>

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

css 实现鼠标悬浮透明度变化

November 7th, 2008 / 2 Comments » / by Centeur

.post-nav {
opacity: 0.2;
-moz-opacity: 0.2;
filter: alpha(opacity=20);
}
.post-nav:hover {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
}

比较简单,利用伪类 hover 实现的,效果见我上面的 post 导航。

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: