首页 文章 精选 留言 我的

精选列表

搜索[学习],共10000篇文章
优秀的个人博客,低调大师

《Linux信息安全实用教程》学习笔记

在GRUB中设置密码 vi /etc/grub.conf 增加: password = 654321 或者: password --md5 (MD5值) 使用yyd用户能以root用户执行所有命令 vi /etc/sidoers yyd ALL=(ALL)ALL Linux自带MD5加密 /sbin/grub-md5-crypt 限制su命令的滥用 使用PAM可以对切换到超级用户的限制,PAM可以禁止除在wheel组以外的任何人使用su命令转换成root vi /etc/pam.d/su 去掉这两行左边的注释符“#”: #auth sufficient /libsecurity/$ISA/pam_wheel.so trust use_uid #auth required /lib/security/$SIA/panm_wheel.so use_uid 使用过的命令查看以及配置修改 在“~/.bash_history”文件中默认保存了500条使用过的命令,只要按方向键中的上就可以调出来 vi /etc/profile 修改HISTSIZE的值: HISTSIZE = 10 可以保存的旧命令为10条。 访问控制 hosts.allow和hosts.deny是tcpd服务器主配置文件,tcpd服务器可以控制外部IP对本机服务的访问 vi /etc/hosts.allow ALL:127.0.01 ftp:192.168.0.0/255.255.255.0 第一行是允许访问本机所以服务进程 第二行是允许192.168.0.1~192.168.0.254的IP对本机ftp的服务访问 设置FTP服务器不允许匿名登录 vi /etc/vsftpd/vsftp.conf anonymous_enable = NO 把YES改为NO便可。 配置shadow文件禁止用户登录 这方法只是实现改变此用户密码导致不能登录 vi /etc/shadow 在yyd行,在第一个冒号之后加上一个星号 * 终端禁止yyd用户登录 usermod -L yyd 修改密码最短长度 vi /etc/login.defs PASS_MIN_LEN 5 将5改为10,则最短密码为10。 禁止系统响应ping请求(需要安装iptables) vi /etc/rc.d/ec/local touch /var/lock/subsys/local echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all 运行脚本 ./rc.local 在Linux启动过程中,禁止Ctrl + Alt +Del 重新启动 vi /ect/inittab 注释掉下面这行,用“#”: ca::ctrlaltdel:/sbin/shutdown -tb -r now 通过中断后台启动进程格式 进程命令 & 调度启动(at命令) 日志 Linux日志存储在/var/log目录中 1、当前登录的每个用户的信息记录在utmp文件中 2、每个用户最后的登录信息记录在lastlog文件中 3、每个用户登录、注销以及系统启动、停机的时间信息记录在wtmp文件中,所以记录都包含时间戳 who、who -m、who -q查看系统中用户登录情况 last:往回搜索自从文件wtmp创建以来最近登陆过的用户。 lastlog:列出用户最后登录的时间和登录终端的地址,如果此用户从来没有登录,则显示:**Never logged in**。 sa:汇总先前命令执行的信息。 access-log:记录HTTP/web的传输。 secure:巨鹿登录系统存取资料的信息。 btmp:记录失败的记录。 messages:从syslog记录信息(又得是连接到syslog文件)。 sudolog:记录使用sudo发出的命令。 sulog: 记录使用su命令的使用。 utmp:记录当前登录的每个用户。 wtmp:一个用户每次登录进入和退出时间的永久记录。 xferlog:记录FTP会话。 启动syslog服务 service syslog start 配置文件/etc/syslog.conf # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none /var/log/messages # The authpriv file has restricted access. authpriv.* /var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog # Log cron stuff cron.* /var/log/cron # Everybody gets emergency messages *.emerg * # Save news errors of level crit and higher in a special file. uucp,news.crit /var/log/spooler # Save boot messages also to boot.log local7.* /var/log/boot.log syslog.conf 行的基本语法是: [消息类型].[优先级] [处理方案] ---> facility.priority log_location 注意:中间的分隔符必须是Tab 字符! 消息类型 -说明 authpriv -包括特权信息如用户名在内的认证活动 cron-与cron和at有关的计划任务信息 daemon-与inetd守护进程有关的后台进程信息 kern-内核信息,首先通过klogd传递 lpr-与打印服务有关的信息 mail-与电子邮件有关的信息 mark-syslog内部功能用于生成时间戳 news-来自新闻服务器的信息 syslog-由syslog生成的信息 user-由用户程序生成的信息 uucp-由uucp生成的信息 local0-local7-与自定义程序使用 优先级-说明 emerg-该系统不可用,等同panic alert-需要立即被修改的条件 crit-阻止某些工具或子系统功能实现的错误条件 err-阻止工具或某些子系统部分功能实现的错误条件,等同error warning-预警信息,等同warn notice-具有重要性的普通条件 info-提供信息的消息 debug-不包含函数条件或问题的其他信息 none-没有重要级,通常用于排错 处理方案 -说明 file -指定文件的绝对路径 teminal-输出到终端设备 @host-输出到远程日志服务器 username-发送到指定用户 日志管理工具 logrotate 配置文件/etc/logotate.conf telnet修改默认端口号 vi /etc/services telnet 23/tcp telnet 23/udp 将23改为其他数字。 telnet安全设置 /ect/xinetd.dtelnet ssh基于密钥的验证方法 ssh -keygen -t rsa VNC 能够将完整的窗口画面通过网络传输到另外一台计算机屏幕上。 防火墙 iptables 读书心得: 用的是RED HAT 9 的 Linux 操作系统,发现其实linux的系统做服务器真心好,我现在在管理一台学校的Win2003的服务器,虽然全图形界面话,用着很容易上手,但是如果是用的apache+PHP+MYSQL的话,配置,安全保护等弄起来很复杂,而且若是IIS的话,猜测漏洞比较多,会比较难管理吧。 本文转自我爱物联网博客园博客,原文链接:http://www.cnblogs.com/yydcdut/p/3464340.html如需转载请自行联系原作者

