めも

技術メモとその他

sample cat files in directory listed

code: #!/bin/sh dir_test=/Users/tk/test/ ( IFS=$'\n'; ls -1 test/ | while read line do for linef in `cat $dir_test$line` do echo $linef done done )

delete file if query results not returned

package homeWork; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.s…

memo : svn man

https://tortoisesvn.net/docs/release/TortoiseSVN_ja/tsvn-dug-diff.html

<java>save pdf in postgres and get sample

package homeWork; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; imp…

normal way to save dbdata in files

package homeWork;import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;import or…

dbunit + postgresql

package homeWorkTest;import static org.junit.Assert.*;import org.junit.Test; import java.io.FileOutputStream; import org.dbunit.JdbcDatabaseTester; import org.dbunit.database.DatabaseConfig; import org.dbunit.database.IDatabaseConnection; …

java : reduce stream of list of maps

package homeWork;import java.math.BigDecimal; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors;public class sumSample { publi…

java : string check ”” OR null

package homeWork;import org.apache.commons.lang3.StringUtils;public class stringCheck { public static void main(String[] args) { // TODO Auto-generated method stub String strEmptyStr=""; String strNullObject =null; System.out.println("no s…

java : filter list of map sample

package homeWork;import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors;public class filterSample { public static void main(String[…

java : sort list of map by multiple key

package homeWork;import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map;public class sortSample001 { public static void main(String[] args) { List> countries = new Arr…

how to re-make weblogic web application

http://www.oracle.com/webfolder/technetwork/jp/obe/fusion_middleware/coherence/obe34coherence_wls/coherenceweb_wls_appconfig/coherenceweb_wls_appconfig.htm

how to constract "ejb" projects.

http://gihyo.jp/dev/serial/01/start_webap/0005

java shit-jis problem

http://www.m-bsys.com/character-code/java-sjis http://hpcgi2.nifty.com/a-yama/wiki.cgi?Java%2FTips

ldap with c# 2

search way 1)with protocol SearchRequest findme = new SearchRequest(); findme.DistinguishedName = "ou=People,dc=example,dc=com"; //Find all People in this ou findme.Filter = "(objectClass=person)"; //The type of entry we are looking for fi…

ldap with c#

http://www.codeproject.com/Articles/34468/Talk-to-Sun-One-LDAP-with-NET-DirectoryServices1)way 1 //Use the servername and port that you setup LDAP Directory Service on //9605 is the example port here LdapDirectoryIdentifier ldapDir = new L…

ldap sample to get optional attributes such as "createtimestamp"

import java.util.Hashtable; import java.util.Date; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.text.ParseException; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.Nam…

portmap is failed

http://www.symantec.com/business/support/index?page=content&id=TECH85693&actp=search&viewlocale=ja_JP&searchid=1348413480925

to export access reports as text file

http://www.f3.dion.ne.jp/~element/msaccess/AcTipsVbaHowToConvertAccObjToText.html

how to remote debug on eclipse

http://www.eclipsewiki.net/eclipse/index.php?%A5%EA%A5%E2%A1%BC%A5%C8%A5%C7%A5%D0%A5%C3%A5%B0

reverse proxy

http://d.hatena.ne.jp/hyperash/200310