ITeye博客

Ferrerooo 成长

speed847 · 共 371 篇文章

[置顶] 编程tips

------------------------------------------------------------------------- 都是i=i+1的意思,区别在于i++是i先不自加,在语句完后自加,++i先自加; 列如a=1+ i++;i本来为1的话,这里a=1+1;语句完后i才加1为2; a=1+ ++i的话就先i=i+1;i=2.然后a=i+1,a=3 ------------------------------------------------------------------------- printf()函数是格式输出函数,请求printf()打印变量的指令取决…

2013-12-29 04:06 · C C++ · 评论(0)

Java中断机制

基础 http://www.infoq.com/cn/articles/java-interrupt-mechanism http://hapinwater.iteye.com/blog/310558 新完应儿: lockInterruptibly -> 实现了可以被中断的线程阻塞(对比synchronized(this),这种阻塞无法被中断) http://lzmhehe.iteye.com/blog/402053

2015-09-17 16:13 · Multi-thread · 评论(0)

Selenium 29:How to Speed up Test Execution Using Selenium Grid

http://www.softwaretestinghelp.com/selenium-grid-selenium-tutorial-29/ We are now close to the end of this comprehensive Selenium tutorials series . Next week, we will conclude this online Selenium Training series with “effort estimation of Selenium Projects” and “Selenium Interview questions and a…

2015-09-16 08:04 · Testing · 评论(0)

Selenium 33:50 Most Popularly Asked Selenium Interview Questions and Answers

http://www.softwaretestinghelp.com/selenium-interview-questions-answers/ In this tutorial, we have listed the 50 most popularly asked Selenium interview questions including Selenium WebDriver interview questions. A quick note about this Selenium article series before we move to this last tutorial: …

2015-09-16 08:01 · Testing · 评论(0)

Selenium 28:Database Testing Using Selenium WebDriver and JDBC API

http://www.softwaretestinghelp.com/database-testing-using-selenium-webdriver-selenium-tutorial-28/ In our last Selenium tutorial we learned how to troubleshoot some recurrent problems in selenium scripts . We discussed some advance concepts wherein we would deal with mouse and keyboard events, acce…

2015-09-16 08:00 · Testing · 评论(0)

Selenium 27:Efficient Selenium Scripting and Troubleshoot Scenarios

http://www.softwaretestinghelp.com/efficient-selenium-scripting-selenium-tutorial-27/ In the previous tutorial, we discussed the technical implications while implementing logging in a framework . We discussed log4j utility at length. We discussed the basic components those constitute log4j from a u…

2015-09-16 08:00 · Testing · 评论(0)

Java Concurrency Util - tutorial

http://tutorials.jenkov.com/java-util-concurrent/index.html 1 java.util.concurrent - Java Concurrency Utilities 2 BlockingQueue 3 ArrayBlockingQueue 4 DelayQueue 5 LinkedBlockingQueue 6 PriorityBlockingQueue 7 SynchronousQueue 8 BlockingDeque 9 LinkedBlockingDeque 10 ConcurrentMap 11 ConcurrentNavi…

2015-09-16 08:00 · Multi-thread · 评论(0)

java8 Stream Lazy 解释 (非实现原理)

http://blog.csdn.net/dm_vincent/article/details/40503685 利用Stream类型的“懒”操作 代码中的很多操作都是Eager的,比如在发生方法调用的时候,参数会立即被求值。总体而言,使用Eager方式让编码本身更加简单,然而使用Lazy的方式通常而言,即意味着更好的效率。 本篇文章就是为了展示Java 8中新特性是如何让我们能够更方便的写出Lazy方式代码。 延迟初始化 对于会消耗较多资源的对象,使用延迟初始化是比较好的选择。这不仅能够节省一些资源,同时也能够加快对象的创建速度,从而从整体上提升性能。 但是对一个对象实现延迟初始化时,需要…

2015-07-22 07:49 · Java · 评论(0)

