pinnynet.blogspot.com pinnynet.blogspot.com

pinnynet.blogspot.com

皮尼網這走

JavaScript] Observer Pattern Implement. Observer class function Observer() { var topics = []; return{ Register:function( topic, func ) { if(! Topics[topic]) topics[topic]=[]; / two dimension for store callback func topics[topic].push(func); }, Publish:function( topic, args ) { if (! Topics[topic] ) { console.log('no such topic'); return false; } var subscribers = topics[topic]; for(var i in subscribers) subscribers[i](topic,args); }, UnRegister:function( topic ) { if (! JavaScript] Observer Pattern Cont.

http://pinnynet.blogspot.com/

WEBSITE DETAILS
SEO
PAGES
SIMILAR SITES

TRAFFIC RANK FOR PINNYNET.BLOGSPOT.COM

TODAY'S RATING

>1,000,000

TRAFFIC RANK - AVERAGE PER MONTH

BEST MONTH

December

AVERAGE PER DAY Of THE WEEK

HIGHEST TRAFFIC ON

Friday

TRAFFIC BY CITY

CUSTOMER REVIEWS

Average Rating: 3.5 out of 5 with 10 reviews
5 star
3
4 star
3
3 star
2
2 star
0
1 star
2

Hey there! Start your review of pinnynet.blogspot.com

AVERAGE USER RATING

Write a Review

WEBSITE PREVIEW

Desktop Preview Tablet Preview Mobile Preview

LOAD TIME

0.3 seconds

FAVICON PREVIEW

  • pinnynet.blogspot.com

    16x16

  • pinnynet.blogspot.com

    32x32

CONTACTS AT PINNYNET.BLOGSPOT.COM

Login

TO VIEW CONTACTS

Remove Contacts

FOR PRIVACY ISSUES

CONTENT

SCORE

6.2

PAGE TITLE
皮尼網這走 | pinnynet.blogspot.com Reviews
<META>
DESCRIPTION
JavaScript] Observer Pattern Implement. Observer class function Observer() { var topics = []; return{ Register:function( topic, func ) { if(! Topics[topic]) topics[topic]=[]; / two dimension for store callback func topics[topic].push(func); }, Publish:function( topic, args ) { if (! Topics[topic] ) { console.log('no such topic'); return false; } var subscribers = topics[topic]; for(var i in subscribers) subscribers[i](topic,args); }, UnRegister:function( topic ) { if (! JavaScript] Observer Pattern Cont.
<META>
KEYWORDS
1 皮尼網這走
2 如何使用呢
3 執行結果如下
4 沒想到使用javascript寫一個observer pattern會如此簡單
5 張貼者: avi
6 以電子郵件傳送這篇文章
7 blogthis!
8 分享至 twitter
9 分享至 facebook
10 分享到 pinterest
CONTENT
Page content here
KEYWORDS ON
PAGE
皮尼網這走,如何使用呢,執行結果如下,沒想到使用javascript寫一個observer pattern會如此簡單,張貼者: avi,以電子郵件傳送這篇文章,blogthis!,分享至 twitter,分享至 facebook,分享到 pinterest,說真的,透過javascript來達到二維的呼叫也是很簡單,怎樣,很簡單吧,標籤: javascript,javascript observer pattern,這是在我日常的工作中是一個很常被使用到的pattern,它使用起來的方式如下,module
SERVER
GSE
CONTENT-TYPE
utf-8
GOOGLE PREVIEW

皮尼網這走 | pinnynet.blogspot.com Reviews

https://pinnynet.blogspot.com

JavaScript] Observer Pattern Implement. Observer class function Observer() { var topics = []; return{ Register:function( topic, func ) { if(! Topics[topic]) topics[topic]=[]; / two dimension for store callback func topics[topic].push(func); }, Publish:function( topic, args ) { if (! Topics[topic] ) { console.log('no such topic'); return false; } var subscribers = topics[topic]; for(var i in subscribers) subscribers[i](topic,args); }, UnRegister:function( topic ) { if (! JavaScript] Observer Pattern Cont.

INTERNAL PAGES

pinnynet.blogspot.com pinnynet.blogspot.com
1

皮尼網這走: [JavaScript] Observer Pattern Cont.

http://pinnynet.blogspot.com/2012/07/javascript-observer-pattern-cont.html

JavaScript] Observer Pattern Cont. Observer Pattern真的是一個蠻好用的Pattern,以我工作的例子是我會去操作一個第三方的JavaScript API,操作完之後這個API只會產生一個事件,而且這個事件裡面會帶一個參數表示目前的狀態. TrdParty.onCallback(function(status){ / do something you want }); trdParty.doMethod();. OnCallback會在每次呼叫不同的doMethod都會回傳目前的狀態,你可以透過偵測status的狀態來執行你想做的事情,最簡單的方式是透過類似HashTable的方式來做mapping,如下. 不過這樣寫每次沒辦法利用,時間晚了,下次再來介紹整個Observer Pattern. 訂閱: 張貼留言 (Atom). JavaScript] Observer Pattern Implement. JavaScript] Observer Pattern Cont. Simple範本. 由 Blogger.

2

皮尼網這走: [JavaScript] Observer Pattern

http://pinnynet.blogspot.com/2012/06/javascript-observer-pattern.html

Var callback = function(topic, data){ console.log(topic ': ' data); } / 假設observe object 已存在 observe.addCallback('MyTopic',callback); observe.fireCallback('Mytopic', 'my data 1'); / Mytopic : my data 1 observe.fireCallback('Mytopic', 'my data 2'); / Mytopic : my data 2 observe.fireCallback('Mytopic', 'my data 3'); / Mytopic : my data 3. To be continue . 訂閱: 張貼留言 (Atom). JavaScript] Advanced Object Declaration. Simple範本. 由 Blogger.

3

皮尼網這走: 六月 2012

http://pinnynet.blogspot.com/2012_06_01_archive.html

Var callback = function(topic, data){ console.log(topic ': ' data); } / 假設observe object 已存在 observe.addCallback('MyTopic',callback); observe.fireCallback('Mytopic', 'my data 1'); / Mytopic : my data 1 observe.fireCallback('Mytopic', 'my data 2'); / Mytopic : my data 2 observe.fireCallback('Mytopic', 'my data 3'); / Mytopic : my data 3. To be continue . JavaScript] Advanced Object Declaration. 上一篇文章中提到了幾個JavaScript class的宣告方式,以及用該class來宣告物件。而這一篇會介紹比較Advanced的物件宣告方式. 用()把整個function的宣告包起來後順便再()執行 var perso...

4

皮尼網這走: 三月 2012

http://pinnynet.blogspot.com/2012_03_01_archive.html

讀書心得 part4] 交辦時,務必說清楚、想明白. 話說沒有意願,能力再好都是枉然,可見意願的重要性。所以平常一定要跟member混熟,指派工作的時候,一定要了解他的能力是否有辦法完成這個交辦,如果有辦法完成自然比較好說服,如果比較難完成,那在指派的時候也一定要想辦法說服他。我很常會用的招式是:你把這件事情完成,你就會學習到以後該怎麼處理這樣類型的工作了。目前看起來成效很爛(冏). 說真的,我也覺得這點很重要,但問題要讓member有個人目標其實真的還蠻難的,我也曾經幫member訂過目標,但效果其實不符合預期,或許我該找時間好好來跟member談談他的目標到底在哪? 我覺得交辦給誰都不好,所以如果可以把不合理的工作要求合理化,那交辦出去的機會可能會大一點。例如寫程式,一隻程式可以花一天沒架構沒規劃的方式寫出來,也可以花三天好好的規畫寫出來,當時間急的時候,你要一個很有sense的member花一天寫出來,你該如何說服他? 所以我寧願先讓事情盡量合理化,再來做所謂的交辦,萬一不行,也跟member討論出平衡點。 標籤: Project Managerment. 作者說交辦是指把這件事情的&#12304...

5

皮尼網這走: 一月 2010

http://pinnynet.blogspot.com/2010_01_01_archive.html

用 FileManager 當asp.net部署管理系統 (Part 2). 提到如何使用FileManager來部署新程式,其實步驟非常簡單,只需要把要部署的程式上傳到正確的路徑就可以了,底下示範使用一個名為 HelloToday.aspx的程式來部署,該程式aspx內容如下(只有一個Label元件). 用 FileManager 當asp.net部署管理系統 (Part 1). 在上一篇文章( FileManager From CodePlex. 中提到可以改善FileManager的功能,使其可以用來部署asp.net應用程式。 訂閱: 文章 (Atom). 用 FileManager 當asp.net部署管理系統 (Part 2). 用 FileManager 當asp.net部署管理系統 (Part 1). Simple範本. 由 Blogger.

UPGRADE TO PREMIUM TO VIEW 14 MORE

TOTAL PAGES IN THIS WEBSITE

19

LINKS TO THIS WEBSITE

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 十一月 2009

http://wupinny.blogspot.com/2009_11_01_archive.html

這個看似簡單的條件,可讓我小小思考了一下,才寫出自己滿意的寫法。 Oracle]Group By Rollup Function介紹. 有時候User開的需求有列出所有資料後,資料集的最後為所有數值的總計,或是特定群組的小計。 在SQL的世界中,就是可以針對Group By的欄位做小計的功能。 標籤: Group By. 安裝Oracle Express 10g後,Oracle有一份HR的範例資料庫,就在Oracle的系統安裝路徑中。 160;依我的Oracle Express為例,範例資料庫的SQL會放置於 C: oraclexe app oracle product 10.2.0 server demo schema human resources. 訂閱: 文章 (Atom). Oracle]Group By Rollup Function介紹.

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 一月 2010

