Open Terminal
. Type javac -version
and check your current JDK version. If you seem to have javac 1.7.*
JDK version, you can skip this section.
- Open
Termianl
. - Type
sudo apt-get install openjdk-7-jdk
.
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder] | |
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder] |
server { | |
listen 80 default_server; | |
server_name example.com www.example.com; | |
access_log /srv/www/example.com/logs/access.log; | |
error_log /srv/www/example.com/logs/error.log; | |
root /srv/www/example.com/public; | |
index index.php index.html; |
Open Terminal
. Type javac -version
and check your current JDK version. If you seem to have javac 1.7.*
JDK version, you can skip this section.
Termianl
.sudo apt-get install openjdk-7-jdk
.Jenkins Best Practices | |
https://en.wikipedia.org/wiki/Continuous_integration<- Read this! | |
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Best+Practices | |
http://www.slideshare.net/andrewbayer/7-habits-of-highly-effective-jenkins-users | |
Set up version control of job configurations | |
Keep jobs simple! Don't put a ton of bash in each job. If a job needs to do something complex, put it in a script in GitHub and check it out as needed. | |
Use templated builders to simplify common tasks | |
Keep all scripts in version control - avoid running scripts that live on the Jenkins server filesystem | |
Don't install unnecessary plugins - plugins are often written by third parties and can interact with each other in strange ways | |
Use LDAP authentication if possible for traceability - avoid anonymous access |
The method overridePendingTransition() should put after called startActivity[ForResult]() for enter. And then put after finish() to exit. If we put this in onCreate(), they may be a chance to mistake. | |
When start: | |
startActivityForResult(intent, ...); | |
overridePendingTransition(R.animator.anim_slide_left_to_right_enter, R.animator.anim_slide_left_to_right_leave); | |
When exit: | |
finish(); | |
overridePendingTransition(R.animator.anim_slide_right_to_left_enter, R.animator.anim_slide_right_to_left_leave); |
public static Observable<List<String>> paginatedThings(final Observable<Void> onNextObservable) { | |
return Observable.create(new Observable.OnSubscribe<List<String>>() { | |
@Override | |
public void call(final Subscriber<? super List<String>> subscriber) { | |
onNextObservable.subscribe(new Observer<Void>() { | |
int latestPage = -1; | |
@Override | |
public void onCompleted() { | |
subscriber.onCompleted(); |
/** | |
* get unique device id, reuire permission READ_PHONE_STATE | |
* | |
* @param context | |
* @return unique id string | |
*/ | |
public static String getDeviceId(Context context) { | |
String deviceID = null; | |
// TODO: check from pref if null -> generate |
[ | |
{ | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
{ | |
"name": "swichers/passthru_with_errors", | |
"description": "An enhanced passthru() command that includes error capturing.", | |
"license": "Apache-2.0", | |
"authors": [ { "name": "Steven Wichers", "role": "Developer" } ], | |
"require": { | |
"php": ">=5.3.0" | |
}, | |
"autoload": { | |
"files": ["passthru_with_errors.php"] |
<?php namespace App\Database; | |
use Config; | |
use DB; | |
class OTF { | |
/** | |
* The name of the database we're connecting to on the fly. | |
* |