Windows10 アクティブウインドウが最前面に出てこない
調子が悪いので調べてみた。 以下のリンクを参考
現場で使えるJavaライブラリ
現場で使えるJavaライブラリ
第1章 基本ライブラリ
Commons Lang
StringUtils これでnull対策になる。 if(StringUtils.equals(x, “hoge”)) { … }
ICU4J 文字変換ライブラリ 全角→半角 半角→全角 カタカナ→ひらがな ひらがな→カタカナ ひらがな→ローマ字 weblabo.oscasierra.net
Commons IO
Joda Time Holiday.java Commons Compress Commons Codec Commons Configuration Commons BeanUtils S2Util Guava
fastutil
第2章 ロギングライブラリ log4j、Commons Logging、log5j、Logback、SLF4J、log4jdbc
第3章 テンプレートエンジン Velocity、FreeMarker
第4章 Webアプリケーションで利用可能なライブラリ JSTL、Java Standard EL Functions、Commons FileUpload、Url Rewrite Filter、 SiteMesh、Kaptcha
第5章 データベース関連のライブラリ HSQLDB、H2、Commons DbUtils、SX-DbUtils、Persist、Mirage
第6章 XML/HTMLパーサ dom4j、Commons JXPath、ROME、NekoHTML
第7章 通信ライブラリ HttpClient、Commons Net、JSch、Commons Email、JAX-WS
第8章 CSV/Excel入出力ライブラリ SuperCSV、POI、XLSBeans、jXLS、Jacob
第9章 PDFライブラリ iText、JasperReports、JODReports、JODConverter
第10章 グラフ生成ライブラリ JFreeChart、charts4j、QRCode for Java
第11章 オブジェクト変換ライブラリ JSONIC、MessagePack、JAXB、XStream
第12章 テストライブラリ Mockito、JMockit、DBUnit、Mockrunner、Selenium
第13章 キャッシュライブラリ Ehcache、Java Memcache Client、jmemcached
jUnitとMockit
SecurityExceptionの例外がでたので調べて 以下のサイトを参考にして futurismo.biz
Mockitの@Mockと@InjectMocksの使い方を理解 javatechnology.net
spyの使い方 javatechnology.net
privateメソッドをjunitでテストする方法 javatechnology.net
入力バイト数のチェック
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>JavaScriptの練習</title> </head> <body> <script type="text/javascript"> <!-- function getBytes(strSrc){ var len = 0; strSrc = escape(strSrc); for(i = 0; i < strSrc.length; i++, len++){ if(strSrc.charAt(i) == "%"){ if(strSrc.charAt(++i) == "u"){ i += 3; len++; } i++; } } return len; } // --> </script> <form name="myForm"> <input name="text1" type="text" id="text1" size="40"> <input type="button" onClick="alert(getBytes(document.myForm.text1.value));" value="バイト数は?"> <form> </body> </html>
Ruby on Rails 勉強
Step 1: Install Command line tools on terminal
xcode-select --install
Step 2: Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
step3
sudo port uninstall ruby 上記、入力してもcommand not found
step4
rvm implode brew install rbenv ruby-build echo 'eval "$(rbenv init -)"' >> ~/.bash_profile source ~/.bash_profile
Step 5: Install Ruby
rbenv install 2.3.0 rbenv global 2.3.0 ruby -v
step 6 install bundller and rails
gem install bundler bundle -v gem install rails rails -v