It<Foo> fooIt = it(fooList);
for (Foo foo : fooIt) {
//for each foo in fooList...
foo.doSomething();
//if you need the current index:
System.out.println(fooIt.getIndex());
}
2014年1月15日
[JAVA] java foreach 的index
2014年1月14日
ORA-12519: TNS:no appropriate service handler found
spte1
step2
step3
∵stpe2的值應該會比step1大
∴
step4
重開
select count(*) from v$process;
step2
select value from v$parameter where name='processes';
step3
∵stpe2的值應該會比step1大
∴
alter system set processes=300 scope=spfile;
step4
重開
2014年1月2日
批次改相片EXIF 拍照時間
出國忘了調相機時間
本來用PICASA改 但批次改的時候 感覺怪怪的
上網找到 jhead 但沒有界面 只能用CMD
http://www.sentex.net/~mwandel/jhead/
下載後 WIN7 要放在 【C:\Windows\System32】 (不然亂放照說明直接點兩下會無效)
然後 在目錄下打指令即可
例:
D:\PHOTO\TEST>jhead -ta+1:00 *.jpg
(對D:\PHOTO\TEST 下所有照片時間調快一小時)
---網路上其他說明---
http://www.mobile01.com/topicdetail.php?f=256&t=162219#16236094
(1)先把[EXIF內的時間]加上時差:
「jhead -ta+1:00 **/*.jpg」:把時間調晚1小時;
「jhead -ta-0:02:44 **/*.jpg」:把時間調早2分44秒
(2)再把檔案時間調成[EXIF內的時間]:
「jhead -ft **/*.JPG」
http://tonysnote.blogspot.tw/2012/06/jheadexiftool.html
本來用PICASA改 但批次改的時候 感覺怪怪的
上網找到 jhead 但沒有界面 只能用CMD
http://www.sentex.net/~mwandel/jhead/
下載後 WIN7 要放在 【C:\Windows\System32】 (不然亂放照說明直接點兩下會無效)
然後 在目錄下打指令即可
例:
D:\PHOTO\TEST>jhead -ta+1:00 *.jpg
(對D:\PHOTO\TEST 下所有照片時間調快一小時)
---網路上其他說明---
http://www.mobile01.com/topicdetail.php?f=256&t=162219#16236094
(1)先把[EXIF內的時間]加上時差:
「jhead -ta+1:00 **/*.jpg」:把時間調晚1小時;
「jhead -ta-0:02:44 **/*.jpg」:把時間調早2分44秒
(2)再把檔案時間調成[EXIF內的時間]:
「jhead -ft **/*.JPG」
http://tonysnote.blogspot.tw/2012/06/jheadexiftool.html
2013年12月26日
從網址列直接快速建立 Google 日曆新活動
http://www.playpcesor.com/2013/12/google-chrome-google.html
http://www.google.com/calendar/event?ctext=+%s+&action=TEMPLATE&pprop=HowCreated%3AQUICKADD
2013年12月10日
2013年11月26日
struts2 tag裡 REPLACE的方法
<s:set var="test1">AAA</s:set>
<s:textarea name="testTEXT" rows="3" cols="50" value='%{#test1.replace("AAA","")}' "/>
另一寫法種(從bean來的)
<s:property value='member.mom.replace(\"\r\",\"<br>\").replace(\"\n\",\"<br>\").replace(\"<br><br>\",\"<br>\")' escape="false"/>
2013年11月22日
利用jquery disable或是enable
前言:
htmle裡的「disabled」和「checked」一樣 不管是=true false 都是true
所以只能靠js解決==
可以用removeAttr把disabled的這屬移移掉:
或是設為空字串:
如果是要disable
可以增加屬性:
htmle裡的「disabled」和「checked」一樣 不管是=true false 都是true
所以只能靠js解決==
可以用removeAttr把disabled的這屬移移掉:
$('.checkboxN').removeAttr('disabled');
或是設為空字串:
$('.element').attr('disabled', '');
如果是要disable
可以增加屬性:
$('.element').attr('disabled', 'disabled');
訂閱:
文章 (Atom)