- C++刷题开关灯——蓝桥杯备战D7
一杯冰镇过的杨梅汁呐
c++蓝桥杯算法
解法一:解析一下题目对编号为K的倍数的灯进行操作——这些灯都有一个K因子初始灯的状态为开启,最后灯的状态为关闭——进行了奇数次操作一次操作——一个因子所求的灯需有奇数次操作——这些灯都有奇数个因子所以,我们的解决办法显而易见,找出1~N范围内因子个数为奇数的编号。#include#includeusingnamespacestd;intmain(){vectorresult;intN=0;cin>
- 逻辑课打卡D7
傻妞_fbef
【问题】1、平时看到的各种广告语(比如今年过节不收礼,收礼只收脑白金)和标语属于论证吗?你判断的依据是什么呢?平时看的各种广告,不属于论证。依据:不符合论证的组成。论证的组成包括四个方面:1)结论2)推理3)理由4)前提假设。这则广告的结论是收礼收脑白金,为什么收脑白金,没有推理过程;收脑白金的理由是什么,这句广告词也没给出,暗含的意思可能为脑白金这个礼物不错,具体哪点不错,不清楚。收了脑白金这个
- 感恩日记D7
娇好的女子
感恩清晨醒来,新的一天新的开始,一切都与昨天不一样,谢谢谢谢谢谢感恩阳光普照万物生机勃勃,人人间最美的四月天,谢谢谢谢谢谢感恩宇宙哥哥的送货,我敞开的接受敞开的确认,一切都是最好的安排,一切都是以我的最佳利益方式到来,谢谢谢谢谢谢感恩生命,特别伟大,我感受到了你,谢谢谢谢谢谢感恩我亲爱的爸爸妈妈,我的生门,把我生的这么完整完好完美,充满智慧,谢谢你们,我会在地球开启非常棒的旅程,谢谢谢谢谢谢感恩亲
- D7/罗杰斯号/行动舱/熊小文
知了的树洞
1,听晨间导读,科学还是体验?2,阅读《个人形成论》第一章《个人形成论》的第一章,就提出了整本书的核心内容:作者专业思想的内容及其形成过程。我想,个人形成论,一方面是关于罗杰斯本人的心理学治疗观的形成;而另一方面则是在心理治疗过程中的理念——个人找到自己,成为自己,形成一个全新的自我。在第一章的内容中,罗杰斯谈到了他的成长历程以及学术研究历程,可以看到,他也并非一开始就决定要研究心理学,并且很长一
- 2018第二十六周检视
一汪青水
2018年第二十六周,从2018年6月25日到7月1日。上篇:收获1阅读这周看了《黑天鹅》、《番茄工作法图解》、《财富自由之路》和《让青春成为你的第二次出生》(这本书是陪孩子一起看的),但由于看得太多了,那就没有一本看完的,下周继续。2听书继续听叶曼老师的《道德经》,已经听到五十三章,进度比较慢,这本书对我来说还是很难的。3习惯养成学习投资继续进行,班长已经发了D7,D8的学习资料,下周必须完成作
- 第一周复盘-D7
水滴鱼1
一周音标:1、[θ][ð][f][v]2、[ɑː][r][iː][ɪ]3、[ʃ][ʒ][k]4、[ŋ][n][m]一周句子:ThisistheVOASpecialEnglishHealthReport.Cardio-pulmonaryresuscitation,orCPR,cansavethelifeofsomeonewhosehearthasstopped.Theconditioniscalle
- 51单片机编程基础(C语言):LED点阵屏
爱学C语音的猫
51单片机编程应用51单片机c语言嵌入式硬件
点阵屏介绍类似于数码管,要用到肉眼视觉效应。扫描,才能把每一个LED都能选中,从而显示我们想要的图形,否则,只能一次点亮一个LED,LED使用51单片机点阵屏电路图:实际连接顺序如下图:D0~D7控制行。P07~P00控制列D0~D7连接到74HC595上。OE:OutputEnable,代表输出使能在介绍74HC595模块时,首先介绍一下J24模块,要是想使用74HC595模块,就必须要将OE端
- 高效能人士的七个习惯D7
楠宁缘
知彼解己在这一习惯中,收获更多的是要学会真正地聆听,处于中立、不判断、同理心,与对方同频,用眼去观察面部表情和肢体,用耳去捕捉语言,信息和观点,用心去找到对方的渴望和需求,聆听到背后的深层意思,真正地了解对方,方能达到知彼解己。用心聆听,是一个非常重要的技能。克里希那穆提曾提出“不带观点的聆听,是人类最高的智慧”,非常赞同这个说法,一旦有评判了,对方有可能不愿再与你聊了,有可能你不会有机会了解对方
- D7/100性价比不高的放纵日【减脂100天】
刘伟娜liuxycsu
早饭远方的蛋糕卷是我闺女的,鸡蛋是食堂买的,估计不是今天煮的吧,还是不新鲜,剥的稀烂。牛奶依旧选择了脱脂,我觉得蛋白质是我在薄荷记录后唯一达标甚至超标的,脂肪可能记录方式不准,或者水煮太多,不达标的时候多,可能是有偏差。午餐生完孩子一直对肉类保持旺盛的欲望,而且喜欢撕咬,虽然塞牙塞得一塌糊涂,鱼肉都不能满足我了。早起去买的老公想吃的筒骨,小伙伴说舟山卖的筒骨肉镟得太彻底,肉少,可以吃肩胛骨,肉多,
- 2022-02-04
754f7eb16a46
润忻跨年魔力打卡D7天1.感谢假期让我很放松。2.感谢老公在家的日子放我很轻松。3.感谢孩子自主完成寒假作业,让我很省心。4.感谢我的身体的各个器官正常的允许,让我有一个健康的好身体。5.感谢自己的健康身体让我感受生活的美好。6.感谢手机的强大功能,给生活提供的便利。7.感谢电视陪我度过休闲时光。8.感谢书籍可以补充我的心灵营养。9.感谢自己一直在坚持的路上。10.感谢自己一直相信孩子。
- 感恩日记D7天
雷雷222
感恩我能如约而至的醒来,能呼吸就好幸福。感恩儿子对目前家里窘境的理解。感恩海燕对我一直无条件的支持。感恩苏苏中午请我们全家吃饭。感恩自己,今天亲自下厨,做的菜品居然还可以,没想象中那么难吃。感恩传奇今生每天带给我的动力,感恩空空每天对我的支持。
- 20220922兔兔学院合伙人践行打卡9月D7
大源小毅
早晨7点读书结束,小宝也醒了,我便开始照顾小宝的洗漱穿衣,没有做早饭。今天小宝早上要去幼儿园吃早饭,所以老公也不愿意做,说路上买点吃就可以了,我表示同意。7:30两个人一起去送小宝上幼儿园。幼儿园门口有一些卖早餐的老公说去买包子,我说你只买自己的,不用管我。然而回来之后却说“我给你给你买了一个南瓜粥。”我的回答也是张口就来“不是告诉你不用给我买吗?”“爱吃不吃,你不吃我两个都喝了。”明显语气不对了
- 2019暑假上海杭州之旅D7
虹霄雨霁
8月19日天气晴早餐就酒店的餐厅解决。我们运气好,碰到其他的旅客也想包酒店的游艇,于是三家人刚好凑一部,否则的话要开车到码头坐船,大概要花20多分钟。10点出发游湖。我们还是第一次坐这么豪华的游艇,孩子老人都很开心,船上有服务人员,全程讲解,游艇含三个岛的门票。第一站:月光岛。“月光岛”一名既来之湖中五座岛屿所组成“月亮湾”的外形。月光岛主要的景点是情园,情园以锁文化为主题,其他的感觉就像婚纱摄影
- 人生绕不开一台LCD1602,虽然它比较丑,接的线也比较多。#非标协议【上】
马哥成长记
学习嵌入式笔记51单片机c语言嵌入式硬件学习
人生绕不开一台LCD1602,虽然它比较丑,接的线也比较多。#非标协议【上】前言预备知识1.初识LCD16021.1概述1.2引脚说明1.3和单片机接线说明1.4LCD1602的指令说明2.LCD在一个位置显示一个字母的逻辑2.1在哪里显示2.2显示的是什么2.4如何解决D0到D7既要传输字符位置信息又要传输字符数据信息3.LCD1602写时序分析3.1写时序图与写时序参数3.2写时序图分析4.编
- D7 Elasticsearch-Mongodb(搜索记录)
南城余coding
reggiejava后端
我是南城余!阿里云开发者平台专家博士证书获得者!欢迎关注我的博客!一同成长!一名从事运维开发的worker,记录分享学习。专注于AI,运维开发,windowsLinux系统领域的分享!知识库链接:D7elasticsearch-Mongodb(搜索记录)·语雀引入elasticsearch,是为了更高效率的搜索(模糊搜索,关键字搜索等)可以实现语句分词操作。Mongodb是为了存储搜索历史等消息(
- 《第五六七课 作业主题》 D6/D7/D8大作业
Sunny_ca22
3组-SUNNY拆解案例:小鲸在线【课程名称】第一部分/营销模型一、【模型框架】(1)模型1:超级诱饵“0元转398元会员”选择理由:流量就是生源,就是转化的核心,用户的曝光是教育培训行业运营的必修课,如何寻找公域流量池,通过不同的入口设计“超级诱饵”把公域流量池的人群转化为自己的私域流量,从而获得源源不断的可持续流量体。优缺点:优点:超级诱饵的设计,会低成本引来很多的流量,能够有效的解决可持续获
- 走向文字变现的道路#2018.4.23#每日一问#+那美+D7
那美喵星球
#2018.4.23#每日一问#+那美+D7过去我一直以为能通过文字赚钱的人,一定都是大文豪,至少那些人都离我很遥远,是我遥不可及的对象。第一次觉得文字表现离我竟然这么近,是因为听到范范讲起她签约了某平台,每一篇文章都会带来收入,我才真真切切的感觉,原来文字变现者就在我身边,她们很努力,也清楚自己想要什么。如果我可以像她们学习,未来的某一天,我也会成一位文字变现者。换句话来说,文字变现,只是我们变
- D7阅读《文言文教什么》
深海虾米
(二)文言文是“文章”与“文学”的统一“文章”是指其功能。实用功能,如《陈情表》《出师表》载道,如《劝说》《师说》言志,《兰亭集序》言志与载道的作品有游记散文、抒情小品学习文言文,实质是体认它们所言志、所载道。“文学”是指其表现形式。诗歌与散文是中国古典文学的正宗。,而古典散文作品的文学性,主要体现在语言的锤炼和章法的考究两个方面。学习文言文,研习谋篇布局的章法,体会炼字炼句的艺术是两个重点。,目
- Mybaties入门知识
一个孤独者的仰望
D7)ASYQ))EIO5NYHVW8.png什么是Mybatis?是一个基于JAVA的持久层框架为什么要使用mybatis?mybatis是ORM的一种实现框架,都是对JDBC的封装!在使用JDBC的时候,我们发现开发太麻烦了,什么么都要我们干Hibernate用起来就比较舒服,不用写SQL语句但是不能处理复杂的业务逻辑。但是mybatis既能够处理复杂的业务逻辑。又能在一定程度上解放开发人员的
- 感恩福记D7
安琪_ee87
今天是多么美好的一天啊!昨天酒喝的有点多,起来有点晕Σ(ꉺꉺ),胃口不是很好不过很棒自己给自己热了一瓶八宝粥。吃完看了一会书接着睡,睡醒了接着看书。书中自有黄金屋,书中自有颜如玉,书中自有千钟粟。图片发自App下午去了闺蜜玲钰店里,吃了美味的午餐感谢这美味的午餐吃完,全身很舒服。也感谢玲钰贡献的柚子特别的好吃。图片发自App感谢黄老大带我和玲钰两人去私人影院看电影阿丽塔,感谢玲钰去小店买的零钱。感
- D7
我是豆花
突然,被那首《我曾》打破了内心的平静……曾经,你还在我身边;我曾拥有你的一切……现在的你,真的好吗?
- 晨起漫步——码字D7
不明所以的蜗牛
by妮子今天起的特别早4:58就醒了,起床打卡正好5:00。最近不管多晚睡,早晨都是自然醒,差不多5:00-5:30的样子。今天的训练路程是慢跑10.5公里,但无奈精力不够,睡眠不足跑不动,索性快走,边走边拍。与大自然连接……5:30出门,路上没什么人,偶尔看见跑步的人和清洁工,也没有车,周围都是鸟鸣声,忽高忽低……筼筜湖畔一群老大爷,已稳坐钓鱼啦……忽见湖里波浪四起,细看是鱼儿跳水,其速度之快,
- 我的修行 D7:大道笔直,莫行岔道
马烈视界
01金苹果的故事大体是这样一个故事,不要在意细节:古希腊神话里有一个女英雄,不想结婚,但由于不胜父母所扰,便立下赌约——和男人赛跑,输了就要嫁给赢了他的男人;而所有人都赢不了她的话,她有权保持单身。在赛跑开始后,没有一个男人能够赢过她,直到出现了最后一个。最后一个男人赛跑时,陆续地抛出了三个金苹果,而每一次女英雄都被苹果吸引去捡起它,最终以微弱劣势错失胜利,不得不嫁给了此男人。如果女英雄紧盯终点,
- D7 今天给自己放了个假
贫叨叨
今天给自己放了个假,主要为了放松一下身心,同时补充一下睡眠。为干渴的躯壳再补充补充元气。虽说是放假,但也并不是无所事事的呆在家中。早上9点左右和孩子同时起床,帮他收拾完,自己便开始做做家务、整理商品文件、做做图、查查资料……完全按照自己的进度悠然而处,不去追求速度,只要做到自己满意为止。累了就歇歇,休息好了接着做。好在今天孩子的表现也很好,没怎么缠着我和他玩。自己的时间倒是多了不少。说来我是一个比
- STM32——温湿度LCD显示并上传手机
my hope !
STM32stm32单片机网络
STM32——温湿度LCD显示并上传手机1.LCD1602硬件接线D0~D7–A0~A7RS–B1RW–B2EN–B10V0–GND(正视看不到显示结果,需要侧着看。否则需要接可调电阻)引脚封装RS、RW、EN三根信号线经常需要进行拉高/拉低操作,可以进行封装#defineRS_GPIO_PortGPIOB#defineRW_GPIO_PortGPIOB#defineEN_GPIO_PortGPI
- 井#2018.4.16#每日一问#+邱邱诺航#D7
邱邱诺航
如何选书我觉的成年人看书,多多少少都是带有一定的目的性,不会盲目的选择。1、我会根据自己从事的工作需要什么样的提升,针对性的来选如:销售、营销、产品知识之类书籍。2、在投资理财方面的学习如:《穷爸爸,富爸爸》,《用钱赚钱》等。3、也会根据自己的兴趣爱好来选书,很喜欢文学类如《简.爱》,《三毛全集》。4、偶尔会根据朋友的推荐或者哪个平台推荐的书。
- D7:我弟
龚少90990
写完我哥写我弟时,感觉落差好大,写我哥时一气呵成了2000多字,写我弟时我竟然无从下笔,看来我对我弟太不关心了。01小时候记忆最深刻的是我弟很“勤劳”也很会“算计”。那时晚上做作业,有时候会想吃点零食,家里一般是没有的,需要去店里买,其实也就不到100米的距离,但我和我哥都比较懒,或者晚上冷不愿出去,经常就变成我和我哥均摊出钱,我弟不出钱只负责跑腿去买。然后一起享用美食。我们家的家务——洗碗,是采
- 自驾大别山D7,一日三省
付强_
今天是自驾大别山的第7天,天气开始进入阴雨模式,预报有连续10天的阴雨,这种情况始料未及。加之疫情吃紧,在外的心情忐忑不安,老伴说,算了吧,还是回家。金寨离随州也就300多公里路程,走高速不到4个小时就可以到家,但我们还没有看够大别山腹地的秋色,于是决定先不走高速。从安徽金寨到河南商城、新县,再到湖北大悟、广水200多公里的路程,我们慢慢地边开车边欣赏,沿途的景区是不想去了,只看路边的秋色,就很陶
- 2022-01-09
原来我是我007
《在远远的背后带领》打卡D7读完了"不越界"和"不评判",今天开启"负责任"的阅读。照例顾在脑海里回顾前两章的内容。不越界的尊重是:无论你以何种方式存在,我都一样爱你,哪怕你是以"不存在"的方式存在。不评判是良好沟通的基础,需要较强的共情能力,更重要的是倾听。负责任第一课:很多时候我们混淆了负责任和爱,爱⽆关责任。最好的状态是我们爱孩⼦,责任留给孩⼦⾃⼰承担。作为⽗⺟,我们分不清楚控制和爱,常常以
- 魔力练习D7(2022-8-10)
喜悦人生
扭转逆境的秘诀1.我很感激群主,是你让我每天带着觉察,去发现生活中的美好,真的很感激你,让我养成书写的习惯。2.我很感激美团的优惠,让我团购到优惠的瑜伽体验课,感恩瑜伽老师带领我们练习,并在结束后带领我们做冥想,让我身体得到了很好的放松,让我很投入的工作。3.我很感激我的老公,天天陪伴孩子,对于我的包容和接纳,感恩心灵书写,让我去看到更多,让我去感受,感知更多。4.感恩我的同事,陪伴我一起去练瑜伽
- [黑洞与暗粒子]没有光的世界
comsci
无论是相对论还是其它现代物理学,都显然有个缺陷,那就是必须有光才能够计算
但是,我相信,在我们的世界和宇宙平面中,肯定存在没有光的世界....
那么,在没有光的世界,光子和其它粒子的规律无法被应用和考察,那么以光速为核心的
&nbs
- jQuery Lazy Load 图片延迟加载
aijuans
jquery
基于 jQuery 的图片延迟加载插件,在用户滚动页面到图片之后才进行加载。
对于有较多的图片的网页,使用图片延迟加载,能有效的提高页面加载速度。
版本:
jQuery v1.4.4+
jQuery Lazy Load v1.7.2
注意事项:
需要真正实现图片延迟加载,必须将真实图片地址写在 data-original 属性中。若 src
- 使用Jodd的优点
Kai_Ge
jodd
1. 简化和统一 controller ,抛弃 extends SimpleFormController ,统一使用 implements Controller 的方式。
2. 简化 JSP 页面的 bind, 不需要一个字段一个字段的绑定。
3. 对 bean 没有任何要求,可以使用任意的 bean 做为 formBean。
使用方法简介
- jpa Query转hibernate Query
120153216
Hibernate
public List<Map> getMapList(String hql,
Map map) {
org.hibernate.Query jpaQuery = entityManager.createQuery(hql);
if (null != map) {
for (String parameter : map.keySet()) {
jp
- Django_Python3添加MySQL/MariaDB支持
2002wmj
mariaDB
现状
首先,
[email protected] 中默认的引擎为 django.db.backends.mysql 。但是在Python3中如果这样写的话,会发现 django.db.backends.mysql 依赖 MySQLdb[5] ,而 MySQLdb 又不兼容 Python3 于是要找一种新的方式来继续使用MySQL。 MySQL官方的方案
首先据MySQL文档[3]说,自从MySQL
- 在SQLSERVER中查找消耗IO最多的SQL
357029540
SQL Server
返回做IO数目最多的50条语句以及它们的执行计划。
select top 50
(total_logical_reads/execution_count) as avg_logical_reads,
(total_logical_writes/execution_count) as avg_logical_writes,
(tot
- spring UnChecked 异常 官方定义!
7454103
spring
如果你接触过spring的 事物管理!那么你必须明白 spring的 非捕获异常! 即 unchecked 异常! 因为 spring 默认这类异常事物自动回滚!!
public static boolean isCheckedException(Throwable ex)
{
return !(ex instanceof RuntimeExcep
- mongoDB 入门指南、示例
adminjun
javamongodb操作
一、准备工作
1、 下载mongoDB
下载地址:http://www.mongodb.org/downloads
选择合适你的版本
相关文档:http://www.mongodb.org/display/DOCS/Tutorial
2、 安装mongoDB
A、 不解压模式:
将下载下来的mongoDB-xxx.zip打开,找到bin目录,运行mongod.exe就可以启动服务,默
- CUDA 5 Release Candidate Now Available
aijuans
CUDA
The CUDA 5 Release Candidate is now available at http://developer.nvidia.com/<wbr></wbr>cuda/cuda-pre-production. Now applicable to a broader set of algorithms, CUDA 5 has advanced fe
- Essential Studio for WinRT网格控件测评
Axiba
JavaScripthtml5
Essential Studio for WinRT界面控件包含了商业平板应用程序开发中所需的所有控件,如市场上运行速度最快的grid 和chart、地图、RDL报表查看器、丰富的文本查看器及图表等等。同时,该控件还包含了一组独特的库,用于从WinRT应用程序中生成Excel、Word以及PDF格式的文件。此文将对其另外一个强大的控件——网格控件进行专门的测评详述。
网格控件功能
1、
- java 获取windows系统安装的证书或证书链
bewithme
windows
有时需要获取windows系统安装的证书或证书链,比如说你要通过证书来创建java的密钥库 。
有关证书链的解释可以查看此处 。
public static void main(String[] args) {
SunMSCAPI providerMSCAPI = new SunMSCAPI();
S
- NoSQL数据库之Redis数据库管理(set类型和zset类型)
bijian1013
redis数据库NoSQL
4.sets类型
Set是集合,它是string类型的无序集合。set是通过hash table实现的,添加、删除和查找的复杂度都是O(1)。对集合我们可以取并集、交集、差集。通过这些操作我们可以实现sns中的好友推荐和blog的tag功能。
sadd:向名称为key的set中添加元
- 异常捕获何时用Exception,何时用Throwable
bingyingao
用Exception的情况
try {
//可能发生空指针、数组溢出等异常
} catch (Exception e) {
 
- 【Kafka四】Kakfa伪分布式安装
bit1129
kafka
在http://bit1129.iteye.com/blog/2174791一文中,实现了单Kafka服务器的安装,在Kafka中,每个Kafka服务器称为一个broker。本文简单介绍下,在单机环境下Kafka的伪分布式安装和测试验证 1. 安装步骤
Kafka伪分布式安装的思路跟Zookeeper的伪分布式安装思路完全一样,不过比Zookeeper稍微简单些(不
- Project Euler
bookjovi
haskell
Project Euler是个数学问题求解网站,网站设计的很有意思,有很多problem,在未提交正确答案前不能查看problem的overview,也不能查看关于problem的discussion thread,只能看到现在problem已经被多少人解决了,人数越多往往代表问题越容易。
看看problem 1吧:
Add all the natural num
- Java-Collections Framework学习与总结-ArrayDeque
BrokenDreams
Collections
表、栈和队列是三种基本的数据结构,前面总结的ArrayList和LinkedList可以作为任意一种数据结构来使用,当然由于实现方式的不同,操作的效率也会不同。
这篇要看一下java.util.ArrayDeque。从命名上看
- 读《研磨设计模式》-代码笔记-装饰模式-Decorator
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.Fi
- Maven学习(一)
chenyu19891124
Maven私服
学习一门技术和工具总得花费一段时间,5月底6月初自己学习了一些工具,maven+Hudson+nexus的搭建,对于maven以前只是听说,顺便再自己的电脑上搭建了一个maven环境,但是完全不了解maven这一强大的构建工具,还有ant也是一个构建工具,但ant就没有maven那么的简单方便,其实简单点说maven是一个运用命令行就能完成构建,测试,打包,发布一系列功
- [原创]JWFD工作流引擎设计----节点匹配搜索算法(用于初步解决条件异步汇聚问题) 补充
comsci
算法工作PHP搜索引擎嵌入式
本文主要介绍在JWFD工作流引擎设计中遇到的一个实际问题的解决方案,请参考我的博文"带条件选择的并行汇聚路由问题"中图例A2描述的情况(http://comsci.iteye.com/blog/339756),我现在把我对图例A2的一个解决方案公布出来,请大家多指点
节点匹配搜索算法(用于解决标准对称流程图条件汇聚点运行控制参数的算法)
需要解决的问题:已知分支
- Linux中用shell获取昨天、明天或多天前的日期
daizj
linuxshell上几年昨天获取上几个月
在Linux中可以通过date命令获取昨天、明天、上个月、下个月、上一年和下一年
# 获取昨天
date -d 'yesterday' # 或 date -d 'last day'
# 获取明天
date -d 'tomorrow' # 或 date -d 'next day'
# 获取上个月
date -d 'last month'
#
- 我所理解的云计算
dongwei_6688
云计算
在刚开始接触到一个概念时,人们往往都会去探寻这个概念的含义,以达到对其有一个感性的认知,在Wikipedia上关于“云计算”是这么定义的,它说:
Cloud computing is a phrase used to describe a variety of computing co
- YII CMenu配置
dcj3sjt126com
yii
Adding id and class names to CMenu
We use the id and htmlOptions to accomplish this. Watch.
//in your view
$this->widget('zii.widgets.CMenu', array(
'id'=>'myMenu',
'items'=>$this-&g
- 设计模式之静态代理与动态代理
come_for_dream
设计模式
静态代理与动态代理
代理模式是java开发中用到的相对比较多的设计模式,其中的思想就是主业务和相关业务分离。所谓的代理设计就是指由一个代理主题来操作真实主题,真实主题执行具体的业务操作,而代理主题负责其他相关业务的处理。比如我们在进行删除操作的时候需要检验一下用户是否登陆,我们可以删除看成主业务,而把检验用户是否登陆看成其相关业务
- 【转】理解Javascript 系列
gcc2ge
JavaScript
理解Javascript_13_执行模型详解
摘要: 在《理解Javascript_12_执行模型浅析》一文中,我们初步的了解了执行上下文与作用域的概念,那么这一篇将深入分析执行上下文的构建过程,了解执行上下文、函数对象、作用域三者之间的关系。函数执行环境简单的代码:当调用say方法时,第一步是创建其执行环境,在创建执行环境的过程中,会按照定义的先后顺序完成一系列操作:1.首先会创建一个
- Subsets II
hcx2013
set
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not conta
- Spring4.1新特性——Spring缓存框架增强
jinnianshilongnian
spring4
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- shell嵌套expect执行命令
liyonghui160com
一直都想把expect的操作写到bash脚本里,这样就不用我再写两个脚本来执行了,搞了一下午终于有点小成就,给大家看看吧.
系统:centos 5.x
1.先安装expect
yum -y install expect
2.脚本内容:
cat auto_svn.sh
#!/bin/bash
- Linux实用命令整理
pda158
linux
0. 基本命令 linux 基本命令整理
1. 压缩 解压 tar -zcvf a.tar.gz a #把a压缩成a.tar.gz tar -zxvf a.tar.gz #把a.tar.gz解压成a
2. vim小结 2.1 vim替换 :m,ns/word_1/word_2/gc  
- 独立开发人员通向成功的29个小贴士
shoothao
独立开发
概述:本文收集了关于独立开发人员通向成功需要注意的一些东西,对于具体的每个贴士的注解有兴趣的朋友可以查看下面标注的原文地址。
明白你从事独立开发的原因和目的。
保持坚持制定计划的好习惯。
万事开头难,第一份订单是关键。
培养多元化业务技能。
提供卓越的服务和品质。
谨小慎微。
营销是必备技能。
学会组织,有条理的工作才是最有效率的。
“独立
- JAVA中堆栈和内存分配原理
uule
java
1、栈、堆
1.寄存器:最快的存储区, 由编译器根据需求进行分配,我们在程序中无法控制.2. 栈:存放基本类型的变量数据和对象的引用,但对象本身不存放在栈中,而是存放在堆(new 出来的对象)或者常量池中(字符串常量对象存放在常量池中。)3. 堆:存放所有new出来的对象。4. 静态域:存放静态成员(static定义的)5. 常量池:存放字符串常量和基本类型常量(public static f