Posted by huntxu @ 11:15 pm
Shelved under 个人日志

这篇日志已被密码保护。请在这里输入密码:


Permalink | 输入密码以查看评论
Posted by huntxu @ 12:07 am
Shelved under 个人日志

只灵飙一转,未许端详…

纳兰写的是梦,不过这里是写实…
纳兰写的是亡妇…这里也不是…

let it be~
一切随缘…

Posted by huntxu @ 6:21 pm
Shelved under linux, perl

装了300多个包,根分区就用了快到3G…
莫名其妙的,就写了个脚本排下序…
下午在图书馆坐到有些无聊,依旧没有美丽动人的邂逅额…3点半就收拾东西回来了,走了半个小时回到宿舍,路上享受阳光,走得很慢…今天天气很好,早上在图书馆晒太阳,超舒服,像只慵懒的小猫…很ease的一天,从天气,到心情…

  1. #!/usr/bin/perl -w
  2. use strict;
  3.  
  4. my %pacsize;
  5. my $sum = 0;
  6. chomp (my @pacname = `pacman -Qq`);
  7. foreach (@pacname) {
  8.     if (`pacman -Qi $_` =~ /([0-9]*\.[0-9]{2}) K/) {
  9.     $pacsize{$_} = $1;
  10.     }
  11. }
  12. my @package = sort {
  13.     $pacsize{$b} <=> $pacsize{$a}
  14.     or
  15.     $a cmp $b
  16. } keys %pacsize;
  17. foreach (@package) {
  18.     printf "%10.2f KB : %s\n", $pacsize{$_}, $_;
  19.     $sum += $pacsize{$_};
  20. }
  21. printf "%10.2f KB : Total size\n", $sum;

占的总大小大概在2.1到2.2G之间,根分区df -lh报使用了2.7G,估计是ext4的问题…最大的包是wesnoth,其次是neverball…哈哈~

Posted by huntxu @ 12:35 am
Shelved under fvwm, linux

超赞的东西,让qt程序用上gtk的engine和主题,统一界面,很早出来了,不过新装系统后又编译了下,出问题了…

QGtkStyle cannot be used together with the GTK_Qt engine.

google翻了一堆帖子…在aur里找到讨论内容…
http://aur.archlinux.org/packages.php?ID=16964

I got the same error (QGtkStyle cannot be used together with the GTK_Qt engine.) so I went through the qgtkstyle sources and this is the probem:
qgtkstyle checks for the current gtk style name, as it should NOT be “Qt” or “Qt4″. It first checks for the GTK2_RC_FILES variable which would point to some gtkrc files with the names in it, but most don’t have this env var, so it checks in gconf. Most people who don’t have many gnome things won’t ahve this key and that’s the problem.

This fixed it for me and it should fix it for anyone else (run it as user, to add a key to gconf. The name doesn’t matter at all, as long as it’s not Qt or Qt4.)

gconftool-2 -t string -s /desktop/gnome/interface/gtk_theme “Clearlooks”

不想装gconf,于是手动改了下…

[hunt@bubble ~]$ O_< cat .gtkrc-2.0 |grep gtk-theme-name
gtk-theme-name=”Aurora”
[hunt@bubble ~]$ O_< cat .xinitrc |grep GTK2
export GTK2_RC_FILES=”/home/hunt/.gtkrc-2.0″

错误解决!

上效果图…

主页:http://labs.trolltech.com/page/Projects/Styles/GtkStyle
编译依赖是gtk2-x11-dev和qt-4.4及以上
使用依赖是gtk-2.0及以上和qt-4.4.0及以上

Posted by huntxu @ 10:28 am
Shelved under fvwm, linux

[hunt@bubble ~]$ O_< cat .fvwm/desktop/fvwm2rc.misc |grep Ewmh
EwmhBaseStruts 0 0 24 24

Posted by huntxu @ 5:20 pm
Shelved under fvwm, linux
Posted by huntxu @ 11:09 pm
Shelved under 个人日志

无聊发图

Posted by huntxu @ 10:48 pm
Shelved under CLI, kernel, linux, misc

编译了2.6.28内核之后,摄像头突然不能用了…zc0301报no supported sensor found…
然后用内核树里新的gspca_zc3xx替换了zc0301,我的硬件比较特殊,刚好是0ac8:303b,需要在不编译zc0301的情况下才能用gspca的驱动…于是重新编译内核,不过有ccache,还是挺快的…
好了之后skype就花屏,结果发现2.6.27之后全用v4l2了,装了libv4l,用LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype算是起来了…
摄像头没什么好的截图和录像的软件,有人提醒我直接用mplayer就行了,于是就编译mplayer,找到了写法如下:

mplayer tv:// -tv driver=v4l2:input=0:width=640:height=480 -vo x11
//-vo mpegpes :file=./ -fps n是录像
//-vo png :outdir=./ -frames n -fps n就是截图...

P.S.:要mpegpes的输出在编译mplayer时必须–disable-dvb –disable-dvbhead,不然默认的会去找dvb卡…

Posted by huntxu @ 9:37 am
Shelved under gimp-docs, 个人日志

早上起来做作业…看了看书,发现国际金融也还不难,起码能做出来,哈~

gimp-docs的邮件列表上起来就收到Roman的邮件,把原来的xml都merge成po了…个人更习惯po文件的方式,无论用poedit还是vim…原来xml那套,没什么特别好的工具…有时觉得挺辛苦…总要用脚本把中英文切出来单独翻译再合回去…改为po那中文就只是中文了,简单好多,yep!!!

周二决定了去广大见那个用linux的外教…看看高手顺便练练英语了,哈哈…

期末了,要抓紧时间复习…好像书挺多还没看的,虽然也不是很难,但毕竟要坐下来稳着看书对我不是特别简单的事情…多跑图书馆吧…^^

其实最近心情又莫名其妙地低落了…有时候觉得挺辛苦…有时候又发现是自己想太多…把自己的事情做好才是真的…还真有点精神分裂的症状…

“据我看这脉息:大奶奶是个心性高强聪明不过的人,聪明忒过,则不如意事常有,不如意事常有,则思虑太过。”
可卿这段其实写得挺可怕的,就是让你不要想太多…不然容易肝木旺…症状及后果嘛…我虽然有医书但没看过…不懂…-_-||

Posted by huntxu @ 2:13 am
Shelved under 个人日志

准备明天去泡一天馆,临睡前来写写东西…
把ncurses的HOWTO打出来了,准备好好读,然后才开始gtk+…
双线,今天分析了一天的QQ协议,郁闷,大概才分析了100个包左右,有些复杂…@_@
xfce的commiter也终于把我的翻译给搞进去了…等到有些郁闷,不过倒是挺热心的,还知道我之前发过别的patch…叫我再发一次,不知道hotmail怎么了,抱怨非plain text,但我确实只发了文本和附件呀…怪怪的…不过不想换…
期末考要来了~~~虽然今年只有3科+英语,投资马马虎虎能懂,没弄懂原理就只是能做习题…郁闷…国贸实务应该没问题,上课比较认真的,不过貌似还有一篇关于风险的文章要写…国际金融目前看来比较危险,汇率算得好慢…刚好剩一个月,看来要魔鬼训练了…
加油加油~~~
情绪不错,不像平常的下半月巨蟹座,^_^…
让自己太闲不是好事…
那天在国外网站测智商,有153,^_^…嘿嘿…看来我还不笨…
继续努力!

Next »