http://wupinny.blogspot.com/2010_01_01_archive.html

今日從企圖找出PL/SQL中continue的相似語法,無意間找到了一份PL/SQL與T-SQL的語法用法比較的word文件。也同時也試用google共用文件的功能。 稍後讀完文件後,再做補充說明吧 今天雖然是文章發表日,就讓我先偷懶一下下吧! 日前有一個需求為呈現從今日往前推53週的日期,列出每週的週別與開始與結束日期。每週的開始日期為週二。 Oracle]Mutil Row To One Row應用(二). 的訂單資料Table做為Sample。本次範例想要取得訂單資料中每天訂單中每個貨運公司的最大運費,並且有優先次序的選擇呈現貨運公司的資料,例如:如果當天有托運公司1,2,3呈現資料的次序為 1 2 3. Select orderid, orderdate, shipvia, freight from orders t. 提到Oracle的相關開發工具,就非得提到我每天都一定會使用的 PL/SQL Developer. 當然不外乎就是寫SQL Statement,會用到就是 SQL Window. 訂閱: 文章 (Atom). Oracle]Mutil Row To One Row應用(二).

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 十月 2010

http://wupinny.blogspot.com/2010_10_01_archive.html

2BLL (Bussiness Logic Layer). 3DAL (Data Access Layer). 要建立起這樣的架構,首先必須建立一個空白專案,我們可用此專案開啟我們的N-Tier全部檔案來檢視。 2建立Client檔案夾,加入Web Application 的Project. BLL則是扮演DAL與UI之前的橋樑,對於取出資料庫取出的資料作邏輯處理,回覆資料給UI。 標籤: ASP.NET. 訂閱: 文章 (Atom).

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: [ASP.NET] 解決Oracle IN clause 超過1000個參數

