码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果)
Linux 变量操作记录
变量操作总结:${Var:-Value}变量Var为unset或null则输出Value。有值则输出变量Var的值。${Var:=Value}变量Var为unset或null则输出Value,并且赋值于变量Var。同上。${Var:+Value}变量Var为unset或null则输出变量Var。有值则输出Value.${Var:?Value}变量Var为unset或null则输出..
分类:系统相关   时间:2015-05-08 18:23:44    阅读次数:160
获取RSS的XML内容然后整形输出(Windows Patch)
$report = [pscustomobject]@{'Date' = $null; 'MSRC' = $null; 'KB' = $null; 'Severity' = $null; 'Version' = $null; 'Summary' = $null; 'ThreatType' = $nu...
分类:Windows程序   时间:2015-05-08 17:59:35    阅读次数:158
js关闭当前页面/关闭当前窗口
function CloseWebPage(){if (navigator.userAgent.indexOf("MSIE") > 0) {if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {window.opener = null;window.cl...
分类:Web程序   时间:2015-05-08 17:58:32    阅读次数:157
编码-错误情形统一优先处理
$lastId = $arrInput['params']['last_id']; $qlistRet = $this->_objApiQlUlist->getUlistStream($uid, null, self::PAGE_LIMIT+1, $lastId); ...
分类:其他好文   时间:2015-05-08 17:54:37    阅读次数:90
EF-InvalidOperation系列
1.InvalidOperation强制转换为值类型 'System.Guid' 失败,因为实例化的值为 null。结果类型的泛型参数或查询必须使用可以为 null 的类型错误信息:The cast to value type 'System.Guid' failed because the mat...
分类:其他好文   时间:2015-05-08 17:47:16    阅读次数:162
Oracle容易犯的错误和技巧集合
引言 此文记录日常开发中容易遇到的oracle编程误区和一些使用技巧,不定期更新.1.sum(),max(),min(),avg()等函数会得到null值declare n_num number(5):='';beginselect sum(1) into n_num from dual ...
分类:数据库   时间:2015-05-08 16:24:40    阅读次数:131
如何监控正在运行的服务是否正常并且会邮件报警
监控服务,这是放在crontab的任务,个人不喜欢用死循环放在后台运行。所以每次会执行3次循环,连续3次循环,服务有任何一项是down的,则会报警。普及小知识,注意重定向的3种写法,其实效果是一样的。#!/bin/bash nmap-p606510.31.6.6|egrep"6065/tcpopen"&>/dev/null..
分类:其他好文   时间:2015-05-08 15:06:58    阅读次数:157
IO异常处理方式
/** IO异常处理方式 */import java.io.*;public class FileWriterDemo2{ public static void main(String[] args) { FileWriter fw=null; try { fw=new FileWriter(".....
分类:其他好文   时间:2015-05-08 14:47:05    阅读次数:120
快速理解Java中的五种单例模式
解法一:只适合单线程环境(不好)package test;/** * @author xiaoping * */public class Singleton { private static Singleton instance=null; private Singleton(){ ...
分类:编程语言   时间:2015-05-08 14:47:04    阅读次数:138
图像处理——二值化
二值化,利用大律法实现自适应二值化,自动求出二值化阈值 int BinarizeImageByOTSU (IplImage * src) { assert(src != NULL); //get the ROI CvRect rect = cvGetImageROI(src); //information of the source image int x = rect.x; ...
分类:其他好文   时间:2015-05-08 13:03:17    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!