- 509. 斐波那契数(每日一题)
lzyprime
lzyprime博客(github)创建时间:2021.01.04qq及邮箱:2383518170leetcode笔记题目描述斐波那契数,通常用F(n)表示,形成的序列称为斐波那契数列。该数列由0和1开始,后面的每一项数字都是前面两项数字的和。也就是:F(0)=0,F(1)=1F(n)=F(n-1)+F(n-2),其中n>1给你n,请计算F(n)。示例1:输入:2输出:1解释:F(2)=F(1)+
- 01-Git初识
Meereen
Gitgit
01-Git初识概念:一个免费开源,分布式的代码版本控制系统,帮助开发团队维护代码作用:记录代码内容。切换代码版本,多人开发时高效合并代码内容如何学:个人本机使用:Git基础命令和概念多人共享使用:团队开发同一个项目的代码版本管理Git配置用户信息配置:用户名和邮箱,应用在每次提交代码版本时表明自己的身份命令:查看git版本号git-v配置用户名gitconfig--globaluser.name
- [故旧之事]外婆记事(28)
石里夜人
二十七.破四旧本来是庆祝儿童节的日子,因为报纸的一篇文章,让很多家庭陷入了惶恐之中。为了响应这项旨在“破除旧思想、旧文化、旧风俗、旧习惯”的群众运动,街道里的干部给大家开了会,做了总动员,要求大家首先自省,从身边的人开始,自纠自查。院里的街坊们回到家,转悠了一圈,发现并没有什么可做的。这几条街家家都很穷。有的人翻了家里的书,除了把孩子的课本留着,找到仅有的几本旧书,一把火塞进了炉膛里。有的人检查了
- 如何给QQ邮箱自动发邮件?无惧「小爱」下线!代码全公开,两步搞定
AI码上来
AI实战微信人工智能python
前两天,搞了个微信AI小助理-小爱(AI),爸妈玩的不亦乐乎。零风险!零费用!我把AI接入微信群,爸妈玩嗨了,附教程(下)最近一直在迭代中,挖掘小爱的无限潜力:链接丢给它,精华吐出来!微信AI小助理太强了,附完整提示词拥有一个能倾听你心声的「微信AI小助理」,是一种什么体验?小爱打工,你躺平!让「微信AI小助理」接管你的文件处理,一个字:爽!我把多模态大模型接入了「小爱」,痛快来一场「表情包斗图」
- 哪些网站用python开发
hakesashou
python基础知识python
国内的话,知乎,网易,腾讯,搜狐,金山,豆瓣这些属于用Python比较知名的。大型的项目的话,网易的许多游戏,腾讯的某些网站,搜狐的邮箱,金山的测试框架等等都是或多或少使用了Python。YouTube-视频分享网站,在某些功能上使用到python。Quora-社交问答网站。Google-谷歌在很多项目中用python作为网络应用的后端,如GoogleGroups、Gmail、GoogleMaps
- php服务器状态监测,PHP网站状态在线监控源码
傲雪吟霜白如冰
php服务器状态监测
在网上找的一个在线监控源码,比较简单,但是功能也略有不足,例如如果网站挂了就按照监控频率一直发邮件提示,网站恢复之后不会发邮件通知;不能直接填写要监控的网址或者某一页面,适合监控大量的网站或者vps、服务器。最新使用感受:没有发送邮件限制,我设置监控频率是一个小时,一天没管就把邮箱塞满了。如果服务器恢复的话不会专门发邮件提醒。如果只是监控几个站的话有很多免费的监控网站可以使用,只是使用数量上有限制
- 平淡无奇但又与众不同的日子——春节
我是铃儿
千晓教育段老师引领大家学习“心流”写作营训练。今天是第三天打卡练习,主题是《春节的故事》。“心流”顾名思义即是内心真实情感的流动。说到春节,我已经历了40个这样即平凡又别具意义的日子。跟随记忆回溯到小时候,不免有温暖和丝丝感动。说她平淡无奇是因为这一天跟平常一样都是24个小时,说她与众不同是因为赋予她一个名字——春节。在这个日子里人们会尽力做充分的准备,迎接她、祝贺她。记事起家境贫寒,但年会被父母
- Android JetPack架构——结合记事本Demo一篇打通对Sqlite的增删改查结合常用jetpack架构应用
erhtre
程序员androidjetpack架构sqlite
为什么要用Jetpack?========================================================================关于为什么要用Jetpack,我参考了许多的博客和官方文档,开阔了我对Android生态圈的理解和认识,在Jetpack推出前出现的许许多多强大的第三方框架与语言,典型代表无疑是强大的RxJava在Jetpack仍然有许多粉丝在一
- 面试失败的自我反省
无用之大
星期一早上,我主动用邮箱联系上周五面试的HR姐姐。过了半个小时,收到HR姐姐的回复,说我:不好意思没有通过面试的信息,具体原因不清楚。但同时,她给予我一些宝贵的面试经验:今后建议你可以从这些方面改进:1.多跟别人交流自己的想法,提高自己在表达时的音量,语速,语言的运用,可以让让别人感觉到你的自信。2.面试中多与对方进行表情,眼神的互动。3.回答问题时,先思考1-2秒,整理好自己的思路再回答,说话要
- 《买书记历》读书笔记
歪嘴文说
《买书记历》本书以作者及他身边爱书人,准确说是“爱淘书”的人,来记叙他们当年的“淘书”经历。淘旧书,缺本,古书,罕书,有价值的。类似淘古董,转手可出高价或自我珍藏。因书过厚,后部多为跳看。对其中一段记事细看了,知道还有这么一种事。一个人打作者电话说有一批书来看一下,具体数量不好说有60吨吧,作者去看后爬书堆上,看有没有珍品,结果都是杂志。问价,要5千一顿,作者当即要走,说这书卖废品也不值1千1一吨
- 网上商城项目总结 续
猫只i
javaweb电子商城结构
前台1.用户登录注册邮箱验证校验用户名是否存在验证码自动登录2.导航条自定义标签库采用异步读取数据(使用gson将集合转换json数据)Redis服务器3.首页热门商品查询展示4.分类列表分页查询5.商品详情用cookie实现浏览记录6.购物车实现商品添加到购物车商品的查询,添加,修改,删除清空购物车7.提交订单添加订单(订单详情)确认订单(易宝支付)8.我的订单9.Fliter定义权限拦截(提交
- 伊甸园
灰白乐园
从记事起,上帝悄悄地送了我一个花园,可惜花园内没有多少种花。那一年,只有小雏菊在微风中荡漾。校园,我青春待的最久的一个地方。从初入校园到大学毕业,我认识了很多良师益友。从初见时的害羞忐忑到后来的谈天说地,从初见时的冷淡到后来的形影不离,从初见时的讨厌到后来的崇拜。我们不断相识却又不断分别,最遗憾的是我还没谈过恋爱。那几年,康乃馨开的格外娇艳,萱草和百合也争奇斗艳,只有风信子默默地站在一旁。印象最深
- mysql查询慢排查_mysql慢查询排查优化
weixin_39970855
mysql查询慢排查
即时分析:showfullpercesslist;开启慢查询日志,分析日志记录:long_query_time=1log-slow-queries=/data/3306/slow.loglog_queries_not_using_indexes分割日志发送至邮箱加explain查看语句的具体执行方式,并定位在哪些字段加上索引,查看条件字段的唯一值selectcount(distinctcolumn
- 生产者消费者模式_Labview基础之生产者消费者设计模式(事件)
weixin_39532699
生产者消费者模式
1绪论近期,开了一个QQ群,刚开始的目的也是想多拉写软件相关的大神,有问题的时候也可以交流交流。记得当时有个软件在写的时候遇到了一个棘手的问题,outlook邮箱配置账户密码的问题,到现在也没解决,算了,也不是很迫切。2000人群就留在那里爬虫发单吧!建群以后才发现,原来这一块的小白还挺多,总结起来就一个原因:做这个软件的大多数都不是软件出生,都是因为临时要搭建一个上位机平台,匆匆入门......
- 20200126/27
singing阿梅
初二在家,刷疫情。下午二点多,突然接到上班通知。初三上午,投稿《江南诗》。己亥岁未诗稿三首:天空/冬日来信/冬至,想象一场大雪。邮箱立马通知已满。遂微信联系江离老师(中午得到老师回复)。并写《动物凶猛》一首发东方浩。《动物凶猛》文/应红梅当灾难接踵一个诗人又能做些什么难道只有祈祷、静默接受天谴一截漏风之躯也想代这片多舛的土地呼号、发声与其归咎某一种动物凶猛不如认领残忍是所有元凶隔着一条天河我们大声
- 《江湖儿女》许一章子萱&全集目录-在线阅读
海边书楼
《江湖儿女》许一章子萱&全集目录-在线阅读主角:许一章子萱简介:我以前是个社会大哥,现在只是个送外卖的。从我记事起,当过兵的父亲就是个酒蒙子,他酒品很差,喝多了就喜欢揍我妈,常常把我妈揍得鼻青脸肿,后来父母离婚,我为赚学费误入歧途!以前我没得选,现在我只想做个好人!关注微信公众号【冰晶文楼】去回个书号【470】,即可阅读【江湖儿女】小说全文!从我记事起,当过兵的父亲就是个酒蒙子。他酒品很差,喝多了
- 生活记事(五)
快乐的吴二狗
六姨已经10年没和她婆婆说过话了,今天却主动给婆婆包饺子。我妈开玩笑地说:你当年发誓这辈子不搭理她了。六姨叹了口气,无奈地说:还不是因为我那个厉害儿媳,以后可不敢说她藏东西了。月月是六姨家儿媳妇,今年23岁,结婚两年一直没要孩子。每当六姨提起此事,月月总笑呵呵地说趁年轻多挣点钱,生孩子顺其自然。可六姨却认为月月是不想踏实和她儿子扬扬过日子,多挣钱肯定是贴补娘家弟弟,从那以后开始处处提防月月。有次月
- 云手机虚拟服务器地址和端口,手机服务器地址端口号
粢范团
云手机虚拟服务器地址和端口
手机服务器地址端口号内容精选换一换当后台重新配置邮箱服务器等信息后,手机端WeLink一定要退出重新登录一次。我们常用的邮箱,比如:QQ邮箱、163邮箱、腾讯企业邮箱、网易企业邮箱、263企业邮箱等常见邮箱,可以参考常见问题>客户端-邮件里的“常见的IMAP邮箱配置方法”,里面有详细的配置截图。如果是企业自己的邮箱,需要联系自家企业的IT管理员,确定自家企业邮箱的服务私网NAT网关创建后,通过添加
- 不定期
胡须老七
八十年代南方沿海的一个小镇,此镇东部临白沙湖,西南部面临红海湾,土地多属沿海丘陵,有人称此地船地,但地名始终与船家沾不上边。沾得上边的还是周围的村乡,白沙湖周边就多是靠海吃饭的。白沙湖不是湖,而是片靠深海区的滩,这样描述不知是否恰当,对于为何叫白沙湖就有待考证了。我曾经问过当地上了年纪的渔民,他想了想,估计也纳闷着老子在这地方打渔都打了大半辈子还真没想为什么叫湖。后来他干脆就回我打小记事起它就叫白
- 今日记事
剽悍行动营敏敏
下午练车回来就要赶着去学游泳,妹妹开始还坚持要跟着我去的,见我坚持不让她跟,她也不哭闹,很开心地跟我说要抱抱亲亲,还很开心地说祝我学车愉快,体贴的小棉袄。哥哥下午很积极地提前去学校参加篮球训练班,他说,他现在在小班,练习很简单。发了心舒服,晚上就当睡衣穿上了,一看就知道他非常喜欢。晚上去学了两个小时游泳,一来一去到,教练就叫我先下水练习,随后他就教了我如何蹬腿,然后就是我自己一直游,找感觉。
- 生活记事
北伟张
与您分享早课学习收获:1.易经,简单,好学。第一天学习就有收获。包罗万象,万事万物,分成八类,以八卦的形式来呈现。八卦详细归类,三归二,阴阳。二归一,阴阳合一。2.进入一个新的班位上面有人管着你,下面没人听你的,这种情况下守好本位,先求生存,着急是不行的,往蹇生活艰难,工作也很艰难,3.多聆听,多赞叹,多帮扶。4.上善若水,用柔道。5.圣人通过卦象告诉我们,你当位就行了,做好本分,静待天机。时候到
- RabbitMQ 手册 - "Hello World"
乡间IT学者
英文原文链接介绍准备本手册假定RabbitMQ已经安装并且运行在本机,监听了标准的5672端口。如果你使用了不同的主机,端口或者凭证,连接设置也需要相应地调整。从哪里获取帮助如果你在阅读本手册有任何困惑,可以通过邮件列表联系我们RabbitMQ是一个消息代理:它接受并转发消息。你可以认为他是一个邮局:当你在邮箱放了一封你想邮送的信件,你可以确定某个邮递员最终会将邮件送达给收件人。在这个类比中,Ra
- Ubuntu搭建简易Postfix邮箱服务器
嫩草终结者
邮箱服务
本文转载自https://www.linuxdashen.com/ubuntu%E6%90%AD%E5%BB%BA%E7%AE%80%E6%98%93postfix%E9%82%AE%E7%AE%B1%E6%9C%8D%E5%8A%A1%E5%99%A8Ubuntu搭建简易Postfix邮箱服务器最后更新2016年4月20日分类Ubuntu服务器最新文章邮件服务器标签550mailcontentd
- 参加完行动营的那些事儿
向阳小女孩
飓风二连31于小星—北京—风一般的女纸那是春节假期的一天,我还在悠闲地躺在床上,吃着瓜果,看着电视剧。然后手机蹬蹬蹬响了起来,看见一位老师给我发来行动营招募的信息,老师之前就推荐过行动营这个活动,我想,是时候改变一下自己了,于是我毫不犹豫的投了简历,当我看到有这么一项问题:“过去的这一年有什么成就事件么?”我顿时就慌了,左思右想,完了,可能没有。于是,暗下决心,今年不要再碌碌无为了。当看到邮箱发来
- 《用七年改变人生》第522天/共2556天,2022.6.6,反思与情绪
七星录
成功日记今天看了成甲的【好好学习】里面提出了,要进行每天的反思这个概念,自己在上个月的时候,从认知觉醒这本书上就已经知道,然后立马落实到自己的日记中。虽然每天也在坚持写反思日记,但直到今天看了成甲的反思日记,才发现自己写的根本不是反思日记,应该叫记事。反思日记关键三点。我今天什么没有做对?是怎么发现发生的?如果再做一次我会用什么方式?按照这三个模板,进行每天的反思,才可能会成功。另外一条,就是要把
- 我青春里的爱情七之沉沦
浅语藏心
他回来过,又走了不再相信爱情,堕落沉沦图片发自App曾经有多么认真,而今就有多么痛!爱有多深,痛就有多深!身在万丈深渊里,我越是挣扎越是往下陷,所有的力气一点点耗尽,无力嘶喊!我一片空白,任何事情都对我无关紧要。他回来过。那是高三第一学期的冬天,我们放假三天,我室友小萍(化名)说去我家玩,我们走的前一天一起去了网吧,和往常一样登陆QQ,QQ邮箱弹出窗口,来自四永的一封邮件。我好不容易平息的情绪瞬间
- MyBatis 学习笔记(4) 动态SQL
张云飞Vir
1.背景本节讲mybatis应对动态SQL的场景。2.知识动态SQL是指“条件"不固定的SQL,对比于一般的SQL,动态SQL会有一个或者多个条件/参数。比如:场景:查询的时候,如果用户输入了姓名,就按姓名模糊查询;同时又输入了邮箱,就再增加一个条件按姓名+邮箱两个条件查询。传统的拼接SQL很费力,拼接时要确保不能忘记添加必要的空格,还要注意去掉列表最后一个列名的逗号。借助功能强大的基于OGNL的
- 招聘管理系统的毕业设计资料
V_renxb001
基于JavaEE的招聘管理系统毕业设计有程序,毕业论文,数据库文档招聘管理系统中:登录模块:输入正确的用户名,密码即可进入招聘管理系统用户管理模块:包含了求职者管理,企业管理。求职者管理模块:成功登录招聘管理系统之后,点击用户管理求职者管理,显示了用户名称,密码,真实姓名,性别,电话,简历名称,国籍,qq,邮箱,生日,详情等信息。企业管理模块:成功登录招聘管理系统之后,点击用户管理_企业管理,显示
- 今日记事--空调
星辰大海2021
今天一大早,我就骑上自行车到了实验室,开门,开灯,开水。关门。果然,不到半小时,zhengning就来了。用钥匙开门,哈哈哈,有一个傻帽。昨天晚上开着空调睡觉,感觉挺舒服的,早上有些小凉,还行。我进屋后打开了窗户,zhengning却打开了空调,空调在不停地响动,不知道是什么原因,响就响吧,我还想听课呢。先不管它。这会有些迷糊,有些困,那么打起精神来,一会10:30要领东西,好好打起精神来看书吧。
- 如何配置公钥
null or notnull
gitee
首次配置公鑰:1.配置Git用户名和邮箱。gitconfig--globaluser.name"ligdssa"gitconfig--globaluser.email"
[email protected]"2.查看是否配置成功gitconfig--list3.生成创建SSH公钥C:\Users\用户文件夹\.ssh如果这文件夹中有文件,需要先删除(1).执行:ssh-keygen-ted25519-C"Gite
- tomcat基础与部署发布
暗黑小菠萝
Tomcat java web
从51cto搬家了,以后会更新在这里方便自己查看。
做项目一直用tomcat,都是配置到eclipse中使用,这几天有时间整理一下使用心得,有一些自己配置遇到的细节问题。
Tomcat:一个Servlets和JSP页面的容器,以提供网站服务。
一、Tomcat安装
安装方式:①运行.exe安装包
&n
- 网站架构发展的过程
ayaoxinchao
数据库应用服务器网站架构
1.初始阶段网站架构:应用程序、数据库、文件等资源在同一个服务器上
2.应用服务和数据服务分离:应用服务器、数据库服务器、文件服务器
3.使用缓存改善网站性能:为应用服务器提供本地缓存,但受限于应用服务器的内存容量,可以使用专门的缓存服务器,提供分布式缓存服务器架构
4.使用应用服务器集群改善网站的并发处理能力:使用负载均衡调度服务器,将来自客户端浏览器的访问请求分发到应用服务器集群中的任何
- [信息与安全]数据库的备份问题
comsci
数据库
如果你们建设的信息系统是采用中心-分支的模式,那么这里有一个问题
如果你的数据来自中心数据库,那么中心数据库如果出现故障,你的分支机构的数据如何保证安全呢?
是否应该在这种信息系统结构的基础上进行改造,容许分支机构的信息系统也备份一个中心数据库的文件呢?
&n
- 使用maven tomcat plugin插件debug关联源代码
商人shang
mavendebug查看源码tomcat-plugin
*首先需要配置好'''maven-tomcat7-plugin''',参见[[Maven开发Web项目]]的'''Tomcat'''部分。
*配置好后,在[[Eclipse]]中打开'''Debug Configurations'''界面,在'''Maven Build'''项下新建当前工程的调试。在'''Main'''选项卡中点击'''Browse Workspace...'''选择需要开发的
- 大访问量高并发
oloz
大访问量高并发
大访问量高并发的网站主要压力还是在于数据库的操作上,尽量避免频繁的请求数据库。下面简
要列出几点解决方案:
01、优化你的代码和查询语句,合理使用索引
02、使用缓存技术例如memcache、ecache将不经常变化的数据放入缓存之中
03、采用服务器集群、负载均衡分担大访问量高并发压力
04、数据读写分离
05、合理选用框架,合理架构(推荐分布式架构)。
- cache 服务器
小猪猪08
cache
Cache 即高速缓存.那么cache是怎么样提高系统性能与运行速度呢?是不是在任何情况下用cache都能提高性能?是不是cache用的越多就越好呢?我在近期开发的项目中有所体会,写下来当作总结也希望能跟大家一起探讨探讨,有错误的地方希望大家批评指正。
1.Cache 是怎么样工作的?
Cache 是分配在服务器上
- mysql存储过程
香水浓
mysql
Description:插入大量测试数据
use xmpl;
drop procedure if exists mockup_test_data_sp;
create procedure mockup_test_data_sp(
in number_of_records int
)
begin
declare cnt int;
declare name varch
- CSS的class、id、css文件名的常用命名规则
agevs
JavaScriptUI框架Ajaxcss
CSS的class、id、css文件名的常用命名规则
(一)常用的CSS命名规则
头:header
内容:content/container
尾:footer
导航:nav
侧栏:sidebar
栏目:column
页面外围控制整体布局宽度:wrapper
左右中:left right
- 全局数据源
AILIKES
javatomcatmysqljdbcJNDI
实验目的:为了研究两个项目同时访问一个全局数据源的时候是创建了一个数据源对象,还是创建了两个数据源对象。
1:将diuid和mysql驱动包(druid-1.0.2.jar和mysql-connector-java-5.1.15.jar)copy至%TOMCAT_HOME%/lib下;2:配置数据源,将JNDI在%TOMCAT_HOME%/conf/context.xml中配置好,格式如下:&l
- MYSQL的随机查询的实现方法
baalwolf
mysql
MYSQL的随机抽取实现方法。举个例子,要从tablename表中随机提取一条记录,大家一般的写法就是:SELECT * FROM tablename ORDER BY RAND() LIMIT 1。但是,后来我查了一下MYSQL的官方手册,里面针对RAND()的提示大概意思就是,在ORDER BY从句里面不能使用RAND()函数,因为这样会导致数据列被多次扫描。但是在MYSQL 3.23版本中,
- JAVA的getBytes()方法
bijian1013
javaeclipseunixOS
在Java中,String的getBytes()方法是得到一个操作系统默认的编码格式的字节数组。这个表示在不同OS下,返回的东西不一样!
String.getBytes(String decode)方法会根据指定的decode编码返回某字符串在该编码下的byte数组表示,如:
byte[] b_gbk = "
- AngularJS中操作Cookies
bijian1013
JavaScriptAngularJSCookies
如果你的应用足够大、足够复杂,那么你很快就会遇到这样一咱种情况:你需要在客户端存储一些状态信息,这些状态信息是跨session(会话)的。你可能还记得利用document.cookie接口直接操作纯文本cookie的痛苦经历。
幸运的是,这种方式已经一去不复返了,在所有现代浏览器中几乎
- [Maven学习笔记五]Maven聚合和继承特性
bit1129
maven
Maven聚合
在实际的项目中,一个项目通常会划分为多个模块,为了说明问题,以用户登陆这个小web应用为例。通常一个web应用分为三个模块:
1. 模型和数据持久化层user-core,
2. 业务逻辑层user-service以
3. web展现层user-web,
user-service依赖于user-core
user-web依赖于user-core和use
- 【JVM七】JVM知识点总结
bit1129
jvm
1. JVM运行模式
1.1 JVM运行时分为-server和-client两种模式,在32位机器上只有client模式的JVM。通常,64位的JVM默认都是使用server模式,因为server模式的JVM虽然启动慢点,但是,在运行过程,JVM会尽可能的进行优化
1.2 JVM分为三种字节码解释执行方式:mixed mode, interpret mode以及compiler
- linux下查看nginx、apache、mysql、php的编译参数
ronin47
在linux平台下的应用,最流行的莫过于nginx、apache、mysql、php几个。而这几个常用的应用,在手工编译完以后,在其他一些情况下(如:新增模块),往往想要查看当初都使用了那些参数进行的编译。这时候就可以利用以下方法查看。
1、nginx
[root@361way ~]# /App/nginx/sbin/nginx -V
nginx: nginx version: nginx/
- unity中运用Resources.Load的方法?
brotherlamp
unity视频unity资料unity自学unityunity教程
问:unity中运用Resources.Load的方法?
答:Resources.Load是unity本地动态加载资本所用的方法,也即是你想动态加载的时分才用到它,比方枪弹,特效,某些实时替换的图像什么的,主张此文件夹不要放太多东西,在打包的时分,它会独自把里边的一切东西都会集打包到一同,不论里边有没有你用的东西,所以大多数资本应该是自个建文件放置
1、unity实时替换的物体即是依据环境条件
- 线段树-入门
bylijinnan
java算法线段树
/**
* 线段树入门
* 问题:已知线段[2,5] [4,6] [0,7];求点2,4,7分别出现了多少次
* 以下代码建立的线段树用链表来保存,且树的叶子结点类似[i,i]
*
* 参考链接:http://hi.baidu.com/semluhiigubbqvq/item/be736a33a8864789f4e4ad18
* @author lijinna
- 全选与反选
chicony
全选
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>全选与反选</title>
- vim一些简单记录
chenchao051
vim
mac在/usr/share/vim/vimrc linux在/etc/vimrc
1、问:后退键不能删除数据,不能往后退怎么办?
答:在vimrc中加入set backspace=2
2、问:如何控制tab键的缩进?
答:在vimrc中加入set tabstop=4 (任何
- Sublime Text 快捷键
daizj
快捷键sublime
[size=large][/size]Sublime Text快捷键:Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所有打开文件Ctrl+Shift+V:粘贴并格式化Ctrl+D:选择单词,重复可增加选择下一个相同的单词Ctrl+L:选择行,重复可依次增加选择下一行Ctrl+Shift+L:
- php 引用(&)详解
dcj3sjt126com
PHP
在PHP 中引用的意思是:不同的名字访问同一个变量内容. 与C语言中的指针是有差别的.C语言中的指针里面存储的是变量的内容在内存中存放的地址 变量的引用 PHP 的引用允许你用两个变量来指向同一个内容 复制代码代码如下:
<?
$a="ABC";
$b =&$a;
echo
- SVN中trunk,branches,tags用法详解
dcj3sjt126com
SVN
Subversion有一个很标准的目录结构,是这样的。比如项目是proj,svn地址为svn://proj/,那么标准的svn布局是svn://proj/|+-trunk+-branches+-tags这是一个标准的布局,trunk为主开发目录,branches为分支开发目录,tags为tag存档目录(不允许修改)。但是具体这几个目录应该如何使用,svn并没有明确的规范,更多的还是用户自己的习惯。
- 对软件设计的思考
e200702084
设计模式数据结构算法ssh活动
软件设计的宏观与微观
软件开发是一种高智商的开发活动。一个优秀的软件设计人员不仅要从宏观上把握软件之间的开发,也要从微观上把握软件之间的开发。宏观上,可以应用面向对象设计,采用流行的SSH架构,采用web层,业务逻辑层,持久层分层架构。采用设计模式提供系统的健壮性和可维护性。微观上,对于一个类,甚至方法的调用,从计算机的角度模拟程序的运行情况。了解内存分配,参数传
- 同步、异步、阻塞、非阻塞
geeksun
非阻塞
同步、异步、阻塞、非阻塞这几个概念有时有点混淆,在此文试图解释一下。
同步:发出方法调用后,当没有返回结果,当前线程会一直在等待(阻塞)状态。
场景:打电话,营业厅窗口办业务、B/S架构的http请求-响应模式。
异步:方法调用后不立即返回结果,调用结果通过状态、通知或回调通知方法调用者或接收者。异步方法调用后,当前线程不会阻塞,会继续执行其他任务。
实现:
- Reverse SSH Tunnel 反向打洞實錄
hongtoushizi
ssh
實際的操作步驟:
# 首先,在客戶那理的機器下指令連回我們自己的 Server,並設定自己 Server 上的 12345 port 會對應到幾器上的 SSH port
ssh -NfR 12345:localhost:22
[email protected]
# 然後在 myhost 的機器上連自己的 12345 port,就可以連回在客戶那的機器
ssh localhost -p 1
- Hibernate中的缓存
Josh_Persistence
一级缓存Hiberante缓存查询缓存二级缓存
Hibernate中的缓存
一、Hiberante中常见的三大缓存:一级缓存,二级缓存和查询缓存。
Hibernate中提供了两级Cache,第一级别的缓存是Session级别的缓存,它是属于事务范围的缓存。这一级别的缓存是由hibernate管理的,一般情况下无需进行干预;第二级别的缓存是SessionFactory级别的缓存,它是属于进程范围或群集范围的缓存。这一级别的缓存
- 对象关系行为模式之延迟加载
home198979
PHP架构延迟加载
形象化设计模式实战 HELLO!架构
一、概念
Lazy Load:一个对象,它虽然不包含所需要的所有数据,但是知道怎么获取这些数据。
延迟加载貌似很简单,就是在数据需要时再从数据库获取,减少数据库的消耗。但这其中还是有不少技巧的。
二、实现延迟加载
实现Lazy Load主要有四种方法:延迟初始化、虚
- xml 验证
pengfeicao521
xmlxml解析
有些字符,xml不能识别,用jdom或者dom4j解析的时候就报错
public static void testPattern() {
// 含有非法字符的串
String str = "Jamey친ÑԂ
- div设置半透明效果
spjich
css半透明
为div设置如下样式:
div{filter:alpha(Opacity=80);-moz-opacity:0.5;opacity: 0.5;}
说明:
1、filter:对win IE设置半透明滤镜效果,filter:alpha(Opacity=80)代表该对象80%半透明,火狐浏览器不认2、-moz-opaci
- 你真的了解单例模式么?
w574240966
java单例设计模式jvm
单例模式,很多初学者认为单例模式很简单,并且认为自己已经掌握了这种设计模式。但事实上,你真的了解单例模式了么。
一,单例模式的5中写法。(回字的四种写法,哈哈。)
1,懒汉式
(1)线程不安全的懒汉式
public cla