Caspar Ant
2012年1月3日 | 分类: Programming | 标签:
使用git制作补丁时,经常发现补丁需要修改。如果只是最后一次commit需要修改,那就好办,用下面的方法就可以搞定:

$ git reset HEAD^
# edit edit edit
$ git commit -a -s -c ORIG_HEAD
$ git format-patch --subject-prefix="PATCH v2"

但是如果是一系列补丁中的中间几个补丁需要修改,该怎么办呢?

笨办法已经被删掉>.<

阅读全文...

7 条评论 (83 views)
2011年10月12日 | 分类: Z-Turn | 标签: , ,
CyanogenMod, the community Android mod, is officially supporting Motorlora Defy in the latest release CM7.1. Now the system seems running well on my device.

Why I want CM7.1 on my machine:

  • try something new
  • I need openvpn
  • 2.3.4 ROM for ME525+ not working well on my device :-(

I followed most of the instructions from the post in CM forum, except that I didn't install gapps-gb-20110828. For some reason, Android Market from 20110828 package continously got crashed once I opened the application. I tried with gapps-gb-20110613 and Android Market worked as normal, so I recommend using this version of gapps if you ever encountered similar issue like me.

阅读全文...

3 条评论 (406 views)
2011年7月16日 | 分类: No Category | 标签: , ,
已经进入我在Red Hat的第三年了,看到两年来这贫瘠无比的博客,决定把阶段总结发到这里来,挽回一下我那正在疯狂下滑的订阅数,嗯。回头看了一下以前的日志,去年这个时候竟然没有写总结,干脆两年的一起写好了。行文照旧会比较混乱,请将就将就。

刚以实习生身份进入Red Hat时,主要工作就是验Bug。记得当时很多Bug的描述都很不清晰,往往一个Bug就浪费一两天时间去分析。有的Bug还不能用脚本重现,只能物理接触硬件。有一次在机房里呆了一个下午,要用针头去戳机器上的一个小孔[1],戳了我整整一个下午。类似的折腾人的Bug仿佛是永远都不会消失,现在我还在跟他们打交道。

一个月后,老板让我了解一个测试套件LTP,之前是他一直在维护这个工具在内部测试平台上的正常运行,交给我之后他基本上就没再怎么管过它了(直到最近,他开始往LTP提交内存相关的测试代码,这是后话了)。我当时的基本工作就是定期把LTP的稳定发布版本移植回内部测试平台,然后如果运行出错,根据运行情况如果是LTP的问题,就写一些补丁来修复LTP运行时出现的错误。从此我才正式结束和开源项目社区浅尝辄止的试水活动,开始深入社区贡献代码。为LTP编写补丁对我的帮助很大,一方面跟编写补丁相关的工具,比如说git,都熟练掌握了;另一方面通过熟悉LTP的测试代码,了解了很多从用户空间测试内核功能的方法;而且我也学会了怎么在邮件列表里面跟开发者吵架:)

阅读全文...

5 条评论 (1,497 views)
2011年3月3日 | 分类: No Category | 标签: ,
最近在帮组里招人,不过一直没有招到合适的(去年校园招聘时候招到过一个合适的,结果被隔壁@GMoto组里给抢去了……泪了个奔的)。一直不停地在系统里刷简历,邮件列表里收简历,于是有些碎碎念就冒出来了。想到我不久以前也是简历那一头的角色,现在变成站在这一边的角色了,正好可以忆苦思甜,对比一下。丢在这里,大家凑合着看。

首先得先介绍一下我所在的公司的背景,因为不同公司对待简历有不同的风格。好多人都知道,我现在呆在Red Hat,就是那个跟某快递公司重名的做Linux的公司。至少我们研发部门这边,不会因为简历没写称呼没写落款就不看,也不会因为简历排版混乱就丢在一旁,甚至发现提交的是个Word文档,或者联系邮箱留了个带qq号码的qq邮箱也会认真的去看——只不过第一印象和心理上已经有些想法而已。一般来说,我们喜欢排版简洁的正文简历和pdf简历,如果能提交个odt格式的也能感觉出投简历的人确实是用心的。另外不是为了装X,我们要求中英文简历是因为,如果面试结果良好,通常把简历会转交给国外的同事看,决定是否进一步面试。