优秀的个人博客,低调大师

Android Map开发基础知识学习笔记

注册Android地图API密钥 运行:keytool -list -keystore ~/.android/debug.keystore 用得到的MD5码到http://code.google.com/intl/zh-CN/android/maps-api-signup.html注册API密钥。参考: http://www.cnblogs.com/feisky/archive/2010/01/17/1650083.html 注册完成后会得到如下的网页: 您的密钥是: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 此密钥适用于所有使用以下指纹所对应证书进行验证的应用程序: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX 下面是一个xml格式的示例,帮助您了解地图功能: <com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent"android:apiKey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" /> 模拟器设置 建立一个"Google Inc.:Google APIs:3"的模拟器。 手机终端需要支持Google Add-ons 作为与Google合作的手机终端的制造商,如果想在自己的Android终端中集成Google的一些应用,例如map,market,picasa,sync等,需要和Google签约,这样Google会有专人帮你将这一系列服务整合到你的平台中来。 作为没有和Google合作的手机终端的制造商,我们可以使用破解的方法将Add-ons中的运行库整合到自己的framework中来(build到手机终端的system.img中)。操作如下: 1.在Android中,额外支持GoogleAdd-ons(Google Maps),需要将如下档案(从标准的SDK中pull出来的,也可以从GPhone中pull出来)打包进System.img。GoogleAdd-ons只需要1--2,Goolge Maps(Google的地图程序)需要1--5: 1)system/frameworkcom.google.android.maps.jar 2)system/etc/permissionscom.google.android.maps.xml 3)system/frameworkcom.google.android.gtalkservice.jar 4)system/etc/permissionscom.google.android.gtalkservice.xml 5)system/appMaps.apk (Google Maps v3.0) 2.源码:Android Cupcake Release(经测试,在donut平台同样适用。) 1)编译源码(为了生成out/target目录中Android最原始的东西) 2)将以上文件加入out/target/product/generic相应目录,在源码根目录使用make snod打包,获得新的system.img 权限和Maps库设置 在manifest.xml中设置全相应的权限,比如: <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET"/> 在manifest.xml中加上要用的maps库: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.package.name"> ... <application android:name="MyApplication"> <uses-library android:name="com.google.android.maps"/> ... </application> ... </manifest> Maps库分析 Maps库提供了十几个类,具体可以参考这里http://code.google.com/intl/ja/android/add-ons/google-apis/reference/index.html,包括Mapview,MapController,MapActivity等。 (1)MapController 控制地图移动,伸缩,以某个GPS坐标为中心,控制MapView中的view组件,管理Overlay,提供View的基本功能。使用多种地图模式(地图模式(某些城市可实时对交通状况进行更新),卫星模式,街景模式)来查看Google Map。 常用方法:animateTo(GeoPoint point)setCenter(GeoPoint point)setZoom(int zoomLevel)等。 (2)MapView Mapview是用来显示地图的view,它派生自android.view.ViewGroup。当MapView获得焦点,可以控制地图的移动和缩放。 地图可以以不同的形式来显示出来,如街景模式,卫星模式等,通过setSatellite(boolean)setTraffic(boolean), setStreetView(boolean)方法。 MapView只能被MapActivity来创建,这是因为mapview需要通过后台的线程来连接网络或者文件系统,而这些线程要由mapActivity来管理。 需要特别说明的一点是,android 1.5中,map的zoom采用了built-in机制,可以通过setBuiltInZoomControls(boolean)来设置是否在地图上显示zoom控件。 常用方法:getController()getOverlays()setSatellite(boolean)setTraffic(boolean),setStreetView(boolean)setBuiltInZoomControls(boolean)等。 (3)MapActivity 管理Activity的生命周期,为mapview建立及取消对map service的连接。 MapActivity是一个抽象类,任何想要显示MapView的activity都需要派生自MapActivity。并且在其派生类的onCreate()中,都要创建一个MapView实例,可以通过MapViewconstructor (然后添加到View中ViewGroup.addView(View))或者通过layout XML来创建。 (4)Overlay Overlay是覆盖到MapView的最上层,可以扩展其ondraw接口,自定义在MapView中显示一些自己的东西。MapView通过MapView.getOverlays()对Overlay进行管理。 除了Overlay这个基类,Google还扩展了2个比较有用的Overlay 1)MylocationOverlay—集成了Android.location中接收当前坐标的接口,集成SersorManager中CompassSensor的接口 我们只需要enableMyLocation(),enableCompass就可以让我们的程序拥有实时的MyLocation以及Compass功能(Activity.onResume()中)。 2)ItemlizedOverlay—管理一个OverlayItem链表,用图片等资源在地图上作风格相同的标记。 (5)Projection:MapView中GPS坐标与设备坐标的转换(GeoPoint和Point)。 一个简单的小例子 用一个小程序来演示一下android中地图功能的开发。主要功能是实现了地图的缩放,添加了菜单,从而可以手动选择地图的显示模式等。 Step1:新建一个android project,注意这里要选择的buildtarget为"GoogleAPIs" Step 2:修改menifest文件: <?xmlversion="1.0"encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.map.prac" android:versionCode="1" android:versionName="1.0"> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.INTERNET" /> <application android:icon="@drawable/icon"android:label="@string/app_name"> <uses-library android:name="com.google.android.maps" /> <activity android:name=".MapViewPrac2" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="3" /> </manifest> Step 3:修改layout文件,main.xml <?xmlversion="1.0"encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/main" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="???????????????????????????????????" /> </LinearLayout> 这里需要将api key中的????????????改成你自己申请到的api key. Step4:修改代码: package feisky.navigation; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends MapActivity { // 地图显示控制相关变量定义 private MapView map=null; private MapController mapCon; // 菜单项 final private int menuMode=Menu.FIRST; final private int menuExit=Menu.FIRST+1; private int chooseItem=0; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // 获取MapView map=(MapView)findViewById(R.id.map); // 设置显示模式 map.setTraffic(true); map.setSatellite(false); map.setStreetView(true); // 设置可以缩放 map.setBuiltInZoomControls(true); // 设置初始地图的中心位置 GeoPoint geoBeijing=new GeoPoint((int)(39.95*1000000), (int)(116.37*1000000)); mapCon=map.getController(); mapCon.setCenter(geoBeijing); } @Override public boolean onCreateOptionsMenu(Menu menu) { // 建立菜单 menu.add(0,menuMode,0,"地图模式"); menu.add(0, menuExit, 1, "退出"); return super.onCreateOptionsMenu(menu); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { return super.onKeyDown(keyCode, event); } @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { case menuExit: finish(); break; case menuMode: Dialog dMode=new AlertDialog.Builder(this) .setTitle("地图模式设置") .setSingleChoiceItems(R.array.MapMode, chooseItem, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { chooseItem=which; } }) .setPositiveButton("确定", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { switch (which) { case 0: map.setSatellite(true); //map.setTraffic(false); //map.setStreetView(false); break; case 1: //map.setSatellite(false); map.setTraffic(true); //map.setStreetView(false); break; case 2: //map.setSatellite(false); //map.setTraffic(false); map.setStreetView(true); break; default: break; } } }) .setNegativeButton("取消", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }) .create(); dMode.show(); break; default: break; } return super.onMenuItemSelected(featureId, item); } @Override protected boolean isRouteDisplayed() { return false; } } 本文转自feisky博客园博客,原文链接:http://www.cnblogs.com/feisky/archive/2010/01/20/1652230.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

