Octopress調教メモ之二

這次把LinkWithin的連結稍微改了一下,把他弄成獨立頁面,並且我發現到如果改了 theme 之前 theme 的東西還是會留下來變成垃圾,但是會不會一起generate老實說我就不得而知了,但是看起來好像不會。

Read More ...
Wed Sep. 12 2012
Comments

Octopress調教メモ之一

這篇主要是調教atom.xmlRSS變成不要全文顯示外加加上LinkWithin有興趣的文章

Read More ...
Mon Sep. 10 2012
Comments

rake的tips

參考至Some Octopress Rake Tips

剛開始用Octopress的時候感覺上速度還蠻快的,但是在將WP的文章匯入的時候就發現到,每一次的generate就會發現到速度會少許的減慢,好像每一次都會對所有的文章做一次的編譯,造成每次要preview時速度都非常慢,其實裏面有幾個有用的指令可以提昇速度。

Read More ...
Sat Sep. 8 2012
Comments

Hello Octopress

我把本站的網址改了:http://www.renn999.twbbs.org
RSS Feed:http://feeds.feedburner.com/renn999

算一算從開始用Wordpress(以下簡稱WP)已經幾年了,我只既得我一開始事由社團教學所認識的,那時沒有記錯的話是從2.3版開始,算是非常晚了那時會自己架站最主要就是看上自己架的 Blog more flexible 而且比較能炫耀,並且整合性高,也可以自己架設相簿整合成自己的一套系統,但是經歷了一堆儲存裝置上的大地雷,以及不少次的歸零重整,外加程度上的成長,反而讓自己越來越懶,我懶得改一大堆東西,外加對於 Wordpress 這已經大到可以稱怪物的東西,以及一大堆如雞肋般的功能,還有裝太多的 plugin 拖累系統的效能,那個editor真的爛到我想殺人,都讓我非常的詬病。老實說XDite大在Why Octopress?中已經把所有的重點已經講完了,真的身同感受啊!

Read More ...
Fri Sep. 7 2012
Comments

[Ubuntu] Solve The Realtek USB Multi-card Reader On Laptops

This is the first time I write post in English, so if there are something wrong in my post, please notice me, thanks.

I have a laptop Asus A43SV, I do not like the windows7, so I install the ubuntu on it. But there are "Some" problem, after I finish install.

First, Elantech touchpad recognized as PS/2 Logitech mouse, but you can find Elantech models in this article.

To solve the Realtek USB multi-card reader On my laptops, I have google it for a long time until yesterday. I find freechelmi said that he mailed to Realtek in this article, and RealTek sent him a driver. This driver works on my laptops.

Now, Asus Fn keys F9-F12 and some special keys stile not work, I hope ubuntu can support it in next release...

Thu Jul. 21 2011
Comments

ubuntu11.04使用感使用感外加問題解決

為11.04已經發布了,當初還在想說應該完不到了,但是因為了某些原因,提早結束了Online生活,就理用了讀書所剩餘的時間把完了一下,但是感覺上比較大的不同只有unity外加一堆預設程式被換掉,但是還是用不大習慣。 外加,顯卡的需求好像變得比較高了...= =a,但是這不是重點,重點是解決問題的快感啊。 首先就是unity的程式分類,當我要新增一個程式到選單時,沒有辦法放到指定的位置,只職能在所有程式中找到,unity的設定不是使用主選單的分類,而是是用每個~/.local/share/applications下的.desktop設定檔中的Categories來分類的,所以說只要分類對了就可以在unity下的分類中看到。 另外一個就是影片縮圖,因為我都習慣把Totem拔掉,因為他真的貧弱到不行,但是拔掉之後又沒有影片縮圖,我還是利用了mplayer-video-thumb,但是因為1.4.1版的問題非常大...XDrz因為這是要totem存在下,才會縮圖,所以說他讓我改了一堆東西之後才可以用QQ,我是結合了1.3.2的設定,但是看到了比較高桿的用法在這,來為強者鞠躬吧...<( )>

Tue May. 10 2011
Comments

[公告] server硬碟壞掉

老實說,有一段時間沒有更新blog了,但是久久的更新,竟然是這一件壞消息...OTZ。

就如標題所說的,因為有的服務是我自己寫得程式,但是我犯了一個不可饒恕的錯誤...就是我忘記備份php程式了,造成有的服務可能無時間表的停止服務,因為這個站是我緊急的跟我們一位社團學長借的空間,因為有所限制,所以說短時間內我也不大想要把剩下的服務弄上去。

在此公告,老伯繪師收集區停開,因為老早之前我就有打算要整個翻修內部程式碼,但是都懶得去動他,剛好趁著硬碟壞掉算是個總結吧...OTZ,但是不要擔心的是說資料庫還留著,但是程式就881了。

感謝大家這幾年來對此站的照顧,在這裡除了對一些編輯者至上萬分的歉意以及感謝 <( )>

Wordpress升級jQuery from 1.4.2 to 1.4.3

jQuery最近釋出了1.4.3,當然在翻wordpress trac的時候剛好翻到有人釋出了更新到1.4.3的patch。我則手動的將其升級了上去,如果有程度的可以直接看ticket/15135

Read More ...
Tue Oct. 19 2010
Comments

mysql轉sqlite

前幾天剛好遇到這個問題,不要問我說為啥我要轉,只是突然想到...XDrz

可以參考這裡sqlite - Converter Tools

當然我的作法是將步驟分開來作的

先將sqldump出來

1
mysqldump -u'username' -p'password' --compact --compatible=ansi --default-character-set=binary 'databasename' > database.sql
Read More ...
Wed Aug. 11 2010
Comments

初學python

這是利用plurk api簡單寫得東東,主要是要搞懂json的用法:p 到時候先搞定cookie的儲存..OTZ

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
#-*- coding: UTF8 -*-
#

import logging, os, sys, re, time
import urllib,urllib2,cookielib,htmllib,formatter
import sgmllib
import json

def main():
  opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
  get_api_url = lambda x: 'http://www.plurk.com/API%s' % x
  encode = urllib.urlencode


  fp = opener.open(get_api_url('/Users/login'),
    encode({
      'username': username,
      'password': password,
      'api_key': api_key ,
    }))
  fp.read()

  fp = opener.open(get_api_url('/Timeline/getPlurks'),
    encode({'api_key': api_key}))
  dumps = fp.read()
  dumps = json.JSONDecoder().decode(dumps)
  for a in dumps['plurks']:
    print api_key
    user_dis_name = dumps['plurk_users'][str(a['owner_id'])]['display_name']
    print ("%s"%user_dis_name)+" "*2+a['qualifier_translated']+":"
    print " "*4+"%s"%a['content_raw']

if __name__ =='__main__':
  api_key = 'api_key'
  username = 'your_username'
  password = 'your_password'
  main()
  sys.exit()
Thu Jul. 22 2010
Comments