- 三正记录-Day16
当下即过
1.处理一些人际关系上,能够觉察一些问题了,同时让自己需要拦截的能力,不被别人的情绪带走。2.小C早上看电视,没有进行说教拦截。我们小时候也是这么看过来的,保持童年的乐趣吧~3.吃饱睡足,然后打扫房间卫生,换沙发毯子,找到了被“丢失”的遥控器。清洗了换下的衣服和毯子。充实又开心。
- 2019-04-13
安娜娜_c925
4月3日Day16查找函数(VLOOKUP,HLOOKUP,INDEX,MATCH)一、VLOOKUP基本用法第一参数:找什么(或者说按什么查找)第二参数:在哪找,数据源区域第三参数:找到后返回第几列第四参数:精确查找/模糊查找HLOOKUP基本用法VLOOKUP:按列查找HLOOKUP:按行查找INDEX,MATCH基本用法MATCH函数作用:在一个区域或数组中查找制定数值的位置,如果查找不到则
- Day16:有意义的一天
朱珠玫瑰姐姐
昨天,2018年5月24日,是我们慧心父母驿站的第一次活动。上午是辉辉老师带领的读书会,下午是我带领的芳香自然疗法精油手工皂的DIY活动,尽管第一次活动只来了十几个小伙伴,但一天下来对我们来讲,还是非常有意义的一天。图片发自App上图是我们一起组建慧心父母驿站的几位小伙伴:从左到右分别是10岁女孩的妈妈包莉莉,9岁女孩妈妈陶莉,16岁男孩妈妈陈辉和11岁女孩的妈妈我。大家在一起,有着共同的兴趣爱好
- LeetCode面试题Day16|LC56 合并区间、LC57 插入区间
C.G.道枝
leetcode面试算法c++数组
题目一:指路:.-力扣(LeetCode)56合并区间思路与分析:本题题意清晰易懂,当区间有重叠元素时返回能覆盖这些重叠区间的大区间,否则就返回无重叠区间。那么判断区间是否有重叠只需要按照区间各自的左边界升序排序,如果前一个区间的右边界大于后一个区间的左边界时则说明当前两区间有重叠元素。那么在将答案添加进结果集时,按照区间左边界升序之后,第一个区间的左边界一定是最小的,可以直接添加进结果集,那么添
- 算法day16|654.最大二叉树、617.合并二叉树、700.二叉搜索树中的搜索、98.验证二叉搜索树
桃酥403
算法数据结构c++leetcode
算法day16|654.最大二叉树、617.合并二叉树、700.二叉搜索树中的搜索、98.验证二叉搜索树654.最大二叉树617.合并二叉树1.额外申请空间(失败)2.不额外申请空间700.二叉搜索树中的搜索98.验证二叉搜索树1.遍历后排序2.边遍历遍排序3.指针记录法654.最大二叉树这道题很简单,其实就是105、106的变式题。具体代码如下:classSolution{public:Tree
- 代码训练营 Day16| 513.找左下角的值 | 112.路径总和 | 106.从中序后序遍历构造二叉树
RatherDoMyMath_
算法python数据结构
513.找左下角的值1.这题使用层序遍历会比递归要简单很多2.因为是要找左下角的值1.层序遍历是使用队列来分别辨别不同层的元素有那些2.最左边的值永远是第一个进入队列的,所以在while的内层循环设置一个判断条件即可获得该值importcollections#Definitionforabinarytreenode.#classTreeNode(object):#def__init__(self,
- day16正则表达式&枚举类
qnmdlzg
正则表达式java
正则表达式的概述正则表达式的概念:使用单个字符串来描述或者匹配一系列符合某种语法规则的字符串1、通过大量的字符串寻找规律,得出定义规则2、使用这种规则去匹配新的字符串3、匹配成功做出相应的操作正则表达式的基本语法1、原义字符字符本身就是一个正则publicclassRedularDemo2{publicstaticvoidmain(String[]args){Stringstr="ab123342
- Python大数据之Python爬虫学习总结——day16 数据可视化
笨小孩124
Python爬虫学习总结信息可视化python大数据
数据可视化Map_地图基础地图知识点:基础示例:实战练习:知识点:自定义模块:制作中国地图data1.txt文件内容python代码示例制作区域地图data2.txt文件内容python代码示例Line_折线图基础折线图实战练习:Bar_柱状图基础柱状图反转以及主题设置Json数据python数据转为json数据知识点:示例:json数据转为python数据知识点:json文件:示例:Map_地图
- Day16_集合与迭代器
小鱼儿y
javasejava开发语言
Day16-集合Day16集合与迭代器1.1集合的概念集合继承图1.2Collection接口1、添加元素2、删除元素3、查询与获取元素不过当我们实际使用都是使用的他的子类Arraylist!!!1.3API演示1、演示添加2、演示删除3、演示查询与获取元素2Iterator迭代器2.1Iterator接口2.2迭代器的实现原理2.3Iterable接口1、Iterable接口依赖Iterator
- #育人宝贝教师百日行动派#day16
程羽记录美好
#育人宝贝教师百日行动派#day16图片发自App每日5000步✔️今日所读《3-6岁儿童学习与发展指南》五:幼儿动作发展与培养的评价第四节:生活习惯与生活能力1.幼儿生活习惯与生活能力发展与培养的研究背景3-6岁时可以说是人生活习惯形成的关键时期,在这一时期加以训练将会收到事半功倍的成效,拥有良好的生活习惯,对于孩子来说会终生收益!良好的生活习惯养成,需要幼儿时期就进行培养,需要幼儿教师,家长密
- 减重10kg打卡【Day16】
静待花开_问兰
20210218#减重10kg打卡(130-110)21天打卡累计天数:16/21【每天心甘愿情为减肥做一件小事】1.今早体重:129.8斤2.饮食摄入能量1000Kcal/天实际摄入1200千卡,多摄入200千卡饮食记录3.运动消耗能量420Kcal/天中午快走4㎞,消耗224千卡。晚上完成轻加减肥运动25min,消耗200千卡。晚上陪孩子运动打卡20min+拖地15min,预计消耗200千卡累
- 1201每日一省Day16(重启Day9)
吾心1108
今日继续居家工作、陪豆豆、个人学习,忙忙碌碌的对了一天的数据,最大的感受是方法比努力更重要。只有学习才能不断更新自己的数据库,随时应对不同的状况。豆豆今天又是腻妈妈的一天,围着妈妈求陪伴玩耍,最近爸爸、妈妈都比较忙,顾不上豆豆,每次看着他失落的走开,然后自己跟自己玩,自己给自己讲道理时,妈妈好难受。工作是为了提升自己,提升家人的生活质量。现在豆豆最需要陪伴的时候爸爸妈妈忙,等爸爸妈妈闲暇之时再去干
- 算法训练day16 | php | 530.二叉搜索树的最小绝对差 , 501.二叉搜索树中的众数 , 236. 二叉树的最近公共祖先
a8917cwr
算法数据结构leetcodephp
一、力扣题530.二叉搜索树的最小绝对差给你一个二叉搜索树的根节点root,返回树中任意两不同节点值之间的最小差值。差值是一个正数,其数值等于两值之差的绝对值。示例1:输入:root=[4,2,6,1,3]输出:1示例2:输入:root=[1,0,48,null,null,12,49]输出:1提示:树中节点的数目范围是[2,104]0getMin($root);return$this->min;}
- 代码随想录算法训练营day16
羊角问蕊
算法数据结构
题目:104.二叉树的最大深度、111.二叉树的最小深度、222.完全二叉树的节点个数参考链接:代码随想录104.二叉树的最大深度思路:上次是用层序遍历的思路做过。这次想一点不一样的思路,对于一个二叉树的最大深度其实即为其两个子树的最大深度+1,所以可以采用递归法解决,结束条件即当root都为空的时候,最大深度即为1。时间复杂度O(n)。classSolution{public:intmaxDep
- DAY16
涓涓细流0116
第16天的镜子练习一,在日志里写下你小时候如何体验到爱。你有没有看见公交的碍于情况?你在长大过程中是否经常被拥抱?在你家里,爱是否被隐藏在争吵、哭泣或沉默的背后?小时候你感觉自己是被牢牢疼爱的,就像前进说的那个样子他总是把好吃的给了我,把我喜欢吃的,然后回别人话让他给我做来吃。我的父母是怎么表达爱意的,我记得来郑州之后我的父母如果说两个人不在一块的话,他们会每天都通电话。我妈妈去店里上班之后,我爸
- MySQL学习Day16—MySQL的数据目录
A_Tai2333333
mysql学习数据库
一、MySQL8的主要目录结构1.数据库文件的存放路径:/var/lib/mysql/MySQL服务器程序在启动时会到文件系统的某个目录下加载一些文件,之后在运行过程中产生的数据也都会存储到这个目录下的某些文件中,该目录就称为数据目录。2.相关命令目录:/user/bin和/user/sbin安装目录下非常重要的bin目录,它里面存储了许多关于控制客户端和服务器程序的命令,而数据目录是用来存储My
- 日更挑战day16:考研日志16
韫左寻
周末,需要给自己半天假期。让我想起一句话,很重要:磨刀不误砍柴工!图片发自App一、前古典主义时期的音乐1、喜歌剧喜歌剧,来源于正歌剧中的幕间剧,具有活波、轻松、诙谐的特点,结构上常为两幕。其取材于日常生活,演出形式短小精悍,与民间音乐、通俗流行格调联系较紧,所以深受市民喜爱。代表人物:佩格莱西,《女仆做夫人》皮契尼,《温顺的女儿》契玛罗萨《秘密婚姻》*喜歌剧之争:意大利喜歌剧团在巴黎上演《女仆做
- 嘟儿嘟的ScalersTalk第六轮《新概念》朗读持续力训练Day16—20210219
嘟儿嘟_475f
练习材料:L18-1:ElectriccurrentsinmodernartModernsculpturerarelysurprisesusanymore.Theideathatmodernartcanonlybeseeninmuseumsismistaken.Evenpeoplewhotakenointerestinartcannothavefailedtonoticeexamplesofmod
- Day 16 : 5班1组 - Cat C 卡西猫-小作业8
C猫拆书
Day16:5班1组-CatC卡西猫-小作业8写作训练营第16天作业内容;句子改写:将下面的句子改写成更有情绪和力量的表达方式:“你以为这样做就能解决问题吗,我可不这么看。”备注:先分析原句要表达的是什么观点和立场、态度,其次思考更有情绪和力量的表达方式和词汇有哪些,没有印象的话可以去百度搜一搜,再来更换几种表达方式,看看哪种更符合题目的要求。改写:真够天真的!难道你认为这样做,问题就可以解决?若
- 冰雪奇缘FrozenDay16
plitt
Frozen《冰雪奇缘》Day16(01'08'32-01'13'34)FrozenD16双语台词Part1生词打卡indanger处于危险中remove/rɪ'muv/v.解除solid/'sɑlɪd/adj.坚固的freeze/friz/v.冰冻act/ækt/n.举动thaw/θɔ/v.融化beonguard提高警惕harm/hɑrm/n.伤害toss/tɔs/v.投掷Part2台词学习-K
- DS Wannabe之5-AM Project: DS 30day int prep day16
wendyponcho
MachineLearning机器学习人工智能学习笔记
Q1.WhatisStatisticsLearning?Statisticallearning:Itistheframeworkforunderstandingdatabasedonthestatistics,whichcanbeclassifiedasthesupervisedorunsupervised.Supervisedstatisticallearninginvolvesbuilding
- 2023-06-22
2df3a32c8925
Day16看见错误的美好今日作业:思考并写下1.你曾经做错的事我曾经做过的错事太多了,但是以前真的错了就是错了,只会内疚,不敢去承认,让错误一直内耗自己,现在终于懂得人无完人,错就是让我们不断的改进,精进,让自己在错误中成长!2.你曾经有伤害过的人我曾经伤害过的人有我的同学,因为不知道语言的杀伤力那么强,说了一些不该说的话,所以也是给同学造成了伤害,其实也给自己的内心带来了很大的愧疚感,多年以后的
- day16作业
I_423a
作业:1、文件内容如下,标题为:姓名,性别,年纪,薪资egonmale183000alexmale3830000wupeiqifemale2820000yuanhaofemale2810000要求:从文件中取出每一条记录放入列表中,列表的每个元素都是{'name':'egon','sex':'male','age':18,'salary':3000}的形式l=[]withopen('db.txt'
- 记录分手生活DAY16
贺染
今天终于不是在床上码字了。也不是抱着手机。/久违打开了电脑。发现自动登陆了他的游戏账号。/之前似乎说过,我退游快一年了。准确来说是八个月。/脑子里出现了很多新的人物名字。我没有着急构思他们的故事。/这几天重新审视了一下新媒体文。确实,爆文不是我追求的类型。我的方向是偏情感和观点,但我不喜欢故作深沉、哗众取宠那一套。/看标题就知道。我不喜欢把标题弄的花里胡哨。纯粹为了吸引人,跟文章半毛钱关系没有。/
- Python学习从0到1 day16 Python文件操作
L_cl
python学习从0到1学习
2024新年快乐!!!今天是大年初三,祝大家万事胜意,一切都会好的,休息了一段时间,从今天开始继续学习~——24.2.12一、文件的编码计算机只能识别0和1,那么我们丰富的文本文件是如何被计算机识别,并存储在硬盘中呢?使用编码技术(密码本)将内容翻译成0和1存入编码技术即:翻译的规则(密码本),记录了如何将内容翻译成二进制,以及如何将二进制翻译回可识别内容计算机中有许多可用编码:UTF-8GBKB
- 【今天是最美好的一天】day16
酥麻麻
单位美女LiLy,对厨房美食颇有研究,我从她身上学到了不少手艺。早上,听她说去超市买花甲,我说:“帮我也买一斤,弄给我姑娘吃吃,明天她就要去上学了。”这种时候,免不了要对花甲的制作方法做一番探讨与交流,之后我又从她口中学了一个乖:“花甲出锅时勾芡了更好吃。”不得不说,身边每个人都潜藏着独一无二的能量,只是我们没有发现而已。中午,把花甲拎回家,放进水里浸泡着,然后拿起牙刷,对着流水一个个冲洗。看着一
- 原味的碎碎念 | 日更 Day16
原味的运营成长笔记
①13.41亿处罚漏税的直播主播事件会是直播行业的一个拐点嘛?这些大主播正不正经不知道,但直播带货是个正经的行业,所以对中小主播而言,应该是利好的②今天看到这么一句话“低客单价禁止尝试私域”,你们认为是对还是错,因为有些人对这句话有歧义,我的理解是对的哈,因为投入产出比很难平衡,私域成功案例很多,但很难复制,中小品牌私域案例很少,很多商家看到了也很难复制③私域热度越高,对做SaaS行业的越有利,但
- 英语晨读Day16
浩然江山
1.Material:Inallthecases,witnessessawtheeventhappen.ɪnɔlðəˈkeɪsəz,ˈwɪtnəsəzsɔðiɪˈvɛntˈhæpən.Morethanonethousandofthevictimsreceivedsomekindofmedicalassistancefromwitnesses.mɔrðænwʌnˈθaʊzəndʌvðəˈvɪktəm
- 写给儿子的信 Day16/365
必须达成目标
今天一家三口度过了浪漫的一个下午。在电视频道搜索到了一部根据东野圭吾的同名小说改编~【解忧杂货店】的电视片。讲述了一家名为“解忧杂货店”的不可思议的小店,人们只要把他们的烦恼写在信上,然后丢进铁卷门的投递口,隔天就可以在店后的牛奶箱里收到回信…书中的精彩用电视人物画面的方式呈现出来,非常有新意。年的节奏到此就画上了句号…故事很感人,在人生的旅途中谁都有烦恼都有不易,心存美好和期翼去生活,总会有梦想
- day16/32 2022.11.22 今日复盘
哈哈爱学习
day16/322022.11.22今日复盘1.今天什么事情让我很不舒服?问题行为:技术总监之前给我一顿说,说的很细,结果我转头按我自己的来做,她的形式完全搁置。总监都诧异了,她讲那么细结果我啥都没听明白。背后信念:在我看来如果是形式或者示意图,根本不用给这么细给客户,目前只是初步报价而已。不用那么细,而自己因为这样的原因就忽视,然后按自己意思来。最终目标:满足客户要求快速完成这个新设计。文化萃取
- JAVA基础
灵静志远
位运算加载Date字符串池覆盖
一、类的初始化顺序
1 (静态变量,静态代码块)-->(变量,初始化块)--> 构造器
同一括号里的,根据它们在程序中的顺序来决定。上面所述是同一类中。如果是继承的情况,那就在父类到子类交替初始化。
二、String
1 String a = "abc";
JAVA虚拟机首先在字符串池中查找是否已经存在了值为"abc"的对象,根
- keepalived实现redis主从高可用
bylijinnan
redis
方案说明
两台机器(称为A和B),以统一的VIP对外提供服务
1.正常情况下,A和B都启动,B会把A的数据同步过来(B is slave of A)
2.当A挂了后,VIP漂移到B;B的keepalived 通知redis 执行:slaveof no one,由B提供服务
3.当A起来后,VIP不切换,仍在B上面;而A的keepalived 通知redis 执行slaveof B,开始
- java文件操作大全
0624chenhong
java
最近在博客园看到一篇比较全面的文件操作文章,转过来留着。
http://www.cnblogs.com/zhuocheng/archive/2011/12/12/2285290.html
转自http://blog.sina.com.cn/s/blog_4a9f789a0100ik3p.html
一.获得控制台用户输入的信息
&nbs
- android学习任务
不懂事的小屁孩
工作
任务
完成情况 搞清楚带箭头的pupupwindows和不带的使用 已完成 熟练使用pupupwindows和alertdialog,并搞清楚两者的区别 已完成 熟练使用android的线程handler,并敲示例代码 进行中 了解游戏2048的流程,并完成其代码工作 进行中-差几个actionbar 研究一下android的动画效果,写一个实例 已完成 复习fragem
- zoom.js
换个号韩国红果果
oom
它的基于bootstrap 的
https://raw.github.com/twbs/bootstrap/master/js/transition.js transition.js模块引用顺序
<link rel="stylesheet" href="style/zoom.css">
<script src=&q
- 详解Oracle云操作系统Solaris 11.2
蓝儿唯美
Solaris
当Oracle发布Solaris 11时,它将自己的操作系统称为第一个面向云的操作系统。Oracle在发布Solaris 11.2时继续它以云为中心的基调。但是,这些说法没有告诉我们为什么Solaris是配得上云的。幸好,我们不需要等太久。Solaris11.2有4个重要的技术可以在一个有效的云实现中发挥重要作用:OpenStack、内核域、统一存档(UA)和弹性虚拟交换(EVS)。
- spring学习——springmvc(一)
a-john
springMVC
Spring MVC基于模型-视图-控制器(Model-View-Controller,MVC)实现,能够帮助我们构建像Spring框架那样灵活和松耦合的Web应用程序。
1,跟踪Spring MVC的请求
请求的第一站是Spring的DispatcherServlet。与大多数基于Java的Web框架一样,Spring MVC所有的请求都会通过一个前端控制器Servlet。前
- hdu4342 History repeat itself-------多校联合五
aijuans
数论
水题就不多说什么了。
#include<iostream>#include<cstdlib>#include<stdio.h>#define ll __int64using namespace std;int main(){ int t; ll n; scanf("%d",&t); while(t--)
- EJB和javabean的区别
asia007
beanejb
EJB不是一般的JavaBean,EJB是企业级JavaBean,EJB一共分为3种,实体Bean,消息Bean,会话Bean,书写EJB是需要遵循一定的规范的,具体规范你可以参考相关的资料.另外,要运行EJB,你需要相应的EJB容器,比如Weblogic,Jboss等,而JavaBean不需要,只需要安装Tomcat就可以了
1.EJB用于服务端应用开发, 而JavaBeans
- Struts的action和Result总结
百合不是茶
strutsAction配置Result配置
一:Action的配置详解:
下面是一个Struts中一个空的Struts.xml的配置文件
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
&quo
- 如何带好自已的团队
bijian1013
项目管理团队管理团队
在网上看到博客"
怎么才能让团队成员好好干活"的评论,觉得写的比较好。 原文如下: 我做团队管理有几年了吧,我和你分享一下我认为带好团队的几点:
1.诚信
对团队内成员,无论是技术研究、交流、问题探讨,要尽可能的保持一种诚信的态度,用心去做好,你的团队会感觉得到。 2.努力提
- Java代码混淆工具
sunjing
ProGuard
Open Source Obfuscators
ProGuard
http://java-source.net/open-source/obfuscators/proguardProGuard is a free Java class file shrinker and obfuscator. It can detect and remove unused classes, fields, m
- 【Redis三】基于Redis sentinel的自动failover主从复制
bit1129
redis
在第二篇中使用2.8.17搭建了主从复制,但是它存在Master单点问题,为了解决这个问题,Redis从2.6开始引入sentinel,用于监控和管理Redis的主从复制环境,进行自动failover,即Master挂了后,sentinel自动从从服务器选出一个Master使主从复制集群仍然可以工作,如果Master醒来再次加入集群,只能以从服务器的形式工作。
什么是Sentine
- 使用代理实现Hibernate Dao层自动事务
白糖_
DAOspringAOP框架Hibernate
都说spring利用AOP实现自动事务处理机制非常好,但在只有hibernate这个框架情况下,我们开启session、管理事务就往往很麻烦。
public void save(Object obj){
Session session = this.getSession();
Transaction tran = session.beginTransaction();
try
- maven3实战读书笔记
braveCS
maven3
Maven简介
是什么?
Is a software project management and comprehension tool.项目管理工具
是基于POM概念(工程对象模型)
[设计重复、编码重复、文档重复、构建重复,maven最大化消除了构建的重复]
[与XP:简单、交流与反馈;测试驱动开发、十分钟构建、持续集成、富有信息的工作区]
功能:
- 编程之美-子数组的最大乘积
bylijinnan
编程之美
public class MaxProduct {
/**
* 编程之美 子数组的最大乘积
* 题目: 给定一个长度为N的整数数组,只允许使用乘法,不能用除法,计算任意N-1个数的组合中乘积中最大的一组,并写出算法的时间复杂度。
* 以下程序对应书上两种方法,求得“乘积中最大的一组”的乘积——都是有溢出的可能的。
* 但按题目的意思,是要求得这个子数组,而不
- 读书笔记-2
chengxuyuancsdn
读书笔记
1、反射
2、oracle年-月-日 时-分-秒
3、oracle创建有参、无参函数
4、oracle行转列
5、Struts2拦截器
6、Filter过滤器(web.xml)
1、反射
(1)检查类的结构
在java.lang.reflect包里有3个类Field,Method,Constructor分别用于描述类的域、方法和构造器。
2、oracle年月日时分秒
s
- [求学与房地产]慎重选择IT培训学校
comsci
it
关于培训学校的教学和教师的问题,我们就不讨论了,我主要关心的是这个问题
培训学校的教学楼和宿舍的环境和稳定性问题
我们大家都知道,房子是一个比较昂贵的东西,特别是那种能够当教室的房子...
&nb
- RMAN配置中通道(CHANNEL)相关参数 PARALLELISM 、FILESPERSET的关系
daizj
oraclermanfilespersetPARALLELISM
RMAN配置中通道(CHANNEL)相关参数 PARALLELISM 、FILESPERSET的关系 转
PARALLELISM ---
我们还可以通过parallelism参数来指定同时"自动"创建多少个通道:
RMAN > configure device type disk parallelism 3 ;
表示启动三个通道,可以加快备份恢复的速度。
- 简单排序:冒泡排序
dieslrae
冒泡排序
public void bubbleSort(int[] array){
for(int i=1;i<array.length;i++){
for(int k=0;k<array.length-i;k++){
if(array[k] > array[k+1]){
- 初二上学期难记单词三
dcj3sjt126com
sciet
concert 音乐会
tonight 今晚
famous 有名的;著名的
song 歌曲
thousand 千
accident 事故;灾难
careless 粗心的,大意的
break 折断;断裂;破碎
heart 心(脏)
happen 偶尔发生,碰巧
tourist 旅游者;观光者
science (自然)科学
marry 结婚
subject 题目;
- I.安装Memcahce 1. 安装依赖包libevent Memcache需要安装libevent,所以安装前可能需要执行 Shell代码 收藏代码
dcj3sjt126com
redis
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
前面3步应该没有问题,主要的问题是执行make的时候,出现了异常。
异常一:
make[2]: cc: Command not found
异常原因:没有安装g
- 并发容器
shuizhaosi888
并发容器
通过并发容器来改善同步容器的性能,同步容器将所有对容器状态的访问都串行化,来实现线程安全,这种方式严重降低并发性,当多个线程访问时,吞吐量严重降低。
并发容器ConcurrentHashMap
替代同步基于散列的Map,通过Lock控制。
&nb
- Spring Security(12)——Remember-Me功能
234390216
Spring SecurityRemember Me记住我
Remember-Me功能
目录
1.1 概述
1.2 基于简单加密token的方法
1.3 基于持久化token的方法
1.4 Remember-Me相关接口和实现
- 位运算
焦志广
位运算
一、位运算符C语言提供了六种位运算符:
& 按位与
| 按位或
^ 按位异或
~ 取反
<< 左移
>> 右移
1. 按位与运算 按位与运算符"&"是双目运算符。其功能是参与运算的两数各对应的二进位相与。只有对应的两个二进位均为1时,结果位才为1 ,否则为0。参与运算的数以补码方式出现。
例如:9&am
- nodejs 数据库连接 mongodb mysql
liguangsong
mongodbmysqlnode数据库连接
1.mysql 连接
package.json中dependencies加入
"mysql":"~2.7.0"
执行 npm install
在config 下创建文件 database.js
- java动态编译
olive6615
javaHotSpotjvm动态编译
在HotSpot虚拟机中,有两个技术是至关重要的,即动态编译(Dynamic compilation)和Profiling。
HotSpot是如何动态编译Javad的bytecode呢?Java bytecode是以解释方式被load到虚拟机的。HotSpot里有一个运行监视器,即Profile Monitor,专门监视
- Storm0.9.5的集群部署配置优化
roadrunners
优化storm.yaml
nimbus结点配置(storm.yaml)信息:
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf
- 101个MySQL 的调节和优化的提示
tomcat_oracle
mysql
1. 拥有足够的物理内存来把整个InnoDB文件加载到内存中——在内存中访问文件时的速度要比在硬盘中访问时快的多。 2. 不惜一切代价避免使用Swap交换分区 – 交换时是从硬盘读取的,它的速度很慢。 3. 使用电池供电的RAM(注:RAM即随机存储器)。 4. 使用高级的RAID(注:Redundant Arrays of Inexpensive Disks,即磁盘阵列
- zoj 3829 Known Notation(贪心)
阿尔萨斯
ZOJ
题目链接:zoj 3829 Known Notation
题目大意:给定一个不完整的后缀表达式,要求有2种不同操作,用尽量少的操作使得表达式完整。
解题思路:贪心,数字的个数要要保证比∗的个数多1,不够的话优先补在开头是最优的。然后遍历一遍字符串,碰到数字+1,碰到∗-1,保证数字的个数大于等1,如果不够减的话,可以和最后面的一个数字交换位置(用栈维护十分方便),因为添加和交换代价都是1