- 一个静态库框架模板: iOS Universal Framework Mk 7
weixin_34258078
移动开发xcode测试
项目地址:https://github.com/kstenerud/iOS-Universal-Framework这是一个Xcode4使用的项目模板,而不是一个新的开源框架。这是项目主页,介绍得很清楚,我把它抓过来翻译了一下。我们为什么需要框架(Framework)?要想用一种开发者友好的方式共享库是很麻烦的。你不仅仅需要包含库本身,还要加入所有的头文件,资源等等。苹果解决这个问题的方式是框架(f
- 静态库,和静态框架,
weixin_34220834
转:http://blog.csdn.net/jason20ming/article/details/7487139今天看了一天关于StaticLibrary以及StaticFrame的相关资料,先记下来,以免忘了。跟大多数操作系统相同,MacOSX及iOS上均支持静态链接库和动态链接库(这样说可能有点不恰当,但是都是这个意思附近的了)在Xcode4.3中如果是新建一个MacOSX的项目,可以看见
- iOS 蓝牙特技
隐身人
常用iOS蓝牙系统框架:CoreBlueTooth简介:可用于第三方蓝牙设备交互,设备必须支持蓝牙4.0iPhone的设备必须是4S或者更新iPad设备必须是iPadmini或者更新iOS的系统必须是iOS6或者更新蓝牙4.0以低功耗著称,所以一般被称为BLE(bluetoothlowenergy)使用模拟器调试Xcode4.6iOS6.1核心概念CBCentralManager:中心设备(用来连
- @synthesize到底对属性干了什么, 使用场景总结
想名真难
零碎知识点
synthesize的意思是"合成".synthesize的历史Xcode4时,@property只能在.h中生成getter、setter方法的声明,需要在.m中手动加上@synthesize,才会有setter\getter的实现,以及对应的变量_property;xcode4之前:property=setter方法声明+getter方法声明synthesize=ivar+setter实现+g
- plist文件读写,序列化与反序列化,文件的读写[xcode4.4.1]
weixin_30649641
xcode移动开发运维
这篇学习目标:plist文件读写对象序列化与反序列化本地文件的读写iCloud存储的API引言在做iOS开发时,经常用到到plist文件,那plist文件是什么呢?它全名是:PropertyList,属性列表文件,它是一种用来存储串行化后的对象的文件。属性列表文件的扩展名为.plist,因此通常被称为plist文件。文件是xml格式的。plist文件通常用于储存用户设置,也可以用于存储捆绑的信息。
- Object-c初步学习 二
未来取决点滴
objective-c
1.关键字@property和@synthesize及#pragmamark的使用person.h文件#importNS_ASSUME_NONNULL_BEGIN@interfacePerson:NSObject{//int_age;//int_no;}//如果只在.h声明文件中定义property,(相当于生成set/get方法,如果没有成员变量,会自动生成),xcode4.2以上后自动实现se
- xcode 菜单翻译
xumugui007
ios学习xcode
本文调研Xcode的版本是7.1,基本是探索了菜单的每一个按钮。虽然从xcode4一直用到了xcode7,但是一般都只是用了一些基础的功能,说来也惭愧。在一次偶然的机遇突然发现了“显示调用层级”的选项才知道菜单了的按钮并不都是没有用,而是很有用只是你不知道罢了。本想这种东西仔细总结了也不一定有价值还耽误时间,但是两个想法最终还是驱动了我仔细弄完,一是xcode7.1才刚更新没多久,这个时效性还行(
- Xcode菜单选项
rockeen
开发Xcode
本文调研Xcode的版本是7.1,基本是探索了菜单的每一个按钮。虽然从xcode4一直用到了xcode7,但是一般都只是用了一些基础的功能,说来也惭愧。在一次偶然的机遇突然发现了“显示调用层级”的选项才知道菜单了的按钮并不都是没有用,而是很有用只是你不知道罢了。本想这种东西仔细总结了也不一定有价值还耽误时间,但是两个想法最终还是驱动了我仔细弄完,一是xcode7.1才刚更新没多久,这个时效性还行(
- 关于Xcode菜单栏
Zzy_Genesis
iosxcodeunity
转载:http://www.2cto.com/kf/201512/453946.html本文调研Xcode的版本是7.2,基本是探索了菜单的每一个按钮。虽然从xcode4一直用到了xcode7,但是一般都只是用了一些基础的功能,其实菜单的按钮并不都是没有用,而是很有用只是你不知道罢了。下面划了删除线的选项是太基础的选项可以忽略,标红的选项是需要注意的。Xcode-MenuFile:New:可以新建
- ARC机制
认真的人最可爱
iOS技术研发ARCIOS内存管理
iPhone开发深入浅出—ARC本文摘自“泰然”论坛一、ARC是什么ARC是iOS5推出的新功能,全称叫ARC(AutomaticReferenceCounting)。简单地说,就是代码中自动加入了retain/release,原先需要手动添加的用来处理内存管理的引用计数的代码可以自动地由编译器完成了。该机能在iOS5/MacOSX10.7开始导入,利用Xcode4.2可以使用该机能。简单地理解A
- (转)iOS6和Xcode4.5初体验-图多杀猫
lmf208
iphone开发资料xcode4ios新浪微博xcodereferencefacebook
iOS6和Xcode4.5初体验-图多杀猫看了WWDC2012的发布会后,作为一个开发者,当然选择第一时间下载ios6beta和与之配套的Xcode4.5preview,当然,还有最新的iTunes10.6.3。接下来对iOS6和Xcode4.5的特性和使用体验介绍一下。首先是iOS6,在使用Xcode4.5给4s更新到iOS6之后,我迫不及待的对其中的一些新特性进行了实际体验。1.中文Siri在
- PhoneGap 插件简介
@BruceYan@
移动开发移动设备跨平台phonegapphonegap插件phonegapjavascriptactionfunctioncallbackandroid
一、PhoneGap平台前不久PhoneGap发布了1.0版本,这为移动开发大家族提供了又一个跨平台的解决方案。开发者只要有JavaScript、CSS3、Html5的基础就可以快速开发移动应用,并且一次开发支持iOS、iOS(xcode4)、Android、WebOS、Blackberry、Symbian六大平台。不过,JavaScript的速度虽然在近些年提高了100倍,其速度还是无法和原生代
- xcode引入sdk_如何在低版本的Xcode中使用高版本的SDK-阿里云开发者社区
linux分享猿
xcode引入sdk
这几天需要在iOS上做一个关于OpenGLES的课设,想要真机调试时才发现我的4.2版本的Xcode最高只支持iOS5.0的SDK,而我手上的两部测试设备都已经升级到了iOS5.1.1。虽然备份的有shsh可以降回iOS5.0,但是总觉得太麻烦了,于是打算升级到Xcode4.3.2。(Xcode4.3.1及以上版本支持iOS5.1.1调试,仅限Lion系统)然而下载好Xcode4.3.2的DMG文
- TexturePacker与XCode4.6的集成
luzhouwentian
cocos2dioscocos2docxcode4
今天花了几个钟头,终于把TexturePacker与XCode4.6的集成搞出来,期间遇到了很多错误,也参考了一些文章最后还是搞出来了,心中不免有一些欣喜.我是在看着子龙山人的博客时遇到的这个问题,因为山人的博客还是2011年,xcode中的配置自是与现在的有些不同,同时我还在网上参考其他高人的博客,终于完成了tp与xcode的集成.参考的博客地址有:http://blog.csdn.net/lq
- 编译ffmpeg for iOS,并调试iFrameExtractor demo
luzhouwentian
iOSiosoc视频测试调试
说明:本文部分内容参考互联网,亲自调整测试。测试视频地址:http://livecdn.cdbs.com.cn/fmvideo.flv(MBD,cnblogs上传图片功能都不能用了,还去sinaweibo发了张图。)一、调试环境准备1.操作系统:MacOS10.7.42.Xcode版本:Xcode4.4.13.确保xcode的CommandLineTools已安装,CommandLineTools
- c语言arc函数有几个参数,关于ARC的一些说法
weixin_39535752
c语言arc函数有几个参数
以下全部在xCode4.5,llvm4.1的测试环境中1.IBOUTLET对于IBOUTLET必须是weak的说法,经过使用Instruments测试,使用strong修饰在arc开启的情况下完全没有任何内存遗留不释放的问题。而在arc关闭的情况下,如果是assign修饰的,则不用处理,如果是retain的必须在退出viewController的时候release对象。如果是简单的放在变量定义里面
- 关于oneway void
杂货铺学徒
在XCode4.2(withLLVM):里-(void)release{}会弹出警告warning:SemanticIssue:Conflictingdistributedobjectmodifiersonreturntypeinimplementationof'release'为了去掉警告修改如下:-(onewayvoid)release{}onewayisusedwiththedistribu
- iOS——引用计数(一)
晓美焰丶
iosobjective-c
自动引用计数自动引用计数(ARC,AutomaticReferenceCounting)是指内存管理中对引用采取自动计数的技术。满足以下要求后,我们的代码就无需再次键入retain或者是release代码了:使用Xcode4.2或以上版本使用LLVM编译器3.0或以上版本编译器选项中设置ARC为有效在以上条件下编译源代码时,编译器将自动进行内存管理。手动内存管理/引用计数对OC中对象所做的动作:1
- iOS | 内存管理
鱼太咸丶
如何使用内存以及如何分配内存对于设备和用户体验至关重要。OC语言作为C语言的超集,对于内存以及内存管理方面非常重要。从Xcode4.2之后苹果公司采用了ARC编译器特性的内存管理机制,大大的减少了程序员手动对内存的管理。OC的内存管理一般是对OC对象进行管理,包括任何继承了NSObject的对象,因为OC对象是存放于堆中,而非OC对象一般放在栈里面,会被系统自动回收。MRC1.引用计数器(1)引用
- xcode各个版本之间的区别
淉嘫湜嬤
Xcode前身是继承自NeXT的ProjectBuilder1、从Xcode3.1开始,Xcode才可被用为iPhoneOS的开发环境2、Xcode4.0于2011年3月9日正式发行,从Xcode4.1开始,针对OSX10.6及OSX10.7用户3、2013年09月19日xcode5.0正式发布,Xcode主要版本是Xcode5,支持iOS7。4、Xcode6,由苹果公司于2014年6月发布,是一
- Mo DeJong的7个有用的iOS开发SDK (一)
zh405123507
C/C++以及其他编程
本文翻译自http://www.modejong.com/iOS/#ex7MoDeJong在他的博客中提供了7个有趣的示例SDK程序(适用于Xcode3.2.5和iOS4.2),“这些程序和提示信息是专门为开发者所写,但源代码用“as-is”方式开放给公众”。我会对这七个SDK进行测试,作者在偷懒,但是我会给出代码片段和截图,必要的话给出我修改后的代码。我的开发环境是Xcode4.5+iOS5.1
- Box2D C++ 教程-环境设置
superman000001
Box2DC++教程box2dc++教程cocos2d-x游戏引擎
转载文章:原帖地址:http://ohcoder.com/blog/2012/11/29/setting-up/声明:本文翻译自Box2DC++tutorial-Settingup,仅供学习参考。环境设置包括三种主流系统:-Windows-Linux-Mac由于最新的Box2D版本,源码中针对Windows和Mac平台中的主流IDE(VS2010和XCode4)已经进行了整合,所以这里就不进行翻译
- LLDB调试和实战
奔跑的鸿
LLDBLLDB官方文档教程Xcode4.0开始,编译器改用LLVM,调试器从gdb改为LLDBLLDB全称LowLevelDebugger,轻量级的高性能调试器,默认内置于Xcode中查看已设置的所有断点信息:breakpointlist查看设置断点的帮助文档:helpbreakpointset-n用来给方法名设置断点,范围是所有相同方法名的文件-f用来指定哪个文件,一般是带.m的文件-l数字可
- 1.2.autolayout
magic_pill
autoresizing优点:让横竖屏适配相对简单;让子控件可以跟随父控件的行为自动发生相应的变化。局限性:只能解决子控件跟父控件的相对关系问题;不能解决兄弟控件的相对关系问题。autolayoutiOS6.0(Xcode4)开始,iOS7.0开始普遍使用参照约束知识点:UILabel:在没有autolayout之前,UILabel的文字内容总是居中显示,导致顶部和底部会有一大片空缺区域;在有了a
- iOS开发:浅谈内存管理
彭晴朗
内存分布堆:一般由程序员分配释放,若程序员不释放,则可能会引起内存泄漏。其类似于链表。栈:由编译器自动分配释放,存放函数的参数值,局部变量等值。其操作方式类似于数据结构中的栈。内存管理原理OC语言使用引用计数来管理内存,每个对象都有一个可以递增和递减的计数器。如果有其他对象持用该对象的话,那该对象就递增其引用计数;用完以后就递减其计数,当引用计数为0时,就销毁该对象。MRC与ARCXcode4.2
- iOS 本地化应用程序汇总 国际化
xyxdasnjss
iPhone开发iosiosiPhone开发
http://chenjohney.iteye.com/blog/1303723最近要做一个应用要实现本地化,因为使用的是xcode4,应用程序本地化的问题跟以前的版本还是有些不同,在网上找了些资料对于xcode4以上的版本资料还是相对较少,有些最后要通过手动创建文件,这样操作实在是太麻烦,所以经过一个下午的研究,总算是成功了一点点,还是庆幸一下。先给出结果。英语:中文:具体实现如下:静态本地化:
- @property,@synthesize,@dynamic
Berning
@property1>生成get/set方法声明2>生成私有成员变量3>生成get/set方法实现@synthesize注:Xcode4.4以前编译器@property仅生成get/set方法声明,@synthesize会做下面两件事1>生成私有成员变量2>生成get/set方法实现示例:@propertyage;@synthesizeage=_age;//生成的成员变量是_age@synthes
- 12-ARC的开启和禁止
SnorlaxSE
要想将非ARC的代码转换为ARC的代码,大概有2种方式:1.使用Xcode的自动转换工具2.手动设置某些文件支持ARC一、Xcode的自动转换工具Xcode带了一个自动转换工具,可以将旧的源代码转成ARC模式1.ARC是LLVM3.0编译器的特性,而现有工程可能使用老的GCC4.2或LLVM-GCC编译器,因此首先需要设置使用LLVM3.0编译器:(现使用的XCode4.5,LLVM3.0已经升级
- Xcode 项目的 Git 忽略文件
HuntsBot
xcodegitmacosgithubc++
问:将Git与Xcode结合使用时,我应该在.gitignore中包含哪些文件?答1:一个优秀的自由职业者,应该有对需求敏感和精准需求捕获的能力,而huntsbot.com提供了这个机会我之前使用的是票数最高的答案,但它需要进行一些清理,所以这里对Xcode4进行了重做,并进行了一些改进。我已经研究了这个列表中的每个文件,但其中有几个在Apple的官方Xcode文档中不存在,所以我不得不进入App
- @property 、@synthesize 、@dynamic区别
Michael_涵
@property会帮助开发者自动生成get/set方法,编译期间系统发现开发者未添加属性对应set/get方法则会自动生成,已添加则不管。同时属性对应的成员变量默认是"_属性名"。@synthesize在xcode4.4之前如果要自动生成set/get方法,需要此关键字。如果项目里使用"@synthesize属性名"则会声明成员变量和属性为同一个变量。举例:@synthesizeperson;此
- Java实现的基于模板的网页结构化信息精准抽取组件:HtmlExtractor
yangshangchuan
信息抽取HtmlExtractor精准抽取信息采集
HtmlExtractor是一个Java实现的基于模板的网页结构化信息精准抽取组件,本身并不包含爬虫功能,但可被爬虫或其他程序调用以便更精准地对网页结构化信息进行抽取。
HtmlExtractor是为大规模分布式环境设计的,采用主从架构,主节点负责维护抽取规则,从节点向主节点请求抽取规则,当抽取规则发生变化,主节点主动通知从节点,从而能实现抽取规则变化之后的实时动态生效。
如
- java编程思想 -- 多态
百合不是茶
java多态详解
一: 向上转型和向下转型
面向对象中的转型只会发生在有继承关系的子类和父类中(接口的实现也包括在这里)。父类:人 子类:男人向上转型: Person p = new Man() ; //向上转型不需要强制类型转化向下转型: Man man =
- [自动数据处理]稳扎稳打,逐步形成自有ADP系统体系
comsci
dp
对于国内的IT行业来讲,虽然我们已经有了"两弹一星",在局部领域形成了自己独有的技术特征,并初步摆脱了国外的控制...但是前面的路还很长....
首先是我们的自动数据处理系统还无法处理很多高级工程...中等规模的拓扑分析系统也没有完成,更加复杂的
- storm 自定义 日志文件
商人shang
stormclusterlogback
Storm中的日志级级别默认为INFO,并且,日志文件是根据worker号来进行区分的,这样,同一个log文件中的信息不一定是一个业务的,这样就会有以下两个需求出现:
1. 想要进行一些调试信息的输出
2. 调试信息或者业务日志信息想要输出到一些固定的文件中
不要怕,不要烦恼,其实Storm已经提供了这样的支持,可以通过自定义logback 下的 cluster.xml 来输
- Extjs3 SpringMVC使用 @RequestBody 标签问题记录
21jhf
springMVC使用 @RequestBody(required = false) UserVO userInfo
传递json对象数据,往往会出现http 415,400,500等错误,总结一下需要使用ajax提交json数据才行,ajax提交使用proxy,参数为jsonData,不能为params;另外,需要设置Content-type属性为json,代码如下:
(由于使用了父类aaa
- 一些排错方法
文强chu
方法
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
- Swing中文件恢复我觉得很难
小桔子
swing
我那个草了!老大怎么回事,怎么做项目评估的?只会说相信你可以做的,试一下,有的是时间!
用java开发一个图文处理工具,类似word,任意位置插入、拖动、删除图片以及文本等。文本框、流程图等,数据保存数据库,其余可保存pdf格式。ok,姐姐千辛万苦,
- php 文件操作
aichenglong
PHP读取文件写入文件
1 写入文件
@$fp=fopen("$DOCUMENT_ROOT/order.txt", "ab");
if(!$fp){
echo "open file error" ;
exit;
}
$outputstring="date:"." \t tire:".$tire."
- MySQL的btree索引和hash索引的区别
AILIKES
数据结构mysql算法
Hash 索引结构的特殊性,其 检索效率非常高,索引的检索可以一次定位,不像B-Tree 索引需要从根节点到枝节点,最后才能访问到页节点这样多次的IO访问,所以 Hash 索引的查询效率要远高于 B-Tree 索引。
可能很多人又有疑问了,既然 Hash 索引的效率要比 B-Tree 高很多,为什么大家不都用 Hash 索引而还要使用 B-Tree 索引呢
- JAVA的抽象--- 接口 --实现
百合不是茶
抽象 接口 实现接口
//抽象 类 ,方法
//定义一个公共抽象的类 ,并在类中定义一个抽象的方法体
抽象的定义使用abstract
abstract class A 定义一个抽象类 例如:
//定义一个基类
public abstract class A{
//抽象类不能用来实例化,只能用来继承
//
- JS变量作用域实例
bijian1013
作用域
<script>
var scope='hello';
function a(){
console.log(scope); //undefined
var scope='world';
console.log(scope); //world
console.log(b);
- TDD实践(二)
bijian1013
javaTDD
实践题目:分解质因数
Step1:
单元测试:
package com.bijian.study.factor.test;
import java.util.Arrays;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import com.bijian.
- [MongoDB学习笔记一]MongoDB主从复制
bit1129
mongodb
MongoDB称为分布式数据库,主要原因是1.基于副本集的数据备份, 2.基于切片的数据扩容。副本集解决数据的读写性能问题,切片解决了MongoDB的数据扩容问题。
事实上,MongoDB提供了主从复制和副本复制两种备份方式,在MongoDB的主从复制和副本复制集群环境中,只有一台作为主服务器,另外一台或者多台服务器作为从服务器。 本文介绍MongoDB的主从复制模式,需要指明
- 【HBase五】Java API操作HBase
bit1129
hbase
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.ha
- python调用zabbix api接口实时展示数据
ronin47
zabbix api接口来进行展示。经过思考之后,计划获取如下内容: 1、 获得认证密钥 2、 获取zabbix所有的主机组 3、 获取单个组下的所有主机 4、 获取某个主机下的所有监控项  
- jsp取得绝对路径
byalias
绝对路径
在JavaWeb开发中,常使用绝对路径的方式来引入JavaScript和CSS文件,这样可以避免因为目录变动导致引入文件找不到的情况,常用的做法如下:
一、使用${pageContext.request.contextPath}
代码” ${pageContext.request.contextPath}”的作用是取出部署的应用程序名,这样不管如何部署,所用路径都是正确的。
- Java定时任务调度:用ExecutorService取代Timer
bylijinnan
java
《Java并发编程实战》一书提到的用ExecutorService取代Java Timer有几个理由,我认为其中最重要的理由是:
如果TimerTask抛出未检查的异常,Timer将会产生无法预料的行为。Timer线程并不捕获异常,所以 TimerTask抛出的未检查的异常会终止timer线程。这种情况下,Timer也不会再重新恢复线程的执行了;它错误的认为整个Timer都被取消了。此时,已经被
- SQL 优化原则
chicony
sql
一、问题的提出
在应用系统开发初期,由于开发数据库数据比较少,对于查询SQL语句,复杂视图的的编写等体会不出SQL语句各种写法的性能优劣,但是如果将应用系统提交实际应用后,随着数据库中数据的增加,系统的响应速度就成为目前系统需要解决的最主要的问题之一。系统优化中一个很重要的方面就是SQL语句的优化。对于海量数据,劣质SQL语句和优质SQL语句之间的速度差别可以达到上百倍,可见对于一个系统
- java 线程弹球小游戏
CrazyMizzz
java游戏
最近java学到线程,于是做了一个线程弹球的小游戏,不过还没完善
这里是提纲
1.线程弹球游戏实现
1.实现界面需要使用哪些API类
JFrame
JPanel
JButton
FlowLayout
Graphics2D
Thread
Color
ActionListener
ActionEvent
MouseListener
Mouse
- hadoop jps出现process information unavailable提示解决办法
daizj
hadoopjps
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
- PHP图片水印缩放类实现
dcj3sjt126com
PHP
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos
- IOS控件学习:UILabel常用属性与用法
dcj3sjt126com
iosUILabel
参考网站:
http://shijue.me/show_text/521c396a8ddf876566000007
http://www.tuicool.com/articles/zquENb
http://blog.csdn.net/a451493485/article/details/9454695
http://wiki.eoe.cn/page/iOS_pptl_artile_281
- 完全手动建立maven骨架
eksliang
javaeclipseWeb
建一个 JAVA 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=App
[-Dversion=0.0.1-SNAPSHOT]
[-Dpackaging=jar]
建一个 web 项目 :
mvn archetype:create
-DgroupId=com.demo
-DartifactId=web-a
- 配置清单
gengzg
配置
1、修改grub启动的内核版本
vi /boot/grub/grub.conf
将default 0改为1
拷贝mt7601Usta.ko到/lib文件夹
拷贝RT2870STA.dat到 /etc/Wireless/RT2870STA/文件夹
拷贝wifiscan到bin文件夹,chmod 775 /bin/wifiscan
拷贝wifiget.sh到bin文件夹,chm
- Windows端口被占用处理方法
huqiji
windows
以下文章主要以80端口号为例,如果想知道其他的端口号也可以使用该方法..........................1、在windows下如何查看80端口占用情况?是被哪个进程占用?如何终止等. 这里主要是用到windows下的DOS工具,点击"开始"--"运行",输入&
- 开源ckplayer 网页播放器, 跨平台(html5, mobile),flv, f4v, mp4, rtmp协议. webm, ogg, m3u8 !
天梯梦
mobile
CKplayer,其全称为超酷flv播放器,它是一款用于网页上播放视频的软件,支持的格式有:http协议上的flv,f4v,mp4格式,同时支持rtmp视频流格 式播放,此播放器的特点在于用户可以自己定义播放器的风格,诸如播放/暂停按钮,静音按钮,全屏按钮都是以外部图片接口形式调用,用户根据自己的需要制作 出播放器风格所需要使用的各个按钮图片然后替换掉原始风格里相应的图片就可以制作出自己的风格了,
- 简单工厂设计模式
hm4123660
java工厂设计模式简单工厂模式
简单工厂模式(Simple Factory Pattern)属于类的创新型模式,又叫静态工厂方法模式。是通过专门定义一个类来负责创建其他类的实例,被创建的实例通常都具有共同的父类。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。简单工厂模式是工厂模式家族中最简单实用的模式,可以理解为是不同工厂模式的一个特殊实现。
- maven笔记
zhb8015
maven
跳过测试阶段:
mvn package -DskipTests
临时性跳过测试代码的编译:
mvn package -Dmaven.test.skip=true
maven.test.skip同时控制maven-compiler-plugin和maven-surefire-plugin两个插件的行为,即跳过编译,又跳过测试。
指定测试类
mvn test
- 非mapreduce生成Hfile,然后导入hbase当中
Stark_Summer
maphbasereduceHfilepath实例
最近一个群友的boss让研究hbase,让hbase的入库速度达到5w+/s,这可愁死了,4台个人电脑组成的集群,多线程入库调了好久,速度也才1w左右,都没有达到理想的那种速度,然后就想到了这种方式,但是网上多是用mapreduce来实现入库,而现在的需求是实时入库,不生成文件了,所以就只能自己用代码实现了,但是网上查了很多资料都没有查到,最后在一个网友的指引下,看了源码,最后找到了生成Hfile
- jsp web tomcat 编码问题
王新春
tomcatjsppageEncode
今天配置jsp项目在tomcat上,windows上正常,而linux上显示乱码,最后定位原因为tomcat 的server.xml 文件的配置,添加 URIEncoding 属性:
<Connector port="8080" protocol="HTTP/1.1"
connectionTi