ITeye博客

rcc

trix · 共 70 篇文章

网吧ROS建PPPOE服务器,单机拨号上网

http://586pe.blog.163.com/blog/static/174691302009426105252759 网吧ROS建PPPOE服务器,单机拨号上网,不要再发ARP相关的贴子了. 本人也是转载的,把好贴分离给大家.用ROS做PPPoE服务器一、创建 PPPoE server a、进入winbox,点击 主菜单 最上面的 “Interfaces”,在弹出的“Interface list”对话框中依次点击“settings”-“PPPoE Server” b、这时弹出“PPPoE Server list”对话框,点击左边的“+”号,“Service Name”=PPPoe名称…

2011-07-29 14:18 · 评论(0)

sql server t-sql

server使用convert来取得datetime日期数据,以下实例包含各种日期格式的转换 语句及查询结果: Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06 Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16 Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06 Select CONVERT(varcha…

2011-01-30 17:23 · 评论(0)

fetch out of sequence

ORA-01002: fetch out of sequence Cause: In a host language program, a FETCH call was issued out of sequence. A successful parse-and-execute call must be issued before a fetch. This can occur if an attempt was made to FETCH from an active set after all records have been fetched. This may be caused b…

2010-12-28 13:59 · 评论(0)

设计模式之Command

设计模式之Command Command模式是最让我疑惑的一个模式,我在阅读了很多代码后,才感觉隐约掌握其大概原理,我认为理解设计模式最主要是掌握起原理 构造,这样才对自己实际编程有指导作用.Command模式实际上不是个很具体,规定很多的模式,正是这个灵活性,让人有些confuse. Command定义 n 将来自客户端的请求传入一个对象,无需了解这个请求激活的 动作或有关接受这个请求的处理细节。 这是一种两台机器之间通讯联系性质的模式,类似传统过程语 言的 CallBack功能。 优点: 解耦了发送者和接受者之间联系。 发送者调用一个操作,接受者接受请求执行相应的动作,因为使用Comma…

2010-11-07 22:27 · 评论(0)

STRUTS 2 教程

http://www.360doc.com/content/08/0727/10/70655_1475254.shtml

2010-11-05 09:40 · 评论(0)

hash map

import java.util.*; class Dog { public Dog(String n) { name = n; } public String name; public boolean equals(Object o) { if((o instanceof Dog) && (((Dog)o).name == name)) { return true; } else { return false; } } public int hashCode() {return name.length(); } } class Cat { } enum Pets {DOG, CAT, HO…

2010-11-03 21:18 · 评论(0)

primitive type:wrapped type

primitive type: 基本类型,像int、double就是。 wrapped type:包装类型,int—>Integer,double—>Decimal 基本类型跟就是不可实例化的,可以直接初始化、赋值、运算。不可调用方法,不可放入容器(要求必须是类实例才行)。 int i=10; i++; 包装类型就是把基本类型变成一个类实例,一定要new才产生,可以调用方法,可以放入容器。 int tt=100; tt++; Integer kk=new Integer(tt); //tt的包装类实例 System.out.println(kk.intValue()); //还是101 Ha…

2010-11-03 19:52 · 评论(0)

代码001

public class EqualsTest { public static void main (String [] args) { Moof one = new Moof(8); Moof two = new Moof(8); if (one.equals(two)) { System.out.println("one and two are equal"); } } } class Moof { private int moofValue; Moof(int val) { moofValue = val; } public int getMoofValue() { return mo…

2010-11-03 09:55 · 评论(0)

Cloud Computing

Agility improves with users' ability to rapidly and inexpensively re-provision technological infrastructure resources. [ 34] Cost is claimed to be greatly reduced and capital expenditure is converted to operational expenditure . [ 35] This ostensibly lowers barriers to entry , as infrastructure is …

2010-11-02 23:53 · 评论(0)

oracle 10 和9i

今天成功在一台机器上同时 安装 9i 和 10g ,遇到了很多问题 1 解压 10g 的安装文件时,报无法解压 autorun.inf 点击 setup ,提示 : 正在启动 Oracle Universal Installer... error:cannot create C:/DOCUME~1/Y ANGLU~1/LOCALS~1/Temp/OraInstall2009-10-22_08-15-07PM/oui/Autorun.inf 后无法安装 解决方法:关闭杀毒 软件 ,autorun.inf 就能成功解压了,可以进行 setup 2 先安装低版本 Oracle 再安装高版本 Ora…

2010-11-02 22:40 · 评论(0)

oooooooo

create public synonym customers for hr.customers; SELECT &1, "&2" FROM &3 WHERE last_name = '&4'; select * from hr.employees t where t.last_name=''; SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY 2 DESC; select …

2010-11-02 22:18 · 评论(0)

struts

Exploring the Struts architecture Talking the talk This chapter explores the Struts framework in depth and highlights the benefits Struts can bring to your development efforts. We believe that once you can “talk the talk” of web architecture and design, you will be better equipped to use Struts wit…

2010-11-01 19:13 · 评论(0)

design pattern

uml: visualizing specifying constructing documenting use-case diagrams class sequence collaboration statechart activity component deployment ocp(open-close principle) Software entities should be open for extention , but closed for modification

2010-11-01 18:06 · 评论(0)

java 内存机制(堆和栈)内存地址

问题的引入: 问题一: String str1 = "abc"; String str2 = "abc"; System.out.println(str1==str2); //true 问题二: String str1 =new String ("abc"); String str2 =new String ("abc"); System.out.println(str1==str2); // false 问题三: String s1 = "ja"; String s2 = "va"; String s3 = "java"; String s4 = s1 + s2; System.out.p…

2010-10-28 01:09 · 评论(0)

URL

http://www.oracle.com/technetwork/java/index.html

2010-10-26 23:39 · 评论(0)