自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (7)
  • 收藏
  • 关注

原创 GameCenter登录代码

static BOOL g_isGameCenterInit = NO;#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] \compare:v options:NSNumericSearch] == NSOrderedAscending)- (void)authenticateLoca

2013-08-24 17:33:16 6815 1

原创 ios错误日志分析

将产生错误日志的App的.app和.dSYM复制到某个指定目录控制台进入目录分别输入:dwarfdump --uuid YourApp.app和warfdump --uuid YourApp.app.dSYM查看UUID是否与日志上的UUID一致解释内存地址Thread 0 Crashed:0   libobjc.A.dylib               0x00

2013-08-23 11:08:51 2579

原创 IOS崩溃日志

1.普通崩溃日志// 1: 进程信息Incident Identifier: 30E46451-53FD-4965-896A-457FC11AD05F // 崩溃报告的唯一标识符// 是与设备标识相对应的唯一键值。虽然它不是真正的设备标识符,// 但也是一个非常有用的情报:如果你看到100个崩溃日志的CrashReporter Key值都是相同的,// 或者只有少数几个不同的Cras

2013-08-21 18:27:17 5294

转载 iOS应用崩溃日志揭秘

转自 http://www.raywenderlich.com/zh-hans/30818/ios应用崩溃日志揭秘http://blog.csdn.net/cuiweijie3/article/details/8778198本文作者是 Soheil Moayedi Azarpour, 他是一名独立iOS开发者。作为一名应用开发者,你是否有过如下经历?

2013-08-21 18:22:03 2165

转载 【iOS-iap防护】验证用户付费收据!拒绝iap Cracker!拒绝iap Free!让iphone越狱用户无从下手!【2012年5月2日更新防护iap Free的方法】

http://blog.csdn.net/xiaominghimi/article/details/7439720

2013-08-19 18:32:33 910

原创 Git Book 中文版

http://gitbook.liuhui998.com/3_5.html

2013-08-16 15:02:34 910

原创 Git 命令

git reset --hard FETCH_HEAD将本地的冲突文件冲掉,不仅需要reset到MERGE-HEAD或者HEAD,还需要--hard。没有后面的hard,不会冲掉本地工作区。只会冲掉stage区。此命令有可能将本地修改内容还原为与服务器相同,所以最好做备份

2013-08-16 14:48:53 668

转载 Git分支管理策略

原文:http://www.ruanyifeng.com/blog/2012/07/git.html如果你严肃对待编程,就必定会使用"版本管理系统"(Version Control System)。眼下最流行的"版本管理系统",非Git莫属。相比同类软件,Git有很多优点。其中很显著的一点,就是版本的分支(branch)和合并(merge)十分方便。有些传统的版本管

2013-08-16 14:21:24 696

转载 SQLite 入门教程(三)好多约束 Constraints

原文:http://www.cnblogs.com/myqiao/archive/2011/07/13/2105550.html一、约束 Constraints在上一篇随笔的结尾,我提到了约束, 但是在那里我把它翻译成了限定符,不太准确,这里先更正一下,应该翻译成约束更贴切一点。 那么什么是约束呢?我们在数据库中存储数据的时候,有一些数据有明显的约束条件。 比如一所学校关于教师的数据表

2013-08-14 11:41:35 3899

转载 讨人喜欢的 MySQL replace into 用法(insert into 的增强版)

原文:http://blog.csdn.net/sahusoft/article/details/4446877在向表中插入数据的时候,经常遇到这样的情况:1. 首先判断数据是否存在; 2. 如果不存在,则插入;3.如果存在,则更新。在 SQL Server 中可以这样处理: if not exists (select 1 from t where id = 1)

2013-08-14 11:03:15 1303

转载 Sqlite判断字段存在

判断表存在的方法很简单,网上很多:SELECT COUNT(*) FROM sqlite_master where type='table' and name='%s'" % tname; 那么判断字段是否存在, 或者说如何判断表的版本是否最新就只需要:select * from sqlite_master where tbl_name='tblContactLis

2013-08-12 15:42:53 7307

转载 git clone权限被拒绝

1 前提:已安装ssh2 检查SSH公钥cd ~/.ssh看看存不存在.ssh,如果存在的话,掠过下一步;不存在的请看下一步3 生成SSH公钥$ ssh-keygen -t rsa -C "your_email@youremail.com" # Creates a new ssh key using the provided email Generati

2013-08-09 21:26:43 18420

转载 Linux chmod 命令参数角释

