目前分類:電腦 資訊 (20)

瀏覽方式: 標題列表 簡短摘要
2013/03/24 19:21:42~2013/03/24 19:30:33
來自 114.38.72.* 的網友扣除重複輸入的內容,約查詢18題
有9題完全沒查到資料
如果他能夠把查不到的題目和選項輸入題庫,我也會盡量去找出答案
可惜他沒有這麼熱心,他只是憤怒地使用新增題目的功能留下髒話
茫茫網海不知道您是何方高人

為了維持我管理互動式題庫的熱誠不被謾罵澆熄
至少我可以修改互動式題庫的程式
拒絕來自 114.38.72.* 的連線

謝謝你給我研究新程式功能的機會

jsdb 發表在 痞客邦 留言(0) 人氣()

What is the best comment in source code you have ever encountered?
業界相關人士會很有感覺的一篇文章
這感覺可能是好笑或是可悲~

節錄幾則如下

jsdb 發表在 痞客邦 留言(0) 人氣()

當我們需要把電腦螢幕畫面錄製下來,
這幾個免費軟體Free Screen RecorderCamStudio可以錄製無限時間的影片,操作簡易又功能強大!
也正因為操作簡易,所以也沒需要特意去找中文化版本,直接使用英文版就好囉~

如果錄製時間比較長的話,video codec最好是使用MPEG4 XVID
這樣檔案會比較小喔!

我個人使用這軟體主要是錄製網路遊戲的問答題目,
等問答活動結束之後再一一輸入到互動式題庫
非常方便好用
給大家參考囉~

jsdb 發表在 痞客邦 留言(0) 人氣()

有人的地方,就是江湖!
網路世界比現實世界更多詐欺,因為隔著虛擬世界更難以驗證真實身份。
Jason試過數十個廣告供應商,其中有幾個正是詐欺廣告供應商 scam ad network。
大型廣告供應商的審核條件非常嚴苛,小站長幾乎無法加入,有許多廣告供應商即藉此進行詐欺。
他們成立新網站、新公司,發布從其他正派經營的廣告商轉介來的廣告,藉此賺取來源廣告商給予的佣金。
詐欺行為可能是:
1. 給予小站長們極其微薄的佣金
2. 甚至完全不給佣金直接倒閉關站
3. 一個廣告程式碼,暗藏無數個廣告,我曾用過暗藏高達24個廣告的黑心詐欺廣告商。

jsdb 發表在 痞客邦 留言(0) 人氣()

有人的地方,就是江湖!
網路世界比現實世界更多詐欺,因為隔著虛擬世界更難以驗證真實身份。
Jason試過數十個廣告供應商,其中有幾個正是詐欺廣告供應商 scam ad network。
大型廣告供應商的審核條件非常嚴苛,小站長幾乎無法加入,有許多廣告供應商即藉此進行詐欺。
他們成立新網站、新公司,發布從其他正派經營的廣告商轉介來的廣告,藉此賺取來源廣告商給予的佣金。
詐欺行為可能是:
1. 給予小站長們極其微薄的佣金
2. 甚至完全不給佣金直接倒閉關站
3. 一個廣告程式碼,暗藏無數個廣告,我曾用過暗藏高達24個廣告的黑心詐欺廣告商。

文章標籤

jsdb 發表在 痞客邦 留言(0) 人氣()

我自己開發的網站需要使用者管理系統,但從頭開始打造又太花時間心力
上週突發奇想,乾脆安裝論壇,使用論壇的使用者註冊和管理系統就好了!

jsdb 發表在 痞客邦 留言(0) 人氣()

長輩是中油愛好者,中油一直沒什麼優惠。只有信用卡或加盟站自行推出的優惠。
某加盟站推出週六汽車現金折價1.2元優惠,但總是會有非特價日需要加油的時候。
長輩找Jason幫忙計算,
結果32.3元油價時現金折價1.2元與花旗透明卡1%回饋自助折價0.8元幾乎相等
這樣就不會被週六加油這條件限制,若該月花旗透明卡有2%回饋時約等於折價1.4元。
為了不用每週都幫他重新計算就寫了這個油價計算器,也提供給廣大網友使用。
油槍插入很簡單就能加油,但計費公式可一點都不簡單!
加油機四捨五入、各間加油站不同的折扣價格、信用卡的現金回饋或折扣價格,
繁雜的公式讓人們難以得知每次加油的實際費用,也很難決定要用哪種優惠組合
就用Jason精心設計的油價計算器來為您揭露!
網址
http://www.jsapp.tk/php/fuel/index.php

