Four solutions to the LazyInitializationException – Part 1 | Java Code Geeks http://ift.tt/A5FkNC...

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



Four solutions to the LazyInitializationException – Part 1 | Java Code Geeks

http://ift.tt/1l15D8v



Four solutions to the LazyInitializationException – Part 1 | Java Code Geeks







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l15D8z

via LifeLong Community

java - Spring injection Into Servlet - Stack Overflow I created a parent abstract servlet class that...

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



java - Spring injection Into Servlet - Stack Overflow



I created a parent abstract servlet class that retrieves the Spring context, gets and autowiring-capable factory and uses that factory to autowire the servlet instances (the subclasess, actually). I also store the factory as an instance variable in case the subclasses need it.

So the parent abstract servlet looks like this:

public abstract class AbstractServlet extends HttpServlet {

protected AutowireCapableBeanFactory ctx;

@Override

public void init() throws ServletException {

super.init();

ctx = ((ApplicationContext) getServletContext().getAttribute(

"applicationContext")).getAutowireCapableBeanFactory();

//The following line does the magic

ctx.autowireBean(this);

}

}http://ift.tt/1l0IrXT

http://ift.tt/1g60L5Z



java - Spring injection Into Servlet - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l0IrXX

via LifeLong Community

Reshared post from Jeffery yuan:

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






Original Post from Jeffery yuan:


Suggestion to G+ in Android: Easily copy text and share post to other application s.

Niw we can share pictures to other apps via share intention.



This is an useful feature. It would be be great if we can also share whole post.








from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1gimiTt

via LifeLong Community

Suggestion to G+ in Android: Easily copy text and share post to other application s. Now we can share...

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



Suggestion to G+ in Android: Easily copy text and share post to other application s.

Now we can share pictures to other apps via share intention.



This is an useful feature. It would be be great if we can also share whole post.



We can copy whole text in one post, but it would be better if we can copy a range of text when we long push on some text.





from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1gimhz0

via LifeLong Community

2 driver classes in the latest MySQL JDBC drive... | Community After adding this line to the "drivers...

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



2 driver classes in the latest MySQL JDBC drive... | Community



After adding this line to the "drivers" section in the subsystem "datasources" in standalone.xml the stacktrace is gone:

<driver-class>com.mysql.jdbc.Driver</driver-class>http://ift.tt/1g52h8F

http://ift.tt/1sbgJLV



2 driver classes in the latest MySQL JDBC drive... | Community







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1g52fxl

via LifeLong Community

Adding a MySQL datasource to JBoss AS 7 | zorq http://ift.tt/1g52fgS...

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



Adding a MySQL datasource to JBoss AS 7 | zorq

http://ift.tt/1sbgJvD



Adding a MySQL datasource to JBoss AS 7 | zorq







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1sbgLDH

via LifeLong Community

Differences between XA and Non XA Data sources An XA transaction, in the most general terms, is a "global...

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



Differences between XA and Non XA Data sources

An XA transaction, in the most general terms, is a "global transaction" that may span multiple resources. A non-XA transaction always involves just one resource.

An XA transaction involves a coordinating transaction manager, with one or more databases (or other resources, like JMS) all involved in a single global transaction. Non-XA transactions have no transaction coordinator, and a single resource is doing all its transaction work itself (this is sometimes called local transactions). http://ift.tt/1iy9kFs

http://ift.tt/1saWtKD



Differences between XA and Non XA Data sources







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iy9htt

via LifeLong Community

JBoss AS 7 introduction - jboss as 7 - JBoss application server tutorials http://ift.tt/1iy9eO7...

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



JBoss AS 7 introduction - jboss as 7 - JBoss application server tutorials

http://ift.tt/1iy9eOb



JBoss AS 7 introduction - jboss as 7 - JBoss application server tutorials







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1saWspY

via LifeLong Community

Steve Hardie » Powershell: Delete File if Exists Powershell script to delete a file if it already exists...

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



Steve Hardie » Powershell: Delete File if Exists



Powershell script to delete a file if it already exists:

If (Test-Path $strFileName){

Remove-Item $strFileName

}http://ift.tt/1saWs9p

http://ift.tt/1iy9gWr



Steve Hardie » Powershell: Delete File if Exists







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1saWs9r

