Intellij IDEA – in my opinion the most productive IDE for Java – comes with bunch of features helping getting rid of writing repetitive code – which is a everyday business no matter what language you use. One of them is live templates. Live templates…
场景描述: 再从该数据库中读取数据进行处理的时候,需要将某个字段加入到一个动态的map中,然后需要对该map进行filter过滤,在执行过滤方法的时候报错 Error during generated code invocation: com.intellij.debugger.engine.evaluation.EvaluateException: Method threw 'java.lang.IllegalAccessError' exception. 报错截图: 也就是说该map执行不了…
google-java-format plugin should intercept the “Reformat Code” action in IDEA (Ctrl+Alt+L) and apply its own rules. However, it does not work with imports for some reason, so to fix that you have to import a Java Google Code Style XML file  to your c…
2015-05-26   628   Code-Tuning Techniques    ——Even though a particular technique generally represents poor coding practice, specific circumstances might make it the best one to use.    ——One key to writing effective loops is to minimize the work don…
2.界面字体大小设置 File菜单->Settings->Appearance->Override default fonts by(not recommended): Name:宋体(建议选择中文,防止出现中文乱码.起初的中文字体名称为空白,只要把列表框拉到最后随便选取一个空白然后应用,中文字体名便出现了,再选择喜欢的字体.) Size:18 3.代码字体大小设置 File菜单->Settings->Editor->Color&Font->Font 首先…
2015-03-06   328   Unusual Data Types    ——You can carry this technique to extremes,putting all the variables in your program into one big,juicy variable and then passingit everywhere.Careful programmers avoid bundling data any more than is logically…
近期困惑于团队成员代码风格迥异,代码质量不可控,作为一名老司机,忧患于后期服务的可维护性,多次一对一的代码Review,耗时耗力不说,效果也不明显.痛定思痛,多次反思之后得出结论:无规矩不成方圆,可靠的服务必须建立在统一的代码风格基础之上,仅仅提倡是远远不够的,必须使用有效的可执行机制,确保最终效果.   这里的可执行机制包含以下几个方面:   (1)有统一的代码风格约束要求: (2)IDE辅助检查代码风格约束是否满足,实时检测提醒: (3)构建项目过程强制检查代码风格约束是否满足,如不满足,终…
BACKGROUND As recognized in Revision 2.0 of the Intel® Virtualization Technology Specification for the Intel® Itanium® Architecture (VT-I), dated April 2005 (hereinafter "the VT-I Specification"), conventional operating system (OS) designs typic…
最近在看 Mask R-CNN, 这个分割算法是基于 Faster R-CNN 的,决定看一下这个 R-CNN 系列论文,好好理一下 R-CNN 2014 1. 论文 Rich feature hierarchies for accurate object detection and semantic segmentation Tech report (v5) Author: Ross Girshick Jeff Donahue Trevor Darrell Jitendra Malik, UC…
红皮的算法一书,内部代码的实现调用了作者写的一个包.为了运行书内代码,需要配置相应的环境. 准备 网站:https://algs4.cs.princeton.edu/code/ 工具:IntelliJ IDEA 2019.3 Java版本:jdk8 Step 0 下载algs4.jar Step 2 将jar包移到某个目录下,笔者此处放置在:"C:\Program Files\algs4\algs4.jar" Step 3 配置系统变量,在CLASSPATH后添加C:\Program…