PIXNET Logo登入

彥霖 實驗筆記

跳到主文

個人筆記...

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 10月 10 週六 201521:11
  • Linux / Centos : SELinux Off

getenforce
sudo setenforce 0
sudo setenforce 1
sudo vi /etc/sysconfig/selinux
SELINUX=enforcing
SELINUX=disabled
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(41)

  • 個人分類:[作業系統] Linux
▲top
  • 10月 09 週五 201520:26
  • JavaFX : 小小瀏覽器

PrtScr capture
 
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)

  • 個人分類:[程式語言] Java
▲top
  • 10月 08 週四 201517:22
  • Linux / CentOS:安裝 Gluster

http://www.unixmen.com/install-glusterfs-server-client-centos-7/
/etc/hosts
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(1) 人氣(146)

  • 個人分類:[作業系統] Linux
▲top
  • 10月 04 週日 201522:46
  • JavaFX 時間操作:每一秒輸出文字

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)

  • 個人分類:[程式語言] Java
▲top
  • 10月 03 週六 201519:43
  • Java 使用 Webdav 範例 (使用 Sardine)


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)

  • 個人分類:[程式語言] Java
▲top
  • 10月 02 週五 201504:00
  • PL/PgSQL : 判斷資料是否存在

-- 判斷表是否已經有資料了? 沒有的話就做初始化動作,也就是插入 {} 大括號,以初始化 location-Jsonb
IF NOT EXISTS (SELECT * FROM location) THEN
    INSERT INTO location VALUES ('{}');
END IF;
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(352)

  • 個人分類:[資料庫] PostgreSQL
▲top
  • 9月 23 週三 201516:40
  • JavaFX Button Image


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)

  • 個人分類:[程式語言] Java
▲top
  • 9月 22 週二 201516:32
  • PostgreSQL:安裝 UUID

查看擴充套件
select * from pg_extension;
列出可安裝清單,uuid-ossp 會出現在裡面
select * from pg_available_extensions;
安裝
CREATE EXTENSION "uuid-ossp";
查看 UUID
SELECT uuid_generate_v1();
(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(235)

  • 個人分類:[資料庫] PostgreSQL
▲top
  • 9月 20 週日 201520:24
  • Java FX 入門教學:開新視窗

PrtScr capture
說明:按下 [ ~ 開新視窗 ~ ] 按鈕,就會跳出一個新視窗
預覽:
 
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)

  • 個人分類:[程式語言] Java
▲top
  • 9月 19 週六 201519:37
  • Linux / Ubuntu : 更新 APT

sudo apt-get update
sudo apt-get dist-upgrade

(繼續閱讀...)
文章標籤

黃彥霖 發表在 痞客邦 留言(0) 人氣(29)

  • 個人分類:[作業系統] Linux
▲top
«1234...46»

實驗人員

黃彥霖
暱稱:
黃彥霖
分類:
數位生活
好友:
累積中
地區:

文章分類

  • [遊戲設計] Unity (100)
  • [程式語言] Java (91)
  • [程式語言] Go (31)
  • [程式語言] C # (15)
  • [程式語言] Python 3 (11)
  • [程式語言] Erlang (2)
  • [程式語言] Python 2 (2)
  • [程式語言] C++ (10)
  • [程式語言] C (8)
  • [程式語言] Node.js (5)
  • [程式語言] JavaScript (8)
  • [程式語言] Java-Android (2)
  • [資料庫] PostgreSQL (28)
  • [資料庫] Hadoop (2)
  • [作業系統] Linux (23)
  • [作業系統] Windows (3)
  • [作業系統] FreeRTOS (1)
  • [單晶片] Arduino (19)
  • [單晶片] ARM-STM32-F4 (15)
  • [單晶片] ARM-STM32-F1 (13)
  • [單晶片] ARM-LPC1114 (1)
  • [單晶片] PIC33FJ128MC804 (4)
  • [硬體設計] 常用IC (1)
  • [硬體設計] 3D 印表機 (3)
  • [硬體設計] 其他 (4)
  • [數學+程式語言] Matlab (4)
  • [數學] 應用數學 (2)
  • [論壇架設] Discuz! (1)
  • [科技新聞] 機器人 (3)
  • [轉碼工具] FFMPEG (1)
  • [檔案格式] 3D 檔案 (1)
  • [程式語言] 程式設計經驗談 (2)
  • [伺服器] GlassFish 筆記 (1)
  • [網頁] HTML 教學 (5)
  • [網頁] CSS 語法 (1)
  • [網頁] JSP / Servlet (7)
  • [網路監控] SmartSniff (1)
  • [虛擬機器] VirtualBox (1)
  • [電腦安全] 開發者 (1)
  • [美術設計] 繪畫 (0)
  • [3D設計] Blender 教學 (2)
  • [3D設計] Blender 外掛設計 (1)
  • [2D設計] GIMP Python (2)
  • [3D設計] Shroud Studio (3)
  • [展示] 作品、比賽、專題 (4)
  • [人類語言] 希伯來語 (1)
  • [金融] 外匯 (1)
  • 未分類文章 (1)

FB 粉絲頁

最新留言

  • [24/05/04] 訪客 於文章「Arduino 入門教學:讀取 ADXL...」留言:
    我想問一下關於ADXL345的問題,我在ARDUINO上測量...
  • [23/01/14] 訪客 於文章「Arduino 入門教學:Timer 使...」留言:
    如果我的callfunction是需要帶參數的 那t.ev...
  • [21/10/21] 陳霖 於文章「Arduino 入門教學:讀取 LSM3...」留言:
    不好意思不知道您還看不看的到,想請問您,你抓出的加速度器資料...
  • [21/07/23] wjb5741 於文章「Arduino 入門教學:讀取 ADXL...」發表了一則私密留言
  • [21/07/23] wjb5741 於文章「Arduino 入門教學:讀取 ADXL...」發表了一則私密留言
  • [20/10/27] 蔡金龍 於文章「STM32F1 入門教學:UART 接收...」發表了一則私密留言
  • [20/09/17] 秋本 嵐 於文章「Unity 入門教學:使用攝影機...」留言:
    您好,我最近在做Unity與Webcam相關的東西。 我想...
  • [20/08/09] 訪客 於文章「STM32F4 入門教學:SysTick...」留言:
    謝謝分享 ~ : )...
  • [20/07/24] 楊昇逸 於文章「C++ ( Qt 5 ) 入門範例:各種...」發表了一則私密留言
  • [20/03/04] 訪客 於文章「Java Json 教學:使用 org....」留言:
    <script>alert('hello');</scrip...

參觀人氣

  • 本日人氣:
  • 累積人氣: