- Web容器、Servlet容器、Spring容器、SpringMVC容器之间的关系
weixin_30270889
javaweb.xml
以下内容为个人理解,如有误还请留言指出,不胜感激!Web容器web容器(web服务器)主要有:Apache、IIS、Tomcat、Jetty、JBoss、webLogic等,而Tomcat、Jetty、JBoss、webLogic同时也是servlet容器,或者说他们还包含了servlet容器。没有servlet容器,你也可以用web容器直接访问静态页面,比如安装一个apache等,但是如果要显示
- Netty简单入门
程序员小潘
笔者最近在看Netty相关的东西,想把过程中所学到的和感悟记录下来,于是决定单独开一个专栏,专门记录Netty相关的文章。第一篇就从「简单入门」开始吧!!!Netty简介Netty是由JBOSS提供的一个java开源框架,现为Github上的独立项目。Netty提供异步的、事件驱动的网络应用程序框架和工具,用以快速开发高性能、高可靠性的网络服务器和客户端程序。提取句子主干,首先,Netty是一个网
- JBOSS漏洞
唐小风7
Java反序列化RCE漏洞CVE-2015-7501漏洞由于JBoss中invoker/JMXInvokerServlet路径对外开放,JBoss的jmx组件支持Java反序列化invoker/JMXInvokerServlet修复:使用Winzip打开jar文件,在org/apache/commons/collections/functors/InvokerTransformer.class删除
- JBoss 4.x JBossMQ JMS 反序列化漏洞(CVE-2017-7504)
二潘
RedHatJBossApplicationServer是一款基于JavaEE的开源应用服务器。JBossAS4.x及之前版本中,JbossMQ实现过程的JMSoverHTTPInvocationLayer的HTTPServerILServlet.java文件存在反序列化漏洞,远程攻击者可借助特制的序列化数据利用该漏洞执行任意代码。参考:https://github.com/joaomatosf/
- Undertow使用详解
有梦想的攻城狮
架构设计undertow应用服务器tomcat
简介Undertow是一个开源的、灵活的、高性能的非阻塞性应用服务器,由JBoss提供。它可以用作嵌入式服务器,也可以用作大型项目的全功能应用服务器。Undertow的设计以提供最高的性能和最大的灵活性为主要目标,支持非阻塞性和阻塞性处理方式,可以处理十万级的并发连接。Undertow的历史可以追溯到2013年,当时RedHat发布了JBossAS7,这是一个基于Java7的轻量级应用服务器。Un
- 像SpringMVC一样在Android上做Web开发
Java黎先生
一部分Android开发者看到这个标题时可能有点疑惑,SpringMVC不是用来做JavaWeb开发的吗?难道被移植到Android上来了?答案是否定的,因为SpringMVC是基于Servlet的,在Android上开发一个支持Servlet的容器(Tomcat、JBoss)可不简单,所以我们是在Android上开发了一套全新的WebServer+WebFramework。AndServer2.
- Druid介绍
ihaveadream丶
androidadb
Druid介绍Druid首先是一个数据库连接池,并且是目前最好的数据库连接池,在功能、性能、扩展性方面,都超过其他数据库连接池,包括DBCP、C3P0、BoneCP、Proxool、JBossDataSource。但它不仅仅是一个数据库连接池,它还包含一个ProxyDriver,一系列内置的JDBC组件库,一个SQLParser。Druid支持所有JDBC兼容的数据库,包括Oracle、MySQL
- 互联网架构模板:“开发层”和“服务层”技术
woshishui1243
开发层技术开发框架优选成熟的框架,避免盲目追逐新技术!2.Web服务器挑选一个流行的开源服务器(Java的有Tomcat、JBoss、Resin等,PHP/Python的用Nginx,当然最保险的就是用Apache了,什么语言都支持),业务复杂的情况下,可以在开源服务器的基础上,结合自己的业务特点做二次开发。容器服务层技术服务层的主要目标其实就是为了降低系统间相互关联的复杂度。配置中心集中管理各个
- Jetty 的工作原理以及与 Tomcat 的比较
家常凉菜
散文
Jetty应该是目前最活跃也是很有前景的一个Servlet引擎。本文将介绍Jetty基本架构与基本的工作原理:您将了解到Jetty的基本体系结构;Jetty的启动过程;Jetty如何接受和处理用户的请求。你还将了解到AJP的一些细节:Jetty如何基于AJP工作;以及Jetty如何集成到Jboss;最后我们将比较一下两个Servlet引擎:Tomcat和Jetty的优缺点。Jetty的基本架构Je
- Oralce ORA-00018超出最大会话数处理记录
=PNZ=BeijingL
数据存储sql数据库oracle
项目场景:线上系统JBOSS异常报错,信息如下018-07-1810:55:12,851WARN[org.jboss.resource.connectionmanager.JBossManagedConnectionPool]Throwablewhileattemptingtogetanewconnection:nullorg.jboss.resource.JBossResourceExcepti
- 【Java基础】JPA详解(part1)
sylar哇咔咔
数据库JavaHibernatejavajpa数据库
1.JPA简介:Java持久化规范,是从EJB2.x以前的实体Bean(Entitybean)分离出来的,EJB3以后不再有实体bean,而是将实体bean放到JPA中实现。JPA是sun提出的一个对象持久化规范,各JavaEE应用服务器自主选择具体实现,JPA的设计者是Hibernate框架的作者,因此Hibernate作为Jboss服务器中JPA的默认实现,Oracle的Weblogic使用E
- SpringBoot之Logback日志配置文件——日志高亮(logback.xml)
秦时明月之君临天下
SpringBootJavaWebspringbootlogbackxml
一、日志框架①日志门面日志门面是个接口,是日志的规范,使用门面不能直接实现日志功能,它需要被实现后才能使用。slf4jjboss-loggingJCL(commons-logging)②日志实现logbacklog4jJUL(javautillogging)log4j2二、日志选择:SLF4J+LogbackSpringBoot的底层框架Spring的默认日志框架使用的是JCL,而SpringBo
- springboot+日志系统日志
指尖‖舞者
springboot后端java
LogResponseBodyAdvicepackagecom.wpmt.framework.aspectj;importjavax.servlet.http.HttpServletRequest;importorg.jboss.logging.MDC;importorg.springframework.context.annotation.Profile;importorg.springfram
- 52 类 110 个常用 Java 组件和框架整理
gantao_
以下排序是按照从技术组件到开发框架到代码工具,也有一些实在不好分类的,就放到最后了。WEB容器Tomcathttps://tomcat.apache.org/Jettyhttps://www.jetty.com/JBosshttps://www.jboss.org/Resinhttps://caucho.com/products/resin数据库H2https://h2database.com/S
- java服务器介绍
我是无穷
Web服务器是运行及发布Web应用的容器,只有将开发的Web项目放置到该容器中,才能使网络中的所有用户通过浏览器进行访问。开发JavaWeb应用所采用的服务器主要是与JSP/Servlet兼容的Web服务器,比较常用的有Tomcat、Resin、JBoss、WebSphere和WebLogic等,下面将分别进行介绍。Tomcat服务器目前最为流行的Tomcat服务器是Apache-Jarkarta
- Rule Engine简介
just_arthur
这里主要介绍基于java的开源规则引擎,下面列出从网上收集的一些代表:Drools:Drools规则引擎介绍Drools是Jboss公司旗下一款开源的规则引擎,它完整的实现了Rete算法;提供了强大的EclipsePlugin开发支持;通过使用其中的DSL(DomainSpecificLanguage),可以实现用自然语言方式来描述业务规则,使得业务分析人员也可以看懂业务规则代码。最新版本Droo
- 动力节点老杜servlet课程笔记感悟
知识冷不丁进了脑子
servlet笔记
JavaSE(java语言的基础版,Java提供的最基本的类库)---Java的开发环境搭建---Java的基础语法---Java的面向对象---数组---常用类---异常---集合---多线程---IO流---反射机制---注解AnnotationBS架构通信原理:关于WEB服务器软件:--Tomcat(WEB服务器)--jetty(WEB服务器)--JBOSS(应用服务器)--WebLogic
- 基于netty的Marshalling序列化框架简单实现
胡浩8880
1.导入相关jar包maven项目直接添加依赖即可。org.jboss.marshallingjboss-marshalling-osgi2.0.0.Beta52.创建序列化传输的类//记得要实现Serializable接口publicclassUserInfoimplementsSerializable{privateStringusername;privateStringage;publicS
- keycloak部署
早退的程序员
服务器linux运维
https://downloads.jboss.org/keycloak/11.0.2/keycloak-11.0.2.zip1.上传zip并解压uzipkeycloak-11.0.2.zip2.创建mysql数据库CREATESCHEMA`keycloak`DEFAULTCHARACTERSETutf8;3.安装mysql的jdbc驱动下载mysql的JDBC驱动(mysql-connector
- netty入门介绍及应用实例
懵齐
netty入门介绍netty
Netty介绍及使用1.Netty介绍1.1简介Netty是由JBOSS提供的一个java开源框架,现为Github上的独立项目。Netty是一个异步的、基于事件驱动的网络应用框架,用以快速开发高性能、高可靠的网络IO程序。Netty主要针对在TCP协议下,面向Clients端的高并发应用,或Peer-to-Peer场景下的大量数据持续传输的应用。Netty本质是NIO框架,适用于服务器通讯相关的
- Netty 介绍、使用场景及案例
摘星喵Pro
javanetty线程模型群聊系统webSocket长连接心跳检测
Netty介绍、使用场景及案例1、Netty介绍https://github.com/netty/nettyNetty是一个高性能、异步事件驱动的网络应用程序框架,用于快速开发可扩展的网络服务器和客户端。它是一个开源项目,最初由JBoss公司开发,现在由社区维护。Netty的设计和实现以处理高并发、低延迟、可靠性和灵活性为目标,因此非常适合构建各种网络应用,包括网络服务器、代理、聊天应用、在线游戏
- Java--web.xml加载过程;文件标签详解
MinggeQingchun
JavaEESpring家族JavaWebweb.xml
一、web.xml加载过程我们在启动Javaweb项目时,首先需要启动一个容器(如Tomcat,JBoss)WEB加载web.xml过程如下:1、在启动Web项目时,容器(如Tomcat,JBoss)会读web.xml配置文件中的两个节点和2、接着容器会创建一个ServletContext(上下文),应用范围内即整个WEB项目都能够使用这个上下文3、接着容器以的name作为键,value作为值,将
- Netty开篇——基础介绍与准备(一)
ProMan_XY
Netty后端java
I/O篇Netty的介绍Netty是由JBOSS提供的一个Java开源框架在Github上Netty是一个异步的、基于事件驱动的网络应用框架,用以快速开发高性能、高可靠性的网络IO程序。Netty主要针对在TCP协议下面向客户端的高并发应用,或者Peer-to-Peer/P2P场景下的大量数据持续传输的应用。Netty是一个NIO框架,适用于服务器通讯相关场景共四层TCP/IPjava.ioNio
- 基础技术组件-工作流
码海漫步
基础技术组件java设计语言
文章目录一、前言二、概念说明2.1业务2.2流程2.3业务和流程的关系2.4业务流程2.5工作流2.6业务流程与工作流的关系三、工作流的发展3.1发展背景3.2发展过程四、核心理念4.1流程驱动4.2工作流的核心理念五、工作流系统5.1核心功能5.2涉及的标准5.3因何需要5.4工作流系统分类5.5常用的工作流系统(1)Activiti:(2)Camunda:(3)JBossjBPM:(4)IBM
- Apache/Tomcat/JBOSS/Nginx区别
涛涛zy
Linux运维apachetomcatnginx
一、Apache和Tomcat的区别:Apache是世界使用排名第一的Web服务器软件。它可以运行在几乎所有广泛使用的计算机平台上,由于其跨平台和安全性被广泛使用,是最流行的Web服务器端软件之一。解析一:Apache支持静态页,Tomcat支持动态的,比如Servlet等,一般使用Apache+Tomcat的话,Apache只是作为一个转发,对JSP的处理是由Tomcat来处理的。Apche可以
- Nginx-高性能Web服务器
一米阳光_Angel
#Nginxnginx前端服务器
前言:平时总听hex说Nginx服务器,也经常找他解决项目上的nginx配置,但自己一直不懂,不懂就学。听他说:nginx最重要是locationurl配置(正则)、反向代理与负载均衡,平时项目用这些比较多。其实服务器上部署了什么服务,就称服务器为XX服务器,如Nginx服务器,Apache服务器,Tomcat服务器、JBoss服务器、Weblogic服务器(Apache、Tomcat、JBoss
- 阿里云国际服务器设置安全防护程序
九河云
阿里云数据库服务器云计算
阿里云云服务器(ECS)提供弹性、安全、高性能、高性价比的虚拟云服务器,满足您的所有需求。立即在这里免费注册!常见Web应用程序请勿对Web服务控制台(如WDCP、TOMCAT、Apache、Nginx、Jekins、PHPMyAdmin、WebLogic和Jboss)使用默认密码或空白密码。必须使用复杂密码(至少10个字符,可以包含大小写字母、数字和特殊符号)。必须关闭空闲主机。否则,这些控制台
- SpringBoot 整合 Redis 来实现缓存技术
陪伴她的梦
1.概述随着互联网技术的发展,对技术要求也越来越高,所以在当期情况下项目的开发中对数据访问的效率也有了很高的要求,所以在项目开发中缓存技术使用的也越来越多,因为它可以极大的提高系统的访问速度,关于缓存的框架也种类繁多,比如Redis、Ehchahe、JBossCache、Voldemort、Cacheonix等等,今天主要介绍的是使用现在非常流行的NoSQL数据库(Redis)来实现我们的缓存需求
- Druid 分析jpa批量插入
豆豆·丁
java数据库hibernate
Druid是阿里巴巴开发的号称为监控而生的数据库连接池,在功能、性能、扩展性方面,都超过其他数据库连接池,包括DBCP、C3P0、BoneCP、Proxool、JBossDataSource等,秒杀一切。Druid可以很好的监控DB池连接和SQL的执行情况,天生就是针对监控而生的DB连接池。Druid是一个JDBC组件,它包括三部分:DruidDriver代理Driver,能够提供基于Filter
- spring mvc 数据校验开发步骤
may_123mm
ssmspringmvc数据校验
1.导入数据校验的jar包导入的包有:hibernate-validator-4.3.0.Final.jarjboss-logging-3.1.0.CR2.jarvalidation-api-1.0.0.GA.jar其中的版本可根据自己需求而选择2.修改springmvc配置文件,配置校验器3.修改springmvc配置文件,启用校验器4.添加校验规则;在控制器中启用校验器,对客户端传来的数据进行
- mongodb3.03开启认证
21jhf
mongodb
下载了最新mongodb3.03版本,当使用--auth 参数命令行开启mongodb用户认证时遇到很多问题,现总结如下:
(百度上搜到的基本都是老版本的,看到db.addUser的就是,请忽略)
Windows下我做了一个bat文件,用来启动mongodb,命令行如下:
mongod --dbpath db\data --port 27017 --directoryperdb --logp
- 【Spark103】Task not serializable
bit1129
Serializable
Task not serializable是Spark开发过程最令人头疼的问题之一,这里记录下出现这个问题的两个实例,一个是自己遇到的,另一个是stackoverflow上看到。等有时间了再仔细探究出现Task not serialiazable的各种原因以及出现问题后如何快速定位问题的所在,至少目前阶段碰到此类问题,没有什么章法
1.
package spark.exampl
- 你所熟知的 LRU(最近最少使用)
dalan_123
java
关于LRU这个名词在很多地方或听说,或使用,接下来看下lru缓存回收的实现
1、大体的想法
a、查询出最近最晚使用的项
b、给最近的使用的项做标记
通过使用链表就可以完成这两个操作,关于最近最少使用的项只需要返回链表的尾部;标记最近使用的项,只需要将该项移除并放置到头部,那么难点就出现 你如何能够快速在链表定位对应的该项?
这时候多
- Javascript 跨域
周凡杨
JavaScriptjsonp跨域cross-domain
 
- linux下安装apache服务器
g21121
apache
安装apache
下载windows版本apache,下载地址:http://httpd.apache.org/download.cgi
1.windows下安装apache
Windows下安装apache比较简单,注意选择路径和端口即可,这里就不再赘述了。 2.linux下安装apache:
下载之后上传到linux的相关目录,这里指定为/home/apach
- FineReport的JS编辑框和URL地址栏语法简介
老A不折腾
finereportweb报表报表软件语法总结
JS编辑框:
1.FineReport的js。
作为一款BS产品,browser端的JavaScript是必不可少的。
FineReport中的js是已经调用了finereport.js的。
大家知道,预览报表时,报表servlet会将cpt模板转为html,在这个html的head头部中会引入FineReport的js,这个finereport.js中包含了许多内置的fun
- 根据STATUS信息对MySQL进行优化
墙头上一根草
status
mysql 查看当前正在执行的操作,即正在执行的sql语句的方法为:
show processlist 命令
mysql> show global status;可以列出MySQL服务器运行各种状态值,我个人较喜欢的用法是show status like '查询值%';一、慢查询mysql> show variab
- 我的spring学习笔记7-Spring的Bean配置文件给Bean定义别名
aijuans
Spring 3
本文介绍如何给Spring的Bean配置文件的Bean定义别名?
原始的
<bean id="business" class="onlyfun.caterpillar.device.Business">
<property name="writer">
<ref b
- 高性能mysql 之 性能剖析
annan211
性能mysqlmysql 性能剖析剖析
1 定义性能优化
mysql服务器性能,此处定义为 响应时间。
在解释性能优化之前,先来消除一个误解,很多人认为,性能优化就是降低cpu的利用率或者减少对资源的使用。
这是一个陷阱。
资源时用来消耗并用来工作的,所以有时候消耗更多的资源能够加快查询速度,保持cpu忙绿,这是必要的。很多时候发现
编译进了新版本的InnoDB之后,cpu利用率上升的很厉害,这并不
- 主外键和索引唯一性约束
百合不是茶
索引唯一性约束主外键约束联机删除
目标;第一步;创建两张表 用户表和文章表
第二步;发表文章
1,建表;
---用户表 BlogUsers
--userID唯一的
--userName
--pwd
--sex
create
- 线程的调度
bijian1013
java多线程thread线程的调度java多线程
1. Java提供一个线程调度程序来监控程序中启动后进入可运行状态的所有线程。线程调度程序按照线程的优先级决定应调度哪些线程来执行。
2. 多数线程的调度是抢占式的(即我想中断程序运行就中断,不需要和将被中断的程序协商)
a) 
- 查看日志常用命令
bijian1013
linux命令unix
一.日志查找方法,可以用通配符查某台主机上的所有服务器grep "关键字" /wls/applogs/custom-*/error.log
二.查看日志常用命令1.grep '关键字' error.log:在error.log中搜索'关键字'2.grep -C10 '关键字' error.log:显示关键字前后10行记录3.grep '关键字' error.l
- 【持久化框架MyBatis3一】MyBatis版HelloWorld
bit1129
helloworld
MyBatis这个系列的文章,主要参考《Java Persistence with MyBatis 3》。
样例数据
本文以MySQL数据库为例,建立一个STUDENTS表,插入两条数据,然后进行单表的增删改查
CREATE TABLE STUDENTS
(
stud_id int(11) NOT NULL AUTO_INCREMENT,
- 【Hadoop十五】Hadoop Counter
bit1129
hadoop
1. 只有Map任务的Map Reduce Job
File System Counters
FILE: Number of bytes read=3629530
FILE: Number of bytes written=98312
FILE: Number of read operations=0
FILE: Number of lar
- 解决Tomcat数据连接池无法释放
ronin47
tomcat 连接池 优化
近段时间,公司的检测中心报表系统(SMC)的开发人员时不时找到我,说用户老是出现无法登录的情况。前些日子因为手头上 有Jboss集群的测试工作,发现用户不能登录时,都是在Tomcat中将这个项目Reload一下就好了,不过只是治标而已,因为大概几个小时之后又会 再次出现无法登录的情况。
今天上午,开发人员小毛又找到我,要我协助将这个问题根治一下,拖太久用户难保不投诉。
简单分析了一
- java-75-二叉树两结点的最低共同父结点
bylijinnan
java
import java.util.LinkedList;
import java.util.List;
import ljn.help.*;
public class BTreeLowestParentOfTwoNodes {
public static void main(String[] args) {
/*
* node data is stored in
- 行业垂直搜索引擎网页抓取项目
carlwu
LuceneNutchHeritrixSolr
公司有一个搜索引擎项目,希望各路高人有空来帮忙指导,谢谢!
这是详细需求:
(1) 通过提供的网站地址(大概100-200个网站),网页抓取程序能不断抓取网页和其它类型的文件(如Excel、PDF、Word、ppt及zip类型),并且程序能够根据事先提供的规则,过滤掉不相干的下载内容。
(2) 程序能够搜索这些抓取的内容,并能对这些抓取文件按照油田名进行分类,然后放到服务器不同的目录中。
- [通讯与服务]在总带宽资源没有大幅增加之前,不适宜大幅度降低资费
comsci
资源
降低通讯服务资费,就意味着有更多的用户进入,就意味着通讯服务提供商要接待和服务更多的用户,在总体运维成本没有由于技术升级而大幅下降的情况下,这种降低资费的行为将导致每个用户的平均带宽不断下降,而享受到的服务质量也在下降,这对用户和服务商都是不利的。。。。。。。。
&nbs
- Java时区转换及时间格式
Cwind
java
本文介绍Java API 中 Date, Calendar, TimeZone和DateFormat的使用,以及不同时区时间相互转化的方法和原理。
问题描述:
向处于不同时区的服务器发请求时需要考虑时区转换的问题。譬如,服务器位于东八区(北京时间,GMT+8:00),而身处东四区的用户想要查询当天的销售记录。则需把东四区的“今天”这个时间范围转换为服务器所在时区的时间范围。
- readonly,只读,不可用
dashuaifu
jsjspdisablereadOnlyreadOnly
readOnly 和 readonly 不同,在做js开发时一定要注意函数大小写和jsp黄线的警告!!!我就经历过这么一件事:
使用readOnly在某些浏览器或同一浏览器不同版本有的可以实现“只读”功能,有的就不行,而且函数readOnly有黄线警告!!!就这样被折磨了不短时间!!!(期间使用过disable函数,但是发现disable函数之后后台接收不到前台的的数据!!!)
- LABjs、RequireJS、SeaJS 介绍
dcj3sjt126com
jsWeb
LABjs 的核心是 LAB(Loading and Blocking):Loading 指异步并行加载,Blocking 是指同步等待执行。LABjs 通过优雅的语法(script 和 wait)实现了这两大特性,核心价值是性能优化。LABjs 是一个文件加载器。RequireJS 和 SeaJS 则是模块加载器,倡导的是一种模块化开发理念,核心价值是让 JavaScript 的模块化开发变得更
- [应用结构]入口脚本
dcj3sjt126com
PHPyii2
入口脚本
入口脚本是应用启动流程中的第一环,一个应用(不管是网页应用还是控制台应用)只有一个入口脚本。终端用户的请求通过入口脚本实例化应用并将将请求转发到应用。
Web 应用的入口脚本必须放在终端用户能够访问的目录下,通常命名为 index.php,也可以使用 Web 服务器能定位到的其他名称。
控制台应用的入口脚本一般在应用根目录下命名为 yii(后缀为.php),该文
- haoop shell命令
eksliang
hadoophadoop shell
cat
chgrp
chmod
chown
copyFromLocal
copyToLocal
cp
du
dus
expunge
get
getmerge
ls
lsr
mkdir
movefromLocal
mv
put
rm
rmr
setrep
stat
tail
test
text
- MultiStateView不同的状态下显示不同的界面
gundumw100
android
只要将指定的view放在该控件里面,可以该view在不同的状态下显示不同的界面,这对ListView很有用,比如加载界面,空白界面,错误界面。而且这些见面由你指定布局,非常灵活。
PS:ListView虽然可以设置一个EmptyView,但使用起来不方便,不灵活,有点累赘。
<com.kennyc.view.MultiStateView xmlns:android=&qu
- jQuery实现页面内锚点平滑跳转
ini
JavaScripthtmljqueryhtml5css
平时我们做导航滚动到内容都是通过锚点来做,刷的一下就直接跳到内容了,没有一丝的滚动效果,而且 url 链接最后会有“小尾巴”,就像#keleyi,今天我就介绍一款 jquery 做的滚动的特效,既可以设置滚动速度,又可以在 url 链接上没有“小尾巴”。
效果体验:http://keleyi.com/keleyi/phtml/jqtexiao/37.htmHTML文件代码:
&
- kafka offset迁移
kane_xie
kafka
在早前的kafka版本中(0.8.0),offset是被存储在zookeeper中的。
到当前版本(0.8.2)为止,kafka同时支持offset存储在zookeeper和offset manager(broker)中。
从官方的说明来看,未来offset的zookeeper存储将会被弃用。因此现有的基于kafka的项目如果今后计划保持更新的话,可以考虑在合适
- android > 搭建 cordova 环境
mft8899
android
1 , 安装 node.js
http://nodejs.org
node -v 查看版本
2, 安装 npm
可以先从 https://github.com/isaacs/npm/tags 下载 源码 解压到
- java封装的比较器,比较是否全相同,获取不同字段名字
qifeifei
非常实用的java比较器,贴上代码:
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
i
- 记录一些函数用法
.Aky.
位运算PHP数据库函数IP
高手们照旧忽略。
想弄个全天朝IP段数据库,找了个今天最新更新的国内所有运营商IP段,copy到文件,用文件函数,字符串函数把玩下。分割出startIp和endIp这样格式写入.txt文件,直接用phpmyadmin导入.csv文件的形式导入。(生命在于折腾,也许你们觉得我傻X,直接下载人家弄好的导入不就可以,做自己的菜鸟,让别人去说吧)
当然用到了ip2long()函数把字符串转为整型数
- sublime text 3 rust
wudixiaotie
Sublime Text
1.sublime text 3 => install package => Rust
2.cd ~/.config/sublime-text-3/Packages
3.mkdir rust
4.git clone https://github.com/sp0/rust-style
5.cd rust-style
6.cargo build --release
7.ctrl