`
wjm901215
  • 浏览: 149151 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
<html> <head> <meta name="keywords" content="通用滑动门" /> <meta name="description" content="通用滑动门" /> <title>通用滑动门</title> <style type="text/css"> <!-- body{margin:0px;padding:0px;font-size:12px;backgro ...

简单万年历

    博客分类:
  • java
import java.util.*; public class PrintCalendar { /** * @param args */ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("******************欢 迎 使 用 万 年 历******************"); System.out.println("请 ...
var fileUploadPhotoPreview = new Ext.Component({ id: 'photoPreview', xtype: 'textfield', //height: 100, //width:100, autoEl: { tag: 'img', src: 'ws_Dell_11_1920x1200.jpg', id: 'photoPreview' }, ...
//uploadFile.js Ext.onReady(function() { var fileForm = new Ext.form.FormPanel({ title : "", renderTo : "fileUpload", fileUpload : true, layout : "form", id : "fileUploadForm", ...
/** * * sendMultipartDataToHttpServer * 使用post方法请求web服务器,并且当表单数据为:multipart/form-data格式。http请求使用{@link#HTTP_ENCODING}编码<br/> * 返回json数据,支持文件名中文上传和多文件上传,不支持断点上传,要正确编码服务端返回{@link#HTTP_ENCODING}编码<br/> * @param url * @p ...
1、LoginWindow.java --登录窗口 view plaincopy to clipboardprint? package com.hemi.rhet; import com.hemi.rhet.R; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import andro ...
Intent i = new Intent(Intent.ACTION_SEND);File file = new File("/sdcard/MyScreen/20100528163140.jpg");i.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); i.setType("image/*"); startActivity(Intent.createChooser(i, "Share via..."));
clientMenu_update.on('checkchange', function(node, flag) {    // 获取所有子节点    node.cascade(function(node) {       node.attributes.checked = flag;       node.ui.checkbox.checked = flag;       return true;      });    // 获取所有父节点    var pNode = node.parentNode;    try {     for (; pNode.id != "root&q ...
一、安装Subclipse安装Subclipse的最好方法是使用Eclipse Update Manager。在Eclipse 3.1中,它位于Help -> Software Updates -> Find and Install...菜单下。选择搜索要安装的新功能部件,点击新建远程站点,弹出图1,在URl输入框输入http://subclipse.tigris.org/update作为URL添加New Remote Site。图1:使用Eclipse Update Manager安装Subclipse  点击OK后,系统会自动去网站上搜索该插件图2在图2中选择Subclipse点 ...
数据库连接池 package org.dave.common.database; import java.sql.Connection; import java.sql.SQLException; import java.util.ResourceBundle; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.jolbox.bonecp.BoneCP; import com.j ...
public static void main(String[] args) { System.out.println(toUnicode("开源中国社区")); } public static String toUnicode(String s) { String as[] = new String[s.length()]; String s1 = ""; for (int i = 0; i < s.length(); i++) { as[i] = Integer.toHexString(s.charA ...

ORA-00257解决

ORA-00257解决    从Oracle9i开始,借助于UNDO日志文件提供了闪回查询的功能,由于功能也有一定的局限性,也就是说依赖于UNDO日志的事务不能被覆盖,所以在Oracle10g开始又采用了一种新的FlashBack日志来实现这个功能,而且更为强大,可以将数据库退回到过去某个时间点去。这个文件默认最大为2g。但是在一段时间过后,很快就达到了2G,这个时候就会出现ORA-00257错误了。   两种解决方法:   第一种 就是关闭闪回日志的功能,这种对于开发环境中不失为一种好方法,因为开发环境中,并不追求数据的可安全性什么的。通过如下语句改变。   ...
getResourceAsStream 用法大致有以下几种:   第一: 要加载的文件和.class文件在同一目录下,例如:com.x.y 下有类me.class ,同时有资源文件myfile.xml 那么,应该有如下代码: me.class.getResourceAsStream("myfile.xml");   第二:在me.class目录的子目录下,例如:com.x.y 下有类me.class ,同时在 com.x.y.file 目录下有资源文件myfile.xml 那么,应该有如下代码: me.class.getResourceAsStream(&qu ...
public void doPost(HttpServletRequest request, HttpServletResponse response)   throws ServletException, IOException {  final long MAX_SIZE = 3 * 1024 * 1024;// 设置上传文件最大为 3M  response.setContentType("text/html");  // 设置字符编码为UTF-8, 这样支持汉字显示  response.setCharacterEncoding("UTF-8"); ...
  1. 什么是IO?    I:input 输入 通常做读取操作(将不同数据源的数据读入到内存中,也叫读取流)  O:output 输出通常做写入操作(将内存中的数据写入到不同的数据源,也叫写入流)     2. 理解流的概念。 想像一下自 ...
Global site tag (gtag.js) - Google Analytics