- 博客(1)
- 资源 (4)
- 收藏
- 关注
原创 Given an integer, write a function to determine if it is a power of two.
public class Solution { public boolean isPowerOfTwo(int n) {if (n<0) {return false;}String str= Integer.toBinaryString(Math.abs(n));char[] c=new char[str.length()]; c=str.toCharArray();if (c
2015-07-16 13:50:52 332
日志监测 实时监测
LogFilePurger:
--------------
//清除
Purges all files in a folder older than X days. This was written to keep log folders
from growing too large, specifically cruise control artifact folders.
Command Line Parameters:
param1 = [optional] Path to Directory
param2 = [optional default = 30] Number of Days
Example:
LogFilePurger.exe "c:\logs" 90
When param1 is provided, the UI will not appear and the app will immediately
clean the folder with no prompts(提示). If there is an error, it will be written to
a logfile within the same directoy as the executable
Cruise Control Project Example:
Clean Logs
C:\Path\To\LogFilePurger.exe
"C:\Program Files\CruiseControl.NET\server\My Project\Artifacts" 90
LogMonitor:
-----------
Allows you to monitor logfiles in realtime.
param1 = [optional] path to logfile
example:
LogMonitor.exe "c:\logs\myfile.log"
When param1 is provided, the UI will open and instantly start
monitoring the specified file
Credits
-------
Author Jason Hinkle
Copyright 2008
2015-04-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人