- 一个静态库框架模板: 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;此
- 辗转相处求最大公约数
沐刃青蛟
C++漏洞
无言面对”江东父老“了,接触编程一年了,今天发现还不会辗转相除法求最大公约数。惭愧惭愧!
为此,总结一下以方便日后忘了好查找。
1.输入要比较的两个数a,b
忽略:2.比较大小(因为后面要的是大的数对小的数做%操作)
3.辗转相除(用循环不停的取余,如a%b,直至b=0)
4.最后的a为两数的最大公约数
&
- F5负载均衡会话保持技术及原理技术白皮书
bijian1013
F5负载均衡
一.什么是会话保持? 在大多数电子商务的应用系统或者需要进行用户身份认证的在线系统中,一个客户与服务器经常经过好几次的交互过程才能完成一笔交易或者是一个请求的完成。由于这几次交互过程是密切相关的,服务器在进行这些交互过程的某一个交互步骤时,往往需要了解上一次交互过程的处理结果,或者上几步的交互过程结果,服务器进行下
- Object.equals方法:重载还是覆盖
Cwind
javagenericsoverrideoverload
本文译自StackOverflow上对此问题的讨论。
原问题链接
在阅读Joshua Bloch的《Effective Java(第二版)》第8条“覆盖equals时请遵守通用约定”时对如下论述有疑问:
“不要将equals声明中的Object对象替换为其他的类型。程序员编写出下面这样的equals方法并不鲜见,这会使程序员花上数个小时都搞不清它为什么不能正常工作:”
pu
- 初始线程
15700786134
暑假学习的第一课是讲线程,任务是是界面上的一条线运动起来。
既然是在界面上,那必定得先有一个界面,所以第一步就是,自己的类继承JAVA中的JFrame,在新建的类中写一个界面,代码如下:
public class ShapeFr
- Linux的tcpdump
被触发
tcpdump
用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。 tcpdump可以将网络中传送的数据包的“头”完全截获下来提供分析。它支 持针对网络层、协议、主机、网络或端口的过滤,并提供and、or、not等逻辑语句来帮助你去掉无用的信息。
实用命令实例
默认启动
tcpdump
普通情况下,直
- 安卓程序listview优化后还是卡顿
肆无忌惮_
ListView
最近用eclipse开发一个安卓app,listview使用baseadapter,里面有一个ImageView和两个TextView。使用了Holder内部类进行优化了还是很卡顿。后来发现是图片资源的问题。把一张分辨率高的图片放在了drawable-mdpi文件夹下,当我在每个item中显示,他都要进行缩放,导致很卡顿。解决办法是把这个高分辨率图片放到drawable-xxhdpi下。
&nb
- 扩展easyUI tab控件,添加加载遮罩效果
知了ing
jquery
(function () {
$.extend($.fn.tabs.methods, {
//显示遮罩
loading: function (jq, msg) {
return jq.each(function () {
var panel = $(this).tabs(&
- gradle上传jar到nexus
矮蛋蛋
gradle
原文地址:
https://docs.gradle.org/current/userguide/maven_plugin.html
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon
- 千万条数据外网导入数据库的解决方案。
alleni123
sqlmysql
从某网上爬了数千万的数据,存在文本中。
然后要导入mysql数据库。
悲剧的是数据库和我存数据的服务器不在一个内网里面。。
ping了一下, 19ms的延迟。
于是下面的代码是没用的。
ps = con.prepareStatement(sql);
ps.setString(1, info.getYear())............;
ps.exec
- JAVA IO InputStreamReader和OutputStreamReader
百合不是茶
JAVA.io操作 字符流
这是第三篇关于java.io的文章了,从开始对io的不了解-->熟悉--->模糊,是这几天来对文件操作中最大的感受,本来自己认为的熟悉了的,刚刚在回想起前面学的好像又不是很清晰了,模糊对我现在或许是最好的鼓励 我会更加的去学 加油!:
JAVA的API提供了另外一种数据保存途径,使用字符流来保存的,字符流只能保存字符形式的流
字节流和字符的难点:a,怎么将读到的数据
- MO、MT解读
bijian1013
GSM
MO= Mobile originate,上行,即用户上发给SP的信息。MT= Mobile Terminate,下行,即SP端下发给用户的信息;
上行:mo提交短信到短信中心下行:mt短信中心向特定的用户转发短信,你的短信是这样的,你所提交的短信,投递的地址是短信中心。短信中心收到你的短信后,存储转发,转发的时候就会根据你填写的接收方号码寻找路由,下发。在彩信领域是一样的道理。下行业务:由SP
- 五个JavaScript基础问题
bijian1013
JavaScriptcallapplythisHoisting
下面是五个关于前端相关的基础问题,但却很能体现JavaScript的基本功底。
问题1:Scope作用范围
考虑下面的代码:
(function() {
var a = b = 5;
})();
console.log(b);
什么会被打印在控制台上?
回答:
上面的代码会打印 5。
&nbs
- 【Thrift二】Thrift Hello World
bit1129
Hello world
本篇,不考虑细节问题和为什么,先照葫芦画瓢写一个Thrift版本的Hello World,了解Thrift RPC服务开发的基本流程
1. 在Intellij中创建一个Maven模块,加入对Thrift的依赖,同时还要加上slf4j依赖,如果不加slf4j依赖,在后面启动Thrift Server时会报错
<dependency>
- 【Avro一】Avro入门
bit1129
入门
本文的目的主要是总结下基于Avro Schema代码生成,然后进行序列化和反序列化开发的基本流程。需要指出的是,Avro并不要求一定得根据Schema文件生成代码,这对于动态类型语言很有用。
1. 添加Maven依赖
<?xml version="1.0" encoding="UTF-8"?>
<proj
- 安装nginx+ngx_lua支持WAF防护功能
ronin47
需要的软件:LuaJIT-2.0.0.tar.gz nginx-1.4.4.tar.gz &nb
- java-5.查找最小的K个元素-使用最大堆
bylijinnan
java
import java.util.Arrays;
import java.util.Random;
public class MinKElement {
/**
* 5.最小的K个元素
* I would like to use MaxHeap.
* using QuickSort is also OK
*/
public static void
- TCP的TIME-WAIT
bylijinnan
socket
原文连接:
http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html
以下为对原文的阅读笔记
说明:
主动关闭的一方称为local end,被动关闭的一方称为remote end
本地IP、本地端口、远端IP、远端端口这一“四元组”称为quadruplet,也称为socket
1、TIME_WA
- jquery ajax 序列化表单
coder_xpf
Jquery ajax 序列化
checkbox 如果不设定值,默认选中值为on;设定值之后,选中则为设定的值
<input type="checkbox" name="favor" id="favor" checked="checked"/>
$("#favor&quo
- Apache集群乱码和最高并发控制
cuisuqiang
apachetomcat并发集群乱码
都知道如果使用Http访问,那么在Connector中增加URIEncoding即可,其实使用AJP时也一样,增加useBodyEncodingForURI和URIEncoding即可。
最大连接数也是一样的,增加maxThreads属性即可,如下,配置如下:
<Connector maxThreads="300" port="8019" prot
- websocket
dalan_123
websocket
一、低延迟的客户端-服务器 和 服务器-客户端的连接
很多时候所谓的http的请求、响应的模式,都是客户端加载一个网页,直到用户在进行下一次点击的时候,什么都不会发生。并且所有的http的通信都是客户端控制的,这时候就需要用户的互动或定期轮训的,以便从服务器端加载新的数据。
通常采用的技术比如推送和comet(使用http长连接、无需安装浏览器安装插件的两种方式:基于ajax的长
- 菜鸟分析网络执法官
dcj3sjt126com
网络
最近在论坛上看到很多贴子在讨论网络执法官的问题。菜鸟我正好知道这回事情.人道"人之患好为人师" 手里忍不住,就写点东西吧. 我也很忙.又没有MM,又没有MONEY....晕倒有点跑题.
OK,闲话少说,切如正题. 要了解网络执法官的原理. 就要先了解局域网的通信的原理.
前面我们看到了.在以太网上传输的都是具有以太网头的数据包. 
- Android相对布局属性全集
dcj3sjt126com
android
RelativeLayout布局android:layout_marginTop="25dip" //顶部距离android:gravity="left" //空间布局位置android:layout_marginLeft="15dip //距离左边距
// 相对于给定ID控件android:layout_above 将该控件的底部置于给定ID的
- Tomcat内存设置详解
eksliang
jvmtomcattomcat内存设置
Java内存溢出详解
一、常见的Java内存溢出有以下三种:
1. java.lang.OutOfMemoryError: Java heap space ----JVM Heap(堆)溢出JVM在启动的时候会自动设置JVM Heap的值,其初始空间(即-Xms)是物理内存的1/64,最大空间(-Xmx)不可超过物理内存。
可以利用JVM提
- Java6 JVM参数选项
greatwqs
javaHotSpotjvmjvm参数JVM Options
Java 6 JVM参数选项大全(中文版)
作者:Ken Wu
Email:
[email protected]
转载本文档请注明原文链接 http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm!
本文是基于最新的SUN官方文档Java SE 6 Hotspot VM Opt
- weblogic创建JMC
i5land
weblogicjms
进入 weblogic控制太
1.创建持久化存储
--Services--Persistant Stores--new--Create FileStores--name随便起--target默认--Directory写入在本机建立的文件夹的路径--ok
2.创建JMS服务器
--Services--Messaging--JMS Servers--new--name随便起--Pers
- 基于 DHT 网络的磁力链接和BT种子的搜索引擎架构
justjavac
DHT
上周开发了一个磁力链接和 BT 种子的搜索引擎 {Magnet & Torrent},本文简单介绍一下主要的系统功能和用到的技术。
系统包括几个独立的部分:
使用 Python 的 Scrapy 框架开发的网络爬虫,用来爬取磁力链接和种子;
使用 PHP CI 框架开发的简易网站;
搜索引擎目前直接使用的 MySQL,将来可以考虑使
- sql添加、删除表中的列
macroli
sql
添加没有默认值:alter table Test add BazaarType char(1)
有默认值的添加列:alter table Test add BazaarType char(1) default(0)
删除没有默认值的列:alter table Test drop COLUMN BazaarType
删除有默认值的列:先删除约束(默认值)alter table Test DRO
- PHP中二维数组的排序方法
abc123456789cba
排序二维数组PHP
<?php/*** @package BugFree* @version $Id: FunctionsMain.inc.php,v 1.32 2005/09/24 11:38:37 wwccss Exp $*** Sort an two-dimension array by some level
- hive优化之------控制hive任务中的map数和reduce数
superlxw1234
hivehive优化
一、 控制hive任务中的map数: 1. 通常情况下,作业会通过input的目录产生一个或者多个map任务。 主要的决定因素有: input的文件总个数,input的文件大小,集群设置的文件块大小(目前为128M, 可在hive中通过set dfs.block.size;命令查看到,该参数不能自定义修改);2. 
- Spring Boot 1.2.4 发布
wiselyman
spring boot
Spring Boot 1.2.4已于6.4日发布,repo.spring.io and Maven Central可以下载(推荐使用maven或者gradle构建下载)。
这是一个维护版本,包含了一些修复small number of fixes,建议所有的用户升级。
Spring Boot 1.3的第一个里程碑版本将在几天后发布,包含许多