Determine whether an integer is a palindrome. Do
this without extra space.Some hints:Could negative integers be palindromes? (ie,
-1)If you are thinki...
分类:
其他好文 时间:
2014-05-26 18:07:52
阅读次数:
217
收到消息某系统一个节点由于内存溢出而宕机,系统的中间件是weblogic,数据库的oracle。
1. 先用IBM HeapAnalyzer分析内存溢出时的dump文件,找到占用内存最多的请求,然后看代码。
2. 在走查代码发现,此类中的方法都特别简单,对单表的增删改查,有查询的地方都是非常简单,不会有操作大数据的情况,这样就排除了数据库方面的问题。
3...
分类:
编程语言 时间:
2014-05-26 04:54:58
阅读次数:
333
在10g中,Oracle推出了自己的SQL优化辅助工具: SQL优化器(SQL Tuning Advisor :STA),它是新的DBMS_SQLTUNE包。使用STA一定要保证优化器是CBO模式下。但是我认为使用这种工具,仅适合完全不懂SQL的调优的人群,不要认为工具能解决好问题。SQL说到底是表达的是一个业务,工具怎么可能理解业务。SQL调优还是要用autotrace,10046,10053,...
分类:
数据库 时间:
2014-05-26 04:52:26
阅读次数:
465
1.先用:ls -al /usr/lib | grep
libevent查看是否已安装,如果已安装且版本低于1.3,则先通过:rpm -e libevent —nodeps进行卸载。安装:# wget
http://www.monkey.org/~provos/libevent-1.4.13-sta...
分类:
其他好文 时间:
2014-05-25 23:34:50
阅读次数:
271
给定两个整数A和B,输出从A到B的所有整数以及这些数的和。
输入格式:
输入在一行中给出2个整数A和B,其中-100
输出格式:
首先顺序输出从A到B的所有整数,每5个数字占一行,每个数字占5个字符宽度,向右对齐。最后在一行中输出全部数字的和。
输入样例:import java.util.Scanner;
public class Main {
public sta...
分类:
其他好文 时间:
2014-05-25 21:39:36
阅读次数:
259
常用的快捷键代码补全Ctrl + space删除行Command + D注释Command +
/导入包Command + shift + O格式化代码Command + shift + F运行Ctrl + Alt + RIncremental
SearchCommand + J 在编辑器中实现快....
分类:
其他好文 时间:
2014-05-25 12:17:37
阅读次数:
287
链接dp[x][y][node][sta]
表示走到在x,y位置node节点时状态为sta的方法数,因为只有2个病毒串,这时候的状态只有4种,根据可走的方向转移一下。这题输入的是m、N,先列后行,因为输反了,WA了N次啊。。
1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2014-05-25 11:37:30
阅读次数:
297
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
日期: 2014年5月23日
博客: 铁锚
最近在查看MariaDB主从复制服务器 Master 的错误日志时看到很多条警告信息,都是提示 UUID()函数不安全,可能 Slave 产生的值和 Master不一致, 警告信息大致如下:
140522 15:11:10 [Warning]
Unsafe statement written to the binary log
using sta...
分类:
数据库 时间:
2014-05-24 21:54:38
阅读次数:
600
首先,必须一点是 table一定要固定width,一定要有style:
table-layout:fixed;其次,td的样式: white-space:nowrap; overflow:hidden;
(溢出部分隐藏)如果溢出部分需要显示... 可以用text-overflow:ellipsisB...
分类:
其他好文 时间:
2014-05-24 11:20:28
阅读次数:
248