2017-10-01ãã1ã¶æéã®è¨äºä¸è¦§
â ãµãã¼ãè¨èª [1] Python [2] gRPC API https://developers.google.com/assistant/sdk/overview gRPC (gRPC Remote Procedure Calls)ã«ã¤ãã¦ã¯ã以ä¸ã®åèæç®ãåç § http://charleysdiary.hatenablog.com/entry/2016/09/08/163909 â ãã¼ãã¦ã§ã¢è¦ä»¶ [â¦
â è¨å® [1] Eclipse ã§å¯¾è±¡ããã±ã¼ã¸åãå³ã¯ãªãã¯ãã[New]-[Source folder]ãé¸æ [2] ãFolder nameãæ¬ã«ãsrc/main/resourcesããå ¥åãããFinishããã¿ã³æ¼ä¸ [3] [2]ã§ä½æãããsrc/main/resourcesããå³ã¯ãªãã¯ãã[New]-[Other...][General]-[â¦
â é¢æ°åã¤ã³ã¿ãã§ã¼ã¹ * Java 1.8 ãã追å * æ½è±¡ã¡ã½ãããï¼ã¤æã£ã¦ããã¤ã³ã¿ã¼ãã§ã¤ã¹ * defaultãstaticã¯å¯¾è±¡å¤ â FunctionalInterfaceã¢ããã¼ã·ã§ã³ / @FunctionalInterface APIä»æ§ https://docs.oracle.com/javase/jp/8/docs/api/java/lang/Fâ¦
â ç¨èªã®æ´ç * ãã¼ã¹ãã¢ã¨ãã©ã¹ãã¹ãã¢ä¸¡æ¹ã¨ããJavaã«å«ã¾ãã¦ãã keytool ã«ãã£ã¦æä½ã»ç®¡çå¯è½ ãã¼ã¹ã㢠(Key Store) * èªãã®è¨¼ææ¸ãä¿ç®¡ããããã®ãã¡ã¤ã« ç¨é * ã¯ã©ã¤ã¢ã³ãèªè¨¼ã«ä½¿ç¨ ãã©ã¹ãã¹ã㢠(Trust Store) * Javaã¢ããªããµâ¦
ãï¼ãlsof * LiSt Open Files => éãã¦ãããã¡ã¤ã«ç¾¤ãåæãã * å¾ æ©ãã¼ããããã»ã¹ã§éããã¦ãããã¡ã¤ã«ã確èªãã ãï¼ãç¨é * ãã¡ã¤ã«ã®ãªã¼ãã³ãªã©ã§å¥ããã»ã¹ãã¤ããã§ããå ´åã®èª¿æ» * ç¹å®ãã¼ãã使ç¨ãã¦ããããã»ã¹ã®èª¿æ» ãï¼ãç°â¦
â ã¡ã½ããåç § (method reference) * Java 1.8 ãã追å ãããæ©è½ æ§æ ã³ãã³2ã¤ã::ã ãã¯ã©ã¹åã::ãã¡ã½ããåã ãã¤ã³ã¹ã¿ã³ã¹åã::ãã¡ã½ããåã â ãµã³ãã« IHelloWorld.java @FunctionalInterface public interface IHelloWorld { String sayâ¦
â ã¯ããã« * 以ä¸ã®é¢é£è¨äºã§ããã©ã°ã¤ã³ãGradle IDE Pack 3.8.X+1.0.X+2.2.Xãããããã®ã ã Eclipseãç«ã¡ä¸ããã¨ä»¥ä¸ã®ããã¤ã¢ãã°è¡¨ç¤ºãã表示ãããã®ã§ãBuildship ã調ã¹ã¦ã¿ã https://blogs.yahoo.co.jp/dk521123/36426276.html ãã¤ã¢ãã°â¦
â ã¯ããã« ãããã·è¨å®ã®ãã§ãã¯ã以ä¸ã®é¢é£è¨äºã§ãããããªã³ã¼ãã§è©¦ãã¦ã¿ãã Java 㧠ping ãèãã https://blogs.yahoo.co.jp/dk521123/37019179.html ãããã以ä¸ã®ãåé¡ç¹ããåºãã åé¡ç¹ Basicèªè¨¼ãè¨å®ãã¦ãããããã·ãµã¼ã㧠Basicâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37185366.html ã®ç¶ããå¥ã®ã¢ããã¼ãã試ãã¦ããã â åé¡ç¹ã«å¯¾ããã¢ããã¼ã ãµã¼ãã«ç´°å·¥ããããHTTPã³ã¼ã 407(ãããã·èªè¨¼ãå¿ è¦)ããè¿ãã° ãã°ã¢ã¦ãçãªãã¨ãã§ããããããã§ããã°Javaã¢ãâ¦
â ãJava ããå¥ã®JARãã¡ã¤ã«ãå®è¡ããããå®ç¾ããããã«... Java ããå¥ã®JARãã¡ã¤ã«ãå®è¡ããã«ã¯... ProcessBuilder processBuilder = new ProcessBuilder("java", "-jar", "[JARãã¡ã¤ã«å].jar"); // ã³ãã³ãã©ã¤ã³å¼æ°ã使ãå ´å... // ProcessBâ¦
ãï¼ãbyte â æåå æåå => byte byte[] bytes = ãæååã.getBytes(StandardCharsets.UTF_8); byte[] => æåå String text = new String(ãbyte[]ã, StandardCharsets.UTF_8); ãï¼ããµã³ãã« import java.nio.charset.StandardCharsets; public câ¦
â Boolean.valueOf() / Boolean.getBoolean() * Boolean.getBoolean()ã£ã¦ãã£ãã®ã§ã true / false ã«å¤æããã¨åéããã¦ãã®ã§ã¡ã¢ã Boolean.valueOf(æåå) * æååã true / false ã«å¤æãã Boolean.getBoolean(æåå) https://docs.oracle.comâ¦
â ç°å¢è¨å® æ§ç¯ç°å¢ * OS : Windows10 * Raspberry PI ï¼raspberrypi3 raspbian Jessie (Debian8ãã¼ã¹) ã¤ã³ã¹ãã¼ã« # realvnc-vnc-serverãåé¤ sudo apt-get purge realvnc-vnc-server # ã¤ã³ã¹ãã¼ã« sudo apt-get update sudo apt-get install xrdp â¦
â ã¯ãã㫠以ä¸ã®é¢é£è¨äº https://blogs.yahoo.co.jp/dk521123/32156111.html https://blogs.yahoo.co.jp/dk521123/36602948.html ã«ããããã«ãList ã Map ãåæåããã®ã«ã以ä¸ã®ããã«è¡ã£ã¦ããã ï½ï½ï½ï½ï½ï½ï½ List<Person> list = new ArrayList<Person>() { {</person></person>â¦
â ã¯ãã㫠以ä¸ã®é¢é£è¨äº https://blogs.yahoo.co.jp/dk521123/32156111.html https://blogs.yahoo.co.jp/dk521123/36602948.html ã«ããããã«ãList ã Map ãåæåããã®ã«ã以ä¸ã®ããã«è¡ã£ã¦ããã ï½ï½ï½ï½ï½ï½ï½ List<Person> list = new ArrayList<Person>() { {</person></person>â¦
â MySQL Utilities ã¨ã¯ï¼ * Pythonè¨èªã«ããä½æããã便å©ãªã³ãã³ãã©ã¤ã³ãã¼ã«ç¾¤ mysqlserverclone * åä½ä¸ã®MySQLãå ã«å¥ã¤ã³ã¹ã¿ã³ã¹ãéå§ * 注æç¹ * ã¯ãã¼ã³å ãããã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ãï¼è¡¨ããã¥ã¼ãããã·ã¸ã£ããã©ã³ã¶ã¯ã·ã§ã³ãçï¼â¦
sshæ¥ç¶ãæå¹ã«ãã * [ã¡ãã¥ã¼ï¼ã©ãºãã¤ã¢ã¤ã³ã³ï¼]-[è¨å®]-[Raspberry Piã®è¨å®]-[ã¤ã³ã¿ã¼ãã§ã¤ã¹]ãé¸æãã ãsshãæ¬ã®ãæå¹ãã«é¸æãã RSAéµèªè¨¼ * ã»ãã¥ãªãã£å¼·åã®ããã ã³ãã³ã ssh-keygen -t rsa # ãã¹ãã¬ã¼ãºãå ¥åãã cat ~/.sshâ¦
ãï¼ãNTP * NTP = Network Time Protocol * ãããã¯ã¼ã¯ä¸ã§æéãåæãããããã³ã« * UDP * ãã¼ãçªå· 123 注æ http://jjy.nict.go.jp/ntp/ * ãã¡ã¤ã¢ã¦ã©ã¼ã«ã®å å´ããç´æ¥å©ç¨ãããã¨ã¯ã§ããªã ãï¼ãSNTP * SNTP = Simple Network Time Protocâ¦
ãï¼ãç°¡åã«ã§ãããã§ã㯠ç¹ãããªã対象ãµã¤ã以å¤ã®ãµã¤ãã§ãåãç¾è±¡ã«ãªããï¼ * ä¾ãã°ãwww.yahoo.co.jp ãç¹ãããªãå ´åã www.google.co.jp ã www.msn.com ã«ç¹ããã試ã * ç¹ããã°ããã®å¯¾è±¡ãµã¤ãã®åé¡ã«çµãè¾¼ãã å¥ãã©ã¦ã¶ã§ãåãç¾â¦
â åä½ç°å¢ * Raspberry PI ï¼ Raspberry PI 3 Model B * OS ï¼ Raspbian 8 Jessie * ã«ã¡ã© ï¼ Raspberry PI赤å¤ç·ã«ã¡ã©ã¢ã¸ã¥ã¼ã« (Raspberry Pi PiNoir Camera V2) â è¨å®æé ã«ã¡ã©ãæå¹ã«ãã [1] [ã¡ãã¥ã¼ï¼ã©ãºãã¤ã¢ã¤ã³ã³ï¼]-[è¨å®]-[Raspberryâ¦
â ãã¡ã¤ã«ã®ã³ãã¼ * Files.copy(sourcePath, destinationPath) ã使ã ä¸æ¸ã * Files.copy(sourcePath, destinationPath, StandardCopyOption.REPLACE_EXISTING) ã使ã ãµã³ãã« import java.io.IOException; import java.nio.file.Files; import java.nâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37059239.html ã§ãTomcat èå¼±æ§ãCVE-2017-12617ãï¼ãCVE-2017-12615ããCVE-2017-12616ããåãåå ï¼ã«è§¦ããã ãã®èå¼±æ§ã¨ãããã«é¢ããTomcat ã® readonlyãã©ã¡ã¼ã¿ã«ã¤ãã¦ã調ã¹ã¦ã¿ã â Tomcatâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37155840.html ã®ç¶ãã ãã®ã¾ã¾ã§ã¯ããããã¯ã¤ãªãã£ã¦ãªãããæè¨ãçã£ãã¾ã¾ç è²ã ãªåºæ¬çãªè¨å®ããã¦ããã â ããã©ã«ãè¨å®ã«ã¤ã㦠ID / Password ID: pi ãã¹ã¯ã¼ã: raspberry â OSç°å¢è¨å®â¦
â ã¯ããã« * è³¼å ¥ããOSã¤ã³ã¹ãã¼ã«ã¾ã§è¡ã â è³¼å ¥ * ãããï¼Amazonã¨ãï¼ã§ãè²·ããããç§èåã¸ã * 以ä¸ã®ãµã¤ããåèã«åããçµå±ããç§æé»åéå ç§èååºãã§ã¹ã¿ã¼ã¿ã¼ããããè²·ãã https://liginc.co.jp/250796 ã¹ã¿ã¼ã¿ã¼ãããå 容 * Raspâ¦
â ã«ã¹ã¿ã ã½ã¼ã ç¬èªã®ã½ã¼ããããå®è£ ãèãã * Comparableãå®è£ ããå¿ è¦ããã â ãµã³ãã« Person.java * Comparableãå®è£ public class Person implements Comparable<Person> { private String companyId; private String employeeId; private String name</person>â¦
â List <=> é åã«å¤æããã«ã¯ // List => é å List<SampleClass> list1 = new ArrayList<>(); SampleClass[] classes = list1.toArray(new SampleClass[list1.size()]); // é å => List SampleClass[] samples = new SampleClass[3]; List<SampleClass> list2 = Arrays.asList(samp</sampleclass></sampleclass>â¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/32096812.html http://blogs.yahoo.co.jp/dk521123/36358058.html https://blogs.yahoo.co.jp/dk521123/34971111.html ã®ç¶ãã JAXB(Java Architecture for XML Binding)ã¢ããã¼ã·ã§ã³ã®ãµã³ãã«ãè¨ãã â â¦
â ã¯ããã« https://qiita.com/tonishy/items/542f7dd10cc43fd299ab ã¨ãåãã§ãAurora 1.14 å¼·å¶ã¢ããã°ã¬ã¼ãéç¥ãæ¥ãã http://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/UserGuide/Aurora.DatabaseEngineUpdates.html ã«ããã¨ããæ´æ°ã§ã¯ããã¼â¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/36164701.html ã®ç¶ãã â æ¥ä»ã®æ¯è¼ã§ãã使ãã¡ã½ãã * isEqualTo : åãæ¥ä»ã®å ´å * isAfter : ãã®æ¥ä»ä»¥éã®å ´å * isAfterOrEqualTo : åãæ¥ä»åã¯ããã®æ¥ä»ä»¥éã®å ´å * isBefore : ãã®æ¥ä»ä»¥åâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37139755.html ã§ãèªèçãé«ãã£ããGoogle Cloud Speech APIãã«ã¤ãã¦ã調ã¹ã¦ã¿ã â Google Cloud Speech API * Google ã®é³å£°èªèã¯ã©ã¦ããµã¼ãã¹ * ææã ããç¡ææ ãããã®ã§ãéçºè ã«ãããã å ¥â¦