轉載來自:https://www.nodebeginner.org/index-zh-tw.html
很好用的方法,記錄留存備用
function start(){
console.log("Request handler 'start' was called.");
function sleep(milliSeconds){
轉載來自:https://www.nodebeginner.org/index-zh-tw.html
很好用的方法,記錄留存備用
function start(){
console.log("Request handler 'start' was called.");
function sleep(milliSeconds){
最近比較大的範例都直接做一個測試專案放在雲端硬碟了,這個範例又小又常用,故此記錄一下。
import java.util.ArrayList;
import java.util.Arrays;
public class Test{
/*************** 轉換function ***************/
// Java to JavaScript
public static String convertToJavaScriptValue(String str)
throws IOException
{
如題,此情況常發生在把舊的server刪掉後再新增時,解法如下:
Quote:
1. Close Eclipse
2. In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs

介紹一下原理,簡單來說就是透過javascript去做一些字串處理與網頁導向的功能,
然後再利用listenonrepeat網站實現youtube的影片自動重播,以下是步驟:
一.新增書籤:
名稱:youtube repeat (可自取名)
網址:javascript:(function(){var url=window.location.toString();var str="";var str_value="";if(url.indexOf("?")!=-1){var ary=url.split("?")[1].split("&"); for(var i in ary){str=ary[i].split("=")[0]; if (str == "v") { str_value = decodeURI(ary[i].split("=")[1]); window.location="http://www.listenonrepeat.com/watch/?v="+str_value;}}}})();
Invalid project path: Duplicate path entries found (/Test [Include path] isSystemInclude:true includePath:C:/MinGW/include), path: [/Test].
對於以上error我使用以下方法解決,但不見得對所有人的情況都適用:
1.對程式所屬專案名鍵->性properties -> C/C++ Build -> Discovery Options
2.點擊界面中的Clear
3.Eclipse重開
[PHP]參數傳遞遇特殊字元的解決方法
傳送端
<a href ="index.php?time=<?=urlencode("2013/04/11")?>&title=<?=urlencode("北市府系統架構(伺服器、服務項目、軟體系統)")?>">請點我</a>
接收端
$date = htmlentities(urldecode($_GET['date']));
新增admin使用者
useradd -d /home/staff/admin -s /bin/bash -g wheel admin
visudo
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
ffmpeg -formats:查看ffmpeg支援的格式
D=解碼,E=編碼
ffmpeg -i (檔案名稱):查看檔案資訊,如解析度、bitrate
mp4轉檔範例(windows):
1.安裝Java JDK-1.6版本(自行至
http://www.oracle.com/technetwork/java/javase/downloads/index.html下載)
2.執行安裝:
./jdk-6u45-linux-x64-rpm.bin
3.設定Java環境變數: