スクラップボックス

Birdy

google custom search
gcs 2
tw
tw2
bc expr
rpm
sqlite
my_maven
2006-memo
subversion
git
libreoffice_build
java_sqlite
sen
tiddlywikiでAAを扱う件
matcher appendreplacement error
testjava develop with eclipse + google app engine @ puppy
skima.png
2013.7.8 css ほんと意味わかんね

div#main{
	margin: --0.4em--0へ 0.5em 0 0.5em;
}
div#nav{
	+float:left;
	+width:100%;
}

まさかこことは

goffice src
http://ftp.acc.umu.se/pub/gnome/sources/goffice/0.8/goffice-0.8.17.tar.bz2

.Xresources

!*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*-*
!*font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-*-*
*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-*-*
!*font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-*-*

Xft.dpi: 75
Xft.antialias: 1
Xft.hinting: true
Xft.rgba: rgb

 return (html == null) ? new Tsr().parse(raw.getValue()) : html.getValue();

便利

for (int i = 0;((lt.size()==500)?i<500:i<lt.size());i  )

不要

 final PersistenceManager pm = PMF.get().getPersistenceManager();
        final javax.jdo.Query que = pm.newQuery(ENLF.class);//pm.newQuery("SELECT FROM "+ENLF.class.getName());
        for(int i =0;i<5000;i++){
        	que.setRange(0+(100*i),99+(100*i));//pm.newQuery(ENLF.class);
        //que.deletePersistentAll();
        	
        	List<ENLF> lt = (List<ENLF>) que.execute();
        	for (ENLF enlf : lt) {
				pm.deletePersistent(enlf);
			}
        	pm.deletePersistentAll(que.execute());
        }
        List<ENLF> list = (List<ENLF>) pm.newQuery(ENLF.class).execute();
        do
        {
            for (final ENLF f : list)
            {
                pm.deletePersistent(f);
            }
        } while ((list = (List<ENLF>) pm.newQuery(ENLF.class).execute()).size() > 0);
conn.setDoOutput(true);
            final OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
            wr.write(sb.toString());
            wr.flush();

            // Get the response
            final BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            String line;
            while ((line = rd.readLine()) != null)
            {
                System.out.println(line);
            }
            wr.close();
            rd.close();
                    if (!fp.getContentType().equals("application/json"))
                    {
                        jsonerror(res);
                        return;
                    }
IOUtils.toString(f.blob().getBytes())

   try
        {
            System.setProperty("sqlite.purejava", "true");
            Class.forName("org.sqlite.JDBC");
        }
        catch (final ClassNotFoundException e1)
        {
            e1.printStackTrace();
        }
        Connection con = null;
        try
        {
            
            final SQLiteConfig config = new SQLiteConfig();
            con = DriverManager.getConnection("jdbc:sqlite::memory:", config.toProperties());

            final Statement stat = con.createStatement();
            // final ResultSet rs =
            stat.execute("create table tidders(name text,data text);");
            stat.execute("insert into tidders (name,data) values('sss','ddd')");
        
            // con.commit();
            System.out.println(con.createBlob().length());
        }
        catch (final SQLException e)
        {
            System.err.println(e.getMessage());
        }
        finally
        {
            try
            {
                if (con != null)
                {
                    con.close();
                }
            }
            catch (final SQLException e)
            {
                System.err.println(e);
            }
        }

        String url = "";
        try
        {
            url = URLDecoder.decode(req.getRequestURI(), "UTF-8");
        }
        catch (final UnsupportedEncodingException e)
        {
            e.printStackTrace();
        }

diff

	int max = (original.size()>revised.size())? original.size():revised.size();
    	String[][] box = new String[2][max*2];
    	for (String[] strings : box) {
			for (String string : strings) {
				string = "";
			}
		}

    	for(int i=0;i<original.size();i++){
    		box[0][2*i+1]=original.get(i);
    	}
    	for(int i=0;i<revised.size();i++){
    		box[1][2*i+1]=revised.get(i);
    	}
    	for (int i = 0; i < max*2; i++) {
				System.out.println(box[0][i]+"\t\t\t"+box[1][i]);
		}
    	
    	for (String string : unidiff) {
    		if(string.startsWith("@@") && string.endsWith("@@")){
    			String[] ss = string.split(" ");
    			String mi = ss[1];
    			String pl = ss[2];
    				
    			String[] ni = mi.split(",");
    			String[] pi = pl.split(",");
    			
    			int nn = Math.abs(Integer.parseInt((ni[0])));
    			int nc = (Integer.parseInt(ni[1])==0)?0:Integer.parseInt(ni[1]);
    			
    			int pn = Math.abs(Integer.parseInt((pi[0])));
    			int pc = (Integer.parseInt(pi[1])==0)?0:Integer.parseInt(pi[1]);
    			
    			for(int i = 0; i<nc; i++){
    				box[0][(nn*2)-2+i]="<div style='background-color:red;'>"+box[0][(nn*2)-2+i]+"</div>";
    				box[0][(nn*2)-1+i]="<div style='background-color:red;'>"+box[0][(nn*2)-1+i]+"</div>";
    			}
    			
    			for(int i = 0; i<pc; i++){
    				box[0][(pn*2)-2+i]="<div style='background-color:red;'>"+box[0][(pn*2)-2+i]+"</div>";
    				box[0][(pn*2)-1+i]="<div style='background-color:red;'>"+box[0][(pn*2)-1+i]+"</div>";
    			}
    		}
		}
    	
    	for(int i=0;i<original.size();i++){
    		box[0][2*i+1]=original.get(i);
    	}
    	for(int i=0;i<revised.size();i++){
    		box[1][2*i+1]=revised.get(i);
    	}
    	for (int i = 0; i < max*2; i++) {
				System.out.println(box[0][i]+"\t\t\t"+box[1][i]);
		}
    	
select  eojp.esperanto,eojp.japanese,eoen.english,enfn.lfn,esen.spanish,enfr.french,enil.interlingua
from eojp  
join  eoen on  eojp.esperanto=eoen.esperanto 
join  enfn on eoen.english=enfn.english 
join esen on enfn.english=esen.english 
join enfr on enfn.english=enfr.english 
join enil on enfn.english=enil.english 
where enfn.english like'sad%' ;

2ch_gae_date


gaeMailyTransit test 2012.7.4

	public static void main(String[] args){
		WikipediaServlet ws = new WikipediaServlet();
		ws.test();
	}
	
	private void test(){
		try {
			getWikipedia(new WordCapsole("ジョウビタキ"));
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
private static final Logger log = Logger.getLogger(WikipediaServlet.class.getName());
log.severe("foo");

servlet resource

final URL u = getServletContext().getResource("/WEB-INF/wiki.css")

byte to str
new String(byte[])


    last modified: 05 June 2014 [ View wiki source Close ]
     
SEARCH DIFFERENCE ATTACHMENT RECENT POST