码迷,mamicode.com
首页 > 其他好文
previousElementSibling ,previousSibling,nextElementSibling ,nextSibling 查找兄弟节点
previousElementSibling ,previousSibling,nextElementSibling ,nextSibling 查找兄弟节点previousElementSibling ,previousSibling查找本节点的上一个兄弟节点nextElementSibling ,...
分类:其他好文   时间:2015-04-20 16:29:59    阅读次数:518
利用反射,泛型,静态方法快速获取表单值到Model
在项目中经常需要处理表单,给model赋值,很烦人的一些重复代码。如下边的代码:News news = new News(); news.Id = int.Parse(Request.Form["Id"]); news.Category = int.Parse(Request.Form[...
分类:其他好文   时间:2015-04-20 16:31:55    阅读次数:89
(转)YUV420、YUV422、RGB24转换
//平面YUV422转平面RGB24static void YUV422p_to_RGB24(unsigned char *yuv422[3], unsigned char *rgb24, int width, int height){int R,G,B,Y,U,V;int x,y;int nWid...
分类:其他好文   时间:2015-04-20 16:31:13    阅读次数:120
开源库
本文转载至http://www.code4blog.com/archives/505youtube下载神器:https://github.com/rg3/youtube-dl我擦咧vim插件:https://github.com/Valloric/YouCompleteMevim插件配置:https...
分类:其他好文   时间:2015-04-20 16:30:16    阅读次数:308
设计与原型工具
1、Sketch, ui设计工具,比photoshop跟专注http://bohemiancoding.com/sketch/https://phphub.org/topics/596https://phphub.org/topics/4752、origamihttps://facebook.git...
分类:其他好文   时间:2015-04-20 16:28:50    阅读次数:118
ArrayListHelper
1 public static class ArrayListHelper 2 { 3 /// 4 /// determine whether the array list contain the sepcific string 5 //...
分类:其他好文   时间:2015-04-20 16:27:50    阅读次数:81
StringHelper
1 public static class StringHelper 2 { 3 public static int? ToIntNullable(this string obj) 4 { 5 if (obj == null || strin...
分类:其他好文   时间:2015-04-20 16:30:08    阅读次数:80
[黑马程序员]Objective-C 内存管理
引用计数器每个OC对象都有自己的引用计数器,是一个整数表示对象被引用的次数,即现在有多少东西在使用这个对象。对象刚被创建时,默认计数器值为1,当计数器的值变为0时,则对象销毁。在每个OC对象内部,都专门有4个字节的存储空间来存储引用计数器。作用:判断对象要不要回收的唯一依据就是计数器是否为0,若不为...
分类:其他好文   时间:2015-04-20 16:30:08    阅读次数:126
InstallShield: cannot extract icon with index 0错误解决方案
在VS2012打包过程中,遇到这个错误,困扰我好几天,后来通过谷歌找到解决方案,如下:Expand the deploy solution (+) on the right panel (Solution Explorer)Expand the menu "Configure the target ...
分类:其他好文   时间:2015-04-20 16:27:47    阅读次数:119
解决tomcat占用8080端口
怎么解决tomcat占用8080端口问题图文教程 怎么解决tomcat占用8080端口问题相信很多朋友都遇到过这样的问题吧,tomcat死机了,重启eclipse之后,发现 Several ports (8080, 8009) required by Tomcat v6.0 Server ...
分类:其他好文   时间:2015-04-20 16:27:46    阅读次数:118
iframe使用大全
runat="server" 这个最好加上Iframe跳转 asp.net 可在当前iframe中跳转src 链接到的地址URlframeborder 是否显示边框(0无边框 1有边框)scrolling 是否有滚动条(yes有滚动条 no无滚动条)allowtransparency 背景是否透明(...
分类:其他好文   时间:2015-04-20 16:28:15    阅读次数:132
Solr field alias
Field aliasAny field, function, or transformer can be displayed with a different name in the output document:ExampleMeaningid,price:crazy_price_fieldr...
分类:其他好文   时间:2015-04-20 16:27:44    阅读次数:128
CentOS bridge br0 kvm libvirt-xml
1,kvm bridge br0配置文件内容实例:ifcfg-em1配置文件内容Example:DEVICE=em1Bridge=br0TYPE=Ethernetonboot=yesNM_CONTROLLED=noBOOTPROTO=noneifcfg-br0配置文件内容Example:DEVICE...
分类:其他好文   时间:2015-04-20 16:28:39    阅读次数:168
梯度下降法分析
梯度下降法存在的问题 梯度下降法的基本思想是函数沿着其梯度方向增加最快,反之,沿着其梯度反方向减小最快。在前面的线性回归和逻辑回归中,都采用了梯度下降法来求解。梯度下降的迭代公式为:\(\begin{aligned} \theta_j=\theta_j-\alpha\frac{\partial\;....
分类:其他好文   时间:2015-04-20 16:26:05    阅读次数:3950
get请求和post请求的区别
文顶顶iOS开发网络篇—GET请求和POST请求iOS开发网络篇—GET请求和POST请求一、GET请求和POST请求简单说明创建GET请求1 // 1.设置请求路径2 NSString *urlStr=[NSString stringWithFormat:@"http://192.1...
分类:其他好文   时间:2015-04-20 16:26:50    阅读次数:144
存储引擎
MySQL 支持多种存储引擎包括:MyISAM、InnoDB、BDB、MEMORY、MERGE、NDB 等。在 5.5.8 版本之前默认引擎为 MyISAM,之后的默认引擎为 InnoDB。//查看当前的存储引擎SHOW VARIABLES LIKE '%storage_engine%';//查看所...
分类:其他好文   时间:2015-04-20 16:24:39    阅读次数:106
网络知识扫盲之链路层
说明:为了方便学习,综合了OSI和TCP/IP的优点,得出“五层协议”图数据链路和帧链路(物理链路):从一个结点到相邻结点的一段物理线路,而中间没有任何其他的交换结点。数据链路(逻辑链路):把实现通信协议的硬件和软件加到链路上,就构成了数据链路。现在最常用的方法是网络适配器来实现这些协议和软件。一般...
分类:其他好文   时间:2015-04-20 16:24:56    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!