jsdb 發表在 痞客邦 留言(0) 人氣()

承前篇 20090604 - 免費JSP網路空間
當年找到了三個免費主機,境況之慘,可說僅存一個。
除了壞消息之外,好消息是又找到了一個。
如果有什麼好站被我遺漏了,也請留言。

jsdb 發表在 痞客邦 留言(0) 人氣()

A solution for oracle table data post processing without bad trigger

In some cases, we receive the data in table from the front end and do some tasks after that.
The problem is we do not know when the data changed.


jsdb 發表在 痞客邦 留言(0) 人氣()

某種情況下,我們會用table接收前端系統的資料,並在那之後進行一些後製處理。
問題是我們無法得知資料何時會被更新。


jsdb 發表在 痞客邦 留言(0) 人氣()

Firefox connections are slow recently, but nothing else happened.
Sometimes there is "Connecting to www.superfish.com" on status bar, but I do not access this website.
Checking connection with "Tamper Data", and found the bottleneck is "http://www.superfish.com/ws/sf_main.jsp?dlsource=calculator".
This connection waits 4 seconds at most, and only when this connection
finished the original connection begins.
Look into the parameters in the url, I thought it might be caused by the addon calculator.
The addon websits said "Remove Smartlinks system and add Similar Products service (can be disabled from the extension preferences) "
The radio set to turn on/off this "service" in the bottom of preferences page.

jsdb 發表在 痞客邦 留言(0) 人氣()

Firefox偷偷連結www.superfish.com造成瀏覽速度緩慢


最近Firefox開網頁變得很慢,但除此之外並無異狀
狀態列偶爾會看到Connecting to www.superfish.com這個陌生的網域
於是開Tamper Data檢視連線狀況

發現瓶頸果然是http://www.superfish.com/ws/sf_main.jsp?dlsource=calculator
此連線最長4秒,完成後才會連線目標網站
再仔細看網址參數,直覺應該是addon calculator搞的鬼
網頁寫"Remove Smartlinks system and add Similar Products service (can be
disabled from the extension preferences) "
這個開關在calculator的preferences頁面底端。

jsdb 發表在 痞客邦 留言(0) 人氣()

fmt的流程會導致編碼問題
當server語系設定、網頁語系設定、資料語系設定不一致的時候,使用fmt之後會導致編碼錯誤

jsdb 發表在 痞客邦 留言(0) 人氣()

There is a JSP on OC4J,
and there is a command <fmt:formatNumber value="${valueMap[yearQKey]}" groupingUsed="true" />.
It was used to grouping BigDecimal in a hash map.
It worked fine since 5 month ago, until we found a 100% reproducable exception recently.

jsdb 發表在 痞客邦 留言(0) 人氣()

OC4J上有一個JSP,
指令是<fmt:formatNumber value="${valueMap[yearQKey]}" groupingUsed="true" />
使用fmt:

formatNumber把hashmap內BigDecimal grouping
以往一直都很正常,某天突然發生一個能100% reproduce的Exception

jsdb 發表在 痞客邦 留言(0) 人氣()

notepad++是一個功能很多的免費文書編輯軟體
不過在多國語系方面一直有問題
之前曾用5.6.4 取代中文字串,結果把整篇文章毀了,一個下午都是白工...

2010-01-26 更新的 notepad++ 5.6.6,終於修正中文語系的問題了~
以後不會有中文顯示亂碼,也不再有搜尋/取代的錯誤了
更新吧!

http://notepad-plus.sourceforge.net/tw/site.htm

change log

Notepad++ v5.6.6 new features and fixed bugs (from v5.6.5) :

1. Fixed Search bug with Chinese/Japanese/Korean characters.

