- 微信小程序使用canvas画图保存图片到手机相册
岩岩很哇塞!
微信小程序微信小程序小程序canva可画
微信小程序要实现使用canvas绘制一个图,然后保存到手机相册**最终效果:**实现生成以下图片一、初始化canvas//wxml页面设置canvas标签//js页面初始化canvasdata:{ctx:'',details:'',windowW:375*3,windowH:265*3,ratio:3,showCanvas:false},onLoad(options){this.setData({
- 西晋极简编年史
江吴童
泰始元年(265年)司马昭去世,其子司马炎继晋王之位。司马炎篡魏,建立晋朝。司马炎泰始三年(267年)司马炎颁布《泰始律》(即《晋律》)。泰始四年(268年)吴主·孙皓出东关,吴将·施绩入江夏,万彧寇襄阳。吴交州刺史·刘俊及修则、顾容前后三度进攻交趾,为交趾太守·杨稷破之。泰始五年(269年)晋将·羊祜镇守襄阳。羊祜泰始六年(270年)鲜卑·秃发树机能叛,秦州刺史·胡烈兵败被杀。泰始七年(271年
- 如何实现视频数据的PES打包和传输?
音视频牛哥
软件开发音视频ps打包数据psrtppsH.264gb28181ps大牛直播SDK
实现视频的PES(PacketizedElementaryStream)打包和传输涉及多个步骤,主要包括视频数据的编码、PES打包、以及通过网络协议的传输。以下是大概的实现思路:一、视频数据编码原始视频数据获取:获取需要传输的原始视频数据,这些数据可能来自摄像头、文件或其他视频源。视频编码:使用视频编码器(如H.264、H.265等)对原始视频数据进行编码,生成编码后的视频码流(ES,Elemen
- zobovision随谈H.265/HEVC编码FPGA实现(一)
zobovision
视频图像编解码FPGAIPfpga开发视频编解码
zobovision随谈H.265/HEVC编码FPGA实现(一)H.265/HEVC出来已有10年,但市场应用难言巅峰,正如古董级的H.264现在仍然大行其道,H.265的全面应用仍有待市场发酵,至少在硬件产品端应用,值得期待。一来H.265相对H.264而言,压缩技术确实要先进不少,不管是理论上还是实际效果方面;二是H.265相对后来者H.266/VVC等而言,实用性更强,性价比更高,产品端的
- 探索视频压缩新境界:懒人专属H.265(HEVC)压缩工具
谢璋声Shirley
探索视频压缩新境界:懒人专属H.265(HEVC)压缩工具在数字时代,视频已经成为信息传播的主力军,但随之而来的是存储与传输的挑战。为了解决这一难题,一款名为LazyCompressH.265的开源工具应运而生,它旨在简化用户的视频压缩过程,让高清视频不再“沉重”。项目介绍LazyCompressH.265是一个简洁高效的一键式视频转码工具,专注于将您的视频文件转换或压缩为H.265(HEVC)格
- 【265】年初八·开工大吉
邓邓老师
昨天是年初八,我们榕树下的130+魔方吧提前开工,迎来了很多爱魔方的孩子们,好像还有待一天不愿意走的呢,说终于开门了,要多学魔方。孩子们发挥想象拼的开工大吉,没有图纸,用自己的空间想象力,把字给拼出来,这个比看着图难几倍啊,除了需要空间想象力之外,还要他们的专注力和逻辑思维能力。他们要专注在拼魔方拼图上面不能分心,用大脑去判断字在魔方上怎么画,最后安排在每个具体的魔方上是怎么样的。这个过程中,大脑
- 飞鸟集每日一品(155)
语熙
泰戈尔原文:Silencewillcarryyourvoicelikethenestthatholdsthesleepingbirds.冯唐版:静寂盛了你的声音鸟巢盛了睡着的鸟郑振铎版:沉默蕴蓄着语声,正如鸟巢拥围着睡鸟。我的翻译:缄默酝酿着发声,就像穴巢环抱睡鸟carry一般是“运输,带来,拿来”的意思,放在原文当中去理解就是“安静带来你自己的声音。”silence可以理解成“安静,沉默,缄默”
- 【约练反思】中原焦点团队段静辉坚持分享265天 2020-07-05
晴晖说
约练反思约练第68场在陪伴来访者的过程当中,咨询师要觉察辨识,觉察辨识来访者的类型,不只限于来访型、抱怨型、消费型等大类,假如是消费型的来访者,还须得觉察和辨识他的力量强弱,力量强弱的辨识,有利于我们及早采取有效应的介入,一方面可以和来访者尽快进入解决之道的探讨,提供咨询效能,另一方面还可以缩短咨询过程,使咨询更加高效。对于力量较弱的来访者,我们要给予充分的共情、看到和赋能,用更多的看到引发他力量
- 【教程】如何使用 MYScrcpy,一行Python代码获取Android设备 屏幕/摄像头 H264/H265 原始视频流
Me2sY
MYScrcpypythonandroid开发语言智能手机扩展屏应用开发开源测试工具
MYScrcpy1.5.8Github/Gitee1.5.8版本新增获取原始视频流(H264/H265)方法,供小伙伴们在需要原生H264/H265串流时使用要求MYScrcpy>1.5.8pipinstall-Umysc安卓设备开启调试模式,安卓版本>5(摄像头需>11)H265需安卓设备支持H265编码步骤MYScrcpy从设计之初,就是想为小伙伴们打造一款好用易上手的工具包,所以使用起来也非
- H265码流结构
C有点难。
嵌入式音视频音视频实时音视频
H264码流结构https://blog.csdn.net/weixin_45993872/article/details/141689242(1)H265/HEVC介绍H265也成为HEVC,是在H264基础上的一种全新的视频编码技术,H265继承了H264的NALU和RBSP等标准,具有更高的压缩比1:200,而H264只有1:100(2)H265的用处:随着视频画质的提高,2k、4k甚至是8
- 那些让人泪目的句子
一颗葡萄桃
1.有时我们的眼睛可以看见宇宙,却看不见社会底层最悲惨的世界。--《十宗罪》2.你生活在光亮里,你就觉得全世界都是光亮的3.世界让我遍体鳞伤,但伤口长出的却是翅膀。--阿多尼斯4.所有的大人都曾经是孩子。不幸的是,其中记住这一点的并不多。--《小王子》5.你微微地笑着,不同我说什么话。而我觉得,为了这个,我已等待得很久了。--泰戈尔《飞鸟集》6.你是我的文艺复兴。有且仅有夏习清。7.人生最美好的际
- x86的Docker环境下载ARM版容器镜像
Q行天下
运维Dockerdockerarm开发容器
文章目录应用场景下载方法应用场景内网是信创ARM环境,需要从外网下载镜像,但外网的docker环境是X86环境,此时需要在外网docker环境下载ARM版容器镜像。下载方法#如何找sha256参见下面的截图。#hub.docker网站找到镜像后,点击tag,找到自己想要的镜像,点击对应的arm版本digest值进入新网页,新网页"Manifestdigest"下面的值即为sha265值。docke
- 亲子日记第265篇
爱水的鱼鱼
早上起床本以为二宝的眼睛会好些,可看上去还是肿肿的,上面还起了小疙瘩哦。上学时我给她擦上芦荟胶,嘱咐她不要用手搓,痒的时候拍一拍。下午二宝回到家自己乖乖的在屋里写作业,我告诉她医生说了,外面热不要到处跑,这样会加重眼睛。二宝应着,她在外面跑眼睛会很难受,自己应该更知道。所以一直到晚上二宝都乖乖的做作业,完成作业就看了会书,剩下的时间就是玩玩具了。二宝就像个永远长不大的小孩子。
- TROS DataFlow - USB Camera & mipi Sensor - rtsp
WuChao_JMUer
地平线RDKX3系列板卡RDKX3ROS2
TROSDataFlow-USBCamera&mipiSensor-rtsp使用TROS的功能,通过USB或者mipi摄像头得到MJPEG数据,推理YOLOv5节点,得到目标检测结果,通过ros_rtsp将nv12数据变成标准的H264/H265码流推出。DataFlow示意图mipiUSBH264/H265推流展示编译ros_rtsp_server系统版本2.1.0,sudoaptupdate有
- 信念的力量 原创分享265天 20190522
程景轩
88教师们的教育观点一致92我的简单经历、在进修和我们办学的一些成绩在苏氏看来,对于任教一个班级的老师来说,必须要保证教育观点和教育信念的一致,因为只有这样才能够保证每一位教师的个人创造性得到充分的发挥。而这些相同的教育观点和信念是在工作过程中以下几个方面形成的。每一位教师不仅是教书者,更是教育者。每一位教师都应当对具体学生实施个别的影响,尤其是引起他的兴趣和爱好。只有教学在集体和个人的丰富精神生
- 开启富而喜悦的人生,从成长、自律开始!
yy财富姐姐
今天是2020年10月7日,是我学习成长1000天打卡的第265天。今天继续和大家学习《有钱人和你想的不一样》人类最重要的资产是头脑财富档案三:有钱人让自己努力有钱。穷人一直想着要变得有钱。第二部分内容。大部分人没办法得到他们想要的东西,最大的原因是他们不知道自己想要什么。有钱人就完全清楚他们想要的是财富,他们的雄心不会随意动摇。只要是合法的,合乎道德伦理的,他们就会不顾一切取得财富。有钱人不会把
- 日精进打卡
巴桂成_c6dd
姓名:巴桂成公司:宁波大发化纤有限公司宁波盛和塾《六项精进》235期学员【日精进打卡第265天】【知~学习】《六项精进》大纲背诵1遍,总(379)遍通篇朗读0遍,总13遍《大学》背诵1遍,总(377)遍《弟子规》诵读0遍,总(13)遍【经典名句分享】没有口水与汗水,就没有成功的泪水用这生命中的每一秒,给自己一个不后悔的未来。温和对人对事。不要随意发脾气,谁都不欠你的。学会宽容伤害自己的人,因为他们
- 中原焦点团队吴亚菲焦点解决网络初级第18期坚持分享第265天20200705
c33f29a4c595
尊重是一切的基础,每一个人都是一个独立的个体,都希望能够得到别人的尊重,如果我们的语言能够软化站到对方的立场去思考,给他们最大的尊重,我想我们的沟通也会更加的顺畅。
- 记录k8s证书过期的证书更新
安顾里
kuberneteskuberneteslinux服务器容器微服务
root@master01:~#kubectlgetnodesE082810:29:54.48148947445memcache.go:265]couldn'tgetcurrentserverAPIgrouplist:Get"https://192.168.91.150:6443/api?timeout=32s":tls:failedtoverifycertificate:x509:certifi
- 《繁星·春水》知识
BESSI52
书籍【主要内容】1.作者概况:《繁星·春水》是冰心在印度诗人泰戈尔《飞鸟集》的影响下写成的诗集。内容包括对母爱与童真的歌颂,对大自然的崇拜和赞颂,对人生的思考和感悟等等。2.体裁:诗歌。3.成因:受印度诗人泰戈尔《飞鸟集》影响写成。4.主要内容:(1)对母爱与童真的歌颂。(2)对大自然的崇拜与赞颂。(3)对人生的思考与感悟。5.艺术特色:兼采中国古典诗词和泰戈尔哲理小诗之长,善于捕捉瞬间的灵感,以
- 2019-12-05
今晚月色真美_2eb3
姓名:第加伟公司:扬州市方圆建筑工程有限公司2019年3月9日~3月11日南京496期《六项精进》感谢组学员【日精进打卡第265天】【知~学习】《六项精进》大纲1遍共599《大学》通篇1遍共599【经典名句】给自己找茬是诊断,给自己找事是磨练,给自己剖析是知己,给自己嘲笑是激励!【行~实践】一、修身:(对自己个人)1、践行六项精进,做到付出不亚于任何人的努力。二、齐家(家庭和家人)1、和妈妈微信聊
- 高版本Chrome网页直接播放海康威视大华RTSP流方案,不需服务器转码转流,支持H.265、H.264及2K/4K高清视频
bubailai
ChromeRTSPchromertspvue.js前端
近期公司在做一个智慧城市项目,需要在高版本Chrome网页播放海康威视、大华、或者华为摄像头RTSP流,于是在网上开始找对应的解决方案,没想到网上各种转码转流方案纷繁复杂,找到一款稳定商用满足需求的很难!目前网上有两种所谓无插件方案,即后端转码前端播放的方法和后端转流前端转码的方案,虽然无插件播放方案能够播放出画面,但是往往延迟很高,基本上都在数秒之久,在一些对延迟敏感的场合客户要求毫秒级延迟,显
- 浏览器播放h.265 rtsp流媒体解决方案
LiveWeb视频管理平台
h.265html5音视频web播放器h.266
近期研究在VUE中播放RTSP实时视频,客户要求延迟低于300毫秒,并且要求支持多路同时播放,支持H.265格式视频,比较了下目前市场上常见的几种方案,以供大家参考!一、海康威视官方WEB解决方案:海康威视官方提供了两种WEB解决方案,即无插件方案和有插件方案。1.无插件方案,实际采用的是服务器转码推流的方式,因为需要转码两次,导致延迟比较高,多路播放或者播放高清视频容易卡顿或者花屏,无法满足客户
- 《人间食话》读书笔记
悠之不语斋
阅读书目:《人间食话》作者:梁实秋阅读内容:p168-p211阅读书目:《飞鸟集·新月集》1.《五维突破互联网+教育》2.《基础教育教学课题研究十八问(案例篇)》3.《寄小读者》冰心4.《微教育日记》朱晓平5.《浮生六记》沈复6.《断舍离》山下英子7.《思维导读》鸿雁编著8.《教育的目的》怀特海9.《我只愿面朝大海,春暖花开》海子著10.《园丁与木匠》美艾莉森·高普尼克著11.《教学勇气——漫步教
- 公务员考试笔记(三十三)
琐珥
258.鸠占鹊巢:比喻强占别人的住屋或占据别人的位置,侧重于强占别人的资源。259.左顾右盼:形容骄傲得意的神情。260.干预:参与别人的事。261.书不言尽:指信中难以充分表达其意,后多作书信结尾习惯用语。262.邯郸学步:比喻模仿不成,反而失去自己原有的长处。263.呈现:指具体的事物在眼前显现出来。264.体现:指某种性质或现象通过某一事物具体表现出来。265.脍炙人口:比喻好的诗文或事物人
- 梦想照亮现实第265天#感恩·有序平衡专注0723
旭哥_优秀是一种习惯
梦想照亮现实第265天#感恩·有序平衡专注0723,2019年余167天,7月余8天如何过好一天就是如何过一生【好日子六月二十日周二东莞】【日出日落:05:52/19:11】天气温度:25/34℃雷阵雨转中雨【优秀是一种习惯】健康习惯:23:30-05:20+5.38公里阅读学习:晨间日记+张弛有度:用清单管理每一天:181篇。坚持每一天输出【今日青蛙】事业备战818营销2事业董事合伙人海报设计事
- 日精进打卡198天
修正孕婴延边地区李万顺
日期:2018年11月24日姓名:李万顺公司:长春市修正药业孕婴童事业部吉林公司【日精进打卡第198天】【知~学习】《六项精进大纲》1遍共265遍《大学》1遍共265遍【经典名句】不要有感性的烦恼一、修身:早起二、齐家:(对家庭和家人)关心家人三、建功:(对工作)支援活动白城{积善}:发愿从2018年5月10日起1年内做200善事。今日善,累计43善【省~觉悟】遇到事情要想解决办法,发脾气是最大的
- 【 伊人书摘 】作文素材(三)
曼妙伊人_
//读书的本质,不在于记住哪些知识,而在于它触发了你的思考//1、我是秋云。空空地不载着雨水,但在成熟的稻田中,我看见了我的充实。——泰戈尔《飞鸟集》2、唯有我们觉醒之际,天才会破晓。破晓的,不止是黎明。太阳只不过是一颗晨星。——梭罗《瓦尔登湖》3、我常觉得,所谓“风水好”,就是空气清新、水质清澈的所在。所谓“有福报”,就是住在植物青翠、花树繁华的所在。所谓美好的心灵,就是能体贴万物的心,能温柔对
- 【日记星球】外婆日记 (第265篇)假如你只剩下三天时间
月亮外婆
2021年4月4日星期日郑州晴我和M是一个多月前在网上认识的,隔着屏幕成了无话不谈的朋友。这段时间她正和老公冷战,到我这里来也自然是大吐苦水。事业上她也曾顺风顺水过,为一家国际品牌护肤品公司做销售,业绩相当好,收入很高。八年前,为了孩子她离开岗位成了全职家庭主妇。八年,没有接触社会,我觉得现在她更像是攀附在老公身上的一根紫藤,时常抱怨,却又离不开。今天下午,语音电话里,我对她说:假如你只剩下三天时
- 飞鸟集1
陈奕和
1夏日的飞鸟飞到我的窗前,歌唱一会儿就走了。秋日的落叶,没有什么可唱的,叹息一声,就掉了下来。点评:“生如夏花之绚烂,死如秋叶之静美。”夏日的飞鸟和秋日的落叶实际上显示了人生两种不同的状态。夏日的飞鸟飞走,秋日的落叶掉落,没有什么是永恒的。我们每一个人都是细小的沙子或石块,在时间的长河中,身不由己地被带向前方。2漂流者啊!漂流者!请不要就这样离去,在世界的舞台上,我还没有将你的足印记录在我的文字里
- 遍历dom 并且存储(将每一层的DOM元素存在数组中)
换个号韩国红果果
JavaScripthtml
数组从0开始!!
var a=[],i=0;
for(var j=0;j<30;j++){
a[j]=[];//数组里套数组,且第i层存储在第a[i]中
}
function walkDOM(n){
do{
if(n.nodeType!==3)//筛选去除#text类型
a[i].push(n);
//con
- Android+Jquery Mobile学习系列(9)-总结和代码分享
白糖_
JQuery Mobile
目录导航
经过一个多月的边学习边练手,学会了Android基于Web开发的毛皮,其实开发过程中用Android原生API不是很多,更多的是HTML/Javascript/Css。
个人觉得基于WebView的Jquery Mobile开发有以下优点:
1、对于刚从Java Web转型过来的同学非常适合,只要懂得HTML开发就可以上手做事。
2、jquerym
- impala参考资料
dayutianfei
impala
记录一些有用的Impala资料
1. 入门资料
>>官网翻译:
http://my.oschina.net/weiqingbin/blog?catalog=423691
2. 实用进阶
>>代码&架构分析:
Impala/Hive现状分析与前景展望:http
- JAVA 静态变量与非静态变量初始化顺序之新解
周凡杨
java静态非静态顺序
今天和同事争论一问题,关于静态变量与非静态变量的初始化顺序,谁先谁后,最终想整理出来!测试代码:
import java.util.Map;
public class T {
public static T t = new T();
private Map map = new HashMap();
public T(){
System.out.println(&quo
- 跳出iframe返回外层页面
g21121
iframe
在web开发过程中难免要用到iframe,但当连接超时或跳转到公共页面时就会出现超时页面显示在iframe中,这时我们就需要跳出这个iframe到达一个公共页面去。
首先跳转到一个中间页,这个页面用于判断是否在iframe中,在页面加载的过程中调用如下代码:
<script type="text/javascript">
//<!--
function
- JAVA多线程监听JMS、MQ队列
510888780
java多线程
背景:消息队列中有非常多的消息需要处理,并且监听器onMessage()方法中的业务逻辑也相对比较复杂,为了加快队列消息的读取、处理速度。可以通过加快读取速度和加快处理速度来考虑。因此从这两个方面都使用多线程来处理。对于消息处理的业务处理逻辑用线程池来做。对于加快消息监听读取速度可以使用1.使用多个监听器监听一个队列;2.使用一个监听器开启多线程监听。
对于上面提到的方法2使用一个监听器开启多线
- 第一个SpringMvc例子
布衣凌宇
spring mvc
第一步:导入需要的包;
第二步:配置web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi=
- 我的spring学习笔记15-容器扩展点之PropertyOverrideConfigurer
aijuans
Spring3
PropertyOverrideConfigurer类似于PropertyPlaceholderConfigurer,但是与后者相比,前者对于bean属性可以有缺省值或者根本没有值。也就是说如果properties文件中没有某个bean属性的内容,那么将使用上下文(配置的xml文件)中相应定义的值。如果properties文件中有bean属性的内容,那么就用properties文件中的值来代替上下
- 通过XSD验证XML
antlove
xmlschemaxsdvalidationSchemaFactory
1. XmlValidation.java
package xml.validation;
import java.io.InputStream;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schem
- 文本流与字符集
百合不是茶
PrintWrite()的使用字符集名字 别名获取
文本数据的输入输出;
输入;数据流,缓冲流
输出;介绍向文本打印格式化的输出PrintWrite();
package 文本流;
import java.io.FileNotFound
- ibatis模糊查询sqlmap-mapping-**.xml配置
bijian1013
ibatis
正常我们写ibatis的sqlmap-mapping-*.xml文件时,传入的参数都用##标识,如下所示:
<resultMap id="personInfo" class="com.bijian.study.dto.PersonDTO">
<res
- java jvm常用命令工具——jdb命令(The Java Debugger)
bijian1013
javajvmjdb
用来对core文件和正在运行的Java进程进行实时地调试,里面包含了丰富的命令帮助您进行调试,它的功能和Sun studio里面所带的dbx非常相似,但 jdb是专门用来针对Java应用程序的。
现在应该说日常的开发中很少用到JDB了,因为现在的IDE已经帮我们封装好了,如使用ECLI
- 【Spring框架二】Spring常用注解之Component、Repository、Service和Controller注解
bit1129
controller
在Spring常用注解第一步部分【Spring框架一】Spring常用注解之Autowired和Resource注解(http://bit1129.iteye.com/blog/2114084)中介绍了Autowired和Resource两个注解的功能,它们用于将依赖根据名称或者类型进行自动的注入,这简化了在XML中,依赖注入部分的XML的编写,但是UserDao和UserService两个bea
- cxf wsdl2java生成代码super出错,构造函数不匹配
bitray
super
由于过去对于soap协议的cxf接触的不是很多,所以遇到了也是迷糊了一会.后来经过查找资料才得以解决. 初始原因一般是由于jaxws2.2规范和jdk6及以上不兼容导致的.所以要强制降为jaxws2.1进行编译生成.我们需要少量的修改:
我们原来的代码
wsdl2java com.test.xxx -client http://.....
修改后的代
- 动态页面正文部分中文乱码排障一例
ronin47
公司网站一部分动态页面,早先使用apache+resin的架构运行,考虑到高并发访问下的响应性能问题,在前不久逐步开始用nginx替换掉了apache。 不过随后发现了一个问题,随意进入某一有分页的网页,第一页是正常的(因为静态化过了);点“下一页”,出来的页面两边正常,中间部分的标题、关键字等也正常,唯独每个标题下的正文无法正常显示。 因为有做过系统调整,所以第一反应就是新上
- java-54- 调整数组顺序使奇数位于偶数前面
bylijinnan
java
import java.util.Arrays;
import java.util.Random;
import ljn.help.Helper;
public class OddBeforeEven {
/**
* Q 54 调整数组顺序使奇数位于偶数前面
* 输入一个整数数组,调整数组中数字的顺序,使得所有奇数位于数组的前半部分,所有偶数位于数组的后半
- 从100PV到1亿级PV网站架构演变
cfyme
网站架构
一个网站就像一个人,存在一个从小到大的过程。养一个网站和养一个人一样,不同时期需要不同的方法,不同的方法下有共同的原则。本文结合我自已14年网站人的经历记录一些架构演变中的体会。 1:积累是必不可少的
架构师不是一天练成的。
1999年,我作了一个个人主页,在学校内的虚拟空间,参加了一次主页大赛,几个DREAMWEAVER的页面,几个TABLE作布局,一个DB连接,几行PHP的代码嵌入在HTM
- [宇宙时代]宇宙时代的GIS是什么?
comsci
Gis
我们都知道一个事实,在行星内部的时候,因为地理信息的坐标都是相对固定的,所以我们获取一组GIS数据之后,就可以存储到硬盘中,长久使用。。。但是,请注意,这种经验在宇宙时代是不能够被继续使用的
宇宙是一个高维时空
- 详解create database命令
czmmiao
database
完整命令
CREATE DATABASE mynewdb USER SYS IDENTIFIED BY sys_password USER SYSTEM IDENTIFIED BY system_password LOGFILE GROUP 1 ('/u01/logs/my/redo01a.log','/u02/logs/m
- 几句不中听却不得不认可的话
datageek
1、人丑就该多读书。
2、你不快乐是因为:你可以像猪一样懒,却无法像只猪一样懒得心安理得。
3、如果你太在意别人的看法,那么你的生活将变成一件裤衩,别人放什么屁,你都得接着。
4、你的问题主要在于:读书不多而买书太多,读书太少又特爱思考,还他妈话痨。
5、与禽兽搏斗的三种结局:(1)、赢了,比禽兽还禽兽。(2)、输了,禽兽不如。(3)、平了,跟禽兽没两样。结论:选择正确的对手很重要。
6
- 1 14:00 PHP中的“syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM”错误
dcj3sjt126com
PHP
原文地址:http://www.kafka0102.com/2010/08/281.html
因为需要,今天晚些在本机使用PHP做些测试,PHP脚本依赖了一堆我也不清楚做什么用的库。结果一跑起来,就报出类似下面的错误:“Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/kafka/test/
- xcode6 Auto layout and size classes
dcj3sjt126com
ios
官方GUI
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html
iOS中使用自动布局(一)
http://www.cocoachina.com/ind
- 通过PreparedStatement批量执行sql语句【sql语句相同,值不同】
梦见x光
sql事务批量执行
比如说:我有一个List需要添加到数据库中,那么我该如何通过PreparedStatement来操作呢?
public void addCustomerByCommit(Connection conn , List<Customer> customerList)
{
String sql = "inseret into customer(id
- 程序员必知必会----linux常用命令之十【系统相关】
hanqunfeng
Linux常用命令
一.linux快捷键
Ctrl+C : 终止当前命令
Ctrl+S : 暂停屏幕输出
Ctrl+Q : 恢复屏幕输出
Ctrl+U : 删除当前行光标前的所有字符
Ctrl+Z : 挂起当前正在执行的进程
Ctrl+L : 清除终端屏幕,相当于clear
二.终端命令
clear : 清除终端屏幕
reset : 重置视窗,当屏幕编码混乱时使用
time com
- NGINX
IXHONG
nginx
pcre 编译安装 nginx
conf/vhost/test.conf
upstream admin {
server 127.0.0.1:8080;
}
server {
listen 80;
&
- 设计模式--工厂模式
kerryg
设计模式
工厂方式模式分为三种:
1、普通工厂模式:建立一个工厂类,对实现了同一个接口的一些类进行实例的创建。
2、多个工厂方法的模式:就是对普通工厂方法模式的改进,在普通工厂方法模式中,如果传递的字符串出错,则不能正确创建对象,而多个工厂方法模式就是提供多个工厂方法,分别创建对象。
3、静态工厂方法模式:就是将上面的多个工厂方法模式里的方法置为静态,
- Spring InitializingBean/init-method和DisposableBean/destroy-method
mx_xiehd
javaspringbeanxml
1.initializingBean/init-method
实现org.springframework.beans.factory.InitializingBean接口允许一个bean在它的所有必须属性被BeanFactory设置后,来执行初始化的工作,InitialzingBean仅仅指定了一个方法。
通常InitializingBean接口的使用是能够被避免的,(不鼓励使用,因为没有必要
- 解决Centos下vim粘贴内容格式混乱问题
qindongliang1922
centosvim
有时候,我们在向vim打开的一个xml,或者任意文件中,拷贝粘贴的代码时,格式莫名其毛的就混乱了,然后自己一个个再重新,把格式排列好,非常耗时,而且很不爽,那么有没有办法避免呢? 答案是肯定的,设置下缩进格式就可以了,非常简单: 在用户的根目录下 直接vi ~/.vimrc文件 然后将set pastetoggle=<F9> 写入这个文件中,保存退出,重新登录,
- netty大并发请求问题
tianzhihehe
netty
多线程并发使用同一个channel
java.nio.BufferOverflowException: null
at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:183) ~[na:1.7.0_60-ea]
at java.nio.ByteBuffer.put(ByteBuffer.java:832) ~[na:1.7.0_60-ea]
- Hadoop NameNode单点问题解决方案之一 AvatarNode
wyz2009107220
NameNode
我们遇到的情况
Hadoop NameNode存在单点问题。这个问题会影响分布式平台24*7运行。先说说我们的情况吧。
我们的团队负责管理一个1200节点的集群(总大小12PB),目前是运行版本为Hadoop 0.20,transaction logs写入一个共享的NFS filer(注:NetApp NFS Filer)。
经常遇到需要中断服务的问题是给hadoop打补丁。 DataNod