http://wupinny.blogspot.com/2011/07/aspnet-oracle-in-clause-1000.html

ASPNET] 解決Oracle IN clause 超過1000個參數. 不管在SQL Plus或其他Tool,甚至ASP.NET中,只要出現以下錯誤訊息:. ORA-01795 maximum number of expressions in a list is 1000. 65292;就是你的SQL中,IN的參數超過1000個了。 Select * from TestTable where ID in (1,2,3,4,.,1000) union all select * from TestTable where ID in (1001,1002,.). Select * from TestTable where ID in (1,2,3,4,.,1000) or ID in (1001,1002,.,2000). 標籤: ASP.NET. 訂閱: 張貼留言 (Atom). ASPNET] Export Excel with NPOI and EPPlus. ASPNET] 解決Oracle IN clause 超過1000個參數.

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: [ASP.NET] 解決Linq Contain 參數超過2100的錯誤

http://wupinny.blogspot.com/2011/07/aspnet-linq-contain-2100.html

ASPNET] 解決Linq Contain 參數超過2100的錯誤. 在Linq使用Contain時,必須注意參數的個數,限制為2100為上限,錯誤訊息如下:. The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were provided in this RPC request. The maximum is 2100. Double dLoopCycle = (containList.Count / 2000); int loopCycle = Convert.ToInt32(Math.Ceiling(dLoopCycle) ; loopCycle = loopCycle = 0? 1 : loopCycle; List. Result = new List. TempResult = new List. ASPNET] 解決Oracle IN clause 超過1000個參數.

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 七月 2011

