- Cocos2d、Cocos2dx、Cocos Creator、Cocos Studio的区别
Thomas游戏圈
一、Cocos2d和Cocos2dx的区别【开发语言】:Cocos2d是Object-C写的,Cocos2dx是C++写的,支持使用C++、Lua或Java进行开发。【运行平台】:Cocos2d只能在IOS下运行,Cocos2dx是跨平台的,适配iOS、Android、HTML5、Windows和Mac系统,功能侧重于原生移动平台。点击链接加入群聊【Unity/Cocos交流群】【国籍】:Coco
- Docker -- 编程开发C/C++
weixin_42500287
Linuxdocker
1C/C++1.1关于GCCGCC(GNUCompilerCollection)是一套由GNU开发的编程语言编译器,是一套以GPL及LGPL许可证所发行的自由软件,也是GNU计划的关键部分。GCC(特别是其中的C语言编译器)通常被认为是跨平台编译器的事实标准。GCC可处理C/C++,以及Fortran、Pascal、Object-C、Java、Ada等多种语言。1.1.1使用官方镜像将C/C++代
- iOS 开发:Object-C 和 Swift 的区别 (AI问答)
app开发工程师V帅
iosswift开发语言
一:语言类型的区别(最主要区别)object-c是动态类型语言;swift是静态类型语言;看一下AI的回答,很全面~~Objective-C和Swift的语言类型区别主要体现在以下几个方面:1.静态类型vs.动态类型Objective-C:动态类型:使用动态类型系统。你可以在运行时决定对象的实际类型,这使得编译器在编译时不进行严格的类型检查。这种灵活性可以增加编程的灵活性,但也可能带来运行时错误。
- IOS面试题object-c 149-152
️ 邪神
IOS面试题iosobjective-c面试题面试
149.简述使用nonatomic一定是线程安全的吗?nonatomic的内存管理语义是非原子的,非原子的操作本来就是线程不安全的,而atomic的操作是原子的,但是并不意味着它是线程安全的,它会增加正确的几率,能够更好的避免线程的错误,但是它仍然是线程不安全的.当使用nonatomic的时候,属性的setter和getter操作是非原子的,所以当多个线程同时对某一属性进行读和写的操作,属性的最终
- IOS面试题object-c 136-140
️ 邪神
IOS面试题ios面试object-c
136.简述block在修改NSMutableArray,需不需要添加__block??如果修改的是NSMutableArray的存储内容的话,是不需要添加__block修饰的。如果修改的是NSMutableArray对象的本身,那必须添加__block修饰。参考block的变量捕获(第3点)137.简述block怎么进行内存管理的??当block内部引用全局变量或者不引用任何外部变量时,该blo
- IOS面试题object-c 121-125
️ 邪神
IOS面试题ios面试题objective-c
121.简述Category在编译过后,是在什么时机与原有的类合并到一起的??1.程序启动后,通过编译之后,Runtime会进行初始化,调用_objc_init。2.然后会map_images。3.接下来调用map_images_nolock。4.再然后就是read_images,这个方法会读取所有的类的相关信息。5.最后是调用reMethodizeClass:,这个方法是重新方法化的意思。6.在
- IOS面试题object-c 31-40
️ 邪神
IOS面试题ios面试题objective-c
31、Object-C对象如何进行内存布局?1,所有父类的成员变量和自己的成员变量(实例变量、私有变量、以及声明为属性生成的变量)都会存放在该对象所对应的存储空间中。2,每个对象内部都有一个isa指针,指向他的类对象,类对象中存放着本身对象的a,对象方法列表(对象能够接收的消息列表,保存在它所对应的类对象中)b,成员变量的列表。c,属性列表。类对象内也有一个isa指针指向元对象(metaclass
- IOS面试题object-c 71-80
️ 邪神
IOS面试题ios面试题objective-c
71.简单介绍下NSURLConnection类及+sendSynchronousRequest:returningResponse:error:与–initWithRequest:delegate:两个方法的区别?NSURLConnection主要用于网络访问,其中+sendSynchronousRequest:returningResponse:error:是同步访问数据,即当前线程会阻塞,并
- 懒人做开发系列:利用Object-C特性埋点
moonCoder
Objective-C是一门简单的语言,95%是C。只是在语言层面上加了些关键字和语法。真正让Objective-C如此强大的是它的运行时。它很小但却很强大。它的核心是消息分发。运行时会发消息给对象。一个对象的class保存了方法列表。那么这些消息是如何映射到方法的,这些方法又是如何被执行的呢?第一个问题的答案很简单。class的方法列表其实是一个字典,key为selectors,IMPs为val
- Linux下Redis安装配置,及常用命令
GALAace
Redis简介Redis-REmoteDIctionaryServerRedis是一个使用ANSIC语言编写的开源数据库高性能的key-value数据库内存数据库,支持数据持久化Redis官网https://redis.io/提供了Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang等客户端Redis安装(Linux)下载、解压
- 工具篇 iOS Crash收集
下页天
在iOS程序的崩溃中,主要有两种异常引起的。一个是Mach异常,一个是Object-C异常(NSException,OC层的异常)平台一条龙Crash统计产品CrashlyticsHockeyapp友盟Bugly成熟的开源项目KSCrashplcrashreporterCrashKitCrash的收集方式1、使用Xcode从设备获取崩溃日志:如果你把你的手机连接到Mac,并选择Xcode->Win
- 快速上手Python三剑客--Matplotlib篇
~聊音小生。
快速上手Python三剑客Pythonpythonmatplotlib
MatPlotlib学习什么是Matplotlib?Matplotlib是Python中的图形绘图库,可用作可视化实用程序Matplotlib大部分是用Python编写的,为了平台的兼容性,少部分是用C、Object-C和JavaScript编写的Matplotlib代码库在哪里?Matplotlib的源代码位于Github存储库https://github.com/matplotlib/matp
- object-c一些基础内容--简单整理版
小白不想秃头
c语言ios开发语言objective
#import@interfaceViewController()@property(strong,nonatomic)UIImageView*imageView;@property(strong,nonatomic)UIButton*cameraButton;@end@implementationViewController-(void)viewDidLoad{[superviewDidLoad
- 视频教程-Flutter入门与进阶-flutter
weixin_28741153
Flutter入门与进阶从2012年开始从事移动互联网方面的开发工作,曾担任去哪儿网开发工程师,搜狗高级开发工程师,拥有多年一线实战开发经验。擅长语言:Object-C、Swift、Flutter、Java、C/C++、docker实战:1、高并发即时音视频服务:基于开源WebRTC流媒体服务器进行二次开发,支持高并发的移动端与Web端视频会议项目以及以及IM聊天软件中音视频通信。2、IM即时通信
- Object-c 和js交互所得
张小田
1、判断js是否包含某个函数functionrespondsToSel(sel){varisFunction=false;try{isFunction=typeof(eval(sel))=="function";}catch{}returnisFunction;}
- 鸿蒙系统扫盲(七):勘误补充总结,收个尾
memoryjs
HarmonyOS(鸿蒙)学习harmonyos华为
这是笔者鸿蒙扫盲系列的最后一篇了,准备对过去的六篇扫盲系列文章,错误的地方做一些勘误,并且补充更新一些朋友们感兴趣的知识,最后收个尾。1.勘误,编译型语言和解释型语言在鸿蒙系统扫盲(五):再谈鸿蒙开发用什么语言?中,有这样一句话“而解释型语言的代表就是耳熟能详的C/C++、Rust,以及IOS应用的开发语言,Object-C、Swift等。”这句话写错了,感谢LLLNg这位朋友的指出,上面说的几种
- 如何制作一个简单的游戏 Cocos2d-x 2.1.2
杜甲同学
cocos2d-xcocos2d-x移动开发cocos2d游戏
本文实践自RayWenderlich的文章《HowToMakeASimpleiPhoneGamewithCocos2D2.XTutorial》,文中使用Cocos2D,我在这里使用Cocos2D-x2.1.2进行学习和移植,前者是用Object-C所写,所以移植到Cocos2D-x会有些差异,比如某些函数、某些功能不能跟原文一样直接实现,需另转换方法实现。之前已经对Cocos2D-x的安装以及简单
- flutter底层架构初探
夏目艾拉
flutter
本文出处:Flutter中文开发者网站架构embedder嵌入层提供程序入口(其他原生应用也采用此方式),程序由此和底层操作系统协调(surface渲染、辅助功能和输入服务,管理事件循环队列)嵌入层在android采用java和c++编写,苹果系采用object-c和object-C++,Windows和linux是c++Engine引擎--核心采用C++编写,提供了flutter应用所需的原语,
- 关于EOS中的虚拟机(一)
芒鞋儿
EOS最初的白皮书中曾经说到要用以太坊的虚拟机,但后来并没有采用,而是采用了WASM-LLVM架构,EOS的虚拟机底层以LLVM和WebAssembly两部分组成,他们都是现成已有,LLVM早就用于object-C,而webAssembly用于网页前端的实现,还涉及到一些相关的概念,例如IR中间语言。本文将逐一介绍。LLVM架构:LLVM是一套可重用的编译工具链,提供了介于高级编程语言和机器语言之
- Java学习(十九)--反射
hahaha2221
java学习java学习开发语言
介绍1、动态语言是一类在运行时可以改变其结构的语言:例如新的函数、对象、甚至代码可以被引进,已有的函数可以被删除或是其他结构上的变化。通俗点说就是在运行时代码可以根据某些条件改变自身结构。主要动态语言:Object-C、C#、JavaScript、PHP、Python、Erlang。2、静态语言与动态语言相对应的,运行时结构不可变的语言就是静态语言。如Java、C、C++。Java不是动态语言,但
- tableview上添加索引浮动视图
牛程程
继上一篇文章,简单记录了一下Object-C中UITableView原生的索引功能。在实际项目中,有时还需要实现显示当前索引的浮动视图。如微信中的联系人列表。简单回顾一下,一般来说,只要实现了一下方法,就可以完成UITableView原生的索引功能。-(NSArray*)sectionIndexTitlesForTableView:(UITableView*)tableView;-(NSInteg
- 第一次接触Swift Package Manager作插件管理
FatherXiao
Object-C时代,我们经常避不开使用cocoapods做ios项目的插件管理。cocoapods算得上是那时候混乱的ios插件开发中一个不得不妥协的产物,通过它下载的插件想由于版本混乱、代码兼容等问题,很多时候不得不靠程序员在安装了插件后,需要调整项目参数或者代码质量的方式做微调以保证项目能正常运行。2018年后苹果第一次以官方姿态推出了SwiftPackageManager,简称SPM。目前
- ios 中的 .h 和.m文件
JsLin_
没接触过ios的原生开发,对这个有点不解。下面来了解下:新建一个类这个类继承NSObject的类,就会创建出这样两个文件image.pngimage.pngimage.pngimage.png在.h文件中有一个import,这是用来导入工具包,就是foundation框架@这个标志表示你使用的是object-c语言@interface是声明类的关键字tongdun是类名:冒号表示继承,oc中是单继
- 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
- Object-c初步学习 三
未来取决点滴
学习objective-c
1.@class关键字的使用#import//使用@class声明类(在.h中只需要类的声明,不需要知道变量和方法,不需要import.h文件)@classPerson;NS_ASSUME_NONNULL_BEGIN@interfaceClassStudy:NSObject{Person*_p;}@endNS_ASSUME_NONNULL_END2.@property关键字参数//默认不写参数默认
- Object-c初步学习 一
未来取决点滴
objective-c
oc关键字@1.新建Student.h文件.h文件表示类的声明文件#importNS_ASSUME_NONNULL_BEGIN//@interface代表声明一个类使用@end结束,在{}中声明成员变量@interfaceStudent:NSObject{intage;intno;}//-表示声明动态方法-类方法,类的实例才可以调用//+表示声明静态方法,类名直接调用-(id)initWithAg
- Object-c初步学习 四
未来取决点滴
学习objective-c
1.category的用法不修改对象源文件的方式下,给类添加方法为Student类添加方法////NSObject+StudyCategory.h//#import#import"Student.h"#pragmamark类名后面的(test)代表Category,可以在不修改原来的类文件的情况下,添加新的方法//pragmamark-不可以添加新的成员变量@interfaceStudent(St
- 运行时机制Runtime
jiangzz
Runtime是什么?Runtime是oc语言实现动态的核心将尽可能多的决策从编译时和链接时推迟到运行时运行时系统充当着Object-C语言的操作系统,它使语言能够工作Runtime用来干什么?用在哪些地方?用来干什么基本作用在程序运行过程中,动态的创建类,动态添加、修改这个类的属性和方法;遍历一个类中所有的成员变量、属性、以及所有方法消息传递、转发用在哪些地方Runtime的典型事例给系统分类添
- Object-C和java的区别_十分钟让你明白Objective-C的语法(和Java、C++的对比)
小花蝴蝶
很多想开发iOS,或者正在开发iOS的程序员以前都做过Java或者C++,当第一次看到Objective-C的代码时都会头疼,Objective-C的代码在语法上和Java,C++有着很大的区别,有的同学会感觉像是看天书一样。不过,语言都是相通的,有很多共性。下面列出Objective-C语言的语法和Java,C++的对比,这样你就会很容易Objective-C的语法是怎么回事了。先目睹一下Obj
- Object-C篇-设计模式之代理
TianTianBaby223
一:代理设计模式简述自己做不了的事情,教给别人帮你完成,并且,完成的那个结果返还给你.这个就是代理,举一个简单的小例子:假如足球明星C罗去参加一些商务活动,但是C罗所具有的能力只有足球踢得好,帅,有魅力这写,不会管安排酒店,安排飞机,安排安保,安排活动进程这些东西.这时候需要一个代理人,帮助C罗去完成这些琐事的东西,接下来看看,如何用代码实现这一场景.二:代理设计模式应用场景当对象A发生了一些行为
- jquery实现的jsonp掉java后台
知了ing
javajsonpjquery
什么是JSONP?
先说说JSONP是怎么产生的:
其实网上关于JSONP的讲解有很多,但却千篇一律,而且云里雾里,对于很多刚接触的人来讲理解起来有些困难,小可不才,试着用自己的方式来阐释一下这个问题,看看是否有帮助。
1、一个众所周知的问题,Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;
2、
- Struts2学习笔记
caoyong
struts2
SSH : Spring + Struts2 + Hibernate
三层架构(表示层,业务逻辑层,数据访问层) MVC模式 (Model View Controller)
分层原则:单向依赖,接口耦合
1、Struts2 = Struts + Webwork
2、搭建struts2开发环境
a>、到www.apac
- SpringMVC学习之后台往前台传值方法
满城风雨近重阳
springMVC
springMVC控制器往前台传值的方法有以下几种:
1.ModelAndView
通过往ModelAndView中存放viewName:目标地址和attribute参数来实现传参:
ModelAndView mv=new ModelAndView();
mv.setViewName="success
- WebService存在的必要性?
一炮送你回车库
webservice
做Java的经常在选择Webservice框架上徘徊很久,Axis Xfire Axis2 CXF ,他们只有一个功能,发布HTTP服务然后用XML做数据传输。
是的,他们就做了两个功能,发布一个http服务让客户端或者浏览器连接,接收xml参数并发送xml结果。
当在不同的平台间传输数据时,就需要一个都能解析的数据格式。
但是为什么要使用xml呢?不能使json或者其他通用数据
- js年份下拉框
3213213333332132
java web ee
<div id="divValue">test...</div>测试
//年份
<select id="year"></select>
<script type="text/javascript">
window.onload =
- 简单链式调用的实现技术
归来朝歌
方法调用链式反应编程思想
在编程中,我们可以经常遇到这样一种场景:一个实例不断调用它自身的方法,像一条链条一样进行调用
这样的调用你可能在Ajax中,在页面中添加标签:
$("<p>").append($("<span>").text(list[i].name)).appendTo("#result");
也可能在HQ
- JAVA调用.net 发布的webservice 接口
darkranger
webservice
/**
* @Title: callInvoke
* @Description: TODO(调用接口公共方法)
* @param @param url 地址
* @param @param method 方法
* @param @param pama 参数
* @param @return
* @param @throws BusinessException
- Javascript模糊查找 | 第一章 循环不能不重视。
aijuans
Way
最近受我的朋友委托用js+HTML做一个像手册一样的程序,里面要有可展开的大纲,模糊查找等功能。我这个人说实在的懒,本来是不愿意的,但想起了父亲以前教我要给朋友搞好关系,再加上这也可以巩固自己的js技术,于是就开始开发这个程序,没想到却出了点小问题,我做的查找只能绝对查找。具体的js代码如下:
function search(){
var arr=new Array("my
- 狼和羊,该怎么抉择
atongyeye
工作
狼和羊,该怎么抉择
在做一个链家的小项目,只有我和另外一个同事两个人负责,各负责一部分接口,我的接口写完,并全部测联调试通过。所以工作就剩下一下细枝末节的,工作就轻松很多。每天会帮另一个同事测试一些功能点,协助他完成一些业务型不强的工作。
今天早上到公司没多久,领导就在QQ上给我发信息,让我多协助同事测试,让我积极主动些,有点责任心等等,我听了这话,心里面立马凉半截,首先一个领导轻易说
- 读取android系统的联系人拨号
百合不是茶
androidsqlite数据库内容提供者系统服务的使用
联系人的姓名和号码是保存在不同的表中,不要一下子把号码查询来,我开始就是把姓名和电话同时查询出来的,导致系统非常的慢
关键代码:
1, 使用javabean操作存储读取到的数据
package com.example.bean;
/**
*
* @author Admini
- ORACLE自定义异常
bijian1013
数据库自定义异常
实例:
CREATE OR REPLACE PROCEDURE test_Exception
(
ParameterA IN varchar2,
ParameterB IN varchar2,
ErrorCode OUT varchar2 --返回值,错误编码
)
AS
/*以下是一些变量的定义*/
V1 NUMBER;
V2 nvarc
- 查看端号使用情况
征客丶
windows
一、查看端口
在windows命令行窗口下执行:
>netstat -aon|findstr "8080"
显示结果:
TCP 127.0.0.1:80 0.0.0.0:0 &
- 【Spark二十】运行Spark Streaming的NetworkWordCount实例
bit1129
wordcount
Spark Streaming简介
NetworkWordCount代码
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
- Struts2 与 SpringMVC的比较
BlueSkator
struts2spring mvc
1. 机制:spring mvc的入口是servlet,而struts2是filter,这样就导致了二者的机制不同。 2. 性能:spring会稍微比struts快。spring mvc是基于方法的设计,而sturts是基于类,每次发一次请求都会实例一个action,每个action都会被注入属性,而spring基于方法,粒度更细,但要小心把握像在servlet控制数据一样。spring
- Hibernate在更新时,是可以不用session的update方法的(转帖)
BreakingBad
Hibernateupdate
地址:http://blog.csdn.net/plpblue/article/details/9304459
public void synDevNameWithItil()
{Session session = null;Transaction tr = null;try{session = HibernateUtil.getSession();tr = session.beginTran
- 读《研磨设计模式》-代码笔记-观察者模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* “观
- 重置MySQL密码
chenhbc
mysql重置密码忘记密码
如果你也像我这么健忘,把MySQL的密码搞忘记了,经过下面几个步骤就可以重置了(以Windows为例,Linux/Unix类似):
1、关闭MySQL服务
2、打开CMD,进入MySQL安装目录的bin目录下,以跳过权限检查的方式启动MySQL
mysqld --skip-grant-tables
3、新开一个CMD窗口,进入MySQL
mysql -uroot
 
- 再谈系统论,控制论和信息论
comsci
设计模式生物能源企业应用领域模型
再谈系统论,控制论和信息论
偶然看
- oracle moving window size与 AWR retention period关系
daizj
oracle
转自: http://tomszrp.itpub.net/post/11835/494147
晚上在做11gR1的一个awrrpt报告时,顺便想调整一下AWR snapshot的保留时间,结果遇到了ORA-13541这样的错误.下面是这个问题的发生和解决过程.
SQL> select * from v$version;
BANNER
-------------------
- Python版B树
dieslrae
python
话说以前的树都用java写的,最近发现python有点生疏了,于是用python写了个B树实现,B树在索引领域用得还是蛮多了,如果没记错mysql的默认索引好像就是B树...
首先是数据实体对象,很简单,只存放key,value
class Entity(object):
'''数据实体'''
def __init__(self,key,value)
- C语言冒泡排序
dcj3sjt126com
算法
代码示例:
# include <stdio.h>
//冒泡排序
void sort(int * a, int len)
{
int i, j, t;
for (i=0; i<len-1; i++)
{
for (j=0; j<len-1-i; j++)
{
if (a[j] > a[j+1]) // >表示升序
- 自定义导航栏样式
dcj3sjt126com
自定义
-(void)setupAppAppearance
{
[[UILabel appearance] setFont:[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20]];
[UIButton appearance].titleLabel.font =[UIFont fontWithName:@"FZLTH
- 11.性能优化-优化-JVM参数总结
frank1234
jvm参数性能优化
1.堆
-Xms --初始堆大小
-Xmx --最大堆大小
-Xmn --新生代大小
-Xss --线程栈大小
-XX:PermSize --永久代初始大小
-XX:MaxPermSize --永久代最大值
-XX:SurvivorRatio --新生代和suvivor比例,默认为8
-XX:TargetSurvivorRatio --survivor可使用
- nginx日志分割 for linux
HarborChung
nginxlinux脚本
nginx日志分割 for linux 默认情况下,nginx是不分割访问日志的,久而久之,网站的日志文件将会越来越大,占用空间不说,如果有问题要查看网站的日志的话,庞大的文件也将很难打开,于是便有了下面的脚本 使用方法,先将以下脚本保存为 cutlog.sh,放在/root 目录下,然后给予此脚本执行的权限
复制代码代码如下:
chmo
- Spring4新特性——泛型限定式依赖注入
jinnianshilongnian
springspring4泛型式依赖注入
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
- centOS安装GCC和G++
liuxihope
centosgcc
Centos支持yum安装,安装软件一般格式为yum install .......,注意安装时要先成为root用户。
按照这个思路,我想安装过程如下:
安装gcc:yum install gcc
安装g++: yum install g++
实际操作过程发现,只能有gcc安装成功,而g++安装失败,提示g++ command not found。上网查了一下,正确安装应该
- 第13章 Ajax进阶(上)
onestopweb
Ajax
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
- How to determine BusinessObjects service pack and fix pack
blueoxygen
BO
http://bukhantsov.org/2011/08/how-to-determine-businessobjects-service-pack-and-fix-pack/
The table below is helpful. Reference
BOE XI 3.x
12.0.0.
y BOE XI 3.0 12.0.
x.
y BO
- Oracle里的自增字段设置
tomcat_oracle
oracle
大家都知道吧,这很坑,尤其是用惯了mysql里的自增字段设置,结果oracle里面没有的。oh,no 我用的是12c版本的,它有一个新特性,可以这样设置自增序列,在创建表是,把id设置为自增序列
create table t
(
id number generated by default as identity (start with 1 increment b
- Spring Security(01)——初体验
yang_winnie
springSecurity
Spring Security(01)——初体验
博客分类: spring Security
Spring Security入门安全认证
首先我们为Spring Security专门建立一个Spring的配置文件,该文件就专门用来作为Spring Security的配置