Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
| import com.android.volley.toolbox.HurlStack; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
| * uses OkHttp as its transport. | |
| */ |
| /* The date/time conversion code is going to be moved outside the asynctask later, | |
| * so for convenience we're breaking it out into its own method now. | |
| */ | |
| private String getReadableDateString(long time){ | |
| // Because the API returns a unix timestamp (measured in seconds), | |
| // it must be converted to milliseconds in order to be converted to valid date. | |
| SimpleDateFormat shortenedDateFormat = new SimpleDateFormat("EEE MMM dd"); | |
| return shortenedDateFormat.format(time); | |
| } | |
Picking the right architecture = Picking the right battles + Managing trade-offs
| class Example extends React.Component< | |
| Props, | |
| State, | |
| Snapshot | |
| > { | |
| static getDerivedStateFromProps( | |
| nextProps: Props, | |
| prevState: State | |
| ): $Shape<State> | null { | |
| // ... |