2015年9月16日

利用google cache 破解網頁鎖右鍵

平常都用js書籤的方式

還有一招是利用google的cache


方式如下:

如個有個網站 http://u.cannot.copy.www 不給右鍵反白複製

就搜尋「cache:http://u.cannot.copy.www 」(chrome的話 直接打在網址列即可)

然後再點選純文字版




2015年8月28日

JAPAN轉送服務

http://tensojapan.jshoppers.com/ch/index.asp
JSHOPPERS.comで販売している商品は、お届けできません。
オークションと以下のサイトは転送サービスのご利用はできません。
セシール、イマージュ、ベルーナ、DHC

可在與JSHOPPERS.com正在販賣的商品相同之商品,將不予轉送。
拍賣商品以及以下網站商品不可利用本網站轉送服務。
Cecile、IMACE、RyuRyu、LUAR、DHC

2015年8月27日

如何快速刪除 Excel 資料庫中所有的空白列,而不需要一列一列的刪除?

https://support.microsoft.com/zh-tw/kb/2679461

1. 選取整個資料範圍,【常用】索引標籤→【編輯】群組尋找與選取特殊目標】。

2.在【特殊目標】對話方塊中,點選【空格】,再按下【確定】。

3. 所有空白列都在選取的狀態,點按【常用】索引標籤儲存格】群組刪除】。



DONE!

2015年7月28日

[ORACLE] Data got commited in another/same session, cannot update row.

Try unselecting

use ORA_ROWSCN for DataEditor insert and update statement

in tools->preferences->database->object viewer

2015年7月13日

將 Python 檔案編譯成 exe (執行檔) - py2exe

1下載與使用的 Python 相對應的版本的 py2exe 工具  安裝好

2. 準備 steup.py 檔案

from distutils.core import setup
import py2exe
setup(console=['xxx.py'])


*xxx.py是要準備變成exe檔的檔案
*xxx.py可以需要完整路徑:D:\\CODE\\Python\\xxx.py


3.打開 cmd
 
python setup.py install
python setup.py py2exe



*指令可能要完整路徑
ex:C:\Python27>python "D:\CODe\Python\setup.py" install

*完成後會在 Python27 產生出 dist 跟 build 二個資料夾,執行檔在 dist 裡


--------
執行exe檔
打開cmd

C:\Python27\dist>xxx.exe

2015年5月27日

[ORACLE] UPDATE時 撘配EXISTS關鍵字

有時UPDATE時 會用到子查詢


update member
set  unit =(select unit from member_sync
where member.oid = member_sync.oid
and member.unit <>member_sync.unit)


腦中覺得  這樣下 就是update member裡的unit 和member_sync 有同樣oid 但unit不同的資料們

but~~~~

這樣下完  會整張member的unit都被update了 而且欄位還都變成null..........



google後 看到 http://www.techonthenet.com/oracle/update.php
寫說要加上"EXISTS"

You may wish to update records in one table based on values in another table. Since you can't list more than one table in the Oracle UPDATE statement, you can use the Oracle EXISTS clause.


所以寫法就變成
update member
set  unit =(select unit from member_sync
where member.oid = member_sync.oid
and member.unit <>member_sync.unit)

WHERE EXISTS (select unit from member_sync
where member.oid = member_sync.oid
and member.unit <>member_sync.unit)


原因在http://blog.xuite.net/twoli1102/work/65466674-Update%E8%AA%9E%E5%8F%A5%E5%84%AA%E5%8C%96
裡提到
Update語句的原理是先根據where條件查到資料後,如果set中有子查詢,則執行子查詢把值查出來賦給更新的欄位,執行更新。

 如:
update 表a set a.欄位1 = (select b.欄位1 from 表b where a.欄位2=b.欄位2) where exists(select 1 from 表b where a.欄位2=b.欄位2)。

查表a的所有資料,迴圈每條資料,驗證該條資料是否符合exists(select 1 from 表b where a.欄位2=b.欄位2)條件,如果是則執行(select b.欄位1 from 表b where a.欄位2=b.欄位2)查詢,查到對應的值更新a.欄位1中。
關聯表更新時一定要有exists(select 1 from 表b where a.欄位2=b.欄位2)這樣的條件,否則將表a的其他資料的欄位1更新為null值。