筆記
不懂裝懂,永世飯桶!
2012年4月30日 星期一
七二法則
›
七二法則是用於計算在某段時間之內成長到原有價值兩倍的方法。 倍數成長年限=72/成長率 真是這麼神奇? Code: import math print (('%5s %5s %5s') % ('%', '72/I', 'Ac...
2012年4月23日 星期一
Some install record concerning mod_wsgi on gentoo
›
Target: Using Virtual Server (I called it prototype :) ). Request modify the hosts file /etc/apache2/modules.d/70_mod_wsgi.conf # WSGISocket...
Run Home bashrc
›
all below lines attached the file /etc/bash/bashrc #enable personally bashrc if [[ ~/.bashrc ]] ; then source ~/.bashrc fi Example #!/bi...
Kick user/ terminal on linux
›
## show user ~# w ## ## kick terminal ~# skill -KILL -v pts/0 ## ## kick user ~# skill -KILL -u user ## ## Stop/Pauseuser activites ~# skill...
Enable key pad in termal
›
/etc/profile.d/term.sh #!/bin/bash # This program change term to vt220 for enable num pad on terminal # The side effect is the page up/down ...
The quicker way of run cmd with administrator rights
›
Press Win Key Type cmd Combine to press Ctrl + Shift + Enter Refer:http://fasterdata.es.net/host-tuning/ms-windows/
2012年4月22日 星期日
Edit remote *nix text file on windows using Notepad++
›
Notepad++ with the useful plugin - NppFtp Step: Plugin->NppFtp->Show NppFtp windows On NppFtp windows, click 'Gear' (Settings...
2012年4月18日 星期三
Save power through dynamic frequency
›
the program split in 2 part: a program set something and call the script to manage the frequency /etc/local.d/powerSave.start #!/bin/bash #R...
2012年4月15日 星期日
Calculate range number either prime number
›
import math for n in range(2, 100): o = n s = set() i = 2 j = math.floor(n) while i < j: if o % i == 0: s.add(i) o //= i ...
2012年4月13日 星期五
Use tty1 to see log
›
/etc/lilo.conf add below line under the default. It mean use 800x600 (32bpp) vga=0xF07 /sbin/tailLog #!/bin/bash #no blank screen setterm -b...
Gentoo Network Configuration
›
/etc/conf.d/net # This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete con...
Cannot mount boot partition (ext2)
›
Solution: # tune2fs -O has_journal /dev/sda1
lilo: One warning was issued
›
#/sbin/lilo -v LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger Development beyond version 21 Copyright (C) 1999-2006 John Coff...
2012年4月9日 星期一
金句-白色相簿
›
6 忘卻煩惱得好辦法,對別人的麻煩插上一手如何? 11 占據胸口我煩惱,時間不會將其解決,只是貼上忘卻的標簽而已。 健忘,據說是替換成了更不能忘記的重要東西 14 音色無法調至完美,因為總能找到更好的
2012年3月25日 星期日
金句-尋求自我
›
03-86 「個體」在「種」面前非常無力,你不覺得不甘心嗎? 03-110 人生就像自慰。摩擦愈多就愈爽快。 你也要一直摩擦著。 沒有摩擦,什麼都無法產生。 03-136 人的能力並非無限,有所得就有所失。 可要作好這層心理準備。 03-188 數學家兼哲學家...
金句-天降之物
›
第一季 04 爺爺 小智聽好 好好聽爺爺說的話 你已經是男人了 總有一天你會像爺爺一樣 有一個喜歡得不能再喜歡的東西出現 但是 它終有一天會向你露出獠牙也說不定 到那時候你該怎麼辦? 掉頭就跑嗎 不是的吧 小智 謝謝你 爺爺 ...
2012年3月19日 星期一
ACE Attacker
›
from:http://www.wretch.cc/blog/LED169/3741395 今天要跟大家分享一首ACG的歌﹙不要問我什麼是ACG﹚, 這是SRW裡,Huckebine MK-Ⅲ的一首BGM。 Ace Attacker / Apple pie 信じる心があるなら 勝...
2012年3月5日 星期一
金句-深入理解計算機
›
133 理解產生的滙編代碼與原始源代碼之間的關係,關鍵是找到程序值和寄存器之間的映射關係。
槍王黑澤 番外编中文小說
›
from: http://www.douban.com/group/topic/8863084/ 1. 清爽的假日早晨,我忙著應付手機一端所傳來的要求。 「帶我一起去玩!」 須川發出有如下意識要將手機移開耳邊般的聲音,她任性雖然也不是現在才開始,但至少也在出發當天早上溫柔的送我...
槍王黑澤
›
2 這裡可不是什麼童話王國,沒有人的夢想是會實現的。 10 既不能享受每日課題,也絲毫感覺不到畢業旅行的丁點感慨。不過…像這樣子的無聊…其實也不錯啦…看著同年級學生們一張張沈浸在和平中的呆瓜的表情…一直欣賞著這幅景色的無聊其實也不算太差… 11 想要推測對方意思的話,至少也要和他...
‹
›
首頁
查看網路版