import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
黃彥霖 發表在 痞客邦 留言(0) 人氣(703)
http://www.unixmen.com/install-glusterfs-server-client-centos-7/
/etc/hosts
黃彥霖 發表在 痞客邦 留言(1) 人氣(146)
package test;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.stage.Stage;
import javafx.util.Duration;
黃彥霖 發表在 痞客邦 留言(0) 人氣(1,040)
Sardine 下載 : https://github.com/lookfirst/sardine
Sardine Wiki : https://github.com/lookfirst/sardine/wiki/UsageGuide
Commons IO 的 FileUtils 下載 : http://commons.apache.org/proper/commons-io/download_io.cgi
FileUtils 教學:http://snkcxy.iteye.com/blog/1845862
import com.github.sardine.DavResource;
import com.github.sardine.Sardine;
import com.github.sardine.SardineFactory;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.apache.commons.io.FileUtils;
黃彥霖 發表在 痞客邦 留言(0) 人氣(769)
-- 判斷表是否已經有資料了? 沒有的話就做初始化動作,也就是插入 {} 大括號,以初始化 location-Jsonb
IF NOT EXISTS (SELECT * FROM location) THEN
INSERT INTO location VALUES ('{}');
END IF;
黃彥霖 發表在 痞客邦 留言(0) 人氣(352)
http://www.softicons.com/game-icons/super-mario-icons-by-sandro-pereira
https://colorlib.com/wp/free-flat-social-media-icons-sets/
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class Test extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("Load Image");
StackPane sp = new StackPane();
// Image img = new Image("file:///home/loli/B.jpg");
Image img = new Image(Test.class.getResourceAsStream("A.png"));
ImageView imgView = new ImageView(img);
imgView.setFitHeight(32);
imgView.setFitWidth(32);
Scene scene = new Scene(sp);
primaryStage.setScene(scene);
primaryStage.show();
Button button3 = new Button("Accept", imgView);
sp.getChildren().add(button3);
button3.setOnAction((ActionEvent event) -> {
System.out.println("ok");
});
}
}
黃彥霖 發表在 痞客邦 留言(0) 人氣(590)
查看擴充套件
select * from pg_extension;
列出可安裝清單,uuid-ossp 會出現在裡面
select * from pg_available_extensions;
安裝
CREATE EXTENSION "uuid-ossp";
查看 UUID
SELECT uuid_generate_v1();
黃彥霖 發表在 痞客邦 留言(0) 人氣(235)

說明:按下 [ ~ 開新視窗 ~ ] 按鈕,就會跳出一個新視窗
預覽:
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
黃彥霖 發表在 痞客邦 留言(1) 人氣(2,185)