- 博客(95)
- 收藏
- 关注
原创 实例变量的位置
@implementation Fraction{ int numerator; int denominator;}按照书中提供的例子将实例变量放到@implementation 中,但是在编译后一直出现错误:In file included from testFraction.m:3:Fraction.m:7: error: inconsistent instan...
2013-01-03 18:11:46
298
原创 stray '@' in program expected '=', ',', ';', 'asm' or '__attribute__' before XXX
写了个例子,一直编译不过,后来确认gnustep不支持@property 和 @synthesize语法;@property 和 @synthesize配对使用,用于生成setter和getter方法。仅记录下。
2013-01-03 18:06:20
323
原创 js调用flash的方法时报错:Error calling method on NPObject!
如题;uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.]默认actionscript中不允许向将方法注册到不同域的 html文档中, 对于这个我们只需要在as中加一下代...
2012-12-27 15:53:19
1052
原创 AIR 2.6 NativeProcess is not supported
使用Flex AIR2.6开发桌面程序,添加程序自己重启或启动其他exe程序, 发现NativeProcess.isSupported一直为false。除了配置文件中extendedDesktop,还需要在发布的时候勾选Export as:Signed native installer, 而不是Signed AIR package.源代码:[code="java"]Nati...
2012-03-28 11:46:50
210
原创 AIR application killed when check camera device
I met this problem and spent nearly two days to solve this problem.At first, I was not clear about this problem. I thought it might be caused by some DLL missing in the OS. I also did not consid...
2011-07-25 19:16:01
121
原创 Bad version number in .class file错误
好吧,我承认我已经没做java开发很久了,很多东西都很陌生了。 MyEclipse导入一个项目,并在添加到Tomcat服务器上去进行debug,启动Tomcat6, 报错:Bad version number in .class file版本不对!! 解决:1. MyEclipse->Windows->Preferences->Java->Ins...
2011-07-08 17:00:16
162
原创 UIComponent中的parentDocument和parent
ParentAndParentDocument.mxml:<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" x...
2011-06-26 17:26:13
197
原创 MySQL中字段问题
最近因为项目需要建立一个基于数据驱动的系统。在做数据录入的时候需要查询数据库中已有的字段。查了一下,MySQL5之后有一个数据库叫做information_schema,存储了一些表字段信息。 利用下面的方式查出某个表中的字段列表:mysql> use information_schema;Database changedmysql> select colum...
2011-06-23 11:35:32
127
原创 swffit使用时火狐的问题
在使用swffit使flash内容适应不同的分辨率,用FireFox打开时网页左部全是空白。解决办法是在网页源代码中将包含flash内容的html元素如div中的“text-align: center;” 移除即可...
2011-06-03 12:52:56
133
原创 aspx与对应.cs之间的关系
在asp.net中,aspx的作用主要是显示页面布局,.cs文件是控制程序逻辑的。并且,通过反编译工具之后会发现,在.cs中,类前的关键字partial,这说明页面对应.cs类是一个分部类,就是可以把一个类分成两块来写,或分到两个文件中去写,.cs是一部分,另一部分就是在aspx中用run=”server”属性的签标,这些标签成为.cs类的一个字段,所以我们能在aspx中能访问到这些对象。...
2011-05-07 15:27:00
469
原创 ToString 自定义格式化
C#中提供了一个IFormattable接口以便实现类自定义格式化字符串。IFormattable有一个方法方法:ToString.定义如下: String ToString( String format, IFormatProvider formatProvider ) 在实现类中可以根据需要这样做:public class Racer:IFormattable{...
2011-04-27 12:06:34
219
原创 委托和事件
将方法作为参数传递给另外一个方法,就必须把方法的细节封装在一种新的类型的对象中,即委托。委托只是一种特殊的对象类型,其特殊之处在于,我们之前定义的所有对象基本都包括数据,而委托包含的只有方法的地址。 在C#中使用一个类时,分为2个阶段。首先要定义这个类,即告诉编译器这个类由什么字段和方法组成。然后(除非使用静态方法)实例化类的一个对象。使用委托时,也需要这2个步骤。首先定义要使用的委托,对于...
2011-04-26 15:38:07
125
原创 C#中的接口
引自:http://www.cnblogs.com/sifang2004/archive/2006/07/14/450565.html 接口的描述: 1.一个接口定义了一个契约。2.接口可以包容方法、C#属性、事件、以及索引器。3.在一个接口声明中,我们可以声明零个或者多个成员。4.所有接口成员的默认访问类型都是public。5.如果在接口成员声明中包括了任何...
2011-04-26 11:59:09
193
原创 [转]深入.NET托管堆(Managed Heap)
原文地址:http://blog.csdn.net/jjss2006/archive/2011/01/24/6161921.aspx 在.NET的所有技术中,最具争议的恐怕是垃圾收集(Garbage Collection,GC)了。作为.NET框架中一个重要的部分,托管堆和垃圾收集机制对我们中的大部分人来说是陌生的概念。在这篇文章中将要讨论托管堆,和你将从中得到怎样的好处。 为什么要托管堆...
2011-04-25 23:54:13
126
原创 SQL Server2008存储过程初探
使用存储过程之前先在数据库中创建存储过程:ALTER PROCEDURE [dbo].[callRecordSimpleSelect] -- Add the parameters for the stored procedure here @name varchar(50)ASBEGIN -- SET NOCOUNT ON added to prevent extr...
2011-04-21 18:36:37
134
原创 [转]错误"Unable to find manifest signing certificate in the certificate store"的解决方法
今天导入一个VS2008工程时,报了一个错误,提示是:Unable to find manifest signing certificate in the certificate store,这我可头大了,心想自己辛苦俩月写得程序不会就这么光荣牺牲了吧,找了一下解决方案,发现有两种解决方法:方法一:把DEF项目的属性->Signing选项->Sign the ClickOnce...
2011-04-21 11:40:43
349
原创 Add new Item -> SQL Server 2008 Database.mdf
.Net新手,仅作学习记录只用。 在VS2008中想要给项目添加基于服务的数据库文件,选择项目->AddItem->Data->Service-Based Database 之后会报出一个错误"Connections to SQL Server files(.mdf) require SQL Server Express 2005 to function proper...
2011-04-19 11:37:12
131
原创 [转]Java运行时环境初始化时出现错误,你可能需要重新安装Flash(CS5)
From:http://blog.csdn.net/forscan/archive/2010/07/05/5713178.aspx又是一次网上大搜索.自己总结一下:下载的版本是Adobe_Flash_CS5 (只有200多MB) 解压后.执行@快速安装.exe,再运行Flash.exe 就出现这个错了.原因是这个精简版没有带JVM网上说要1.6的 jre 就去下载了一个安装好....
2011-04-11 21:08:25
748
原创 9个强大免费的PHP库
Forward from : http://net.tutsplus.com/articles/web-roundups/9-extremely-useful-and-free-php-libraries/A lot of functionality is shared among applications – like sending emails or preventing spa...
2010-12-12 23:16:09
360
原创 PHP 常用类库
Forward from:http://komunitasweb.com/2009/03/20-great-php-library-you-need-to-know/ You’re in the middle of a project, and need to get everything done as soon as possible. To keep the deadline a...
2010-12-12 22:50:41
307
原创 CURL 模拟登陆并获取数据
1、CURL模拟登陆的流程和步骤 分析登陆字,登录后保留COOKIE状,读取COOKIE并跳转到相关页,抓取数。2、tempnam 创建一个临时文件 php内部函数 tempnam() 会快速创建一个具有唯一文件名的临时文件。 若成功则会返回新的临时文件名,若失败则返回false.3、使用CURL模拟登陆到PHP100论坛<?php$cookie_file = tem...
2010-12-12 14:11:58
218
原创 CURL 传输与获取功能
一、什么是CURL且能实现什么功能? 什么是CURL curl是一个利用URL语法在命令行方式下工作的文件传输工具。它支持很多协议:FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 以及 LDAP。curl同样支持HTTPS认证,HTTP POST方法, HTTP PUT方法, FTP上传, HTTP上传, 代理服务器, cookies, 用户名...
2010-12-12 13:47:06
135
原创 smarty 缓存控制
Smarty缓存功能几乎是Smarty模板中占了40%的部分。除了模板语法以外基本就是缓存的功效了。 参考:http://hi.baidu.com/giftangellong/blog/item/9e62a116f0fa3b0d4b90a741.html 一、使用缓存要开启smarty的缓存,只需将caching设为true,并指定cache_dir即可.使用cache_lefet...
2010-12-12 00:39:03
117
原创 Smarty配置使用
转自:http://www.hoo80.com/blog/archives/1455/smarty配置使用.html仅做学习记录使用Smarty配置使用1、 将smarty包解压后,将libs文件夹放到项目站点目录下,libs文件夹其实就是整个smarty的模板引擎。可以将libs名称改为smarty.2、smarty(改过名字的libs)文件夹中包含两个文件夹和四...
2010-12-11 23:08:56
132
原创 安装EPP的调试Zend Debugger
参考引自http://www.cnblogs.com/yjf512/仅学习记录之用。 EPP即可EclipsePHP Studio,是基于Eclipse开发的适用于PHP的IDE,具有调试和提示功能的编辑开发工具。 1. 在本地安装好APMServ5.2.6之后假设www的目标路径为:D:\WebServer\APMServ5.2.6\www\htdocs(其中D:\Web...
2010-12-11 16:31:31
125
原创 php.ini 中开启短标签
控制参数: short_open_tag = On如果设置为Off,则不能正常解析类似于这样形式的php文件:phpinfo()?>而只能解析<?php phpinfo()?>这样形式的php文件所以要想php支持短标签,需要我们把short_open_tag 设置为On....
2010-12-11 14:20:16
291
原创 Apache虚拟主机和虚拟目录的设置
转自:http://weblife.blogbus.com/logs/1434583.html仅做学习记录只用。 一、基于名称的虚拟主机打开Apache2\conf下的httpd.conf,查找#NameVirtualHost *:80,去掉前面的注释。添加虚拟主机www.test.com,在httpd.conf的最后,添加如下代码:<VirtualHost *:80&g...
2010-12-11 13:45:48
98
原创 [Forward]How to compile CSS file in Flash Builder
It's so easy.Step1. Right click on a CSS file.Step2. Click "Compile CSS to SWF"Then compiled SWF is output to "bin" directory. You will notice "Compile CSS to SWF" menu is toggled. So when you compile...
2010-12-10 00:39:44
107
原创 [Forward]Selected Design Patterns - Asynchronous Token
Consider an enterprise application in which a user can place purchase orders for some parts and request price quotes from various suppliers. In this case, the user may click several buttons, resulti...
2010-12-05 00:32:13
141
原创 [Forward]Selected Design Patterns - Data Transfer Object
Data transfer objects are also known as value objects (VOs) and are used for data exchanges between various application components, which can be either colocated in the same process or on remote com...
2010-12-05 00:18:49
140
原创 [Forward]Selected Design Patterns - Mediator
Almost any complex screen of a business application consists of a number of containers and components. The era of developers being responsible for both functionality and visuals is coming to an end...
2010-12-04 23:51:27
164
原创 [Forward]Selected Design Patterns - Proxy
A proxy is an object that represents another object and controls access to it. Think of someone’s spokesperson or a secretary. If someone brings a package to a big shot, the package is taken by the...
2010-12-04 23:20:03
199
原创 [Forward]Selected Design Patterns - Singleton
From http://oreilly.com/flex/excerpts/enterprise-development-with-flex/selected-design-patterns.html As the name singleton implies, only one instance of such a class can be instantiated, w...
2010-12-04 23:06:58
145
原创 [Forward]AS3 Double Click and mouseChildren
From http://www.charglerode.com/blog/?p=54 As an interface and game developer, I find myself struggling with Flash as a development platform because of it’s lack of support for common inputs. ...
2010-12-03 15:31:23
130
原创 Round up of ActionScript 3.0 and Flex optimization techniques and practices
http://insideria.com/2009/04/51-actionscript-30-and-flex-op.html A homework assignment I was recently given for a Java programming class involved a competition to see who could create the most o...
2010-11-12 14:43:47
128
原创 [转]搜集到Joomla!资源
Reference from: http://www.joomlatutorials.com/useful-joomla-resources.htmlJoomla Resources Please find in the various sections below some of the Joomla Resources that we are certain...
2010-10-10 13:07:43
161
原创 Stratus service for developing end2end applications using RTMFP in Flash Play 10
仅个人学习之用http://www.adobe.com/devnet/flashplayer/articles/rtmfp_stratus_app.htmlReference Site:http://labs.adobe.com/technologies/cirrus/ YOU CAN GETTING START FROM THE LINKS ON THE BOTTOM "Getting St...
2010-10-08 16:49:56
250
原创 Debugging with Google Chrome and Flash Player 10.1
[url]http://polygeek.com/2780_flex_debugging-with-google-chrome-and-flash-player-10-1[/url]After updating to Flash Builder 4.1 and Flash Player 10.1 I found that I could no longer debug with Googl...
2010-09-19 11:53:42
144
原创 If the porgram is already running, close it before attempting to run.
Launch Failed!If the program is already running, close it before attempting to run.I don’t know how many times I have gotten this error message while trying to Run a project in Adobe Flash Bui...
2010-08-24 17:29:22
757
原创 JQuery validator与 IE6
JQuery validator 在IE6报错 说什么属性不支持 找了大半天 找到以下方法charset,
2010-08-05 19:49:24
98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人