MyGeneration学习笔记(11) :dOOdad的架构(Architectures)

前面10篇介绍了使用dOOdads做ORM映射的基本使用方法和我在使用过程中的总结的一些技巧,这里我再对dOOdads项目做一个概要的总结: 1. 使用dOOdad的概要步骤: (1) 创建解决方案,将dOOdad项目加入该解决方案; (2) 使用MyGeneration的dOOdads存储过程模板生成存储过程,并手工写入数据库中; (3) 使用MyGeneration的dOOdads BusinessEntity模板和ConcreteClass模板生成实体类;并添加到项目中; (4) 配置数据库连接字符串; That's all! So Easy.详细步骤及我在使用中遇到的问题,我以前都有记录: http://www.cnblogs.com/happyhippy/category/79938.html 2. dOOdad的架构: (1) 模型(From MyGeneration): (2) 架构: 本文转自Silent Void博客园博客,原文链接:http://www.cnblogs.com/happyhippy/archive/2007/04/16/715501.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

Flex学习记录(一)——MXML基本知识

我们使用两种语言来编写Flex程序:MXML和ActionScript。MXML是用来布局用户界面组件的XML标识语言,我们也可以使用MXML来定义一个程序的不可见部分,例如:到服务器数据源的访问以及用户界面组件和服务器数据源的数据绑定。一.简单的MXML 新建一个HellowWorld.mxml文件,并拷贝下面的内容,看一下运行结果。 <?xml version="1.0"?> <!-- mxml\HellowWorld.mxml --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <s:layout> <s:VerticalLayout/> </s:layout> <s:Panel title="My Application"> <s:Label text="Hello World" fontWeight="bold" fontSize="24"/> </s:Panel> </s:Application> 这是一个最简单的MXML程序,从这个例子,我们可以学到如下几点: 1.<s:Application>是一个程序的root tag,代表一个Spark应用容器。一个项目应该只有一个root tag. 2.xmlns:fx="http://ns.adobe.com/mxml/2009是ActionScript元素所在的命名空间 xmlns:mx="library://ns.adobe.com/flex/mx是MX控件集所在的命名空间 xmlns:s="library://ns.adobe.com/flex/spark是Spark控件集所在的命名空间 MX和Spark控件集有很多相同的控件,Spark是为Flex4新出的,尽量使用Spark控件集中的控件,在Spark控件集里没有相应的控件时再用MX控件集的控件 3.MXML 中的每个tag都和ActionScript中的类或属性对应,ActionScript中的类在MXML中用节点表示,属性可以用attribute表 示,也可以用property表示。比如Panel和Label都是Spark控件集中的类。text,fontSize等都是Label类的属性 4.MXML的文件名不能和ActionScript里面的类和控件名相同,不能和MXML里的tag相同,也不能是application,且后缀必须是小写的mxml。二.MXML中属性的赋值 MXML中的属性可以用attribute表示,也可以用property表示。如果属性的类型是简单的类型,用两种方式都能表示,如果是复杂的类型,则只能用属性的方式表示,其通用格式如下: <s:property> <s:propertytype> ...用property的形式列出属性对象里面的各个变量 </s:propertytype> </s:property> 下面对于几种常见的复杂类型,举例说明一下 1.MXML中数组的表示 MXML中可以用tag<fx:Array>和</fx:Array>来表示一个数组,且该tag可以省略。 <mynamespace:nameOfObjectProperty> <fx:Array> <fx:Number>94062</fx:Number> <fx:Number>14850</fx:Number> <fx:Number>53402</fx:Number> </fx:Array> </mynamespace:nameOfObjectProperty> 2.MXML中Vector的表示 <fx:Declarations> <fx:Vector type="String"> <fx:String>one</fx:String> <fx:String>two</fx:String> <fx:String>three</fx:String> </fx:Vector> </fx:Declarations> 3.MXML中XML对象的表示 <mynamespace:value xmlns:a="http://www.example.com/myschema"> <fx:XML> <a:purchaseorder> <a:billingaddress> ... </a:billingaddress> </a:purchaseorder> </fx:XML> </mynamespace:value> 4.MXML中property的值可以用{静态变量}表示,也可以直接用常量表示。例如下面两种方式都可以 <s:Wipe direction="{spark.effects.WipeDirection.LEFT}"> ... </s:Wipe> <s:Wipe direction="left"> ... </s:Wipe> 5.MXML中用\来转义特殊字符,用{\n}或&#13来表示换行符,用&lt;String&gt;来表示<String>三.定制Application的外观 1.控件库里有一些容器控件,可以进行控制应用的外观,比如HGroup和VGroup控制控件的排列方式,TabNavigator添加Tab查看方式等 2.用CSS控制外观,需要用<fx:Style>tag来包含CSS的定义,且该定义必须是root tag的子节点。 <?xml version="1.0"?> <!-- mxml/CSSExample.mxml --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; /* class selector */ .myClass { color: Red } /* type selector */ s|Button { font-size: 18pt } </fx:Style> <s:Panel title="My Application"> <s:Button styleName="myClass" label="This is red 18 point text."/> </s:Panel> </s:Application> 3.用skin控制控件外观 <s:Button skinClass="com.mycompany.skins.MyButtonSkin" />四.ActionScript和MXML的交互 1.在MXML的事件中可以用简单的ActionScript语句 <s:Button label="Click Me" click="textarea1.text='Hello World';" /> 2.在MXML中插入ActionScript语句 <fx:Script> <![CDATA[ public var s:Boolean; public function doSomething():void { // The following statements must be inside a function. s = label1.visible; label1.text = "label1.visible = " + String(s); } ]]> </fx:Script> <fx:Script source="includes/IncludedFile.as"/> 3.使用{}进行数据绑定 <fx:Script> <![CDATA[ [Bindable] public var myText:String = "Display" + "\n" + "Content"; ]]> </fx:Script> <s:TextArea width="100%" text="{myText}"/> 4.对MXML中的tag增加id attribute,这样可以在ActionScript语句中直接访问该对象。 5.用ActionScript创建可以在MXML中使用的控件。 <?xml version="1.0"?> <!-- mxml/CustomMXMLComponent.mxml --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:MyComps="myComponents.boxes.*"> <s:Panel title="My Application" height="150"> <MyComps:MyComboBox/> </s:Panel> </s:Application> 注:文中给出的例子均来自adobe 本文转自左正博客园博客,原文链接:http://www.cnblogs.com/soundcode/archive/2013/05/05/3061134.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

