- 小胖爱交友:答谢义薄云天
小胖666_4771
图片发自App何必客气义薄云天你好我我也好何必客气义薄云天亦是朋友些许小事何必苦恼何必苦恼同甘共苦义薄云天你好茫茫人海芸芸众生既能相遇,何必客气义薄云天你好何必客气人生能得几回醉,既能相遇,何必苦恼义薄云天劝君莫客气你好我也好文采有限真心感谢闲言碎语敬请谅解人生难得几回醉义薄云天可好图片发自App大姐何必烦恼跳跳舞就好
- 好文摘录
晓丹的日更挑战
王石湖畔大学演讲:内容来源:本文为2018年王石在湖畔大学的演讲,整理自机械工业出版社书籍《本质》我给自己定位叫“顽石”,一块顽固不化的顽石人家说,一般年轻人都是有棱有角,非常坚硬,随着生活的磨砺,慢慢成熟都变得圆滑了。我今年67岁,我觉得自己依然不圆滑。我很庆幸,因为我相信当我感到自己变得圆滑的时候,这一生就没有什么值得去奋斗、去好奇、去探索了。所以一直到现在,从某种角度来讲,我还是一个有棱角的
- 卓越笔触:打造高质量文章的艺术与科学
京东云开发者
大数据人工智能运维
引言在信息爆炸的时代,写作不仅是一种表达,更是一种影响力的体现。无论是为了提升个人品牌,还是为了增强团队的技术氛围,或是推动集团的技术影响力,一篇高质量的文章都能起到关键作用。在这次分享中,我将探讨为什么我们需要写好文章,并提供实用的技巧,帮助大家提升文章的质量。希望这次分享能激发大家的写作热情,共同推动技术交流与知识传播的进程。一:我们为什么要写一篇好文章?1、对于集团2024年巴黎奥运会已结束
- 追《我的父亲母亲》有感(一)
梦在那远方
终于看完了电视剧《我的父亲母亲》,心里是一种说不出的感觉。乡下妹子翠花,淳朴善良、泼辣直率,喜欢上了城里来的下乡知青陈志,从此眼里心里只有他。为了嫁给他,央求父母退掉已经定好的亲事;为了他能毫无负担地去上大学,甘心情愿在家替他侍奉双亲,端屎接尿床前屋后地忙活从未有过怨言;为了替他父亲弄清楚历史,大字不识都敢只身一人闯南京找证人;为了他安心工作,几十年如一日地为家庭为孩子操劳。陈志,爱看星星爱好文学
- 《落花水面皆文章》:文章写出来多读几遍!
静言君
齐帆齐微课第10篇,2061字数,共累积16263字数一篇文章写好了,怎样修改呢?有不少关于修改文章的方法,比如写好的文章不要回头读,先放上一天两天再修改。这样能找到当时看不到的问题,然后调整,修改,删减,作出一篇好文章。今天介绍另外一种方法,读出来!把文章多读几遍,有问题的地方就自己浮现出来了。叶圣陶老先生总结了他几十年的写作经验,写下这本书,《落花水面皆文章:叶圣陶谈写作》。这本书从五个方面对
- 每晚十一点半
南荒菇凉
今天是打卡的第十二天,开始写关于投稿相关的公号定位了。昨天明白了一个道理,好文章都是一步一笔修改出来的,而初稿往往都是需要更改的。修改初稿也是提高写作、定位主题、阐述论点能力的重要方式。虽然时间过去快半个月了,但是自己却是满满的收获。如果不去尝试,那永远就活在遐想当中;如果不踏出第一步,那永远就停留在期待当中;如果不逼自己,那永远都不会了解自己。加入的这段时间,虽然很忙碌,每天的作息时间被扰乱了,
- 取舍后的简,直达中道(深度好文)
作家雪漠
我在小说《西夏的苍狼》中写道:“紫晓说,黑歌手改变她最大的,是帮助她学会了分辨与选择,那是她一生中最有力的挽救。他用自己人生的历练,告诉了她什么是世上最美好最值得珍惜的。那真是大师的行为艺术。”实际上,对于作家来说,如何取舍,也是最应该注重的东西。取舍中,又以“舍”更为重要。在生活中,你首先就要学会舍,舍去一些跟梦想、跟你的目标无关的东西。这“舍”,是非常必要的,它包括舍去一些正常人的享受。当你达
- 2021-3-25日记——关于很少关注简友
宋会兵
今天是什么日子起床:6:15就寝:天气:晴好。没有翻看去年同时期日记,我总觉得今年柳芽和丁香比前几年都要抽绿早好几天。心情:纪念日:任务清单昨日完成的任务,最重要的三件事:改进:习惯养成:我前面的文章也说过,从博客到美篇到头条,以及,我关注的好友很少。可能很多简友会有“来而无往非礼也”的疑惑。多包涵,别着急,如果你足够有耐心。中,我关注的好友特点:①同龄的熟悉的爱好文学者,比如《七七蛇缘》《197
- 什么样的文艺青年最让人讨厌?
侯先森爱思考
从狭义上来看,文青是指爱好文学的青年,叫文学青年;从广义上来看,文青是指喜欢文学艺术的青年,叫文艺青年。而文艺青年又分为真文艺青年和伪文艺青年。即使现在的文艺青年是被调侃的对象,但文艺青年并不讨厌,真正讨厌的是那些伪文艺青年。马未都曾在节目中举过这样一个例子,来区分真文艺青年和伪文艺青年。他说:“如果在咖啡厅里玩手机,回家在床上看书,这就是真文艺青年;如果在咖啡厅看书,回家在床上玩手机,能玩手机就
- 2020-10-27
与美好同行
昨天谈到教学《少年中国说》一课,老师们都说这课文不长、好背,但是教起来很费时间。我们当中还没有哪个老师是两课时完成的,最少的用三个课时,也很有三课时完不成的,我也是。课文得读得背得检查,要交流资料要理解课文内容要检测效果,是好文是美文是文言文需默写。特别是谈到第二自然段的教学时,王红玉老师说:“不光要读要理解,还得引领学生明白每句话的象征意义,‘干将’这个词这里还包含有故事,再给学生讲讲‘干将莫邪
- 三种结尾方法,写出好文章
珊果果
用凤头、猪肚、貂尾形容一篇好文章的结构。可见结尾在一篇文章中的作用是举足轻重的。下面,我们谈谈文章三种结尾方法。01)总结点题法总结点题法,是最常用的一种方法,主要对全篇内容进行总结,重申作者的观点,对文章的主题进行开华、拔高,也让文章更有深度、更有说服力。如《清华附小校长:最好的家庭教育要先放糖,再放盐再补钙》中,作者开头讲了家庭教育就像一锅浓汤,必须五味俱全,营养全面,才能给孩子最好的滋养。最
- 揭秘......文案策划的经典公式
张聪专注成交文案
你知道吗?无论说你学习任何的东西,你都要明确一个关键点,那就是.....你一定一定要掌握最核心最关键的底层逻辑,因为只有你掌握了最核心最关键的底层逻辑之后你将会神奇的发现,那就是对于你来讲,一切的一切都会变得非常非常的简单你就明白为什么你写不好文案?你写不好文案的原因究竟是什么?你要明确以及明白一个关键点,那就是什么呢?那就是你现在所学的文案如果说老师告诉你仅仅只是让你抄写一下文案,仅仅只是帮你修
- 难寻好文章
xmlyly
在今天这个信息发达的时代,真正沉的住气来用心写文章的人寥寥无几。信息爆炸,通讯发达的好处是,文字的曝光率大大提高,人们甚至可以从文字中获利不少。浏览文字的渠道变多了,但我却觉得好文章,好作者却比从前更少了。在碎片式阅读风靡的今天,人们在公共交通上滑着屏幕浏览的大多是些段子,网络小说,娱乐八卦。静下来读书的人变少了,静下心来写作的人也愈发稀有。我希望我还是可以做一个把写作和阅读当作真正的兴趣和愉悦来
- 深度好文:若不努力,我的世界将黯淡无光
奔跑的小格子
与其说这是一篇鸡汤文,倒不如说这是用我的真实经历换来的感悟,与君共勉。我常常在想,为什么身边的所有人都在跟我说你要努力。我想选择努力的原因很简单,我想通过自己的努力换来自己想要的生活,而不只是受困于现实而止步不前。原来的我不懂努力的重要性,每天沉迷各种言情小说无法自拔,论追剧没有人能够超过我,每天醒来的第一件事不是洗漱,而是看手机。纵然手机里没有什么吸引我的东西,可我还是机械的翻阅着它,直到眼睛发
- 美团秋招笔试五道编程题(2021-08-15)
TechGuide
大厂笔试真题解析pythonjavac++spring后端
恭喜发现宝藏!微信搜索公众号【TechGuide】关注更多新鲜好文和互联网大厂的笔经面经。作者@TechGuide【全网同名】点赞再看,养成习惯,您动动手指对原创作者意义非凡文章目录第一道:小美的序列检查(100%)题目描述参考代码:第二道:小美的回文串构建(100%)题目描述参考代码Java版本CPP版本第三道:小美的机器人(100%)题目描述参考代码Java版本CPP版本Python版本第四道
- 【2022-08-13】美团秋招笔试四道编程题
TechGuide
大厂笔试真题解析算法c++数据结构
恭喜发现宝藏!搜索公众号【TechGuide】回复公司名,解锁更多新鲜好文和互联网大厂的笔经面经。作者@TechGuide【全网同名】点赞再看,养成习惯,您动动手指对原创作者意义非凡第一题:魔法外卖题目有给你一系列截止时间和每次送快递需要的时间,需要在时间前把快递送过去,你有超能力可以把快递送达不需要耗费时间,问你至少需要使用几次超能力。思路对时间分段,比如送一个外卖需要5分钟,那么(0,5]之内
- 【Java】第十五届蓝桥杯JavaB组第一道填空题
寸 铁
蓝桥杯上岸每日一题蓝桥杯java
【Java】2024年第十五届蓝桥杯JavaB组第一道填空题大家好我是寸铁总结了一篇【Java】第十五届蓝桥杯JavaB组第一道填空题文章喜欢的小伙伴可以点点关注更多蓝桥杯文章详见专栏JavaB组第一道填空题题解如下:看到这里的小伙伴,恭喜你又掌握了一个技能希望大家能取得胜利,坚持就是胜利我是寸铁!我们下期再见往期好文保姆级教程【保姆级教程】Windows11下go-zero的etcd安装与初步使
- 2021-09-01
现在湖边看鱼游
申请创作者又被拒了,拒了拒了吧,最起码一个事放下了,省的每天回去为了凑字数要写一个多小时的好,至少现在随便更新一下,凑够一百个字就够了。之前也申请过,而且申请过好几次,不出意外的总被拒掉。这次申请时特意在网上搜索下,怎么样不被拒掉,网友们说最好文章能超过八百字,于是就出现了,每天十来点到家还加班更新,毕竟手机上八百字没那么容易。这次认真看了看原因,可能是同一篇文章多处发,多处发怎么啦?还不是紧着先
- 孩子作文写不好,三张图教他写出好文章
徐懿讲书
我们经常可以看到宝妈们在知乎上的提问:“哎呀,老师,我孩子作文好差!气得我额角的皱纹一串接着一串!该怎么办啊?”“啊!天哪,你都不知道,我女儿写作文就跟酿红酒似的,半天挤出几滴!看着我都好着急!”“老师,我儿子作文怎么写都只有四十来分,怎么办?”其实,孩子作文差,写不出,词语干涩,都是可以通过训练来改善的。写作就像一棵树:“观察、想象”是树根,“结构”是枝干,“遣词、造句”是花叶,我们看见的是枝干
- 为什么写一篇文化类“好文章”那么难?
文以人为本
在写下这个标题的同时,我感觉自己已经饿到不行了。仔细一想,才发现已经一整天没吃饭!而我之所以会这样,是因为一直在思考要怎么写一篇文化类的好文章!也不知道我这毛病随谁,一沾到文字的边就挪不动腿……言归正传,还是说说为什么写文化类的“好文章”那么难吧!看见白纸,就会想着怎么下笔……首先,难在写此写,比一般的写要耗时耗力。它还比较挑人。没有积淀的人写不了,没有时间的人写不了,浮躁的人写不了。没有深厚的积
- 山水是文章化境,烟云乃富贵幻形
明月雪时
原文山水是文章化境,烟云乃富贵幻形——《围炉夜话》解析好文章尽揽天下美景美态,读罢或令人心旷神怡,遐想联翩,或令人坐立不安,夜不能寐,如同沉醉在神奇的境界中,与登名山大川、观赏奇水异山有异曲同工之妙。富贵如过眼云烟,生不带来,死不带去。贪图富贵也是很痛苦的,拼命去追求,必然会身心憔悴,疲惫不堪。贪恋之心如作茧自缚,一旦除去,则身心俱得到净化,蔚蓝的天空,朵朵的白云,潺潺的流水,婉转的鸟鸣,哪一样不
- 写作秘籍:公文写作“八步法”
二郎说
图片发自App文章之道,“于无定法中有定法,于有定法中无定法”,对此古人有许多经验,今人也有许多技巧。一篇文稿的起草,大体可分为受命、会意、破题、蓄势、图构、绘事、润色、成文八个阶段。做足这八个阶段的功夫,就不难写出一篇好文稿。第一步:受命,也就是接受任务这一步要解决好的问题是主动接受还是被动接受。实际上,机关每年的文稿任务,是有规可循的。总结起来无非三种:周期性文稿、常规性文稿、随机性文稿。周期
- 计划比实施更重要_记3月8日复盘
燕玲班班
3月8日三大目标:一、复盘文章发布;二、英语;三、社群管理一、复盘文章发布完成情况:已完成,计划时长,3H,实际花费时长,5H左右,未预算到喜马拉雅的消耗时间,因为是第一次注册,需要验证,重新摸索使用花费一些时间,另外复盘文章超字数,进行删减花费了一些时间。导致时间紧凑。二、英语流利说打卡33分钟,早起完成。三、社群管理1、21天自律计划公众号文章编辑发布已完成,寻找好文加编辑花费约50分钟。2、
- upmap的存储池osd坏盘处理问题
奋斗的松鼠
ceph
写在前面喜欢ceph的话欢迎关注奋斗的cepher微信公众号阅读更多好文!在《坏盘处理时osd为什么不要rm》文章中,松鼠哥对比了多组各种osd处理与数据的情况,有一个细节,那就是如果osd在重建前后要保持pg映射的一致性,那么存储池做均衡使用的是crush-compat模式,同时有读者老铁留言,说当存储池使用了upmap模式做存储池均衡的话,osd重建前后将不能保持相同的pg映射。因为松鼠哥对存
- 每月一封信 十年磨一书(第1282天)
痴信不改一书生
叮~咚~你有一封书信等待领取,请看领信说明:1.一个学生与一位作家互通书信多年,不仅练就了一手好文笔,还消除了生活和学习中的许多困惑与烦恼,并且坚定了成为一名作家的决心,这就是《亲爱的汉修先生》一书讲述的美好故事。2.有人评价说,一位汉修先生,胜过十本作文书。3.现实中,同样有一位跟学生互通书信的作家,他是中国版的汉修先生,他的名字叫樵夫,对,就是我!4.每个月,我都会写一封主题书信,给学生们讲故
- 想到哪,写到哪,读者读起来不知所云?提前搭好框架,让你的文章有迹可循!
丁香新语
很多新手写文章,不知道怎么安排文章结构,一般是想到哪写到哪。这造成文章结构混乱,各种观点都凑到一起,给读者造成阅读困难。我们写文章,肯定是想要吸引更多的人来阅读,那么就需要解决这些问题。加拿大作家布兰登•罗伊尔在《一本小小的红色写作书》中,详细的介绍了文章的结构的用法,可以帮助我们安排好文章的顺序,解决结构上的混乱。一、文章的结构文章的结构可以分为三部分:引言、正文和结语。引言部分是用相关内容引出
- 为什么有些企业就是招不到工人呢?(值得反思的深度好文)
枫桥独兽
图片发自App随着我国经济社会发展经历了不平凡的伟大历程,取得了举世瞩目的辉煌成就,向着民族复兴的伟大目标稳健前行,社会中有些企业却面临着招不到人的困境,为什么会出现这种情况呢?小编收集了古今中外多方面的资料,总结出以下几个原因:图片发自App1.经济大环境不好,企业面临困境的时候,企业会和员工谈理想,谈高度,谈无私奉献,教育提倡万众一心,共渡难关,共享美好未来!为了帮企业渡过难关,员工们上下一心
- 21堂写作课复盘第十七课:好文章三要素——坡道、观点和甜点
皮小芸
与人聊天的时候,用故事思维给别人讲道理,有利于对方接受。如果我们把故事思维应用于写文章,文章则会更易读好懂。上课的时候,有的老师在讲台上吐沫横飞,下面的同学却昏昏欲睡。原因在于老师讲的课不够生动形象,不能吸引同学们的注意力。同样的,想要吸引读者,也需要我们精心设计,写什么故事,怎么说,达到什么效果。写出一篇好的拆书稿,需要三个步骤:坡道、观点、甜点。坡道坡道的作用就是引入,吸引大家的注意力,把大家
- 榜样上身法
Sandy时间管理导师
我们在做能量补给时候,有一种叫做精神补给,这个有点抽象但是却非常重要。精神可以是价值感,意义感,使命感,兴趣爱好相关的,当我们做有意义的事情,做自己感兴趣的事情,做有使命感的事情,我们就觉得特别精神,比如分享一篇好文章的时候我能感觉到,对大家的帮助,我感觉我的人生正在做一件特别有意义的事情。这里给大家分享一个方法:榜样上身法:榜样上身法的意思是我们可以模仿一位我们喜欢的女性榜样,学习他们的言行举止
- 好的文章贵在心平气和
一埝
在明代时期,有位叫张畏岩的读书人,此人学识渊博,在读书人中颇具声望。一次,他前去参加乡试,放榜时发现自己榜上无名,便破口大骂试官不长眼睛,不懂得分辨人才。此时,一位过往的路人正微笑着看他,张畏岩看见后大恼,随即将怒火发泄在此人身上。谁知,这人不火也不恼,并说:“好的文章贵在心平气和,公子怒火如此重,又怎么能写出好文章?此外,考取功名全在命,命中无福,文章再好又有何用?”张畏岩急忙问道:“我该如何改
- Java 并发包之线程池和原子计数
lijingyao8206
Java计数ThreadPool并发包java线程池
对于大数据量关联的业务处理逻辑,比较直接的想法就是用JDK提供的并发包去解决多线程情况下的业务数据处理。线程池可以提供很好的管理线程的方式,并且可以提高线程利用率,并发包中的原子计数在多线程的情况下可以让我们避免去写一些同步代码。
这里就先把jdk并发包中的线程池处理器ThreadPoolExecutor 以原子计数类AomicInteger 和倒数计时锁C
- java编程思想 抽象类和接口
百合不是茶
java抽象类接口
接口c++对接口和内部类只有简介的支持,但在java中有队这些类的直接支持
1 ,抽象类 : 如果一个类包含一个或多个抽象方法,该类必须限定为抽象类(否者编译器报错)
抽象方法 : 在方法中仅有声明而没有方法体
package com.wj.Interface;
- [房地产与大数据]房地产数据挖掘系统
comsci
数据挖掘
随着一个关键核心技术的突破,我们已经是独立自主的开发某些先进模块,但是要完全实现,还需要一定的时间...
所以,除了代码工作以外,我们还需要关心一下非技术领域的事件..比如说房地产
&nb
- 数组队列总结
沐刃青蛟
数组队列
数组队列是一种大小可以改变,类型没有定死的类似数组的工具。不过与数组相比,它更具有灵活性。因为它不但不用担心越界问题,而且因为泛型(类似c++中模板的东西)的存在而支持各种类型。
以下是数组队列的功能实现代码:
import List.Student;
public class
- Oracle存储过程无法编译的解决方法
IT独行者
oracle存储过程
今天同事修改Oracle存储过程又导致2个过程无法被编译,流程规范上的东西,Dave 这里不多说,看看怎么解决问题。
1. 查看无效对象
XEZF@xezf(qs-xezf-db1)> select object_name,object_type,status from all_objects where status='IN
- 重装系统之后oracle恢复
文强chu
oracle
前几天正在使用电脑,没有暂停oracle的各种服务。
突然win8.1系统奔溃,无法修复,开机时系统 提示正在搜集错误信息,然后再开机,再提示的无限循环中。
无耐我拿出系统u盘 准备重装系统,没想到竟然无法从u盘引导成功。
晚上到外面早了一家修电脑店,让人家给装了个系统,并且那哥们在我没反应过来的时候,
直接把我的c盘给格式化了 并且清理了注册表,再装系统。
然后的结果就是我的oracl
- python学习二( 一些基础语法)
小桔子
pthon基础语法
紧接着把!昨天没看继续看django 官方教程,学了下python的基本语法 与c类语言还是有些小差别:
1.ptyhon的源文件以UTF-8编码格式
2.
/ 除 结果浮点型
// 除 结果整形
% 除 取余数
* 乘
** 乘方 eg 5**2 结果是5的2次方25
_&
- svn 常用命令
aichenglong
SVN版本回退
1 svn回退版本
1)在window中选择log,根据想要回退的内容,选择revert this version或revert chanages from this version
两者的区别:
revert this version:表示回退到当前版本(该版本后的版本全部作废)
revert chanages from this versio
- 某小公司面试归来
alafqq
面试
先填单子,还要写笔试题,我以时间为急,拒绝了它。。时间宝贵。
老拿这些对付毕业生的东东来吓唬我。。
面试官很刁难,问了几个问题,记录下;
1,包的范围。。。public,private,protect. --悲剧了
2,hashcode方法和equals方法的区别。谁覆盖谁.结果,他说我说反了。
3,最恶心的一道题,抽象类继承抽象类吗?(察,一般它都是被继承的啊)
4,stru
- 动态数组的存储速度比较 集合框架
百合不是茶
集合框架
集合框架:
自定义数据结构(增删改查等)
package 数组;
/**
* 创建动态数组
* @author 百合
*
*/
public class ArrayDemo{
//定义一个数组来存放数据
String[] src = new String[0];
/**
* 增加元素加入容器
* @param s要加入容器
- 用JS实现一个JS对象,对象里有两个属性一个方法
bijian1013
js对象
<html>
<head>
</head>
<body>
用js代码实现一个js对象,对象里有两个属性,一个方法
</body>
<script>
var obj={a:'1234567',b:'bbbbbbbbbb',c:function(x){
- 探索JUnit4扩展:使用Rule
bijian1013
java单元测试JUnitRule
在上一篇文章中,讨论了使用Runner扩展JUnit4的方式,即直接修改Test Runner的实现(BlockJUnit4ClassRunner)。但这种方法显然不便于灵活地添加或删除扩展功能。下面将使用JUnit4.7才开始引入的扩展方式——Rule来实现相同的扩展功能。
1. Rule
&n
- [Gson一]非泛型POJO对象的反序列化
bit1129
POJO
当要将JSON数据串反序列化自身为非泛型的POJO时,使用Gson.fromJson(String, Class)方法。自身为非泛型的POJO的包括两种:
1. POJO对象不包含任何泛型的字段
2. POJO对象包含泛型字段,例如泛型集合或者泛型类
Data类 a.不是泛型类, b.Data中的集合List和Map都是泛型的 c.Data中不包含其它的POJO
 
- 【Kakfa五】Kafka Producer和Consumer基本使用
bit1129
kafka
0.Kafka服务器的配置
一个Broker,
一个Topic
Topic中只有一个Partition() 1. Producer:
package kafka.examples.producers;
import kafka.producer.KeyedMessage;
import kafka.javaapi.producer.Producer;
impor
- lsyncd实时同步搭建指南——取代rsync+inotify
ronin47
1. 几大实时同步工具比较 1.1 inotify + rsync
最近一直在寻求生产服务服务器上的同步替代方案,原先使用的是 inotify + rsync,但随着文件数量的增大到100W+,目录下的文件列表就达20M,在网络状况不佳或者限速的情况下,变更的文件可能10来个才几M,却因此要发送的文件列表就达20M,严重减低的带宽的使用效率以及同步效率;更为要紧的是,加入inotify
- java-9. 判断整数序列是不是二元查找树的后序遍历结果
bylijinnan
java
public class IsBinTreePostTraverse{
static boolean isBSTPostOrder(int[] a){
if(a==null){
return false;
}
/*1.只有一个结点时,肯定是查找树
*2.只有两个结点时,肯定是查找树。例如{5,6}对应的BST是 6 {6,5}对应的BST是
- MySQL的sum函数返回的类型
bylijinnan
javaspringsqlmysqljdbc
今天项目切换数据库时,出错
访问数据库的代码大概是这样:
String sql = "select sum(number) as sumNumberOfOneDay from tableName";
List<Map> rows = getJdbcTemplate().queryForList(sql);
for (Map row : rows
- java设计模式之单例模式
chicony
java设计模式
在阎宏博士的《JAVA与模式》一书中开头是这样描述单例模式的:
作为对象的创建模式,单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。这个类称为单例类。 单例模式的结构
单例模式的特点:
单例类只能有一个实例。
单例类必须自己创建自己的唯一实例。
单例类必须给所有其他对象提供这一实例。
饿汉式单例类
publ
- javascript取当月最后一天
ctrain
JavaScript
<!--javascript取当月最后一天-->
<script language=javascript>
var current = new Date();
var year = current.getYear();
var month = current.getMonth();
showMonthLastDay(year, mont
- linux tune2fs命令详解
daizj
linuxtune2fs查看系统文件块信息
一.简介:
tune2fs是调整和查看ext2/ext3文件系统的文件系统参数,Windows下面如果出现意外断电死机情况,下次开机一般都会出现系统自检。Linux系统下面也有文件系统自检,而且是可以通过tune2fs命令,自行定义自检周期及方式。
二.用法:
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g grou
- 做有中国特色的程序员
dcj3sjt126com
程序员
从出版业说起 网络作品排到靠前的,都不会太难看,一般人不爱看某部作品也是因为不喜欢这个类型,而此人也不会全不喜欢这些网络作品。究其原因,是因为网络作品都是让人先白看的,看的好了才出了头。而纸质作品就不一定了,排行榜靠前的,有好作品,也有垃圾。 许多大牛都是写了博客,后来出了书。这些书也都不次,可能有人让为不好,是因为技术书不像小说,小说在读故事,技术书是在学知识或温习知识,有
- Android:TextView属性大全
dcj3sjt126com
textview
android:autoLink 设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all) android:autoText 如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输
- tomcat虚拟目录安装及其配置
eksliang
tomcat配置说明tomca部署web应用tomcat虚拟目录安装
转载请出自出处:http://eksliang.iteye.com/blog/2097184
1.-------------------------------------------tomcat 目录结构
config:存放tomcat的配置文件
temp :存放tomcat跑起来后存放临时文件用的
work : 当第一次访问应用中的jsp
- 浅谈:APP有哪些常被黑客利用的安全漏洞
gg163
APP
首先,说到APP的安全漏洞,身为程序猿的大家应该不陌生;如果抛开安卓自身开源的问题的话,其主要产生的原因就是开发过程中疏忽或者代码不严谨引起的。但这些责任也不能怪在程序猿头上,有时会因为BOSS时间催得紧等很多可观原因。由国内移动应用安全检测团队爱内测(ineice.com)的CTO给我们浅谈关于Android 系统的开源设计以及生态环境。
1. 应用反编译漏洞:APK 包非常容易被反编译成可读
- C#根据网址生成静态页面
hvt
Web.netC#asp.nethovertree
HoverTree开源项目中HoverTreeWeb.HVTPanel的Index.aspx文件是后台管理的首页。包含生成留言板首页,以及显示用户名,退出等功能。根据网址生成页面的方法:
bool CreateHtmlFile(string url, string path)
{
//http://keleyi.com/a/bjae/3d10wfax.htm
stri
- SVG 教程 (一)
天梯梦
svg
SVG 简介
SVG 是使用 XML 来描述二维图形和绘图程序的语言。 学习之前应具备的基础知识:
继续学习之前,你应该对以下内容有基本的了解:
HTML
XML 基础
如果希望首先学习这些内容,请在本站的首页选择相应的教程。 什么是SVG?
SVG 指可伸缩矢量图形 (Scalable Vector Graphics)
SVG 用来定义用于网络的基于矢量
- 一个简单的java栈
luyulong
java数据结构栈
public class MyStack {
private long[] arr;
private int top;
public MyStack() {
arr = new long[10];
top = -1;
}
public MyStack(int maxsize) {
arr = new long[maxsize];
top
- 基础数据结构和算法八:Binary search
sunwinner
AlgorithmBinary search
Binary search needs an ordered array so that it can use array indexing to dramatically reduce the number of compares required for each search, using the classic and venerable binary search algori
- 12个C语言面试题,涉及指针、进程、运算、结构体、函数、内存,看看你能做出几个!
刘星宇
c面试
12个C语言面试题,涉及指针、进程、运算、结构体、函数、内存,看看你能做出几个!
1.gets()函数
问:请找出下面代码里的问题:
#include<stdio.h>
int main(void)
{
char buff[10];
memset(buff,0,sizeof(buff));
- ITeye 7月技术图书有奖试读获奖名单公布
ITeye管理员
活动ITeye试读
ITeye携手人民邮电出版社图灵教育共同举办的7月技术图书有奖试读活动已圆满结束,非常感谢广大用户对本次活动的关注与参与。
7月试读活动回顾:
http://webmaster.iteye.com/blog/2092746
本次技术图书试读活动的优秀奖获奖名单及相应作品如下(优秀文章有很多,但名额有限,没获奖并不代表不优秀):
《Java性能优化权威指南》