<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Digital Banking Labs - Medium]]></title>
        <description><![CDATA[DBL is a part of MobME Wireless Solution ltd which provides end-to-end support to banking and financial institutions with products and services to enhance customer experience with path-breaking inovations. - Medium]]></description>
        <link>https://medium.com/digital-banking-labs?source=rss----88b1a9766183---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Digital Banking Labs - Medium</title>
            <link>https://medium.com/digital-banking-labs?source=rss----88b1a9766183---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:39:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/digital-banking-labs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“How bitcoin works” for dummies]]></title>
            <link>https://medium.com/digital-banking-labs/how-bitcoin-works-for-dummies-8cb66c02786d?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/8cb66c02786d</guid>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Kevin Christie]]></dc:creator>
            <pubDate>Tue, 18 Jul 2017 06:13:58 GMT</pubDate>
            <atom:updated>2017-07-18T06:13:57.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7W6kLR9NNY15TsDenLYaHg.jpeg" /><figcaption>Courtesy: fortune.com</figcaption></figure><h3>First, some hindsight:</h3><p>I stumbled into the world of blockchains and cryptocurrency a few years back. The tech surrounding cryptocurrency was way over my head back then and quite honestly, I couldn’t care less. I was in my freshman year, humbled by the world of Computer Science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*zAW36s9heeIoT8fQycPH6g.jpeg" /></figure><p>Almost a decade later, I’d like to think my knowledge of tech has grown leaps and bounds (not trying to be a pretentious geek here :P) and so has my understanding of blockchains and cryptocurrency. And so, I’m going to explain the concept of Cryptocurrency, Bitcoins to be more specific, as simple as I can put it through.</p><p>To understand the basics, let’s first see how Trading works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*RdnmRmZT2u96KDc0MpnWow.gif" /></figure><p>In simple words, trading is nothing but the activity of buying and selling of goods. In order to facilitate Trading, all parties must possess an interchangeable token which holds a predetermined value. This is broadly known as “Currency”.</p><h3>So then, what is “Cryptocurrency”?</h3><p>A quick google search would show us that cryptocurrency is nothing but a form of “digital” currency in which encryption techniques are employed to regulate the generation of currency units and verify the transfer of funds, operating independently of a central bank.</p><p>Now, that last part is very important!</p><p>Yes, there is no bank or regulatory authority that controls the creation and transfer of cryptocurrency. The exchange is done between 2 anonymous people without the help of any bank or intermediary to help them transact.</p><p>Let me break it up for you;</p><p>Using our understanding of trading and currency, let’s revisit a board game that we all have played atleast once in our childhood: MONOPOLY (For those of you poor souls who haven’t played the game, MONOPOLY is a board game where players use totems to go around a circuit on the board, trading assets such as Hotels and Houses. The goal of the game is to earn as much money as you can!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQy1ZD_JM70YmhDflxDs5Q.jpeg" /><figcaption>Courtesy: amazon.com</figcaption></figure><p>Ok, so let’s imagine we’re playing monopoly.</p><p>Each player starts off with a certain amount of money. Now, let’s get creative and redesign the game a little bit!</p><p>To trade effectively, the players need some form of currency that allows them to buy/sell hotels and houses as the game progresses. Now, with this currency, players would want to trade in any denomination as getting the exact change can be a hassle. Also, we need this currency to be immune to counterfeiting. So, we’ll avoid paper bills. And instead, we’ll give the players “balances” and record them in a notebook. We’ll refer to this list of balances as our ledger.</p><p>This ledger is LAW and one’s balance is whatever the ledger says. Period.</p><p>Now, here’s the catch; if the game has 10 or 20 players, who holds the ledger? If only certain individuals hold the ledger, they can increase their balances and cheat. So, the simplest solution here, is to give everyone an OPEN notebook with a copy of the ledger. When the balance of each player is updated, the changes need to be propagated to all the other players as well.</p><p>So, in essence, every time a transaction happens, for the sake of transparency, the ledgers need to be synced and updated.</p><p>But, let’s be practical here. Relaying these changes to a larger set of players can be time consuming and impractical. Furthermore, if we wanted to increase the number of players substantially, this would further increase the complexity of the game. So, how do we effectively synchronize all of these paper ledgers?</p><p>Well, we replace these paper ledgers with digital records and employ some fancy software that takes care of the ledger syncing for us. We secure every player’s monetary assets with their individual signatures so that nobody can steal money or forge transactions. Moreover, we’ll have the balances listed next to account numbers instead of actual names so that players can trade anonymously.</p><p>With these modifications, our redesigned version of MONOPOLY can now allow millions of users to trade and transact.</p><p>With such a system, nobody owns or controls it. Transaction between two individuals half a world apart can now take place without the need for any middle men (hence no fees are required). It just as simple as in-person cash transactions where only the payer and the payee are involved.</p><p>This analogy I’ve just explained is how Bitcoins work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*l0Umad-kZybiMbQuJ4r99g.gif" /><figcaption>Courtesy: defuse.ca</figcaption></figure><p>Remember that “Fancy Software” that we glossed over? That’s actually a big part of of what makes bitcoin so innovative and is made possible by a process called Bitcoin Mining (This is a whole other blog topic in itself — coming soon!)</p><p>Now that you have some working understanding of how bitcoins work, I thought we could look at some of the various types of cryptocurrencies in existence. A few examples are: Erethreum, Ripple, Litecoin, Dogecoin.</p><p>Although bitcoin is the most popular and hyped source of cryptocurrency, Erethreum is gaining widespread popularity as well.</p><p>Some Cool Things about Bitcoins:<br>1. Being a type of cryptocurrency, Bitcoins can be programed to be used only for a specific purpose. For example, you can program a certain portion of your bitcoin to be used specifically for purchasing milk and nothing else. Imagine a smart fridge which places an order for fresh milk. In the time and age of delivery drones, your smart fridge would pay the drone only the bitcoins that have been pre-programmed specifically for the purchase of milk.</p><p>2. A single bitcoin can be split into 10 million pieces. And get this! Each individual piece has a unique id and can be programmed for a specific purpose.</p><p>3. Bitcoins were first invented in 2008 by a developer (or group of developers) known only by the pseudonym of Satoshi Nakamoto. Till date, although there have been many speculations, no one knows his (or their) true identity.</p><p>4. At the time of writing, a single Bitcoin today is worth a whopping $2,327. To put things into perspective, it was worth a mere $0.07 in July, 2010.</p><p>Now, I’m sure your mind is bustling with questions; How’s the value of bitcoins regulated? How does one earn a bitcoin? How’s a bitcoin different from other cryptocurrencies? What is a blockchain? What are the downsides of cryptocurrency? Is it legal?</p><p>I will answer these questions and many more in my next blog. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cb66c02786d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/how-bitcoin-works-for-dummies-8cb66c02786d">“How bitcoin works” for dummies</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FLUX]]></title>
            <link>https://medium.com/digital-banking-labs/flux-1c0077ad69f?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/1c0077ad69f</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Celia Oswin]]></dc:creator>
            <pubDate>Tue, 11 Jul 2017 06:17:28 GMT</pubDate>
            <atom:updated>2017-07-11T06:17:27.979Z</atom:updated>
            <content:encoded><![CDATA[<p>Flux in simple words is just a pattern for handling data in your application. Flux can be used without a lot of new code. It’s used as the application architecture that Facebook uses for building client-side web applications.</p><p>Flux is more of a pattern than a formal framework. In Flux, the data flows only in one direction and when you need to insert new data, the flow starts all over again at the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*-_8JYiquNXS3Zhc2." /></figure><ul><li><strong><em>Action</em></strong></li></ul><p>The action creator, creates the actions like all changes and interactions. The action is created when you want to change the state of the app or have the view render differently. When you know what message you want to send, then the action creator formats it for the rest of the system to understand. The action creator creates an action with a type and a payload. Once it has created the action message, the action creator passes that action off to the dispatcher.</p><ul><li><strong><em>Dispatcher</em></strong></li></ul><p>The dispatcher keeps a list of all of the stores that it needs to send actions to. When an action comes in from the action creator, it will pass the action around to different stores.The action is sent to all of the registered stores regardless of what the action type is, after the dispatcher knows all about the actions and filters out what it cares about and doesn’t.</p><ul><li><strong><em>Store</em></strong></li></ul><p>Store keeps a track of all state in the application and all of the state changing logic. Inside the store there’s usually a switch statement that looks at the action type to decide whether or not this store performs this action. If the store performs this action, it will figure out what change needs to be made based on this action and update the state. Once the store has made its changes to the state, it will emit a change event. And only then the controller view is informed about the state has changed.</p><ul><li><strong><em>Controller View and View</em></strong></li></ul><p>The controller view is like a middle manager between the store and the view. The store tells it when the state has changed. It collects the new state and then passes the updated state along to all of the views under it.</p><p>The view is like the presenter, it changes the state and render it out for the user as well as accepting user input. It isn’t aware of anything in the application, it just knows the data that’s handed to it and how to format the data into output that people understand.</p><h3><strong>SETUP</strong></h3><p>Following are the steps that needs to be checked when the application is initialized.</p><p>1. Stores let the dispatcher know that they want to be notified whenever an action comes in.</p><p>2. Then the controller views ask the stores for the latest state.</p><p>3. When the stores give the state to the controller views, they pass that state along to their child views to render.</p><h3><strong>Data Flow</strong></h3><p>1. The view tells the action creator to prepare an action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Y_VT5wvhkWX9KHqt." /></figure><p>2. The action creator formats the action and sends it off to the dispatcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*kMbRkeR9LfIapuSW." /></figure><p>3. The dispatcher sends the action off to the stores in sequence. Each store gets notified of all actions. Then the store decides whether it cares about this one or not, and changes the state accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1EFMkOx0qq9zfFQW." /></figure><p>4. Once it’s done changing state, the store lets its subscribed view controllers know.</p><p>5. Those view controllers will then ask the store to give them the updated state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*D_5-fFO9GEVNHeis." /></figure><p>6. After the store gives it the state, the view controller will tell its child views to rerender based on the new state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*R7R5Z3Z792_UlfZq." /></figure><p><strong>Sources:</strong></p><p><a href="https://code-cartoons.com/a-cartoon-guide-to-flux-6157355ab207">https://code-cartoons.com/a-cartoon-guide-to-flux-6157355ab207</a></p><p><a href="https://facebook.github.io/flux/docs/in-depth-overview.html#content">https://facebook.github.io/flux/docs/in-depth-overview.html#content</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c0077ad69f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/flux-1c0077ad69f">FLUX</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password-less authentication using cryptography in Bitcoin]]></title>
            <link>https://medium.com/digital-banking-labs/how-to-implement-password-less-authentication-using-cryptography-in-bitcoin-443785023264?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/443785023264</guid>
            <category><![CDATA[bitauth]]></category>
            <category><![CDATA[passwordless]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Mrinal Aswin]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 13:02:34 GMT</pubDate>
            <atom:updated>2017-06-07T13:02:33.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeYkcZjjdgpGmS6UBNVUrw.jpeg" /><figcaption>Authentication using cryptography in Bitcoin</figcaption></figure><p><em>“Bitcoin is a remarkable cryptographic achievement and the ability to create something that is not duplicable in the digital world has enormous value”</em></p><p><em>— </em>Eric Schmidt, Former CEO of Google</p><p>Cryptography based security implemented over <a href="https://bitcoin.org/en/">bitcoin</a> is a remarkable achievement whose application can be applied in today’s mobility driven Internet ecosystem. Here I would like to add a note on how we can use it to achieve a secure means for a password-less authentication in applications.</p><h3>What makes us use it?</h3><p>People often forget passwords, and a brute force attack over a weak passwords is quite successful. Passwords may travel over the wire in the form of plain text which leads to attacks or it needs to be secured, which often use an expensive operation.</p><p>Hence we could use the cryptographic methods of bitcoin which instead of using a shared secret, the client signs each request using a private key and the server checks to make sure the signature is valid and matches the public key. By signing each request, it makes a man in the middle attack nearly impossible. By addition of a <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> to the signed data, it can prevent replay attack. Since the private key is never revealed to the server, it does not need to be exchanged between the server and the client over a side channel like HMAC. Again, it uses <a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">elliptic curve cryptography</a>, which performs much better than RSA.</p><p>The cryptography in the bitcoin has already proved that it is rock solid and that it is already securing billions of dollars worth of bitcoin.</p><h3>How to use it?</h3><p>Here I would like to use the same cryptography model used in bitcoin using a node server with <a href="https://expressjs.com/">Express framework</a> and JavaScript for client side code. I would be using the <a href="https://github.com/bitpay/bitauth">BitAuth</a> library, which can be installed using the NPM. The client side code would generate a public key and private key pair using <a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">elliptic curve cryptography</a>, same as how bitcoin works. A public <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN (System Identification Number)</a>, is generated from the Public key generated, same as the bitcoin Address. The client adds an x-signature header, which is obtained by signing the data and the public key is included in the x-identity header, to every packet requesting the server for resources.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8beedd996d044e58fae7c25278a17ea4/href">https://medium.com/media/8beedd996d044e58fae7c25278a17ea4/href</a></iframe><p>The server side code verifies the validity of the signature and that it matches the identity using the <a href="https://github.com/bitpay/bitauth">BitAuth</a> library. It then computes the <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN</a> from the public key and checks whether the <a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">SIN</a> has access to the requested resource</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b57e40f7991ff7fc1501c95ec915ec66/href">https://medium.com/media/b57e40f7991ff7fc1501c95ec915ec66/href</a></iframe><p>The client can include a <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> to prevent replay attack and that the server would check that the <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a> is higher than the previously used <a href="https://en.bitcoin.it/wiki/Nonce">nonce</a></p><h3>Where to find it?</h3><p>You could find an example of the server and client code <a href="https://github.com/mrinalaswin/auth_bitcoin_crypto">here</a></p><p><a href="https://github.com/mrinalaswin/auth_bitcoin_crypto">mrinalaswin/auth_bitcoin_crypto</a></p><p><strong>References:</strong></p><ul><li><a href="https://en.wikipedia.org/wiki/Elliptic_curve_cryptography">Elliptic curve cryptography - Wikipedia</a></li><li><a href="https://github.com/bitpay/bitauth">bitpay/bitauth</a></li><li><a href="https://en.bitcoin.it/wiki/Identity_protocol_v1">Identity protocol v1 - Bitcoin Wiki</a></li><li><a href="https://en.bitcoin.it/wiki/Nonce">Nonce - Bitcoin Wiki</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=443785023264" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/how-to-implement-password-less-authentication-using-cryptography-in-bitcoin-443785023264">Password-less authentication using cryptography in Bitcoin</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Gitlab-CI for a Rails application]]></title>
            <link>https://medium.com/digital-banking-labs/setup-gitlab-ci-for-a-rails-application-ee38ea8c907d?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/ee38ea8c907d</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[web-app-development]]></category>
            <dc:creator><![CDATA[Tanjiro Kamado]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 10:48:26 GMT</pubDate>
            <atom:updated>2017-06-07T11:00:43.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Though Rails development appears to be a piece of cake, there are some guidelines which we need to follow to make the code look the rails way. Many developers have their own way of writing code. Some may have <strong>fat models</strong> and <strong>skinny controllers</strong>, Some may have everything in the <strong><em>lib/</em></strong> and make it independent from the application.</p><p>One way among the other to maintain code setup and quality is the CI Part. <a href="https://en.wikipedia.org/wiki/Continuous_integration"><strong>Continuous Integration</strong></a> comes handy in maintaining the code quality and also to verify the test written for your code in a proper way. It becomes more productive when we work with other developers in the same project and satisfies the need of every developer maintaining the same set of rules to complete the CI flow.</p><p>There are various continuous integration services available. Some of them are,</p><ul><li><a href="http://www.wercker.com/">Wercker</a></li><li><a href="https://travis-ci.org/">Travis CI</a></li><li><a href="https://jenkins.io/">Jenkins</a></li><li><a href="https://circleci.com/">Circle CI</a></li><li><a href="https://about.gitlab.com/features/gitlab-ci-cd/">Gitlab CI</a></li></ul><p>Let’s start with integrating <strong>Gitlab CI</strong> into a Rails Application.</p><h3>Create a sample rails application</h3><pre>$ rails new sample_ci_app<br>$ cd sample_ci_app<br>$ bundle install</pre><p>Make your application up and running</p><pre>$ rails server</pre><p>Now the application is available at <a href="http://localhost:3000/">http://localhost:3000</a></p><h3>Setup version control</h3><p>After creating the application, we should setup git in-order to maintain the code changes across various levels. Let’s start it.</p><pre>$ git init<br>$ git status<br>$ git add -A<br>$ git commit -m &quot;Initial Commit&quot;<br>$ git remote add &lt;your remote gitlab url&gt;<br>$ git push origin master</pre><h3>Adding .gitlab-ci.yml</h3><p>Now create a .gitlab-ci.yml file in the root of the application</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aaa9a2dc51c12fbefc0a570133cf65fb/href">https://medium.com/media/aaa9a2dc51c12fbefc0a570133cf65fb/href</a></iframe><p>By default the file should contain the above contents. Let’s look into each commands in the .yml file</p><ul><li>ruby -v : Displays the ruby version used by the application</li><li>gem install bundler --no-ri --no-doc : Installs bundler for packages without any documentation (as we don’t need docs while running CI)</li><li>bundle install --quiet : Installs the gems required by the application without verbose</li><li>rake db:migrate : Migrates the database</li><li>rake db:test:prepare : Prepares the test DB for running test cases</li></ul><p>So, the above file is the default file that you would have for an initial rails application.</p><h3>Add code-quality gems</h3><p>The best part of rails is that it has a huge variety of gems for each and every tasks to be performed. We can find the list of awesome gems <a href="https://github.com/markets/awesome-ruby">here</a></p><p>In our application we will adding,</p><ul><li><a href="https://github.com/bbatsov/rubocop">Rubocop</a> (Code analyzer and style guide)</li><li><a href="https://github.com/presidentbeef/brakeman">Brakeman</a> (To scan application for vulnerabilities)</li><li>RSpec (For RSpec test cases)</li></ul><p>Apart from these there are lot more integrations that can be added to the application as the complexity of the application grows by.</p><p>Open you Gemfile located at the root of the application</p><p>Add these lines to the Gemfile</p><pre>gem &#39;rubocop&#39;, require: false<br>gem &#39;brakeman&#39;, require: false<br>gem &#39;rspec-rails&#39;</pre><p>After adding these lines, install the gems for the application</p><pre>$ bundle install</pre><p>Now the required gems have been configured for the application. The next step would be to integrate it with the CI.</p><h3>Adding pipeline scripts</h3><p>After adding the required gems, we will be adding their flow in the .gitlab-ci.yml file.</p><p>Your gitlab CI file should look like this after adding the flow for these gems.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a75eed937f0df28f85f3562a9d88c58a/href">https://medium.com/media/a75eed937f0df28f85f3562a9d88c58a/href</a></iframe><p>The additional scripts will,</p><ul><li>Run RSpec tests each time you push to a specific branch</li><li>Run Brakeman scanner for the application to detect security vulnerabilities</li><li>Run Rubocop to check code style and quality.</li></ul><p>Now each time you push to a branch the build starts running and produce the results based on the work-flow provided in the .gitlab.yml file.</p><p>Build starts running…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*R38ZjsQKxUNqPPKD76S7mg.png" /><figcaption>Build Running in Gitlab</figcaption></figure><p>Your build will pass or fail based on the latest commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJZ4As61dJ5Ed_PJokC39w.png" /><figcaption>Build Status in Gitlab</figcaption></figure><h3>Adding status badge</h3><p>Add this line in your README.md file to know the status of the build based on the latest commit.</p><pre>![Build Status](&lt;project_url&gt;/badges/&lt;branch_name&gt;/build.svg)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/116/1*0GH1Q0Li2Nx4_C8Dtg0ikg.png" /><figcaption>Status Badge in README.md</figcaption></figure><p>That’s it. We have created a sample rails application and integrated a minimal gitlab CI configuration and it works :-)</p><p>Start coding the Rails way !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee38ea8c907d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/setup-gitlab-ci-for-a-rails-application-ee38ea8c907d">Setup Gitlab-CI for a Rails application</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS secure development for banking apps]]></title>
            <link>https://medium.com/digital-banking-labs/ios-secure-development-57b1f73c24d6?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/57b1f73c24d6</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Irshad Pc]]></dc:creator>
            <pubDate>Wed, 31 May 2017 10:10:45 GMT</pubDate>
            <atom:updated>2017-05-31T11:33:37.528Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is an attempt to help developers to secure their iOS applications from an attacker and covers iOS general system securities, memory safety and suggestions. Here I’m going to explain very few basic things.</p><h4>Jail-broken Test</h4><p>If you’re working on applications that deals with financial entities you must ensure that your application should never work on jail-broken devices, because these devices are more vulnerable to attacks and iOS won’t be able to protect your personal information. This makes it easier for the attackers to hook into your application and take sensitive information along with user’s personal details. There are various tools like<em> </em><a href="http://www.cycript.org/"><em>Cycript</em></a><em>, </em><a href="https://www.gnu.org/software/gdb/"><em>GDB</em></a><em>, </em><a href="https://code.google.com/archive/p/snoop-it/"><em>Snoop-it</em></a><em> </em>etc to perform runtime analysis and steal sensitive data from within your application.</p><p>Follows a very small code snippet for jail-broken test in iOS.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19e9fbdd563034643d2e110aabc3fc6d/href">https://medium.com/media/19e9fbdd563034643d2e110aabc3fc6d/href</a></iframe><p><strong>Using third party libraries</strong></p><p>When using compiled libraries from untrusted sources, always make sure it doesn’t contain any hidden surprises. Best way to do this is to go and read the source! This will of course take away some of your precious time but you get to see what’s really happening behind the scene and sometimes you get to see clean practices or good coding standards by other awesome developers which you can absorb into your coding skills.</p><p><strong>Leaking sensitive data while application pauses</strong></p><p>How many of you know that when you pause an application there is a minor chance that some or all of your sensitive data can be leaked ? When an application goes into background a screen shot of the app might get saved to an unencrypted cache on the local file system. Attackers can easily get this screen shot from the local file system which may contain sensitive information. During such cases and if you are dealing with private user data, Apple documentation recommends developers to replace the sensitive information with a blur screen or a splash screen in your <em>applicationDidEnterBackground</em> method.</p><p><em>Alternatively, you can disable </em><em>allowScreenShot.</em></p><p><strong>Handle the pasteboard securely</strong></p><p>If the pasteboard is marked as persistent it may also get saved to local storage along with potentially sensitive user data. So make sure to clear pasteboard when an application goes into background.</p><p><em>Check documentation for </em><em>UIPasteboardNameGeneral &amp; </em><em>UIPasteboardNameFind.</em></p><p><strong>Avoid SQL Injection</strong></p><p>During using persistent storage it is important to verify that your application is resistant to <a href="https://en.wikipedia.org/wiki/SQL_injection">SQL injection attacks</a>. This will also leak sensitive information from the database or at worse may even inject malicious payloads.</p><p><em>Check for calls to </em><em>sqlite3_exec() and other non-prepared SQL functions. The functions </em><em>sqlite3_prepare*() should be used instead.</em></p><p>Vulnerable code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/755df162b88203569bf39d13339b2f63/href">https://medium.com/media/755df162b88203569bf39d13339b2f63/href</a></iframe><p>A more polite way:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1ed73422ef8db4e910285e27e83516d/href">https://medium.com/media/e1ed73422ef8db4e910285e27e83516d/href</a></iframe><p><strong>Configure Application Transport Security (ATS)</strong></p><p>By default, applications linked against iOS 9 cannot create insecure HTTP connections. Review that the ATS configuration is correct and check,</p><ul><li><em>No exceptions are there in the </em><em>Info.plist.</em></li><li><em>The list of HTTPS domains in the </em><em>Info.plist are correct.</em></li></ul><p>In iOS 10, a few more options are available:</p><ul><li>For streaming media using AVFoundation</li><li>NSAllowsArbitraryLoadsInWebContent for exempting ATS in WKWebView</li></ul><p><strong>Use native TLS/SSL securely</strong></p><p>SSL should be used on all communications to prevent the attackers from reading or modifying traffic on the network.</p><ul><li><em>All APIs besides local WebViews use SSL (https scheme, no http).</em></li><li><em>There are no debug options for SSL set in your release build.</em></li></ul><p><strong>Prevent WebView UI redressing</strong></p><p>Developer must understand that the WebViews can be used for <a href="https://en.wikipedia.org/wiki/Clickjacking">UI redressing</a> attacks. For example, a full screen WebView which looks similar to your application UI might accidentally let the user input sensitive content. Such WebViews could be used by attackers to do <em>phishing</em>.</p><p>I would recommend to disable all protocols other than http and https. Whitelist any individual protocols if required.</p><p><strong>Avoid XSS in WebViews</strong></p><p>Developer must ensure the UIWebView/WKWebView is properly handling strings because attacks similar to <a href="https://www.owasp.org/index.php/Cross-site_Scripting_%28XSS%29">XSS</a> can occur. An XSS in a UIWebView can potentially leak local data, for example the address book. Also make sure that the WebView is not prone to redirection which can be utilized for <em>phishing</em>. Please refer <a href="https://developer.apple.com/library/content/documentation/Security/Conceptual/SecureCodingGuide/OtherHardeningTechniques/OtherHardeningTechniques.html#//apple_ref/doc/uid/TP40002415-CH3-SW2">here</a> on how to avoid this.</p><p><strong>Data storage practice</strong></p><p>A stolen or lost iOS device can be jail-broken or disassembled and the contents of the local file system can be read. Therefore developers need to make sure that they are encrypting any sensitive information like credentials or other private information which are persisted by your application.</p><p>The safest scenario would require flagging items as device-only, requiring Touch ID for access, and invalidated if passcode is ever removed. Most of the developers save their data in Preferences, if this is a sensitive information consider encrypting it before it is saved.</p><p><strong>More…</strong></p><p>For more information check out the <a href="http://www.apple.com/business/docs/iOS_Security_Guide.pdf">Apple iOS Security white paper</a>.</p><p>Related links :</p><ul><li><a href="https://www.owasp.org/index.php/IOS_Application_Security_Testing_Cheat_Sheet">https://www.owasp.org/index.php/IOS_Application_Security_Testing_Cheat_Sheet</a></li></ul><p>Credits : <a href="http://groebert.org/">Felix Grobert</a> , <a href="https://developer.apple.com/library/content/documentation/Security/Conceptual/SecureCodingGuide/Articles/SecurityGuidelines.html">Apple</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57b1f73c24d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/ios-secure-development-57b1f73c24d6">iOS secure development for banking apps</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power users love the command line]]></title>
            <link>https://medium.com/digital-banking-labs/power-users-love-the-command-line-e657a54c233b?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/e657a54c233b</guid>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Vibindas M]]></dc:creator>
            <pubDate>Wed, 31 May 2017 09:40:29 GMT</pubDate>
            <atom:updated>2017-05-31T09:40:29.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*8BDLsYD_zzkz4uH9TMcXag.png" /></figure><p>When you need something done quickly, efficiently, and without any software overhead, the command line is where it’s at. It was the first way humans told computers what to do, but as graphics became increasingly important, the command line, or terminal, became an insiders’ secret weapon. But with the right commands and a little bit of know-how, anyone can get things done from a text-only interface. Let’s take a look at 5 commands and tricks that make the terminal more accessible, and more powerful, on any system.</p><blockquote><strong>Force an action with</strong> sudo !!<strong> (&quot;bang bang&quot;)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mrrs5lOozKSrf3bV." /></figure><p>You already know that prefixing a command with sudo makes your system execute it with superuser privileges. But when you forget to sudo, the !! or &quot;bang bang&quot; comes to the rescue. When you&#39;ve perfectly crafted a long command that does exactly what you need, hit Enter, and d&#39;oh—you don&#39;t have sufficient access privileges—you can sudo !! to repeat the last command with superuser privileges.</p><blockquote><em>chmod</em><strong> Change Files/Folders permissions</strong></blockquote><p><em>chmod</em> changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits.</p><pre>sudo chmod -R 754 /www/store</pre><p>A combination of the numbers 754 controls which users’ access to the file will be changed: the user who owns it (7), other users in the file’s group (5), all users (4).</p><p>Each number have meaning in permission</p><pre>N   Description                      ls   binary    <br>0   No permissions at all            ---  000<br>1   Only execute                     --x  001<br>2   Only write                       -w-  010<br>3   Write and execute                -wx  011<br>4   Only read                        r--  100<br>5   Read and execute                 r-x  101<br>6   Read and write                   rw-  110<br>7   Read, write, and execute         rwx  111</pre><blockquote><strong>Commands with</strong> <em>history</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*d-zOIXPsD--6EQC3OIJBng.jpeg" /></figure><p>It will return a ranked list of your most commonly-entered commands using your command history</p><p><strong>Ctrl + R</strong> to invoke “reverse-i-search.”<br>After you type few characters to search, you can press CTRL+R again to browse through the history that matches what you typed.</p><blockquote><strong>Filter huge lists with </strong><em>grep</em></blockquote><p>Some terminal commands spit back a bit <em>too</em> much information, and that’s where grep comes in</p><p>The grep command is used to search text file for patterns. A pattern can be a word, text, numbers and more</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*aIS6Q0yHSwMXaxJT." /><figcaption><strong>Before grep</strong></figcaption></figure><p>Punch in ps aux | grep chrome, and you&#39;ll get back the specific number to kill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6-HX5NJlBtHcp2e7." /><figcaption><strong>After grep</strong></figcaption></figure><blockquote><strong>RTFM with</strong> man <strong>(and more)</strong></blockquote><p>Let’s say a program, or web site, has just asked you to run a command to unlock or enable something, but you’d like to know just a little more before jumping in. Add man before the command (as in man ssh) and you&#39;ll get manual-style pages detailing how to use the command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZl0Xa2022lh1-z1hcF2Wg.png" /></figure><blockquote><em>While these 5 commands are generic and applicable on all systems with a Unix-like terminal.</em></blockquote><p>sources:</p><ul><li>Ubuntu man</li><li><a href="http://lifehacker.com/399468/top-10-command-line-tools">Top 10 Command Line Tools</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e657a54c233b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/power-users-love-the-command-line-e657a54c233b">Power users love the command line</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remove barriers to technology]]></title>
            <link>https://medium.com/digital-banking-labs/remove-barriers-to-technology-bbeb487e33d7?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/bbeb487e33d7</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Vaidyanathan A.S]]></dc:creator>
            <pubDate>Wed, 10 May 2017 08:33:07 GMT</pubDate>
            <atom:updated>2017-05-10T08:33:06.798Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology is still a barrier to some people. I traveled some places around the world and came to know technology is developing but people are not up-to-date or they are far behind the things which are going on.</p><p>I was thinking how to make technology more people friendly. How how how this was my question. Then I choose to travel again around the world. Switching to a new is not so easy. People are somewhere addicted to the tradition they are in. So here catalyst is laziness. If the people come to know that technology is much easy faster and timing saving they will try to learn and adopt it. Time is the most important thing in our life. But how to make aware illiterate people these things and literate on this things.</p><p>Everything is ok. But still, something lack which is the cost of things we need to use technology. In developing countries, this is one of the main problems. So how to overcome all this problem. Everything ends in a question mark.</p><p>Everything becomes consistent by regular practice. So I think to create a technology hub in every center like any other entertainment exhibition where people can come and learn things by a tech guide. The exhibition contains every dominant gadgets and kinds of stuff. It should be there in every village or town and government can provide this facility. It is the one way I found useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbeb487e33d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/remove-barriers-to-technology-bbeb487e33d7">Remove barriers to technology</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open APIs for Open Market]]></title>
            <link>https://medium.com/digital-banking-labs/open-apis-for-open-market-c3fe1e84df41?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/c3fe1e84df41</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[open-source-intelligence]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Justin James]]></dc:creator>
            <pubDate>Tue, 25 Apr 2017 12:41:26 GMT</pubDate>
            <atom:updated>2017-11-13T19:21:53.827Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, the success of any industry may it be public or private rely on its underlying policy and decisions to lead the path of sustainable growth throughout its journey. With the advent of industrial revolution, scientific innovations have been the foundation for the development of Britan and leading to the development of other nations under its influence or trade. “Nothing is impossible” could be a lie in the 18th century has been rephrased as a tagline for sports company today. It’seasy to say we are growing as per our per-capita growth statistically state, but are we all growing equally as the statistics state?</p><p><strong>The answer is, NO!</strong></p><p>Even today knowledge is abstracted, and the concept of today’s education is limited to what job or work eventually we need to pursue tomorrow. The reality of innovation has taken U-turn limiting to the advancement of how things can be done faster than actually re-doing things a better way. Today the concept of free and open market is the symbol of a unified forum for innovation.</p><p>Today free and open market provides companies and organizations to explore opportunities across the globe in few clicks. Today the Internet not just acts the forum for information but also bridges the geographical and language barriers which 20 years from now would have been far from reach. The ambit of the internet is so powerful that today the most technologically advanced countries are known to be the most peaceful in the world.</p><p>Even though consumer and industrial products are traded and valued in an open market, the knowledge and information pertaining to the each industry or business are still a closed domain. Today people value products and services under the tag names of who or which organizations provides the service without any knowledge of the core industry. Public users are only limited to evaluate or compare any product or service based on their general or logical ability with best of their knowledge in these closed domains. All this squeed information of domains and industry leads us to define the value of products and services in the least mediocre way. Today the phrase “जो दिख्ता है, वो बिख्ता है।” (you can sell, what you can see) defines the preface of all sales pitch rather than the quality of the product.</p><p>To overcome these challenges in the industry, the core information pertaining to all industries needs to be open in the free internet world. By means of open, all the process pertaining to product development, its life cycle and operations needs to be available in the open forum. All the industrial APIs and knowledge needs to be available in a proper format and continuously updated time to time. This would, in turn, provides the opportunity to organizations and universities to look into better and mature ways to enhance and to innovate new, better, cheaper, reliable and more secure methods of each business and product development models.</p><p>India being the country of the young and the vibrant, it’s home to more that half of population in their early thirties, opening of such domains not just provide an ample ecosystem for research but also provide a habitat of technology lead innovation in all streams of science, education, business, banking, space, agriculture etc. This will help our country to develop and standardize technology standards in all the areas of expertise and can lead other developing countries by example.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3fe1e84df41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/open-apis-for-open-market-c3fe1e84df41">Open APIs for Open Market</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reactive Programming in Android]]></title>
            <link>https://medium.com/digital-banking-labs/reactive-programming-in-android-10d66fc7813?source=rss----88b1a9766183---4</link>
            <guid isPermaLink="false">https://medium.com/p/10d66fc7813</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[rxjava]]></category>
            <dc:creator><![CDATA[Vinay John]]></dc:creator>
            <pubDate>Thu, 13 Apr 2017 09:04:14 GMT</pubDate>
            <atom:updated>2017-04-17T09:55:49.659Z</atom:updated>
            <content:encoded><![CDATA[<p>In most Android applications, you are reacting to user interactions (clicks, swipes and etc.) while doing something else in the background for eg. networking.</p><p>One hard thing is that we should orchestrate all these and the application should react accordingly.</p><p>Consider that in an application we send a request to a database over the network to fetch the details of a user and after that completes based on some key we need to fetch the preferences of the user at the same time, and after all of that is we should populate the UI combining both the responses.<br>Normally in android, we will possibly use:</p><ol><li>3–4 different <a href="https://developer.android.com/reference/android/os/AsyncTask.html">AsyncTasks</a>.</li><li>Some locking mechanism.</li><li>Object-level fields to store the results.</li><li>Some functionality to combine the results.</li><li>Some code to manipulate the incoming data if needed.</li></ol><p>Here comes the advantage of Reactive programming with <a href="https://github.com/ReactiveX/RxJava"><strong>RxJava</strong></a>. All of this can be written in a single flow in one place based on a functional paradigm.</p><blockquote>RxJava is a Java VM implementation of <a href="http://reactivex.io/">Reactive Extensions</a>: a library for composing asynchronous and event-based programs by using observable sequences.</blockquote><blockquote>It extends the <a href="http://en.wikipedia.org/wiki/Observer_pattern">observer pattern</a> to support sequences of data/events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety and concurrent data structures.</blockquote><p>It is a style of programming where you define a source of data and a consumer of that data. Once you connect the consumer to the source, the framework takes care of pushing the data, generated by the source, to the consumer.</p><p>The above definition talks about three important things. I will be explaining each of these in detail.</p><ul><li>Source of data</li><li>Consumer of data</li><li>Connecting Consumer to Source</li></ul><p>The major building blocks of RxJava are the <strong>Observer </strong>and the <strong>Observable</strong>.<br><strong>Observer</strong> — any object that wishes to be notified when the state of another object changes(consumer of data). The corresponding functions are <strong>onNext()</strong>, <strong>onError()</strong>, and <strong>onCompleted()</strong> from the <a href="https://github.com/ReactiveX/RxJava/blob/1.x/src/main/java/rx/Observer.java">Observer interface</a>.</p><p><strong>Observable</strong> — any object whose state may be of interest, and in whom another object may register an interest(source of data).</p><p><strong>Subscription</strong> instance- is responsible for connecting the consumer to the source.</p><p>A <strong>Subscription</strong> instance represents the connection between an observer and an observable. We can call unsubscribe() on the particular instance whenever we want to remove the connection between the observer and the observable.When an observable object is newly created, its set of observers is empty until we connect an Observer with it using the Subscription interface.</p><p>For using RxJava in Android we need to add the following libraries in your <em>build.gradle </em>file.</p><pre>compile &#39;io.reactivex:rxjava:1.1.0&#39;<br>compile &#39;io.reactivex:rxandroid:1.1.0&#39; // for android platform</pre><p><em>Please note: recommended to use the latest versions.</em></p><p>Let us go through a simple example:</p><pre>Observable&lt;String&gt; observable = Observable.<em>just</em>(<strong>&quot;Piano&quot;, &quot;Violin&quot;</strong>);</pre><p>This is an <strong>Observable</strong> which will emit the strings “Piano” and “Violin” and it can be observed by an <strong>Observer</strong>.</p><p>Now Let us create an Observer:</p><pre>Observer&lt;String&gt; observer = <strong>new </strong>Observer&lt;String&gt;() {<br>    @Override<br>    <strong>public void </strong>onCompleted() {<br>        //do something when the emission completes<br>    }<br><br>    @Override<br>    <strong>public void </strong>onError(Throwable e) {<br>        //do something when error happens<br>    }<br><br>    @Override<br>    <strong>public void </strong>onNext(String response) {<br>        <strong>System.out.println(&quot;instruments : &quot; </strong>+ response);<br>    }<br>};</pre><p>Finally, we have to connect both <strong>Observable</strong> and <strong>Observer</strong> with a subscription.</p><pre>observable.subscribe(observer);</pre><p>This will produce the following output:</p><pre>instruments : Piano<br>instruments : Violin</pre><p>The <strong>Observable</strong> emits the two objects (strings in this case) which are observed by the <strong>Observer</strong>. At this point, you can use a variety of operators to filter or transform the data according to your business needs. See the official Rx operator documentation or <a href="http://rxmarbles.com/">this</a> page for a list of operators.</p><p>The onCompleted() is invoked once the observable has no other data to emit, terminating the emission.</p><p>The onError() function will be invoked if there are any errors during processing an object. You can use this callback to handle error propagation.</p><p>sources :</p><p><a href="http://reactivex.io/documentation/observable.html">http://reactivex.io/documentation/observable.html</a><br><a href="https://github.com/ReactiveX/RxJava/wiki">https://github.com/ReactiveX/RxJava/wiki</a><br><a href="https://dzone.com/articles/rxjava-part-1-a-quick-introduction">https://dzone.com/articles/rxjava-part-1-a-quick-introduction</a><br><a href="http://blog.feedpresso.com/2016/01/25/why-you-should-use-rxjava-in-android-a-short-introduction-to-rxjava.html">http://blog.feedpresso.com/2016/01/25/why-you-should-use-rxjava-in-android-a-short-introduction-to-rxjava.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10d66fc7813" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digital-banking-labs/reactive-programming-in-android-10d66fc7813">Reactive Programming in Android</a> was originally published in <a href="https://medium.com/digital-banking-labs">Digital Banking Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>