via LifeLong Community

Why Get-Content Ain’t Yer Friend | PowerShell.org $file = New-Object System.IO.StreamReader -Arg "test.txt...

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



Why Get-Content Ain’t Yer Friend | PowerShell.org

$file = New-Object System.IO.StreamReader -Arg "test.txt"

while ($line = $file.ReadLine()) {

# $line has your line

}

$file.close()http://ift.tt/1saWqOL

http://ift.tt/1iy9egZ



Why Get-Content Ain’t Yer Friend | PowerShell.org







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1saWrSS

via LifeLong Community

jboss7.x - I want to change port no in jboss-7? - Stack Overflow The file is jboss/standalone/configuration...

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



jboss7.x - I want to change port no in jboss-7? - Stack Overflow

The file is jboss/standalone/configuration/standalone.xml. Find <socket-binding-group> and <socket-binding> there.



When starting use

- for linux

./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=1000 &

- for windows

standalone.bat -Djboss.socket.binding.port-offset=1000



Read full article from http://ift.tt/1kSUgAC

http://ift.tt/1qmMh68



Hi every one i am using jboss-7 i want to change port no 8080 to 7001 but i don't no which file we have to change. Thanks vivek







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1kSUiIG

via LifeLong Community

Improve your life Through Science and Art: JPA: Thread-safety when injecting EntityManager One way to...

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



Improve your life Through Science and Art: JPA: Thread-safety when injecting EntityManager

One way to fix this is to inject EntityManagerFactory instead. EntityManagerFactory is guaranteed to be thread-safe. For example:

? (Link->http://ift.tt/1osMiEr) 123456789101112public class EMTestServlet extends HttpServlet { //This field injection is thread-safe @PersistenceUnit private EntityManagerFactory emf; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { EntityManager em = emf.createEntityManager(); //work with em }}http://ift.tt/1osMiEr

http://ift.tt/QkPBOh



Improve your life Through Science and Art: JPA: Thread-safety when injecting EntityManager







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1ivit1s

via LifeLong Community

Spring 3 MVC and JSON example http://ift.tt/1nuuaXj...

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



Spring 3 MVC and JSON example

http://ift.tt/1oczjWo



Spring 3 MVC and JSON example







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oczlxw

via LifeLong Community

How to deploy pre compiled java applications (WAR and EAR files) onto your OpenShift gear using the ...

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



How to deploy pre compiled java applications (WAR and EAR files) onto your OpenShift gear using the java cartridges | OpenShift by Red Hat

http://ift.tt/1oczlh5



How to deploy pre compiled java applications (WAR and EAR files) onto your OpenShift gear using the java cartridges | OpenShift by Red Hat







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1oczjG6

via LifeLong Community

openshift rhc setup using multiple accounts - Stack Overflow rhc command line tools come with the global...

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



openshift rhc setup using multiple accounts - Stack Overflow



rhc command line tools come with the global option "-l, --rhlogin LOGIN". You have two options:

1) Use -l flag with every command to specify the login name OR

rhc app create <appname> <cartridge> [-l username1/username2]

2) Run "rhc setup -l LOGIN" between the sessions. Once done managing apps from one account you can end the session for it by running "rhc account logout".

rhc setup -l username1

rhc app create <appname> <cartridge>

rhc account logout

rhc setup -l username2

When you can "rhc setup" command, the username information gets stored in .openshift/express.conf file; hence the need to run it again when you want to switch the account.http://ift.tt/1l4pbf5

http://ift.tt/Rt3bQY



openshift rhc setup using multiple accounts - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l4pbf7

via LifeLong Community

openshift/spring-eap6-quickstart This project is setup to allow you to create a compliant Spring 3.1...

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



openshift/spring-eap6-quickstart



This project is setup to allow you to create a compliant Spring 3.1 application using Spring MVC, JPA 2.0 and Bean Validation 1.0. It includes a persistence unit and some sample persistence and transaction code to introduce you to database access in enterprise Java.

