- 浏览: 553773 次
- 性别:
- 来自: 济南
最新评论
-
mr_xiaoyu:
最终会调用到ScheduledFutureTask#run() ...
ScheduledThreadPoolExecutor -
csmnjk:
谢谢分享!
SSH + Lucene + 分页 + 排序 + 高亮 模拟简单新闻网站搜索引擎 -
qsword555:
public static void main(String ...
ScheduledThreadPoolExecutor -
yun900800:
我的也是就抛了一次异常
ScheduledThreadPoolExecutor -
bjfuzh:
bjfuzh 写道我自己跑了下,那个抛异常的定时器,只执行了一 ...
ScheduledThreadPoolExecutor
文章列表
直接用4u wma mp3 converter转换wam 为 mp3
这个东西虽然有界面 , 但是支持命令行格式
WMAMP3Converter.exe(绝对路径) wma文件地址 /mp3
就搞定了,
可以使用java 的Runtime来用
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec(cmd);
process.waitFor();
这样就会直到那个东西转换完成 , 这个对话框才消失
可以迭代一堆文件进行转换 ...
- 2009-09-05 20:33
- 浏览 1045
- 评论(0)
Collection<MorphDynaBean> list = JSONArray.toCollection(JSONArray.fromObject(jsonStr));
然后遍历的时候使用 MorphDynaBean.get("xxxx");就能得到相应的属性了,不过这样必须保证得到的类型要与你赋予的类型相匹配, 否则不会成功的。
- 2009-09-05 20:27
- 浏览 4798
- 评论(0)
<style type="text/css"> body { background-color: #fff; padding: 0 25px; color:#000; font: 13px/18px Arial, sans-serif; } a { color: #360; } h3 { padding-top: 50px; } ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }</style>
<div id=&q ...
- 2009-09-05 12:57
- 浏览 901
- 评论(0)
<script src="json2.js"></script><script> var date = {myArr : ["a" , "b" , "c" , "d"] , count : 4}; var str = JSON.stringify(date); alert(str);</script>
- 2009-08-27 21:35
- 浏览 2377
- 评论(0)
mencoder test.wmv -o test.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:dia=4:cmp=6:vb_strategy=1 -vf scale=512:-3 -ofps 12 -srate 22050
flv抓图
ffmpeg -i xxx.flv -y -f image2 -ss(这里定义时间8秒) 8 -t 0.001 -s 350x240 ...
- 2009-08-26 16:34
- 浏览 1284
- 评论(1)
package cmd;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
class StreamDrainer implements Runnable {
private InputStream ins;
public StreamDrainer(InputStream ins) {
this.ins = ins;
}
public void run() {
try {
...
- 2009-08-22 09:26
- 浏览 4715
- 评论(0)
删除索引
for (String id : sourceItemId) { Term term = new Term("id" , id); try { reader.deleteDocuments(term); } catch (Exception e) { e.printStackTrace(); } }
恢复索引
IndexWriter.unlock(reader.directory());
reader.undeleteAll();
得到索引总数
reader.numDocs();
- 2009-08-19 11:02
- 浏览 1747
- 评论(0)
1.在web.xml中添加servlet <servlet> <servlet-name>ConnectorServlet</servlet-name> <servlet-class> net.fckeditor.connector.ConnectorServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet>
<servlet-mapping> <servlet-name>C ...
- 2009-08-12 16:46
- 浏览 2077
- 评论(0)
private List<User> list ;
public String execute() throws Exception { List<User> list = new ArrayList<User>(); for (int i = 1; i <= 5; i++) { User user = new User(); user.setId(i); user.setUsername("username" + i); user.setPassword("password" + i) ...
- 2009-07-31 18:07
- 浏览 2141
- 评论(0)
Action类中有这么三个字段:
private String tip; private String name; private String pass;
都有get set方法 , 那么使用<s:property>可以输出这些字段的值。
struts.xml中是这样配置的
<action name="proAction" class="com.test.action.TestAction" method="test"> <result> ...
- 2009-07-31 15:28
- 浏览 3632
- 评论(0)
User类
private Integer id ;
private String username ;
private String password ;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void ...
- 2009-07-31 14:28
- 浏览 7385
- 评论(0)