今天看博客时,看到了这样的一段js代码:var bind =
Function.prototype.call.bind(Function.prototype.bind);我想突然看到这样的一段代码,即使js能力再强的人,可能也需要花点时间去理解。像我这样的菜鸟就更不用说了。其实,原文已经对这端代码做...
分类:
移动开发 时间:
2014-06-08 22:10:19
阅读次数:
335
除了complete关键字补全,所有补全相关命令都以CTRL-X开始,然后再接与补全类型相关的命令。CTRL-N与CTRL-P在找的的内容中选择的通用的命令,上下选择用的,CTRL-E则是取消选择。(这里的按键都是插入模式下的)
1、按行补全 回溯当前文件,寻找匹配以输入字符的行。CTRL-X然后再...
分类:
其他好文 时间:
2014-06-08 22:10:55
阅读次数:
400
2014.06.07开机无法上网,每次都得$ sudo ifconfig eth1 up $ sudo
dhclient eth1
后面发现原来是网卡没设置开机启动编辑/etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yes
分类:
系统相关 时间:
2014-06-08 22:11:31
阅读次数:
340
BufferedReader逐行读取import java.io.*;class Test{
public static void main(String args []){ FileReader reader =null; BufferedReader
buffe...
分类:
编程语言 时间:
2014-06-08 22:12:07
阅读次数:
434
原地址:http://www.cnblogs.com/wengzilin/p/3775410.html屌丝个人开发者经常遇到的尴尬问题是,自己不会设计UI素材又请不起专业的美工。最好的方式是去网上下载符合自己需求的素材修修改改直接用上。但是,在这个过程中会发现很多下载下来的素材是PSD格式的,很多图...
分类:
移动开发 时间:
2014-06-08 22:12:46
阅读次数:
260
1. Install golang on Ubuntu 14.04 LTSa)~$ sudo
apt-get install golang successb)~$ sudo add-apt-repository ppa:gophers/go ~$
sudo apt-get update ~$ sud...
分类:
其他好文 时间:
2014-06-08 18:37:28
阅读次数:
331
提前下载包:1. Java SE Develpoment Kit(JDK),
版本6或者以上;http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz?AuthParam=1401337546_b4...
分类:
移动开发 时间:
2014-06-08 22:14:08
阅读次数:
444
假设有这样的一个类,包含DateTime类型属性,在编辑的时候,如何使JoinTime显示成我们期望的格式呢? using System;using
System.ComponentModel.DataAnnotations;namespace MvcApplication1.Models{ pub...
分类:
Web程序 时间:
2014-06-08 22:13:24
阅读次数:
704
输出April fools day is 04/01/2003Last christmas
was 12/24/2002
分类:
Web程序 时间:
2014-06-08 22:14:49
阅读次数:
282
http://acm.timus.ru/problem.aspx?space=1&num=1932B
- The Secret of IdentifierTime Limit:1000MS Memory Limit:65536KB 64bit IO
Format:%I64d & %I...
分类:
其他好文 时间:
2014-06-08 22:15:33
阅读次数:
476
XHTML的标签有许多:div、ul、li、dl、dt、dd、h1~h6、p、a、addressa、span、
strong……我们在运用这些标签搭建页面结构的时候,是可以将它们无限嵌套的,但是,嵌套也需要有一定规则,不能任由自己的个人习惯胡乱嵌套—— XHTML
必竟不是 XML。在 XHTML ...
分类:
Web程序 时间:
2014-06-08 22:16:18
阅读次数:
373
$django-admin.py startproject web2$cd
web2/$python manage.py startapp blog$vim web2/settings.py
注意settings.py以下两个部分,首先要配置数据库,其次要在INSTALLED_APP里添加刚才新建的...
分类:
移动开发 时间:
2014-06-08 22:18:14
阅读次数:
377
前日写了个二叉树插入节点的操作,是一个递归函数。在遍历树时发现并没有插入到树中。这可就纳了闷,单步跟踪发现了令我感到奇怪事情,为什么插入函数的参数是指针,而且被改变了,但函数外部为改变呢。请教高人之后豁然开朗。。。对于c语言的指针,初学者有诸多困惑,虽不至于令人害怕,但使用不当,会使程序出错或埋下隐...
分类:
其他好文 时间:
2014-06-08 22:17:35
阅读次数:
295
UITabBarController的使用步骤1.初始化UITabBarController2.设置UIWindow的rootViewController为UITabBarController3.根据具体情况,通过addChildViewController方法添加对应个数的子控制器
UITa...
分类:
移动开发 时间:
2014-06-08 22:18:47
阅读次数:
341
Recently we looked across some of the most
common behaviors that our community of 25,000 users looked for in their logs
with a particular focus on web...
分类:
其他好文 时间:
2014-06-08 22:19:29
阅读次数:
438
In general classpath is the path where JVM can
find .class files and resources of your application and in this tutorial we will
see how to load resour...
分类:
编程语言 时间:
2014-06-08 22:20:57
阅读次数:
371