(Link->http://ift.tt/1l4pbvE) http://ift.tt/Rt3bQJ

http://ift.tt/1l4paYv



openshift/spring-eap6-quickstart







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/Rt3bQN

via LifeLong Community

My Wiki: Deploy a Java EE application on OpenShift Express (with AS7 support) http://jaitechwriteups...

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



My Wiki: Deploy a Java EE application on OpenShift Express (with AS7 support)

http://ift.tt/Rt38Vc



My Wiki: Deploy a Java EE application on OpenShift Express (with AS7 support)







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1l4paHX

via LifeLong Community

html - How do I scroll to an element using JavaScript? - Stack Overflow scrollIntoView works well: ...

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



html - How do I scroll to an element using JavaScript? - Stack Overflow



scrollIntoView works well:

element = document.getElementById("divFirst")

alignWithTop = true;

element.scrollIntoView(alignWithTop);

full reference in the MDN docs:

http://ift.tt/1kQcH9d (Link->http://ift.tt/1kQcFy8) http://ift.tt/1kQcFya

http://ift.tt/1qjLqTK



html - How do I scroll to an element using JavaScript? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1kQcH9h

via LifeLong Community

java - Easy way to change Iterable into Collection - Stack Overflow With Sets.newHashSet(Iterable) (...

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



java - Easy way to change Iterable into Collection - Stack Overflow

With Sets.newHashSet(Iterable) (Link->http://ift.tt/1kQcGSL) , among other similar methods. This will of course copy all the elements in to memory. If that isn't acceptable, I think your code that works with these ought to take Iterable rather than Collection. Guava also happens to provide convenient methods for doing things you can do on a Collection using an Iterable (such as Iterables.isEmpty(Iterable) or Iterables.contains(Iterable, Object)), but the performance implications are more obviouhttp://http://ift.tt/1qjLp27

http://ift.tt/1kQcH8Z



java - Easy way to change Iterable into Collection - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qjLqD4

via LifeLong Community

Parsing, Modifying, and outputting XML Documents with Java http://ift.tt/1qjLqmu...

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



Parsing, Modifying, and outputting XML Documents with Java

http://ift.tt/1kQcFhB



Parsing, Modifying, and outputting XML Documents with Java







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1qjLqmA

via LifeLong Community

html - Prevent copying text in web-page - Stack Overflow -webkit-user-select: none; -khtml-user-select...

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



html - Prevent copying text in web-page - Stack Overflow

-webkit-user-select: none;

-khtml-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

-o-user-select: none;

user-select: none;http://ift.tt/1nseeos

http://ift.tt/SE9UbC



html - Prevent copying text in web-page - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1nsecgl

via LifeLong Community
Please Visit: http://ift.tt/1ajReyV



Attach Library Sources

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-eclipse-plugin</artifactId>

<version>2.9</version>

<configuration>

<downloadSources>true</downloadSources>

<downloadJavadocs>true</downloadJavadocs>

</configuration>

</plugin>http://ift.tt/17RDdet

http://ift.tt/1nsebZE



Attach Library Sources







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1nsebZI

via LifeLong Community

4 Different Styles For the Popular Posts Widget | Helplogger How to add the CSS to create the style ...

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



4 Different Styles For the Popular Posts Widget | Helplogger

How to add the CSS to create the style of the Popular Posts widget

1. Choose a style, then copy the CSS that appears below the image that shows the style.

2. Select the "Template" tab, then click on Customize > Advanced > Add CSS and then paste the CSS style that you like the most.http://ift.tt/SE9Vfu

http://ift.tt/1nsedRp



4 Different Styles For the Popular Posts Widget | Helplogger







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/SE9TUY

via LifeLong Community

Disk Quota Exceeded... Now What? | OpenShift by Red Hat KB-E1089 Issue: So you just finished writing...

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



Disk Quota Exceeded... Now What? | OpenShift by Red Hat

KB-E1089



Issue:







So you just finished writing your latest bit of code and it works on your local system and now you're ready to deploy. You add your files, write a good commit message, type the notorious "git push" and of course, hit enter with a little extra oomph. Your excited, and you're watching the deployment happen, but then all of the sudden you're greeted with:

remote: error: unable to create temporary file: Disk quota exceeded

What? Disk quota exceeded - How did that happen?http://ift.tt/1jCUfCE

http://ift.tt/1s5Gbma



Disk Quota Exceeded... Now What? | OpenShift by Red Hat







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1jCUfCG

via LifeLong Community

Linux: TMOUT To Automatically Log Users Out Linux bash shell allows you to define the TMOUT environment...

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



Linux: TMOUT To Automatically Log Users Out



Linux bash shell allows you to define the TMOUT environment variable. Set TMOUT to automatically log users out after a period of inactivity. The value is defined in seconds. For example,



export TMOUT=120

To disable auto-logout, just set the TMOUT to zero or unset it as follows:

$ export TMOUT=0

or

$ unset TMOUT



Read full article from: http://ift.tt/1s5G8XA

http://ift.tt/1jCUi1A



Linux: TMOUT To Automatically Log Users Out







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1jCUihO

via LifeLong Community

Day 28: OpenShift Eclipse Integration for Java Developers | Openshift Blog Today for my 30 days challenge...

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



Day 28: OpenShift Eclipse Integration for Java Developers | Openshift Blog



Today for my 30 days challenge (Link->http://ift.tt/1b6hAXa) I decided to write about OpenShift Eclipse integration. The application will run on OpenShift, and from the onset we will be using the OpenShift Eclipse plugin to develop and deploy the application. We will be using Eclipse Kepler for most of the series, please download Eclipse Kepler before moving ahead. Lets gets started!



Read full article from: http://ift.tt/1jCMtp9

http://ift.tt/1j5fTLj



Day 28: OpenShift Eclipse Integration for Java Developers | Openshift Blog







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1uDoZZ8

via LifeLong Community

Activate extension via short cut key - Stack Overflow UPDATE (5/24/2013): You can use the new (Link...

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



Activate extension via short cut key - Stack Overflow



UPDATE (5/24/2013): You can use the new (Link->http://ift.tt/1uDoZII) API, which provides built-in framework support for keyboard commands.

Original answer follows:

Step 1: Use a content script (Link->http://ift.tt/1j5fTuJ) to bind a keypress listener to every page.

// in the content script, listen for Crtl+Shift+E (upper or lowercase)

document.documentElement.addEventListener("keypress", function(event) {

if((e.keyCode == 69 || e.keyCode == 101) && e.ctrlKey && e.shiftKey) {

// do something (step 2, below)

}

}, true);

Step 2: For action outside of the content script, use message passing (Link->http://ift.tt/1j5fVTs) to notify the background page that the shortcut key has been pressed and it should perform some action.

Step 3: The background page does some action. It's currently not possible (and will likely desktop notification (Link->http://ift.tt/1uDoZIM) , open a new tab, or do a lot of other things.http://ift.tt/1j5fVTw

http://ift.tt/1uDp13f



Activate extension via short cut key - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1j5fTuR

via LifeLong Community

version number - How can I tell which Google Chrome channel I'm running? - Super User Try chrome://...

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



version number - How can I tell which Google Chrome channel I'm running? - Super User



Try chrome://version/

http://ift.tt/1mDTA3i

http://ift.tt/1o89yqo



version number - How can I tell which Google Chrome channel I'm running? - Super User







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mDTA3l

via LifeLong Community

keyboard events - Detecting arrow key presses in JavaScript - Stack Overflow document.onkeydown = function...

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



keyboard events - Detecting arrow key presses in JavaScript - Stack Overflow



document.onkeydown = function() {

switch (window.event.keyCode) {

case 37:

alert('left');

break;

case 38:

alert('up');

break;

case 39:

alert('right');

break;

case 40:

alert('down');

break;

}

};



http://ift.tt/1o89zui

http://ift.tt/1o89zum



keyboard events - Detecting arrow key presses in JavaScript - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mDTCbq

via LifeLong Community

Java By Sailendra: How to iterate Properties Files in Java? 1. Properties props = System.getProperties...

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



Java By Sailendra: How to iterate Properties Files in Java?

1. Properties props = System.getProperties();

for (String key : props .stringPropertyNames())

{

System.out.println(key + " = " + props .getProperty(key));

}

2. Properties props = System.getProperties();

Enumeration e = props.propertyNames();

while (e.hasMoreElements())

{

String key = (String) e.nextElement();

System.out.println(key + " = " + props.getProperty(key));

}http://ift.tt/1npdVuq

http://ift.tt/1mDbZBA



Java By Sailendra: How to iterate Properties Files in Java?







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1npdVuu

via LifeLong Community

js-uri - A JavaScript implementation of an URI object. - Google Project Hosting URI objects are handy...

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



js-uri - A JavaScript implementation of an URI object. - Google Project Hosting



URI objects are handy things for manipulating URLs. They let you parse and resolve URIs quickly and easily. e.g.

var some_uri = new URI("http://ift.tt/1fPSS4h");

alert(some_uri.authority); // www.example.com

alert(some_uri); // http://ift.tt/1fPSS4h

var blah = new URI("blah");

var blah_full = blah.resolve(some_uri);

alert(blah_full); // http://ift.tt/1oqN6Ge

Read full article from: http://ift.tt/1fPSUcl

http://ift.tt/1kCENWW



js-uri - A JavaScript implementation of an URI object. - Google Project Hosting







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1fPSUcm

via LifeLong Community

javascript - Remove querystring from URL - Stack Overflow function stripQueryStringAndHashFromPath(url...

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



javascript - Remove querystring from URL - Stack Overflow

function stripQueryStringAndHashFromPath(url) {

return url.split("?")[0].split("#")[0];

}

Read full article from: http://ift.tt/1in2QZZ

http://ift.tt/1kCENWW



javascript - Remove querystring from URL - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/RrEW5c

via LifeLong Community

yeoman/generator-chromeapp (Link->#getting-started) Getting Started First make a new directory, and ...

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



yeoman/generator-chromeapp

(Link->#getting-started) Getting Started

First make a new directory, and cd into it: mkdir my-new-chromeapp && cd $_

Install the generator: npm install -g generator-chromeapp

Run: yo chromeapp

Read full article from: http://ift.tt/RrEXWJ

http://ift.tt/1kCENWW



yeoman/generator-chromeapp







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1in2QZU

via LifeLong Community

How do I troubleshoot application issues using the logs? | OpenShift by Red Hat http://ift.tt/11iDe6x...

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



How do I troubleshoot application issues using the logs? | OpenShift by Red Hat

http://ift.tt/1kVvFNl



How do I troubleshoot application issues using the logs? | OpenShift by Red Hat







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mAPrkV

via LifeLong Community

Reshared post from Cristiano Ronaldo - Ronaldo7.net:

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






Original Post from Cristiano Ronaldo - Ronaldo7.net:


«It is my conviction that there are no limits to learning and improving. It can never stop, no matter what our age is.»

— Cristiano Ronaldo



www.RONALDO7.net






ronaldo-muscles.jpg.jpg







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1ioAxGn

via LifeLong Community

Debugging a Maven Build with mvnDebug > mvnDebug clean install Preparing to Execute Maven in Debug ...

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



Debugging a Maven Build with mvnDebug



> mvnDebug clean install

Preparing to Execute Maven in Debug Mode

Listening for transport dt_socket at address: 8000

This ends up being the equivalent of invoking java with the proper debugging arguments:

java ... -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y



OR:

MAVEN_OPTS = -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y



Read full article from: http://ift.tt/1ioAwlL

http://ift.tt/1kCENWW



Debugging a Maven Build with mvnDebug







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1ioAwlM

via LifeLong Community
Please Visit: http://ift.tt/1ajReyV



Run Jetty in the Maven life-cycle

<groupId>org.mortbay.jetty</groupId>

<artifactId>jetty-maven-plugin</artifactId>

<version>8.1.9.v20130131</version>

<configuration>

<stopKey>STOP</stopKey>

<stopPort>9999</stopPort>

<scanIntervalSeconds>5</scanIntervalSeconds>

</configuration>

</plugin>

Read full article from: http://ift.tt/1io2zS4

http://ift.tt/1kCENWW



Run Jetty in the Maven life-cycle







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1io2z4E

via LifeLong Community

Android Studio Tips : Quick Getter and Setter generator | IT DEV BLOG Using Alt+Insert (Code | Generate...

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



Android Studio Tips : Quick Getter and Setter generator | IT DEV BLOG



Using Alt+Insert (Code | Generate) in the editor, you may easily generate getter and setter methods for any fields of your class.

(Link->http://ift.tt/1iXmesc)

Read full article from: http://ift.tt/1o1fj9e

http://ift.tt/1kCENWW



Android Studio Tips : Quick Getter and Setter generator | IT DEV BLOG







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iXmesg

via LifeLong Community

unicode - Android WebView UTF-8 not showing - Stack Overflow Use: mWebView.loadDataWithBaseURL(null...

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



unicode - Android WebView UTF-8 not showing - Stack Overflow



Use:

mWebView.loadDataWithBaseURL(null, "將賦予他們的傳教工作標示為", "text/html", "utf-8", null);

Read full article from: http://ift.tt/1iXmdoa

http://ift.tt/1kCENWW



unicode - Android WebView UTF-8 not showing - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iXmdoc

via LifeLong Community

Android - detect whether there is an Internet connection available - Stack Overflow The getActiveNetworkInfo...

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



Android - detect whether there is an Internet connection available - Stack Overflow



The getActiveNetworkInfo() method of ConnectivityManager returns a NetworkInfo instance representing the first connected network interface it can find or null if none if the interfaces are connected. Checking if this method returns null should be enough to tell if an internet connection is available.

private boolean isNetworkAvailable() {

ConnectivityManager connectivityManager

= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();

return activeNetworkInfo != null && activeNetworkInfo.isConnected();

}

You will also need:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

in your android manifest.

Read full article from: http://ift.tt/1fOaLRm

http://ift.tt/1kCENWW



Android - detect whether there is an Internet connection available - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1fOaOMT

via LifeLong Community

gradle - Duplicate files copied (Android Studio 0.4.0) - Stack Overflow android { packagingOptions {...

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



gradle - Duplicate files copied (Android Studio 0.4.0) - Stack Overflow

android {

packagingOptions {

exclude 'META-INF/DEPENDENCIES'

exclude 'META-INF/NOTICE'

exclude 'META-INF/LICENSE'

exclude 'META-INF/LICENSE.txt'

exclude 'META-INF/NOTICE.txt'

}

// ...

}

Read full article from: http://ift.tt/1agYewV

http://ift.tt/1kCENWW



gradle - Duplicate files copied (Android Studio 0.4.0) - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1iRzsfY

via LifeLong Community

how to programmatically hide a button in android sdk - Stack Overflow playButton.setVisibility(View.INVISIBLE...

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



how to programmatically hide a button in android sdk - Stack Overflow



playButton.setVisibility(View.INVISIBLE);

or -

playButton.setVisibility(View.GONE);

show it again with -

playButton.setVisibility(View.VISIBLE);

Read full article from: http://ift.tt/1iW4UUy

http://ift.tt/1kCENWW



how to programmatically hide a button in android sdk - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1j4bihs

via LifeLong Community

ide - What is the shortcut to Auto import all in Android Studio? - Stack Overflow You can go to File...

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



ide - What is the shortcut to Auto import all in Android Studio? - Stack Overflow



You can go to File -> Settings -> Editor -> Auto Import -> Java and make the following changes:

change Insert imports on paste value to All

markAdd unambigious imports on the fly option as checked

(Or, on a Mac, do the same thing in Preferences)

After this all unmabigious imports will be added automaticaly.

Read full article from: http://ift.tt/GJStQO

http://ift.tt/1kCENWW



ide - What is the shortcut to Auto import all in Android Studio? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1j4bgWR

via LifeLong Community

Android Intents with Chrome - Google Chrome

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



Android Intents with Chrome - Google Chrome

<a href="intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end"> Take a QR code </a>

Read full article from: http://ift.tt/1qeNcA5

http://ift.tt/1kCENWW



Android Intents with Chrome - Google Chrome







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1sc2qZB

via LifeLong Community

jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow This ...

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



jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow



This code should do:

try {

Intent i = new Intent("android.intent.action.MAIN");

i.setComponent(ComponentName.unflattenFromString("com.android.chrome/com.android.chrome.Main"));

i.addCategory("android.intent.category.LAUNCHER");

i.setData(Uri.parse("http://mysuperwebsite"));

startActivity(i);

}

catch(ActivityNotFoundException e) {

// Chrome is probably not installed

}





Read full article from: http://ift.tt/1mvaVjf

http://ift.tt/1kCENWW



jquery - Is there any way in Android to force open a link to open in Chrome? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1mvaVji

via LifeLong Community