摘要: 在上班之余学习IOS已经有三个多月了,因为基础有些薄弱从OC的基本语法开始学习的,相继看了青柚子和红柚子的书,现在在看编程实战,趁这个机会好好的总结一下:1.命名约定对象类型和名称一致,以免混淆-(void) setURL:(NSString *)URL;//错误的命名方法//更改为-(void)s... 阅读全文
posted @ 2014-07-20 17:02 KeithMorning 阅读(1111) 评论(2) 推荐(1) 编辑
摘要: 安装libsvm的时候用到了mex -setup,有的会报 Could not find the 64-bit compiler. This may indicate that the "X64 Compilers and Tools" or the Microsoft Windo... 阅读全文
posted @ 2014-05-19 13:40 KeithMorning 阅读(1301) 评论(0) 推荐(0) 编辑
摘要: 1.下载libSVM工具包http://pan.baidu.com/s/1bnGNTBT或者下载最新版的到http://www.csie.ntu.edu.tw/~cjlin/libsvm/2.解压缩后放在matlab的toolbox目录下如我的目录C:\Program Files\MATLAB\R2... 阅读全文
posted @ 2014-05-09 15:49 KeithMorning 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 环境:vs2013+nugetEnable-Migrations -EnableAutomaticMigrationsUpdate-Database 阅读全文
posted @ 2014-03-03 14:08 KeithMorning 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 环境:vs2013+mysql5.6+mysql connector for .net 6.8.3+MySQL for Visual Studio 1.1.3参考:http://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.htmlmvc4连接mysql的资料很少,百度了一圈也没找到。一开始用的vs2013怎么也连接不上mysql,连ado.net不显示,用mysql.data的直接连接倒是能成功,但是到mvc的时候就需要各种配置了。最后在mysql的官网上找到了资料:1.首先要先安装MySQL for V 阅读全文
posted @ 2014-03-02 23:46 KeithMorning 阅读(4984) 评论(0) 推荐(0) 编辑
摘要: 自己用图片编写了一个小控件做演示用,结果每次在主窗体中引用的时候尺寸总是发生变化,除非自己用dock定位,但是往往不能满足条件,一次引用Label时候发现主窗体和该控件的字体不同,虽然字号都是9t,但是由于不同字体大小不同,字体的放大缩小都会影响控件的尺寸变化,一般控件都是开了Autosize属性,所以解决方法有1.设计控件时保持引用窗体和该控件字体一致2.关闭所有文字的Autosize属性3.设置控件自己的文字集 阅读全文
posted @ 2014-02-07 15:07 KeithMorning 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 动态添加的元素,无法侦听到事件,写法如下:使用函数.on格式为:$(父元素).on('event','selector',function(){//do something})例如sos写为$('body').on('click','.test_a',function(){alter($(this).attr('id'))})参考http://www.cnblogs.com/lionden/archive/2013/03/21/2973410.html 阅读全文
posted @ 2014-01-21 01:09 KeithMorning 阅读(248) 评论(0) 推荐(0) 编辑
摘要: json字符串从从后台传递到前台的方法有两种1.使用context.Response();2.使用webmethod 方法调用静态函数 返回的字符串前者返回的json是obj类型,而后者返回的是json字符串的类型,所以二者在前台的ajax的处理方式不同的。引用了一下比人写好的例子1,使用普通的aspx页面来处理前段的方法,如果使用ashx还可以添加固定的函数,在url处如“Test.ashx/testfucntion”$.ajax({ type: "post", ... 阅读全文
posted @ 2013-12-22 16:16 KeithMorning 阅读(281) 评论(0) 推荐(0) 编辑
摘要: foreach (Control var in panel.Controls) {if (var is Billet) {panel.Controls.Remove(var);var.Dispose();}}做一个C#动画时候,动态创建的一些picturebox需要刷新,清除后重新显示,billet为继承的picturebox类,这样做的好处是把要清除的归为一个类,只进行删除即可 阅读全文
posted @ 2013-12-10 11:49 KeithMorning 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Security.Cryptography;using System.Text;class Example{ // Hash an input string and return the hash as // a 32 character hexadecimal string. static string getMd5Hash(string input) { // Create a new instance of the MD5CryptoServiceProvider object. MD... 阅读全文
posted @ 2013-12-02 10:30 KeithMorning 阅读(3442) 评论(0) 推荐(0) 编辑