原文:http://zhidao.baidu.com/question/308923445.htmlchmod是Linux下设置文件权限的命令,后面的数字表示不同用户或用户组的权限。一般是三个数字:第一个数字表示文件所有者的权限第二个数字表示与文件所有者同属一个用户组的其他用户的权限第三个数字表示其它用户组的权限。权限分为三种:读(r=4),写(w=2),执行(x=1)。综

2013-08-09 09:34:41 697

转载 TortoiseGit拉代码需要密码解决方法

原文:http://blog.csdn.net/xuechongyang/article/details/83487351.$ ssh-keygen -t rsa(注意ssh-keygen中间没有空格)2. Git生成id_rsa和id_rsa.pub后,需要用TortiseGit的puttyGen工具把Git生成的private key(id_rsa)重新保存成.

2013-08-08 10:57:45 5963

转载 Ubuntu中Git服务器搭建

http://blog.csdn.net/ice520301/article/details/6142503git服务器搭建过程参考网上资料搭建git服务器过程记录 如下:需求硬件需求:一台Ubuntu或者debian电脑(虚拟机),能通过网络访问到。软件需求:git-core, gitosis, openssh-server, openssh-clie

2013-08-06 17:40:09 822

原创 JIRA 5.0.4安装异常(Ubuntu Server)

日志文件:jira_data\logs\atlassian-jira.log如何在google搜索jira XXXjava.lang.RuntimeException: Probable fatal error:No fonts found.字体相关什么的:# java -version 查看JDK如果是OpenJDK#sudo apt-get install ttf-

2013-08-06 14:07:35 1190

转载 MySQL创建用户与授权

原文:http://zhidao.zgsj.com/article/6/201185171539.shtml一, 创建用户:       命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password';       说明:username - 你将创建的用户名, host - 指定该用户在哪个主机上可以登陆,如果是本地用户可用

2013-08-06 10:59:48 728

原创 cocos2d 在一个面板上居中摆放多个图标

float offsetX = panel.contentSize.width * 0.8f / 6.0f; // 放六个float len = offsetX * itemList.count;CGPoint pt = ccp(panel.contentSize.width * 0.5f, panel.contentSize.height * 0.5f);pt.x -= len * 0.5

2013-08-03 14:37:39 1176

转载 iOS唯一标示符引导

原文unique Identifier即将退出,苹果给了我们Vendor和Advertising identifier两个选择,但应该用哪一个?文档并没有给出确切答案,具体使用哪个完全由你根据自己app的目的来决定。“”阅读器   在2013年3月21日苹果已经通知开发者,从2013年5月1日起,访

2013-08-03 10:05:10 845

转载 .net学科-杨中科-Unity3D视频教程

