- 自定义分区
我的K8409
Hadoophdfshadoop大数据
通过简单例子了解partition分区类的重写方法分区是在MR的过程中进行的,属于Shuffle阶段但是在Job端不要忘记进行调用:job.setPartitionerClass(xxx.class)按照年龄分区:classAgePartitionerextendsPartitioner{@OverridepublicintgetPartition(MyComparablekey,NullWrit
- 【显示 后台运行 & 的命令】
晨春计
debuglinux服务器运维
目录背景步骤详解示例背景当你在Linuxshell中使用&符号将一个命令放到后台运行时,你可以使用jobs命令来查看这些后台进程的状态。但是,jobs命令并不会直接显示进程的PID(进程ID)。它会显示一个作业列表,其中包括每个作业的状态和一个作业标识符(通常是百分号%后面跟着一个数字),但不会直接显示PID。获取后台进程的PID步骤:1、使用jobs命令查看后台作业。2、使用ps命令配合grep
- 今日头条极速版邀请码是多少(亲测5个可用邀请码及填写方法)
桃朵十三
第一次接触今日头条极速版app我记得是2018年7月份左右吧,当时手机上弹出一个小广告说看新闻还能赚零花钱,抱着好奇的心理下载了试一试,刚开始每天刷几条新闻或视频第二天早上金币兑换成一元多钱,可以提现到支付宝或者微信,弄得不亦乐乎。心想不给钱没事我也会看看新闻呢,何乐而不为呢。今日头条极速版邀请码是1712201738或1451455648或1805884301,秒懂你的阅读喜好,秒杀碎片化时间。
- 复盘日记第56天
恩佳一
一、学习听:今天听一书一课0.5小时,樊登读书2小时,《自驱型成长》学会让孩子做主又要设定边界,里面有3句话特别要记下来:1.你特别懂你自己,你可是你自己的专家;2.你脖子上长着你的小脑袋;3.你想要生活中的一切有条不紊。《活出心花怒放的人生》get到的一个点:内向性格无法改变,但你可以改变你的行为,内向的人可以做不内向的事,做一个心灵捕手很重要。做:今日做诗一首:睡莲文|竹子水中那抹翠绿中显露的
- Android jni中数组参数的传递方式
lokeyme
Andriodandroid开发JNINDKjavac语言
1、背景今天调试了一下Androidjni关于Java中调用C代码的程序,发现我的数组参数传递方式不对,导致值传递不正确,我的方法是:C代码,入口函数#include#includejintJava_sony_MedicalRecordDemo_MainActivity_decryptionSuccess(JNIEnv*env,jobjectthiz,jintAttr[]){returnAttr[
- 【悟景散文】《爱是春天里的那一树繁花》
墨舞文韵
文字作者名称/(竞芳)想来这个世界上的每一种好处,都只为懂他的人盛装而来,懂得,是两心相悦初见的惊艳,是原来你也在这里的久别重逢,是过尽千帆的不离不弃,是峰回路转的明媚嫣然,是蓦然回首的婆娑和感动,是老来多健忘,惟不忘相思的情深似海。懂你,何须千言万语,一朝相遇,便是永远。光阴转角处最美的遇见,是只一眼,便在一个人的眼中沉沦,心中的繁花,只的你一人倾其所有的绽放,即便凋零也是无悔。爱若盛开,清风自
- 主流行架构
rainbowcheng
架构架构
nexus,gitlab,svn,jenkins,sonar,docker,apollo,catteambition,axure,蓝湖,禅道,WCP;redis,kafka,es,zookeeper,dubbo,shardingjdbc,mysql,InfluxDB,Telegraf,Grafana,Nginx,xxl-job,Neo4j,NebulaGraph是一个高性能的,NOSQL图形数据库
- 为自己的人生演绎剧本
熊猫胖子哥
为自己的人生演绎剧本“你要搞清楚自己的人生剧本——不是你父母的续集,不是你子女的前传,更不是你朋友的外篇。对待生命你不妨大胆冒险一些,因为好歹你要失去他。如果这个世界上真有奇迹,那只是努力进取的另一个名字。生命中最难的阶段,不是没人懂你,而是你不懂你自己。”哲学家尼采如是说。这则精彩的格言从后来心理学发展的范畴去解读,衍生出两个方向:原生态家庭的影响(追溯童年)、社会群体的影响。从原生态家庭来看,
- 【五十五,模型加载-2 模型文件格式】
Woodlouse
Obj和mtl文件ObjObj文件是3D模型文件格式,由Alias|Wavefront公司为3D建模和动画软件AdvancedVisualizer开发的一种标准,用于3D软件模型互导。包含数据信息:顶点坐标信息顶点的纹理坐标信息顶点法向量信息mtlmtl文件定义材质信息,包含数据信息:纹理贴图环境光镜面光散射光Obj文件格式obj文件中的信息以行为单位表示一条数据,可以根据行开头的字符判断后续数据
- 浮生,渡君
十一夫人说
以我浮生,渡君一梦图片发自App最长久的情是平淡中的不离不弃最贴心的暖是风雨中的相依相伴人一生遇见太多人只要内心澄明就永远不用讨好一个不懂你的人时间暴露了谎言改变了距离看清了人心余生很短图片发自App也许你喜欢的是温柔体贴也许只是一时兴起也许你喜欢的是温柔可人儿也许你喜欢的是娇小玲珑
- 汤臣倍健,三七互娱,得物,顺丰,快手,游卡,oppo,康冠科技,途游游戏,埃科光电25秋招内推
2401_86288678
c语言python算法前端java
汤臣倍健,三七互娱,得物,顺丰,快手,游卡,oppo,康冠科技,途游游戏,埃科光电25秋招内推①得物【八大职类】技术、供应链、产品、运营、设计、职能、商品研究、风控等大类【内推码】RTHEA59【一键内推】https://poizon.jobs.feishu.cn/s/iMo1482J②汤臣倍健【招聘岗位】营销类、市场类、智造类、职能类【内推链接】https://sourl.cn/giXCGq【内
- 汤臣倍健,三七互娱,得物,顺丰,快手,游卡,oppo,康冠科技,途游游戏,埃科光电25秋招内推
2401_86288678
python游戏c++前端算法
汤臣倍健,三七互娱,得物,顺丰,快手,游卡,oppo,康冠科技,途游游戏,埃科光电25秋招内推①得物【八大职类】技术、供应链、产品、运营、设计、职能、商品研究、风控等大类【内推码】RTHEA59【一键内推】https://poizon.jobs.feishu.cn/s/iMo1482J②汤臣倍健【招聘岗位】营销类、市场类、智造类、职能类【内推链接】https://sourl.cn/giXCGq【内
- 愚痴的人,一直想要别人了解他,有智慧的人,却努力地了解自己!
纳西奇麒
愚痴的人,一直想要别人了解他。有智慧的人,却努力地了解自己想哭就哭,想笑就笑,不要因为世界虚伪,你也变得虚伪了别傻了,没有人懂你的口是心非。喜欢就说,讨厌就躲,心里头没太多猜测,总要轻松点,自己才好过似乎难过的时候,所有矫情的句子都是为自己量身定做,所有的故事都能感同身受这辈子你说过的最后悔的一句话是什么?”“你觉得怎么好看就怎么剪吧”人生唯一可以肯定的失败和最大的悲哀,莫过于从不敢冒险。——肯恩
- 6/13SteveJobs…Day45-School-translatation
Serenaliu85
在木头做的柜台前,破烂的夹子里装满了厚厚的商品目录册,人们会为了开关,电阻器,电容器商品讨价还价,有时为了最新的记忆芯片还价。他的爸爸过去为了汽车配件常做那样的事,并且他成功地还低价格因为他比售货员还了解每个产品的价值。乔布斯也向父亲那样。他热衷于谈判并从中获得实惠,这也让他对电子零件有了更充分的了解。他会去电子产品跳蚤市场,比如SanJose交换大会,找到含有一些价值芯片的旧线路板或者零部件和卖
- kubernetes里面那些事————控制器
背锅攻城师
kuberneteskubernetes容器云原生
资源-控制器一,控制器作用二,控制器类型2.1,Deployment:无状态应用部署2.2,DaemonSet:确保所有Node运行同一个pod2.3,StatefulSet:有状态应用部署2.4,Job:一次性任务2.5,CronJob:定时任务2.6,pod2.7,service2.8,replicaset2.9,endpoints三,控制器yaml应用3.1,Deployment3.2,Da
- 体验感悟
泠念蝶
总有人抱怨别人不理解其实事实是他们自己都不知道你所说的真实还是虚假又怎么可能帮助你世界上能依靠的父母能懂你的只有心其余便是面上过得去彼此友善就好了奢望太多失望就更多了还有永远不要去抱怨别人如何因为你不可能改变别人那就改变自己做一个有气质有涵养的人好过吹胡子瞪眼天天与人争执不休的好有时候对错也不是啥大事吃亏不是福然而也不会多个敌人当然人弱时候会遭遇看人下菜恃强凌弱的好比龙游浅水遭虾戏虎落平阳被犬欺落
- flask使用flask_apscheduler实现定时任务
九月镇灵将
pythonpython
安装默认情况下,以这种方法可以实现安装pipinstallflask_apscheduler如果出现超时,可以以下面这种方式安装pipinstallflask_apscheduler-ihttp://mirrors.aliyun.com/pypi/simple/使用配置相关功能classAPSchedulerJobConfig(object):SCHEDULER_API_ENABLED=TrueJ
- python apscheduler、任务可以是死循环吗_flask_apscheduler 定时任务踩坑记录
weixin_39564605
pythonapscheduler任务可以是死循环吗
背景由于需要再flask做一个定时任务,然后发现了这个库flask_apscheduler.使用很简单,就是可能由于某种情况,会有一些意外,下面是我的使用记录。首先按照官方文档跑一个示例fromflaskimportFlaskfromflask_apschedulerimportAPSchedulerclassConfig(object):JOBS=[{'id':'job1','func':'jo
- 新编儿时童话【283】小花猫流浪记111---第一次合作
大熊之影
最好的爱情大概就是:你让我心动,我让你心安,我懂你的小情绪,你懂我的不容易,我宠溺像孩子,你崇拜我像英雄。“嘘~”小聪明伸爪示意。小花放轻爪子,紧紧跟随着小聪明。两只新鲜出炉的小伙伴首次合作,非常默契。动作统一好像两只跳舞的小天鹅,轻盈的身姿在草原上跳跃,旋转,移动。“向左!”“向右!”“再继续往前走!”“我们拐个弯!”“隐蔽!”“查看四周!”……小聪明干脆利落地喊着口令,小花亦步亦趋的跟着照做。
- 清晨的烟,唤不醒沉醉的我
江对月
我不知道这是第几个夜晚想你,我明白你的离开,也明白你。我不知道清晨的烟蒂能否缓解,我懂你的痛,你的苦衷。我曾努力试着去扮着鬼脸去笑,也曾在转身离开时露出獠牙。迷茫,惧怕,以及持续性的思念。我从未对谁说过喜欢,我明白,一旦入局,我能说的只有爱。卑微的字眼,呵。愿你不悲,不痛,笑着割断过去,割开我心中的执思。下次我路过这里时,希望看你眉眼如初,而我也只是挥手离去。
- AI基础 L13 Constraint Satisfaction Problems I约束满足问题
h08.14
AI基础人工智能
DefiningConstraintSatisfactionProblemsAconstraintsatisfactionproblem(CSP)consistsofthreecomponents,X,D,andC:•Xisasetofvariables,{X1,...,Xn}.•Disasetofdomains,{D1,...,Dn},oneforeachvariable•Cisasetofco
- 永远不需要向别人解释你自己
定整
2019年5月13号,星期一农历四月初九己亥年【猪年】己巳月庚戌日,晴!“到了一定年纪,想找个懂自己的人太难。遇到被误解,被伤害的时刻,越来越喜欢保持沉默,选择不解释。因为懂你的人,你不解释他也心有灵犀;不懂你的人,解释再多都是对牛弹琴。”想来也是,经历越多,越不想为了一些小事解释不休。倒不是清高或不屑,只是不再奢求遇到的每个人都能懂得自己。成长往往在某个不经意的瞬间,像阳光穿透厚厚的云海照进心底
- Python | 使用Joblib模块加快任务处理速度
python收藏家
pythonpython
在本文中,我们将了解如何通过使用Joblib模块在Python中并行执行代码来大幅减少大型代码的执行时间。Joblib模块简介Joblib是一个用于Python的开源库,它提供了一些用于并行计算和内存映射的工具,旨在提高科学计算和数据分析的效率。Python中的Joblib模块特别用于使用Pipelines并行执行任务,而不是一个接一个地顺序执行任务。Joblib模块允许用户通过利用设备中存在的所
- 戊土:吃鸡里“独当一面”的pvp
昺泽笚
关注@雨霖中的玄在懂你的人群里散步...戊土如山#大地之土厚载万物#不知自己五行为何的伙伴们可以阅读前文“自学八字排盘”找到自己的五行归属。今天分享的专题是:五行十天干系列之——戊土。五行十天干谈人之性格、人生发展...等表象特征是比较基础的分享,绝不是全部,具体每个人的显性、隐性、终身无除性格、人生发展,趋吉避凶等等是需要命理总统的论断体系测算的。戊土:承接天地混沌之气,抱一守中戊土属阳,聚于中
- 三七定律
越自律越成功
俗话说:“对事三分为己,七分为人;对朋友三分认真,七分宽容;对命运三分信天,七分靠自己。“而这“三七定律”不仅适用于生活,用于感情,更为恰当。对于感情,你可以交付,但不能全付,爱的太满,可能是一场灾难。要知道,人与人之间相处,最好的状态就是相处舒服。尤其在婚姻里,更要讲究方式,方法,想要长久在一起,一定要懂得“三七定律”。三分明讲,七分默契。有一句说过:“懂你的人自然懂,不懂你的人解释了也没用。”
- 弹性资源组件集成系列(一)datax集成弹性资源设计解释
中间件XL
弹性资源组件k8s分布式dataX弹性资源分布式dataxk8s
简介弹性组件集成有弹性需求的组件,为组件增加高弹性容量,规划集成datax,elastic-job,xxl-job,sentineldashboard,dolphinscheduer,eventbridgedatax基于社区版,此前已对datax进行重构,增加其metricsexporter,分布式特性,分布式模型是基于启动的worker分配,固定的worker数量,如果分片少,浪费资源;分片多,
- 你的苦,不必逢人就说,毕竟成年人的世界,无人不苦。
执着的80后
虽然开口讲话是人的天性,但闭嘴不言却是一种修养。一个人成熟自律的标志之一,就是懂得少说多听,谨言慎行。别费力解释真正懂得你的人,即使你不言不语,也能心知意会;而不懂你的人,纵然你喋喋不休,亦如鸡同鸭讲。这世间悲喜并不相通。与其拼命向不懂你的人解释自己,不如保持沉默,做好自己,让时间回应一切。不轻易评价你不经意的一句评价,很可能成为一柄戳心的利刃,给对方造成无法弥补的伤害。你随口的一句议论,也许就会
- 第七十五章 浮生
123456奇
2018年8月25日真是开心啊,又一次摸到我的键盘了,又一次敲击文字了。但我想以后我们的文字还是只写给我们自己看吧,很多事是不好和别人说的,也不屑于去说了,懂你的人,你无需多说,不懂你的人只会看你笑话。既然这么刺激的啊,我就写写吧。首先要写的是,我家里彻底变成平民阶级了,虽然这是我所期望的,但真的走到这一步后,还真的发现人生没钱,其实挺难的。而以前自己总是说的那句我不要家里一分钱也真的是装逼过头了
- 英语流利说懂你英语 Level6 Unit2 Part4 Listening - Aging Population
wxl_dl
Theworld'spopulationisgrowingatarateofalittlemorethan1%peryear.However,notallsegmentsofthepopulationaregrowingatthesamerate.Thisgraphshowstherateofgrowthof3differentgroups:children,adultsandtheelderly
- 今夜无眠
郑无心
想念是不能提及的话语说多了势必有虚伪的痕迹千言万语总抵不过一句××日,我去××找你你孤独时我不曾在身边无人倾诉时我或许在他乡偷闲但请不要失落原谅我,无从知道这一切如果梦里的你在哽咽有人会流着泪醒来心疼到无法入眠幻想一个傻瓜在愁眉苦脸你的委屈,会不会好一点?云在哭泣的时候太阳总沉默不语当一切归于平静它会拭去云灰暗的泪滴就像我懂你无需提起我不会劝你停止哭泣只在脆弱时借你一双,可以停靠的手臂那个叫朋友的
- jvm调优总结(从基本概念 到 深度优化)
oloz
javajvmjdk虚拟机应用服务器
JVM参数详解:http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html
Java虚拟机中,数据类型可以分为两类:基本类型和引用类型。基本类型的变量保存原始值,即:他代表的值就是数值本身;而引用类型的变量保存引用值。“引用值”代表了某个对象的引用,而不是对象本身,对象本身存放在这个引用值所表示的地址的位置。
- 【Scala十六】Scala核心十:柯里化函数
bit1129
scala
本篇文章重点说明什么是函数柯里化,这个语法现象的背后动机是什么,有什么样的应用场景,以及与部分应用函数(Partial Applied Function)之间的联系 1. 什么是柯里化函数
A way to write functions with multiple parameter lists. For instance
def f(x: Int)(y: Int) is a
- HashMap
dalan_123
java
HashMap在java中对很多人来说都是熟的;基于hash表的map接口的非同步实现。允许使用null和null键;同时不能保证元素的顺序;也就是从来都不保证其中的元素的顺序恒久不变。
1、数据结构
在java中,最基本的数据结构无外乎:数组 和 引用(指针),所有的数据结构都可以用这两个来构造,HashMap也不例外,归根到底HashMap就是一个链表散列的数据
- Java Swing如何实时刷新JTextArea,以显示刚才加append的内容
周凡杨
java更新swingJTextArea
在代码中执行完textArea.append("message")后,如果你想让这个更新立刻显示在界面上而不是等swing的主线程返回后刷新,我们一般会在该语句后调用textArea.invalidate()和textArea.repaint()。
问题是这个方法并不能有任何效果,textArea的内容没有任何变化,这或许是swing的一个bug,有一个笨拙的办法可以实现
- servlet或struts的Action处理ajax请求
g21121
servlet
其实处理ajax的请求非常简单,直接看代码就行了:
//如果用的是struts
//HttpServletResponse response = ServletActionContext.getResponse();
// 设置输出为文字流
response.setContentType("text/plain");
// 设置字符集
res
- FineReport的公式编辑框的语法简介
老A不折腾
finereport公式总结
FINEREPORT用到公式的地方非常多,单元格(以=开头的便被解析为公式),条件显示,数据字典,报表填报属性值定义,图表标题,轴定义,页眉页脚,甚至单元格的其他属性中的鼠标悬浮提示内容都可以写公式。
简单的说下自己感觉的公式要注意的几个地方:
1.if语句语法刚接触感觉比较奇怪,if(条件式子,值1,值2),if可以嵌套,if(条件式子1,值1,if(条件式子2,值2,值3)
- linux mysql 数据库乱码的解决办法
墙头上一根草
linuxmysql数据库乱码
linux 上mysql数据库区分大小写的配置
lower_case_table_names=1 1-不区分大小写 0-区分大小写
修改/etc/my.cnf 具体的修改内容如下:
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/va
- 我的spring学习笔记6-ApplicationContext实例化的参数兼容思想
aijuans
Spring 3
ApplicationContext能读取多个Bean定义文件,方法是:
ApplicationContext appContext = new ClassPathXmlApplicationContext(
new String[]{“bean-config1.xml”,“bean-config2.xml”,“bean-config3.xml”,“bean-config4.xml
- mysql 基准测试之sysbench
annan211
基准测试mysql基准测试MySQL测试sysbench
1 执行如下命令,安装sysbench-0.5:
tar xzvf sysbench-0.5.tar.gz
cd sysbench-0.5
chmod +x autogen.sh
./autogen.sh
./configure --with-mysql --with-mysql-includes=/usr/local/mysql
- sql的复杂查询使用案列与技巧
百合不是茶
oraclesql函数数据分页合并查询
本片博客使用的数据库表是oracle中的scott用户表;
------------------- 自然连接查询
查询 smith 的上司(两种方法)
&
- 深入学习Thread类
bijian1013
javathread多线程java多线程
一. 线程的名字
下面来看一下Thread类的name属性,它的类型是String。它其实就是线程的名字。在Thread类中,有String getName()和void setName(String)两个方法用来设置和获取这个属性的值。
同时,Thr
- JSON串转换成Map以及如何转换到对应的数据类型
bijian1013
javafastjsonnet.sf.json
在实际开发中,难免会碰到JSON串转换成Map的情况,下面来看看这方面的实例。另外,由于fastjson只支持JDK1.5及以上版本,因此在JDK1.4的项目中可以采用net.sf.json来处理。
一.fastjson实例
JsonUtil.java
package com.study;
impor
- 【RPC框架HttpInvoker一】HttpInvoker:Spring自带RPC框架
bit1129
spring
HttpInvoker是Spring原生的RPC调用框架,HttpInvoker同Burlap和Hessian一样,提供了一致的服务Exporter以及客户端的服务代理工厂Bean,这篇文章主要是复制粘贴了Hessian与Spring集成一文,【RPC框架Hessian四】Hessian与Spring集成
在
【RPC框架Hessian二】Hessian 对象序列化和反序列化一文中
- 【Mahout二】基于Mahout CBayes算法的20newsgroup的脚本分析
bit1129
Mahout
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information re
- nginx三种获取用户真实ip的方法
ronin47
随着nginx的迅速崛起,越来越多公司将apache更换成nginx. 同时也越来越多人使用nginx作为负载均衡, 并且代理前面可能还加上了CDN加速,但是随之也遇到一个问题:nginx如何获取用户的真实IP地址,如果后端是apache,请跳转到<apache获取用户真实IP地址>,如果是后端真实服务器是nginx,那么继续往下看。
实例环境: 用户IP 120.22.11.11
- java-判断二叉树是不是平衡
bylijinnan
java
参考了
http://zhedahht.blog.163.com/blog/static/25411174201142733927831/
但是用java来实现有一个问题。
由于Java无法像C那样“传递参数的地址,函数返回时能得到参数的值”,唯有新建一个辅助类:AuxClass
import ljn.help.*;
public class BalancedBTree {
- BeanUtils.copyProperties VS PropertyUtils.copyProperties
诸葛不亮
PropertyUtilsBeanUtils
BeanUtils.copyProperties VS PropertyUtils.copyProperties
作为两个bean属性copy的工具类,他们被广泛使用,同时也很容易误用,给人造成困然;比如:昨天发现同事在使用BeanUtils.copyProperties copy有integer类型属性的bean时,没有考虑到会将null转换为0,而后面的业
- [金融与信息安全]最简单的数据结构最安全
comsci
数据结构
现在最流行的数据库的数据存储文件都具有复杂的文件头格式,用操作系统的记事本软件是无法正常浏览的,这样的情况会有什么问题呢?
从信息安全的角度来看,如果我们数据库系统仅仅把这种格式的数据文件做异地备份,如果相同版本的所有数据库管理系统都同时被攻击,那么
- vi区段删除
Cwind
linuxvi区段删除
区段删除是编辑和分析一些冗长的配置文件或日志文件时比较常用的操作。简记下vi区段删除要点备忘。
vi概述
引文中并未将末行模式单独列为一种模式。单不单列并不重要,能区分命令模式与末行模式即可。
vi区段删除步骤:
1. 在末行模式下使用:set nu显示行号
非必须,随光标移动vi右下角也会显示行号,能够正确找到并记录删除开始行
- 清除tomcat缓存的方法总结
dashuaifu
tomcat缓存
用tomcat容器,大家可能会发现这样的问题,修改jsp文件后,但用IE打开 依然是以前的Jsp的页面。
出现这种现象的原因主要是tomcat缓存的原因。
解决办法如下:
在jsp文件头加上
<meta http-equiv="Expires" content="0"> <meta http-equiv="kiben&qu
- 不要盲目的在项目中使用LESS CSS
dcj3sjt126com
Webless
如果你还不知道LESS CSS是什么东西,可以看一下这篇文章,是我一朋友写给新人看的《CSS——LESS》
不可否认,LESS CSS是个强大的工具,它弥补了css没有变量、无法运算等一些“先天缺陷”,但它似乎给我一种错觉,就是为了功能而实现功能。
比如它的引用功能
?
.rounded_corners{
- [入门]更上一层楼
dcj3sjt126com
PHPyii2
更上一层楼
通篇阅读完整个“入门”部分,你就完成了一个完整 Yii 应用的创建。在此过程中你学到了如何实现一些常用功能,例如通过 HTML 表单从用户那获取数据,从数据库中获取数据并以分页形式显示。你还学到了如何通过 Gii 去自动生成代码。使用 Gii 生成代码把 Web 开发中多数繁杂的过程转化为仅仅填写几个表单就行。
本章将介绍一些有助于更好使用 Yii 的资源:
- Apache HttpClient使用详解
eksliang
httpclienthttp协议
Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我们再讨论),它不仅是客户端发送Http请求变得容易,而且也方便了开发人员测试接口(基于Http协议的),即提高了开发的效率,也方便提高代码的健壮性。因此熟练掌握HttpClient是很重要的必修内容,掌握HttpClient后,相信对于Http协议的了解会
- zxing二维码扫描功能
gundumw100
androidzxing
经常要用到二维码扫描功能
现给出示例代码
import com.google.zxing.WriterException;
import com.zxing.activity.CaptureActivity;
import com.zxing.encoding.EncodingHandler;
import android.app.Activity;
import an
- 纯HTML+CSS带说明的黄色导航菜单
ini
htmlWebhtml5csshovertree
HoverTree带说明的CSS菜单:纯HTML+CSS结构链接带说明的黄色导航
在线体验效果:http://hovertree.com/texiao/css/1.htm代码如下,保存到HTML文件可以看到效果:
<!DOCTYPE html >
<html >
<head>
<title>HoverTree
- fastjson初始化对性能的影响
kane_xie
fastjson序列化
之前在项目中序列化是用thrift,性能一般,而且需要用编译器生成新的类,在序列化和反序列化的时候感觉很繁琐,因此想转到json阵营。对比了jackson,gson等框架之后,决定用fastjson,为什么呢,因为看名字感觉很快。。。
网上的说法:
fastjson 是一个性能很好的 Java 语言实现的 JSON 解析器和生成器,来自阿里巴巴的工程师开发。
- 基于Mybatis封装的增删改查实现通用自动化sql
mengqingyu
DAO
1.基于map或javaBean的增删改查可实现不写dao接口和实现类以及xml,有效的提高开发速度。
2.支持自定义注解包括主键生成、列重复验证、列名、表名等
3.支持批量插入、批量更新、批量删除
<bean id="dynamicSqlSessionTemplate" class="com.mqy.mybatis.support.Dynamic
- js控制input输入框的方法封装(数字,中文,字母,浮点数等)
qifeifei
javascript js
在项目开发的时候,经常有一些输入框,控制输入的格式,而不是等输入好了再去检查格式,格式错了就报错,体验不好。 /** 数字,中文,字母,浮点数(+/-/.) 类型输入限制,只要在input标签上加上 jInput="number,chinese,alphabet,floating" 备注:floating属性只能单独用*/
funct
- java 计时器应用
tangqi609567707
javatimer
mport java.util.TimerTask; import java.util.Calendar; public class MyTask extends TimerTask { private static final int
- erlang输出调用栈信息
wudixiaotie
erlang
在erlang otp的开发中,如果调用第三方的应用,会有有些错误会不打印栈信息,因为有可能第三方应用会catch然后输出自己的错误信息,所以对排查bug有很大的阻碍,这样就要求我们自己打印调用的栈信息。用这个函数:erlang:process_display (self (), backtrace).需要注意这个函数只会输出到标准错误输出。
也可以用这个函数:erlang:get_s