码迷,mamicode.com
首页 > 2014年05月03日 > 全部分享
STP 3 - 生成树协议中4个guard 和 3个fast加一个filter
生成树协议里常见的4个guard:bpduguard,rootguard, loopguard & UDLD; 3个Fast:portFast,uplinkFast & backboneFast; 还有一个filter:bpdufilter。 这篇文章一起总结一下。...
分类:其他好文   时间:2014-05-03 15:24:46    阅读次数:513
MySQL慢查询
看到这个名称我惊呆了... SQL不是希望快速查询取得结果吗,怎么什么时候会有这个概念。 问了一个哥们,哥们认为是漫查询:同时多查询。 于是Google得出了如下结果: 慢查询其实对应的是MySQL慢查询日志系统,用来记录执行比较慢的SQL。 怎么去判断执行慢呢,MySQL中你show variables like '%quer%';时,你可以看到long_query_time 属性,对应的就是设置的比较时间。 当看到long_query_time 属性时,你同时可以看到log_slow_queries状态...
分类:数据库   时间:2014-05-03 15:23:59    阅读次数:500
Android的学习3-初识Activity
Activity---android的系统下存放控件的容器。通俗的讲相当于MFC中的CFrame。搭配完成android4.4.2开发环境后,发现比2.1的开发效率高很多。 android的2.1是依靠xml添加和表述控件,但4.4.2提供了可视化的编辑工具,加快了开发速度。 我们添加一个按钮,并在MainActivty.java中添加按钮的命令响应。 1、如何获取控件呢?我们查阅A...
分类:移动开发   时间:2014-05-03 17:29:15    阅读次数:410
java Swing 之列表框控件
/** * java Swing 列表框控件 * @author gao */ package com.gao; import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; imp...
分类:编程语言   时间:2014-05-03 17:28:28    阅读次数:404
Oracle 11g 错误:ORA-28002: the password will expire within 7 days 解决方法
ERROR:ORA-28002: the password will expire within 7 days 错误是提示密码快过期了,有两个办法解决这个问题。 一. 修改已经报错用户的密码 已经被报告了密码快要过期的账户必须再改一次密码(需要DBA权限) 以system用户为例 sqlplus / as sysdba alter user system identi...
分类:数据库   时间:2014-05-03 17:27:50    阅读次数:460
UVA之11462 - Age Sort
【题目】 B Age Sort Input: Standard Input Output: Standard Output   You are given the ages (in years) of all people of a country with at least 1 year of age. You kn...
分类:其他好文   时间:2014-05-03 16:51:42    阅读次数:427
Java中String类与Integer类的几个方法
计算诸如-123,456,789 + 123,123的值 import java.math.BigInteger; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner cin = new Scanner(System.in); String st...
分类:编程语言   时间:2014-05-03 16:50:55    阅读次数:307
JAVA之IO技术-自定义的LineNumberReader类
package ioTest.io2; /* * 自定义一个带有读取行号方法的读取文件的装饰类 */ import java.io.FileReader; import java.io.IOException; import java.io.Reader; public class MyLineNumberReaderDemo { public static void main(Stri...
分类:编程语言   时间:2014-05-03 16:50:06    阅读次数:341
soj 1033 City Road_经典dp
很经典的动态规划啊...
分类:其他好文   时间:2014-05-03 16:07:51    阅读次数:271
java 遍历目录
package com.recursion; import java.io.File; public class RecursionFile { public static void main(String[] args) { File file  = new File("G:/A"); tree(file, 0); } private static vo...
分类:编程语言   时间:2014-05-03 16:07:04    阅读次数:265
JAVA之IO技术键盘录入 System.in
package ioTest.io2; import java.io.IOException; import java.io.InputStream; /* *键盘录入:如果录入的是一行数据打印,如果录入了over就结束录入 *System.in:标准输入流对象 *System.out:标准输出流对象 */ public class ReadIn { public static v...
分类:编程语言   时间:2014-05-03 17:07:53    阅读次数:268
Struts2实现文件上传(四)
Struts2实现文件上传 配置文件struts.xml <!-- /* * $Id: struts.xml 1364077 2012-07-21 12:57:02Z lukaszlenart $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor licens...
分类:其他好文   时间:2014-05-03 15:41:44    阅读次数:348
hdu_1228 A + B
http://acm.hdu.edu.cn/showproblem.php?pid=1228 分析:         我只是想练习一下map的用法,不然又忘了。。。 代码: //hdu 1228 #include #include #include #include #include using namespace std; map d; void init()...
分类:其他好文   时间:2014-05-03 15:40:58    阅读次数:232
java实现简单邮件发送
{CSDN:CODE:323903}...
分类:编程语言   时间:2014-05-03 23:45:08    阅读次数:285
模拟spring - 动手写一个spring AOP
一、前言 AOP (Aspect Oriented Programing) - 面向切面编程,它主要用于日志记录、性能分析、安全控制、事务处理、异常处理等方面。 二、实现细节 下面这个例子利用AOP来实现日志记录: 附上一张类的结构图,该例子需要导入dom4j.jar ① 业务逻辑接口 /** * 业务逻辑类接口 * @a...
分类:编程语言   时间:2014-05-03 17:48:34    阅读次数:317
poj1598
Excuses, Excuses! Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3615   Accepted: 1254 Description Judge Ito is having a problem with people subpoenaed fo...
分类:其他好文   时间:2014-05-03 17:10:03    阅读次数:278
一道有趣的算法题:仿照Excel的列编号,给定一个数字,输出该列编号字符串
By Long Luo 最近遇到一个算法题: 仿照Excel的列编号,给出一个数字,输出该列编号字符串。 例如:A对应1,Z对应26,AA对应27,AZ对应52 ...... 这个题目是一个典型的26进制思路去处理,但是这个题目里面有很多陷阱,在1, 26, 52等特殊情况进行考虑,经过晚上接近1个小时的编写,完成的代码如下: C++代码如下: #inclu...
分类:其他好文   时间:2014-05-03 17:09:18    阅读次数:344
651条   上一页 1 ... 28 29 30 31 32 33 34 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!