现在位置: 首页 > localiser发表的所有文章
  • 09月
  • 28日
综合 ⁄ 共 990字 评论关闭
Lambda Probe是一个基于Web以实时的方式来管理单个Tomcat主机的工具。它除了具备标准Tomcat Manager大部份功能之外还提供一些能够帮助Web开发者和系统管理员更加清楚地了解Tomcat运行情况的功能。 系统环境: 操作系统:Centos 5.3 32bit 应用系统:Tomcat 6.0 安装路径: /usr/local/tomcat 源码位置: /usr/local/src Lambda Probe 官方网站:http://www.lambdaprobe.org/d/index.htm 下载地址:http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip   #cd /usr/local/src #unzip probe.1.7b.zip #mv mv probe.war /usr/lo......
阅读全文
安装以前版本的intltool:如果确定系统中有可以跳过: 下载地址 (HTTP):       http://ftp.gnome.org/pub/GNOME/sources/intltool/0.25/intltool-0.25.tar.bz2 下载地址 (FTP):        ftp://ftp.gnome.org/pub/GNOME/sources/intltool/0.25/intltool-0.25.tar.bz2 intltool 包括一个国际化工具。可以从源码中提取翻译表,从传统源码 (<source directory>/<package>/po)中收集这些提取出来的信息并且可以将翻译融合到 .xml, .desktop和.oaf 文件中。 安装 intltool ./configure --prefix=/usr --mandir=/usr/s......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 1155字 评论关闭
11 该题主要是从两端向中间,每次移动矮的一边,直到两者相遇结束。还有,题目提示的意思是不能倾斜,我开始的时候理解错了,连续提交多次失败才明白 class Solution { public:     int maxArea(vector<int> &height) {         long long  sum=0,tmp=0;         int len=height.size();         if(len==1)return 0;         int tmp1=0,tm2=0;         int left=0,right=len-1;         while(left<=right){                 tmp=(right-left)*min(height[right],height[left]);                 if(height[right]&......
阅读全文
  • 01月
  • 15日
综合 ⁄ 共 201字 评论关闭
For the teenager who are  high school students,the daily life is no better than hell.Though,I took part in the NMT 10 days ago,the feeling of NMT remains.And the days after NMT are so bored.I hate the feeling. NO NMT AGAIN NO BORED DAYS AGAIN
阅读全文
  • 12月
  • 27日
算法 ⁄ 共 1429字 评论关闭
最大流简单题,,这题重要的是知道了scanf("%s",str);sscanf(str,"(%d,%d)%d",&x,&y,&w);读入方式 #include<stdio.h> #include<string.h> const int N=210; const int inf=0x3fffffff; int dis[N],gap[N],head[N],num,start,end,ans,n,m; struct edge { int st,ed,flow,next; }E[21000]; struct node { int x,y,w; }P[40000]; void addedge(int x,int y,int w) { E[num].st=x;E[num].ed=y;E[num].flow=w;E[num].next=head[x];head[x]=num++; E[num].st=y;E[num].ed=x;E[num].flow=0;E[num].next......
阅读全文
  • 09月
  • 20日
综合 ⁄ 共 6627字 评论关闭
云存储接口功能:支持单个geotable亿级数据及数百G大小的存储,每天支持百万量级读写,每秒支持万量级读写。   有了LBS云,个人开发LBS应用就非常方便了。今天研究了一下。在android上如何提交和删除POI数据。 主要操作就是HTTP的GET和POST。使用postman的chrome插件可以辅助调试。   涉及的主要技术:json,Http GET,Http Post   官方帮助页面 http://developer.baidu.com/map/lbs-geodata.htm   package baidumapsdk.demo; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayL......
阅读全文
  • 09月
  • 03日
综合 ⁄ 共 1538字 评论关闭
1.$( ).addClass() 2.$( ).removeClass(); 3.$( ).css( ); 4.$('parent > child'). 5.$( ).append( ); 6.$( ).prepend( ); 7.$(多个ID或Class,分号隔开) 8.过滤器: :even   and :odd       偶数和奇数                         :header                       标题元素h!-h6                         :not                             不匹配后面选择器的元素                         :eg(index)                  匹配顺序号等于index的元素                        :gt(index)                    匹配顺序号大于index的......
阅读全文
  • 04月
  • 17日
综合 ⁄ 共 25字 评论关闭
top:查看cpu使用率 free:查看内存使用情况
阅读全文
  • 04月
  • 12日
综合 ⁄ 共 45字 评论关闭
用树保存A中所有的回文子串以及个数 向树中查找B中的回文串,在节点i找到则cnt+=n[i]
阅读全文
  • 04月
  • 07日
综合 ⁄ 共 909字 评论关闭
    Edit Control 实现自动换行 --------------------------------------- 设置属性: multiline:  true  Auto_HScroll:true  Vertical scroll: true        赋值时换行: -------------------------------------------         方法一: (当EDIT映射到一CString时)             m_String = m_String + sNewString + "/r/n"                UpdateData(false);              此法只能做到自动换行,不会自动滚屏到最后一行。   方法二: (当EDIT映射到一EDIT时)             m_Edit.SetSel(-1, -1);       //自动滚屏(其中m_Edi......
阅读全文
  • 01月
  • 13日
综合 ⁄ 共 1579字 评论关闭
Description Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi <= 1,000,000,000). His C (2 <= C <= N) cows don't like this barn layout and become aggressive towards each other once put into a stall. To prevent the cows from hurting each other, FJ want to assign the cows to the stalls, such that the minimum distance between any two of them is as large as possible. What i......
阅读全文
  • 01月
  • 09日
综合 ⁄ 共 1075字 评论关闭
编程:通过HttpSessionListener监听接口实现对当前在线人数的监听 要求: (1) 编写一个类实现HttpSessionListener接口,在该接口的public void sessionCreated(HttpSessionEvent se)方法中,声明一个变量用于记录在线的人数,并将其以属性的形式保存在ServletContext对象中。 (2) 在web.xml中对该监听器进行配置。 (3) 编写一个JSP页面,用于取得application对象中的属性值,并将其显示在页面上。 <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <html> <head> </hea......
阅读全文