Ggarlic\’s Header Image

流水帐

最近rp值太低,割掉了一个小肿块,缝了3针,那玩意竟然长到了太阳穴上!!!

恩,openbox被我扔了,回到gnome,因为一过半小时准花屏,见鬼了。感觉ubuntu的gnome那叫个慢啊,没有我自己设定的那几个快捷键,没有openbox的速度(起码是心理上),没有conky,没有自己的菜单,没有….没有我定制的一切内容,艹,不爽啊

趁着回到gnome,试了试gnome-do的docky(openbox下不想加载任何多余的程序),还行,唯一吸引我的地方就是集成了twitter,方便死了,大爱啊,其他没什么感觉了。

最近电驴搬专辑有点疯狂,感觉移动硬盘有点小了,罪过啊,找时间买个大点的去
last.fm的服务器一如既往的卡的要死要活的,歌都听不好,非要我半夜听是不

ps:刚刚想到花屏可能是xcompmgr的问题,明天X掉试试

一个猥琐的下载图片小脚本

比较八卦,download某网站上章子怡跟男友泳装照片的,总共81张

体形真不怎么好,有几张竟然是平胸.

  1. #!/bin/bash
  2.  
  3. for  i in `seq -w 1 81`
  4. do   
  5.  
  6. axel  http://www.x17online.com/gallery/galleries/ZhangZiyi010309_X17/full/ZhangZiyi010309_$i.jpg
  7.  
  8. done

PS 1:本人西安电信的宽带,下载十分慢
PS 2:看评论十分恶心,不少的racist

就差一项

第26届格莱美音乐GRAMMY获奖名单
The 26th Annual Grammy Awards 1984

最佳乡村组合:Alabama《The Closer You Get…》
最佳摇滚女艺人:Pat Benatar《Love Is A Battlefield》
最佳流行女艺人:Irene Cara《Flashdance…What A Feeling》
最佳新人:Culture Club
最佳音乐录影带长片:Duran Duran 《Girls On Film/Hungry Like The Wolf》
最佳乡村男艺人:Lee Greenwood《I.O.U.》
年度最佳唱片:Michael Jackson 《Beat It》
年度最佳专辑:Michael Jackson《Thriller》
最佳流行男艺人:Michael Jackson《Thriller》
最佳制作人:Michael Jackson & Quincy Jones
最佳R&B男艺人:Michael Jackson《Billie Jean》
最佳摇滚男艺人:Michael Jackson《Beat It》
最佳R&B女艺人:Chaka Khan《Chaka Khan》
最佳R&B组合:Rufus And Chaka Khan《Ain’t Nobody》
最佳乡村女艺人:Anne Murray《A Little Good News》
最佳摇滚表现:The Police《Synchronicity》
最佳新乡村单曲:Ronnie Milsap《Stranger In My House》
年度最佳新歌:Sting《Every Breath You Take》

84年的MJ就差一个年度歌曲就大包大揽了,sting的那个也不错

备忘2008-12-28

tint2 0.6编译依赖
libpango1.0-dev libglib2.0-dev libcairo2-dev libimlib2-dev libx11-dev x-dev

root主题跟一般用户不一样:
将~/.themes ~/.icons链接到/root下

gmlive:
libgtkmm-2.4-dev libglademm-2.4-dev

Gaia Nova主题不断显示没有装主题引擎(nnd,我怎么会没装这么常见的引擎!?):
http://ubuntuforums.org/showpost.php?p=6148824&postcount=14

style “unstyle”
{
engine “”
{
}
}

The style “unstyle” is meant to prevent Sodipodi from crashing while opening the Object-Style dialog. As you can see the engine “”’s are empty. And that is what Appearance Preferences is complaining about: “This theme will not look as intended because the required GTK+ theme engine ” is not installed.”. The solution is simple. Fill the “” with a ‘known’ (i.e. installed) engine, e.g. pixmap, so that the code looks like this:

style "unstyle"
{
engine "pixmap"
{
}
}

