- 军军小站|张军博客
搜索到与相关的文章
Linux

Linux下密码输入问题

刚才无意间看到了关于Linux下输入密码的问题,一寻思也是,以后可能得用到,了解一下。这里的方法是使用库curses.h中的函数,更多的了解请看:http://fanqiang.chinaunix.net/a4/b2/20020626/060200258.html安装Ncurses库:RHEL/Fedora/CentOSLinux下的方法:yuminstallncurses-develncursesDebian/UbuntuLinux下的方法:sudoap

系统 2019-08-29 22:22:04 3172

编程技术

一、CXF WebService准备工作

1、CXF官方网址:http://cxf.apache.org/2、Jar包下载地址:http://www.apache.org/dyn/closer.cgi?path=/cxf/2.3.3/apache-cxf-2.3.3.zip将下来的jar包解压后,目录大概就这样bin目录提供的是常用的dos控制台命令工具docs帮助文档libjar包、依赖库lib-samples也是jar包,有jetty、httpclients、junit等jar包modules

系统 2019-08-12 01:32:16 3172

Python

python高斯分布概率密度函数的使用详解

如下所示:importmatplotlib.pyplotaspltimportnumpyasnpfromscipyimportstatsfrommatplotlibimportstylestyle.use('fivethirtyeight')mu_params=[-1,0,1]sd_params=[0.5,1,1.5]x=np.linspace(-7,7,100)f,ax=plt.subplots(len(mu_params),len(sd_params)

系统 2019-09-27 17:56:00 3171

Tomcat

配置tomcat是修改JSP页面后不用重启服务器

在这次的开发中遇到一个特别扯淡的问题。每次改动代码都得重启tomcat服务器。后来知道通过修改配置文件可以设置。但发现有些时候还是好使。1.打开文件ApacheJetspeed/conf/web.xml2.修改jsporg.apache.jasper.servlet.JspServlet

系统 2019-08-12 01:32:46 3171

Python

python将图片旋转,颠倒,修改尺寸

直接上代码,根据需求注释选择相应修改fromPILimportImageimportosimportos.pathrootdir=r'G:\jianfeng\project\rubblish_det\faster_rcnn\rubbish_voc_xml\rubbish_pic_forTest\4396'#指明被遍历的文件夹forparent,dirnames,filenamesinos.walk(rootdir):forfilenameinfilenam

系统 2019-09-27 17:57:38 3170

Javascript

使用纯javascript通过className来获取元素 (ge

MarkFinklesuggestedthatIdosomespeedtesting,nowthatanativeimplementationofgetElementsByClassNamehaslandedintheMozillatrunk(destinedforFirefox3).SoIwentaroundanddugupallofthedifferent,existing,implementationsthatIcouldfind.Currently

系统 2019-08-29 22:47:45 3170

Javascript

JavaScript 语言基础知识点总结(思维导图)

JavaScript数组JavaScript函数基础Javascript运算符JavaScript流程控制JavaScript正则表达式JavaScript字符串函数JavaScript数据类型JavaScript变量Window对象DOM基本操作JavaScript语言基础知识点总结(思维导图)

系统 2019-08-12 01:33:49 3170

编程技术

浅谈返回值类型: json与html

返回json时要注意的一些东西:1、后台千万不要用StringBuilder的AppendLine()方法,这样会夹杂进去"\r\n",而不能成功;2、json是脆弱的,如果要构建html作为其中的一个值,而html中又有单双引号,那么在后台最好是这样:sb.Replace("\"","%db%");sb.Replace("'","%single%");strAjaxHtml=string.Format("{{\"count\":\"{0}\",\"htm

系统 2019-08-29 23:10:40 3169