- 什么才是最重要的
聪慧001
2018-05-18那年,她22岁,是文工团的演员,有两只漂亮的大眼睛和两条修长的腿。她的男友,是一个边防战士,在中苏边境上。追求她的人很多,其中有一个高干子弟,人长得英俊挺拔,亦很有才情,而且,想把她留北京。她动心了,面对外界的诱惑,不动心是假的。于是,她想到了分手。正好,那年年底,有去他那个连的慰问演出,她报了名,她要亲口告诉他,别等她了。是风雪漫漫的夜晚出发的,天寒地冻,到达内蒙古时她已经冻
- 每日听书:《论语·学而》(四)
米妮妈妈爱读书
【原文】1.子夏曰:“贤贤易色;事父母,能竭其力;事君,能致其身;与朋友交,言而有信。虽曰未学,吾必谓之学矣。”2.子曰:“君子不重则不威,学则不固。主忠信。无友不如己者;过,则勿惮改。”【译文】1.子夏说:“一个人能够关注内在的好的东西,用对内在的关注替换对外在的执着;侍奉父母,能够竭尽全力;服侍君主,能够不遗余力;同朋友交往,说话诚实恪守信用。这样的人,尽管他自己说没有学习过,我一定说他已经学
- 游园
杨自路
今天是5月2日,月季大观园正式对外开放的第二天。早已听说游人爆满,本不想去凑热闹,正好老家来了亲戚,就一起去了。因为听说景区外面实施交通管制,所以就坐公交去,公交也是爆满,不过还算运气好,刚到站点就赶上了一趟公交。晃晃悠悠走了40多分钟才到,到时已经四点多了。天很热,太阳很毒,游人们兴致高涨。从东园进去,一眼便看见了一个大湖,湖对岸是月季大会主会场,造型像一朵盛开的粉色月季花,很漂亮。我们逆时针一
- 2022-03-01
薇薇林
为什么企业人力资源管理师证书没有用?人力资源管理,俗称HR,是个人就能做吗?在普罗大众的刻板印象里,HR人事就是招招人,发发工资,五点准时下班,闲得很,技术门槛为零。但人力资源管理是包含了六大模块的,说人话就是会定KPI、会做培训体系,上能在招聘宣传中娓娓道来,下能狠心开除问题员工,对内可甜,对外可盐。优秀的大公司都把人力看做第一资源。在汇丰银行,HR是有一票否决权的,即使你通过部门主管的面试、部
- Kubernetes——组件
窒息う
Kuberneteskubernetes容器
文章目录K8S的优势核心架构角色与功能集群图例K8S的优势能管理大量跨主机容器快速部署应用快速扩展应用无缝对接新的应用节省资源,优化硬件资源的使用核心架构master(管理节点)node(计算节点)images(镜像节点)角色与功能Master功能提供集群的控制对集群进行全局决策检测和响应集群事件Master节点核心组件APIServer是整个系统的对外接口,提供客户端和其他组件调用后端元数据存储
- 人为什么要闭上眼睛才能睡着觉?
简什么
从生理的角度去解释:人的眼皮的自然状态是下垂的,即当人的大脑不再控制眼睑(眼皮)肌肉的时候,人的眼睑是下垂的,即人的眼睛是闭着的。在人睡眠的时候,大脑的高级神经中枢是受到抑制的,所以,控制眼睑的肌肉必然是受抑制的,失去了对眼睑肌肉的控制,所以人睡眠的时候是闭着眼睛的。从生物与环境相适应的角度来解释:生物和它所生存的环境是相适应的,在睡眠时,人对外界环境的防备是有限的,而对动物而言,眼睛的作用是无与
- 文章马伊琍离婚:破镜终究难重圆
慕斯姑娘
28日下午,娱乐圈最劲爆的新闻莫过于文章马伊琍在微博宣布离婚,至此两人以相对和平的方式结束了11年的婚姻,这场曾被全国上下熟知的出轨原谅婚姻,终究在5年之后宣布结束,其中滋味,恐怕只有当事人自己最清楚。01此情有憾,好聚好散在此次双方对外宣布分开时,文章发文称“吾爱伊琍,同行半路,一别两宽,余生漫漫,依然亲情守候”。马伊琍发文则为“你我深爱过,努力过,彼此成就过。此情有憾,然无对错。往后,各生欢喜
- Android面试从新手到架构师,一篇解析就够(1),跳槽字节跳动
m0_60607609
程序员androidjava面试后端
5.抽象工厂模式:结构型(7):描述如何将类或对象按某种规则组成更大的结构1.桥接模式:对于两个或以上纬度独立变化的场景,将抽象与具体实现分离,实例:用不同颜色画不同形状2.外观模式:对外有一个统一接口,外部不用关心内部子系统的具体实现,这是"迪米特原则"的典型应用3.适配器模式:改变类的接口,使原本由于接口不匹配而无法一起工作的两个类能够在一工作,实例:RecycleView的Adapter不管
- 如何推进更高水平对外开放,稳住外贸外资基本盘的思考
杨立伟
稳住外贸外资基本盘事关重大。外贸外资是改革开放的重要内容,也是改革开放的重大成果。40多年来,我国的外贸外资快速发展,为我国经济社会的发展作出了重要贡献。主要体现在四个方面:一是。外贸外资成为我国经济增长的重要拉动力;二是外贸外资对我国税收的贡献超过25%;三是外贸外资直接间接就业超过2亿人,其中8000多万为农民工;四是为我国开放型经济发展和融入全球化作出重要贡献。所以说,稳住外贸外资基本盘,事
- 内心满足
微笑向暖f
内心满足就不会去追求外在的东西今天老公值班我一人在家,早上老公说要把饭做好再去上班,我没让....上午发微信,说起了手机,元旦老公没给我说,自己去给我买了手机,说我跟着他受罪了,什么都不舍得买,手机还是用的之前的小屏手机,而且手机也已经出现了问题。而我真的感觉没什么,用着还不耽误,我还可以继续用,虽然有时候学生还会说我还不换手机,但是我却没有一点想换手机的欲望。而且以前我可能对外在的东西有所追求,
- 第五届核磁机器学习班(训练营:2023.6.5~6.17)
茗创科技
茗创科技专注于脑科学数据处理,涵盖(EEG/ERP,fMRI,结构像,DTI,ASL,FNIRS)等,欢迎留言讨论及转发推荐,也欢迎了解茗创科技的脑电课程,数据处理服务及脑科学工作站销售业务,可添加我们的工程师(微信号MCKJ-zhouyi或17373158786)咨询。★课程简介★基于血氧水平依赖的功能磁共振成像(fMRI)技术,利用其数据构建的功能性脑网络后,发现脑并不是一个单纯对外界刺激进行
- 学点金融学——财务报表之现金流量表
静观者
现金流量表反映的是企业的风险状况以及持续经营的能力。现金流量表主要就是对现金流入和流出的描述,按照公司从事的活动分为经营活动、投资活动和筹资活动。经营活动流入的现金有销售、税收以及其他与经营活动有关的现金收入。经营活动流出的现金有采购、人工、税收以及其他与经营活动有关的现金支出。投资活动的现金流量主要是指企业对内对外投资的支出和收到之前投资回报所产生的现金流量。融资活动的现金流量主要是指债务融资或
- SQLite的架构 (The Architecture Of SQLite)
斗大的熊猫
Talkabout
这篇文档描述SQLite库的基本架构。对那些想要理解和修改SQLite的人很有帮助。下面这张图表展示了SQLite的组件和它们之间的关系。接口(Interface)SQLite的很多对外接口的实现函数在main.c,legacy.c和vdbeapi.c。还以一些散落在其他文件中,sqlite3_get_table()函数实现在table.c,sqlite3_mprintf()函数在printf.c
- 生命不能承受之轻
Danae_9a39
不能承受的生命之轻,揭示的是轻与重永恒的两难困境和存在悖论。人,生而在世,都处于一种被遗弃的弃儿状态。只有生活的真切和实在,沉重的必然和背负,宗教般的虔诚和坚忍,或许才能让人离自由的天堂更近。但是,如果到头来清醒地发现,人生不过是一场虚无缥缈的闹剧,那这样的背负和坚守的意义何在?这是一种不能承受的生命之轻。为了摆脱沉重的精神束缚,对外在世界决绝地抱着一种通透超然和玩世不恭的轻松态度,似乎才是真正的
- 剽悍一只猫:剽悍牛人100条(十一)
要瘦的孙小米
76.我们应该对外展示什么?自己的认知优势、人格魅力以及成功案例。77.宁做榴莲,不做香蕉。你得有个性,切莫去迎合所有人。世界这么大,有一部分人非常非常非常喜欢你就够了。如果有人骂你臭,正常。78.进四出六。赚了100,留下40,拿出60,跟对的人(比如帮过你的人、团队成员等等)共享,这样你就能长期赚到钱。79.做阻力小的事。对用户进行筛选,你的服务阻力会小,更有可能跟用户共赢;做自己擅长的事情,
- DMDPC安装部署
丷月亮是指路牌
数据库
1.DMDPC架构DMDPC架构由计划生成节点SP、数据存储节点BP和元数据服务器节点MP三部分组成:1、SP对外提供分布式数据库服务,用户可以登录到任意一个SP节点,获得完整的数据库服务;2、BP负责存储数据,执行SP的调度指令并将执行结果返回给SP;3、MP负责存储元数据并向SP、BP提供元数据服务。本文是在1台Linux虚拟机上通过创建四个实例的方式进行集群搭建.2.DMDPC集群规划DMD
- DM8 分布计算集群(DMDPC)Docker 命令行部署指南
69岁法外狂徒
docker容器数据库分布式
简介DMDPC是一款同时支持在线分析处理(OLAP)和在线事务处理(OLTP)的新型分布式数据库系统。它不仅保留了传统单机数据库的大部分功能,还提供了分布式计算集群所特有的高可用性、高扩展性、高性能、高吞吐量以及对用户透明等高级特性。本文借助命令行工具部署DPC集群。系统架构DMDPC的架构由三个核心组件组成:计划生成节点(SP):对外提供分布式数据库服务,负责接收用户请求、生成执行计划,并调度计
- 【Gateway】网关服务快速上手
小小小小关同学
SpringCloudgatewayjava开发语言
微服务的接口都是直接对外暴露的,可以直接通过外部访问,为了保证对外服务的安全性服务端实现的微服务接口通常都带有一定的权限校验机制,由于使用了微服务,原本一个应用的的多个模块拆分成了多个应用,我们不得不实现多次校验逻辑,当这套逻辑需要修改时,我们需要修改多个应用,加重了开发人员的负担。针对以上问题,一个常用的解决方案就是使用API网关1.什么是API网关API网关(简称网关)也是一个服务,通常是后端
- 【大型网站技术实践】初级篇:借助LVS+Keepalived实现负载均衡
爱代码也爱生活
linux运维系统架构Keepalivedlvs
一、负载均衡:必不可少的基础手段1.1找更多的牛来拉车吧当前大多数的互联网系统都使用了服务器集群技术,集群即将相同服务部署在多台服务器上构成一个集群整体对外提供服务,这些集群可以是Web应用服务器集群,也可以是数据库服务器集群,还可以是分布式缓存服务器集群等等。古人有云:当一头牛拉不动车的时候,不要去寻找一头更强壮的牛,而是用两头牛来拉车。在实际应用中,在Web服务器集群之前总会有一台负载均衡服务
- 戏剧【恶鬼屋】
吴般若
导读:佛说:心魔为贼,隐蔽正道。当我们对外降妖除魔而不得的时候,是不是都忘记了将利刃朝向心里,没有革除心魔的大患呢?两个夜奔深山,想一求恶鬼真相的男子,给我们上了生动的一课。人物:壮士甲壮士乙【薄暮】【二壮士并肩来至山间一屋前,他们卸下重重的行李包裹】壮士甲:是这里了,肯定是这里。壮士乙:没错,地图上千真万确,就是这里。壮士甲:看上去也没什么特别,就这么间小屋,能把他们吓成那样?壮士乙:越简单越不
- Android平台轻量级RTSP服务模块技术接入说明
音视频牛哥
大牛直播SDK轻量级RTSP服务android音视频轻量级RTSP服务AndroidRTSP服务AndroidRTSP服务器安卓RTSP服务器大牛直播SDK
技术背景为满足内网无纸化/电子教室等内网超低延迟需求,避免让用户配置单独的服务器,大牛直播SDK在推送端发布了轻量级RTSP服务SDK。轻量级RTSP服务解决的核心痛点是避免用户或者开发者单独部署RTSP或者RTMP服务,实现本地的音视频数据(如摄像头、麦克风),编码后,汇聚到内置RTSP服务,对外提供可供拉流的RTSPURL,轻量级RTSP服务,适用于内网环境下,对并发要求不高的场景,支持H.2
- 疫情.怡情(之九百零四)
飞扬的雪ing
2022.8.23星期二晴热今天,意大利新增确诊人数是10418,其中拉齐奥是882。意大利国家碳化氢公司埃尼集团近日对外宣布在地中海东北部的世界上最大的油田之一的塞浦路斯海岸发现超过700亿立方米的天然气,使得意大利和欧洲各国松了一口气,腰板也硬起来了。但天然气出口基础设施尚未建成,并不能立刻输入天然气到欧洲大陆,需要一条长约2000公里的天然气管道,从东地中海到意大利的普利亚大区,每年将输送1
- 【2023年】云计算金砖牛刀小试3
geekgold
云计算linux运维容器kubernetes云原生
A场次题目:OpenStack平台部署与运维业务场景:某企业拟使用OpenStack搭建一个企业云平台,用于部署各类企业应用对外对内服务。云平台可实现IT资源池化,弹性分配,集中管理,性能优化以及统一安全认证等。系统结构如下图:企业云平台的搭建使用竞赛平台提供的两台云服务器,配置如下表:设备名称主机名接口ip地址云服务器1controllereth0,eth1私网:192.168.100.10/2
- 有什么是你面试很多次都失败后才知道的?
走玩天下
一、简历一刷新,各种各样的猎头打电话过来,并不是自己多牛逼,只是你的工作经历和要求的大致相符,猎头是销售靠成交提成的,当然不会放过每一个客户。二、骑驴找马和辞职专门找工作两种心态差异太大。裸辞后找工作薪资从10万米高空不断降降一直降到1000米。三、会一门外语,真的很有必要,有些外企虽然对外语有要求,但其实要求并不是那么高,突击一两个月都可以,我曾经面试一家外资公司两轮英语面试,老外有时候听不懂甚
- 当你找到真我,自然不会在乎得失,自然懂得为人处事之道——雪漠《空空之外》
林海洋
一旦认知了真心,又能保任真心,你就自然懂得该如何待人处事,如何做选择了,因为你的起心动念都是利众的,是无我的,是有益于别人的。这是圣者跟凡人最大的区别。这时,你做出的所有选择,你的一言一行,都是心性应对外境时生起的无穷妙用。当真心能生起妙用时,你就不会在乎言行间的得失了,你不会像很多人那样算计,也不会像很多人那样计较,便少了很多烦恼。你的心里永远只装着当下,当下的坦然,当下的宁静,当下的安详,以及
- Docker运行MySql、Redis、Nginx服务
代码路上的不归者_bugz
运维部署dockermysqlredisnginx
Docker运行MySql、Redis、Nginx服务MySql服务访问dockerhubDockerhub搜索Mysql网址:https://registry.hub.docker.com/这里我们用8.0.1这个版本下载MySql镜像#下载镜像dockerpullmysql:8.0.1运行MySql服务(1)启动mysql开放端口映射(3306)指定root用户密码才行-e(environme
- cs寄存器 x86 特权模式_我们一起学RISC-V——01-了解处理器和寄存器
黎贝卡
cs寄存器x86特权模式
本期内容如下:形象认识处理器RISC-V处理器面貌处理器都能做什么RISC-V核对外接口一、形象认识处理器1.1指令集分类处理器指令集分为两类,CISC(ComplexInstructionSetComputers,复杂指令集计算机)和RISC(ReducedInstructionSetComputers,精简指令集计算机)。CISC处理器,当以为美国Intel,AMD的X86处理器为代表,当然中
- 《G先生与J》48-学会独立思考了吗?
关七666
G先生:经过几日,你觉得你学会独立思考了吗?J:没有,只能说对独立思考的概念更清晰了些,对外防忽悠,对内长心智。遇到强盗逻辑的时候,需要提出质疑,用批判性思维看待自己的思考、行为,以及他人。不过呢,批判思维不是事事时时都去用,用宽容的思考待人也非常重要。G先生:很好,建立了概念,也需要去实践。之前我们提过,质疑是第一步,提出问题-搜索信息-分析推理-表达观点。J:那我来做个小练习吧。提出问题:心理
- 华为 NAT配置注意事项
qq_25467441
网络
配置NATServer时,如果内网服务器的私网端口和其对外发布的公网端口同时使用了非知名端口,则需要配置端口映射功能,使设备可以将这些访问非知名端口的报文识别为知名服务的报文。直接将设备接口的地址配置为NATServer的公网地址后,无法通过该接口的地址对设备进行管理,也无法对设备进行Ping探测。如果在实际应用中确实需要将设备接口的地址配置为NATServer的公网地址,又需要通过该接口的地址对
- 标准头像惹的祸
sky_bc59
某君所在公司为当地知名公司,人人以进入公司为荣,年老可保晚年无忧,年轻确保成家不愁。为树立对外良好公众形象,近日公司行政办要求,所有QQ群头像一律改为一寸照片工作照。群内近500人无不相应,不改后果众人心知肚明。一周之内全部达标。两周后,部长向总裁汇报说,以前公司每每发布重大新闻,浏览人数几达3000,可现在即使爆炸性新闻浏览人数难及800,查看朋友圈,转发者众,何哉,底下众人笑而不言。
- 安装数据库首次应用
Array_06
javaoraclesql
可是为什么再一次失败之后就变成直接跳过那个要求
enter full pathname of java.exe的界面
这个java.exe是你的Oracle 11g安装目录中例如:【F:\app\chen\product\11.2.0\dbhome_1\jdk\jre\bin】下的java.exe 。不是你的电脑安装的java jdk下的java.exe!
注意第一次,使用SQL D
- Weblogic Server Console密码修改和遗忘解决方法
bijian1013
Welogic
在工作中一同事将Weblogic的console的密码忘记了,通过网上查询资料解决,实践整理了一下。
一.修改Console密码
打开weblogic控制台,安全领域 --> myrealm -->&n
- IllegalStateException: Cannot forward a response that is already committed
Cwind
javaServlets
对于初学者来说,一个常见的误解是:当调用 forward() 或者 sendRedirect() 时控制流将会自动跳出原函数。标题所示错误通常是基于此误解而引起的。 示例代码:
protected void doPost() {
if (someCondition) {
sendRedirect();
}
forward(); // Thi
- 基于流的装饰设计模式
木zi_鸣
设计模式
当想要对已有类的对象进行功能增强时,可以定义一个类,将已有对象传入,基于已有的功能,并提供加强功能。
自定义的类成为装饰类
模仿BufferedReader,对Reader进行包装,体现装饰设计模式
装饰类通常会通过构造方法接受被装饰的对象,并基于被装饰的对象功能,提供更强的功能。
装饰模式比继承灵活,避免继承臃肿,降低了类与类之间的关系
装饰类因为增强已有对象,具备的功能该
- Linux中的uniq命令
被触发
linux
Linux命令uniq的作用是过滤重复部分显示文件内容,这个命令读取输入文件,并比较相邻的行。在正常情 况下,第二个及以后更多个重复行将被删去,行比较是根据所用字符集的排序序列进行的。该命令加工后的结果写到输出文件中。输入文件和输出文件必须不同。如 果输入文件用“- ”表示,则从标准输入读取。
AD:
uniq [选项] 文件
说明:这个命令读取输入文件,并比较相邻的行。在正常情况下,第二个
- 正则表达式Pattern
肆无忌惮_
Pattern
正则表达式是符合一定规则的表达式,用来专门操作字符串,对字符创进行匹配,切割,替换,获取。
例如,我们需要对QQ号码格式进行检验
规则是长度6~12位 不能0开头 只能是数字,我们可以一位一位进行比较,利用parseLong进行判断,或者是用正则表达式来匹配[1-9][0-9]{4,14} 或者 [1-9]\d{4,14}
&nbs
- Oracle高级查询之OVER (PARTITION BY ..)
知了ing
oraclesql
一、rank()/dense_rank() over(partition by ...order by ...)
现在客户有这样一个需求,查询每个部门工资最高的雇员的信息,相信有一定oracle应用知识的同学都能写出下面的SQL语句:
select e.ename, e.job, e.sal, e.deptno
from scott.emp e,
(se
- Python调试
矮蛋蛋
pythonpdb
原文地址:
http://blog.csdn.net/xuyuefei1988/article/details/19399137
1、下面网上收罗的资料初学者应该够用了,但对比IBM的Python 代码调试技巧:
IBM:包括 pdb 模块、利用 PyDev 和 Eclipse 集成进行调试、PyCharm 以及 Debug 日志进行调试:
http://www.ibm.com/d
- webservice传递自定义对象时函数为空,以及boolean不对应的问题
alleni123
webservice
今天在客户端调用方法
NodeStatus status=iservice.getNodeStatus().
结果NodeStatus的属性都是null。
进行debug之后,发现服务器端返回的确实是有值的对象。
后来发现原来是因为在客户端,NodeStatus的setter全部被我删除了。
本来是因为逻辑上不需要在客户端使用setter, 结果改了之后竟然不能获取带属性值的
- java如何干掉指针,又如何巧妙的通过引用来操作指针————>说的就是java指针
百合不是茶
C语言的强大在于可以直接操作指针的地址,通过改变指针的地址指向来达到更改地址的目的,又是由于c语言的指针过于强大,初学者很难掌握, java的出现解决了c,c++中指针的问题 java将指针封装在底层,开发人员是不能够去操作指针的地址,但是可以通过引用来间接的操作:
定义一个指针p来指向a的地址(&是地址符号):
- Eclipse打不开,提示“An error has occurred.See the log file ***/.log”
bijian1013
eclipse
打开eclipse工作目录的\.metadata\.log文件,发现如下错误:
!ENTRY org.eclipse.osgi 4 0 2012-09-10 09:28:57.139
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContai
- spring aop实例annotation方法实现
bijian1013
javaspringAOPannotation
在spring aop实例中我们通过配置xml文件来实现AOP,这里学习使用annotation来实现,使用annotation其实就是指明具体的aspect,pointcut和advice。1.申明一个切面(用一个类来实现)在这个切面里,包括了advice和pointcut
AdviceMethods.jav
- [Velocity一]Velocity语法基础入门
bit1129
velocity
用户和开发人员参考文档
http://velocity.apache.org/engine/releases/velocity-1.7/developer-guide.html
注释
1.行级注释##
2.多行注释#* *#
变量定义
使用$开头的字符串是变量定义,例如$var1, $var2,
赋值
使用#set为变量赋值,例
- 【Kafka十一】关于Kafka的副本管理
bit1129
kafka
1. 关于request.required.acks
request.required.acks控制者Producer写请求的什么时候可以确认写成功,默认是0,
0表示即不进行确认即返回。
1表示Leader写成功即返回,此时还没有进行写数据同步到其它Follower Partition中
-1表示根据指定的最少Partition确认后才返回,这个在
Th
- lua统计nginx内部变量数据
ronin47
lua nginx 统计
server {
listen 80;
server_name photo.domain.com;
location /{set $str $uri;
content_by_lua '
local url = ngx.var.uri
local res = ngx.location.capture(
- java-11.二叉树中节点的最大距离
bylijinnan
java
import java.util.ArrayList;
import java.util.List;
public class MaxLenInBinTree {
/*
a. 1
/ \
2 3
/ \ / \
4 5 6 7
max=4 pass "root"
- Netty源码学习-ReadTimeoutHandler
bylijinnan
javanetty
ReadTimeoutHandler的实现思路:
开启一个定时任务,如果在指定时间内没有接收到消息,则抛出ReadTimeoutException
这个异常的捕获,在开发中,交给跟在ReadTimeoutHandler后面的ChannelHandler,例如
private final ChannelHandler timeoutHandler =
new ReadTim
- jquery验证上传文件样式及大小(好用)
cngolon
文件上传jquery验证
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="jquery1.8/jquery-1.8.0.
- 浏览器兼容【转】
cuishikuan
css浏览器IE
浏览器兼容问题一:不同浏览器的标签默认的外补丁和内补丁不同
问题症状:随便写几个标签,不加样式控制的情况下,各自的margin 和padding差异较大。
碰到频率:100%
解决方案:CSS里 *{margin:0;padding:0;}
备注:这个是最常见的也是最易解决的一个浏览器兼容性问题,几乎所有的CSS文件开头都会用通配符*来设
- Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数
daizj
shell$#$?特殊变量
前面已经讲到,变量名只能包含数字、字母和下划线,因为某些包含其他字符的变量有特殊含义,这样的变量被称为特殊变量。例如,$ 表示当前Shell进程的ID,即pid,看下面的代码:
$echo $$
运行结果
29949
特殊变量列表 变量 含义 $0 当前脚本的文件名 $n 传递给脚本或函数的参数。n 是一个数字,表示第几个参数。例如,第一个
- 程序设计KISS 原则-------KEEP IT SIMPLE, STUPID!
dcj3sjt126com
unix
翻到一本书,讲到编程一般原则是kiss:Keep It Simple, Stupid.对这个原则深有体会,其实不仅编程如此,而且系统架构也是如此。
KEEP IT SIMPLE, STUPID! 编写只做一件事情,并且要做好的程序;编写可以在一起工作的程序,编写处理文本流的程序,因为这是通用的接口。这就是UNIX哲学.所有的哲学真 正的浓缩为一个铁一样的定律,高明的工程师的神圣的“KISS 原
- android Activity间List传值
dcj3sjt126com
Activity
第一个Activity:
import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import a
- tomcat 设置java虚拟机内存
eksliang
tomcat 内存设置
转载请出自出处:http://eksliang.iteye.com/blog/2117772
http://eksliang.iteye.com/
常见的内存溢出有以下两种:
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: Java heap space
------------
- Android 数据库事务处理
gqdy365
android
使用SQLiteDatabase的beginTransaction()方法可以开启一个事务,程序执行到endTransaction() 方法时会检查事务的标志是否为成功,如果程序执行到endTransaction()之前调用了setTransactionSuccessful() 方法设置事务的标志为成功则提交事务,如果没有调用setTransactionSuccessful() 方法则回滚事务。事
- Java 打开浏览器
hw1287789687
打开网址open浏览器open browser打开url打开浏览器
使用java 语言如何打开浏览器呢?
我们先研究下在cmd窗口中,如何打开网址
使用IE 打开
D:\software\bin>cmd /c start iexplore http://hw1287789687.iteye.com/blog/2153709
使用火狐打开
D:\software\bin>cmd /c start firefox http://hw1287789
- ReplaceGoogleCDN:将 Google CDN 替换为国内的 Chrome 插件
justjavac
chromeGooglegoogle apichrome插件
Chrome Web Store 安装地址: https://chrome.google.com/webstore/detail/replace-google-cdn/kpampjmfiopfpkkepbllemkibefkiice
由于众所周知的原因,只需替换一个域名就可以继续使用Google提供的前端公共库了。 同样,通过script标记引用这些资源,让网站访问速度瞬间提速吧
- 进程VS.线程
m635674608
线程
资料来源:
http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001397567993007df355a3394da48f0bf14960f0c78753f000 1、Apache最早就是采用多进程模式 2、IIS服务器默认采用多线程模式 3、多进程优缺点 优点:
多进程模式最大
- Linux下安装MemCached
字符串
memcached
前提准备:1. MemCached目前最新版本为:1.4.22,可以从官网下载到。2. MemCached依赖libevent,因此在安装MemCached之前需要先安装libevent。2.1 运行下面命令,查看系统是否已安装libevent。[root@SecurityCheck ~]# rpm -qa|grep libevent libevent-headers-1.4.13-4.el6.n
- java设计模式之--jdk动态代理(实现aop编程)
Supanccy2013
javaDAO设计模式AOP
与静态代理类对照的是动态代理类,动态代理类的字节码在程序运行时由Java反射机制动态生成,无需程序员手工编写它的源代码。动态代理类不仅简化了编程工作,而且提高了软件系统的可扩展性,因为Java 反射机制可以生成任意类型的动态代理类。java.lang.reflect 包中的Proxy类和InvocationHandler 接口提供了生成动态代理类的能力。
&
- Spring 4.2新特性-对java8默认方法(default method)定义Bean的支持
wiselyman
spring 4
2.1 默认方法(default method)
java8引入了一个default medthod;
用来扩展已有的接口,在对已有接口的使用不产生任何影响的情况下,添加扩展
使用default关键字
Spring 4.2支持加载在默认方法里声明的bean
2.2
将要被声明成bean的类
public class DemoService {