Mocking Java InputStream

Please Visit: http://ift.tt/1ajReyV



.



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1mhzcZD

via LifeLong Community

Log4j.Properties Example

log4j.rootLogger=INFO, file, stdout
# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=C:\\loging.log
log4j.appender.file.MaxFileSize=1MB
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
http://www.mkyong.com/logging/log4j-log4j-properties-examples/    
http://www.tutorialspoint.com/log4j/log4j_configuration.htm
http://logging.apache.org/log4j/1.2/manual.html

9 uses for cURL worth knowing | httpkit | Tools for hacking on HTTP

Please Visit: http://ift.tt/1ajReyV



9 uses for cURL worth knowing

http://ift.tt/1dLicAM

http://ift.tt/1kFln5B



Set the Request Method -X POST

Set Request Headers -h

Send a Request Body -d

Use a File as a Request Body @example.json

POST HTML Form Data -d

Save the cURL Output to a file -O

Follow HTTP Location Headers with -L option

Continue/Resume a Previous Download -C

Limit the Rate of Data Transfer --limit-rate 1000B

Pass HTTP Authentication in cURL -u username:password



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1dLi9Fc

via LifeLong Community

Run/Debug focused test method (NetBeans for PHP)

Please Visit: http://ift.tt/1ajReyV



Netbeans: Run Junit test and Run focused test method

http://ift.tt/15KHbFw

http://ift.tt/1maqjRy



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/15KHbFw

via LifeLong Community

Netbeans Shortcuts

https://netbeans.org/project_downloads/usersguide/shortcuts-74.pdf
http://wiki.netbeans.org/Keyboard_Shortcuts
Coding in Java
Alt-Insert Generate code
Ctrl-Shift-I Fix all class imports
Alt-Shift-I Fix selected class's import
Alt-Shift-F Format selection
Alt-Shift Left/Right/Up/Down   Shift lines left/right/up/down
Ctrl-Shift-R Rectangular Selection (Toggle)
Ctrl-Shift-Up/D Copy lines up/down 
Ctrl/Alt-F12 Inspect members/hierarchy
Ctrl-/ Add/remove comment lines 
Ctrl-E Delete current line
ALT+F7 Find Usages
CTRL+F4 Close Editor Window and CTRL+SHIFT+F4 Close All Editor Windows
CTRL+F12 Navigate to Member
SHIFT+ESC Toggle Editor Maximize / Minimize

Vimium

Please Visit: http://ift.tt/1ajReyV



Vimium - The Hacker's Browser

Vimium is a Chrome extension that provides keyboard-based navigation and control in the spirit of the Vim editor.

http://ift.tt/W4gXZ4

http://ift.tt/Mcb7TS



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/W4gXZ4

via LifeLong Community

jdereg/java-util

Please Visit: http://ift.tt/1ajReyV



Java Util: deepEquals and deepHashCode

http://ift.tt/1bK1BO3

http://ift.tt/1m4eqN0

http://ift.tt/1bK1BO5



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1bK1BO3

via LifeLong Community

Standard Paper Sizes

http://www.dpandi.com/paper/
A (letter)  8.5 x 11 inches 
Legal 8.5 x 14 inches 
B (ledger)  11 x 17 inches 
Not 11X17W. 

All new Google+ Explore - What's Hot for you! The "What's Hot" tab ha

Please Visit: http://ift.tt/1ajReyV





All new Google+ Explore - What's Hot for you!



The "What's Hot" tab has been removed from the left side pop-up pillar and moved to the top of your Home page on Google+:



It's now called Explore



Learn more: http://bit.ly/Npv4Ye



#Explore #Googleplus #Plushelp #Trends

Jeffery yuan (http://ift.tt/1enl9aO) via Gplus Expertise (http://ift.tt/1m3qXjO)



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1lwBXCL

via LifeLong Community

Where is Ubuntu storing installed programs?

Please Visit: http://ift.tt/1ajReyV



Find Where Ubuntu stores installed programs

http://ift.tt/1kyMAqr

dpkg -L <package_name>

dpkg -L openjdk-7-jdk

They are usually stored in the following folders:

/bin/

/usr/bin/

/sbin/

/usr/sbin/

http://ift.tt/1bINWqE



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1kyMAqr

via LifeLong Community

Part1: Run Time-Consuming Solr Query Faster: Auto Run Queries X Minutes after Startup and Commit

Please Visit: http://ift.tt/1ajReyV



Part1: Run Time-Consuming Solr Query Faster: Auto Run Queries X Minutes after Startup and Commit

The Problem In our web application, the very first request to solr server is a stats query . When there are more than 50 millions data, the first stats query may take 1, 2 or more minutes. As it need load millions of documents, terms into Solr. For subseque...



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1g1iWH4

via LifeLong Community

Effective Java (2nd Edition): Joshua Bloch: 9780321356680: Amazon.com: Books

Please Visit: http://ift.tt/1ajReyV



Replace Constructor with Factory Method from Effective Java Second Edition

Static factory methods can have different name than class whereas constructors cannot.

Static factory methods, unlike constructors, they are not required to create a new object each time they’re invoked.

Static factory methods, unlike constructors, they can return an object of any subtype of their return type.

Static factory methods reduce the verbosity of creating parameterized type instances.

http://ift.tt/1gjlDmE



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1gjlDmE

via LifeLong Community

Jolt Awards: The Best Books

Please Visit: http://ift.tt/1ajReyV



Jolt Awards

Jolt Awards: The Best Books

http://ift.tt/1lWnjrX

NoSQL Distilled

Team Geek

Taming Text



Jolt Awards: The Best Programming Utilities

http://ift.tt/16xE3K9

Fiddler

Indigo Studio

VMware Fusion 5.0

Araxis Merge

LINQPad

VMware Workstation 9.0



Jolt Awards 2013: The Best Programmer Libraries

http://ift.tt/1lWnjrY

Twitter Bootstrap 2.2.1



Jolt Awards: Coding Tools

http://ift.tt/1ei6M7F

Embarcadero RAD Studio XE3

ActiveState Stackato 2.4

ActiveState Komodo 7.1 IDE

Telerik DevCraft Ultimate

Microsoft Visual Studio 2012

JetBrains IntelliJ IDEA 12.0 Ultimate



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1lWnjrX

via LifeLong Community

Dagger

Please Visit: http://ift.tt/1ajReyV



Dagger: A fast dependency injector for Android and Java

http://ift.tt/18ic5To



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1bEW2jS

via LifeLong Community

Create and register MBean in MBeanServer | Examples Java Code Geeks

Please Visit: http://ift.tt/1ajReyV



JMX

Create and register MBean in MBeanServer

http://ift.tt/LLLAQA

Java MXBean custom types

http://ift.tt/1h0bor5



from Google Plus RSS Feed for 101157854606139706613 http://ift.tt/1fPcalk

via LifeLong Community