- 30天风格练习-DAY2
黄希夷
Day2(重义)在一个周日/一周的最后一天,我来到位于市中心/市区繁华地带的一家购物中心/商场,中心内人很多/熙熙攘攘。我注意到/看见一个独行/孤身一人的年轻女孩/,留着一头引人注目/长过腰际的头发,上身穿一件暗红色/比正红色更深的衣服/穿在身体上的东西。走下扶梯的时候,她摔倒了/跌向地面,在她正要站起来/让身体离开地面的时候,过长/超过一般人长度的头发被支撑身体/躯干的手掌压/按在下面,她赶紧用
- 【仿RabbitMQ消息队列项目day2】使用muduo库中基于protobuf的应用层协议进行通信
月夜星辉雪
rabbitmq网络分布式c++后端服务器linux
一.什么是muduo?muduo库是⼀个基于非阻塞IO和事件驱动的C++高并发TCP网络编程库。简单来理解,它就是对原生的TCP套接字的封装,是一个比socket编程接口更好用的编程库。二.使用muduo库完成一个英译汉翻译服务TranslateServer.hpp:#pragmaonce#include#include#include#include#include"muduo/net/TcpC
- 《一年顶十年》读书笔记Day2/17
设绘喵爱读书April
1-2状态如何成为一个更在状态的狠人?1.你想成为怎样的人如果你想成为强者,你现在就可以向强者靠近,并以强者的标准来要求自己,像强者一样活着。2.你应该远离哪些人总是打击你的人;见不得别人好的人;不思进取混日子的人;过度消耗你的人。3.我会常备哪些法宝读能带来力量的书;励志的电影;能带来力量的音乐;4.墙上挂字有什么用目所能及。稻盛和夫六项精进:付出不亚于任何人的努力;要谦虚,不要骄傲;要每天反省
- 冥想打卡,感受日记day2
百九微
今天很神奇的事,闹钟没有响,我就自然醒了。然后我看到了工作群里老大发的信息,说今天下大雨,大家出行的时候注意安全,可以等到雨小的时候再出门,感觉特别的暖心,特别的为我们着想。今天冥想练习的是守清通——专注力。我听着Rolling的声音指导,迅速调整到正常的坐姿,把专注力从脚到大腿、小腿、胸部、肩部、头部,一个部位一个部位的扫描身体。这时我发现自己的左脚踝有一点点的疼痛,其实也不是疼痛,应该是酸痛。
- 阅读行动营复盘Day2
杨小姐是乖乖但不乖
我就是那个昨晚让海明老师辅导到半夜1点的学员。海明老师指出了我的痛点,今天早上的课程,刚好给了我启示。只听不行,要知行合一,把每一个知识点变成自己的,转化成行动,成长最快的秘籍,不是自己看了什么,而是做了什么。一,关于读书清风阁主六脉神剑:确定主题-收集资料-形成PPT-讲给别人-复盘总结-形成系统。接下来行动:首先将PET父母效能训练相关资料全部搜集起来,做成自己的PPT,然后讲给学员听,讲完之
- 3.21 day2 QT
谢必安灬
qt
自由发挥登录窗口的应用场景,实现一个登录窗口界面要求:1.需要使用Ui界面文件进行界面设计2.ui界面上的组件相关设置,通过代码实现3需要添加适当的动图
- Qt day2
心若向阳,何惧悲伤
嵌入式学习-C++Qtqt开发语言
使用手动连接,将登录框中的取消按钮使用qt4版本的连接到自定义的槽函数中,在自定义的槽函数中调用关闭函数将登录按钮使用qt5版本的连接到自定义的槽函数中,在槽函数中判断ui界面上输入的账号是否为"admin",密码是否为"123456",如果账号密码匹配成功,则输出“登录成功”,并关闭该界面,如果匹配失败,则输出登录失败,并将密码框中的内容清空widget..cpp#include"widget.
- day2 QT
天青白_
qt命令模式开发语言
作业2>在登录界面的登录取消按钮进行以下设置:使用手动连接,将登录框中的取消按钮使用第2种方式的连接到自定义的槽函数中,在自定义的槽函数中调用关闭函数将登录按钮使用qt4版本的连接到自定义的槽函数中,在槽函数中判断ui界面上输入的账号是否为"admin",密码是否为"123456",如果账号密码匹配成功,则输出“登录成功”,并关闭该界面,如果匹配失败,则输出登录失败,并将密码框中的内容清空#inc
- 单调队列与单调栈(集训day2)
Saber—Lily
集训算法
一、目录1、单调队列2、单调栈二、正文1.单调栈题型:(1)给出一个数组找出其中每个数左边第一个比它小(大)的数字830.单调栈-AcWing题库(2)求直方图中最大的矩形(找出每个数左边和右边第一个比它小的数字)131.直方图中最大的矩形-AcWing题库(3)求部分点被破坏的直方图中最大的矩形((2)的变形)1413.矩形牛棚-AcWing题库A-玉蟾宫_hunau暑假集训2——单调栈与单调队
- C语言入门到进阶----Day2(Demo) 15th/Nov./2019
tmoin
主要内容两个小demo的实现Demo1输入工资a元计算输出这个员工交税后的工资a10k超出10k部分交20%的税,超出8k部分交15%的税,超出5k部分交10%的税#includeintmain(){intwage=0;//记录工资intpay=0;//税后工资printf("请输入你的工资:");scanf("%d",&wage);//scanf中"%d"内不要加其他的东西,&记得取地址//计算
- 股票初级课程
呵_2aad
「内容」思维导图➕手抄笔记「时间」Day2「姓名」古玲精怪图片发自App图片发自App图片发自App图片发自App图片发自App
- MySQL数据库学习笔记,知识点和案例整理,期末三天复习完【简单且详细】
编程ID
数据库mysql数据库知识点复习学习笔记
MySQL数据库近三万字学习笔记,超级详细!文章目录MySQL数据库近三万字学习笔记,超级详细!前言一、day1二、day2三、day3前言MySQL数据库知识点和案例总结,非常详细,将近三万字!分成了三天去消化吸收!一、day1MySQL1、sql、DB、DBMS分别是什么,他们之间的关系?DB:DataBase(数据库,数据库实际上在硬盘上以文件的形式存在)DBMS:DataBaseManag
- 365天早读DAY2♥:《人生只有一件事》——真正的助人是修炼自己
橙五条
助人,是人生的大功课。求助者会有2个点:第一、通常不知道真正问题所在,正如一位大师所说,他们害怕的不过是条绳子,而他们认为那是一条蛇,他们的受苦不过是噩梦,痛苦都是虚假的。这种忙该怎么帮呢?第二、我们助人的起心动念是什么?是心软、应付、讨好、内疚、逃避责任、应该……既不够真也不够深,那怎么能有好结果呢?凡是发生的事情都是人的功课,每个人只有通过做功课,我们的生命才能前进。只有生命前进了,同样的事情
- 算法训练营——day2移除元素&有序数组平方
蜡笔小新..
算法学习算法
1移除元素-力扣27(简单)1.1题目:移除元素1给你一个数组nums和一个值val,你需要原地移除所有数值等于val的元素。元素的顺序可能发生改变。然后返回nums中与val不同的元素的数量。假设nums中不等于val的元素数量为k,要通过此题,您需要执行以下操作:更改nums数组,使nums的前k个元素包含不等于val的元素。nums的其余元素和nums的大小并不重要。返回k。用户评测:评测机
- DAY2 爸爸去哪里二!
叶叶隐隐
饼香不怕巷子深一夜好眠,满血复活!老婆说,到唐山一定要吃豆腐脑!豆腐脑!没!找!到!路边有家吊炉肉饼,香味很勾魂儿!大晴天,吃肉饼,一会儿赶路的心情都会美美哒!肉饼便宜大碗,我俩造一顿10元钱,唐山人民很实在(鼓掌,撒花!)吊炉肉饼勾魂的香儿子吃完饭后后对店家烧火的蜂窝煤产生浓厚的兴趣,现在很少能见到我们小时候这些常见的生活必需品了,电视剧里偶尔会亮个相出个镜,祖国在进步,生活在进步!(很主旋律吧
- 微商,也是普通人的机会
慢慢存钱
1204(Day2)分享题目:硕博《K12掘金:普通人的大机会》字数:699听完硕博老师的分享,我只想知道在我们当地有这样的老师吗?如果有,我也想把孩子送去让她教语文的读写说。能遇到一个好老师简直是家长的荣幸。硕博老师能从问题的背后抓住机会,也是利用了自己以前的工作积累,以及真诚育人的理念,打动了很多家长,获得了时代给予普通人的大机会。说到时代给予普通人的机会,微商行业的兴起,更是普通人的机会。有
- 网络编程day2——基本TCP服务器与客户端搭建流程
ficlub
网络编程学习网络服务器github
1.服务器socket->bind->listen->accept->recv->close此篇意在用服务器类比于邮政系统,来进行服务器搭建流程函数的理解,若有需求,务必简单浏览上一篇对于此类比的介绍。网络编程day1——基本概念理解1.1socket——建立套接字(获取设立邮局法律授权,取得营业凭证)#includesys/socket.hintsocket(intdomain,inttype,
- VUE之旅—day2
今日上上签-
前端vue.jsjavascript前端
文章目录Vue生命周期和生命周期的四个阶段created应用—新闻列表渲染mounted应用—进入页面搜索框就获得焦点账单统计(Echarts可视化图表渲染)Vue生命周期和生命周期的四个阶段思考:什么时候可以发送初始化渲染请求?(越早越好)什么时候可以开始操作dom?(至少dom得渲染出来)Vue生命周期:一个Vue实例从创建到销毁的整个过程生命周期四个阶段:①创建②挂载③更新④销毁Vue生命周
- 【学习升维营】Day2——《生活技巧变现的3大小妙招》
清筠
(✿主持人问:什么是生活?1.生下来、活下去生活,我们是独立个体,我们都有自己独立思想和固定的思维模式!我们也是不独立的,我们要和别人打交道!传递价值就是一种非常好的变现如何传递价值?2.和人打交道,如何实现这样两个结果:把思想装进别人的脑袋里,把别人的钱装进自己的口袋里!(✿兴华教练我们是否随时随地可以去传递自己的价值?并且能做出传递这样价值的动作(从自我介绍开始)?科学的自由介绍,只需要一分钟
- #Dairy 82 取舍
夏日de雨倪
2021-01-22晴周五一整天都在纠结要不要退了今天的这门课,完成一个项目不用考试,而且两个德国队友把比较省力的活分给我。但是就是不太想弄这个,又觉得都到现在了,把这课取消了挺可惜。就是在继续做还是放弃之间左右徘徊,反而今天就啥事也不干,ㄟ(▔,▔)ㄏ昨晚弄实验报告弄到一点多还挺晚的,今天也有点累,就缓冲一下,算是放松了。今天拿到了GaußFriend发的日历,还送了一些小零食和免洗洗手液。有点
- 2022-04-09
happylinzi
2022年4月9日读《论语•先进》【原文】11.22:子路问:“闻斯行诸(1)?”子曰:“有父兄在,如之何其闻斯行之?”冉有问:“闻斯行诸?”子曰:“闻斯行之。”公西华曰:“由也问闻斯行诸,子曰‘有父兄在';求也问闻斯行诸,子曰‘闻斯行之'。赤也惑,敢问。”子曰:“求也退,故进之;由也兼人,故退之。”【原句译文】11.22子路问:“一听到有道理的事情就要行动吗?”孔子说:“父亲和兄长都在,怎么能听
- Vue——认识day03_事件
WenJGo
Vue前端HTMLCSSJSvue.jsjavascript前端
此处接上一篇文章Vue——认识day2开始,欢迎大家。目录1.事件处理2.事件修饰符3.键盘事件总结1.事件处理事件的基本使用有以下几步骤:使用v-on:xxx或@xxx来绑定事件,其中xxx是事件的名称。在methods对象中配置事件的回调函数,这样事件就会在vm实例上被触发。在methods中配置的函数不能使用箭头函数,否则this的指向会变,并不是指向vm实例。在methods中配置的函数都
- 越秀day2 军训第一天
牵着我的小尾巴
9/16凌晨一点睡觉早上五点四十五就爬起来了睡的很好六点多少集合来着我忘记了我和xw永远是班里后几个到的嘿嘿上午很热很晒教官发言说“感谢新生的到来让绍兴迎来了久违的大晴天”我恨…我们教官看起来怪好玩的胖胖的跑起来一颠一颠上午没带手机大概十一点多去了食堂去三楼打包了麻辣香锅买了奶茶(乌茶邦的四季春奶茶)味道还不错睡了个午觉下午两点二十分集合在操场上坐了没多久就开始下雨了雨势渐大于是撤回了教室唱了军歌
- 20180514【我在悦读】《活法》精读营day2
moka莫卡
希望是生存的动力书籍:《活法》稻盛和夫字数:稻盛和夫年轻时候故事里的一草一物又让我回忆起了自己在日本的那段时光。我那时是抱着希望奔赴日本的,具体抱着什么希望其实当时的我也不是很清楚,我甚至不记得自己在留日申请书上写的是什么理由,但是心底有一个愿望就是希望学了几年的专业日语不想到最后一句也说不出来。在掉进刚去日本没人来接机的大坑之后,语言学校的校长也算是挺仁慈地帮我找了一间不错的住处。虽然我认为花的
- 阿紫日精进11.21-11.30
流浪阿紫
11.21读《城南旧事》一小段,越读越有感觉社群活动4.日更700字,等等再写一点开会1.5小时,收获很多看书《面纱》1小时今日碎碎念:想做的事情,就要积极去做,不逼自己一下,怎么知道自己是不是能够飞翔。期待明年的起飞[大笑]11.22读《城南旧事》一小段,学习描写社群活动4.日更1200字慢跑30分钟看书《面纱》30分钟陪侄子打卡及拍球练习煮晚餐及家务安排老大语音咨询及旁听学习今日碎碎念:忽然发
- 国庆婚期行
BigBoss_df98
婚假7天,过得飞快,回忆起来,甜蜜不少。day1上午从单位离开,到了惠州的家,简单买了一些必备生活用品,打扫了下卫生,玩了2把游戏。晚上到平潭机场接女票,等了2小时,终于等到女票,短高跟,吊带裤,红T恤,黑直刘海,闪烁着大眼睛,一边打电话与爸妈报平安一边出来,许久未见,不知所言,只能拥抱。day2早上逛西湖,西湖宾馆吃了早茶,沿着百度地图找到了神舟租车,租了辆科鲁兹,去影院看《碟中谍6》,稍事休息
- 台湾行之day2
vinnielor
day2行程:台北市,台北故宫博物馆——士林府邸——台北101今天的行程主要是台北市的景点。台北故宫博物馆有中华文化宝库之誉,馆内的藏品确实令人大开眼界(据说馆内藏品有69万件,虽然数量不及北京故宫博物馆,但馆内的藏品均是精致品)。馆内共有三层,最上层主要展示镇馆三宝和各种古代的石器制品;第二层为官员用品;最下层为皇室专用品。其中镇馆三宝分别是:毛公鼎、翠玉白菜、肉形石。(馆内游客太多,想拍好照片
- 变形金刚Day2
安安_61f2
变形金刚第一周第2天作业。2022年5月28日。第一步:今天我遇到的一个人或一件事或者反省我在过去人生中的某个人或某件事,我和他/她有过“对与错”的冲突我和老公。在我的意识中,一直把老公与抠门和小气联系在一起,已经对她有植入性的偏见。第二步:现在,请你记录下你们冲突的事情,试着换到他/她的角度去看这件事,试着去理解他们思考问题的角度和思路。和自己说:没有自动的成为“对与错”的东西在外面,它取决于谁
- 时间管理师训DAY2:明确主题,反共识思维
爱唠嗑的沐小泽
教练曾经在重庆有一个讲师课,讲完之后遇到一个混沌迷,他跟教练讲,:“如果你能给他讲明白时间管理的即兴原理是什么,就报名。把教练问懵了。后来教练跟这个同学讲,如果时间管理的即兴原理只有两个字那就是:掌控。如果只用一句话那就是:你有多自律就有多自由,从这里可以掌控到非常自由的人生。三句话搞定他就直接刷卡。真正要把时间管理讲好,要往深讲的话需要很多知识储备。接下来我们讲课要有个架构,比如早起。那时候我专
- 赞赏的五种语言
艳_3a66_12写作孵化队
0918(day2)书名:《赞赏的五种语言》字数:1《表扬要具体》吉姆·罗纳是公司里的头牌销售,开朗,积极,亲和力强,属于典型的万人迷。以提成说话的头牌销售自然拥有不菲的收入。但支撑吉姆·罗纳,工作的动力并非钱,而是针对性很强的表扬即肯定的言词——如顾客说的“非常感谢,多亏了你,我们才能顺利完成任务。领导当客户面说的“吉姆是我们公司的大功臣,他能很好地协调客户关系,出色的完成工作。”听到这样的言辞
- SAX解析xml文件
小猪猪08
xml
1.创建SAXParserFactory实例
2.通过SAXParserFactory对象获取SAXParser实例
3.创建一个类SAXParserHander继续DefaultHandler,并且实例化这个类
4.SAXParser实例的parse来获取文件
public static void main(String[] args) {
//
- 为什么mysql里的ibdata1文件不断的增长?
brotherlamp
linuxlinux运维linux资料linux视频linux运维自学
我们在 Percona 支持栏目经常收到关于 MySQL 的 ibdata1 文件的这个问题。
当监控服务器发送一个关于 MySQL 服务器存储的报警时,恐慌就开始了 —— 就是说磁盘快要满了。
一番调查后你意识到大多数地盘空间被 InnoDB 的共享表空间 ibdata1 使用。而你已经启用了 innodbfileper_table,所以问题是:
ibdata1存了什么?
当你启用了 i
- Quartz-quartz.properties配置
eksliang
quartz
其实Quartz JAR文件的org.quartz包下就包含了一个quartz.properties属性配置文件并提供了默认设置。如果需要调整默认配置,可以在类路径下建立一个新的quartz.properties,它将自动被Quartz加载并覆盖默认的设置。
下面是这些默认值的解释
#-----集群的配置
org.quartz.scheduler.instanceName =
- informatica session的使用
18289753290
workflowsessionlogInformatica
如果希望workflow存储最近20次的log,在session里的Config Object设置,log options做配置,save session log :sessions run ;savesessio log for these runs:20
session下面的source 里面有个tracing 
- Scrapy抓取网页时出现CRC check failed 0x471e6e9a != 0x7c07b839L的错误
酷的飞上天空
scrapy
Scrapy版本0.14.4
出现问题现象:
ERROR: Error downloading <GET http://xxxxx CRC check failed
解决方法
1.设置网络请求时的header中的属性'Accept-Encoding': '*;q=0'
明确表示不支持任何形式的压缩格式,避免程序的解压
- java Swing小集锦
永夜-极光
java swing
1.关闭窗体弹出确认对话框
1.1 this.setDefaultCloseOperation (JFrame.DO_NOTHING_ON_CLOSE);
1.2
this.addWindowListener (
new WindowAdapter () {
public void windo
- 强制删除.svn文件夹
随便小屋
java
在windows上,从别处复制的项目中可能带有.svn文件夹,手动删除太麻烦,并且每个文件夹下都有。所以写了个程序进行删除。因为.svn文件夹在windows上是只读的,所以用File中的delete()和deleteOnExist()方法都不能将其删除,所以只能采用windows命令方式进行删除
- GET和POST有什么区别?及为什么网上的多数答案都是错的。
aijuans
get post
如果有人问你,GET和POST,有什么区别?你会如何回答? 我的经历
前几天有人问我这个问题。我说GET是用于获取数据的,POST,一般用于将数据发给服务器之用。
这个答案好像并不是他想要的。于是他继续追问有没有别的区别?我说这就是个名字而已,如果服务器支持,他完全可以把G
- 谈谈新浪微博背后的那些算法
aoyouzi
谈谈新浪微博背后的那些算法
本文对微博中常见的问题的对应算法进行了简单的介绍,在实际应用中的算法比介绍的要复杂的多。当然,本文覆盖的主题并不全,比如好友推荐、热点跟踪等就没有涉及到。但古人云“窥一斑而见全豹”,希望本文的介绍能帮助大家更好的理解微博这样的社交网络应用。
微博是一个很多人都在用的社交应用。天天刷微博的人每天都会进行着这样几个操作:原创、转发、回复、阅读、关注、@等。其中,前四个是针对短博文,最后的关注和@则针
- Connection reset 连接被重置的解决方法
百合不是茶
java字符流连接被重置
流是java的核心部分,,昨天在做android服务器连接服务器的时候出了问题,就将代码放到java中执行,结果还是一样连接被重置
被重置的代码如下;
客户端代码;
package 通信软件服务器;
import java.io.BufferedWriter;
import java.io.OutputStream;
import java.io.O
- web.xml配置详解之filter
bijian1013
javaweb.xmlfilter
一.定义
<filter>
<filter-name>encodingfilter</filter-name>
<filter-class>com.my.app.EncodingFilter</filter-class>
<init-param>
<param-name>encoding<
- Heritrix
Bill_chen
多线程xml算法制造配置管理
作为纯Java语言开发的、功能强大的网络爬虫Heritrix,其功能极其强大,且扩展性良好,深受热爱搜索技术的盆友们的喜爱,但它配置较为复杂,且源码不好理解,最近又使劲看了下,结合自己的学习和理解,跟大家分享Heritrix的点点滴滴。
Heritrix的下载(http://sourceforge.net/projects/archive-crawler/)安装、配置,就不罗嗦了,可以自己找找资
- 【Zookeeper】FAQ
bit1129
zookeeper
1.脱离IDE,运行简单的Java客户端程序
#ZkClient是简单的Zookeeper~$ java -cp "./:zookeeper-3.4.6.jar:./lib/*" ZKClient
1. Zookeeper是的Watcher回调是同步操作,需要添加异步处理的代码
2. 如果Zookeeper集群跨越多个机房,那么Leader/
- The user specified as a definer ('aaa'@'localhost') does not exist
白糖_
localhost
今天遇到一个客户BUG,当前的jdbc连接用户是root,然后部分删除操作都会报下面这个错误:The user specified as a definer ('aaa'@'localhost') does not exist
最后找原因发现删除操作做了触发器,而触发器里面有这样一句
/*!50017 DEFINER = ''aaa@'localhost' */
原来最初
- javascript中showModelDialog刷新父页面
bozch
JavaScript刷新父页面showModalDialog
在页面中使用showModalDialog打开模式子页面窗口的时候,如果想在子页面中操作父页面中的某个节点,可以通过如下的进行:
window.showModalDialog('url',self,‘status...’); // 首先中间参数使用self
在子页面使用w
- 编程之美-买书折扣
bylijinnan
编程之美
import java.util.Arrays;
public class BookDiscount {
/**编程之美 买书折扣
书上的贪心算法的分析很有意思,我看了半天看不懂,结果作者说,贪心算法在这个问题上是不适用的。。
下面用动态规划实现。
哈利波特这本书一共有五卷,每卷都是8欧元,如果读者一次购买不同的两卷可扣除5%的折扣,三卷10%,四卷20%,五卷
- 关于struts2.3.4项目跨站执行脚本以及远程执行漏洞修复概要
chenbowen00
strutsWEB安全
因为近期负责的几个银行系统软件,需要交付客户,因此客户专门请了安全公司对系统进行了安全评测,结果发现了诸如跨站执行脚本,远程执行漏洞以及弱口令等问题。
下面记录下本次解决的过程以便后续
1、首先从最简单的开始处理,服务器的弱口令问题,首先根据安全工具提供的测试描述中发现应用服务器中存在一个匿名用户,默认是不需要密码的,经过分析发现服务器使用了FTP协议,
而使用ftp协议默认会产生一个匿名用
- [电力与暖气]煤炭燃烧与电力加温
comsci
在宇宙中,用贝塔射线观测地球某个部分,看上去,好像一个个马蜂窝,又像珊瑚礁一样,原来是某个国家的采煤区.....
不过,这个采煤区的煤炭看来是要用完了.....那么依赖将起燃烧并取暖的城市,在极度严寒的季节中...该怎么办呢?
&nbs
- oracle O7_DICTIONARY_ACCESSIBILITY参数
daizj
oracle
O7_DICTIONARY_ACCESSIBILITY参数控制对数据字典的访问.设置为true,如果用户被授予了如select any table等any table权限,用户即使不是dba或sysdba用户也可以访问数据字典.在9i及以上版本默认为false,8i及以前版本默认为true.如果设置为true就可能会带来安全上的一些问题.这也就为什么O7_DICTIONARY_ACCESSIBIL
- 比较全面的MySQL优化参考
dengkane
mysql
本文整理了一些MySQL的通用优化方法,做个简单的总结分享,旨在帮助那些没有专职MySQL DBA的企业做好基本的优化工作,至于具体的SQL优化,大部分通过加适当的索引即可达到效果,更复杂的就需要具体分析了,可以参考本站的一些优化案例或者联系我,下方有我的联系方式。这是上篇。
1、硬件层相关优化
1.1、CPU相关
在服务器的BIOS设置中,可
- C语言homework2,有一个逆序打印数字的小算法
dcj3sjt126com
c
#h1#
0、完成课堂例子
1、将一个四位数逆序打印
1234 ==> 4321
实现方法一:
# include <stdio.h>
int main(void)
{
int i = 1234;
int one = i%10;
int two = i / 10 % 10;
int three = i / 100 % 10;
- apacheBench对网站进行压力测试
dcj3sjt126com
apachebench
ab 的全称是 ApacheBench , 是 Apache 附带的一个小工具 , 专门用于 HTTP Server 的 benchmark testing , 可以同时模拟多个并发请求。前段时间看到公司的开发人员也在用它作一些测试,看起来也不错,很简单,也很容易使用,所以今天花一点时间看了一下。
通过下面的一个简单的例子和注释,相信大家可以更容易理解这个工具的使用。
- 2种办法让HashMap线程安全
flyfoxs
javajdkjni
多线程之--2种办法让HashMap线程安全
多线程之--synchronized 和reentrantlock的优缺点
多线程之--2种JAVA乐观锁的比较( NonfairSync VS. FairSync)
HashMap不是线程安全的,往往在写程序时需要通过一些方法来回避.其实JDK原生的提供了2种方法让HashMap支持线程安全.
- Spring Security(04)——认证简介
234390216
Spring Security认证过程
认证简介
目录
1.1 认证过程
1.2 Web应用的认证过程
1.2.1 ExceptionTranslationFilter
1.2.2 在request之间共享SecurityContext
1
- Java 位运算
Javahuhui
java位运算
// 左移( << ) 低位补0
// 0000 0000 0000 0000 0000 0000 0000 0110 然后左移2位后,低位补0:
// 0000 0000 0000 0000 0000 0000 0001 1000
System.out.println(6 << 2);// 运行结果是24
// 右移( >> ) 高位补"
- mysql免安装版配置
ldzyz007
mysql
1、my-small.ini是为了小型数据库而设计的。不应该把这个模型用于含有一些常用项目的数据库。
2、my-medium.ini是为中等规模的数据库而设计的。如果你正在企业中使用RHEL,可能会比这个操作系统的最小RAM需求(256MB)明显多得多的物理内存。由此可见,如果有那么多RAM内存可以使用,自然可以在同一台机器上运行其它服务。
3、my-large.ini是为专用于一个SQL数据
- MFC和ado数据库使用时遇到的问题
你不认识的休道人
sqlC++mfc
===================================================================
第一个
===================================================================
try{
CString sql;
sql.Format("select * from p
- 表单重复提交Double Submits
rensanning
double
可能发生的场景:
*多次点击提交按钮
*刷新页面
*点击浏览器回退按钮
*直接访问收藏夹中的地址
*重复发送HTTP请求(Ajax)
(1)点击按钮后disable该按钮一会儿,这样能避免急躁的用户频繁点击按钮。
这种方法确实有些粗暴,友好一点的可以把按钮的文字变一下做个提示,比如Bootstrap的做法:
http://getbootstrap.co
- Java String 十大常见问题
tomcat_oracle
java正则表达式
1.字符串比较,使用“==”还是equals()? "=="判断两个引用的是不是同一个内存地址(同一个物理对象)。 equals()判断两个字符串的值是否相等。 除非你想判断两个string引用是否同一个对象,否则应该总是使用equals()方法。 如果你了解字符串的驻留(String Interning)则会更好地理解这个问题。
- SpringMVC 登陆拦截器实现登陆控制
xp9802
springMVC
思路,先登陆后,将登陆信息存储在session中,然后通过拦截器,对系统中的页面和资源进行访问拦截,同时对于登陆本身相关的页面和资源不拦截。
实现方法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23