First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
Converter<ResponseBody, Error> errorConverter = | |
ServiceGenerator.retrofit.responseBodyConverter(Error.class, new Annotation[0]); | |
try { | |
Error error = errorConverter.convert(response.errorBody()); | |
if (error.getCode().equals(ERROR_STATUS)) { | |
if (!inputUsername.requestFocus()) { | |
inputUsername.requestFocus(); | |
} | |
Toast.makeText(SignUpActivty.this, getString(R.string.sign_up_username_exists), Toast.LENGTH_LONG).show(); |
public class EventHandlerService extends Service implements OnIncomingCallListener { | |
private final String TAG = EventHandlerService.class.getSimpleName(); | |
private AbtoPhone abtoPhone; | |
@Override | |
public IBinder onBind(Intent intent) { | |
return null; | |
} | |
@Override |
package com.ltroya.recipestracker.recipemain; | |
import com.ltroya.recipestracker.BaseTest; | |
import com.ltroya.recipestracker.BuildConfig; | |
import com.ltroya.recipestracker.api.RecipeSearchResponse; | |
import com.ltroya.recipestracker.api.RecipeService; | |
import com.ltroya.recipestracker.entities.Recipe; | |
import com.ltroya.recipestracker.libs.base.EventBus; | |
import com.ltroya.recipestracker.recipemain.events.RecipeMainEvent; |
[{"name":"users","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"name","type":"text","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0},{"name":"age","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c31","order":1},{"name":"email","type":"text","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":true,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c42","order":2}],"relation":[],"seeding":[]}] |
// Registro | |
@Override | |
public void onValidationSucceeded() { | |
// Toast.makeText(SignUpActivty.this, "Todas las validaciones fueron resueltas", Toast.LENGTH_SHORT).show(); | |
SignUp signUp = new SignUp( | |
inputName.getText().toString(), | |
inputJob.getText().toString(), | |
inputEmail.getText().toString(), | |
inputUsername.getText().toString(), | |
Utilities.md5(inputPassword.getText().toString()), |
#Backend Developer Test Task Introduction
With this test we want to get an idea of your proficiency in backend related web development technologies. We will give you a task specification below and you are free to use whatever PHP libraries, frameworks etc. you consider as useful to implement it together with SQL database (preferably MySQL or SQLite). You shall provide us with a hosted git repository of your resulting work including a readme file to describe the required steps to deploy it locally.
Implement a REST API that shall be used internally, so no authentication is needed. Format shall be JSON. No frontend or graphical interface is needed.
## Dependencies ## | |
sudo apt-get install icedtea-8-plugin openjdk-8-jre | |
## INSTALL Source:: http://tutorialforlinux.com/2015/06/04/how-to-quickstart-with-webstorm-ide-on-ubuntu-15-04-vivid-32-64bit-gnu-linux/ ## | |
tar xvzf ~/Downloads/WebStorm*.tar.gz -C /tmp/ | |
sudo chown -R root:root /tmp/WebStorm* | |
sudo mv /tmp/WebStorm* /opt/WebStorm | |
sudo ln -s /opt/WebStorm/bin/webstorm.sh /usr/local/bin/webstorm | |
webstorm |
sudo sysctl fs.inotify.max_user_watches=524288 | |
sudo sysctl -p --system | |
// OR | |
npm install --save @ngtools/[email protected] |
## JENKINS DEPLOY ## | |
# Install composer dependencies | |
composer install | |
# Create medical-app-api directory | |
ssh root@VM_IP_1 "mkdir -p ~/nginx/app" | |
ssh root@VM_IP_2 "mkdir -p ~/nginx/app" | |
# Avoid some issues when copying .git folder |