bignumber.js argument not a primative number
version 5.0.0 and below
toFixed(dp)
dp is OK with int number or string of int
Any version above 5.0.0
Only number is OK.
string gets "argument not a primative number" error
Well...
20190417
20190311
小蟻 夜視版
硬體中國版
最新的韌體1.8.7.0.C 竟然沒有鎖地區了
舊版大概一年多以前就連不上即時影像
但還可以設定
在才看到一篇說更新可以使用
更新後看起來是可以連到即時影像了
某些後期批號還是必須停在在1.8.5 .1K_201508311131
重刷以下資源竟然又可以連上了
資源: https://mobileai.net/2016/07/15/yicamera-update-2/
舊版大概一年多以前就連不上即時影像
但還可以設定
在才看到一篇說更新可以使用
更新後看起來是可以連到即時影像了
某些後期批號還是必須停在在1.8.5 .1K_201508311131
重刷以下資源竟然又可以連上了
資源: https://mobileai.net/2016/07/15/yicamera-update-2/
20170522
euthanasia vs death penalty 安樂死治療死刑犯
https://youtu.be/D66Kn2QAtyk
廢除死刑的議題開啟關於治安的新思維
安樂死的討論也漸漸成為主流
人類對於死亡不應該再視為禁忌
長久以來死亡的定義大都被
信仰、宗教、神秘等非科學領域所定義
死刑廢除議題或多或少也受到宗教和道德的觀點影響
但事實上不跳脫宗教等立場
不能單純以無神論的觀點道德和科學
來檢視死亡的意義和價值
絕對無法得到適用於21世紀的死亡觀
以下問題
似乎是人類接下來應該去思考解答的:
終身監禁定罪者,或是任何無法期待更生的定罪者
是否有安樂死的權利?
如果有,會不會成為逃避矯正的巧門?
既有的刑度是否會喪失嚇阻力?
或是必須規定裁定應執行有期徒刑比例後
才能得到安樂死權利?
重度精神患者,包含無法恢復的毒品患者,
反社會人格者,無行為能力者等
是否可以採用安樂死做為治療方法?
可否使用安樂死治療作為犯罪預防?
會不會因為安樂死治療,
反而出現更多無視道德的反社會者?
還是可以和廢除死刑的手段配合,
阻止犯罪者加成犯罪?
廢除死刑是為了提倡人不該殺人?
但殺人者或殘忍犯罪存在的事實,
不就正面否定不殺人只是空泛的理想?
廢除死刑的議題開啟關於治安的新思維
安樂死的討論也漸漸成為主流
人類對於死亡不應該再視為禁忌
長久以來死亡的定義大都被
信仰、宗教、神秘等非科學領域所定義
死刑廢除議題或多或少也受到宗教和道德的觀點影響
但事實上不跳脫宗教等立場
不能單純以無神論的觀點道德和科學
來檢視死亡的意義和價值
絕對無法得到適用於21世紀的死亡觀
以下問題
似乎是人類接下來應該去思考解答的:
終身監禁定罪者,或是任何無法期待更生的定罪者
是否有安樂死的權利?
如果有,會不會成為逃避矯正的巧門?
既有的刑度是否會喪失嚇阻力?
或是必須規定裁定應執行有期徒刑比例後
才能得到安樂死權利?
重度精神患者,包含無法恢復的毒品患者,
反社會人格者,無行為能力者等
是否可以採用安樂死做為治療方法?
可否使用安樂死治療作為犯罪預防?
會不會因為安樂死治療,
反而出現更多無視道德的反社會者?
還是可以和廢除死刑的手段配合,
阻止犯罪者加成犯罪?
廢除死刑是為了提倡人不該殺人?
但殺人者或殘忍犯罪存在的事實,
不就正面否定不殺人只是空泛的理想?
20160504
20151109
20150414
My Flickr account was deleted without warning
I just did a major migration from Picasa, which I failed to grand-father
and the granted storage was due.
PicBackMan helped me to do this.
Plus I decided to backup all the photos and stuffs in my PC to Flickr.
I paid for PRO account for another 2 years just a few month ago.
Maybe it's because I was login with google.
Maybe it's because "the stuffs" in my drive, which flickr encouraged me to upload with the new shiny Flickr Mac app.
Anyway the customer service just gave me a link to the whole terms saying that I abused flickr.
It's even shown in the reply title
I have some photo that I decided to keep only on Flickr.
It seems the decision was sooooo flikring wrong wrong wrong.
Here is my advise:
Keep your precious photos away from Flickr
Any of them. Before it's too late.
If you are serious about your yahoo ID, delete flickr account related NOW.
Use some flickring disposable account to UPLOAD STUFFs to Flickr.
Never pay for Flickr because there is no useful service.
The only service is sending you a link to their terms after your account is deleted.
and the granted storage was due.
PicBackMan helped me to do this.
Plus I decided to backup all the photos and stuffs in my PC to Flickr.
I paid for PRO account for another 2 years just a few month ago.
Flickr just delete my account since 2006.
Along with that my yahoo ID is also completely removed
I even don't know when exactly they did that.Maybe it's because I was login with google.
Maybe it's because "the stuffs" in my drive, which flickr encouraged me to upload with the new shiny Flickr Mac app.
Maybe it's just the man in PicBackMan hated me just used and unsubscribe their service so they reported me for fun.
Anyway the customer service just gave me a link to the whole terms saying that I abused flickr.
It's even shown in the reply title
Wrote to yahoo account service, too. No reply.[Flickr Case 3359099] Re: Abuse Report via email - Re: Password and sign in : unable to sign in [ref:_00DoKBVc._500o0qEaT:ref]
I have some photo that I decided to keep only on Flickr.
It seems the decision was sooooo flikring wrong wrong wrong.
Here is my advise:
Keep your precious photos away from Flickr
Any of them. Before it's too late.
If you are serious about your yahoo ID, delete flickr account related NOW.
Use some flickring disposable account to UPLOAD STUFFs to Flickr.
Never pay for Flickr because there is no useful service.
The only service is sending you a link to their terms after your account is deleted.
20150316
All macbook's without usb-c is worthless now
Just don't buy.
Also, don't buy the "all-new MacBook" (Early 2015).
It's under speced and over priced.
I expect USB-C updates on all apple PC/NB.
Buy then.
Also, don't buy the "all-new MacBook" (Early 2015).
It's under speced and over priced.
I expect USB-C updates on all apple PC/NB.
Buy then.
20140904
Wiring diagram for 2 LACE Sensor Dually in Squier J5 Telecaster
push-pull二つでHH配置のH/S切り替えとSモードでのコイル選択が可能な配線図のドラフト2を完成。Squier J5 Telecaster x LACE Sensor Duallyを想定。グーグルで探せないから作った。 pic.twitter.com/5sHMNKjCqF
— 田中めもちく@BiS余韻☆UPDATE (@memoticu) 2014, 9月 4
Just came up with a wiring diagram. With 2 DTDP (push-pull) switches, one is for toggling humbuckers-singles. The other is for selecting north or south coils.
It's kinda particularly for my new Squier J5 Telecaster if I replace the stock pickups with 2 LACE Sensor Dually 's.
That will be BLUE-GOLD in the neck an RED-RED in the bridge.
The idea is inspired by Jonny Greenwood (Radiohead) 's Telecaster plus with BLUE in the neck and RED Dually in the bridge.
Not sure if it works for now.
Please leave comments. Anything, suggestions are welcome.
I will call this diagram "HSNS switch", if it's not invented until now.
20140721
Amazon推出月費制看到飽服務
現在才知道amazon要開始月費制了。
這又喚醒了個人對月費制的懷疑:
如果月費是付給服務提供者,那誰付錢給作者?
如果月費制能夠活化以往單項購入不受青睞的作品,那作者自己免費發表再向滿意的讀者收費會不會創造更大收益,而不需要一個鎖死用戶的服務商?
付費使用這種服務是道德的嗎?
是否迫使作者必須屈服於amazon的通路下?
http://time.com/3006066/amazon-kindle-unlimited-books/
http://continuumwebdesign.com/blog/the-moral-dilemma-of-spotify/
這又喚醒了個人對月費制的懷疑:
如果月費是付給服務提供者,那誰付錢給作者?
如果月費制能夠活化以往單項購入不受青睞的作品,那作者自己免費發表再向滿意的讀者收費會不會創造更大收益,而不需要一個鎖死用戶的服務商?
付費使用這種服務是道德的嗎?
是否迫使作者必須屈服於amazon的通路下?
http://time.com/3006066/amazon-kindle-unlimited-books/
http://continuumwebdesign.com/blog/the-moral-dilemma-of-spotify/
20131003
Offline issue tracking system?
http://stackoverflow.com/questions/3657650/where-can-i-find-a-comparison-of-distributed-and-offline-issue-trackers
http://stackoverflow.com/questions/2186628/textbased-issue-tracker-todo-list-for-git
Since our company work on customer's sites,
the Redmine hosted by the company is terribly slow.
And yes, our PM actually uses a huge Excel file for issue tracking.
So, I am looking for a GUI based issue tracking system somehow like Redmine,
which works offline and is able to push change when online.
But there seems no product meet my need...
http://stackoverflow.com/questions/2186628/textbased-issue-tracker-todo-list-for-git
Since our company work on customer's sites,
the Redmine hosted by the company is terribly slow.
And yes, our PM actually uses a huge Excel file for issue tracking.
So, I am looking for a GUI based issue tracking system somehow like Redmine,
which works offline and is able to push change when online.
But there seems no product meet my need...
20130827
DB2 LOAD 資料列順序
維持來源資料檔案的資料列順序
需要設定參數
需要設定參數
CPU_PARALLELISM 1
否則某些設定下,當列數大於某個數目時,會自動啟動多緒讀取。(v9r7?)
效能較好,但會使資料列匯入順序變得無法預期。
20130702
Picasa (G+ photo) vs flickr 2013更新版
更新:
我的Flickr帳號被刪除 我建議大家離開Flickr
除非你想冒著所有照片和yahoo帳號一起被刪的風險
http://misivic.blogspot.tw/2015/04/my-flickr-account-was-deleted-without.html
如果可以爲了上傳最高解析度,忍受flickr比較慢的速度
=用flickr免費
如果可以爲了上傳速度,忍受G+的解析度限制
=用Picasa免費
要用到超過1TB,而且不屑註冊新帳號
=flickr付費
要用到超過15G而且你是Google信徒
=Picasa付費
我的Flickr帳號被刪除 我建議大家離開Flickr
除非你想冒著所有照片和yahoo帳號一起被刪的風險
http://misivic.blogspot.tw/2015/04/my-flickr-account-was-deleted-without.html
如果可以爲了上傳最高解析度,忍受flickr比較慢的速度
=用flickr免費
如果可以爲了上傳速度,忍受G+的解析度限制
=用Picasa免費
要用到超過1TB,而且不屑註冊新帳號
=flickr付費
要用到超過15G而且你是Google信徒
=Picasa付費
20130423
Version control of database schema
After a very painful merge process, I come up with these practice.
Maybe not THE best practice, but at least these will eliminate most problems.
And NO, these practice only applies to database WITHOUT foreign keys and other dependency between objects.
By the way, I only worked with DB2.
Go! Go! Destroy! PPCC!
Maybe not THE best practice, but at least these will eliminate most problems.
And NO, these practice only applies to database WITHOUT foreign keys and other dependency between objects.
By the way, I only worked with DB2.
- One file per main object. Match the name of file and the object within. The idea is to follow the java object law.
- If migrating from files with many objects, eliminate all diff noise before you do teardown.
- Keep only ddl's, the final state of an object creating script. You also need a one-fits-all script to submit them all at one push.
- Keep schema alteration SQL's in another folder, only in release branch or trunk per release. Version the whole folder, which means keep only those for the migration from the last release.
For anyone needs foreign keys and other dependency between objects, try to hack the object naming and let them work through your deploy script.
I hope these will work. Please leave comments!
BiS rules!
Nozoshyan is so cute.
20130110
One line command to restart IDENTITY in all tables
One single line command to restart all IDENTITY columns genrate by default in all tables in SCHEMA 'db2inst1':
db2 -x "select 'SELECT ''ALTER TABLE DB2WMS.'||T.TABNAME||' ALTER COLUMN ID RESTART WITH ''||TO_CHAR(CASE WHEN MAX(ID) >= 500 THEN MAX(ID) + 1 ELSE 500 END) FROM '||T.TABNAME FROM SYSCAT.TABLES T,SYSCAT.COLUMNS C WHERE T.TABNAME = C.TABNAME AND T.TABSCHEMA = C.TABSCHEMA AND T.TABSCHEMA = 'db2inst1' AND T.TYPE = 'T' AND C.GENERATED ='D'" | db2 -x +p | db2 -v +p
db2 -x "select 'SELECT ''ALTER TABLE DB2WMS.'||T.TABNAME||' ALTER COLUMN ID RESTART WITH ''||TO_CHAR(CASE WHEN MAX(ID) >= 500 THEN MAX(ID) + 1 ELSE 500 END) FROM '||T.TABNAME FROM SYSCAT.TABLES T,SYSCAT.COLUMNS C WHERE T.TABNAME = C.TABNAME AND T.TABSCHEMA = C.TABSCHEMA AND T.TABSCHEMA = 'db2inst1' AND T.TYPE = 'T' AND C.GENERATED ='D'" | db2 -x +p | db2 -v +p
20121108
DB2開啟ORACLE相容的問題
最近踩到的坑。
1.TRANSLATE函數參數的順序相反:
ORACLE: TRANSLATE(string,from,to)
DB2: TRANSLATE(string,to,from)
2.不確定是哪個相容flag,將空字串視為NULL。
預設是關閉的,在判斷式會有蠻多問題,如
trim(' ')=''
trim(' ') IS NULL
trim(' ') in ('',NULL)
這3個判別式的結果預設和轉換開啟時是完全相反的
20121007
20120919
20120901
恋のヌルポ
恋のヌルポ (作詞:@memoticu)
Calling calling
me.love(you) 愛してる true
Calling calling
you.me(love) 恋してる true
運命さえ感じられる
輝き満ちた日々
Calling calling
me.love(you) ヌルポ どうした?
Calling calling
you.me(love) ヌルポ どうして?
運命さえ感じられた
輝き 消えた
きっといっぱい辛い思いさせたね
でなきゃ
バッファーオーヴァーフロー
起こさなかった
君の
アドレスには
もう届かない
レファレンス
恋のヌルポエラー
Calling calling
me.love(you) 愛してる true
Calling calling
you.me(love) 恋してる true
運命さえ感じられる
輝き満ちた日々
Calling calling
me.love(you) ヌルポ どうした?
Calling calling
you.me(love) ヌルポ どうして?
運命さえ感じられた
輝き 消えた
きっといっぱい辛い思いさせたね
でなきゃ
バッファーオーヴァーフロー
起こさなかった
君の
アドレスには
もう届かない
レファレンス
恋のヌルポエラー
20120606
DB2 尋找PROCEDURE對應的PACKAGE
http://www-304.ibm.com/support/docview.wss?uid=swg21497134#D2
The naming seems random.
The naming seems random.
訂閱:
文章 (Atom)