使用stream类型的result实现ajaxpackage
com.lee.action;import java.io.ByteArrayInputStream;import
java.io.InputStream;import com.opensymphony.xwork2.ActionSupp...
分类:
其他好文 时间:
2014-05-05 11:51:57
阅读次数:
251
最近有个数据挖掘的项目,要求在文本里面写入随机字母并且要1000W个于是就写了个程序用来造数据并记录一下程序写的时候遇到的问题1
未考虑内存溢出的情况,大批量的把数据写入导致内存溢出以后需要谨慎对待目前完整版package test;import java.io.File;import
java.i...
分类:
其他好文 时间:
2014-05-05 11:40:16
阅读次数:
333
//从Grid取值 var name =
Ext.getCmp(gridGridID).getView().getSelectionModel().getSelection()[0].data.Name;
var code = Ext.getCmp(gridGridID)...
背景: 最近总是出现客户端超时,那么根据超时进行排查
System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout
period elapsed prior to completion of the o.....
分类:
Web程序 时间:
2014-05-05 11:16:29
阅读次数:
346
# --*-- coding:utf-8 --*--import distributionimport
matplotlib.pyplot as pltfrom matplotlib.ticker import MultipleLocator#
二项分布举例:将一个硬币抛三次,用随机变量X记录在三次...
分类:
其他好文 时间:
2014-05-04 20:54:51
阅读次数:
512
BeautifulSoup 善于网页数据分析 ,抓取CSDN极客头条内容放入ListView ,
用户点击选择 webViewShow 网页href
geek.py 超过100行,得闲时看吧
# -*- coding: utf-8 -*-
import android
import urllib2, re
from BeautifulSoup import BeautifulSoup
im...
分类:
移动开发 时间:
2014-05-04 09:53:02
阅读次数:
468
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
import scala.util.control.Breaks._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10...
分类:
其他好文 时间:
2014-05-04 09:42:56
阅读次数:
372
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10
// using quick sort to so...
分类:
其他好文 时间:
2014-05-04 09:22:37
阅读次数:
341
题目如下:
``Accordian'' Patience
You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:
Deal cards one by one in a row from left to right, no...
分类:
其他好文 时间:
2014-05-04 09:08:31
阅读次数:
329
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Int, B: Int, K: Int): Int = {
// write your code in Scala 2.10
var cnt: Int = 0...
分类:
其他好文 时间:
2014-05-04 09:06:08
阅读次数:
307