Recent update

https://www.processon.com

by Midi Kang

Posted on Oct 24, 2016 | Read:19

Read More

cron job in cloud9

by Midi Kang

Posted on Oct 12, 2016 | Read:28

usage: crontab [-u user] file
crontab [ -u user ] [ -i ] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)

Read More

Can't find the 'libpq-fe.h header when install pg gem on Mac

by Midi Kang

Posted on Oct 11, 2016 | Read:37

Can't find the 'libpq-fe.h header

Read More

quiet asset in rails application

by Midi Kang

Posted on Oct 11, 2016 | Read:27

1. Add gem in Gemfile
gem 'quiet_assets', group: :development

2. add config in development/prduction
config.assets.quiet = true

Read More

data type conversion in ruby

by Midi Kang

Posted on Oct 10, 2016 | Read:28

<p>to_i() Show source <br />Returns the value as an integer (Fixnum or Bignum).</p> <p>If the BigNumber is infinity or NaN, raises FloatDomainError.</p> <p>to_s(s) Show source <br />Converts the value to a string.</p> <p>The default format looks like 0.xxxxEnn.</p> <p>The optional parameter s consists of either an integer; or an optional '+' or ' ', followed by an optional number, followed by an optional 'E' or 'F'.</p> <p>If there is a '+' at the start of s, positive values ... (continued)

Read More

set local timezone on c9.io

by Midi Kang

Posted on Oct 10, 2016 | Read:28

sudo dpkg-reconfigure tzdata

Read More

How to Use a Content Provider

by Midi Kang

Posted on Oct 03, 2016 | Read:34

<p>The End Goal</p> <p>During this exercise we’re going to develop your understanding of a content provider. Right now we think of a content provider as this:</p> <p>Original 3-node diagram with Your App, Content Provider for Dictionary and Data source for User Dictionary</p> <p>In the rest of this lesson we'll dive deeper to explain all the components shown here:</p> <p>Query Example diagram with Your App passing URI to ContentResolver to Content Provider for User Dictionary ... (continued)

Read More

ContactsContract

by Midi Kang

Posted on Oct 02, 2016 | Read:34

<p> The contract between the contacts provider and applications. Contains definitions for the supported URIs and columns. These APIs supersede ContactsContract.Contacts.</p> <p>Overview <br />ContactsContract defines an extensible database of contact-related information. Contact information is stored in a three-tier data model:</p> <p>A row in the ContactsContract.Data table can store any kind of personal data, such as a phone number or email addresses. The set of data kinds tha... (continued)

Read More

simple form bootstrap example

by Midi Kang

Posted on Sep 30, 2016 | Read:32

Read More

How to choose column to display for simple_form association

by Midi Kang

Posted on Sep 30, 2016 | Read:32

Support you have driver column in table trucks, and would like to show driver on the selection, try below code:









Read More