码迷,mamicode.com
首页 >  
搜索关键字:maximum depth of bin    ( 47942个结果
修改HDFS块大小
环境:OS:Centos 6.5 x64 & Soft:Hadoop 1.2.11、查看当前块大小,默认64M。[huser@master hadoop-1.2.1]$ bin/hadoop fs -stat "%o" ./in/test1.txt671088642、修改hdfs-site.conf...
分类:其他好文   时间:2014-05-06 08:59:21    阅读次数:368
nagios监控流量脚本
需求是我们需要对服务器上的流量进行监控,网络上有个流传的check_traffic.sh,它需要被监控机开启snmp。但是感觉都使用上了nagios还要开snmp。。。有点斧子剪刀一起用的感觉,所以就动手写了个监控流量的shell:#!/bin/shusage() { echo "Usage: $0...
分类:移动开发   时间:2014-05-06 08:46:56    阅读次数:361
opengl 【1】开始画个多边形
安装freeglut。开始第一个opengl 程序1安装freeglut官网下载系统对应的版本。我这里是freeglut-MSVC-2.6.0-4.mp。windows版本。我的工具是win7,vs2012.配置:解压后有bin,lib,include。project-》properties-》Co...
分类:其他好文   时间:2014-05-06 01:07:48    阅读次数:429
[leetcode] Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-06 00:51:29    阅读次数:353
未能加载文件或程序集“COM.Excel”或它的某一个依赖项
未能加载文件或程序集“COM.Excel”或它的某一个依赖项。参数错误。(异常来自HRESULT:0x80070057 (E_INVALIDARG))。解决方案:1涉及到Excel,程序集加载不成功。2去看看这个待加载的Excel程序集文件存在不存在。3目录,在网站根目录下的bin文件夹,结果有文件...
分类:其他好文   时间:2014-05-05 23:22:30    阅读次数:1095
Leetcode: Maximum Depth of Binary Tree
1 /** 2 * Definition for binary tree 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNo...
分类:其他好文   时间:2014-05-05 22:44:13    阅读次数:328
sed
sed‘s/^/\//g‘4行首增加指定字符提取网页中的播放地址:#!/bin/bash printf"enteryourdir:" readdir echo"$dirisxx" cd$dir echo`pwd` forfilein`ls.` do if[-d$file];then echo$file cd$file echo`pwd` tree`pwd`|grepplay|sed‘s/.*//g‘>11 tree`pwd`|grepplay|sed‘s/.*//g..
分类:其他好文   时间:2014-05-03 00:53:15    阅读次数:336
CentOS目录结构
/:根目录,一般根目录下只存放目录,不要存放文件/bin:可执行二进制文件的目录,如常用的命令ls、tar、mv、cat等/boot:放置linux系统启动时用到的一些文件/dev:存放linux系统下的设备文件,如挂载光驱:mount /dev/cdrom /mnt/etc:系统配置文件存放的目录...
分类:其他好文   时间:2014-05-02 15:29:52    阅读次数:503
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2014-05-02 07:05:08    阅读次数:311
perl模块发邮件
vimsendmail.pl#!/usr/bin/perl-wuseMIME::Lite;subperl_sendmail{my$mail_to="$_[0]";收件人邮箱my$from="$_[1]";发件人邮箱my$subject="$_[2]";邮件标题my$data="$_[3]";邮件内容$sendmail=MIME::Lite->new(From=>$from,To=>$mail_to,Subject=>$subject,Data=>..
分类:其他好文   时间:2014-05-02 03:00:15    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!