http://wupinny.blogspot.com/2011_07_01_archive.html

ASPNET] Export Excel with NPOI and EPPlus. 使用於(Excel2003及之前的版本),可寫出Excel2003(xls),可讀Excel2003 (xls)/ Excel2007(xlsx). Http:/ npoi.codeplex.com/. Http:/ code.google.com/p/npoi/. VS2005 or VS2008 with .NET 2.0 Runtime (SP1). Vs2003 with .NET 1.1. Medium trust environment in ASP.NET. EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx). 官網: http:/ epplus.codeplex.com/. Net Framwork 3.5 or higher. NPOI vs. EPPlus:比較匯出大量資料的時間. 標籤: ASP.NET. TempList = IDs...

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 十二月 2010

http://wupinny.blogspot.com/2010_12_01_archive.html

Oracle]Update data from another Table. Web系統不免會有由Excel Upload的資料去更新資料表的需求,當然如果Excel資料一筆一筆的對Table做更新是不符合效益,這將造成對database的transaction過多,而且因為目前需Update的資料表資料量相當大,所以採用的方法如下:. 1Insert data in db temp table from excel data. 2update data from temp table. 上述的從Temp table取用資料Update資料表,就切入本篇的主題,可用的方法有三:. MERGE INTO bigTable b USING (SELECT col1 , col2 , col3 , col tempTable t ) t ON ( b.col = t.col) WHEN matched THEN UPDATE SET old col1 = new col1, old col2 = new col2, old col3 = new col3;. 訂閱: 文章 (Atom). Oracle]Upd...

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: [ASP.NET] Import Excel with linqtoexcel

http://wupinny.blogspot.com/2011/08/aspnet-import-excel-with-linqtoexcel.html

ASPNET] Import Excel with linqtoexcel. 比較了以NPOI and EPPlus匯出Excel的效能,接著就是要介紹Import Excel了,雖然NPOI也可以Import Excel2003/2007,但我認識了 linqtoexcel. LinqToExcel為32位元的dll,所以如果在64位元遇到complier的問題時,請參閱轉載自網路的 排除方法. 12290; 還有 注意事項. Linq to Excel requires any projects referencing it to be built against the x86 platform target. See this link. For detailed information on setting the platform target to x86. Note this only applies to compiling the project on x64 computers. 詳情請至活動網址 http:/ www.npochannel.net/news&#46...

wupinny.blogspot.com wupinny.blogspot.com

皮尼網前走: 十一月 2010

http://wupinny.blogspot.com/2010_11_01_archive.html

Oracle]處理中文亂碼 - NLS LANG設定. Select userenv('language') from dual;. 取得結果為TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5. 接下來就是設定client端的NLS LANG,只要與DB Server相同,中文顯示就會正確了. 1 開始 - 執行 - regedit. 2 找出 HKEY LOCAL MACHINE SOFTWARE ORACLE. 3 NLS LANG改為TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5. 這樣由這台client連到TRADITIONAL CHINESE.TAIWAN.ZHT16BIG5 的DB Server中文顯示就會是正確的。 另一個議題,單一client要連結的DB Server有多種NLS LANG,擔任Web Server的client常有這種狀況! LANG","AMERICAN AMERICA.ZHT32EUC");. 針對 單一Web Site設定連線到DB NLS LANG,. 標籤: ASP.NET.