自动mount我的ntfs:
安装ntfs-config,启用内部写

报怨一下,lastmp传记录的延迟太严重了,我在怀疑我要是大量听beatles的比较短小的歌曲的话它会漏掉多少记录

备忘

vim总是给我惊喜,shift+k查看man

apropos COMMAND根据关键字查找命令

新的ps1变量

PS1=”\[33[1;31m\]\u\[33[0m\]||\[33[1;36m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed ’s: ::g’)files \[33[1;31m\]\w \[33[0m\]=> \[33[0m\]”

发件人 link

后悔买便宜的路由器了

宿舍当初上网,图便宜,买了个便宜的杂牌路由器兼交换机
最近vbox装opensolaris,在主机上用iis搭了个ftp服务器与虚拟机传文件,可是文件只要超过120MB每次都不能传完,明显是垃圾的交换机缓存不够,换到server-U,限制了一下,以极慢的速度传,不爽啊,不爽啊

前几天去同学那里用darkhttpd传文件,也是这个问题

还是实验室的cisco 2750好 :D

conky备份

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 1

#shades
draw_shades no

#position
gap_x 6
gap_y 2
alignment top_left

#behaviour
update_interval 1

#colour
default_color 8f8f8f
#default_shade_color 000000
own_window_colour 262626

#font
use_xft yes
xftfont dejavu sans:pixelsize=10

#to prevent window from moving
use_spacer no
minimum_size 1268 0

#mpd
mpd_host localhost
mpd_port 6600

TEXT
${voffset -1} Cpu:${color e0e0e0}${cpu cpu0}%,${cpu cpu1}%${color e0e0e0} ${color}RAM: ${color e0e0e0}$mem / $memmax ${color}| ${color }TEMP: ${color e0e0e0}${execi 5 cat /proc/acpi/thermal_zone/TZS0/temperature | awk {’print $2 “℃”‘}} | ${execi 5 cat /proc/acpi/thermal_zone/TZS1/temperature | awk {’print $2 “℃”‘}} ${color}| Up: ${color e0e0e0}${font}${uptime_short} ${color}|${color} Net: ${color e0e0e0}${font}${downspeed eth0} Kb/s↑ ${upspeed eth0} Kb/s↓ ${color}| ${color}Root: ${color e0e0e0}${font}${fs_free /} ${color}| Email: ${color e0e0e0}${execi 300 python ~/scripts/gmail.py} ${color}| Mpd: ${color e0e0e0}${font}${mpd_smart} ${color }| PROCESS/CPU: ${color e0e0e0}${top name 1}${top cpu 1} ${color }| PROCESS/MEM: ${color e0e0e0}${top_mem name 1}${top_mem mem 1} ${color }| BAT: ${color e0e0e0}${battery}

对比阅读google与百度

百度的声明与google的Ten things Google has found to be true。
对于百度我已经无话可说,成天喊着支持国产,以你的所作所为让我们怎么支持你!

先是google的:

1.Focus on the user and all else will follow.
2.It’s best to do one thing really, really well.
3.Fast is better than slow.
4.Democracy on the web works.
5.You don’t need to be at your desk to need an answer.
6.You can make money without doing evil.
7.There’s always more information out there.
8.The need for information crosses all borders.
9.You can be serious without a suit.
10.Great just isn’t good enough.

然后是百度的:

针对日前某媒体报道“百度遭遇反垄断调查”,百度作如下声明:

我们的天条:用户体验第一

一、与垃圾短信干扰人们生活一样,互联网上的垃圾信息、垃圾邮件、流氓软件也在影响着人们正常使用网络。在搜索引擎上排名的高低,可以产生巨大的商业价值,于是大量的垃圾信息在互联网上滋生,目的就是通过搜索引擎获得商业利益。但这些垃圾信息,严重的影响了人们正常使用搜索引擎。

二、对垃圾信息的处理能力,是搜索引擎的核心竞争力。百度每年在反垃圾信息领域的技术投入,超过了全球中文搜索引擎市场的总和。我们凭借自主知识产权权术,在中文搜索领域取得了一些成绩,然而我们深知,搜索技术的一点松懈,用户就会在几秒钟内离开我们,所以百度的天条是:用户体验第一。

三、 是否被搜索引擎收录,与搜索引擎的公正性无关,与搜索引擎的盈利模式无关。百度会拒绝收录一些网页,唯一的原因只有一个:收录这些信息不能为百度的用户提供良好的搜索体验。此外,出于技术原因,搜索引擎也不能确保收录所有网页。

四、百度目前收录的中文网页数以百亿级来计算,如果将这些网页用A4纸打印出来相连,能绕地球超过100圈。搜索引擎面临的最大技术难题就是如何从这些浩瀚的信息中迅速找到用户最需要的那一页。然而,由于巨大商业利益趋使,互联网上垃圾信息的增长速度远远高于有价值的网页增长速度。如果搜索引擎不能打赢与垃圾信息的这场技术战争,搜索产业就会被垃圾信息摧毁。

五、我们无法透露媒体报道中的具体案例是被百度搜索引擎拒绝收录,或者是因为技术原因的限制暂时不能收录。为了打赢搜索引擎与垃圾信息之间的技术战争,搜索引擎不能向公众披露收录网页的技术标准,因为一旦垃圾信息制造者掌握了这些技术标准,用户就会被垃圾信息淹没。

百度公共关系部

2008年11月10日

mpd的last.fm插件

刚打完题目就发现是个歧义句 :D

如无特别指出,插件指的是上传歌曲记录的那种插件,不是收听lastfm音频流的插件

找到两个,lastmp跟lastscribble,两个ubuntu 8.10源里都有,直接

$sudo aptitude install lastmp

或者

$sudo aptitude install lastscribble

现在用的是lastmp,其实是lastsubmited的一个plugin,所以安装lastmp会装上lastsubmited,lastsubmited专注于向lastfm上传歌曲信息,用插件来支持各个播放器。如果lastmp不能记录的话,这里的信息可能有帮助

lastscribble我鼓捣了半天都不行,索性扔掉

ps:无意间发现的,mpdtoys,提供各种好玩或者实用的功能,包括下面这些工具:
* mpstore – store and transfer mpd state between daemons
* mprev – reverse the mpd playlist
* mpgenplaylists – generate mpd playlists for each subdirectory of music
* mpfade – fade mpd volume in or out
* sats – mpd stop after this song
* mpskip – emulate a skipping record
* mptoggle – single button control for mpd
* mprand – play a random playlist
* mpinsert – insert song after currently playing song

--------------------------愤怒的分割线--------------------
搞不懂为什么www.musicpd.org被封,难道这个播放器不和谐?或者wikia有问题?
————————————————greetings from arch——————————–
最近换到了arch

yaourt -S lastfmsubmitd lastmp

很爽,吼吼,可是第二天我再敲yaourt lastmp就什么显示都没了,灵异事件?

装完lastfmsubmitd是有提醒注意事项的,如果你像我一样没有注意,那么看这里,全文的install:
Installation
============

1. Run ``./setup.py install`` as usual.

2. Create a user/group for the daemon(s) (I use lastfm:lastfm), and
the following directories:

* ``/var/log/lastfm``
* ``/var/run/lastfm``
* ``/var/spool/lastfm``

Make them writable by whatever user (or group) is going to be running
the daemon(s) and/or music players. ``doc/install-example.sh`` shows
how this should be done on most systems.

3. Create a configuration file, ``/etc/lastfmsubmitd.conf``. This is a
regular Python ConfigParser file, and should look like::

[account]
user: decklin
password: ********

It can also optionally contain any of these sections:

[server]
url = http://post.audioscrobbler.com/

[daemon]
sleep_time: 5
debug: False

[paths]
log: /var/log/lastfm/lastfm.log
pidfile: /var/run/lastfm/daemon_name.pid
spool: /var/spool/lastfm