码迷,mamicode.com
首页 >  
搜索关键字:could you do me a favor    ( 45411个结果
Nt Kernel & System 占用80端口
今天早上apache突然无法启动,重启电脑仍然没有结果,经过一番努力终于解决了,过程如下: 首先查看apache错误日志: 1.删除apache>>logs>>error.log,重启apache查看这个文件发现内容如下: (OS 10013)以一种访问权限不允许的方式做了一个访问套接字的尝试。  : make_sock: could not bind to address [::]:80 ...
分类:其他好文   时间:2014-05-14 01:02:17    阅读次数:421
Operation System - Peterson's Solution算法 解决多线程冲突
Person's solution 是用来一种基于软件的解决关键区域问题的算法(critical-section). 它并非完美的,有可能不正确地工作。而且是限制解决两个进程同步的问题。 但是它很简单,很原始,学习起来也是很轻松的。 代码如下: do { flag[i] = true; turn = j; while (flag[j] && turn == j...
分类:编程语言   时间:2014-05-13 08:01:01    阅读次数:407
[迭代加深dfs] zoj 3768 Continuous Login
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3768 Continuous Login Time Limit: 2 Seconds      Memory Limit: 131072 KB      Special Judge Pierre is recently obsessed...
分类:其他好文   时间:2014-05-13 07:28:07    阅读次数:412
Leetcode 数 Palindrome Number
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Palindrome Number  Total Accepted: 12165 Total Submissions: 41736 Determine whether an integer is a palindrome. Do this wit...
分类:其他好文   时间:2014-05-13 05:28:07    阅读次数:253
用shell脚本监控linux系统 自动发送邮件
此脚本可以做一个定时的检测,超出设定的值,即往邮箱发送警告脚本用到bc,sendmail,163邮箱,yuminstallbc#!/bin/bash #SystemMonitoringScript while[1] do #本机需开启postfix或sendmail服务。 #报警邮件地址设置 MAILFROM=root@localhost MAILTO=your_mail@163.com #设置..
分类:系统相关   时间:2014-05-13 05:05:29    阅读次数:649
mysql主从检测脚本
#!/bin/bash #checkmysqlslavestatus USER="check" PSW="***" RUNTIME=3600 ADDR="192.168.*.*" declare-aslave_is forIPin$ADDR do slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘)) if["${slave_is[0]}"="Y..
分类:数据库   时间:2014-05-13 04:33:44    阅读次数:374
python不同的内容邮件群发
#!/usr/bin/envpython#coding:utf8importsmtplib,sysfromemail.mime.textimportMIMETextfromconfig.mailssimportmail_list,contentdefsend_mail():mail_host,mail_user,mail_pass,mail_postfix,sub,me,mailto_list=mail_listme=mail_user+"<"+mail_user+"@"+mail_postfix+"&..
分类:编程语言   时间:2014-05-13 02:40:50    阅读次数:503
HDU4027 Can you answer these queries 线段树区间求和+剪枝
给了你n,然后n个数字在一个数组中,接下来m个询问,每个询问三个数字 t,x,y,若t==0,那么修改区间[x,y]的每一个值,变为原来每个位置上的数 开根号取整,若t==1,那么对区间[x,y]求和 由于n,m,很大,所以树状数组铁定超时,若直接用线段树来做区间修改,那么也是超时,这类题目没别的方法了,静心剪枝,发现题目给的数据范围为2^63,有没有发现,2^63开根号 绝对不需要开1...
分类:其他好文   时间:2014-05-12 23:01:59    阅读次数:479
菜鸟调错(四)——Spring与DWR集成,配置文件报错
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document;  2)...
分类:编程语言   时间:2014-05-12 22:55:47    阅读次数:409
显示数据库中的存储过程__转
显示数据库中的存储过程__转 It's no easy trick to see stored procedures in a database programmatically with a scripting language like ASP. If you're using MS Access, you're out of luck. Access provides no way to ...
分类:数据库   时间:2014-05-12 22:43:25    阅读次数:541
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!