- 每日一画vol.015|马克笔画过程「阴阳师★一目连」
曾同学的读写画
先放完成图图片发自App朋友心心念念却没有抽到的SSR辅助卡…(具体是什么我也不懂)所以想让我帮他画一个,于是就开始画这个。阴阳师的原画都还长得挺好看的,复杂程度中等不算是特别难,但是人物配色什么的都非常的好看,推荐大家可以用来练习。接下来分享一下绘画过程。图片发自App首先还是草稿。大体确定人物的形态和背后那条龙的位置。这种复杂的临摹图,我没有把草稿画得太过详细。因为后期细化的线稿是用原图做参照
- MySQL锁
沉着冷静2024
MySQLmysql数据库
MySQL锁文章目录MySQL锁MySQL中锁的分类创建索引时会锁表吗线上修改表结构会加什么锁Innodb存储引擎的行级锁有哪些Update语句中,不带where条件,加什么锁?MySQL实现乐观锁MySQL死锁MySQL死锁是怎么发生的?检查死锁如何避免死锁MySQL中锁的分类全局锁:主要用于全库逻辑备份表级锁:表锁、元数据锁、意向锁表锁:通过locktables语句对表进行加锁,它不仅限制其他
- 452期:2022年吉林养老金方案公布,三降一升一持平,基础养老金高优势大
社保小龙虾
社保知识,小龙虾每日分享第452期,欢迎关注!续陕西首先默默调整2022年养老金后,吉林也开始进行了养老金的调整(河南的公告不算,没有任何具体调整比例!)下面随小龙虾一起看看吉林的调整方案,具体参照吉人社联【2022】95号文件!一、具体方案对比,三降一升1、定额调整2022年吉林的定额调整金额是每人每月增加30元,相对于去年的36元,下降了6元,下降幅度16.67%2、挂钩调整:工龄挂钩调整工龄
- 大数据真实面试题---SQL
The博宇
大数据面试题——SQL大数据mysqlsql数据库bigdata
视频号数据分析组外包招聘笔试题时间限时45分钟完成。题目根据3张表表结构,写出具体求解的SQL代码(搞笑品类定义:视频分类或者视频创建者分类为“搞笑”)1、表创建语句:createtablet_user_video_action_d(dsint,user_idstring,video_idstring,action_typeint,`timestamp`bigint)rowformatdelimi
- 2.8.5Django --8.2 单表操作
寒暄_HX
Django目录:https://www.jianshu.com/p/dc36f62b3dc5Yuan先生-Django模型层(1)Django与SQLAlchemy的ORM操作本质上是一样的,但是语法略有不同,如果是用Django进行开发最好使用原生的ORM或者直接使用原生SQL。创建表app06创建模型在app06中的models.py文件内,新建一个模板。one_exa.app06.mode
- PostgreSQL | 生成UUID 报错:HINT: No function matches the given name and argument types
慌途L
PostgreSQLpostgresqluuiduuid_generategen_random_uuid
在PG数据库上新建表结构:CREATETABLE"public"."t_test"("guid"uuidNOTNULLDEFAULTuuid_generate_v4(),"data"jsonb,"create_time"timestamptz(6)DEFAULTnow(),CONSTRAINT"test_pkey"PRIMARYKEY("guid"));报错:ERROR:functionuuid_
- Mac 技术篇-应用程序被锁定无法进行卸载问题解决方法,文件、文件夹被锁定无法移入废纸篓处理方法
lq9527_
Mac使用macos
在卸载Karabiner-Elements和Karabiner-EventViewer软件时,提示应用锁定,无法卸载。参照方法。在进行/bin/ls-dleO@App路径操作后,返回提示信息与链接方法略有区别。/bin/ls-dleO@App路径drwxr-xr-x@3root wheel uchg96 3 1 2022/Applications/Karabiner-Elements.appcom
- HBase(一)——HBase介绍
weixin_30595035
大数据数据库数据结构与算法
HBase介绍1、关系型数据库与非关系型数据库(1)关系型数据库关系型数据库最典型的数据机构是表,由二维表及其之间的联系所组成的一个数据组织优点:1、易于维护:都是使用表结构,格式一致2、使用方便:SQL语言通用,可用于复杂查询3、复杂操作:支持SQL,可用于一个表以及多个表之间非常复杂的查询缺点:1、读写性能比较差,尤其是海量数据的高效率读写2、固定的表结构,灵活度稍欠3、高并发读写需求,传统关
- HBase介绍
mingyu1016
数据库
概述HBase是一个分布式的、面向列的开源数据库,源于google的一篇论文《bigtable:一个结构化数据的分布式存储系统》。HBase是GoogleBigtable的开源实现,它利用HadoopHDFS作为其文件存储系统,利用HadoopMapReduce来处理HBase中的海量数据,利用Zookeeper作为协同服务。HBase的表结构HBase以表的形式存储数据。表有行和列组成。列划分为
- java mongodb group分组使用
yank1225
mongodbjavamongodbgroup
mongodb的关键字及介绍.mongodb的查询是有一定规则的,刚开始接触老是各种错误,参照以下内容有很多帮助https://docs.mongodb.com/manual/reference/sql-aggregation-comparison/另外出现这种错误时Apipelinestagespecificationobjectmustcontainexactlyonefield是因为条件不对
- 你是自己的人生参照物
张庆玲
女儿问我,妈妈:“你的偶像是谁?”我回答:“我以前有偶像,现在没有偶像了。”女儿说:“你为什么没有偶像了。”我说:“因为活的稍微明白了点。”女儿小的时候,我经常给她讲那个我们耳熟能详的的故事:父子俩牵着一头驴去赶集,因为路人的不同建议,他们一会让儿子骑着驴,一会让父亲骑着驴,一会两人一起骑着驴,最后俩人抬着驴,弄得驴不知所措,挣脱缰绳逃跑了。生活中的我们有时候真的就像那对父子中的父亲,在众说纷纭的
- Hbase - 迁移数据[导出,导入]
kikiki5
>有没有这样一样情况,把一个集群中的某个表导到另一个群集中,或者hbase的表结构发生了更改,但是数据还要,比如预分区没做,导致某台RegionServer很吃紧,Hbase的导出导出都可以很快的完成这些操作。![](https://upload-images.jianshu.io/upload_images/9028759-4fb9aa8ca3777969.png?imageMogr2/auto
- Redis数据结构—跳跃表 skiplist
马卫斌 前端工程师
skiplist
跳跃表(Skiplist)是Redis中用于实现有序集合(SortedSet)的一种高效数据结构。以下是关于Redis中跳跃表(Skiplist)的关键特性和工作原理的概览:基本概念层级结构:跳跃表通过多层次的链表组成,每一层都是下一层的稀疏视图,顶层最快地遍历整个链表,而底层则是完全连通所有节点的传统链表结构。这样的设计使得查询操作能够快速跳过大量不需要检查的元素。有序集合:每个节点(或称为元素
- MYSQL数据库进阶篇——SQL优化
Cedric_Anik
MySQL数据库数据库mysqlsql
1.插入数据优化①批量插入数据②手动提交事务③主键顺序插入大批量插入数据:2.主键优化数据组织方式页分裂:页可以为空,也可以填充一半,也可以填满,每个页包含2-N行数据,如果一行数据过大,就会行溢出。例如:页合并当删除一行数据时,实际记录并没有被物理删除,只是记录被标记为删除,并且它的空间变得允许被其他记录声明使用MERGE_THRESHOLD:合并页的阈值,在创建表或者创建索引时指定。主键设计原
- 数据库学习01——mysql怎么创建数据库和表
GoppViper
数据库数据库dbamysql后端sql
第一步:创建数据库使用createdatabase语句,后跟要创建的数据库名称:CREATEDATABASEdbname;例如,要创建名为my_db的数据库,请输入:CREATEDATABASEmy_db;使用showdatabases;语句检查数据库是否已创建:第二步:创建表使用createtable语句,后跟要创建的表名和列定义:CREATETABLEtablename{columnname1
- Redis Sentinel(哨兵)详解
dlwlrma ⥳
Java八股框架redissentinel数据库
目录一:什么是Sentinel(哨兵)二:Sentinel有什么用1.监控2.故障转移3通知4.配置提供三:Sentinel如何检测master节点宕机1.主观下线2.客观下线四:Sentinel是如何选举出新的master1.slave的优先级2.复制进度3.runid五:如何在sentinel集群中选择出Leader前言:有关Redis的基础知识可以参照我之前写的文章Redis必知必会的知识在
- MySQL的DDL、DML、DQL
鱼灯几许
mysql数据库
DDLDDL:数据定义语言查询所有数据库:showdatabases;查询当前数据库:showdatabases();使用数据库:use数据库名;创建数据库:createdatabase[ifnotexists]数据库名;删除数据库:dropdatabase[ifexists]数据库名;创建表:createtable表名(字段1字段1类型[约束][comment字段1注释],字段2字段2类型[约束
- 人生之尺
UU001
京广商讯网讯一个人来到世上,从懂事起,就有了一把尺子。尺在心中,量人也量己;尺在身内,量得又量失。这把尺叫比较,以人生为参照物,量一量,一个人谦虚与骄傲、俭朴与奢侈、光荣与耻辱、成功与失败、真善美与假恶丑,都一目了然。这把尺叫规范,做人什么可为,什么不可为,要有个尺度。一个人的一言一行,量一量,就能看出是否符合道德规范。这把尺叫分寸,对己、待人、处世,都应把握分寸,一个人的所作所为,量一量,就能看
- MySQL 技巧:如何实现乐观锁?
超人不会飞007
mysql
使用MySQL5.7做测试,数据库引擎为InnoDB,数据库隔离级别为可重复读(REPEATABLE-READ),读读共享,读写互斥。在这个隔离级别下,在多事务并发的情况下,还是会出现数据更新的冲突问题。先分析一下更新冲突的问题是如何产生的。假设我们有一张销量表goods_sale,表结构如下:字段数据类型说明goods_sale_idvarchar(32)销量idgoods_idvarchar(
- 日常抽象手札(让意识无限放大)
忆木南
1.死绿的树,树枝伸展,蜷缩在扭曲枝丫里的粉白色的花苞,难见得想要绽放,却被一道白色的霹雳将它扼杀。图片发自App2.灰白的天,看不见曾经的蓝,没有以往倾倒油漆的质感,干涩而又窒息,呼吸道里满是灰尘,每到春天势必打喷嚏的。3.凭直觉记着的方向,建筑的位置,只是参照物的不同。东南西北都是一样,四周就像是一个望不到尽头的囚笼,不知道囚笼之外是否有一双上帝之眼。图片发自App4.无趣的人,在一起如同赶赴
- Oracle用户、权限、角色管理
一心只为学
oracle数据库运维服务器
一、用户管理1、创建用户1.1创建用户user1,密码为123456,指定默认表空间为user1_tbs,临时表空间为user1_temp#user1_tbs表空间和user1_temp临时表空间需要提前创建好。#创建表空间user1_tbsSQL>createtablespaceuser1_tbsdatafile'/u01/app/oracle/oradata/ORCL/datafile/use
- mysql组合键唯一
qq_36321899
mysql数据库
在MySQL中,如果您想要确保两个或多个列的组合数据是唯一的,您可以使用组合唯一键(也称为复合唯一键或联合唯一索引)。以下是创建组合唯一键的方法:创建表时添加组合唯一键:CREATETABLEyour_table_name(column1datatype,column2datatype,column3datatype,UNIQUE(column1,column2));例如,如果您有一个名为user
- 从头开始嵌入式第三十八天(数据结构 双向链表)
FLPGYH
数据结构链表c语言linux
目录双向链表一、结构特点二、操作优势三、应用场景1.创建链表2.头插数据3.打印数据4.查找数据5.删除数据6.更改数据7.清空数据8.尾插数据9.按位插入10.获取长度11.是否为空双向链表双向链表是一种链表结构。一、结构特点1.每个节点包含两个指针,分别指向直接前驱节点和直接后继节点。这使得在双向链表中可以双向遍历,既可以向前也可以向后查找节点。2.相比单向链表,双向链表在某些操作上更加灵活,
- 力扣LeetCode-栈和队列
流忆,留宜
LeetCodeleetcodec++算法
栈与队列基本知识C++标准库有很多版本,三个最为普遍的STL版本HPSTL其他版本的C++STL,一般是以HPSTL为蓝本实现出来的,HPSTL是C++STL的第一个实现版本,而且开放源代码。P.J.PlaugerSTL由P.J.Plauger参照HPSTL实现出来的,被VisualC++编译器所采用,不是开源的。SGISTL由SiliconGraphicsComputerSystems公司参照H
- mysql整体架构描述
问道飞鱼
数据库相关技术mysql架构数据库
文章目录数据库架构示意图1.连接层2.服务层3.存储引擎层4.文件系统层5.系统层主要特性数据库文件格式InnoDB存储引擎文件类型及用途MyISAM存储引擎文件类型及用途其他文件类型文件内容示例表结构文件示例(`.frm`)InnoDB数据文件示例(`.ibd`)MyISAM数据文件示例(`.MYD`)SQL脚本文件示例(`.sql`)数据库内存结构示意图MySQLServer层面的内存结构In
- Sql-基础知识
择喀普斯
--数据库(database):存储数据的仓库,--数据库(database)--数据表(table)--列名(字段-field)--数据(值-value)--创建表--(在sqlite数据库中创建表的时候定义数据类型的起不来限制数据类型的作用的--因为sqlite的数据的数据类型数弱类型,它会根据用户输入的数据进行自动的识别并添加--到数据库表中,和大多数数据库一样,sqlite是大小写不敏感的
- 思大纲,思教学
马明洋河南信阳
作为小学数学教师,一是研究儿童,研究儿童学习规律;二是理解数学,研究数学本质书籍;三要理解数学教育,研究数学教育的规律。——题记一、第一套大纲第一套大纲并不是通常理解的课标和教材或者教学目标,而是隐含在教材中的关键知识,构成学习教材的主要目标。通常要确定第一套大纲,至少要参照如下因素:1.国家颁布的课程标准课程标准相当于教学时必须遵守的“宪法”。但,宪法落实到具体情景中,必须具体化。它本身首先是有
- 《宇宙生命之谜》教学反思
静_1079
本节课属于阅读主题单元中重点的一节课,主要教授学生根据不用的阅读目的,运用不同的阅读方法,这也是新部编版教材相较于老版教材新的要求与目标,因而无老法可以依循,参照教师教学用书,我将本节课的教学重难点放在了如何运用所学教学方法解决本课核心问题“地球之外的太空中是否有生命存在”上,着重引导学生运用阅读方法。整堂课下来,我感受如下:1.虽然大部分同学能够掌握并运用阅读方法解决问题,但课程进度稍快,部分学
- python----使用sqlalchemy操作mysql数据库
cheerfulCoder
python
准备使用sqlalchemy前要先安装pymysql数据库我是使用docker快速创建的现在已经运行起来了开始1.创建表格fromsqlalchemyimportcreate_engine#初始化连接使用sqlalchemy时要先安装pymysql否则连接失败engine=create_engine('mysql+pymysql://root:
[email protected]/user',
- sqlalchemy mysql_使用SQLAlchemy操作MySQL
莫泽成
sqlalchemymysql
场景应用老大我让爬取内部网站获取数据,插入到新建的表中,并每天进行爬取更新数据(后面做了定时任务)。然后根据该表统计每日的新增数量/更新数量进行制图制表,向上级汇报。思路构建选用sqlalchemy+mysqlconnector,连接数据库,创建表,对指定表进行CRUDfromsqlalchemyimportexists,Column,Integer,String,ForeignKey,DateT
- PHP如何实现二维数组排序?
IT独行者
二维数组PHP排序
二维数组在PHP开发中经常遇到,但是他的排序就不如一维数组那样用内置函数来的方便了,(一维数组排序可以参考本站另一篇文章【PHP中数组排序函数详解汇总】)。二维数组的排序需要我们自己写函数处理了,这里UncleToo给大家分享一个PHP二维数组排序的函数:
代码:
functionarray_sort($arr,$keys,$type='asc'){
$keysvalue= $new_arr
- 【Hadoop十七】HDFS HA配置
bit1129
hadoop
基于Zookeeper的HDFS HA配置主要涉及两个文件,core-site和hdfs-site.xml。
测试环境有三台
hadoop.master
hadoop.slave1
hadoop.slave2
hadoop.master包含的组件NameNode, JournalNode, Zookeeper,DFSZKFailoverController
- 由wsdl生成的java vo类不适合做普通java vo
darrenzhu
VOwsdlwebservicerpc
开发java webservice项目时,如果我们通过SOAP协议来输入输出,我们会利用工具从wsdl文件生成webservice的client端类,但是这里面生成的java data model类却不适合做为项目中的普通java vo类来使用,当然有一中情况例外,如果这个自动生成的类里面的properties都是基本数据类型,就没问题,但是如果有集合类,就不行。原因如下:
1)使用了集合如Li
- JAVA海量数据处理之二(BitMap)
周凡杨
java算法bitmapbitset数据
路漫漫其修远兮,吾将上下而求索。想要更快,就要深入挖掘 JAVA 基础的数据结构,从来分析出所编写的 JAVA 代码为什么把内存耗尽,思考有什么办法可以节省内存呢? 啊哈!算法。这里采用了 BitMap 思想。
首先来看一个实验:
指定 VM 参数大小: -Xms256m -Xmx540m
- java类型与数据库类型
g21121
java
很多时候我们用hibernate的时候往往并不是十分关心数据库类型和java类型的对应关心,因为大多数hbm文件是自动生成的,但有些时候诸如:数据库设计、没有生成工具、使用原始JDBC、使用mybatis(ibatIS)等等情况,就会手动的去对应数据库与java的数据类型关心,当然比较简单的数据类型即使配置错了也会很快发现问题,但有些数据类型却并不是十分常见,这就给程序员带来了很多麻烦。
&nb
- Linux命令
510888780
linux命令
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpuinfo 显示C
- java常用JVM参数
墙头上一根草
javajvm参数
-Xms:初始堆大小,默认为物理内存的1/64(<1GB);默认(MinHeapFreeRatio参数可以调整)空余堆内存小于40%时,JVM就会增大堆直到-Xmx的最大限制
-Xmx:最大堆大小,默认(MaxHeapFreeRatio参数可以调整)空余堆内存大于70%时,JVM会减少堆直到 -Xms的最小限制
-Xmn:新生代的内存空间大小,注意:此处的大小是(eden+ 2
- 我的spring学习笔记9-Spring使用工厂方法实例化Bean的注意点
aijuans
Spring 3
方法一:
<bean id="musicBox" class="onlyfun.caterpillar.factory.MusicBoxFactory"
factory-method="createMusicBoxStatic"></bean>
方法二:
- mysql查询性能优化之二
annan211
UNIONmysql查询优化索引优化
1 union的限制
有时mysql无法将限制条件从外层下推到内层,这使得原本能够限制部分返回结果的条件无法应用到内层
查询的优化上。
如果希望union的各个子句能够根据limit只取部分结果集,或者希望能够先排好序在
合并结果集的话,就需要在union的各个子句中分别使用这些子句。
例如 想将两个子查询结果联合起来,然后再取前20条记录,那么mys
- 数据的备份与恢复
百合不是茶
oraclesql数据恢复数据备份
数据的备份与恢复的方式有: 表,方案 ,数据库;
数据的备份:
导出到的常见命令;
参数 说明
USERID 确定执行导出实用程序的用户名和口令
BUFFER 确定导出数据时所使用的缓冲区大小,其大小用字节表示
FILE 指定导出的二进制文
- 线程组
bijian1013
java多线程threadjava多线程线程组
有些程序包含了相当数量的线程。这时,如果按照线程的功能将他们分成不同的类别将很有用。
线程组可以用来同时对一组线程进行操作。
创建线程组:ThreadGroup g = new ThreadGroup(groupName);
&nbs
- top命令找到占用CPU最高的java线程
bijian1013
javalinuxtop
上次分析系统中占用CPU高的问题,得到一些使用Java自身调试工具的经验,与大家分享。 (1)使用top命令找出占用cpu最高的JAVA进程PID:28174 (2)如下命令找出占用cpu最高的线程
top -Hp 28174 -d 1 -n 1
32694 root 20 0 3249m 2.0g 11m S 2 6.4 3:31.12 java
- 【持久化框架MyBatis3四】MyBatis3一对一关联查询
bit1129
Mybatis3
当两个实体具有1对1的对应关系时,可以使用One-To-One的进行映射关联查询
One-To-One示例数据
以学生表Student和地址信息表为例,每个学生都有都有1个唯一的地址(现实中,这种对应关系是不合适的,因为人和地址是多对一的关系),这里只是演示目的
学生表
CREATE TABLE STUDENTS
(
- C/C++图片或文件的读写
bitcarter
写图片
先看代码:
/*strTmpResult是文件或图片字符串
* filePath文件需要写入的地址或路径
*/
int writeFile(std::string &strTmpResult,std::string &filePath)
{
int i,len = strTmpResult.length();
unsigned cha
- nginx自定义指定加载配置
ronin47
进入 /usr/local/nginx/conf/include 目录,创建 nginx.node.conf 文件,在里面输入如下代码:
upstream nodejs {
server 127.0.0.1:3000;
#server 127.0.0.1:3001;
keepalive 64;
}
server {
liste
- java-71-数值的整数次方.实现函数double Power(double base, int exponent),求base的exponent次方
bylijinnan
double
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
- Android四大组件的理解
Cb123456
android四大组件的理解
分享一下,今天在Android开发文档-开发者指南中看到的:
App components are the essential building blocks of an Android
- [宇宙与计算]涡旋场计算与拓扑分析
comsci
计算
怎么阐述我这个理论呢? 。。。。。。。。。
首先: 宇宙是一个非线性的拓扑结构与涡旋轨道时空的统一体。。。。
我们要在宇宙中寻找到一个适合人类居住的行星,时间非常重要,早一个刻度和晚一个刻度,这颗行星的
- 同一个Tomcat不同Web应用之间共享会话Session
cwqcwqmax9
session
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
- springmvc Spring3 MVC,ajax,乱码
dashuaifu
springjquerymvcAjax
springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决
Spring3.0 MVC @ResponseBody 的作用是把返回值直接写到HTTP response body里。具体实现AnnotationMethodHandlerAdapter类handleResponseBody方法,具体实
- 搭建WAMP环境
dcj3sjt126com
wamp
这里先解释一下WAMP是什么意思。W:windows,A:Apache,M:MYSQL,P:PHP。也就是说本文说明的是在windows系统下搭建以apache做服务器、MYSQL为数据库的PHP开发环境。
工欲善其事,必须先利其器。因为笔者的系统是WinXP,所以下文指的系统均为此系统。笔者所使用的Apache版本为apache_2.2.11-
- yii2 使用raw http request
dcj3sjt126com
http
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
- Quartz-1.8.6 理论部分
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2207691 一.概述
基于Quartz-1.8.6进行学习,因为Quartz2.0以后的API发生的非常大的变化,统一采用了build模式进行构建;
什么是quartz?
答:简单的说他是一个开源的java作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。并且还能和Sp
- 什么是POJO?
gupeng_ie
javaPOJO框架Hibernate
POJO--Plain Old Java Objects(简单的java对象)
POJO是一个简单的、正规Java对象,它不包含业务逻辑处理或持久化逻辑等,也不是JavaBean、EntityBean等,不具有任何特殊角色和不继承或不实现任何其它Java框架的类或接口。
POJO对象有时也被称为Data对象,大量应用于表现现实中的对象。如果项目中使用了Hiber
- jQuery网站顶部定时折叠广告
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/4.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页顶部定时收起广告jQuery特效 - HoverTree<
- Spring boot内嵌的tomcat启动失败
kane_xie
spring boot
根据这篇guide创建了一个简单的spring boot应用,能运行且成功的访问。但移植到现有项目(基于hbase)中的时候,却报出以下错误:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.Lif
- leetcode: sort list
michelle_0916
Algorithmlinked listsort
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
- nginx的安装与配置,中途遇到问题的解决
qifeifei
nginx
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
- 用枚举来处理java自定义异常
tcrct
javaenumexception
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public
- erlang supervisor分析
wudixiaotie
erlang
当我们给supervisor指定需要创建的子进程的时候,会指定M,F,A,如果是simple_one_for_one的策略的话,启动子进程的方式是supervisor:start_child(SupName, OtherArgs),这种方式可以根据调用者的需求传不同的参数给需要启动的子进程的方法。和最初的参数合并成一个数组,A ++ OtherArgs。那么这个时候就有个问题了,既然参数不一致,那