Notepad++ v5.6.5 new features and fixed bugs (from v5.6.4) :

1. Fix loading encoding file making file corrupted (after saving).
2. Fix xml/html encoding overrides BOM if present.
3. Fixed Chinese/Japanese/Korean characters display problem after
"find in the current document".
4. Add "set find text and find next" feature.
5. Add JSP.
6. Recover langs.xml while its length is zero.
7. Fix "Close Window(s)" in Window dialog bug (if file is dirty and
cancel to close).
8. Fix finding "\0" or "\x00" issue in find extened mode.
9. Add "\u" in find extened mode to find Unicode encoding
character(ex. "\u00e9" find '?).

jsdb 發表在 痞客邦 留言(0) 人氣()

看到idea 9,就順手更新了一下...
一打開發現,某些英文變成亂碼了,中文反而沒問題
亂碼_00.png

摸索了一陣子,才找到原因
在設定這裡,另存一個schema
改選其他的字型就OK了!
亂碼_01.png
亂碼_02.png



不過這樣只解決掉editor
idea ui上還是有亂碼
這裡選什麼theme不是重點,而是要override default font
亂碼_04.png
亂碼_03.png
就這樣解決囉~

jsdb 發表在 痞客邦 留言(1) 人氣()

A solution for Oracle ORA-04062 timestamp chaged exception

This happened when the remote procedure timestamp changed,
the local caller procedure will failed once.
Users complained this issue long time ago,
somehow IT team can't find a real automatic way to prevent this issue.
The workaround A: compile the local procedure too.
The workaround B: execute the remote procedure from local to update the timestamp.

A is simple, and the compile date (LAST_DDL_TIME) is changed,
but I don't want the compile date updated when the procedure has not been changed.
B is a little complex, and the procedure must have a way to execute wothout the business logic (like a bypass),
but the compile date will remain the same.

Both workarounds has one prerequisite that you must know the timestamp changed happened.
When the remote procedure is too complex, you might not know the the timestamp change happened.
For example the remote procedure used some procedures, and these procedures used some other procedures.
When any of these procedure is modified, the timestamp of all related procedures will be changed.
So pitiful IT members need a better solution to prevent customer complains.

Some day, this idea just occurred to me.
I have not find any solution like this on the internet yet.
Anyway, I post this on my blog to share this idea.

I'll use a simple case to demonstrate how to solve ORA-04062 timestamp changed exception.
If your program is complicated, you have to modify your program structure to fit this solution.

Jason Lin, 06/10/2009
-- Sample Code: Local Caller --    
CREATE OR REPLACE PROCEDURE localCaller AS
  result varchar2(4000):='';
  n_jobNo number := '1';
BEGIN
  BEGIN
    remoteProcedure@remoteDbLink(result);
    IF 'OK' = result THEN
      -- actions : remote procedure result is success
    ELSE
      -- actions : remote procedure result is failure
    END IF;
  EXCEPTION
    WHEN OTHERS THEN
      IF 'ORA-04062' = substr(SQLERRM,1,9) THEN
        /*
        The sqlerrm is 'ORA-04062: timestamp of procedure 
"remoteProcedure" has been changed.'
When the caller procedure failed becaues ORA-04062,
schedule itselt to run again later. After this failure, the timestamp of remote procedure
has been updated by database automatically. */ dbms_job.next_date(n_jobNo, SYSDATE+1/14440); ELSE -- handle other exceptions here END IF; END; END;
-- Sample Code: Local Job --
begin
  sys.dbms_job.submit(job => :=job),
                     what => 'localCaller;'
                next_date => to_date('01-01-3000', 'mm-dd-yyyy'),
                 interval => 'sysdate+365000');
  commit;
end;

jsdb 發表在 痞客邦 留言(0) 人氣()

此文過時,請參閱新篇
20120706 - 免費JSP網路空間


最近需要一個支援mysql的JSP免費網站空間
上網找了很久
免費提供JSP free webhosting的不多
似乎茫茫網海碩果僅存的只剩下三間
茲列如下,供網友參考
如果有什麼好站被我遺漏了,也請留言