非常优秀的iphone学习文章总结!

This site contains a ton of fun tutorials – so many that they were becoming hard to find! So I put together this little page to help everyone quickly find the tutorial they’re looking for. Hope you enjoy! :] Beginning iPhone Programming iPhone programming is like a ladybug - fun and only a little scary! If you’re completely new to iPhone programming, start here! First there’s a tutorial series that will walk you through the process of creating an iPhone app from start to finish – using the most common APIs that almost every app uses. Next there’s a tutorial about memory management – the area where beginners most often get confused about! Also, if you’re a beginner you should sign up for ourmonthly iOS newsletter– to thank you for signing up, we’ll give you a free copy of the 1st tutorial in theiOS Apprenticeseries! This is an epic-length tutorial for complete beginners that walks you through creating your first app, and it’s fully updated for iOS 5. How To Create a Simple iPhone App on iOS 5 Tutorial: 1/3 How To Create a Simple iPhone App on iOS 5 Tutorial: 2/3 How To Create a Simple iPhone App on iOS 5 Tutorial: 3/3 My App Crashed – Now What? 1/2 My App Crashed – Now What? 2/2 Objective-C Cheat Sheet and Quick Reference iOS for High School Students: Getting Started iOS For High School Students: Text Adventure Game Memory Management in Objective-C Tutorial How To Debug Memory Leaks with XCode and Instruments Tutorial Using Properties in Objective-C Tutorial How to Submit Your App to Apple: From No Account to App Store, Part 1 How to Submit Your App to Apple: From No Account to App Store, Part 2 iOS 5 Tutorials Want some iOS 5 Tutorials? We got you covered! iOS 5 is one of the biggest updates to iOS so far. It has tons of cool new APIs and features you can use in your apps, from ARC to Storyboards to iCloud to GLKit to much more! We wrote a huge book callediOS 5 By Tutorialsthat covers everything you need to know, and we’re also releasing some of the chapters here for free! Introducing the iOS 5 Feast User Interface Customization in iOS 5 Beginning Storyboards in iOS 5 Part 1 Beginning Storyboards in iOS 5 Part 2 Beginning Turn-Based Gaming with iOS 5 Part 1 Beginning Turn-Based Gaming with iOS 5 Part 2 Working with JSON in iOS 5 Beginning iCloud in iOS 5 Tutorial Part 1 Beginning iCloud in iOS 5 Tutorial Part 2 iCloud and UIDocument: Beyond the Basics. Part 1/4 iCloud and UIDocument: Beyond the Basics. Part 2/4 iCloud and UIDocument: Beyond the Basics. Part 3/4 iCloud and UIDocument: Beyond the Basics. Part 4/4 Beginning Twitter in iOS 5 Beginning ARC in iOS 5 Part 1 Beginning ARC in iOS 5 Part 2 Beginning Core Image in iOS 5 UIKit Particle Systems in iOS 5 UIGestureRecognizer Tutorial in iOS 5: Pinches, Pans, and More! Basic Security in iOS 5 Tutorial Part 1 Basic Security in iOS 5 Tutorial Part 2 How To Create a PDF with Quartz2D in iOS 5 Tutorial Part 1 How To Create a PDF with Quartz2D in iOS 5 Tutorial Part 2 How To Use Blocks in iOS 5 Tutorial Part 1 How To Use Blocks in iOS 5 Tutorial Part 2 How To Create a Rotating Wheel Control with UIKit How To Use UIScrollView to Scroll and Zoom Content Beginning Game Programming with Cocos2D Ninjas Going Pew-Pew! If you want to make games on the iPhone, the easiest way by far is to use theCocos2D iPhoneframework! These tutorials will help get you started by showing you how to make some simple games and solve common problems. In addition to these tutorials, you might be interested in theCocos2D bookby Rod Strougo and myself. How To Make A Simple iPhone Game with Cocos2D Rotating Turrets: How To Make A Simple iPhone Game with Cocos2D Part 2 Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3 How To Make a Tile Based Game with Cocos2D Collisions and Collectables: How To Make a Tile Based Game with Cocos2D Part 2 How To Use Animations and Sprite Sheets in Cocos2D How To Make a Space Shooter iPhone Game How To Create a HUD Layer with Cocos2D Intermediate Game Programming with Cocos2D Whack this Mole! If you’ve finished the Beginning Game Programming tutorials and are itching for some more, check out these tutorials for more advanced techniques! How To Create Buttons in Cocos2D: Simple, Radio, and Toggle How To Drag and Drop Sprites with Cocos2D How To Create A Mole Whacking Game With Cocos2D: Part 1/2 How To Create A Mole Whacking Game With Cocos2D: Part 2/2 Introduction to Augmented Reality on the iPhone How To Create Dynamic Textures with CCRenderTexture How To Create A Game Like Tiny Wings Part 1 How To Create A Game Like Tiny Wings Part 2 How To Mask a Sprite with Cocos2D 1.0 How To Mask a Sprite with Cocos2D 2.0 How To Integrate Cocos2D and UIKit How To Create a Multi-Directional Scrolling Shooter Part 1 How To Create a Multi-Directional Scrolling Shooter Part 2 Introduction to A* Pathfinding How To Implement A* Pathfinding with Cocos2D How to Make a Turn-Based Strategy Game – Part 1 How to Make a Turn-Based Strategy Game – Part 2 Cocos2D Tools Create this game with some great Cocos2D tools! There are some great tools available that make your job as a Cocos2D developer much easier. Check out these tutorials to learn about the tools and how to use them effectively! How To Create and Optimize Sprite Sheets in Cocos2D with Texture Packer and Pixel Formats How To Build a Monkey Jump Game Using Cocos2D, PhysicsEditor & TexturePacker Part 1 How To Build a Monkey Jump Game Using Cocos2D, PhysicsEditor & TexturePacker Part 2 How To Build a Monkey Jump Game Using Cocos2D, PhysicsEditor & TexturePacker Part 3 How To Use SpriteHelper and LevelHelper Tutorial How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Cocos2D Edition] – Part 1 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Cocos2D Edition] – Part 2 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Cocos2D Edition] – Part 3 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Cocos2D Edition] – Part 4 Adding iCade Support to Your Game Advanced Game Programming with OpenGL The lowest level game programming API available on iOS is OpenGL ES 2.0. It gives you the most power and flexibility, but has a notoriously high learning curve. That’s where this site comes to the rescue – we try to explain it as simply as possible and get you started with some simple examples! Learn how to make games the hardcore way! OpenGL ES 2.0 for iPhone Tutorial OpenGL ES 2.0 for iPhone Tutorial Part 2: Textures Beginning OpenGL ES 2.0 with GLKit Part 1 Beginning OpenGL ES 2.0 with GLKit Part 2 How To Create A Simple 2D iPhone Game with OpenGL ES 2.0 and GLKit Part 1 How To Create A Simple 2D iPhone Game with OpenGL ES 2.0 and GLKit Part 2 How To Create Cool Effects with Custom Shaders in OpenGL ES 2.0 and Cocos2D 2.X Other Game Engines Learn about Corona, Unity3D, and more! Other than Cocos2D and OpenGL, there are a lot of other great game frameworks available on iOS. If you want to play around with some of them as well, check out these tutorials! How To Make a Game Like Doodle Jump with Corona Tutorial Part 1 How To Make a Game Like Doodle Jump with Corona Tutorial Part 2 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Corona Edition] – Part 1 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Corona Edition] – Part 2 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Corona Edition] – Part 3 How to Make a Game Like Jetpack Joyride using LevelHelper and SpriteHelper [Corona Edition] – Part 4 How To Make a 2.5D Game With Unity Tutorial: Part 1 How To Make a 2.5D Game With Unity Tutorial: Part 2 How To Make a Simple iPhone Game with Flash CS5 Game Physics Create a simple game with Chipmunk physics! It turns out there are some great libraries available out there that you can use to easily add physics to your games – without having to be a math expert! These tutorials will show you how to get started with these libraries so you can use them to create amazing effects in your games! Intro to Box2D with Cocos2D Tutorial How To Create a Simple Breakout Game with Box2D and Cocos2D Tutorial: Part 1/2 How To Create a Simple Breakout Game with Box2D and Cocos2D Tutorial: Part 2/2 How To Use Box2D for Just Collision Detection How To Create A Simple iPhone Game with Chipmunk Physics Tutorial Intermediate Box2D: Physics, Forces, Ray Casts, and Sensors How To Make a Catapult Shooting Game with Cocos2D and Box2D Part 1 How To Make a Catapult Shooting Game with Cocos2D and Box2D Part 2 Other Game Programming Topics Tomato-San says: w00t, it's done! While we’re on the topic of game programming, here are a few posts with some tips and tricks for game developers. Game Analytics 101 5 Things I Learned Making My First iPhone Game How To Generate Game Tiles with Python Imaging Library How To Host a Beta Test for your iPhone App A n00bs Guide to Making a Beta Signup Form with PHP and WordPress Introducing VickiWenderlich.com: Free Art and Artist Tutorials Saving and Loading Data Core Data Failed Banks Model Diagram Almost every app needs to save and load data on the iPhone – and there are many different ways to do so. In these tutorials, you can get hands-on experience with many of the most common methods. How To Choose the Best XML Parser for your iPhone Project How to Read and Write XML Documents with GDataXML SQLite 101 for iPhone Developers: Creating and Scripting SQLite 101 for iPhone Developers: Making Our App Core Data on iOS 5 Tutorial: Getting Started Core Data on iOS 5 Tutorial: How To Preload and Import Existing Data Core Data Tutorial: How To Preload and Import Existing Data(pre iOS 5 version) Core Data on iOS 5 Tutorial: How to use NSFetchedResultsController How to Save Your App Data with NSCoding and NSFileManager How to Integrate iTunes File Sharing with your iOS App How to Import and Export App Data via Email in your iOS App Graphics and Animation Welcome to Core Graphics 101! In order to be successful on the App Store these days, your app needs to look good. Here are a few tutorials that you can use to up the quality level of your apps, and your gain mad skills with graphics and animation programming. Core Graphics 101: Lines, Rectangles, and Gradients Core Graphics 101: Shadows and Gloss Core Graphics 101: Arcs and Paths Core Graphics 101: Glossy Buttons Core Graphics 101: Patterns How to use UIView Animation Tutorial UIView Animation Tutorial: Practical Recipes Introduction to CALayers Tutorial How to Write a Custom Image Picker like UIImagePicker How to Make a Custom UIView: a 5-star Rating View Beautiful Table View Helper Class How To Create a Simple Magazine App with Core Text Network Programming Web Services + iPhone Apps Rule! You can take your app to the next level by integrating with a server-back end or allowing networking between devices. These tutorials show you how! How To Make a Simple Multiplayer Game with Game Center Tutorial: Part 1/2 How To Make a Simple Multiplayer Game with Game Center Tutorial: Part 2/2 Apple Push Notification Services Tutorial: Part 1/2 Apple Push Notification Services Tutorial: Part 2/2 How To Write A Simple PHP/MySQL Web Service for an iOS App How To Write An iOS App That Uses A Web Service How To Create A Socket Based iPhone App and Server How To Make a Multiplayer iPhone Game Hosted on your Own Server Part 1 How To Make a Multiplayer iPhone Game Hosted on your Own Server Part 2 Making Money 1) Integrate iAd 2) ??? 3) PROFIT! There are certain technologies and techniques you can use in your apps that can directly help you make ‘mo money! And although money can’t buy happiness, you gotta pay for your beer somehow amirite? Introduction to In-App Purchases How To Integrate iAd into Your iPhone App How To Localize an iPhone App Tutorial How To Integrate AdWhirl into a Cocos2D Game How To Market and Promote Your Games and Apps Part 1/4 How To Market and Promote Your Games and Apps Part 2/4 How To Market and Promote Your Games and Apps Part 3/4 How To Market and Promote Your Games and Apps Part 4/4 Audio Screenshot from BasicSounds sample project When I first started iOS programming, I knew a WAV file played sounds and that was about it. These posts explain a lot about audio files and formats, and explain how you can play audio in your apps. Audio 101 for iPhone Developers: File and Data Formats Audio 101 for iPhone Developers: Converting and Recording Audio 101 for iPhone Developers: Playing Audio Programatically iPad Development What it will look like when we're done! If you know how to program for the iPhone, it’s a simple matter to program for the iPad as well! These tutorials walk you through some of the differences and help get you started with some of the new APIs available on the iPad. iPad for iPhone Developers 101: UISplitView Tutorial iPad for iPhone Developers 101: UIPopoverController Tutorial iPad for iPhone Developers 101: Custom Input View Tutorial How to Port an iPhone Application to the iPad 3rd Party Libraries I have a soft spot for malteses! There are a lot of third party APIs and SDKs you might want to include in your apps. These tutorials cover a few of them and show you how to get started. How to Post on Facebook with your iPhone App Hot to Use Facebook’s New Graph API from your iPhone App How to Get a User Profile with Facebook’s New Graph API How to Post to a User’s Wall, Upload Photos, and Add a Like Button from your iPhone App Introduction to Three20 How to Use the Three20 Photo Viewer How to Translate Text with Google Translate and JSON on the iPhone How To Make A Simple RSS Reader iPhone App Tutorial Unit Testing in Xcode 4 Quick Start Guide Other iPhone Tutorials Plot Baltimore crime data using MapKit! There’s always something that doesn’t fit anywhere else! Here’s a hodgepodge of other posts and tutorials you may find interesting. Multithreading and Grand Central Dispatch on iOS for Beginners Tutorial How To Make An Interface with Horizontal Tables Like The Pulse News App Part 1 How To Make An Interface with Horizontal Tables Like The Pulse News App Part 2 Introduction to MapKit on iOS Tutorial iOS Code Signing: Under The Hood How to Autocomplete with Custom Values Android tutorials Get started with Android development! This site has just started expanding with some Android tutorials as well. If you’re completely new to developing for Android, these tutorials are a great way to get started! Getting Started with Android Development Getting Started with Android Development – Part 2 How To Create a Simple Android Game Cocos2D-X for iOS and Android: Getting Started Cocos2D-X for iOS and Android: Space Game Readers Apps Reviews Read about some great apps made by fellow readers! I thought it would be cool if we highlighted a few of these on the site! This way readers can get more exposure for their apps, and everyone can see what other fellow readers have created. Hence, we have this monthly column where we show off readers apps! If you would like to be considered for next month’s article,click here! Reader’s Apps Reviews – March 2012 Reader’s Apps Reviews – April 2012 Reader’s Apps Reviews – May 2012 Training, Announcements, and Notes One day class introducing iOS programming for beginners! From time to time I announce upcoming training, books, and other types of announcements from this site. Here’s the news so far! Web Design: Drinking from a Firehose What is this Blog About? The iPad SDK and NDA My Favorite Mac Applications How to Move Your WordPress Blog to Linode Introducing Tom the Turret Cocos2D Sample Game Upcoming Class: iOS Programming 101 Cocos2D Book and 360iDev iPhone 101 for Baltimore Developers Beginner iPhone Class Available Upcoming Workshop: Cocos2D via Minigames Why I’m Ditching iOS and Becoming An Android Developer(April Fools Joke!) Cocos2D Book Giveaway (prerelease) Cocos2D Book Giveaway Winner (prerelease) Looking For Tutorial Writers June Workshop: Cocos2D via Minigames Cocos2D via Minigames Workshop Update Space Game Starter Kit Update Learning Cocos2D Book Giveaway (post release) Learning Cocos2D Book Giveaway Winners! (post release) Space Game Starter Kit Now Available! Upcoming Talks and Workshops Looking for More Tutorial Writers Reminder: Upcoming Cocos2D via Minigames Workshops An iOS 5 Surprise Coming Soon! iOS Apprentice Complete Series Giveaway iOS 5 By Tutorials Update Now Available iOS Apprentice Early Bird Discount Ending Soon iOS 5 Feast Giveaway Results The raywenderlich.com Team iOS 5 By Tutorials Final Chapters Now Available Merry Christmas 2011 iOS Marketing Survey iOS Apprentice Tutorial 4 Now For Sale! Simple iOS App Tutorial Updated for iOS 5 Jetpack Joyride Tutorial Ported to Corona iOS 5 By Tutorials Complete! MapKit Tutorial Updated for iOS 5 Thermometer App Starter Kit Now Available(April Fools Joke!) Core Data Tutorial Series Updated for iOS 5 iOS 5 by Tutorials Now In Print! Where To Go From Here? If there’s something you’re interested in learning something that isn’t here,suggest a tutorial! Every week I’ll take the best suggestions and put a vote on the sidebar to let you guys choose what you want to see! I hope you enjoy these tutorials, and please stay in touch! Please follow me onTwitter, where I tweet on topics related to iPhone, software, and gaming, orsubscribeto my RSS feed! 本文转自夏雪冬日博客园博客,原文链接:http://www.cnblogs.com/heyonggang/p/3443077.html,如需转载请自行联系原作者

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册