`
冰糖葫芦有点酸
  • 浏览: 29973 次
  • 性别: Icon_minigender_2
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://code.jquery.com/jquery-1.11.2.js"></script> </head> <body> <input id="container&q ...
package com.test.ftp.download; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; import org.apache.commons.net.ftp.FTPReply; import org.ap ...
1. 在pom.xml文件中添加如下绿色字体标记部分 引用 <build>       <plugins>           <plugin>               <groupId>org.apache.maven.plugins</groupId>               <artifactId>maven-compiler-plugin</artifactId>               <configuration>                   <source> ...
配置如下红色字体标记部分,run mvn clean package command 即可build生成一个可执行jar 引用 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation=" ...
Here are some link addresses for process: 1.https://my.oschina.net/u/566591/blog/1359432 2. ffmpeg plugin for java: https://github.com/bramp/ffmpeg-cli-wrapper 3. It's used for wechat/qq audio file convert https://github.com/kn007/silk-v3-decoder

Http Download File

    博客分类:
  • Java
package com.augmentum.mediaprocess.util; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.http.HttpHost; import org.apache.http.HttpResponse; import org.apache.http.client.fluent.Request; import org.apache.http.client.utils.URIUtils; import ...
import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ResourceLoader; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.ResourceLoader; import org.springframework.h ...
需求:微信web页面支持emoji表情 主要思想:因为每个emoji表情都有固定的编码,为了避免表情在页面上乱码,我们可以将表情都转换成其对应的实体编码保存 以下是JS转码的方法 /* 将emoji表情字符转换成实体字符 */ var utf16toEntities = function(str) { var patt=/[\ud800-\udbff][\udc00-\udfff]/g; /* 检测utf16字符正则 */ str = str.replace(patt, function(char){ var H, L, code; ...
假设数据库表结果如下: 评论ID Parent评论ID 状态 评论IDParent评论ID状态commentIdparentCommentIdstatus 需求:查询某一条指定状态下评论的所有子评论(包括子评论的子评论) SELECT ID_ FROM NEO_FORUMCOMMENT WHERE STATUS = ? START WITH ID_= ? CONNECT BY PRIOR ID_=PARENTCOMMENTID refer to: http://www.iteye.com/topic/287749
Here is a simple demo about how to run test suite with java program: package com.test.main; import org.testng.TestListenerAdapter; import org.testng.TestNG; import java.util.ArrayList; import java.util.List; public class TestRunner { public static void main(String[] args) { ...
1. 全局等待 /*全局设置,当元素识别不到的时候,可以接受的最长等待时间。*/   driver.manage()timeouts().implicitlyWait(30, TimeUnit.SECONDS); /*全局设置,页面加载的最长等待时间。*/   driver.manage()timeouts().pageLoadTimeout(30, TimeUnit.SECONDS); /*全局设置,关于JavaScript代码的异步处理的超时时间。AJAX请求。*/   driver.manage()timeouts().setScriptTimeout(30, TimeUni ...
import com.google.gson.JsonObject; import com.google.gson.JsonParser; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.methods.PostMethod; import org.a ...
Here is the JSON file as below [ { "id": 123, "properties": { "property1": property1, "property2": property1 } }, { "id": 456, "properties": { "pro ...
Since Chrome driver won't setup flash plugin by default, then we can add it in coding when initial drvier. Here is the simple demo: System.setProperty("webdriver.chrome.driver", "C:/chromedriver.exe"); ChromeOptions options = new ChromeOptions(); //set "--ppapi-flash-p ...
Run case script on remote machine, need to configure selenium grid on local and remote machine. Here are the steps to configure selenium grid 1. Make sure basic env prepared in local and remote 1) installed JDK and configured env variable. 2) make sure web driver prepared, such as chromedriver.exe o ...
Global site tag (gtag.js) - Google Analytics