1.

代號 eatj
網址 http://www.eatj.com/
技術 FTP, Java(1.5,1.6), Tomcat(5.5, 6.0), JSP, PHP,
可看tomcat sys log, MySQL, phpAdmin
免費限制 15天不登入即刪帳號,帳號被刪後只能給錢恢復
關閉JVM 每天04:00, 10:00, 16:00, 22:00 (PST/GMT-7),
即19:00, 01:00, 07:00, 13:00 (GMT+8)
優點 sys log好用
mysql可外部連線
速度三者中最快
缺點 定時關ap很糟糕,想用來當web service不太可能

2.

代號 hostingJava
網址 http://free.hostingjava.it/
技術 FTP, JAVA(1.5), Tomcat (5.5), JSP, MySQL, phpAdmin
免費限制 義大利網站,有英文版說明頁面。似乎沒有免費限制
優點 沒發生關ap、當機
缺點 速度三者中最慢

3.

代號 jhost
網址 http://www.jhost.cn/
技術 FTP, JAVA(1.5), Tomcat (5.5), JSP, PHP, MySQL, phpAdmin
免費限制 目前免費,未來不確定
優點 速度三者中中等
缺點 不定時會crash,要等工作人員重開
ap程式稍微複雜,有可能會開不了機

jsdb 發表在 痞客邦 留言(5) 人氣()

最近一年來,電腦有點怪怪,常出現硬體造成的藍白畫面。

自己交叉測試了一些零件,結果還是無法杜絕當機。
畢竟也是前兩個世代的主機了,升級已經變成不划算的選擇。
就把1.4G整台淘汰換新了。

把網拍來的零件組好之後,
觀察了幾天,當機的頻率急速下降,
但還是會發生。

整台電腦,沒換的只剩下電源了。
回想起來,電腦機殼開始強烈漏電也是最近的事情。
原本只覺得大概是乾燥靜電,但是強度已經越來越誇張了。

電系的問題,其實我也不是很清楚。
就先打電話去問問廠商吧...

Jason:「你好,我有一個康舒終身保固的電源,最近機殼漏電很嚴重,請問這樣可以送修嗎?」
客服:「可以啊...你可以寄到公司的維修收件地址」
Jason:「是喔... 可是我當初的包裝盒已經丟了...
         我看網頁上有康舒服務聯盟,我可以拿去那邊送嗎?」
客服:「不過他們不一定會幫你送喔...」
我聽到這裡其實有點三條線,康舒服務聯盟上面寫
"完善迅速的售後服務(包含產品檢測、送修)、最新最快的產品資訊取得、聯盟門市獨家促銷。"

Jason:「那我先跟附近的聯盟店家確認看看好了。
         我需要附上終身保固卡嗎?」
虧我還翻箱倒櫃,找出五年前收藏的終身保固卡。

客服:「不用,我們看型號就知道了...」
Jason:「謝謝。」

清單上有兩間店家在我還有意願親自去的距離內。
上網稍微查詢了一下風評,選了比較多好意見的那間先打個電話確認。
店家回覆是可以代送,重點是「免費、免包裝」...
原本看樹昌的維修說明,運費必須自負。
看其他網友的送修經驗,也被收了100元運費。
這下就省下運費了,真是好人!

週五晚上送修,下週五傍晚收到取貨簡訊。

安裝後,果然機殼都乖乖沒再亂咬人了。
原本還在想五年前的電源,會不會直接宣告不治,
然後換一個新款良品給我。
結果是原機修復,
反正能正常使用就好囉!

當年也不知為何突然腦袋跳線,
特地跑去訂購康舒電源,
價格22xx,算是當時個人PC很貴的選擇。
也是台灣第一間提出終身保固的廠商。
當年那塊主機板壽命只有兩年,後來又換了另一塊用到現在才換掉。
cpu雖然活的好好的,也在這次被換掉囉...

加油吧!
等你十歲的時候,我再幫你吹蠟燭!

P.S. 寫這篇的時候,查詢網友的回覆資料,似乎後來的產品都沒附保固卡。

jsdb 發表在 痞客邦 留言(2) 人氣()