知识说明: 虽然HTML5是前端的东西,但好的前端工程师,基本的后端知识也是要有的,今天刚开始学习HTML5,把如何配置虚拟主机,更换项目预览地址做出说明!一、安装WAMP集成环境二、启动Apache服务器三、修改C:\wamp\bin\apache\apache2.4.9\conf\https.c...
分类:
其他好文 时间:
2015-07-08 12:38:45
阅读次数:
94
查看光驱名字 vim /dev/cdr 按Tab键两下,看下提示 挂载命令 mount/dev/cdrom1/mnt ls/mnt有光盘的内容了吧?
分类:
其他好文 时间:
2015-07-08 12:37:02
阅读次数:
129
https://leetcode.com/problems/majority-element/ 1 class Solution { 2 public: 3 int majorityElement(vector& nums) { 4 map mymap; 5 ...
分类:
其他好文 时间:
2015-07-08 12:36:31
阅读次数:
122
1.安装mysql server2.安装MySql的VS插件(版本请下载最新版,百度自己搜索,这个不用多说)mysql-for-visualstudio-1.2.3.msi3.安装用于.net连接程序mysql-connector-net-6.9.5.msi安装好这三个工具后执行下面命令,其余有些修...
分类:
其他好文 时间:
2015-07-08 12:37:00
阅读次数:
90
[self.tableView deselectRowAtIndexPath:[self.tableView indexPathForSelectedRow] animated:YES];
分类:
其他好文 时间:
2015-07-08 12:34:30
阅读次数:
80
Symmetric Tree 题目链接 题目要求: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary ...
分类:
其他好文 时间:
2015-07-08 12:36:31
阅读次数:
170
最近使用datatable时,发现没有像jqgrid那样生成序号列,在国外网站搜罗了一下还是很简单的,就要在aoColumns中添加一空列占位就行,然后再用fnRowCallback添加序号示例如下 by hsuchan: //加载列表数据 tables...
分类:
其他好文 时间:
2015-07-08 12:34:37
阅读次数:
229
在许多地方可以见到self和[self class]的调用方式,那么他们有区别吗?1 首先self是什么,它是指向实例变量首地址的指针(同c++的this一样)可以访问对象的资源。2 [self class] 首先看下class 它返回的是元类的指针,所以通过[self class]可以访问当前类的...
分类:
其他好文 时间:
2015-07-08 12:34:55
阅读次数:
282
推桌子时间限制:1000ms | 内存限制:65535KB难度:3描述The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following f...
分类:
其他好文 时间:
2015-07-08 12:33:05
阅读次数:
126
红 - 黑树是一种平衡二叉树被广泛用于,但对于很多人谁是新算法,红黑树实在是太复杂,看之前July博文,觉得自己的写作非常具体的。不过还是有点乱。不能急。要每天看一点点,所以我把插入和删除分开来写,仅仅要看懂并记住插入后是如何操作的,那么删除也就easy了。红黑树的规则:性质1. 节点是红色或黑色。...
分类:
其他好文 时间:
2015-07-08 12:33:34
阅读次数:
225
查找是否存在重复的数,直接定义map进行记录。或者用哈希也可以。 1 class Solution { 2 public: 3 bool containsDuplicate(vector& nums) { 4 map mymap; 5 int size=num...
分类:
其他好文 时间:
2015-07-08 12:34:47
阅读次数:
105
1 class Stack { 2 public: 3 // Push element x onto stack. 4 void push(int x) { 5 int len = nums.size(); 6 nums.push(x); 7 ...
分类:
其他好文 时间:
2015-07-08 12:33:47
阅读次数:
121
参考:http://www.cnblogs.com/zyl910/archive/2013/06/07/objcdoc.html对于Objective-C来说,目前最好用的工具是appledoc和doxygen。可是这两种工具对于注释的要求略有区别。于是我经过一番摸索,找到了一套能同时兼容这两种工具...
分类:
其他好文 时间:
2015-07-08 12:33:41
阅读次数:
193
After creating a WCF service, the next step is to host it so that the client applications can consume it. This is known as WCF service hosting. A WCF ...
分类:
其他好文 时间:
2015-07-08 12:34:16
阅读次数:
87
jQuery的ajax函数的返回类型只有xml、text、json、html等类型,没有“流”类型,所以我们要实现ajax下载,不能够使用相应的ajax函数进行文件下载。所以使用了JS触发a标签的链接,然后使用浏览器默认打开方式// 导出功能$('.coo-export').bind('click'...
分类:
其他好文 时间:
2015-07-08 12:33:16
阅读次数:
110
圆形的用途很广,当然也包含了椭圆。 4 这里的arc方法的用法是 arc(X,Y,Radius,startAngle,endAngle,anticlockwise),意思是(圆心X坐标,圆心Y坐标,半径,开始角度(弧度),结...
分类:
其他好文 时间:
2015-07-08 12:30:22
阅读次数:
98
NSDateFormatter常用的格式yyyy-MM-dd HH:mm:ss.SSS yyyy-MM-dd HH:mm:ssyyyy-MM-ddMM dd yyyyNSDateFormatter格式化参数G: 公元时代,例如AD公元yy: 年的后2位yyyy: 完整年MM: 月,显示为1-12MM...
分类:
其他好文 时间:
2015-07-08 12:30:01
阅读次数:
83