2016-10-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« * Javaã®æ¨æºAPIã®ã¿ã§åããµã¤ãºã®ç»åã縦ãããã¯æ¨ªã«çµåãã â ãµã³ãã« Main.java import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundExâ¦
ãï¼ãcronã³ãã³ã * ã¯ãã¼ã³ /etc/cron.d * 決ããããæå»ã«ã³ãã³ã/ããã°ã©ã /ã·ã§ã«ã å®æçã«å®è¡ãããããã®ãã¼ã¢ã³ /etc/cron.dé ä¸ã®è¨å®ãã¡ã¤ã«ã«é¢ãã注æç¹ [1] ãã¼ããã·ã§ã³ã¯644ã«ãã => ãsudo chmod 0644 /etc/cron.d/xxxxxããâ¦
â MySQL ã§ããã¼ã¿ãæå·å / 復å·å ãã æ¹æ³ * AES_ENCRYPT() / AES_DECRYPT() ãªã©ã®æå·åé¢æ°ã使ç¨ãã https://dev.mysql.com/doc/refman/5.6/ja/encryption-functions.html â ä¾ï¼ ãã¼ãã« CREATE TABLE IF NOT EXISTS `user` ( `user_id` VARCHAâ¦
â ã¯ããã« sudo ã«é¢ãããããããã¡ã¢ã ç®æ¬¡ ãï¼ãsudoã³ãã³ã ãï¼ãvisudoã³ãã³ã ï¼ï¼sudoersãã¡ã¤ã« ï¼ï¼æ¸å¼ ï¼ï¼/etc/sudoers.dãã£ã¬ã¯ã㪠ãï¼ãsudoã®ã¤ã³ã¹ãã¼ã« ãï¼ãsudoã«é¢ãããããã ï¼ï¼sudoãè¡ãä¸ã§ã®è¨å®ãã¡ã¤ã«ç·¨é ï¼ï¼â¦
â ã¯ããã« ä»åã¯ãJavaã®Matcher.find()ã使ã£ã¦ æ°å/æåã®åºç¾åæ°ãæ°ãããã¨ãè¡ãã ãï¼ããµã³ãã« ä¾ï¼ï¼ãã¹ã¯ã¼ãã®å¼·åº¦ã測ã * ãã¹ã¯ã¼ãã®å¼·åº¦ã測ãã®ã«ãæ°å/æåã®åºç¾åæ°ãæ°ãããã¨ããã ãããæ£è¦è¡¨ç¾ã使ã£ã¦å®ç¾ãã NumericCâ¦
â ã¯ããã« ä»åã¯ãJavaã®Matcher.find()ã使ã£ã¦ æ°å/æåã®åºç¾åæ°ãæ°ãããã¨ãè¡ãã ãï¼ããµã³ãã« ä¾ï¼ï¼ãã¹ã¯ã¼ãã®å¼·åº¦ã測ã * ãã¹ã¯ã¼ãã®å¼·åº¦ã測ãã®ã«ãæ°å/æåã®åºç¾åæ°ãæ°ãããã¨ããã ãããæ£è¦è¡¨ç¾ã使ã£ã¦å®ç¾ãã NumericCâ¦
ã¯ããã« å¯å¤ã®è¨å®å¤ãJavaããã°ã©ã ã«åãè¾¼ãããã«ã¯ã以ä¸ã®ãããªæ¹æ³ãèãããã [1] å¤é¨ãã¡ã¤ã« [2] DB [3] ã³ãã³ãã©ã¤ã³å¼æ° [4] ã·ã¹ãã ãããã㣠ä»åã¯ã[3] ã³ãã³ãã©ã¤ã³å¼æ°ãã[4] ã·ã¹ãã ããããã£ããæ±ã â ã³ãã³ãã©ã¤ã³å¼â¦
æé æ¦è¦ [1] /etc/hosts ãç·¨éãã [2] ãããã¯ã¼ã¯ããªã¹ã¿ã¼ã ä¾ï¼127.0.0.1ã«ãã¹ãåãsamplehostããé©ç¨ãã [1] /etc/hosts ãç·¨éãã sudo vi /etc/hosts ï½ï½ï½ï½ 127.0.0.1 localhost ã»ã»ã»ç¥ã»ã»ã»samplehost ï½ï½ï½ï½ [2] ãããã¯ã¼ã¯ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2014/11/18/235600 ã®ç¶ãã â ç¾å¨æå»ãåå¾ãã [1] Date ã使ç¨ããå ´å import java.util.Date; Date date = new Date(); // Tue Nov 18 23:53:23 JST 2014 System.out.println(date.toString()); [2â¦
â Spark Framework * åæ£å¦çã¨ã³ã¸ã³ Apache Sparkã¨ã¯ç°ãªã ç¹å¾´ * 軽éãã¬ã¼ã ã¯ã¼ã¯ * Java EEã使ããªã => JSP/Servletã使ããªããTomcatä¸ã«åãããã«ãã¿ããµã¼ã(Jetty)ãå å ããã¦ãã å¨è¾ºãã¼ã« * ãã«ã管ç : Maven, Gradle * Viewãã³â¦
â ç¹å¾´ * 軽éãã¬ã¼ã ã¯ã¼ã¯ * MVCãæ¡ç¨ ãã¼ã¸ã§ã³ã«ã¤ã㦠https://wicket.apache.org/start/download.html 2016/10/08 ç¾å¨ Wicket 8.x : éçºä¸ Wicket 7.x : ãµãã¼ãä¸ Wicket 6.x : ãµãã¼ãä¸ Wicket 1.5.x : ã»ãã¥ãªãã£ãã°ã®ã¿ãµãã¼ã å¿ è¦æ¡â¦
â ããã¯ã¢ãã / ãã¼ã¿ç§»è¡ ï¼ ç°¡å! ãï¼ã ããã¯ã¢ãã * hgé ä¸ã«ãããhtdocsããã£ã¬ã¯ããªãã³ãã¼ãã¦ãã ãï¼ã ãã¼ã¿ç§»è¡ * hgé ä¸ã«ãããhtdocsããã£ã¬ã¯ããªãã³ãã¼ãããã¼ã¿ç§»è¡å ã«ç½®ãã ã â» ãã®å¾ããã£ã¬ã¯ããªãhtdocsãã®ææè â¦
â ãµã³ãã« Main.java public class Main { public static void main(String[] args) { try { String algorithm = "AES"; // æå·åæ¹å¼ãAES(Advanced Encryption Standard)ã String key = "1234567890123456"; // æå·åæ¹å¼ãAESãã®å ´åããã¼ã¯16æåâ¦
ãï¼ãDES (Data Encryption Standard) * DES(ãã¹) * 64ãããã®ãã¼ãå©ç¨(8ãããã¯ããªãã£ã¨ãã¦ä½¿ããããå®éã¯ã56ããã) 注æç¹ * èå¼±æ§(ç·å½ããæ»æãå·®å解èªæ³ãç·å½¢è§£èªæ³)ãè¦ã¤ãã£ã¦ããããã ç¾å¨ä½¿ç¨ãã¹ãã§ã¯ãªã åèæç® http://mâ¦
â ã¯ããã« ã»ãã¥ã¢ãªã©ã³ãã æååçæãèãã => é常ãjava.util.Randomãå©ç¨ããã¨æãããåããåç¾æ§ããããããªã®ã§ ã»ãã¥ã¢ãªã©ã³ãã æååçæãããã¨ãèãã ç®æ¬¡ ãï¼ãå®è£ æ¡ ãï¼ãjava.util.UUID.randomUUID()ã使ç¨ãã ãï¼ãjavaâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2016/07/27/214633 ã®ç¶ãã ä»åã¯ãIPã¢ãã¬ã¹ã«é¢ããã³ãã³ããæ±ã ç®æ¬¡ ãï¼ãifconfigã³ãã³ã ãï¼ãarpã³ãã³ã ãï¼ãifconfigã³ãã³ã * IPæ å ±ã調ã¹ã ã³ãã³ã æå³ åè ifconfig IPæ å ±ãªâ¦