| sam's profile>>> 這也將會過去 <<<PhotosBlogLists | Help |
|
August 02 在瀏覽器網址列輸入javascipt直到今天才知道
原來瀏覽器有提供這樣的功能 在瀏覽器網址列輸入javascipt 請在網址列輸入
javascript:alert("test");
(IE, Firefox, Google Chome 都適用)
以前只知道 Firefox 有個外掛 Greasemonkey
參考網址
Greasemonkey http://www.google.com.tw/search?hl=zh-TW&q=Greasemonkey&btnG=Google+%E6%90%9C%E5%B0%8B&meta=&aq=f&oq= http://jacky.seezone.net/archives/001384.html 網址列輸入javascript
http://www.google.com.tw/search?hl=zh-TW&q=網址列輸入javascript&btnG=Google+搜尋&meta=&aq=f&oq= 快速保存網頁中所有圖片的方法 http://blog.yam.com/ezkm/article/5683327 在網址列上直接輸入JAVA SCRIPT http://www.evanlin.com/blog/archives/000169.html 可在瀏覽器網址列上執行的 JavaScript 程式 http://jsgears.com/viewthread.php?tid=98 Cool JavaScript Tricks http://www.blogohblog.com/cool-javascript-tricks/#more-707 June 20 Hadoop & Hbasehttp://www.trendmicro.com.tw/program/3rd/Chinese_Slides_Of_Cloud_Computing_Training.zip
http://www.trend.com.tw/program/3rd/Introduction%20to%20Hadoop%20and%20HDFS.zip http://www.trend.com.tw/program/3rd/Introduction%20to%20MapReduce.zip http://www.trend.com.tw/program/3rd/Introduction%20to%20Cloud%20Computing.zip http://www.trend.com.tw/program/3rd/Introduction%20to%20HBase.zip Cloud Computing Overview
http://vimeo.com/4939282 Introduction to Hadoop http://vimeo.com/4939995 Introduction to MapReduce http://vimeo.com/4940522 Introduction to HBase http://vimeo.com/4943879 因為線上看有點Delay 所以想說下載來看(只要登入,右下角可以Download Windows Media version) 結果用了續傳軟體,一次分太多線程,結果,他給我鎖住了,出現下面的網頁 You cannot download any more videos today. 嗚嗚... 下載時要注意阿 June 18 linux lyric 歌詞秀linux底下,有關歌詞秀的專案
ttplyrics
http://code.google.com/p/ttplyrics/ http://code.google.com/p/ttplyrics/source/browse/#svn/trunk/crack 雖不能確定,但看起來python版的源自這個project amuseplayer
http://code.google.com/p/amuseplayer/ (python+javascipt) tsostplayer (AVPlayer)
http://code.google.com/p/tsostplayer/ (javascipt:avplayer_ver0.10.7z) (actionscript:svn) lrcdis (從這個外掛,可以瞭解,如何去獲得播放器現在播放到哪的相關資訊,大部分用DBus)
http://code.google.com/p/lrcdis/ YOYOPlayer(類似千千靜聽的播放器,用java寫的,也有歌詞秀)
https://yoyoplayer.dev.java.net/ http://www.blogjava.net/hadeslee/ lrcShow-X (Python , PyQt) 這個歌詞秀外掛,可以選擇搜尋千千靜聽的歌詞伺服器,當然還有其他的,如百度 支援linux底下常用的播放器 lrcShow-X (For Amarok)
http://wiki.ubuntu.org.cn/Amarok#.E6.AD.8C.E8.AF.8D lrcShow-X (Forum)
http://forum.ubuntu.org.cn/viewtopic.php?f=95&t=208328&sid=f1f51948510c5259a94abb12eed55323&start=15 http://forum.kdecn.org/thread-32-page-3.html http://forum.kdecn.org/archive/index.php/thread-32-3.html Lyrics_CN http://www.kde-apps.org/content/show.php?content=50120 http://www.sanfanling.cn/read.php?108 從上面幾個專案 可以學到 1.如何parse lyric檔 (大部分用Regular Expression) 2.如何下載 lyric From lyric server 尤其是千千靜聽的歌詞伺服器(需要做一些編碼的部份) 3.如何獲得播放器目前播放的資訊(大部分用DBus) 4.繁簡轉換。 5.當然還有其他,跟歌詞秀相關的技術,研究程式碼吧,可以學到不少... 謝謝上面的鬼才們
:-)
另外繁簡互轉
lrcShow-X 這個是python版的
概念應該跟下面的Javascipt版是一樣的吧
不過我還沒深究啦,還不到這兩個差異性
看原始碼 lrcShow-X http://www.sanfanling.cn/svn/lrcShow-X/branches/frank/lrcShow-X/dict/ lrcShow-X/dict/simplified lrcShow-X/dict/traditional 各有這樣的table
不過這兩個table排列的方式不是一樣的 參考以下的頁面
在 UTF8 編碼下的網頁簡繁互轉
http://blog.markplace.net/marks_place/10/2006/10/27/150 在 UTF8 編碼下的網頁簡繁互轉(Server Side)
http://blog.markplace.net/index.php?op=ViewArticle&articleId=169&blogId=1 轉換 BIG5、GB2312、UTF-8、Unicode 與 wchar_t
http://www.jeffhung.net/blog/articles/jeffhung/261/ http://www.joelonsoftware.com/articles/Unicode.html
http://local.joelonsoftware.com/wiki/The_Joel_on_Software_Translation_Project:萬國碼 FreeBSD Chinese HOWTO
http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/index.html 另外在
lrcShow-X
發現一個有趣的專案
Universal Encoding Detector
Character encoding auto-detection in Python. As smart as your browser. Open source. 讓我想到 Jserv寫得那篇
charset-detector:自動偵測文件編碼的小程式
May 16 OpenOffice.org達人魔法書OpenOffice 軟體教學
http://163.32.161.9/maylike/teach/openoffice201/index.htm OpenOffice.org達人魔法書
http://odf.e-land.gov.tw/ 自由軟體人物專訪:為聯合報導入 OpenOffice.org 的聯經數位總經何銘傑
http://www.linux.org.tw/node/646 [網播][podcast] Born to MISrepresent 第十一集:聯經數位的何銘傑總經理,談運用UPP導入OpenOffice.org http://blog.roodo.com/ystuan/archives/8436041.html 這裡面有講到一個概念,把力氣花在教育訓練上面 在4:40 用OpenOffice省下2千萬授權費
http://www.ithome.com.tw/itadm/article.php?c=53182 UPP的(U Portable Platform),概念應該是來自底下(Portable software for USB drives),不過我覺得做這些事屌,可以聽聽上面的訪問
http://www.5680.tw/elearning/upp/ Portable software for USB drives
http://portableapps.com/ 我不是他們的員工,:p 只是剛好看到 OpenOffice.org達人魔法書 對聯經數位這間公司好奇查了一下Google http://www.google.com.tw/search?hl=zh-TW&q=聯經數位&btnG=Google+搜尋&meta=&aq=f&oq= April 27 doctrineApril 26 phingApril 11 ErlangErlang
http://erlang.org/ Yaws http://yaws.hyber.org/ Ejabberd http://www.ejabberd.im/ Tsung http://tsung.erlang-projects.org/ Eddie
=================================================
blog ==== Erlang and Yaws
http://ihower.idv.tw/blog/archives/1509 安裝 YAWS + ZF or CakePHP
http://twpug.net/modules/newbb/viewtopic.php?topic_id=3868 February 10 3D新聞閱讀平台January 28 Adobe Fireworks TutorialsAdobe Fireworks Tutorials
Web 2.0 Style Text With Fireworks
http://www.jdavidmacor.com/2006/12/28/create-web-20-style-text-with-macromedia-fireworks/ Master the Web 2.0 Style Reflection
http://www.jdavidmacor.com/2007/01/05/master-the-web-20-style-reflection/ How to create shiny 2.0 badges with Adobe Fireworks
http://www.jdavidmacor.com/2006/08/13/how-to-create-shiny-20-badges-with-adobe-fireworks/ Fireworks Aqua
http://imasters.uol.com.br/artigo/3417?cn=3417&cc=85 Fireworks How To: The Ultimate Aqua Button
January 22 好用的工具 Web Developer (Firefox Addone)Web Developer https://addons.mozilla.org/zh-TW/firefox/addon/60
[CSS/Edit Css] 可以修改CSS,直接看到效果 [Miscellaneous/Display Ruler]
用來測量尺寸大小和位置
[Outline]
January 02 在php上實做動態代理(Dynamic Proxy)的機制參考這兩篇
http://caterpillar.onlyfun.net/Gossip/SpringGossip/DynamicProxy.html http://caterpillar.onlyfun.net/Gossip/DesignPattern/ProxyPattern2.htm 在php上實做動態代理(Dynamic Proxy)的機制 單純展現實做原理 請另行整理擺放架構 另外可以參考Java的一些概念做變種
<<深入了解Java ClassLoader、Bytecode 、ASM、cglib>>
可以看 cglib 那一段
Java下的框架编程(5)--cglib的应用
AOP編程入門--Java篇
前面又加了Factory包起來
程式碼:
================================================================================================
<?php /* InvocationHandler.php */ require_once('InvocationHandler.php'); class Proxy { public $h; public $delegate; public $enumDirect; static function newInstance($delegate, InvocationHandler $h, array $enumDirect=array()) { $rtn = new Proxy(); $rtn->h = $h; $rtn->delegate = $delegate; $rtn->enumDirect = $enumDirect; return $rtn; } function __call($name, $args) { if(in_array($name, $this->enumDirect)) {
call_user_func_array(array($this->delegate, $name), $args); } else { $this->h->invoke($this, $name, $args); } }
} ?> ================================================================================================ <?php /* Proxy.php */ require_once('InvocationHandler.php'); class Proxy { public $h; public $delegate; public $enumDirect; static function newInstance($delegate, InvocationHandler $h, array $enumDirect=array()) { $rtn = new Proxy(); $rtn->h = $h; $rtn->delegate = $delegate; $rtn->enumDirect = $enumDirect; return $rtn; } function __call($name, $args) { if(in_array($name, $this->enumDirect)) {
call_user_func_array(array($this->delegate, $name), $args); } else { $this->h->invoke($this, $name, $args); } }
} ?> ================================================================================================
<?php /*
test.php
*/
require_once 'InvocationHandler.php'; require_once 'Proxy.php'; /* * http://caterpillar.onlyfun.net/Gossip/DesignPattern/ProxyPattern2.htm * http://caterpillar.onlyfun.net/Gossip/SpringGossip/DynamicProxy.html */ interface ISpeaker { function say($str); } class Speaker implements ISpeaker {
public function say($str) { echo "==$str==<br />\r\n"; } } class Loger
{ public function log($str) { echo("log:$str<br>\r\n"); } } class LogHandler extends InvocationHandler {
protected $loger; function __construct() { $this->loger = new Loger(); } public function bind($delegate) { //return Proxy::newInstance($delegate, $this, array('say')); return Proxy::newInstance($delegate, $this); } public function invoke(Proxy $proxy, $name, array $args) { $this->loger->log("preSay"); if(method_exists($proxy->delegate, $name)) { ////[deprecated] ////http://www.php.net/manual/en/function.call-user-method.php ////call_user_method($name, $this->delegate, $args); ////[deprecated] ////http://tw2.php.net/manual/en/function.call-user-method-array.php ////call_user_method_array($name, $this->delegate, $args); //http://tw2.php.net/manual/en/function.call-user-func-array.php call_user_func_array(array($proxy->delegate, $name), $args); }
$this->loger->log("postSay"); } } function __main__()
{ $logHandler = new LogHandler(); $speakerProxy = $logHandler->bind(new Speaker()); $speakerProxy->say("Hello"); } __main__(); ?> 初探php namespace 反射想法
php namespace
想想開始學php的也是如此
December 31 Groovy MOP DSL AOP隱約記得在google上搜尋 [Groovy AOP]
結果就多看了幾個概念名詞和實做,
可能是我才剛進入Java的世界, 所以對很多名詞和概念還存著好奇的心態吧 :p 有興趣的人可以研究 Groovy MOP实现mini-language 如传说中Java7.0的XML嵌入式语法
http://www.blogjava.net/calvin/archive/2005/08/17/10333.html http://www.javaeye.com/topic/15358 Practically Groovy: Of MOPs and mini-languages
http://www.ibm.com/developerworks/java/library/j-pg09205/ http://www.ibm.com/developerworks/cn/java/j-pg09205/ DynamicGroovyMetaMagic http://www.grails-exchange.com/files/GraemeRocher%20-%20Keynote-DynamicGroovyMetaMagic.pdf SQL, ORM, DSL
http://www.javaeye.com/topic/16610 Painless AOP with Groovy
http://www.infoq.com/articles/aop-with-groovy http://www.infoq.com/cn/articles/aop-with-groovy 會去Google搜尋[Groovy AOP]最大的起因之一應該是這篇文章 , :p
Spring Gossip / AOP 入門 / 從代理機制初探 AOP http://caterpillar.onlyfun.net/Gossip/SpringGossip/FromProxyToAOP.html Spring Gossip http://caterpillar.onlyfun.net/Gossip/SpringGossip/SpringGossip.html [wiki] Domain-specific language http://en.wikipedia.org/wiki/Domain-specific_language Language-oriented programming http://en.wikipedia.org/wiki/Language-oriented_programming Aspect-oriented programming http://en.wikipedia.org/wiki/Aspect-oriented_programming December 29 GTD (Getting Things Done) ResoruceGTD (Getting Things Done) Resoruce
[Wiki]
經過研究,結論原來是 所以我更改了bulid.xml 參考文章 <<Chandler的故事>> “Dreaming in code”: Software is hard December 25 利用Grails Plugin 撰寫 Java Servlet利用Grails Plugin 撰寫 Java Servlet 這個Plugin很讚,可以直接寫mxml在web-app裡
[1] 先產生一個Grails的Project,這裡的範例叫做DemoPrj
請參照這個範例
// servlet mappings
Using Flex with Spring The factory mechanism [MessageBrokerServlet -> MessageBroker -> Service -> [Spring] -> Destination] Spring BlazeDS Integration Home [Another Way] ...
=====================================================================
December 23 Gradle Build System本來想研究Grails 的 Script的寫法
利用它來做code generator 以後也可以用在其他案子的Build System http://grails.org/Command+Line+Scripting http://grails.org/doc/1.0.x/guide/4.%20The%20Command%20Line.html 後來陸續發現幾個專案
Gant http://gant.codehaus.org/ Gradle http://www.gradle.org/ Apache Ivy http://ant.apache.org/ivy/ 最讓我感興趣的是Gradle這個Build System
目前學到的:
安裝方便:同Groovy和Grails的安裝方式 http://gradle.org/getting-started.html 語法簡單:撰寫build.gradle,等同在寫Groovy Userguide(有線上版,和PDF下載) http://gradle.org/userguide.html 又發現一個Groovy的應用,真棒
:-) |
|
|