![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
coding
烁灵
这个作者很懒,什么都没留下…
展开
-
Cannot use this in a static context
public class User implements Serializable{ public static final String FILENAME = "users.dat"; private String user_name; private String user_psw; public String getUser_name() { return user_name;原创 2013-01-14 17:26:42 · 1751 阅读 · 0 评论 -
windows下打开软件提示 未找到提供程序 该程序可能未正确安装
多发生在vb程序访问access时解决:开始->运行->regsvr32 msjetoledb40.dll原创 2013-09-29 14:33:41 · 3451 阅读 · 0 评论 -
EXT复合表头谷歌浏览器Chrome错位解决办法
转载自:http://www.oschina.net/code/snippet_201314_15163Ext.override(Ext.grid.GridView,{ getColumnStyle : function(colIndex, isHeader) { var colModel = this.cm, colConfig = colModel.config, styl转载 2013-12-12 14:52:20 · 1109 阅读 · 0 评论 -
java继承内部类
测试了下一个类继承内部类原创 2014-05-04 16:06:01 · 501 阅读 · 0 评论 -
Cocos2d-x 2.x TestCPP启用box2d(CC_ENABLE_BOX2D_INTEGRATION)
1.在TestCPP项目的工程中 项目->属性->原创 2014-06-08 10:01:19 · 1020 阅读 · 0 评论 -
Ruby 合并txt
下载的小说合集是好多个txt.......原创 2014-06-08 17:53:08 · 526 阅读 · 0 评论 -
quick-cocos2dx 骨骼动画换装
为啥搜到的资料都是用CCSpriteDisplayData啊...,TestLua里给的例子都写的明明是CCSkin...原创 2014-07-24 10:23:22 · 1735 阅读 · 0 评论 -
关于c++头文件互相include
错误:classa.h:原创 2014-07-23 17:16:47 · 680 阅读 · 0 评论 -
ruby的A*练习
之前对于a*算法一直停留在“听说”的阶段,既然转行游戏了就来手写原创 2014-07-30 15:36:20 · 604 阅读 · 0 评论 -
android犯错日记6
尝试使用fragment的时候出错错误信息:Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class fragment解决:1.首先参考了别人的解决方法:在Activity中静态使用fragment的时候,要注意两个地方。Fragment引用的包是:im原创 2013-05-17 10:27:57 · 543 阅读 · 0 评论 -
android avd manager.exe闪一下就消失的解决方法
情况是打开avd manager.exe的时候闪一下命令行窗口然后就没反应了。解决方法:删除C:\Documents and Settings\用户名 目录下的.android文件夹。当然模拟器要自己再建一遍了原创 2013-04-16 08:59:32 · 3334 阅读 · 0 评论 -
rails3.2.1默认数据库sqlite3改为mysql
默认连接的数据库改成了SQLite3 默认数据库改了SQLite3了,不再是MySQL数据库。如果你要使用mysql,可以这样创建Rails项目: rails -d mysql rails_app 见http://www.iteye.com/news/592-rails-2-0-2-will-be-released更改配置文件的方法:更改配置文件:原创 2013-04-15 17:58:46 · 1017 阅读 · 0 评论 -
android犯错日记1
状况:调试自定义view的时候出错,setContentView出错。原因:自定义view未重写参数为super(Context, AttributeSet)形式的构造函数原创 2013-02-08 21:56:08 · 391 阅读 · 0 评论 -
android犯错日记2
状况:尝试用intent打开自己的另一个activity时出错原因:该activity未在Androidmanifest.xml中注册。原创 2013-02-08 22:03:24 · 263 阅读 · 0 评论 -
android犯错日记3
情况:使用httpconnection访问http://localhost/xxx出错,信息为http://localhost refused解决:访问本地的话不能使用localhost,要使用实际IP,比如192.168.0.101原创 2013-02-17 02:01:51 · 269 阅读 · 0 评论 -
android犯错日记4
情况:点击登录按钮出错,提示android.os.NetworkOnMainThreadException原因:在主线程中访问了网络API-9以上可以使用StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwo原创 2013-03-03 15:35:27 · 276 阅读 · 0 评论 -
ruby对excel的一些操作
引用require 'win32ole'打开excelexcel13 = WIN32OLE.new("excel.application")workbook13 = excel13.Workbooks.Open("F:/xls/2013.xls")关闭workbook13.closeexcel13.quit新建excel = WIN32O原创 2013-02-23 00:56:55 · 438 阅读 · 0 评论 -
记一点小东西
php:0123转ABCDecho chr(1+ord("A"));php:将"emo{12}"转换为"12.gif",也就是提取数字并使用的正则。练习正则中。$str = preg_replace('/emo{(\d+)}/i', $userimg_path.'/${1}.gif', $str);原创 2013-03-06 14:49:45 · 435 阅读 · 0 评论 -
android犯错日记5
情况:在string.xml里写项目%s/%s 题时出错,提示Multiple annotations found at this line: - error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"原创 2013-03-08 16:49:01 · 538 阅读 · 0 评论 -
aspnet取当前时间的前1天
DateTime datetime = DateTime.Now.AddDays(-1);其他类推原创 2013-03-31 20:42:50 · 996 阅读 · 0 评论 -
OpenCV应用程序无法正常启动(0xc000007b)解决
64位win7+vs2012+OpenCV2.4.10首先,用管理员模式打开VS2012环境变量:D:\opencv\build\x86\vc11\bin包含目录:D:\opencv\build\include库目录:D:\opencv\build\x86\vc11\lib链接器->输入:opencv_core2410d.libopencv_imgproc2410原创 2015-02-26 00:38:24 · 7969 阅读 · 0 评论