小结一下,不管简历样式有多糟糕,只要能打开,我们就会认真看。当然非常不幸地,这也是我觉得某些提交简历的同学是折翼的天使的原因。

阅读全文...

20 条评论 (5,065 views)
2010年8月20日 | 分类: Softwares | 标签: , ,
I have been keeping tracking of this RHBZ for long, and I am happy to see libfprint finally supports my fingerprint reader on T410. Seems that the original author Daniel(dsd) was very busy so that another developer in Red Hat, Bastien Nocera, took this project instead. He moved the libfprint git repo to freedesktop.org, with the newest patches applied. You can find the new git repo here, and new libfprint release(0.2.0) here. Bastien Nocera is also maintaining fprintd, "a D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus". The git repo and new release are located here and here.

Besides the RHBZ mentioned above, you should be able to get more information from this message in fprint mailing list.

I updated my gentoo overlay in github, too. You can emerge libfprint and fprintd after you synchronized this overlay.

2 条评论 (3,440 views)
2010年8月6日 | 分类: Softwares | 标签: , , ,
As I mentioned in the previous post, I couldn't get my fingerprint reader work in Gentoo. Now this problem has been solved. ;-)

Before starting, here're some useful links may help those who are suffering from similar fingerprint issues like me:

If you're using a fingerprint with USB id "147e:2016", you can have a look at this thinkwiki link, The "147e:2016" item is updated recently: a Red Hat Bugzilla URL added.

This RHBZ link tried to enable TCRD4C devices, but seemed that my fingerprint was another different type since it still did not work after applied all the patches attached.

------>8------ Cutting, Let's enable T410 fingerprint ------>8------

Using Fingerprint-GUI and UPEK SDK can easily enable fingerprint reader in T410. Fingerprint-GUI provides an integration of setup GUI, authentication plugin, PAM module and the UPEK library, all of the GUI parts are written with QT4 (I don't like it :-\), released under GPL-v3 licence. However, UPEK SDK library is EULA copyrighted and seems never to release the code to us.

阅读全文...

4 条评论 (4,072 views)
2010年7月2日 | 分类: Z-Turn | 标签: , , , ,
最近到手T410,先是折腾了几天把里面的正版Win7 Pro通过无损分区移到角落里,然后是装了个RHEL6.0用来做测试,最后重新开始折腾Gentoo。

这次没有纠结于选择哪个桌面环境上,我一点也不嫌弃GNOME的臃肿,于是装了个gnome-light。USE Flag把以前用过的拿过来修改了一下,顺便提一句,在我不用Gentoo的这段时间听说hal被干掉了,所以我也追风把hal标记给去掉了。

启动的时候使用grub2,本来打了915resolution补丁来使grub宽屏显示,但是打的补丁和grub-1.98似乎不是特别搭配,导致启动grub前后各有5秒停滞时间,加上grub启动过后仍然会有一个分辨率只有640x480的屏幕,我干脆就不用915resolution补丁了。使用grub2,配上ext4分区,就可以不使用initramfs了,关键在两点,一是内核中ACHI选项要编译进内核,二是kernel行参数中不要使用UUID。

说一下一些Thinkpad相关的配置:

一是声卡驱动。Thinkpad T410的声卡应该是CONEXANT的,但是选择这个驱动后内核还是不认我的声卡。最后只好选择了通用驱动。

二是hdaps,所谓的硬盘防震保护系统。portage里面相关的三个包,一个是hdaps模块,一个是GNOME的Applet,还有一个是OpenGL绘制的小程序,用来展示你的笔记本目前的水平状态。

阅读全文...

11 条评论 (4,802 views)
Page 1 of 1712345678910...Last »