Profile cover photo
Profile photo
Peng Xu
40 followers
40 followers
About
Posts

Post has attachment
System.arraycopy() vs. Arrays.copyOf() in Java
source: https://www.programcreek.com/2015/03/system-arraycopy-vs-arrays-copyof-in-java/ System.arraycopy() vs. Arrays.copyOf() in Java   If we want to copy an array, we can use either  System.arraycopy()  or  Arrays.copyOf() . In this post, I use a simple e...

Post has attachment
Android Layout.gravity vs gravity itself
Layout.gravity is about the component(e.g TextView) with the device gravity is the stuff(e.g. text) with that component

Post has attachment

Post has attachment
Java Stack and Heap
the object(String greeting) stays at Stack and the real value(i.e "Hello world") stay at Heap

Post has attachment

Post has attachment

Post has attachment
Spring boot Common application properties
http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT co...

Post has attachment
how to unzip or copy file to multiple folders.
echo ~/targefolder | xargs -n 1 unzip -o /tmp/a.zip -d        

Post has attachment

Post has attachment
PHP - database configuration phpfile
Source: http://stackoverflow.com/questions/14952853/how-to-secure-database-configuration-file-in-project You can try to put your database credentials in separate file with proper UNIX permissions set, for example 644, and then include this file on top of yo...
Wait while more posts are being loaded