Tips in Aggregate

都是些很零碎的tips,涉及到linux, wordpress, css, php, English … 选择性阅读吧!

Douban and PHP

按照之前QQ签名秀的原理把豆瓣的个人广播系统也给提取出来了,效果请见此test页面

使用方法是把以下代码添加到你的页面里:

<script type="text/javascript" src="http://punkid.org/glade/douban/request.php?userid=<strong>username</strong>&numbers=5"></script>

其中userid后面跟的是你的豆瓣用户名,numbers后面是显示条目数(最多10条)。至于怎么polish这个douban的miniblog纯粹是你的CSS活。对了,输出编码是UTF-8。

PHP tips: 用addslashes这个函数可以对字符串进行转义。
Read More

Ultimate Guide to Manage Your iPod under Linux : Revised

Ultimate Guide to Manage Your iPod under Linux

I bought myself an iPod Nano (Product)red by the end of last year, it was cool. But the biggest problem i confront is how do i manage my iPod music library and sorts of things under Linux, since I’m a linux daily-user, i merely switch back to my Windows XP system. What’s more, i really DISLIKE using the iTunes under Windows, it’s just not so handy to me, as well it costs too much memory. So, with Google’s help, eventually i found some good solutions to make my iPod work under Linux. And here comes the guide, i’ll break it down into several sections, enjoy it!

Note: I’m using Gentoo linux, and KDE DE, but i presume things will be much even easier if you’re using the Everyone-Loves-It (k)ubuntu linux distro (I’ll make some notes below each paragraph, letting you ubuntu users know what to do)
Read More

Ultimate Guide to convert DVD to iPod using PQ DVD to iPod Converter. We show you how to convert and transfer DVDs to iPod with your favorate movies. DVD to iPod software reviews and everything else related.

Why I <3 Gentoo and Its Community So Much

今天,总算是把Gentoo下困扰我N久的一个问题给解决了,把经历分享下,以便与我同命相连的人google到这篇日志。

主要症状是这样的: 使用华硕K8N4-E/Deluxe主板的,无论是使用Gentoo LiveCD 06/07版还是自编译内核(>2.6.13)启动,都无法识别到SATA硬盘设备,必须采用降级内核的方式或者使用Gentoo LiveCD 2005才能正常识别,而在Ubuntu/Fedora Core (2.6.2系列kernel)下却没有这个问题。只要是大于2.6.13的内核无论是gentoo-sources, genkernel, vanilla-sources, mm-sources, sabayon-sources甚至Ubuntu和Fedora的kernel都没用。我曾经在论坛里发过帖子询问,当时没太在意,以为降级内核到2.6.13就算解决了,但是随便kernel的不断更新,问题越来越多了,udev不能用最新的,与之而来的就是hal不能自动挂载移动储存设备,nvidia驱动不能用100系列版本,否则退出X会花屏,xorg-x11不能用7.3,因为没有100系列的nvidia驱动配合,这么多问题差点让我被迫转投ubuntu了,还好最终还是选择向Gentoo Community寻求帮助。
Read More

Gentoo 使用笔记 Part 6

愈发的发现用电脑离不开linux了啊,尤其是gentoo linux。在Windows下我竟无聊到只能玩CS,然后用个网银了…此笔记没有长篇大论,只分享一些日常使用Gentoo Linux的Tips (Or maybe you’ve known that for decades :D )。

使用eix来检索你的portage

Gentoo的Portage越来越庞大了,平常使用命令emerge -s package来查找软件包实在是要等很久。建议安装eix,它通过检索portage来实现包的快速查找,而且检索功能十分强大,连overlay的包都能找。

eselect is powerful

eselect 是个非常方便的工具,有了它不用再手动给gentoo-sources做/usr/src/linux链接了,不用再为更新profile而重做make.profile的链接了。使用#eselect 查看有多少modules可以使用。然后输入#eselect module-name list来查看该module的属性。例如我要查看我的profile:
Read More

You Might Know

This site is powered by WordPress CMS & hosted by Dreamhustle Dreamhost.

And the theme is inspired by WP Typo and completely crafted under Gentoo Linux with VIM editor.

Sponsors

Monthly Archives

Search