linux 下 gvim 启动最大化

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

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

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

tags: , , | No Comments

30 个很酷的 linux 登录界面

  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. img title="Toxic" src="http://hehe2.net/wp-content/uploads/2008/11/toxic.jpg" alt="" width="500" height="312" />

    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!

tags: , | No Comments

华丽网页 flash 造

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

tags: , | No Comments

缓存 js 输出

我的 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>

tags: , | 2 Comments

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

.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 导航。

tags: | 2 Comments

Windows Vista install GNU/Linux


Windows Vista install GNU\Linux from LordGordon on Vimeo.

tags: , | No Comments

当大眼夹被移植到 vi

vi

tags: , | No Comments

向左走?向右走!

firefox 的内存泄漏在 firefox 3 中没有得到根本性的改善,浏览一些站点经常性会出现迟钝、假死,变的越来越慢,最终实在忍受不了只好 killall 之。而 opera 内存泄漏现象较少,浏览速度较快的大名我也听说过,今天闲下来试用了一下,果然不错,至少硬盘不会狂响了。

gentoo 下安装:

#不编译 qt,安装其静态版
echo 'www-client/opera qt-static' >> /etc/portage/portage.use
emerge -av opera

opera 的字体机制一直为人诟病,其实通过 css 样式表很好设置。

  1. 新建 css 样式表 $HOME/.opera/styles/user/user.css,在 查看 > 样式里启用;
  2. html,body,*{font-family:"Microsoft YaHei" !important;}

  3. 禁用 core font。

opera 的特点:

  1. 自带了邮件客户端、RSS 阅读、新闻组、IRC 功能,这点比 thunderbird 还要强;
  2. 自带了快速拨号功能,firefox 中有相应扩展可以实现;
  3. 能够同步书签、搜索历史、输入历史、笔记、快速拨号,这个功能简直太棒了,曾经还在犹豫离不开 foxmarks 的我已经被雷到了。

opera 的缺点:一些站点会出现不兼容的现象,firefox 下不会。

opera

opera

tags: , | 2 Comments

有效压缩 js

js 的压缩工具很多,被人们广为流传的是 Dean Edwards' Packerthe Dojo compressorYUI Compressor,经我试用,Dean Edwards' Packer 是有损的,the Dojo compressor 压缩率不及 YUI Compressor,所以让我选择的话,YUI Compressor 是最好的选择。

Linux 下用法:解压下载下来的文件,运行

java -jar yuicompressor-x.y.z.jar -o output.js input.js

tags: , | 6 Comments

两个雅致的 firefox 3 主题

  1. Full Flat
  2. Full Flat

  3. Naver
  4. Naver

tags: , | 2 Comments