一、Asp.net 自带Bundle的使用: 1. 在Globale中注册与配置 BundleConfig.RegisterBundles(BundleTable.Bundles);public class BundleConfig { // For more information on Bund...
分类:
Web程序 时间:
2014-07-06 21:32:28
阅读次数:
232
linux中tail命令---用于查看文件内容最基本的是cat、more和less。1. 如果你只想看文件的前5行,可以使用head命令,如:head -5 /etc/passwd2. 如果你想查看文件的后10行,可以使用tail命令,如:tail -2 /etc/passwd 或 tail -n ...
分类:
其他好文 时间:
2014-07-06 19:40:39
阅读次数:
161
linux的字符界面默认不支持中文,所以你显示中文和编辑中文往往会是乱码,今天小研究了一下。首先要明白的问题是,乱码问题其实最本质就是编码和解码不符合。 比如你往linux上传了一个中文文件,但是用cat 或者 more去看的时候发现是乱码。这是因为你的中文文件编码可能是utf-8,可能是GBK等等...
分类:
系统相关 时间:
2014-07-06 18:51:55
阅读次数:
250
初次安装使用GNS3,安装的版本是GNS3-0.8.6-all-in-one,本人也是菜鸟,安装时都是一路 Next,结果安装后运行出现了这样的问题,如图language里是没有选项的,解决方法把之前安装的GNS3,wireshark和winPcap彻底的卸载干净,重新安装。安装时不要勾选wires...
分类:
其他好文 时间:
2014-07-06 18:35:56
阅读次数:
387
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-07-06 16:11:35
阅读次数:
170
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2014-07-06 16:06:45
阅读次数:
198
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:
其他好文 时间:
2014-07-06 13:57:54
阅读次数:
155
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-07-06 13:17:57
阅读次数:
199
注意:前提是界面二被打开过未关闭,则用此方法即可实现在界面一中调用界面二的方法!界面一:publicclassOneActivityextendsActivity{@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_one);call..
分类:
其他好文 时间:
2014-07-04 06:00:26
阅读次数:
328
在使用linux的ramoops驱动模块时,在编译完加载时,会发现驱动加载不成功。明明直接使用的内核代码,为什么会出现这样的情况呢?
首先看一下ramoops的初始化代码:
180 static int __init ramoops_init(void)
181 {
182 return platform_driver_probe(&ramoops_driver, ramoops_pr...
分类:
其他好文 时间:
2014-07-04 00:24:28
阅读次数:
761