yum的Traceback錯誤解決

就是這錯誤,據說是fastestmirror插件的錯。

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 345, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
    self.doSetup()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
  File "/usr/lib64/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

解決是這樣的,在/root/.bashrc裡加一行:

alias yum='yum --disableplugin=fastestmirror'

然後重新登錄一下。這句說的是把fastestmirror這個插件禁用,雖說是治標不治本的東西,但起碼yum又能用了吧。

Android 二维码软件

最近败了一部Google Nexus S。
其实吧,我很早就想败一部手掌游戏机(喂喂。。。这是手机吧 😐 ),但苦于钱包的身形跟他爹我是一个模子——瘦,也就把这想法深深地埋在心里 😳 。这不,刚败了部手机,就折腾着装游戏了,那个什么切水果、鳥炸猪、草僵尸啊之类(裝了這麼多遊戲,還是草殭屍耐玩,切水果也不錯,鳥炸豬就算了,我的腦子已經不會轉動了,玩不來這種要思考的遊戲)的之前只能看人家爽的东西也就装了个遍。喔,的確爽啊 😎 。
好的,言归正传,话说Android上的二维码软件很多,效果也比之前在诺基亚上使的QuickMark好的太多。但人心不足这个人的特性是不可能消除的,虽然好,但还能不能更好,于是在装了四五六种二维码软件后,淘汰剩下的就是这款——快拍。
其实吧,这么多个二维码软件都差不多,这个快拍优胜的地方在于他识别出二维码后能自动提取相关的产品信息,什麼產品的名稱啊,價格的,宅男逛超市時可以看看是不是划算買啊,而别的软件都是给个链接,你自己搜去这样。
android qrcode software

上面說的是一維碼,二維碼當然更不在話下了。
bingu.net qrcode bingu.net qrcode

對了這東西的網址:快拍