转:http://bluedest.iteye.com/blog/1674963在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: Nosuchfileordirectory。分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字...
分类:
其他好文 时间:
2015-06-01 20:27:29
阅读次数:
95
1. The issue is because windows and linux has different file system.2. Use vim to open the file3. Type :set ff?, you will see the text "fileformat=dos...
分类:
其他好文 时间:
2015-06-01 20:25:14
阅读次数:
109
#!/bin/bash#fixbyleiporeat2014-12-18ddos-autoprotection.shtouch/root/back_bad_ip.txttime=`date+"%Y-%m-%d%H:%M:%S"`ar=`wc-l/root/back_bad_ip.txt|awk‘{print$1}‘`sleep1netstat-an|grep80|grep-v"STREAM"|awk‘{print$5}‘|sort|awk-F:‘{print$1}‘|uniq-c|awk‘$1>200{..
分类:
系统相关 时间:
2015-06-01 14:55:51
阅读次数:
285
DescriptionSome of Farmer John'sNcows (1 ≤N≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairstyle, FJ wants t...
分类:
其他好文 时间:
2015-05-30 00:29:43
阅读次数:
321
资源根目录设置错误。eclipse,找Windows->ShowView->Other->SNV->SVN资源库,打开。打开Properties。修改资源库根URL,保存。ok。
分类:
Web程序 时间:
2015-05-28 18:27:08
阅读次数:
756
I demonstrate how to write a simple BLE peripheral application in Android here. I am bad in Android development, The UI would be very ugly, but the code work:
Currently(5/25/2015), the code could...
分类:
移动开发 时间:
2015-05-26 23:29:03
阅读次数:
248
/bin/sh^M: bad interpreter:没有那个文件或目录解决
分类:
其他好文 时间:
2015-05-24 14:11:48
阅读次数:
63
如何来描述(describe)你的method 首先要清楚你要描述的是什么类型的方法。用 Ruby 文档的一个惯例举例,提到类方法时使用.(或者::),提到实例方法的时候用#来描述。 #BAD
describe?‘the?authenticate?method?...
分类:
其他好文 时间:
2015-05-24 06:43:32
阅读次数:
193
环境:MyEclipse2015+ActiveMQ5.11.1
使用不同版本的JDK,执行Java application时会出现不同的表现。
1、JDK版本为jdk1.5/J2SE-1.5
错误:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang....
分类:
其他好文 时间:
2015-05-22 19:11:16
阅读次数:
129
Description
Input
* Line 1: 牛的数量 N。
* Lines 2..N+1: 第 i+1 是一个整数,表示第i头牛的高度。
Output
* Line 1: 一个整数表示c[1] 至 c[N]的和。
Sample Input
6
10
3
7
4
12
2
输入解释:
六头牛排成一排,高度依次是 ...
分类:
其他好文 时间:
2015-05-21 22:45:28
阅读次数:
233