杨中科老师,CSDN学生大本营2009年度十佳老师。曾任职于微软中国、金蝶软件等知名IT企业。撰写了《自己动手写开发工具》、《程序员的SQL学习笔记》等技术图书。主导了金蝶EAS湖南烟草局SCM系统、字符终端图形库AHA3及开发工具AHAIDE、上海浦东发展银行图形前端等项目的开发,并且在中国工商银行批量平台、集中监控运维系统(部署于中国工商银行、中国农业银行、交通银行、北京银行、深圳发展银行等大

2013-08-03 01:33:21 2255

转载 iPhone开发 判断当前的网络是3g还是wifi

原文鉴客 发布于 2012年03月05日 14时, 0评/260阅 0人收藏此代码, 我要收藏顶0踩1.添加framework: 将SystemConfiguration.framework 添加进工程。 2.下载 https://developer.apple.com/library/ios/samplecode/Reachabilit

2013-08-02 10:47:06 979

Xcode OpenGL ES模板

在xcode上安装 OpenGL ES模板,此模板不是Apple提供的模板。你可以解压到下面目录来安装它: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application/

2015-12-25

ImageMagick图片批量处理

Version: ImageMagick 6.7.6-7 2012-04-20 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP Usage: convert.exe [options ...] file [ [options ...] file ...] [options ...] file Image Settings: -adjoin join images into a single multi-image file -affine matrix affine transform matrix -alpha option activate, deactivate, reset, or set the alpha channel -antialias remove pixel-aliasing -authenticate password decipher image with this password -attenuate value lessen (or intensify) when adding noise to an image -background color background color -bias value add bias when convolving an image -black-point-compensation use black point compensation -blue-primary point chromaticity blue primary point -bordercolor color border color -caption string assign a caption to an image -channel type apply option to select image channels -colors value preferred number of colors in the image -colorspace type alternate image colorspace -comment string annotate image with comment -compose operator set image composite operator -compress type type of pixel compression when writing the image -define format:option define one or more image format options -delay value display the next image after pausing -density geometry horizontal and vertical density of the image -depth value image depth -direction type render text right-to-left or left-to-right -display server get image or font from this X server -dispose method layer disposal method -dither method apply error diffusion to image -encoding type text encoding type -endian type endianness (MSB or LSB) of the image -family name render text with this font family -fill color color to use when filling a graphic primitive -filter type use this filter when resizing an image -font name render text with this font -format "string" output formatted image characteristics -fuzz distance colors within this distance are considered equal -gravity type horizontal and vertical text placement -green-primary point chromaticity green primary point -intent type type of rendering intent when managing the image color -interlace type type of image interlacing scheme -interline-spacing value set the space between two text lines -interpolate method pixel color interpolation method -interword-spacing value set the space between two words -kerning value set the space between two letters -label string assign a label to an image -limit type value pixel cache resource limit -loop iterations add Netscape loop extension to your GIF animation -mask filename associate a mask with the image -mattecolor color frame color -monitor monitor progress -orient type image orientation -page geometry size and location of an image canvas (setting) -ping efficiently determine image attributes -pointsize value font point size -precision value maximum number of significant digits to print -preview type image preview type -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -red-primary point chromaticity red primary point -regard-warnings pay attention to warning messages -remap filename transform image colors to match this set of colors -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -seed value seed a new sequence of pseudo-random numbers -size geometry width and height of image -stretch type render text with this font stretch -stroke color graphic primitive stroke color -strokewidth value graphic primitive stroke width -style type render text with this font style -synchronize synchronize image to storage device -taint declare the image as modified -texture filename name of texture to tile onto the image background -tile-offset geometry tile offset -treedepth value color tree depth -transparent-color color transparent color -undercolor color annotation bounding box color -units type the units of image resolution -verbose print detailed information about the image -view FlashPix viewing transforms -virtual-pixel method virtual pixel access method -weight type render text with this font weight -white-point point chromaticity white point Image Operators: -adaptive-blur geometry adaptively blur pixels; decrease effect near edges -adaptive-resize geometry adaptively resize image using 'mesh' interpolation -adaptive-sharpen geometry adaptively sharpen pixels; increase effect near edges -alpha option on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape -annotate geometry text annotate the image with text -auto-gamma automagically adjust gamma level of image -auto-level automagically adjust color levels of image -auto-orient automagically orient (rotate) image -bench iterations measure performance -black-threshold value force all pixels below the threshold into black -blue-shift factor simulate a scene at nighttime in the moonlight -blur geometry reduce image noise and reduce detail levels -border geometry surround image with a border of color -bordercolor color border color -brightness-contrast geometry improve brightness / contrast of the image -cdl filename color correct with a color decision list -charcoal radius simulate a charcoal drawing -chop geometry remove pixels from the image interior -clamp restrict pixel range from 0 to the quantum depth -clip clip along the first path from the 8BIM profile -clip-mask filename associate a clip mask with the image -clip-path id clip along a named path from the 8BIM profile -colorize value colorize the image with the fill color -color-matrix matrix apply color correction to the image -contrast enhance or reduce the image contrast -contrast-stretch geometry improve contrast by `stretching' the intensity range -convolve coefficients apply a convolution kernel to the image -cycle amount cycle the image colormap -decipher filename convert cipher pixels to plain pixels -deskew threshold straighten an image -despeckle reduce the speckles within an image -distort method args distort images according to given method ad args -draw string annotate the image with a graphic primitive -edge radius apply a filter to detect edges in the image -encipher filename convert plain pixels to cipher pixels -emboss radius emboss an image -enhance apply a digital filter to enhance a noisy image -equalize perform histogram equalization to an image -evaluate operator value evaluate an arithmetic, relational, or logical expression -extent geometry set the image size -extract geometry extract area from image -fft implements the discrete Fourier transform (DFT) -flip flip image vertically -floodfill geometry color floodfill the image with color -flop flop image horizontally -frame geometry surround image with an ornamental border -function name parameters apply function over image values -gamma value level of gamma correction -gaussian-blur geometry reduce image noise and reduce detail levels -geometry geometry preferred size or location of the image -identify identify the format and characteristics of the image -ift implements the inverse discrete Fourier transform (DFT) -implode amount implode image pixels about the center -lat geometry local adaptive thresholding -layers method optimize, merge, or compare image layers -level value adjust the level of image contrast -level-colors color,color level image with the given colors -linear-stretch geometry improve contrast by `stretching with saturation' -liquid-rescale geometry rescale image with seam-carving -median geometry apply a median filter to the image -mode geometry make each pixel the 'predominant color' of the neighborhood -modulate value vary the brightness, saturation, and hue -monochrome transform image to black and white -morphology method kernel apply a morphology method to the image -motion-blur geometry simulate motion blur -negate replace every pixel with its complementary color -noise geometry add or reduce noise in an image -normalize transform image to span the full range of colors -opaque color change this color to the fill color -ordered-dither NxN add a noise pattern to the image with specific amplitudes -paint radius simulate an oil painting -polaroid angle simulate a Polaroid picture -posterize levels reduce the image to a limited number of color levels -profile filename add, delete, or apply an image profile -quantize colorspace reduce colors in this colorspace -radial-blur angle radial blur the image -raise value lighten/darken image edges to create a 3-D effect -random-threshold low,high random threshold the image -region geometry apply options to a portion of the image -render render vector graphics -repage geometry size and location of an image canvas -resample geometry change the resolution of an image -resize geometry resize the image -roll geometry roll an image vertically or horizontally -rotate degrees apply Paeth rotation to the image -sample geometry scale image with pixel sampling -scale geometry scale the image -segment values segment an image -selective-blur geometry selectively blur pixels within a contrast threshold -sepia-tone threshold simulate a sepia-toned photo -set property value set an image property -shade degrees shade the image using a distant light source -shadow geometry simulate an image shadow -sharpen geometry sharpen the image -shave geometry shave pixels from the image edges -shear geometry slide one edge of the image along the X or Y axis -sigmoidal-contrast geometry increase the contrast without saturating highlights or shadows -sketch geometry simulate a pencil sketch -solarize threshold negate all pixels above the threshold level -sparse-color method args fill in a image based on a few color points -splice geometry splice the background color into the image -spread radius displace image pixels by a random amount -statistic type geometry replace each pixel with corresponding statistic from the neighborhood -strip strip image of all profiles and comments -swirl degrees swirl image pixels about the center -threshold value threshold the image -thumbnail geometry create a thumbnail of the image -tile filename tile image when filling a graphic primitive -tint value tint the image with the fill color -transform affine transform image -transparent color make this color transparent within the image -transpose flip image vertically and rotate 90 degrees -transverse flop image horizontally and rotate 270 degrees -trim trim image edges -type type image type -unique-colors discard all but one of any pixel color -unsharp geometry sharpen the image -vignette geometry soften the edges of the image in vignette style -wave geometry alter an image along a sine wave -white-threshold value force all pixels above the threshold into white Image Sequence Operators: -append append an image sequence -clut apply a color lookup table to the image -coalesce merge a sequence of images -combine combine a sequence of images -composite composite image -crop geometry cut out a rectangular region of the image -deconstruct break down an image sequence into constituent parts -evaluate-sequence operator evaluate an arithmetic, relational, or logical expression -flatten flatten a sequence of images -fx expression apply mathematical expression to an image channel(s) -hald-clut apply a Hald color lookup table to the image -morph value morph an image sequence -mosaic create a mosaic from an image sequence -print string interpret string and print to console -process arguments process the image with a custom image filter -separate separate an image channel into a grayscale image -smush geometry smush an image sequence together -write filename write images to this file Image Stack Operators: -clone indexes clone an image -delete indexes delete the image from the image sequence -duplicate count,indexes duplicate an image one or more times -insert index insert last image into the image sequence -reverse reverse image sequence -swap indexes swap two images in the image sequence Miscellaneous Options: -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.

2013-02-27

cocos2d-x粒子编辑器源码

cocos2d-x粒子编辑器源码

2013-02-27

AnimatePacker 2.0

序列帧动画编辑器 AnimatePacker 2.0 支持mac & win32

2013-02-27

Win32 控制台中使用 MFC.zip

 在Virtual C++ 6.0创建的Win32 Application 和 Win32 Console Application 中使用 MFC 是可能的,主要的困难在于绕过MFC提供的WinMain函数。下面我提供一个方法以供参考:

2012-06-02

在控制台中使用MFC.zip

 在Virtual C++ 6.0创建的Win32 Application 和 Win32 Console Application 中使用 MFC 是可能的,主要的困难在于绕过MFC提供的WinMain函数。下面我提供一个方法以供参考:

2012-06-02

iphone加速器_demo_倾斜

I need to use the functionality of an accelerometer in my iphone game. I just have to move an image by tilting the device. However most videos on youtube just show the tilt feature that is somehow inverted and forget to include the calibration. I want the user to calibrate their device to whatever position they're in. Does anyone know how I should get started on this?

2012-04-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除