Service NGINX Restart Fail

Linux, NGINX, Ubuntu, 2016-02-21 00:28:03 UTC
This problem may occur because you misspelled configuration on /etc/nginx/nginx.conf. When you type command $ sudo service nginx restart and the terminal response is fail To investigate this problem, you need to run; $ sudo nginx -t Now you now where the error is.    And to see w
Share:     

How to upload file using Ajax and Rails

Javascript, jQuery, Ruby, Ruby on Rails, 2016-02-12 10:58:00 UTC
In this case, we need a plugin    <form id="the_form" action="/page/gambars/form_upload" method="post" enctype="multipart/form-data"> <div> File<br /> <input name="gambar[gambar_name]" /> </div> <div> <button type="submi
Share:     

Load an ImageView from URL

Android, Java, 2016-02-03 02:39:58 UTC
This is the snippet for load an image to ImageView from URL package com.app.bolang.bolange;   import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppComp
Share:     

All About User in Ubuntu

Linux, Ubuntu, 2016-01-26 07:13:46 UTC
1. Add User $ sudo add user <user_name>   2. Add User to Group $ sudo usermod -a -G <ExistingGroupName> <ExistingUserName>   3. Change user password $ sudo passwd <username>   4. Deny user login via ssh Please refer to this http://develbook.com/pr
Share:     

Creating Mobile Application Using Cordova

Cordova, 2016-01-26 06:46:14 UTC
1. Create the app $ cordova create hello com.example.hello HelloWorld hello = directory com.example.hello = domain-style identifier HelloWorld = the application's display title   2. Add Platforms Platform on Mac; $ cordova platform add ios $ cordova platform add amazon-fireos $ co
Share:     

Send Notification via Email when The Application is Error

Ruby on Rails, 2016-01-17 01:15:00 UTC
Checking log and see the error message is good. But, in my opinion, the best way to know an error in the application is send the error message via email.  To implement this, you need to install exception_notification GEM from http://smartinez87.github.io/exception_notification/#email-
Share: