http://poj.org/problem?id=1269Time Limit:1000MSMemory Limit:10000KTotal Submissions:10379Accepted:4651DescriptionWe all know that a pair of distinct p...
分类:
其他好文 时间:
2014-07-22 22:53:16
阅读次数:
314
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-07-22 22:53:14
阅读次数:
184
lsof -i :8086 第二个参数需要:开头netstat linux-a (all)显示所有选项,默认不显示LISTEN相关 理解这个很关键, 这是为什么我们netstat -a 不显示listen相关的信息-t (tcp)仅显示tcp相关选项-u (udp)仅显示udp相关选项-...
分类:
Web程序 时间:
2014-07-19 22:34:07
阅读次数:
224
ipconfig/all
route print 显示本机所有的网络
网关是什么
那么网关到底是什么呢?网关实质上是一个网络通向其他网络的IP地址。比如有网络A和网络B,网络A的IP地址范围为“192.168.1.1~192.
168.1.254”,子网掩码为255.255.255.0;网络B的IP地址范围为“192.168.2.1~192.168.2.254”...
分类:
数据库 时间:
2014-07-19 18:41:19
阅读次数:
375
在MySQL的主从环境中,我们能够通过在slave上运行show slave status来查看slave的一些状态信息,当中有一个比較重要的參数Seconds_Behind_Master。那么你是否明确它的真正含义以及它是怎么计算的呢? 在之前我一直误以为Seconds_Behind...
分类:
数据库 时间:
2014-07-19 16:18:00
阅读次数:
283
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-07-19 14:20:14
阅读次数:
178
对于常常要查的结果集,返回少量记录,server端是能够缓存的,结果集保存在共享池中,假设是绑定变量,绑定变量的值也要一样。SQL> show parameter result_cacheNAME TYPE VALUE---------------------...
分类:
数据库 时间:
2014-07-19 11:33:54
阅读次数:
407
POJ 1936 All in All(串)
水一个。。。...
分类:
其他好文 时间:
2014-07-19 11:33:04
阅读次数:
120
其实就是用sin或cos对x,y坐标进行变换,处理的时候依然是反向变换。类似的,用不同的函数能得到不同的扭曲效果,比如log,1/x,exp等等。效果如下:代码如下(还给出了如何生成gif图片的代码):clear all;close all;clc;img=imread('lena.jpg');[h...
分类:
其他好文 时间:
2014-07-19 11:32:53
阅读次数:
288
// Copyright (c) 2014年 戴维营教育. All rights reserved.#import "ViewController.h"#import @interface ViewController (){ AVAudioPlayer *player;// 建立一个对象 NSA....
分类:
其他好文 时间:
2014-07-19 11:32:38
阅读次数:
214