- 代码检查工具Sonar
我是谁??
ToolsSonar
sonar介绍Sonar是一个用于代码质量管理的开放平台。通过插件机制,Sonar可以集成不同的测试工具,代码分析工具,以及持续集成工具。与持续集成工具(例如Hudson/Jenkins等)不同,Sonar并不是简单地把不同的代码检查工具结果(例如FindBugs,PMD等)直接显示在Web页面上,而是通过不同的插件对这些结果进行再加工处理,通过量化的方式度量代码质量的变化,从而可以方便地对不同规
- 京东零售小哥手把手教你自定义代码重构工具
京东零售技术
后端javajava后端代码重构源码分析
前言笔者近日在做代码仓库的存量代码缩减工作,首先考虑的是基于静态扫描的缩减,尝试使用了很多工具来对代码进行优化,例如PMD、IDEA自带的inspect功能、findBugs等。但是无一例外,要么过于“保守”,只给出扫描结果,但是无法实现一键优化,要么直接就是有bug(这里特指IDEA2023.1.5专业版-inspect功能扫描problems清单里的unuseddeclaration)。对于懒
- 安卓之代码检查工具优劣分析以及应用场景
洪信智能
安卓开发android代码规范持续集成持续部署
一、引言代码检查工具在Android应用开发中是不可或缺的一部分,它们旨在提高代码质量、强化编程规范、消除潜在bug、提升应用性能和安全性。诸如Checkstyle、FindBugs、Infer、PMD和AndroidLint等一系列工具各具特色,应用于不同的开发环节,有助于打造健壮且易于维护的移动应用。这些工具的技术优势在于能够自动化执行静态分析,提前预防问题的发生,而其局限性则可能体现在误报、
- Jacoco 代码测试覆盖率检测插件的配置和使用
江无羡
ToolCI与CD的实践
Jacoco是一个免费的代码覆盖率测试工具,分别在maven和gradle管理的项目中都可以通过简单的配置来对我们的项目代码进行单元测试用例执行覆盖率的测试,非常的便捷好用!常见自动化CI所采用的插件列表SpotlessCheckstyleFindBugsJacocoLiquibase在项目中配置使用Jacoco在Gradle项目中,配置使用Jacocogradle构建脚本使用groovy首先在b
- java代码静态检查工具
molvhongchen
java开发工具
查了下相关网页,如https://www.jianshu.com/p/4a50ce0f6ce1java代码静态检查工具,有checkstyle、PMD、FindBugs、Jtest等工具查错能力比较代码缺陷分类示例CheckstyleFindBugsPMDJtest引用操作空指针引用√√√√对象操作对象比较(使用==而不是equals)√√√表达式复杂化多余的if语句√数组使用数组下标越界√未使用
- 代码分析体系及Sonarqube平台
霍格沃兹测试开发学社
代码分析综合性的代码分析平台:sonar支持自定义规则,较多的公司使用IDE辅助功能:xcode、androidstudio独立的静态分析工具:findbugs、androidlint、scan-build、pmd、阿里巴巴java开发规范pmd插件image.png代码审计关注的质量指标代码坏味道:代码规范、技术债评估代码重复度、圈复杂度bug和漏洞单元测试规模覆盖率分析代码静态检查代码语法分析
- idea使用笔记(三):插件使用
Geroge1226
以下列举了开发过程中常用的插件列表,欢迎大佬们继续推荐!一、常见优秀插件列表1.lombak--使idea能够正常使用lombak包2.freemybatis--mybatis插件方便操作mybatis文件跳转3.findbugs--代码bug查找4.RainbowBrackets--彩色括号,方便查看阅读代码5.jrebel--项目热部署6.keypromoter--快捷键提示工具7.GsonF
- 那些总是写“烂代码”的同学,强烈推荐你用这款 IDEA 插件!
北诺成尘_6bd8
1、目标 idea集成sonar的代码检查,实现可以在提交代码前就检查你的代码,而不是将代码提交之后,之后再去检查。 Sonar可以从以下七个维度检测代码质量,而作为开发人员至少需要处理前5种代码质量问题1、不遵循代码标准sonar可以通过PMD,CheckStyle,Findbugs等等代码规则检测工具规范代码编写2、潜在的缺陷sonar可以通过PMD,CheckStyle,Findbugs
- Java程序员必备的11大Intellij插件
ccddsdsdfsdf
IDEA常用javaintellij-ideaandroid
文章目录1、iBatis/Mybatismini-plugin1、.ignore2、lombok3、p3c4.、FindBugs-IDEA5、GsonFormat--将josn字符串,直接转成javaBean对象6、MavenHelper--用来查看maven依赖冲突7、VisualVMLauncher8、GenerateAllSetter--【用于生成bean的所有setter方法,用于对象转换
- 移动端测试体系建设
Sabrina_FN
功能测试
一、测试or开发期间:1、静态代码检查1、在编译和运行代码之前,使用静态代码分析工具对代码进行分析,查找潜在问题,如:内存泄露,缓冲区溢出、未初始化的变量等低级语法错误等,常作为流水线卡点自动执行2、Android端常见静态代码检查工具:AndroidLint、FindBugs、QAPlug、godeyes等;ios端常见静态代码检查工具:ClangStaticAnalyzer、godeyes、i
- Hadoop伪分布式部署
码戈
准备工具:CentOS-6.4-x86_64-bin-DVD1.iso;hadoop-2.7.3-src.tar.gz;jdk-8u151-linux-x64.tar.gz;apache-maven-3.0.5-bin.tar.gz;findbugs-1.3.9.tar.gz;protobuf-2.5.0.tar.gz第一步:在虚拟机上安装Centos6.4系统,很简单,略过。注意:配置网络使用桥
- 2024程序员IDEA插件推荐!!!
顶子哥
活动专栏intellij-ideajavaide开发语言tomcathibernatespringboot
目录程序员IDEA插件推荐!!!前言必装类1.AlibabaJavaCodingGuidelines2.ArthasIdea3.FreeMybatisplugin4.Lombok5.JavaDoc6.GitFlowIntegration7.FindBugs8.MavenHelper9.CodeGlance10.PresentationAssistant11.RainbowBrackets12.Hi
- Idea代码走查工具FindBus使用以及缺陷分析
孤蓬&听雨
教程intellij-ideajavafindbugs经验分享
1.简介Findbugs是一个静态分析工具,它检查类或者jar文件,将字节码与一组缺陷模式进行对比以发现可能的问题。利用这个工具可以在不实际运行程序的情况下对软件进行分析。可以帮助改进代码质量。Findbugs提供了方便操作的可视化界面,同时,也可以作为idea插件来使用。2.安装下载:https://plugins.jetbrains.com/plugin/3847-findbugs-idea/
- Hadoop学习(二)自己编译Hadoop安装包
匿名啊啊啊
HDFS
CentOS-6.7编译hadoop-2.6.5(只需输入命令即可)目录1、阅读编译文档2、准备编译环境3、安装gcc4、安装gcc-c++5、安装make6、安装maven(必须)7、安装jdk(必须)8、安装ant(重要)9、安装findbugs(可选,最好装)10、安装cmake(重要)11、安装protobuf(重要)12、安装Snappy13、编译hadoop1、阅读编译文档(1)准备一
- 55 代码审计-JAVA项目注入上传搜索或插件挖掘
山兔1
小迪安全java开发语言
目录必备知识点演示案例:简易Demo段SQL注入及预编译IDEA审计插件FindBugs安装使用Fortify_SCA代码自动审计神器使用Ofcms后台SQL注入-全局搜索关键字Ofcms后台任意文件上传-功能点测试涉及资源:我们一般针对java项目,进行漏洞分析的话,主要是从三方面去分析,代码层面分析,还有代码引用或编写的框架,框架也会有一些安全问题。除此之外,容器搭建也会造成安全问题,这个是简
- IDEA实用插件推荐-AI神器在手天下我有
东来东往ol
IDEAjavaintellijideaplugin
1.AI写代码神器-Codota官网介绍地址https://www.codota.com/about话不多说直接看效果图更智能的代码提示可以直接从github搜索匹配的源码可以基于上下文进行一些代码推断一般的校验这种基本就是回车键不用手写,大大的提升了编码效率。2.找bug神器1findBugs-IDEA官网地址http://findbugs.sourceforge.net/针对编译后字节码进行代
- 代码分析体系及Sonarqube平台
霍格沃兹
代码分析IDE辅助功能:xcode、androidstudio独立的静态分析工具:findbugs、androidlint、scan-build、pmd、阿里巴巴java开发规范pmd插件代码审计关注的质量指标bug和漏洞单元测试规模覆盖率分析代码静态检查代码语法分析:lint系列,通过分析语法树和源代码,检查代码规范编译器分析:借助于编译器获得代码关系字节码静态分析:分析jar、war、dex等
- 代码分析体系及Sonarqube平台
霍格沃兹测试开发
代码分析IDE辅助功能:xcode、androidstudio独立的静态分析工具:findbugs、androidlint、scan-build、pmd、阿里巴巴java开发规范pmd插件代码审计关注的质量指标bug和漏洞单元测试规模覆盖率分析代码静态检查代码语法分析:lint系列,通过分析语法树和源代码,检查代码规范编译器分析:借助于编译器获得代码关系字节码静态分析:分析jar、war、dex等
- FindBugs工具使用
Coder蒋
前言对于初学者以及刚刚参加工作的程序猿来说,常常希望能有一种方式或者工具能够帮助我们指出我们书写的代码中那些不合适或者有隐患的地方,让我们书写的代码能够更加高效和安全。FindBugs就是这样一款工具,当我们编码完成后,可以一键检查我们的代码,并罗列出我们代码中有哪些需要优化的地方和可能会出问题的地方。安装首先打开Androidstudio的设置中的插件,输入findbugs,如下图所示,点击Br
- Jenkins部署遇到的问题
Zero_dot_degree
工具Jenkins
新建项目时没有构建一个maven项目选项解决方法:安装MavenIntegrationplugin插件,在全局工具配置中配置maven的路径构建后操作,没有deploywar/eartoacontainer选项解决方法:安装DeploytocontainerPlugin插件安装的插件:MavenIntegrationplugin,DeploytocontainerPlugin,FindBugsPl
- 使用maven构建Flink jar包并在集群中使用
Anthons
pom.xml使用maven-shade-plugin构建jar包。注意:修改org.apache.maven.pluginsmaven-shade-plugin3.1.1packageshadecom.google.code.findbugs:jsr305org.slf4j:*log4j:**:*META-INF/*.SFMETA-INF/*.DSAMETA-INF/*.RSAcom.cn.wc
- 软件测试/人工智能|使用ChatGPT帮我们查找bug
软件测试大空翼
ChatGPT人工智能chatgptbug单元测试
简介作为一个程序员,发现自己写的bug其实不是一件容易的事情,我们会更容易发现别人的错误,对于自己代码里的错误会更难发现,这也是测试的必要性。通常,我们会有以下几种方式来检测发现代码中的bug:研发编写单元测试。代码扫描,比如sonarqube,findbugs。测试人员进行集成测试现在有了人工智能工具,我们自然也可以使用人工智能工具来帮我们查找bug,本文就来介绍一下使用ChatGPT来帮我们查
- 几款Java源码扫描工具(FindBugs、PMD、SonarQube、Fortify、WebInspect)
没刮胡子
javajava
说明有几个常用的Java源码扫描工具可以帮助您进行源代码分析和检查。以下是其中一些工具:FindBugs:FindBugs是一个静态分析工具,用于查找Java代码中的潜在缺陷和错误。它可以检测出空指针引用、资源未关闭、不良的代码实践等问题。FindBugs已经停止维护,但仍然是一个常用的工具。PMD:PMD是另一个流行的静态代码分析工具,用于检测Java代码中的潜在问题和不良实践。它可以检查代码中
- maven打包插件配置模板
诗风雅韵
mavenjava
主要有两类:1、maven-shade-plugin主要用于java程序编写的的打包org.apache.maven.pluginsmaven-shade-plugin3.2.4packageshadecom.google.code.findbugs:jsr305org.slf4j:*log4j:*org.apache.hadoop:**:*META-INF/*.SFMETA-INF/*.DSAM
- maven项目配置findbugs插件 使用git钩子控制代码的提交
weixin_30258901
gitjavashell
maven项目配置findbugs插件对代码进行静态检测当发现代码有bug时,就不让用户commit代码到远程仓库里没有bug时才可以commit到远程仓库中(1)新建maven项目,配置findbugs插件pom.xml4.0.0cn.demomvn_findbugs0.0.1-SNAPSHOTjarmvn_findbugshttp://maven.apache.orgmvn_findbugst
- SonarQube 学习笔记
LWei_csdn
开发工具学习代码规范
1.SonarQube简介1.1为什么要用sonarQube?在我们的日常软件开发工作当中,随着项目时间变长,开发人员编写的代码量也会越来越多。长此以往,会面临代码量庞大,却无法横量整体代码质量?若是要优化,也不知道如何优化。针对这些问题,出现了各种各样的工具,比如:java语言的Checkstyle,FindBugs,PMD,Jtest等,帮助检测代码编写规范上存在的问题和漏洞。python语言
- 代码分析体系及Sonarqube平台
ceshiren_com
软件测试技能Sonarqube
代码分析IDE辅助功能:xcode、androidstudio独立的静态分析工具:findbugs、androidlint、scan-build、pmd、阿里巴巴java开发规范pmd插件代码审计关注的质量指标bug和漏洞单元测试规模覆盖率分析代码静态检查代码语法分析:lint系列,通过分析语法树和源代码,检查代码规范编译器分析:借助于编译器获得代码关系字节码静态分析:分析jar、war、dex等
- java代码审计_从零开始java代码审计系列(四)
书香拌饭
java代码审计
最近打算审一审web项目,毕竟复现一些java的经典漏洞和审计javaweb还是有些区别的,这次审计的项目地址:https://gitee.com/oufu/ofcms审计时可以IDEA可以装上FindBugs还是有一些帮助的。后台任意文件上传漏洞路径/ofcms/ofcms-admin/src/main/java/com/ofsoft/cms/admin/controller/cms/Templ
- 代码扫描工具选型—POC结果分享
amilier
代码安全检测开发安全代码审计安全企业安全信息安全网络安全sdl
代码扫描工具选型—POC结果分享最近我们安全部门要启动代码扫描工具的项目,学习大厂做SDL和开发安全。花了好大的精力去调研了解这个东西,产品功能和POC什么的,特此记录一下,也给自己做个备忘。先说下我的调研过程和经验吧:先百度上一通搜索,发现这类产品也不少,还有一些别人的资料,但资料数据也不全准,具体咋样还得自己做POC。我们没有考虑开源的,之前用过几个开源的工具,findbugs的sec版、so
- 线上bug检测工具 android,Android 检测代码规范和检测bug的工具汇总整理
weixin_39661589
线上bug检测工具android
前言在日常团队Android项目开发过程中,难免会疏忽出现一些bug,而且这里bug对用户体验是不好的,要几时铲除。而且每个coder的编码习惯不用和编出来的代码也是会有差异的。为了保证团队开发中代码的规范以及尽量避免低级bug,我们往往需要一些工具来进行严格的检查,从而提高代码质量。下面介绍一下四种插件lint、findBugs、PMD、CheckStyles的功能和使用方式。参照总结一下Lin
- JAVA基础
灵静志远
位运算加载Date字符串池覆盖
一、类的初始化顺序
1 (静态变量,静态代码块)-->(变量,初始化块)--> 构造器
同一括号里的,根据它们在程序中的顺序来决定。上面所述是同一类中。如果是继承的情况,那就在父类到子类交替初始化。
二、String
1 String a = "abc";
JAVA虚拟机首先在字符串池中查找是否已经存在了值为"abc"的对象,根
- keepalived实现redis主从高可用
bylijinnan
redis
方案说明
两台机器(称为A和B),以统一的VIP对外提供服务
1.正常情况下,A和B都启动,B会把A的数据同步过来(B is slave of A)
2.当A挂了后,VIP漂移到B;B的keepalived 通知redis 执行:slaveof no one,由B提供服务
3.当A起来后,VIP不切换,仍在B上面;而A的keepalived 通知redis 执行slaveof B,开始
- java文件操作大全
0624chenhong
java
最近在博客园看到一篇比较全面的文件操作文章,转过来留着。
http://www.cnblogs.com/zhuocheng/archive/2011/12/12/2285290.html
转自http://blog.sina.com.cn/s/blog_4a9f789a0100ik3p.html
一.获得控制台用户输入的信息
&nbs
- android学习任务
不懂事的小屁孩
工作
任务
完成情况 搞清楚带箭头的pupupwindows和不带的使用 已完成 熟练使用pupupwindows和alertdialog,并搞清楚两者的区别 已完成 熟练使用android的线程handler,并敲示例代码 进行中 了解游戏2048的流程,并完成其代码工作 进行中-差几个actionbar 研究一下android的动画效果,写一个实例 已完成 复习fragem
- zoom.js
换个号韩国红果果
oom
它的基于bootstrap 的
https://raw.github.com/twbs/bootstrap/master/js/transition.js transition.js模块引用顺序
<link rel="stylesheet" href="style/zoom.css">
<script src=&q
- 详解Oracle云操作系统Solaris 11.2
蓝儿唯美
Solaris
当Oracle发布Solaris 11时,它将自己的操作系统称为第一个面向云的操作系统。Oracle在发布Solaris 11.2时继续它以云为中心的基调。但是,这些说法没有告诉我们为什么Solaris是配得上云的。幸好,我们不需要等太久。Solaris11.2有4个重要的技术可以在一个有效的云实现中发挥重要作用:OpenStack、内核域、统一存档(UA)和弹性虚拟交换(EVS)。
- spring学习——springmvc(一)
a-john
springMVC
Spring MVC基于模型-视图-控制器(Model-View-Controller,MVC)实现,能够帮助我们构建像Spring框架那样灵活和松耦合的Web应用程序。
1,跟踪Spring MVC的请求
请求的第一站是Spring的DispatcherServlet。与大多数基于Java的Web框架一样,Spring MVC所有的请求都会通过一个前端控制器Servlet。前
- hdu4342 History repeat itself-------多校联合五
aijuans
数论
水题就不多说什么了。
#include<iostream>#include<cstdlib>#include<stdio.h>#define ll __int64using namespace std;int main(){ int t; ll n; scanf("%d",&t); while(t--)
- EJB和javabean的区别
asia007
beanejb
EJB不是一般的JavaBean,EJB是企业级JavaBean,EJB一共分为3种,实体Bean,消息Bean,会话Bean,书写EJB是需要遵循一定的规范的,具体规范你可以参考相关的资料.另外,要运行EJB,你需要相应的EJB容器,比如Weblogic,Jboss等,而JavaBean不需要,只需要安装Tomcat就可以了
1.EJB用于服务端应用开发, 而JavaBeans
- Struts的action和Result总结
百合不是茶
strutsAction配置Result配置
一:Action的配置详解:
下面是一个Struts中一个空的Struts.xml的配置文件
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
&quo
- 如何带好自已的团队
bijian1013
项目管理团队管理团队
在网上看到博客"
怎么才能让团队成员好好干活"的评论,觉得写的比较好。 原文如下: 我做团队管理有几年了吧,我和你分享一下我认为带好团队的几点:
1.诚信
对团队内成员,无论是技术研究、交流、问题探讨,要尽可能的保持一种诚信的态度,用心去做好,你的团队会感觉得到。 2.努力提
- Java代码混淆工具
sunjing
ProGuard
Open Source Obfuscators
ProGuard
http://java-source.net/open-source/obfuscators/proguardProGuard is a free Java class file shrinker and obfuscator. It can detect and remove unused classes, fields, m
- 【Redis三】基于Redis sentinel的自动failover主从复制
bit1129
redis
在第二篇中使用2.8.17搭建了主从复制,但是它存在Master单点问题,为了解决这个问题,Redis从2.6开始引入sentinel,用于监控和管理Redis的主从复制环境,进行自动failover,即Master挂了后,sentinel自动从从服务器选出一个Master使主从复制集群仍然可以工作,如果Master醒来再次加入集群,只能以从服务器的形式工作。
什么是Sentine
- 使用代理实现Hibernate Dao层自动事务
白糖_
DAOspringAOP框架Hibernate
都说spring利用AOP实现自动事务处理机制非常好,但在只有hibernate这个框架情况下,我们开启session、管理事务就往往很麻烦。
public void save(Object obj){
Session session = this.getSession();
Transaction tran = session.beginTransaction();
try
- maven3实战读书笔记
braveCS
maven3
Maven简介
是什么?
Is a software project management and comprehension tool.项目管理工具
是基于POM概念(工程对象模型)
[设计重复、编码重复、文档重复、构建重复,maven最大化消除了构建的重复]
[与XP:简单、交流与反馈;测试驱动开发、十分钟构建、持续集成、富有信息的工作区]
功能:
- 编程之美-子数组的最大乘积
bylijinnan
编程之美
public class MaxProduct {
/**
* 编程之美 子数组的最大乘积
* 题目: 给定一个长度为N的整数数组,只允许使用乘法,不能用除法,计算任意N-1个数的组合中乘积中最大的一组,并写出算法的时间复杂度。
* 以下程序对应书上两种方法,求得“乘积中最大的一组”的乘积——都是有溢出的可能的。
* 但按题目的意思,是要求得这个子数组,而不
- 读书笔记-2
chengxuyuancsdn
读书笔记
1、反射
2、oracle年-月-日 时-分-秒
3、oracle创建有参、无参函数
4、oracle行转列
5、Struts2拦截器
6、Filter过滤器(web.xml)
1、反射
(1)检查类的结构
在java.lang.reflect包里有3个类Field,Method,Constructor分别用于描述类的域、方法和构造器。
2、oracle年月日时分秒
s
- [求学与房地产]慎重选择IT培训学校
comsci
it
关于培训学校的教学和教师的问题,我们就不讨论了,我主要关心的是这个问题
培训学校的教学楼和宿舍的环境和稳定性问题
我们大家都知道,房子是一个比较昂贵的东西,特别是那种能够当教室的房子...
&nb
- RMAN配置中通道(CHANNEL)相关参数 PARALLELISM 、FILESPERSET的关系
daizj
oraclermanfilespersetPARALLELISM
RMAN配置中通道(CHANNEL)相关参数 PARALLELISM 、FILESPERSET的关系 转
PARALLELISM ---
我们还可以通过parallelism参数来指定同时"自动"创建多少个通道:
RMAN > configure device type disk parallelism 3 ;
表示启动三个通道,可以加快备份恢复的速度。
- 简单排序:冒泡排序
dieslrae
冒泡排序
public void bubbleSort(int[] array){
for(int i=1;i<array.length;i++){
for(int k=0;k<array.length-i;k++){
if(array[k] > array[k+1]){
- 初二上学期难记单词三
dcj3sjt126com
sciet
concert 音乐会
tonight 今晚
famous 有名的;著名的
song 歌曲
thousand 千
accident 事故;灾难
careless 粗心的,大意的
break 折断;断裂;破碎
heart 心(脏)
happen 偶尔发生,碰巧
tourist 旅游者;观光者
science (自然)科学
marry 结婚
subject 题目;
- I.安装Memcahce 1. 安装依赖包libevent Memcache需要安装libevent,所以安装前可能需要执行 Shell代码 收藏代码
dcj3sjt126com
redis
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
前面3步应该没有问题,主要的问题是执行make的时候,出现了异常。
异常一:
make[2]: cc: Command not found
异常原因:没有安装g
- 并发容器
shuizhaosi888
并发容器
通过并发容器来改善同步容器的性能,同步容器将所有对容器状态的访问都串行化,来实现线程安全,这种方式严重降低并发性,当多个线程访问时,吞吐量严重降低。
并发容器ConcurrentHashMap
替代同步基于散列的Map,通过Lock控制。
&nb
- Spring Security(12)——Remember-Me功能
234390216
Spring SecurityRemember Me记住我
Remember-Me功能
目录
1.1 概述
1.2 基于简单加密token的方法
1.3 基于持久化token的方法
1.4 Remember-Me相关接口和实现
- 位运算
焦志广
位运算
一、位运算符C语言提供了六种位运算符:
& 按位与
| 按位或
^ 按位异或
~ 取反
<< 左移
>> 右移
1. 按位与运算 按位与运算符"&"是双目运算符。其功能是参与运算的两数各对应的二进位相与。只有对应的两个二进位均为1时,结果位才为1 ,否则为0。参与运算的数以补码方式出现。
例如:9&am
- nodejs 数据库连接 mongodb mysql
liguangsong
mongodbmysqlnode数据库连接
1.mysql 连接
package.json中dependencies加入
"mysql":"~2.7.0"
执行 npm install
在config 下创建文件 database.js
- java动态编译
olive6615
javaHotSpotjvm动态编译
在HotSpot虚拟机中,有两个技术是至关重要的,即动态编译(Dynamic compilation)和Profiling。
HotSpot是如何动态编译Javad的bytecode呢?Java bytecode是以解释方式被load到虚拟机的。HotSpot里有一个运行监视器,即Profile Monitor,专门监视
- Storm0.9.5的集群部署配置优化
roadrunners
优化storm.yaml
nimbus结点配置(storm.yaml)信息:
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf
- 101个MySQL 的调节和优化的提示
tomcat_oracle
mysql
1. 拥有足够的物理内存来把整个InnoDB文件加载到内存中——在内存中访问文件时的速度要比在硬盘中访问时快的多。 2. 不惜一切代价避免使用Swap交换分区 – 交换时是从硬盘读取的,它的速度很慢。 3. 使用电池供电的RAM(注:RAM即随机存储器)。 4. 使用高级的RAID(注:Redundant Arrays of Inexpensive Disks,即磁盘阵列
- zoj 3829 Known Notation(贪心)
阿尔萨斯
ZOJ
题目链接:zoj 3829 Known Notation
题目大意:给定一个不完整的后缀表达式,要求有2种不同操作,用尽量少的操作使得表达式完整。
解题思路:贪心,数字的个数要要保证比∗的个数多1,不够的话优先补在开头是最优的。然后遍历一遍字符串,碰到数字+1,碰到∗-1,保证数字的个数大于等1,如果不够减的话,可以和最后面的一个数字交换位置(用栈维护十分方便),因为添加和交换代价都是1