java8 系列2 深入理解Java 8 Lambda(类库篇——Streams API,Collectors和并行)

http://zh.lucida.me/blog/java-8-lambdas-insideout-library-features/ English version http://www.drdobbs.com/jvm/lambdas-and-streams-in-java-8-libraries/240166818?pgno=1 于 深入理解Java 8 Lambda(语言篇——lambda,方法引用,目标类型和默认方法) 深入理解Java 8 Lambda(类库篇——Streams API,Collector和并行) 深入理解Java 8 Lambda(原理篇——Java编译器如何处理…

2015-07-22 07:00 · Java · 评论(0)

java8 系列1 深入理解Java 8 Lambda(语言篇——lambda,方法引用,目标类型和默认方法)

http://zh.lucida.me/blog/java-8-lambdas-insideout-language-features/ 关于 深入理解Java 8 Lambda(语言篇——lambda,方法引用,目标类型和默认方法) 深入理解Java 8 Lambda(类库篇——Streams API,Collector和并行) 深入理解Java 8 Lambda(原理篇——Java编译器如何处理lambda) 本文是深入理解Java 8 Lambda系列的第一篇,主要介绍Java 8新增的语言特性(比如lambda和方法引用),语言概念(比如目标类型和变量捕获)以及设计思路。 本文是对 …

2015-07-22 06:58 · Java · 评论(0)

Java 8 Stream探秘 具体实现

http://colobu.com/2014/11/18/Java-8-Stream/ 在现代的Java应用程序中很少不用到集合类和数组。 可以对集合进行增,删,改,插, 统计(聚合aggregate)。 这些操作的概念在SQL操作上也会用到。 但是对集合的操作却没有像SQL那样方便简捷。 为什么我们不能实现一种类似SQL语句一样方便的编程方式呢, 去取代一遍又一遍loop遍历的方式处理集合和数组中的数据? 另外,对于大数据量的集合, 能不能充分利用多核的优势, 并行的处理? Stream是就是这种处理数据的风格, 一种流式风格。 这种风格在其它语言中也有实现, 比如Javascript (…

2015-07-22 06:31 · Java · 评论(0)

Arrays.asList() 的了解

为什么Arrays.asList() 返回的list是 immutable的? 原因是:返回的list本质上是Arrays类的一个内部类,这个类没有change structure的方法(add remove等方法全都改写成直接抛出unsupported operation异常),所以他是immutable的。 源代码分析: 将一个数组转化为一个List对象,一般会想到Arrays.asList()方法,这个方法会返回一个ArrayList类型的对象。但是用这个对象对列表进行添加删除更新操作,就会报UnsupportedOperationException异常。 [java] view pl…

2015-07-21 23:05 · Java · 评论(0)

Selenium 26:Debugging Selenium Scripts with Logs (Log4j Tutorial)

http://www.softwaretestinghelp.com/log4j-tutorial-selenium-tutorial-26/ Now we are moving towards the end of our most comprehensive Free Tutorials for Selenium Testing tool . The tutorials we are posting now are the part of advance Selenium training. In the previous tutorial, we kept our focus on t…

2015-07-21 22:44 · Testing · 评论(0)

Selenium 23:Apache ANT – a Tool for Automating Software Build Processes and its

http://www.softwaretestinghelp.com/apache-ant-selenium-tutorial-23/ In the last tutorial, we tried to make you acquainted with the concept of generics and common methods . We also discussed the benefits we get out of generics like reusability. We also shared the practical approaches towards creatio…

2015-07-21 22:43 · Testing · 评论(0)

Selenium 25:Hudson – Importance and Benefits of this Continuous Integration Tool

http://www.softwaretestinghelp.com/hudson-continuous-integration-tool-selenium-tutorial-25/ In the last two tutorials, we discussed about the two most important build tools – ANT and Maven . We discussed about their significance and practical importance. In the current Selenium online training tuto…

2015-07-21 22:42 · Testing · 评论(0)