Category Archives: java

how to update name to comment in PDM

‘****************************************************************************** ‘* File: Comment2Name.vbs ‘* Purpose: 把字段及表的name用comment来代替 ‘* Use: 打开PDM,运行本脚本(Ctrl+Shift+X) ‘* Version: 1.0 ‘* Comment: 遍历PDM中的所有包,把数据表及字段的Name用comment来替换 ‘* Copyright (C) 2008 topsthink Inc. ‘****************************************************************************** Option Explicit ValidationMode = True InteractiveMode = im_Abort   Dim mdl ‘ 定义当前的模型 ‘通过全局参数获得当前的模型 Set mdl = … Continue reading

Posted in java | Leave a comment

how to delete a record in solr

http://172.16.2.177:8080/solr/update/?stream.body=<delete><id>123</id></delete>&stream.contentType=text/xml;charset=utf-8&commit=true

Posted in java | Leave a comment

Another flex ant sample

<!– Copyright (c) 2007 FlexLib Contributors. See: http://code.google.com/p/flexlib/wiki/ProjectContributors   Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without … Continue reading

Posted in java | Leave a comment

flex ant file sample

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 … Continue reading

Posted in java | Leave a comment

Widget disposed too early with eclipse – ubuntu10.04

add: -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner to you eclipse.ini

Posted in java | Tagged , , | Leave a comment

ttf-mscorefonts-installer update error – ubuntu10.04

try: sudo aptitude purge ttf-mscorefonts-installer ubuntu-restricted-extras

Posted in java | Tagged , | Leave a comment

Flex draw

Posted in java | 2 Comments

create a swing application

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 … Continue reading

Posted in swing | Tagged , | Leave a comment

how to read a url

String s = request.getRequestURL().toString(); URL url = new URL(s); BufferedReader bf = new BufferedReader(new InputStreamReader(url.openStream()));

Posted in java | Leave a comment

how to build .properties

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 if (null == transactionCodeConfig) { transactionCodeConfig = new Properties(); transactionCodeConfig.load(Obj2XMLBuilderXSD.class .getResourceAsStream("/config/transactionCodeConfig.properties")); xsdMap = new HashMap(); for (Iterator iterator = transactionCodeConfig.entrySet().iterator(); … Continue reading

Posted in java | Leave a comment