- 博客(69)
- 资源 (2)
- 收藏
- 关注
转载 centOS cannot mount ntfs disk
Linux挂载移动大硬盘,比较麻烦,插上硬盘不能识别,报 mount: unknown filesystem type 'ntfs' 错误,很不爽。 这是由于Linux上无法识别NTFS格式的分区。 通过使用 ntfs-3g 来解决,以下几步解决问题: 1、下载ntfs-3g 打开ntfs-3g的下载点http://www.tuxera.com/commun
2015-07-06 14:05:54 873
转载 JSP
107. What is a JSP Page ? A Java Server Page (JSP) is a text document that contains two types of text: static data and JSP elements. Static data can be expressed in any text-based format, such as HT
2015-04-13 21:34:03 704
转载 Remote Method Invocation (RMI)
78. What is RMI ? The Java Remote Method Invocation (Java RMI) is a Java API that performs the object-oriented equivalent of remote procedure calls (RPC), with support for direct transfer of seriali
2015-04-13 21:33:21 578
转载 Servlets
91. What is a Servlet ? The servlet is a Java programming language class used to process client requests and generate dynamic web content. Servlets are mostly used to process or store data submitted
2015-04-13 21:32:52 619
转载 JDBC
72. What is JDBC ? JDBC is an abstraction layer that allows users to choose between databases. JDBC enables developers to write database applications in Java, without having to concern themselves wi
2015-04-13 21:32:01 555
转载 Java Applets & Swing
Java Applets48. What is an Applet ? A java applet is program that can be included in a HTML page and be executed in a java enabled client browser. Applets are used for creating dynamic and inter
2015-04-13 21:31:13 643
转载 Exception Handling
43. What are the two types of Exceptions in Java ? Which are the differences between them ?Java has two types of exceptions: checked exceptions and unchecked exceptions. Unchecked exceptions do not
2015-04-13 21:30:21 623
转载 Java Threads
11. What is the difference between processes and threads ? A process is an execution of a program, while a Thread is a single execution sequence within a process. A process can contain multiple thre
2015-04-13 21:29:54 590
转载 Garbage Collectors
35. What is the purpose of garbage collection in Java, and when is it used ? The purpose of garbage collection is to identify and discard those objects that are no longer needed by the application,
2015-04-13 21:29:53 530
转载 Java Collections
18. What are the basic interfaces of Java Collections Framework ? Java Collections Frameworkprovides a well designed set of interfaces and classes that support operations on a collections of objects
2015-04-13 21:29:29 730
转载 General Questions about Java
1. What is JVM ? Why is Java called the “Platform Independent Programming Language” ? A Java virtual machine (JVM) is a process virtual machine that can execute Java bytecode. Each Java source file
2015-04-13 21:28:54 636
转载 Object Oriented Programming(OOP)
Object Oriented Programming (OOP)Java is a computer programming language that is concurrent, class-based and object-oriented. The advantages of object oriented software development are shown below
2015-04-13 21:28:02 857
转载 使用正则表达式
原文链接目录跳过目录本文目标如何使用本教程正则表达式到底是什么东西?入门测试正则表达式元字符字符转义重复字符类分枝条件反义分组后向引用零宽断言负向零宽断言注释贪婪与懒惰处理选项平衡组/递归匹配还有些什么东西没提到联系作者网上的资源及本文参考文献更新纪录本文目标30分钟内让你明白正则表达式是什么,并对它有一些基本的了解,让你可以在自己的程序或网页里使用
2014-12-07 15:21:27 874
原创 IntelliJ IDEA import and reimport a project
一下是import一个Maven project的时候需要进行的配置:Maven Importing(1)Keep projects files in: 通过这一个check box来指定“项目文件”在导入之后的location。比如说,当你import一个project并希望将“.iml”文件和“.idea”文件夹导入到指定的文件夹中,而不是默认的位置。默认地,IntellJ
2014-07-15 16:40:08 10248
转载 Intellij IDEA 提交代码到远程GitHub仓库
转载地址:Intellij IDEA 提交代码到远程GitHub仓库时间:2014-02-17 13:25来源:Internet 作者:Internet 点击:1228次1.下载github for window http://go.rritw.com/windows.github.com/ 2.设置相关绑定 Settings ——Ve
2014-07-15 15:28:02 1798
转载 【linux】提醒"libc.so.6: version `GLIBC_2.14' not found"系统的glibc版本太低
http://www.myexception.cn/linux-unix/1622052.html
2014-05-13 11:45:44 1176
原创 python-sort
>>> students = [('john', 'A', 15), ('jane', 'B', 12), ('dave', 'B', 10),]
2014-04-24 09:46:15 573
转载 Ubuntu SSH远程连接的用户帐号
2010-02-05 10:22 佚名 CSDN 字号:T | TUbuntu SSH(Secure Shell)是目前比较可靠的为远程登录会话和其他网络服务提供安全性的协议。利用Ubuntu SSH协议可以有效防止远程管理过程中的信息泄露问题。通过Ubuntu SSH,可以把所有传输的数据进行加密,也能够防止DNS欺骗和IP欺骗。AD:51CTO学院:IT精品课程
2014-04-11 20:50:59 1766
原创 git所遇问题
git一些问题(1)teisei@john:~/git/helloworld$ git push -f origin masterUsername for 'http://58.198.176.136': teiseiPassword for 'http://teisei@58.198.176.136': Total 0 (delta 0), reused 0 (delta 0)T
2014-04-11 16:56:00 1661
转载 ubuntu jdk 配置
转自:http://www.cnblogs.com/bluestorm/archive/2012/05/10/2493592.html先去 Oracle下载Linux下的JDK压缩包,我下载的是jdk-7u4-linux-i586.tar.gz文件,下好后直接解压Step1:# 将解压好的jdk1.7.0_21文件夹用最高权限复制到/usr/lib/jvm目录里sudo c
2014-04-10 12:57:27 743
原创 Sublime plugins useful for pythonor
CodeIntelAndyPythonBracketHighlighterConvert2UTF8
2014-04-04 16:31:01 612
转载 用 ElementTree 在 Python 中解析 XML
原文: http://eli.thegreenplace.net/2012/03/15/processing-xml-in-python-with-elementtree/译者: TheLover_Z当你需要解析和处理 XML 的时候,Python 表现出了它 “batteries included” 的一面。 标准库 中大量可用的模块和工具足以应对 Python 或者是 XML
2014-03-25 19:33:04 657
原创 fudanNLP-使用
中文实体抽取-fudanNLP1.input and outputA)中文分词:InputStr = "媒体计算研究所成立了, 高级数据挖掘很难。 乐phone热卖!";Dictionary = {"数据挖掘","媒体计算研究所","乐phone"};OutputStr1 = "媒体|计算|研究所|成立|了|, 高级|数据|挖掘|很|难|。|乐|phone|热卖|!";
2014-03-20 13:01:36 1912
转载 Ubuntu init启动流程分析
Ubuntu init启动流程分析 现行的 Linuxdistros主流的有两种init方式:一种是广为流传的System Vinitialization,它来源于Unix并且至今仍被各种Linuxdistros所采用;另一种是近几年提出的Upstart方式,基于事件机制,系统的所有服务,任务都是由事件驱动的。据我所知,采用后一种方式的目前有Ubuntu(6.10 and later)
2014-03-20 13:01:34 521
原创 Linux文件系统详解
/bin:存放着一百多个Linux下常用的命令、工具/dev:存放着Linux下所有的设备文件!/home:用户主目录,每建一个用户,就会在这里新建一个与用户同名的目录,给该用户一个自己的空间/lost+found:顾名思义,一些丢失的文件可能可以在这里找到/mnt:外部设备的挂接点,通常用cdrom与floppy两个子目录!它的存在简化了光盘与软盘的使用。你只需在塞入光盘后,运行:mo
2014-03-20 13:01:31 475
原创 Ubuntu下安装JDK和Tomcat
1.查询可以使用的JDK。 root@ubuntu-163jsp:/# apt-cache search jdk libpg-java - Java database (JDBC) driver for PostgreSQL free-java-sdk - Complete Java SDK environment consisting of free Java to
2014-03-20 13:01:29 635
原创 ubuntu下-配置和管理msyql
1. 修改mysql最大连接数:cp support-files/my-medium.cnf ./my.cnf,vimmy.cnf,增加或修改max_connections=1024 关于my.cnf:mysql按照下列顺序搜索my.cnf:/etc,mysql安装目录,安装目录下的data。/etc下的是全局设置。 2. 启动mysql:/usr/local/mysql/bin/my
2014-03-20 13:01:27 441
原创 Java技巧-日期
1.String mydate = "2013-08-29T00:00:00+08:00 ";SimpleDateFormat sdf = newSimpleDateFormat("yyyy-MM-dd");try {java.util.Date date = sdf.parse(mydate);mydate = "";mydate += 1900+date.getYear()+"-"
2014-03-20 13:01:25 523
原创 java技巧-连接数据库
1.需要下载JDBC驱动:mysql-connector-java-5.0.5.zip2.连接 //驱动程序名 String driver = "com.mysql.jdbc.Driver"; // URL指向要访问的数据库名scutcs String url = "jdbc:mysql:
2014-03-20 13:01:23 518
原创 mysql一些命令
show create table MyTable \G;//查看详细建表,表结构。grant 权限 on 数据库.* to 用户名@登陆主机 identified by '密码';//增加新用户mysqldump --opt test>mysql.test//导出数据,即将数据库test数据库导出到mysql.test文件,后者是一个文本文件mysqlimport -u roo
2014-03-20 13:01:21 471
转载 MySQL 外键
MYSQL外键(ForeignKey)的使用在MySQL 3.23.44版本后,InnoDB引擎类型的表支持了外键约束。外键的使用条件:1.两个表必须是InnoDB表,MyISAM表暂时不支持外键(据说以后的版本有可能支持,但至少目前不支持);2.外键列必须建立了索引,MySQL4.1.2以后的版本在建立外键时会自动创建索引,但如果在较早的版本则需要显示建立; 3.外键关系的两个表
2014-03-20 13:01:18 472
转载 mySQL alter使用方法
MySQL之alter语句用法总结1:删除列ALTER TABLE 【表名字】 DROP 【列名称】2:增加列ALTER TABLE 【表名字】 ADD 【列名称】 INT NOT NULL COMMENT'注释说明'3:修改列的类型信息ALTER TABLE 【表名字】 CHANGE 【列名称】【新列名称(这里可以用和原来列同名即可)】 BIGINT NOTNUL
2014-03-20 13:01:16 389
原创 最大流:HDU-4292(Food)
#include #include #include #define INF 0x7fffffff #define MAXN 1000 #define MAXE 200000 using namespace std; int N,F,D,Max; struct Edge { int to,next,c;}e[MAXE];i
2014-03-20 13:01:14 589
原创 最大流:HDU-4289(CONTROL)
#include #include #include #define INF 0x7fffffff #define MAXV 1000 #define MAXE 20000 using namespace std; struct edge{ int to,c,next;}e[MAXE3]; int size,head[MAXV];
2014-03-20 13:01:11 547
原创 最大流:HDU-3572 ( Tas…
#include #include #include #include #include #define INF 0x7fffffff using namespace std; const int MAXN = 1020; const int MAXM = MAXN*MAXN; struct edge{ i
2014-03-20 13:01:09 535
原创 循环与结构化命令
1.for循环1.1 列表for循环 格式: for variable in{list} do command command ... done 例1: #!/bin/bash for variable in 1 2 34 5 do echo "Hello,welcome$v
2014-03-20 13:01:07 513
原创 退出、测试、判断及操作符
1、退出状态状态值 含义0 表示运行成功,程序执行未遇到任何问题1~125 表示运行失败,脚本命令、系统命令错误或参数传递错误126 找到了该命令但无法执行127 为找到要运行的命令>128 命令被系统强行结束2、测试2.1测试结构 (1)test expression (2)[ expression ]如果测试条件为真,返回0;如果为假,返回1其中expression
2014-03-20 13:01:04 712
原创 最大流:SAP+GAP模版
题目:POJ-1273最大流模板题code1:链式前向星(1)#include #include #include #define MAXN 205 #define MAXM 410 #define INT_MAX 0x7fffffff using namespace std; int n,m; struct node
2014-03-20 13:01:02 1059
转载 最大流算法的选择:Dinic还…
原文地址:最大流算法的选择:Dinic还是SAP?作者:朵朵 这个是网易达人的博客上的一篇最大流算法的文章,看了觉得博主是个大牛,没法收藏,就copy到我自己这里了,肯定对我有用,希望对朋友们也有用最大流是oi中经常用到的工具之一(尤其是近几年),所以任何一个OIer必然都要背诵一个代码短、速度快、便于记忆的最大流代码。曾经某位神牛说”poj3469我试了所有最大流算法,只有
2014-03-20 13:01:00 805
原创 变量和引用
变量无类型性定义普通变量 variable=22定义环境变量 ENVVAR="this is" export ENVVAR重要的环境变量 PWD,OLDPWD; PATH; HOME; SHELL; USER,UID; PPID; PS1,PS2; IFS几个环境变量配置文件 用户根目录下 .bash_profile , .bashrc
2014-03-20 13:00:57 531
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人