(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| function contentData(){ // datatables processing | |
| /* Array of database columns which should be read and sent back to DataTables. Use a space where | |
| * you want to insert a non-database field (for example a counter or static image) | |
| */ | |
| $aColumns = array("'no'","data_tabel.id_konten","data_tabel.nama_kat","data_tabel.nama_konten","data_tabel.status_posting","'option'" ); | |
| /* Indexed column (used for fast and accurate table cardinality) */ | |
| $sIndexColumn = "data_tabel.id_konten"; | |
| /* DB table to use */ | |
| $aTable = array( "(SELECT a.id_konten, a.nama_konten, b.nama_kat, a.status_posting FROM tb_konten a |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| public class MyApp extends Application { | |
| @Override | |
| public void onCreate() { | |
| TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf | |
| } | |
| } |
| <?php | |
| $order_id = 10; | |
| // Create the entity field query object. | |
| $efq = new EntityFieldQuery(); | |
| // Add the required filters to the query and execute it. | |
| $result = $efq->entityCondition('entity_type', 'commerce_order') | |
| ->propertyCondition('order_id', $order_id, '>=') | |
| ->propertyCondition('status', 'pending') |
| type Whatever struct { | |
| someField int | |
| } | |
| func (w Whatever) MarshalJSON() ([]byte, error) { | |
| return json.Marshal(struct{ | |
| SomeField int `json:"some_field"` | |
| }{ | |
| SomeField: w.someField, | |
| }) |
#####Copied from askubuntu's Enabling mic mute button and light on Lenovo Thinkpad
There are two possible "hardware" indicators (to show that mute is on or off):
The Power button light (green) will blink to show when mute is on The Mic mute button light (orange) will be on or off to show mute status (just like in Windows)
Solution 2 requires a patched thinkpad_acpi kernel module, and is only recommended for advanced users who know what they are doing. This is because the patch is not included by the thinkpad_acpi developers by default, (See this discussion for more details).
###Common Steps
| <?php | |
| /** | |
| * This function computes a hash of an integer. This can be used to not expose values to a customer, such as | |
| * not giving them the id value for passing them to URLs. This algorithm is a bidirectional encryption (Feistel cipher) that maps | |
| * the integer space onto itself. | |
| * | |
| * @link http://wiki.postgresql.org/wiki/Pseudo_encrypt Algorithm used | |
| * @link http://en.wikipedia.org/wiki/Feistel_cipher Wikipedia page about Feistel ciphers | |
| * @param int $value | |
| * @return int |