UPGRADE TO PREMIUM TO VIEW 8 MORE

TOTAL LINKS TO THIS WEBSITE

17

OTHER SITES

pinnylew.com pinnylew.com

Pinny Lew.com

pinnyloveruby.blogspot.com pinnyloveruby.blogspot.com

pinnyloveruby

Langsung ke konten utama. Tak ada apa pun di sini! Gambar tema oleh Michael Elkan.

pinnyministry.com pinnyministry.com

Home

Pinny, a ministry for babies, purpose is to convey Jesus Christ's love to babies by providing them with bibs and burp cloths. Pinny, a ministry for babies, is a not for profit Christian ministry of First Love Baptist Church Inc. of Doerun, GA. The vision of Pinny Ministry is to share the love of Jesus to babies and their families of Colquitt County, Georgia, and to participate in Mission opportunities sharing the love of Jesus to babies around the world. Pinny Ministry for Babies. Welcome to our site!

pinnymon.blogspot.com pinnymon.blogspot.com

Nightwing

Blog for documenting my progress doing my extended project. For my extended project I am making a film which will probably be called Nightwing. x. Tuesday, October 05, 2010. Mike Engel, actually reporting. Posted by Sam Reinders @ 11:21 AM. And I would have got away with it too if it hadn't been for you meddling police officers! So there we are! Posted by Sam Reinders @ 6:25 AM. Posted by Sam Reinders @ 4:53 AM. Sunday, August 01, 2010. Posted by Sam Reinders @ 7:38 AM. Friday, July 23, 2010. Seshie Azor...

pinnynet.blogspot.com pinnynet.blogspot.com

皮尼網這走

JavaScript] Observer Pattern Implement. Observer class function Observer() { var topics = []; return{ Register:function( topic, func ) { if(! Topics[topic]) topics[topic]=[]; / two dimension for store callback func topics[topic].push(func); }, Publish:function( topic, args ) { if (! Topics[topic] ) { console.log('no such topic'); return false; } var subscribers = topics[topic]; for(var i in subscribers) subscribers[i](topic,args); }, UnRegister:function( topic ) { if (! JavaScript] Observer Pattern Cont.

pinnynoi.wordpress.com pinnynoi.wordpress.com

♥ ~ Pinnynoi's Tiny World ~ ♥ | ♥~ W e l c o m e – t o – m y – b e l o v e d- w o r l d ~♥

Pinnynoi's Tiny World. W e l c o m e – t o – m y – b e l o v e d- w o r l d. It’s me just only me. The Rink presented by AIS ลานสเก ตน ำแข งกลางแจ งแห งแรกในไทย. In [ All about PR News ]. ข าวประชาส มพ นธ. Total Beauty : Android App ท รวมท กอย างเก ยวก บความงาม. In [ All About Appreview ]. ค ะและเช นเคยหนน ร ว วด วยม อถ อ Android Froyo 2.2 LG Optimus1 ค ะ. Eye lashes idea book : Android App. สำหร บสาวร กขนตางอนๆ. กล บมาอ กรอบแล ว สำหร บการร ว ว Android Application หนท สองของพ นน ค ะ. ไม ร เหม อนก นค ะแต ...

pinnypals.com pinnypals.com

PinnyPals

pinnypedia.org pinnypedia.org

Pinnypedia

PAX East 2018 Logo. PAX East 2018 Set. 8 Bit Jim Darkmagic. PAX East 2018 Set. 8 Bit Omin Dran. PAX East 2018 Set. 8 Bit Green Flame. PAX East 2018 Set. PAX East 2018 LE. Night in the Woods. PAX Aus Roadshow Possum. Pillars of Eternity: Tekehu. The Banner Saga: Juno. Sinner: Sacrifice for Redemption. Dr Raven Darktalon Blood. Gold Mr. Period. Pronouns Are For Everyone Set. Pronouns Are For Everyone Set. Pronouns Are For Everyone Set. Pronouns Are For Everyone Set. PAX South 2018 Logo. PAX South 2018 Set.

pinnypet.com pinnypet.com

PinnyPet - Passion and Quality