Mac 讓我覺得第一個驚訝的地方, 就是 Touchpad 很好用(兩隻手指放在觸控版上, 同時向上或向下, 頁面就會往上或往下捲動), 不過我還是一直忠愛著 IBM 的小紅點. XD
註: 下述執行環境是 Ubuntu Linux 10.04.
個人筆記, 記錄關於 系統、程式、新聞 與 日常生活 等資訊
Mac 讓我覺得第一個驚訝的地方, 就是 Touchpad 很好用(兩隻手指放在觸控版上, 同時向上或向下, 頁面就會往上或往下捲動), 不過我還是一直忠愛著 IBM 的小紅點. XD
註: 下述執行環境是 Ubuntu Linux 10.04.
想要找關於 "7坐 8爬 9發牙" (7個月要會坐, 8個月要會爬, 9個月會長牙齒)... 想要找看看有沒有完整版(從 1~12?),不過就是找不到.
若有完整的資訊, 也請不吝指教~ Orz.
感謝 Cid 提供的資訊: 一視二聽三抬頭,四握五抓六翻身,七坐八爬九發牙,十捏周歲獨站穩
, 取自: 小丸丸的成長紀錄
尋找的過程中, 意外發現有 0~1歲的成長狀態表 (0~1歲的小朋友, 每個月應該會有哪些新的反應? 狀態應該如何?), 順便紀錄一下. 🙂
註: 這些都只是參考, 不要太在意. ex: 我家貝貝快滿 6個月了, 現在還是不會翻身~ (人各有志, 她現在還不想翻身. XD)
Google 對 JavaScript、Python、XML、C++、R ... 等, 定義的 Coding Style Guide.
Every major open-source project has its own style guide: a set of conventions (sometimes arbitrary) about how to write code for that project.
想在 Android 寫 Python? Perl?, ASE 可以滿足此需求, ASE 支援 Python, Lua, Perl, JRuby, BeanShell, Tcl 等程式語言.
Android 會突然發出個聲音, 來通知說有新信 ... 等等的訊息.
不過, 我的使用有遇到下述幾種狀況:
Memcached 是業界非常常用到的 cache system, 儲存格式是 key-value.
官方網站: Memcached: Free & open source, high-performance, distributed memory object caching system.
註:查看設定可用:$ echo "stats settings" | nc localhost 11211 # 看目前在跑得設定值
但是 Memcached 要知道的兩點:
Q: What is the maximum data size you can store? (1 megabyte)
- The maximum size of a value you can store in memcached is 1 megabyte. If your data is larger, consider clientside compression or splitting the value up into multiple keys.
為何是 1M, 是否可以增加, FAQ 也有答案:
下述轉載此問題的問答:
Q: Why are items limited to 1 megabyte in size?
- Ahh, this is a popular question!
- Short answer: Because of how the memory allocator's algorithm works.
- Long answer: Memcached's memory storage engine (which will be pluggable/adjusted in the future...), uses a slabs approach to memory management. Memory is broken up into slabs chunks of varying sizes, starting at a minimum number and ascending by a factorial up to the largest possible value.
- Say the minimum value is 400 bytes, and the maximum value is 1 megabyte, and the factorial is 1.20:
- slab 1 - 400 bytes slab 2 - 480 bytes slab 3 - 576 bytes ... etc.
- The larger the slab, the more of a gap there is between it and the previous slab. So the larger the maximum value the less efficient the memory storage is. Memcached also has to pre-allocate some memory for every slab that exists, so setting a smaller factorial with a larger max value will require even more overhead.
- There're other reason why you wouldn't want to do that... If we're talking about a web page and you're attempting to store/load values that large, you're probably doing something wrong. At that size it'll take a noticeable amount of time to load and unpack the data structure into memory, and your site will likely not perform very well.
- If you really do want to store items larger than 1MB, you can recompile memcached with an edited slabs.c:POWER_BLOCK value, or use the inefficient malloc/free backend. Other suggestions include a database, MogileFS, etc.
註:2015/8 更新:Memcached 可以用 -I 5m 調整最大值。-I 5m 就是設定最大可以塞 5M 的資料。
相關網頁
CSS3 的特性讓開發者都很方便, 可以省去很多沒用的 HTML, 也可以省掉不少切圖的工.
問題是, 現在最多人使用的瀏覽器(IE6~IE8)都還不支援 CSS3. 詳見: CSS Compatibility and Internet Explorer
註: IE8 部份支援 CSS3
YouTube 的影片播放前, 都會有影片內容中的截圖, 那這些圖片要怎麼抓到呢?