Profile cover photo
Profile photo
Peng Xu
40 followers
40 followers
About
Peng's posts

Post has attachment
Public
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
Public
Git asks for username everytime I push
http://stackoverflow.com/questions/11403407/git-asks-for-username-everytime-i-push $ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

Post has attachment
Public
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
Public
Sublime 3 - useful keyboard shortcuts
source #1: http://www.hongkiat.com/blog/sublime-text-tips/ source #2: https://www.cheatography.com/tdeyle/cheat-sheets/sublime-text-3/ Ctrl + D Select a word. Ctrl + L Select a line. Ctrl + A Select the entire content within the document. Ctrl + Shift + M S...

Post has attachment

Post has attachment
Public
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
Public
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
Public
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...

Post has attachment
Public
Creating a PHP header/footer
source: http://stackoverflow.com/questions/8054638/creating-a-php-header-footer Besides just using  include()  or  include_once()  to include the header and footer, one thing I have found useful is being able to have a custom page title or custom head tags ...
Wait while more posts are being loaded