上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 91 下一页
  2013年10月17日
摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=34121#problem/C// File Name: c.cpp// Author: bo_jwolf// Created Time: 2013年10月16日 星期三 16:08:12#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include 阅读全文
posted @ 2013-10-17 11:05 我的小人生 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 字符串类型MySQL的字符串分为两大类:1)二进制字符串:即一串字节序列,对字节的解释不涉及字符集,因此它没有字符集和排序方式的概念2)非二进制字符串:由字符构成的序列,字符集用来解释字符串的内容,排序方式决定字符的大小 字符集和排序方式字符集和排序方式的关系是这样的:一个字符集可以有一个或多个排序方式,有一个默认的排序方式,我们可以通过以下例子说明:mysql> show character set like '%gbk%';+---------+------------------------+-------------------+--------+| Charse 阅读全文
posted @ 2013-10-17 10:59 我的小人生 阅读(336) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import java.io.InputStream;import java.io.PrintStream;import java.io.UnsupportedEncodingException;import org.apache.commons.net.telnet.TelnetClient;/** * Telnet操作器,基于commons-net-2.2.jar * @author JiangKunpeng * */public class TelnetOperator { private String prompt = " 阅读全文
posted @ 2013-10-17 10:55 我的小人生 阅读(3747) 评论(0) 推荐(0) 编辑
摘要: 下面是sql和Mongodb对应的一些语法:SQL StatementMongo Query Language StatementCREATE TABLE USERS (a Number, b Number)Implicit or useMongoDB::createCollection().INSERT INTO USERS VALUES(1,1)$db->users->insert(array("a" => 1, "b" => 1));SELECT a,b FROM users$db->users->find(ar 阅读全文
posted @ 2013-10-17 10:53 我的小人生 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 做过snmp/mib开发的知道,常见的节点类型一般只有no-accessible,read-only,read-write三种访问类型。snmp V2中引入了一种新的访问类型:read-create。 最近在一个产品的snmp管理接口开发中,需要实现snmpTargetMIB(.1.3.6.1.6.3.12),其下面两个表snmpTargetAddrEntry和snmpTargetParamsTable的节点都是read-create类型。 read没什么好说的,关键是这个create。Create是指这个表的行可以通过“snmp途径”来操作(增加,删除)。这些行操作是通过表中的... 阅读全文
posted @ 2013-10-17 10:48 我的小人生 阅读(1473) 评论(0) 推荐(1) 编辑
摘要: Oracle中wm_concat()函数的使用wm_concat()函数是oracle行列转换函数,该函数可以把列值以‘,’分割开来,并显示成一行。1.原数据:2.把结果分组以‘|’分隔,以一行打印出来3.over(partition by )的用法4.over(order by )的用法 阅读全文
posted @ 2013-10-17 10:46 我的小人生 阅读(662) 评论(0) 推荐(0) 编辑
摘要: PIL是python Image library 在mac终端中通过以下命令安装:# downloadcurl -O -L http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz# extracttar -xzf Imaging-1.1.7.tar.gzcd Imaging-1.1.7# build and installpython setup.py buildsudo python setup.py install# or install it for just you without requiring admin permissio 阅读全文
posted @ 2013-10-17 10:40 我的小人生 阅读(348) 评论(0) 推荐(0) 编辑
摘要: package com.java.move;import java.awt.Color;import java.awt.Dimension;import java.awt.Graphics;import java.awt.GraphicsConfiguration;import java.awt.HeadlessException;import java.awt.Toolkit;import java.awt.event.KeyAdapter;import java.awt.event.KeyEvent;import javax.swing.*;/* * * author : deng_hui 阅读全文
posted @ 2013-10-17 10:39 我的小人生 阅读(1428) 评论(0) 推荐(0) 编辑
摘要: Sequence operationTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4952Accepted Submission(s): 1452 Problem Description lxhgww got a sequence contains n characters which are all '0's or '1's. We have five operations here: Change op 阅读全文
posted @ 2013-10-17 10:35 我的小人生 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 有些歌曲的下载地址,无法获得歌曲的大小:但可以正常播放player.reset(); player.setDataSource(currSoundFileUrl); System.out.println("yuan网址:" + currSoundFileUrl); player.setAudioStreamType(AudioManager.STREAM_MUSIC); player.prepare(); soundLength = player.getDuration(); soundLength有时获取不到歌曲的大小,为0; 这时最好是下载到本地再读取本地歌曲,用完时将 阅读全文
posted @ 2013-10-17 10:29 我的小人生 阅读(257) 评论(0) 推荐(0) 编辑
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 91 下一页