- 编程常用命令总结
Yellow0523
LinuxBigData大数据
编程命令大全1.软件环境变量的配置JavaScalaSparkHadoopHive2.大数据软件常用命令Spark基本命令Spark-SQL命令Hive命令HDFS命令YARN命令Zookeeper命令kafka命令Hibench命令MySQL命令3.Linux常用命令Git命令conda命令pip命令查看Linux系统的详细信息查看Linux系统架构(X86还是ARM,两种方法都可)端口号命令L
- cmake介绍(六)--CMake 的构建流程
小蘑菇二号
cmake
目录1.编写CMakeLists.txt文件示例CMakeLists.txt文件2.运行CMake配置示例命令3.构建项目示例命令4.安装(可选)示例命令5.测试(如果启用)示例命令6.配置选项示例命令总结CMake的构建流程涉及几个关键步骤,从编写CMakeLists.txt文件开始,一直到生成最终的可执行文件或库。以下是详细的构建流程说明:1.编写CMakeLists.txt文件CMake的核
- CMD常用命令总结
两棵桔子树
cmd
一、网络相关1、telnet,用来判断远程电脑的端口是否开放。语法:telnet[IP地址][端口号]示例:telnet192.168.0.20014332、ping,判断远程电脑是否可用。(需要远程计算机防火墙允许ICMP协议通过)语法:ping[IP地址]-t示例:ping192.168.0.200-t3、netshare,列出本地哪些文件夹进行了共享语法:netshare示例:netshar
- cmd常用命令总结
-永不妥协-
计算机cmd查看ip
在工作中经常会用到cmd这个东东,对于学数学的人来说。这些计算机命令实在有些头疼。此篇博客用来记录自己在工作和学习中经常用到的cmd命令。1)cmd的打开win+R,在弹出的窗口输入“cmd”回车即可2)ipconfig查看本机的IP配置3)cd+路径切换cmd目录4)dir查看该路径下的文件
- cmd 常用命令总结
云夏之末
winwindows网络安全
尽管图形用户界面已成为常态,但命令行工具仍然在许多场景下不可或缺。下面是Windows命令提示符(CMD)中的一些常用命令及其用法。1.导航命令cd:改变当前工作目录。cd/?:获取cd命令的帮助信息。cd\:回到当前驱动器的根目录。cd..:返回上一级目录。cd/dE:\software:切换到另一个驱动器并进入指定的目录。D::切换到D驱动器。dir:显示当前目录中的文件和子目录列表。dir/
- linux查看进程 显示,Linux中查看进程状态信息
帅元昊
linux查看进程显示
一、常用命令总结ps-l列出与本次登录有关的进程信息;ps-aux查询内存中进程信息;ps-aux|grep***查询***进程的详细信息;top查看内存中进程的动态信息;kill-9pid杀死进程。二、进程简述及查看方式进程是运行的程序在系统中的存在形式,通过查看进程的状态信息,我们可以了解进程占用的系统资源情况,对系统的运行状态进行分析、调整,从而让系统保持在一个平稳的状态下运行。Linux中
- 600 条最强 Linux 命令总结
素年槿夏
linux运维服务器
600条最强Linux命令总结1.基本命令2.关机3.文件和目录4.文件搜索5.挂载一个文件系统6.磁盘空间7.用户和群组8.文件的权限,使用“+”设置权限,使用“-”用于取消9.文件的特殊属性,使用“+”设置权限,使用“-”用于取消10.打包和压缩文件11.RPM包12.YUM软件包升级器13.deb包14.查看文件内容15.文本处理16.字符设置和文件格式转换17.文件系统分析18.初始化一个
- Git常用命令总结
hsy12342611
git
目录1.创建新建分支2.强制拉去代码3.合并相邻提交,保证只有一个commit信息4.本地回退5.查看git修改列表6.提交代码7.切换新分支并从服务端拉取最新8.gitcherry-pick合并代码使用9.删除本地和远程分支10.查看文件的修改11.查看某个作者提交的详情12.查看单个文件修改信息13.拉取远程分支14.git客户端账户信息处理15.git提交增加多行注释16.提交代码标准动作1
- Vim 命令总结
松小白song
Linux相关linux
目录前言1.Vim的三种模式2.基本操作命令3.文件管理4.搜索与替换5.文本操作6.宏与自动化7.配置与自定义8.高级功能9.插件与扩展前言Vim是一个强大的文本编辑器,广泛用于代码编辑和脚本编写。Vim的命令非常丰富,涵盖了文本操作、文件管理、搜索与替换、宏录制、脚本编写等各个方面。以下是Vim命令的详细介绍,涵盖基本操作、文件管理、文本编辑、搜索与替换等。1.Vim的三种模式Vim有三种主要
- Git 常见命令总结
小孔_H
gitelasticsearch大数据前端
Git常用命令总结gitinit:初始化git仓库gitclone:克隆git远程仓库gitconfig:用于修改git配置(文件)gitconfig--globaluser.name"coderkxh":全局修改当前git提交时的用户gitconfig--globaluser.email"
[email protected]":全局修改当前git提交时的用户邮箱gitconfig--global
- git submodule
蓝黑2020
git
文章目录环境准备用法添加子模块添加b添加c提交总结其它用户获取子模块其它总结更新子模块内容方式1:独立更新其它方式2:在主模块嵌套下更新总结总结参考写的有点乱,凑合理解一下吧。另外常用命令总结一下:gitsubmoduleaddgitsubmoduleinitgitsubmoduleupdategitsubmoduleforeachgitpullgitclonexxx--recurse-submo
- centos7常用命令总结(不断更新中)
乌拉队长
服务器
netstat–nat查看正在监听的端口firewall-cmd--permanent--query-port=22/tcp//查看防火墙22端口启用状态yes为打开,no为关闭firewall-cmd--permant--add-port=22/tcp//为防火墙打开22端口firewall-cmd--permant--list-ports//查看防火墙所有已开启端口systemctlstopf
- Git 常用命令总结
程序猿ZhangSir
git
1.gitadd.——将工作区文件全部加入到暂存区;2.gitadd"具体文件名"——将一个指定文件加入到暂存区;3.gitreset--hard"版本号"——将当前git回退到指定的某个版本;4.gitreflog——查看历史所有命令记录;5.gitlog——查看提交记录;6.gitcommit-m"说明内容"——将暂存区的文件提交至仓库;7.gitstatus——查看当前git仓库的文件状态;
- Linux系统清空日志方法
开过光的猫
linux服务器运维
1.命令总结注:命令只是模板,根据需要以及不同系统自行更改1.查看磁盘使用情况df-h此命令将显示所有已安装文件系统的磁盘使用情况。您可以根据需要确定哪些文件系统占用了最多的磁盘空间。2.查找大文件和目录du -sh /*此命令将列出根目录下的所有文件和目录的大小,并以易于阅读的格式显示它们所占用的磁盘空间。您可以进一步缩小搜索范围,例如,在/home目录中执行此命令,以查找该目录中的大文件和目录
- Linux相关命令总结
星辰之洛
Linuxlinux
Linux主要指令解析,ls指令,pwd指令,cd指令,touch指令,mkdir指令,rmdir&&rm指令,man指令,cp,mv,cat,more,less,head,tail,时间相关指令,cal,find,grep,zip/unzip,tar,bc,uname–r指令,重要的几个热键[Tab],[ctrl]-c,[ctrl]-d,关机指令shutdown1.ls语法:ls[选项][目录或
- Linux(命令总结)
everystep_
简单命令普通用户和root用户的切换:$su切换到root用户$suwije(用户名)切换到普通用户$who获得当前用户信息$echo将参数输出到屏幕上,如果不加双引号会输出成字符串以空格隔开,如果加则原样输出。$date显示时间$cal显示月份$clear清屏$passwd修改密码文本概念和文件类型文件系统:由若干目录和其子目录组成的层次结构,根目录是最上层的。文件结构:分为成分和命名两种。文件
- MySql常用命令总结
wanggs
MySql常用命令总结1:使用SHOW语句找出在服务器上当前存在什么数据库:mysql>SHOWDATABASES;2:2、创建一个数据库MYSQLDATAmysql>CREATEDATABASEMYSQLDATA;3:选择你所创建的数据库mysql>USEMYSQLDATA;(按回车键出现Databasechanged时说明操作成功!)4:查看现在的数据库中存在什么表mysql>SHOWTABL
- 入门postgre sql(PG的基本使用)
chad__chang
postgresqlsql数据库
目录PostgreSQL的基本使用登录数据库操作数据库表操作**如何备份PostgreSQL数据库**用户操作PostgreSQL角色管理控制台常用命令总结PostgreSQL的基本使用认识PGPG的下载和安装登录#psql-h服务器-U用户名-d数据库-p端口地址//-U是大写psql-Udbuser-dexampledb-h127.0.0.1-p5432$psql(连接数据库,默认用户和数据库
- adb 常用命令总结
忘冻鱼
不积跬步无以至千里adbshellps查看进程信息adbshellps|grep包名过滤某个进程的信息,可查看进程idadbshellkill进程号id杀死某个进程号Id对应的进程
- 京东面试总结
小小少年Boy
1数据仓库的概念?和数据库的区别?2hdfs上传文件有哪几种方式?3Hive的优化问题?4Hive的数据倾斜问题?5数据分析?概念和总结6Django源码?7python的浅拷贝和深拷贝?总结:HDFS基本命令总结Hive基本命令总结HBase基本命令总结Hive优化问题?HBase优化问题?出现的问题:大数据开发没有理论支撑,应该可以涉及多一点的应用方面;其次引导面试官提问MapReduce;在
- Linux中的numactl命令指南
大隐隐于野
#线程模型numanumactl
假设我们想控制线程如何被分配到处理器核心,或者选择我们想分配数据的位置,那么numactl命令就适合此类任务。在这篇文章中,我们讨论了如何使用numactl命令执行此类操作。目录:介绍语法命令总结参考文献简介现代处理器采用*非统一内存访问(NUMA)*的方式进行硬件设计。有时我们想控制线程如何被分配到处理器内核上,以避免使用超线程,而是使用硬件线程,或者确保一个任务不会频繁迁移。在Linux中,n
- Linux常见命令总结
CodeKnightShuai
linux
1.目录操作1.切换目录(cd)①切换到指定目录下cd目录名②切换到根目录下cd~2.查看目录(ls)①查看当前目录下的所有目录和文件ls②查看当前目录下的所有目录和文件(包括隐藏的文件)ls-a③列表查看当前目录下的所有目录和文件,回显示更多信息ls-l④查看知道目录下的所有目录和文件ls-bin3.创建目录(mkdir)①在当前目录下创建一个名为tools的目录mkdirtools②在指定目录
- ArcGISPro中Python相关命令总结
Z_W_H_
ArcPyArcPy
主要总结conda方面的相关命令列出当前活动环境中的包condalist列出所有conda环境condaenvlist克隆环境克隆以默认的arcgispro-py3环境为模版的my_env新环境。condacreate--clonearcgispro-py3--namemy_env--pinned激活环境activatemy_envproenv两者不同之处在于activate是激活指定环境,pro
- Docker一站式基础入门指南 —— 从安装到使用(使用部分以安装WEB应用为例)
徐小潜
网络安全docker容器经验分享运维学习方法linux
目录Docker的概念及使用场景Docker的安装Docker的常用命令Docker使用举例觉得这篇文章不错的话,欢迎收藏、点赞、评论,还可以关注我哦~推荐博客:Linux基础入门:Linux一定要知道的shell命令总结——Linux常用命令精讲Linux学习路线:Linux学习路线(学+测)-阿里云开发者社区docker官方文档:DockerDocsDocker的概念及使用场景Docker是一
- Linux中set命令使用总结
Dream_yz
Linux学习set命令使用详解set命令参数说明set使用举例
Linux中set命令总结set命令功能:用来设置所使用shell的执行方式,可依照不同的需求来进行设置。set语法set[+-abCdefhHklmnpPtuvx]set参数a:表示已修改的变量,以供输出至环境变量b:使被中止的后台程序立刻回报执行状态C:转向所产生的文件无法覆盖已存在的文件d:Shell预设会用杂凑表记忆使用过的命令,以加速指令的执行。使用-d参数可取消。e:若指令传回值不等于
- Docker常用命令总结
a rookie.
Dockerdocker容器
基础命令1.启动dockersystemctlstartdocker2.关闭dockersystemctlstopdocker3.设置docker为自启动systemctlenable--nowdocker4.重启dockersystemctlrestartdocker3.查看docker版本信息dockerversion4.查看docker详细信息dockerinfoClient:DebugMo
- MATLAB常用命令总结
WW、forever
MATLAB基础处理matlab
1基础函数1.1统计相关基础函数1、求和:sum函数b=sum(a,dim);a表示矩阵;dim等于1或者2,1表示每一列进行求和,2表示每一行进行求和;表示每列求和还是每行求和;b表示求得的行向量。2、求均值:mean函数3、求方差:var函数4、求均方差:std函数5、求协方差:cov函数1.2其它基础技巧确保输入向量为行向量:X=X(:)';确保输入向量为列向量:X=X(:);矩阵循环移动:
- 【python基础学习3】conda、pip常用命令集合
一只程序猿林
pythonconda学习
0引言使用Anaconda配置环境时,一般会用到conda和pip命令交替使用,但是偶尔会出现遗忘命令语法的情况,故将常用的conda、pip命令总结在此,以便查阅。OS:windows101conda常用命令1.1创建环境condacreate-n环境名python=3.71.2激活环境condaactivate环境名1.3查看当前计算机具有的conda虚拟环境condaenvlist1.4查看
- MongoDB快速入门
景庆197
乱七八糟mongodb
目录1.简介2.特点:3.官网下载4.启动4.1命令参数方式启动服务4.2配置文件方式启动服务5.shell命令连接6.Linux命令安装7.Docker安装8.命令的基本使用8.1数据库的操作8.2数据库的删除8.3集合操作9.文档的插入和查询10.文档更新11.文档删除12.文档分页查询13.更复杂的查询14.常用命令总结15.索引Index16.索引的操作16.索引的使用1.简介是一个开源、
- Git介绍与常用命令总结
Ethan Hunt丶
笔记gitgithubbash
Git介绍与其常用命令总结1、Git介绍2、Git的使用3、Git常用命令3.1初始化仓库3.2克隆仓库3.3配置用户信息3.4提交代码(Commit)3.5推送代码(Push)3.6拉取代码(Pull)3.7分支(Branch)3.8远程仓库(Remote)3.9撤销回退本地改动3.10更新本地仓库与远程仓库1、Git介绍Git是一种分布式版本控制系统,用于跟踪文件的变化并协作开发项目。它由Li
- 深入浅出Java Annotation(元注解和自定义注解)
Josh_Persistence
Java Annotation元注解自定义注解
一、基本概述
Annontation是Java5开始引入的新特征。中文名称一般叫注解。它提供了一种安全的类似注释的机制,用来将任何的信息或元数据(metadata)与程序元素(类、方法、成员变量等)进行关联。
更通俗的意思是为程序的元素(类、方法、成员变量)加上更直观更明了的说明,这些说明信息是与程序的业务逻辑无关,并且是供指定的工具或
- mysql优化特定类型的查询
annan211
java工作mysql
本节所介绍的查询优化的技巧都是和特定版本相关的,所以对于未来mysql的版本未必适用。
1 优化count查询
对于count这个函数的网上的大部分资料都是错误的或者是理解的都是一知半解的。在做优化之前我们先来看看
真正的count()函数的作用到底是什么。
count()是一个特殊的函数,有两种非常不同的作用,他可以统计某个列值的数量,也可以统计行数。
在统
- MAC下安装多版本JDK和切换几种方式
棋子chessman
jdk
环境:
MAC AIR,OS X 10.10,64位
历史:
过去 Mac 上的 Java 都是由 Apple 自己提供,只支持到 Java 6,并且OS X 10.7 开始系统并不自带(而是可选安装)(原自带的是1.6)。
后来 Apple 加入 OpenJDK 继续支持 Java 6,而 Java 7 将由 Oracle 负责提供。
在终端中输入jav
- javaScript (1)
Array_06
JavaScriptjava浏览器
JavaScript
1、运算符
运算符就是完成操作的一系列符号,它有七类: 赋值运算符(=,+=,-=,*=,/=,%=,<<=,>>=,|=,&=)、算术运算符(+,-,*,/,++,--,%)、比较运算符(>,<,<=,>=,==,===,!=,!==)、逻辑运算符(||,&&,!)、条件运算(?:)、位
- 国内顶级代码分享网站
袁潇含
javajdkoracle.netPHP
现在国内很多开源网站感觉都是为了利益而做的
当然利益是肯定的,否则谁也不会免费的去做网站
&
- Elasticsearch、MongoDB和Hadoop比较
随意而生
mongodbhadoop搜索引擎
IT界在过去几年中出现了一个有趣的现象。很多新的技术出现并立即拥抱了“大数据”。稍微老一点的技术也会将大数据添进自己的特性,避免落大部队太远,我们看到了不同技术之间的边际的模糊化。假如你有诸如Elasticsearch或者Solr这样的搜索引擎,它们存储着JSON文档,MongoDB存着JSON文档,或者一堆JSON文档存放在一个Hadoop集群的HDFS中。你可以使用这三种配
- mac os 系统科研软件总结
张亚雄
mac os
1.1 Microsoft Office for Mac 2011
大客户版,自行搜索。
1.2 Latex (MacTex):
系统环境:https://tug.org/mactex/
&nb
- Maven实战(四)生命周期
AdyZhang
maven
1. 三套生命周期 Maven拥有三套相互独立的生命周期,它们分别为clean,default和site。 每个生命周期包含一些阶段,这些阶段是有顺序的,并且后面的阶段依赖于前面的阶段,用户和Maven最直接的交互方式就是调用这些生命周期阶段。 以clean生命周期为例,它包含的阶段有pre-clean, clean 和 post
- Linux下Jenkins迁移
aijuans
Jenkins
1. 将Jenkins程序目录copy过去 源程序在/export/data/tomcatRoot/ofctest-jenkins.jd.com下面 tar -cvzf jenkins.tar.gz ofctest-jenkins.jd.com &
- request.getInputStream()只能获取一次的问题
ayaoxinchao
requestInputstream
问题:在使用HTTP协议实现应用间接口通信时,服务端读取客户端请求过来的数据,会用到request.getInputStream(),第一次读取的时候可以读取到数据,但是接下来的读取操作都读取不到数据
原因: 1. 一个InputStream对象在被读取完成后,将无法被再次读取,始终返回-1; 2. InputStream并没有实现reset方法(可以重
- 数据库SQL优化大总结之 百万级数据库优化方案
BigBird2012
SQL优化
网上关于SQL优化的教程很多,但是比较杂乱。近日有空整理了一下,写出来跟大家分享一下,其中有错误和不足的地方,还请大家纠正补充。
这篇文章我花费了大量的时间查找资料、修改、排版,希望大家阅读之后,感觉好的话推荐给更多的人,让更多的人看到、纠正以及补充。
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。
2.应尽量避免在 where
- jsonObject的使用
bijian1013
javajson
在项目中难免会用java处理json格式的数据,因此封装了一个JSONUtil工具类。
JSONUtil.java
package com.bijian.json.study;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
- [Zookeeper学习笔记之六]Zookeeper源代码分析之Zookeeper.WatchRegistration
bit1129
zookeeper
Zookeeper类是Zookeeper提供给用户访问Zookeeper service的主要API,它包含了如下几个内部类
首先分析它的内部类,从WatchRegistration开始,为指定的znode path注册一个Watcher,
/**
* Register a watcher for a particular p
- 【Scala十三】Scala核心七:部分应用函数
bit1129
scala
何为部分应用函数?
Partially applied function: A function that’s used in an expression and that misses some of its arguments.For instance, if function f has type Int => Int => Int, then f and f(1) are p
- Tomcat Error listenerStart 终极大法
ronin47
tomcat
Tomcat报的错太含糊了,什么错都没报出来,只提示了Error listenerStart。为了调试,我们要获得更详细的日志。可以在WEB-INF/classes目录下新建一个文件叫logging.properties,内容如下
Java代码
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHa
- 不用加减符号实现加减法
BrokenDreams
实现
今天有群友发了一个问题,要求不用加减符号(包括负号)来实现加减法。
分析一下,先看最简单的情况,假设1+1,按二进制算的话结果是10,可以看到从右往左的第一位变为0,第二位由于进位变为1。
 
- 读《研磨设计模式》-代码笔记-状态模式-State
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类
状态模式主要解决的是当控制一个对象状态的条件表达式过于复杂时的情况
把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化
如果在
- CUDA程序block和thread超出硬件允许值时的异常
cherishLC
CUDA
调用CUDA的核函数时指定block 和 thread大小,该大小可以是dim3类型的(三维数组),只用一维时可以是usigned int型的。
以下程序验证了当block或thread大小超出硬件允许值时会产生异常!!!GPU根本不会执行运算!!!
所以验证结果的正确性很重要!!!
在VS中创建CUDA项目会有一个模板,里面有更详细的状态验证。
以下程序在K5000GPU上跑的。
- 诡异的超长时间GC问题定位
chenchao051
jvmcmsGChbaseswap
HBase的GC策略采用PawNew+CMS, 这是大众化的配置,ParNew经常会出现停顿时间特别长的情况,有时候甚至长到令人发指的地步,例如请看如下日志:
2012-10-17T05:54:54.293+0800: 739594.224: [GC 739606.508: [ParNew: 996800K->110720K(996800K), 178.8826900 secs] 3700
- maven环境快速搭建
daizj
安装mavne环境配置
一 下载maven
安装maven之前,要先安装jdk及配置JAVA_HOME环境变量。这个安装和配置java环境不用多说。
maven下载地址:http://maven.apache.org/download.html,目前最新的是这个apache-maven-3.2.5-bin.zip,然后解压在任意位置,最好地址中不要带中文字符,这个做java 的都知道,地址中出现中文会出现很多
- PHP网站安全,避免PHP网站受到攻击的方法
dcj3sjt126com
PHP
对于PHP网站安全主要存在这样几种攻击方式:1、命令注入(Command Injection)2、eval注入(Eval Injection)3、客户端脚本攻击(Script Insertion)4、跨网站脚本攻击(Cross Site Scripting, XSS)5、SQL注入攻击(SQL injection)6、跨网站请求伪造攻击(Cross Site Request Forgerie
- yii中给CGridView设置默认的排序根据时间倒序的方法
dcj3sjt126com
GridView
public function searchWithRelated() {
$criteria = new CDbCriteria;
$criteria->together = true; //without th
- Java集合对象和数组对象的转换
dyy_gusi
java集合
在开发中,我们经常需要将集合对象(List,Set)转换为数组对象,或者将数组对象转换为集合对象。Java提供了相互转换的工具,但是我们使用的时候需要注意,不能乱用滥用。
1、数组对象转换为集合对象
最暴力的方式是new一个集合对象,然后遍历数组,依次将数组中的元素放入到新的集合中,但是这样做显然过
- nginx同一主机部署多个应用
geeksun
nginx
近日有一需求,需要在一台主机上用nginx部署2个php应用,分别是wordpress和wiki,探索了半天,终于部署好了,下面把过程记录下来。
1. 在nginx下创建vhosts目录,用以放置vhost文件。
mkdir vhosts
2. 修改nginx.conf的配置, 在http节点增加下面内容设置,用来包含vhosts里的配置文件
#
- ubuntu添加admin权限的用户账号
hongtoushizi
ubuntuuseradd
ubuntu创建账号的方式通常用到两种:useradd 和adduser . 本人尝试了useradd方法,步骤如下:
1:useradd
使用useradd时,如果后面不加任何参数的话,如:sudo useradd sysadm 创建出来的用户将是默认的三无用户:无home directory ,无密码,无系统shell。
顾应该如下操作:
- 第五章 常用Lua开发库2-JSON库、编码转换、字符串处理
jinnianshilongnian
nginxlua
JSON库
在进行数据传输时JSON格式目前应用广泛,因此从Lua对象与JSON字符串之间相互转换是一个非常常见的功能;目前Lua也有几个JSON库,本人用过cjson、dkjson。其中cjson的语法严格(比如unicode \u0020\u7eaf),要求符合规范否则会解析失败(如\u002),而dkjson相对宽松,当然也可以通过修改cjson的源码来完成
- Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
yaerfeng1989
timerquartz定时器
原创整理不易,转载请注明出处:Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
代码下载地址:http://www.zuidaima.com/share/1772648445103104.htm
有两种流行Spring定时器配置:Java的Timer类和OpenSymphony的Quartz。
1.Java Timer定时
首先继承jav
- Linux下df与du两个命令的差别?
pda158
linux
一、df显示文件系统的使用情况,与du比較,就是更全盘化。 最经常使用的就是 df -T,显示文件系统的使用情况并显示文件系统的类型。 举比例如以下: [root@localhost ~]# df -T Filesystem Type &n
- [转]SQLite的工具类 ---- 通过反射把Cursor封装到VO对象
ctfzh
VOandroidsqlite反射Cursor
在写DAO层时,觉得从Cursor里一个一个的取出字段值再装到VO(值对象)里太麻烦了,就写了一个工具类,用到了反射,可以把查询记录的值装到对应的VO里,也可以生成该VO的List。
使用时需要注意:
考虑到Android的性能问题,VO没有使用Setter和Getter,而是直接用public的属性。
表中的字段名需要和VO的属性名一样,要是不一样就得在查询的SQL中
- 该学习笔记用到的Employee表
vipbooks
oraclesql工作
这是我在学习Oracle是用到的Employee表,在该笔记中用到的就是这张表,大家可以用它来学习和练习。
drop table Employee;
-- 员工信息表
create table Employee(
-- 员工编号
EmpNo number(3) primary key,
-- 姓