04 2016 档案
摘要:从http://activemq.apache.org/activemq-5132-release.html 下载 解压 从apache-activemq-5.13.2\bin\win64\wrapper.exe 启动 从http://localhost:8161/admin 登录 测试代码: Se
阅读全文
摘要:转载文章 原始出处 在没有nagios监控的情况下,只要服务器能上互联网,就可通过发邮件的方式来提醒管理员系统资源的使用情况。 一、编写linux系统告警邮件脚本 # vim /scripts/sys-warning.sh # chmod a+x /scripts/sys-warning.sh 二、
阅读全文
摘要:cmake source install as follows: 0 cd ~ 1 wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz 2 tar xvf cmake-3.5.2.tar.gz This worked for me then: 3
阅读全文
摘要:CREATE or REPLACE FUNCTION fn_attr_category()
RETURNS void AS
阅读全文
摘要:HttpPost httppost = new HttpPost(NEW_IMG_SERVER_URL);
ByteArrayEntity byteArrayEntity = new ByteArrayEntity(buffer);
httppost.setEntity(byteArrayEntity);
httppost.addHeader("Content-Type", "jpeg");
System.out.println("executing request " + httppost.getRequestLine());
阅读全文
摘要:Class.forName("org.postgresql.Driver").newInstance();
阅读全文
摘要:dblink (
'host=172.16.51.25 port=5432 dbname=contract user=eshop password=iTLxUQ7FUv1sBu',
'select contractid from tcrm_s_contractmaster '
) AS B (
contractid CHARACTER VARYING (100)
)
阅读全文
摘要:A frequent question in IRC is how to delete rows that are duplicates over a set of columns, keeping only the one with the lowest ID. This query does t
阅读全文
摘要:计算文件的Md5值
阅读全文
摘要:利用postgreSQL中的earthdistance()函数功能计算地球上两点之间的距离
阅读全文