码迷,mamicode.com
首页 > 其他好文
租用服务器及托管服务器如何安全稳定运行
对于IT互联网领域来说,其基础业务服务器租用和服务器托管的资金投入也有所不同,前者成本会更低,因此租用服务器是国内中小型企业用户及个人用户的青睐之选。 当客户租用服务器后,在使用过程中不乏会遇到一些问...
分类:其他好文   时间:2015-09-10 16:11:25    阅读次数:219
系统权限
地址:https://developer.android.com/guide/topics/security/permissions.html 要执行自己的权限,首先要在manifest文件中申明,使用<permission>标签 <manifest xmlns:android="http://schemas.android.com/ap...
分类:其他好文   时间:2015-09-10 16:09:46    阅读次数:110
freemarker IDE 安装
freemarker-ide MyEclipce 中安装FreeMarker插件,这绝对是最简单的方法。 步骤如下: (一)打开http://sourceforge.net/projects/freemarker-ide/files/ 下载最新版本,目前本人下载时最新版本是:freemarker-...
分类:其他好文   时间:2015-09-10 16:11:32    阅读次数:146
Hive备份语句以及分区插入
insert overwrite table backup.epg_wiki_info select * from tvlog.epg_wiki_info; insert overwrite table backup.wiki select * from tvlog.wiki; insert overwrite table backup.device_info select * from t...
分类:其他好文   时间:2015-09-10 16:11:11    阅读次数:223
Restangular的使用
// First way of creating a Restangular object. Just saying the base URL var baseAccounts = Restangular.all(‘accounts‘); // This will query /accounts and return a promise. baseAccounts.getList().the...
分类:其他好文   时间:2015-09-10 16:09:50    阅读次数:389
centos6.5 x86_64安装rsyslog + loganalyzer
平台:centos 6.5 x86_64 1.vi /etc/selinux/config SELINUX=disabled reboot your host 简单的方法: sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g‘ /etc/selinux/config setenforce 0 sestatus -v查看状态 ...
分类:其他好文   时间:2015-09-10 16:09:10    阅读次数:248
REHL7虚拟机安装Open VM Tools
VMware建议在REHL7上安装Open VM Tools替代原来的VMware Tools,项目地址:https://github.com/vmware/open-vm-tools ? ? ? ? 1、建立源文件/etc/yum.repos.d/vmware-tools.repo ????????...
分类:其他好文   时间:2015-09-10 16:08:43    阅读次数:345
scala的Range
在scala中,Range代表的是一段整数的范围,官方有关range的api: http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.Range var r = 1 to 10;//赋值1到10的整数?? var r = 1.to(10)...
分类:其他好文   时间:2015-09-10 16:08:07    阅读次数:158
ObjC Runtime 黑魔法 — Method Swizzling
适用情境 ? ? 项目中大量控制器需要在载入时进行日志统计或进行类似的处理。如果直接往所有控制器中进行代码编写,会产生大量的重复的代码,降低了代码后期的可读性,不利于维护。由于所有部分的逻辑代码相同,...
分类:其他好文   时间:2015-09-10 16:06:50    阅读次数:186
Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2015-09-10 16:06:48    阅读次数:101
Lua3
Lua中的table不是一种简单的数据结构,它可以作为其它数据结构的基础。如数组、记录、线性表、队列和集合等,在Lua中都可以通过table来表示。1、数组使用整数来索引table即可在Lua中实现数组。因此,Lua中的数组没有固定的大小,如:a = {}for i = 1, 1000 do ...
分类:其他好文   时间:2015-09-10 16:06:20    阅读次数:133
【Vegas原创】EXCEL光标所在的行自动变色
方法: 1,excel中,按Alt+F11,打开VBA编辑界面,双击需要改的工作表名称,将下面代码粘贴到右边框中,即可。 2,代码: Private Sub Worksheet_SelectionChange(ByVal Target As Range) Cells.Interior.ColorIn...
分类:其他好文   时间:2015-09-10 16:06:28    阅读次数:238
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2015-09-10 16:05:38    阅读次数:211
HDU 3829 Cat VS Dog
二分图的最大点独立集人可以看成两个集合,喜欢猫的那群人内部肯定不会冲突,喜欢狗的那群人内部也不可能冲突,冲突只可能发生在喜欢猫与喜欢狗的人之间,那么只要在发生冲突的人之间连边,计算一下最大点独立集就是答案了。对于一个二分图,最大点独立=N-最大匹配。#include#include#include#...
分类:其他好文   时间:2015-09-10 16:04:23    阅读次数:151
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. 1 string longestCommonPrefix(vector& strs) { 2 int i=0,...
分类:其他好文   时间:2015-09-10 16:04:41    阅读次数:95
pc机上的触屏与键盘操控
其中Target是摄像机的参考点,每一次平移都是通过移动他的位置来实现摄像机的移动,某个物体居中显示就是把target移动到这个物体的位置上1.主控制脚本using UnityEngine;using UnityEngine.UI;using System.Collections;public cl...
分类:其他好文   时间:2015-09-10 16:03:41    阅读次数:161
Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2015-09-10 16:02:41    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!