<?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[Stories by Hariharan M on Medium]]></title>
        <description><![CDATA[Stories by Hariharan M on Medium]]></description>
        <link>https://medium.com/@harimanikandan?source=rss-d4806714102f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hnbp9aL0FU7dg1vv93juPQ.jpeg</url>
            <title>Stories by Hariharan M on Medium</title>
            <link>https://medium.com/@harimanikandan?source=rss-d4806714102f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:35:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harimanikandan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Installing Python3.9 on RHEL8 from source]]></title>
            <link>https://harimanikandan.medium.com/installing-python3-9-on-rhel8-from-source-56d2453f87fc?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/56d2453f87fc</guid>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python-39]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Thu, 17 Dec 2020 08:37:16 GMT</pubDate>
            <atom:updated>2020-12-18T14:12:55.528Z</atom:updated>
            <content:encoded><![CDATA[<h3>Installing Python3.x on Linux from source</h3><p>If you ever use deep learning libs, then they probably need to compile some native C++ code. They might call modules from natively compiled C++ libs. So heres a clean way to get py3.x (x can be 7/8/9) installed to use with linux via building from source.</p><p>Some variables:</p><pre>export PYHOME=/opt/py3.x #replace with your path.<br>export LD_LIBRARY_PATH=$PYHOME/libffi-3.2.1/lib:$PYHOME/libffi-3.2.1/lib64:$PYHOME/lib</pre><h3>Install libffi</h3><p>It is an interface for calling C compiled libs from python, which can be installed with yum/apt-get. Heres building from source.</p><pre>wget ftp://sourceware.org:/pub/libffi/libffi-3.2.1.tar.gz<br>tar xfz libffi-3.2.1.tar.gz<br>cd libffi-3.2.1<br>./configure --prefix=$PYHOME/libffi-3.2.1<br>make<br>make install<br>cd ..</pre><h3>Install Python</h3><p>Substitute x with 7/8/9</p><pre>wget <a href="https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz">https://www.python.org/ftp/python/3.x.0/Python-3.x.0.tgz</a><br>tar xzf Python-3.x.0.tgz<br>cd Python-3.x.0<br>./configure --prefix=$PYHOME LDFLAGS=-L$PYHOME/libffi-3.2.1/lib64 PKG_CONFIG_PATH=$PYHOME/libffi-3.2.1/lib/pkgconfig --enable-shared<br>make &amp;&amp; make install</pre><p>To make it discoverable, add to path.</p><pre>echo &quot;PATH=$PYHOME/bin/:$PATH&quot; &gt;&gt; ~/.bashrc<br>echo &quot;export PYTHONPATH=$PYHOME/bin/&quot; &gt;&gt; ~/.bashrc<br>echo &quot;export LD_LIBRARY_PATH=$PYHOME/libffi-3.2.1/lib:$PYHOME/libffi-3.2.1/lib64:$PYHOME/lib&quot; &gt;&gt; ~/.bashrc<br>source ~/.bashrc</pre><p><strong>Coming up next:</strong> Installing pytorch, CUDA drivers, cuDNN for GPU run.</p><h3>References</h3><ol><li><a href="https://github.com/pyenv/pyenv/issues/1183#issuecomment-529682321">https://github.com/pyenv/pyenv/issues/1183#issuecomment-529682321</a></li><li><a href="https://tecadmin.net/install-python-3-9-on-centos-8/">https://tecadmin.net/install-python-3-9-on-centos-8/</a></li><li><a href="https://lsstdesc.org/Coord/_build/html/overview.html">https://lsstdesc.org/Coord/_build/html/overview.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56d2453f87fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Walk-through the Rapid Miner]]></title>
            <link>https://harimanikandan.medium.com/a-walk-through-the-rapid-miner-921dfaf53722?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/921dfaf53722</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[rapidminer-software]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Tue, 16 Oct 2018 16:31:09 GMT</pubDate>
            <atom:updated>2018-10-16T16:39:38.562Z</atom:updated>
            <content:encoded><![CDATA[<h4>Handcrafted by yours truly, Hariharan.</h4><p>Please find the blog on Medium. It’ll feel much real to read this on Medium.</p><p><a href="https://medium.com/@vshshv3/a-walk-through-the-rapid-miner-921dfaf53722">https://medium.com/@vshshv3/a-walk-through-the-rapid-miner-921dfaf53722</a></p><p>In this simple blog post, I’ll pace through my experience with Rapid Miner, a tech that is currently the buzz in the Big Data industry. Everybody uses it, simply because it offers rapid prototyping and easy applicability to serve a user-friendly integration of various data mining techniques. You simply drag drop stuff onto the canvas and run through the phases of data mining. As simple as that.</p><p>This tasks I’ll cover for this assignment will pre-dominantly come from Machine Learning, my passionate choice of study :)</p><h3>Introduction to Rapid Miner</h3><p>Rapid Miner is a Data Science Platform for quickly analyzing data. Meant largely for non-programmers and researchers. You have a load of data. You have idea in your mind. And you easily create processes, import data into them, run them over and throw a prediction model. RM supports porting ML models to web apps(flask or nodeJS), android, iOS, etc, which is why it unifies the entire spectrum of the Big Data Analytics Lifecycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*MjMIwjGorIQcWmkY.png" /><figcaption>One place for everything. Courtesy: Rapid Miner Website</figcaption></figure><p>The Best part about this is, it simplifies the various scattered tasks of data mining and analysis. This is a place <strong>to load data </strong>(from anywhere, say Hadoop, Cloud, RDBMS, NoSQL, pdf, etc,etc), <strong>pre-process and prepare data using standard industrial methods </strong>(group items by categories or spawn new child tables or join tables or interpolate missing data, etc), <strong>train AI models</strong> (even train optimal deep learning models: Random Forests, XGBoost, Gradient Boost, etc) <strong><em>or clustering or pruning outliers, </em></strong>to even <strong>visualizing outputs.</strong></p><p>Finally you easily deploy these models on the cloud or in the production environment. <strong>Just need to create user interfaces to collect real time data and run it on the trained model to serve a task.</strong> I specialize in android :), and RM’s wrapper to android was so easy to grasp than even some of the deep learning frameworks’ (like keras or tensorflow).</p><h3>How good is RM over other much established Big Data Tools, like those from Apache Foundation?</h3><blockquote>We’ll answer this question after the demo. You’ll then come to see the brilliance of RM, that stands out unique.</blockquote><p>Lets quickly head on to the <a href="http://rapidminer.com/">rapidminer.com</a> and install. I checked out on a 30 day trial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*k27zQ19UTAtJMQcrjlQJjQ.png" /></figure><h3>The features of Rapid Miner: Extensive Demo on the Titanic Dataset</h3><p>I’ll hereby discuss the best to expect out of RM. It’ll be lengthy. Took me sometime, but really worthwhile.</p><h3>1. The Best Thing about RM: Turbo Prep</h3><p>We all know that we spend too much time on data prep and not as much time as we want on building cool machine learning models. Everybody in the analytics industry is slowed down by clunky data preparation tools and almost waste 80% of their time in just prepping data, whilst the effort can fruitfully go into processing and analysis.</p><blockquote>This is where the Auto Model and Turbo Prep come in.</blockquote><p>A nice functionality for data preparation, called <a href="https://rapidminer.com/products/turbo-prep">RapidMiner Turbo Prep,</a> is where you simply drag and drop data to create amazing interfaces.</p><p>I’ll explore and demonstrate some of the possibilities of this cool feature as well as bring out how well it integrates with <a href="https://rapidminer.com/products/auto-model">RapidMiner Auto Model</a>. These form the two most striking uniqueness of RM as compared to other Big Data tech.</p><h4>a. Load the data into RM and Inspect</h4><p>Welcome to the RM Studio on my PC. Studio is the IDE (Integrated Dev Env) where all the factory ground work is staged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiy7BTFXV9_sq8_N4FDJ7g.png" /><figcaption>The RM Studio</figcaption></figure><p>Lets import some data. We can use the RM’s pre-installed repository to quickly load the Titanic dataset, which contains a comprehensive list of all the passenger’s information of the Doomed Titanic cruiser.</p><blockquote><strong>Note: </strong>We’ll import data into the Turbo Prep for easy pre-processing and then create models piping the cleansed data out of Turbo.</blockquote><p><strong><em>How you do it: — </em></strong>Turbo Prep-&gt; Load Data- &gt; Titanic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kD1Sgi2VToau2F7039YyLQ.png" /><figcaption>Import Titanic</figcaption></figure><p>This is how RM gives us a peep into some of the quality indicators. The histogram and stats distributions are seen at the top of each feature (column). We can use this to determine if that feature is suitable for ML or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KIObt87Y8cNgbPjE0q3yIQ.png" /><figcaption>Titanic Dataset</figcaption></figure><blockquote><strong>Example:</strong> The column Cabin has too many NILs to even begin with. Not useful for ML or modelling.</blockquote><h4>b. Transforming Data</h4><p>First step is to look at the data in aggregates. Pivot table does that.</p><h4>Pivot Table</h4><p>The pivot table is used to quickly combine the features and group the records by some set of categories. There’s <strong>a row Group-By and a Column Grouping.</strong> Within these groups we can place a numerical attribute and aggregate stats based on any agg. operation: <strong><em>sum or avg or count or percentile, etc</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rmD3vFtaOqBmc_XZ_wD7Q.png" /><figcaption>Visual analysis of the Deck.</figcaption></figure><p>From my table above, I see that, 144 females from the First Class have survived. Almost 493 males from the Third passenger class have survived the glacier crash. A closer look at the grouping strategy reveals a 2nd dimension to Survived. I’ve grouped by % survived out of the entire count in that category. By that, the 2nd class female are the least saved.</p><blockquote><strong>This is contrary to what was shown in the film.</strong> It was said that the males had to leave room for the female and the life boats only took in females, but their survival rates are overwhelmed by males.</blockquote><p>A lot other analysis stuff can just come from this grouping step. Quite easy ah.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-T6nRk2Rs9yl4MqVkFdCA.png" /></figure><p>This new chart weaves a story as:- Average Passenger Fare for the Third Class is just 12.135 euros for people who didn’t survive, but the cost of a First class life is 117 euros!!! :) :)</p><h4>b. Filter out</h4><p>The pivot table helped us quickly determine what we should be focusing on- <strong><em>Passenger Class, Fare, No of Siblings or parents or children aboard, sex and the most important target var: </em>Survived or not. </strong>With this fabric in mind, lets delve further.</p><p>As far as the machine learning goes, there is no room for nulls. Need to filter them out first. I’ll opt the ‘?’ — nulls out from the table using the FILTER transform.</p><blockquote>Select the <strong>‘Cabin’</strong> column, right click, and select ‘Transformations’, then ‘Filter’. Immediately, there will be a preview of the data, so you know whether the results are correct. All the statistics and quality measurements are updated as well.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddbzBFdIjAI_4KRp30qrRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*FtVYDMPj0VDyS0aCrVxITw.png" /><figcaption>Condition for filtering. Keep records != ‘?’</figcaption></figure><h4>c. Sort</h4><p>From a variety of data transformation controls, we can choose to use any. For instance, sort by age, ascending.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnFvCaaLid_Q_dJxxrLmbg.png" /><figcaption>Sort records by age.</figcaption></figure><blockquote>We may choose to sample say, only 100 records out of these 295 rows. Again, just click on the SAMPLE tab, and choose 100. You get a randomly shuffled sample of 100 records!! Just like that…</blockquote><h4>d. Statistics</h4><p>Just hover over the fields to show up what each one has got to say.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ntn0XJPTdb_ve3xSRgz5Kg.png" /><figcaption>Mean passenger fare= 81 euros</figcaption></figure><blockquote><strong>Side Note: </strong>Later on, when we cleanse data, we will come to see this. The correspondence between the Ticket Number and the family names. Every member in the family gets the same ticket number. So, it’s enough to keep just one of these 2 fields. Maybe the <strong>ML for predicting survived or not</strong>, learns this fact: <strong>‘If a group of persons have the same Ticket number, they belong to a family and if one of them died, then probably all of them died.’</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*VNEx5ime0Oem6rjoxI27pw.png" /></figure><h4>e. Writing Formulaes</h4><p>We see that the <strong><em>No of Siblings and the No of parents or spouse aboard the ship </em></strong>for that person is being used as an attribute. Why not better merge the 2 into a single field for <strong>‘No of relatives’. </strong>Just of sum of these two, element-wise.</p><blockquote>Compactness in ML can aide to enhancement in running times, useful esp. for real-time analytics.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEt7iiO9YSMxa2nPTDR2pQ.png" /></figure><blockquote>Generate a new column on the total num of relatives for a person out of these 2, by selecting the 2 cols and right click to formulae.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zc9hYCo18YhsXUm1jLQ0CA.png" /><figcaption>Formulae for a[i] = b[i]+c[i] for all i</figcaption></figure><p>The <strong>purple is the newly generated field</strong>. The <strong>Greens are the recipes for this new field. </strong>The rest of the fields fall in place as shown.</p><p>After committing these changes to the table,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mreWzVxxDkbU0Yepf-vDRw.png" /></figure><p>We’ll go further by removing the 2 additional columns. Would only add to the junk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eK9gsn5pCwSYxXkRrxhrXg.png" /></figure><p>After all this hefty processing,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tknSK1FZS2d-SbDw4hwJw.png" /><figcaption>New table</figcaption></figure><h4>f. The Charts</h4><p>Human eye is perceptive. A picture can easily reveal stuff that a number can’t. TurboPrep has built-in support to every swiftly make plots on the go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbNs-9v8BU2lIE1fXTasRQ.png" /><figcaption>Total num of relatives Vs Ticket no</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*DkrSHuHluaXyn-IDqeHdjQ.png" /><figcaption>Plot settings in the Charts panel</figcaption></figure><p>It doesn’t take much to see the stories this chart screens. <strong><em>Lets not worry ourselves too much with the Survived or Died question :)</em></strong>. On the bright, ahppy side of things, <strong>of all the people who boarded, most of them were singles. </strong>And of all the rest, most families were two or at the most 3 people.</p><blockquote>Contradicts the film that shows First Class families of over 5 or 6 people in each. :)</blockquote><h4>g. Cleansing</h4><p>We can’t just pass the entire junk to our ML model. We’ll choose the best of features that will aid in the survived/dead prediction and drop the rest.</p><blockquote>For instance, we can drop the cabin feature. If the entire ship is about to sink, then obviously no matter what your cabin inside the ship is, you still sink :) :)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*F7JF1XOOO3YDPCD_6D519Q.png" /><figcaption>Load the transformed data into the Cleanser</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*kVRsfqZKS8VIAop_MauCHQ.png" /><figcaption>Here’s the controls</figcaption></figure><p>Every phase in this step has got a very brief description. This is to help first timers. And this indeed helped me!</p><p><strong>Phase 1: </strong>Select the target variable to predict. In our case, Survived.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*t_xjmc7SJfIdVrWDgTIqkA.png" /><figcaption>Target var</figcaption></figure><p><strong>Phase 2: </strong>To improve the quality of our prediction of survived or not, we can drop all the index fields. A name in England: a family name, first name and title, is almost unique. So it serves as an index variable for this entire table. <strong><em>Every person’s name is a key!! </em></strong><em>I’ll drop that. It doesn’t contribute to saying whether he/she died. </em>Next, the ticket number groups all the members in a family. We may choose to keep it or drop it. Since RM says it’s a weak feature, I decipher that it can’t perform efficiently with that feature in the mix. So, going by the AI, I choose to drop the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*LiuD_OWi3LGEpyAkYo1YCA.png" /><figcaption>Drop features</figcaption></figure><p><strong>Phase 3:</strong> Whether you wanna change the datatypes of the rest of the fields? <strong><em>NO</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*MVMQNhQ7bnzC2RoTYU6rGQ.png" /><figcaption>We keep the same data types in each column</figcaption></figure><p><strong>Phase 4: </strong>We perform <strong><em>standard dimensionality reduction tricks and data normalization., only on the numerical attributes.</em></strong> We leave it to the RM’s concern. It used Principal Component Analysis for the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*u4fU8HAhmo20eGObggzT4A.png" /><figcaption>PCA and norm</figcaption></figure><p><strong>Phase 5:</strong> Commit the entire operation and save the cleansed data into local repository or on disk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*CYi9vrtXwN0ufT_WPgqB1Q.png" /></figure><blockquote>After cleansing,</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHBcz90IYW3ZTDwUKJPmIA.png" /></figure><h4>h. Other powerful features for handling multiple tables</h4><p>Just to illustrate another powerful feature of Turbo, its got a Merge/Join feature where you can merge columns or join 2 tables.</p><blockquote><strong>Example:</strong> Customer DB and transaction DB. Works just like how the conventional RDBMS, joins 2 tables on a foreign key. I won’t do this anyway. Since, I’ve pruned my data accordingly.</blockquote><p>So, I’ll just do a demo on this, anyway, though it doesn’t concern with the ML tasks ahead. But I’ll not commit the changes to my already cooked dataset, which is cleansed and set aside for ML.</p><p>Load another pre-processed data for this task. There’s a titanic training dataset in the repo, that I’ll just use for demo purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTvB8gLJXIoD0R6kg6UV4g.png" /><figcaption>A Titanic Training demo dataset</figcaption></figure><p>Click on the <strong>Merge Tab.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opmIFHY48Pd-ZZTlz9kk-g.png" /></figure><p>Choose to merge this with Titanic dataset. The degree of coherence shows how much is this dataset relevant to the its getting merged with. 100% shows, that the 2 are very much alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGP5ZJP3LMfq1Mjau01HgA.png" /></figure><p>And after specifying the join keys, we merge them.</p><blockquote>Note that there are no unique keys on other side to join with. Because, both are cleansed data for ML and are stripped off indexes.</blockquote><p>Anyway, this feature is pretty powerful for other SQL related or Data Viz. related tasks.</p><blockquote>That ends Feature 1: <strong>Turbo Prep.</strong></blockquote><p>We’ll continue working with our transformed Data. <strong>Thank you Turbo Prep for all the cool help.</strong></p><h3>Process and History Tabs: A quick Look.</h3><p>Here’s the data in form. But how did we get here?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*epjaMkDMdT07qfWK9EhciA.png" /></figure><p><strong>Processes: </strong>Every object on the RM canvas represents a transformation or an operation on the data. The sequence of Ops we did all through this exercise is infact implemented as a graph or a chain of changes, piped one after the other. Internally the pipeline runs on the RM’s processor engine as follows:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*EBZwq35isGe0Q-ugjQ0yag.png" /><figcaption>The process flow</figcaption></figure><blockquote>If it weren’t for TurboPrep’s easy interface, we would be right now, doing this on our own. Linking every transformation node to node.</blockquote><p>Thats saved us a lot of work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*3M2j1ZTWfKr4THlF2LP8ZA.png" /><figcaption>Process chart continued.</figcaption></figure><p>Also we can take a look at the history of operations on the Turbo’s Controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*t1j0LKJKeF79WuVufl_k7w.png" /></figure><h3>2. The Next, the Best Thing about RM: Auto Model</h3><p>The RapidMiner Auto Model automates machine learning and accelerates Data Science. This interactive feature makes RM more accessible to new users and more powerful for expert Data Scientists.</p><blockquote>Now that we have our data, it just takes a few more clicks to create Deep learning models or Ensembles. Yea, the world of AI is just clicks away for an absolute beginner. Nevertheless, a useful tool for even the advanced users.</blockquote><blockquote>Me, an enthusiast of Deep learning AI found it very useful!</blockquote><p>AutoModel delivers new capabilities by transforming data to generate actionable insights, without compromising on transparency or control.</p><p><strong><em>Here’s another pipeline of tasks:-</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eFXJnuo5q7BGFlCd8Vot8A.png" /></figure><h4>a. Select Task</h4><p>Decide what type of problem you would like to solve.</p><ul><li><strong>Predict:</strong> This will build a machine learning model which predicts the values of this target based on the values of the other predictors.</li><li><strong>Clusters:</strong> Groups data into clusters.</li><li><strong>Outliers:</strong> This finds unusual points in your data. The goal here is to find individual data points that are far away from all other data points, possibly because of errors in data collection.</li></ul><blockquote>Our task is the prediction. Remember? Whether a give person Survived or not?</blockquote><h3>Predict</h3><p><em>This will be a Classification</em> task, as the target is categorical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fjz9i8qP2CZSe6MO2j7JGA.png" /><figcaption>Click on predict.</figcaption></figure><h4>b. Prepare Target: What is the class of highest interest?</h4><p>Well, we want to know if that person come out alive. Thats a positive sense to this classification task. Not the other way round (the person died, didn’t he?).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*9QZ3FG-KquiWrzAiLRV7Sw.png" /></figure><h4>c. Select the input columns that go into the ML model.</h4><p>As our entire data was pruned and set especially for ML tasks, we can choose of the columns here.</p><blockquote><strong>Note:</strong> The Principal components are in the classification task. They’ve consumed the total #relatives, etc.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kYnFEjGK-NkpVNrqhuVYZA.png" /><figcaption>Attrbs shown by RM</figcaption></figure><h4>Help from RM: Status</h4><p>The colored status bubble provides a quality indicator for a data column.</p><ul><li><strong>Red:</strong> A red bubble indicates a column of poor quality, which in most cases you should remove from the data set.</li><li><strong>Yellow:</strong> A yellow bubble indicates a column which has either a <strong><em>very low (&lt;0.01) </em></strong>or a <strong><em>very high correlation(&gt;0.5)</em></strong> with the target column.</li></ul><h4>Quality Bars</h4><p>The color of the status bubble is based on the following quality measures, displayed as bars together with each Attribute: <strong>Correlation, ID-ness </strong><em>(measures the degree to which this Attribute resembles an ID.),</em><strong><em> </em>Stability </strong><em>(how stable or constant is this column), </em><strong>Missing.</strong></p><h4>d. Select Model Types</h4><p>Choose one the available predictor models in ML. The shown models are synced to match our data’s properties/distribution.<strong><em> Example,</em></strong> <em>it understands that our task is classification and only suggest classifiers, not regressors.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*795CbNO-1FHrApMw8AgwzQ.png" /><figcaption>ML models</figcaption></figure><p>I choose to run this prediction on all of the available models:-</p><ul><li><strong>Naive Bayes:</strong> a simple and fast probabilistic classifier based on Bayes theorem</li><li><strong>Decision Tree:</strong> finds simple tree-like models which are easy to understand</li><li><strong>Gradient Boosted Trees (XGBoost):</strong> powerful but complex model using ensembles of decision trees</li><li><strong>Generalized Linear Model (GLM):</strong> generalization of linear regression models</li><li><strong>Logistic Regression:</strong> a widely used statistical method for binary classification</li><li><strong>Deep Learning:</strong> multi-level neural network for learning non-linear relationships</li></ul><p>This is the awesome thing that I’ve ever been through. All of my dream, favorite models, all in one place!!</p><h3>Results: Classification</h3><p>This is the final step of Auto Model, where you can inspect the generated models together with other results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBCGj_uhugtk2SS1-4veFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*dGEtl9pVbB_wqJtDmfNgPA.png" /></figure><p>Here’s a comparison of the various models used for prediction. It shows their <strong>accuracies and runtimes.</strong> Also compares their <strong>ROC curves</strong> as follows, all together on a single chart:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*X9B5fuGYd90HvzwVmletXw.png" /><figcaption>ROC Comparison</figcaption></figure><blockquote>With regard to ROC, we just need to know that the closer a curve is to the top left corner, the better the model is. And it is only shown for two-class problems.</blockquote><h3>Models</h3><p>All other sections in the results menu are reserved for the models. Each model gets a section of its own and in general provides the entries below.</p><p><strong><em>Example</em></strong> for <strong>Naive Bayes Classifier, the model </strong>looks as,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*ELFP6IzGKQbGaZyopGWBqQ.png" /></figure><p><strong>Simulator:</strong> provides an easy-to-use, real-time interface to change the inputs to a model and view the output.</p><blockquote>We can <strong>set our own example inputs and run the forward prop to generate the output class.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*BVFKLjdckqZsRBRVHtMQDg.png" /><figcaption>Give in your own test data and see.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*C6Srg5YQmWwFhJWb0Ot_Yg.png" /></figure><p>It shows predictions, confidences, and explanations for those inputs.</p><p><strong>Performance-wise results:</strong> lists the model’s prediction accuracy and other performance criteria.</p><blockquote>This was the classification report with the confusion matrix- precision and recall for the Naive Bayes model. <strong>Higher the precision and recall, better the classifier.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*cPuUpfBi7VrX_hhHvCxHnw.png" /></figure><p>Here’s a plot view of the performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*tcuy1nVoJSAx0yNugCu5VA.png" /></figure><p>The <strong>optimal params </strong>are also thrown for each model. The <strong><em>Gradient Boost trained 100 trees, and the performance was the best at the depth 7.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*4Ac4vRKubwYX9UBgzF7zzg.png" /></figure><p>Of all the models thus simulated, the Gradient Boost was the best. Because, it had to train for an extended period of time to learn optimal hyper-parameters.</p><blockquote>There are a lot of other cool things we can do with these simulator outputs. Auto Model made it look like it was nothing. But lets continue with the Task at-hand. Rapid Miner!!!</blockquote><h3>Feature 3 of RM: Cool Process View</h3><p>Process view captures all that we have done graphically on the Auto Model UI. This <strong>largely helps to translate the entire process to production.</strong> Forms as a base for further work or product releases in the industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*jrnip-Dg6tfpeXq4acgE5g.png" /></figure><h3>Feature 4 of RM: Real-time scoring</h3><p>Predict at scale, with very low latency, and deliver actionable intelligence in <a href="https://rapidminer.com/products/server/#real-time-scoring">real-time</a> to the decision maker(the user) or machine, like predicting how your customers behave, when your industrial parts will break, or calculating the risks associated with an action, etc.</p><h3>Feature 5: SPEED&gt;&gt;&gt;</h3><p>Parallelization of operators with Loop and Optimize Parameters, FP Growth, Join and other built-in operators makes it lightning fast to work with complex data imports and perform feature engineering steps with a few clicks.</p><h3>Feature 6: Advanced ML capabilities and algorithms</h3><p>The RM team keep adding numerous extensions and support libraries thae expand out data science capabilities to cover more use cases than ever. They are even working on catering to new domains of ML research: <strong><em>text mining, Deep Learning, or integration with R, Python, Weka and more.</em></strong></p><h3>Feature 7: The Collaboration with many Data Service Providers — MapR, Informatica, Microsoft HDInsight, AWS, Google cloud connector (Splunk, Hive connectors as extensions)</h3><p>Users can easily connect to data, no matter where it lives, with out-of-the box connectors to many 3rd party applications, social media sources, data bases and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9RZWwN4Sz9_F2JrB.png" /><figcaption>Courtesy: Rapid Miner Blog</figcaption></figure><h3>Feature 8: The X factor — Stability</h3><p>The platform is so so so user-friendly. The RM team is constantly fixing bugs and adding speed and power to the operator toolbox. This new release, they have featured their expanded coverage and visibility of Studio’s powerful ‘Quick fix’ feature, which provides you a solution for the most common errors.</p><blockquote>Gone are the days when Users debug code themselves. You write an erroraneous script, leave the rest to RM.</blockquote><h3>Feature 9: Exploiting the Hadoop Distributed FS and distributed application manager to process any parallel code to run in any node in the cluster</h3><h4>RapidMiner Radoop is another extended servcie that expands on Big Data use cases</h4><p>We have help for Anomaly detection, Windowing, Discretization. These operators enable you to identify fraud, detect abnormal consumer or machine behavior in your data on Hadoop, reduce overfitting of machine learning models and improve their predictive performance, time series forecasting and more.</p><p>Also, the new intuitive UI for configuring the settings and variables of your Hadoop cluster makes it easier test each section of the Map reduce independently.</p><h4>Feature 10: The BEST Part of RM</h4><p>The help. When you are lost, their built-in tutorials are everywhere in the software. They explain you if don’t know what is a Gradient Boost ensemble, etc, etc. They focus on an absolute beginner level.</p><blockquote>You needn’t even go to Google after installing RM for data science.</blockquote><h3>Problems with Rapid Miner</h3><p>After all the good talk, here I am to discuss some of the issues with this tool. The point I’m trying to make is that, ultimately, if a tool satisfies its role, earns all the credibility for user experience, then job done. That was the motto of their CEO. To capture user satisfiability.</p><p>RM was the Top rated Big Data tool on G2, with a 4.5 star rating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tLcbH6y-POtZj-dSZZtmA.png" /><figcaption>Courtesy: G2 website</figcaption></figure><p>There was recently some buzz on the internet of RM being slow in loading MBs of data.</p><p><a href="https://it.toolbox.com/question/rapidminer-issues-importing-csv-091510">https://it.toolbox.com/question/rapidminer-issues-importing-csv-091510</a></p><p>Come-on, when you can save your data in Hadoop, just call it from anywhere, the live streaming and the world of cluster and cloud computing awaiting out there, trying to load MBs of csv on a 32 bit windows is too primitive.</p><p><strong>The only problem with RM is that, the built-in algorithms are designed to run in optimized settings.</strong> For <strong><em>an expert user, he may want to further customize the model, maybe fine-tuning the parameters and stuff</em></strong>, for his research purposes. Still, the level of transparency in RM right now, is not too good for model tuning.</p><h3>Conclusion</h3><p>Here is a quick summary of all that I did in this extensive walk-through the Rapid Miner.</p><ol><li>We <strong>loaded data into Turbo Prep, processed using the Pivot tables, Filters and cleansed for ML tasks.</strong></li><li>We <strong>fit various ML models on the data, simulated different predictor classifiers and compared each of them.</strong> The GBoost was the best among all.</li><li>Finally, all along we explored <strong>why RM was better than any other Big Data tool and its features.</strong></li></ol><p>Overall, I conclude that, with newer features like TurboPrep and AutoModel, only released in RM Studio 9, the RM team is making technology and technical expertise accessible to a common man. The academic license for 1 year is an added benefit for students, who learn better at visual perception. Further work in <em>Visual</em> Hadoop is under-way. Still, the RM is evolving day-to-day, becoming faster, stronger and better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=921dfaf53722" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Application Privacy Statement]]></title>
            <link>https://harimanikandan.medium.com/application-privacy-statement-7d6f30282382?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d6f30282382</guid>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Wed, 13 Dec 2017 16:43:45 GMT</pubDate>
            <atom:updated>2017-12-13T16:44:04.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Application Privacy Statement</p><p>This privacy statement (“Privacy Statement”) applies to the treatment of personally identifiable information submitted by, or otherwise obtained from, you in connection with the associated application (“Application”). The Application is provided by Hariharan M (and may be provided by Hariharan M on behalf of a Hariharan M licensor or partner (“Application Partner”). By using or otherwise accessing the Application, you acknowledge that you accept the practices and policies outlined in this Privacy Statement.</p><p>WHAT PERSONAL INFORMATION DOES Hariharan M COLLECT?</p><p>We collect the following types of information from our users:</p><p>Personal Information You Provide to Us:<br>We may receive and store any information you submit to the Application (or otherwise authorize us to obtain — such as, from (for example) your Facebook account). The types of personal information collected may include your full name, email address, gender, IP address, browser information, username, demographic information, and any other information necessary for us to provide the Application services.</p><p>Personal Information Collected Automatically:<br>We receive and store certain types of usage related information whenever you interact with Application. For example, Hariharan M may automatically receive and record information regarding your computer’s IP address, browser information, Facebook user ID, Facebook Page fan status, and URLs accessed. Such information may be shared in aggregate (non-personally identifiable) form with our partners.</p><p>HOW DOES Hariharan M USE THE INFORMATION IT COLLECTS?</p><p>Hariharan M uses the information described in this Privacy Statement (i) internally, to analyze, develop and improve its products and services, and (ii) as set forth below in the “Will Hariharan M Share any of the personal information it Collects” section below.</p><p>APPLICATION PARTNER TREATMENT OF PERSONAL INFORMATION.</p><p>Hariharan M may provide personal information to the applicable Application Partner. The Application Partner’s use of your personal information is subject to the Application Partner’s separate privacy policy — and not this Privacy Statement. The Application Partner’s privacy policy is linked to from within the Partner’s Facebook application.</p><p>WILL Hariharan M SHARE ANY OF THE PERSONAL INFORMATION IT RECEIVES?</p><p>Personal information about our users is an integral part of our business. We neither rent nor sell your personal information to anyone (with the exception of sharing your information with an applicable Application Partner — see the “Application Partner Treatment” section above). We share your personal information only as described below.</p><p>Application Partners: We will share your personal information with an applicable Application Partner (see the “Application Partner Treatment” section above).</p><p>Agents: We employ other companies and people to perform tasks on our behalf and need to share your information with them to provide products or services to you. Unless we tell you differently, Hariharan M’s agents do not have any right to use personal information we share with them beyond what is necessary to assist us. You hereby consent to our sharing of personal information for the above purposes. Business Transfers: In some cases, we may choose to buy or sell assets. In these types of transactions, customer information is typically one of the business assets that are transferred. Moreover, if Hariharan M, or substantially all of its assets were acquired, or in the unlikely event that Hariharan M goes out of business or enters bankruptcy, user information would be one of the assets that is transferred or acquired by a third party. You acknowledge that such transfers may occur, and that any acquirer of Hariharan M may continue to use your personal information as set forth in this policy.</p><p>Protection of Hariharan M and Others: We may release personal information when we believe in good faith that release is necessary to comply with the law; enforce or apply our conditions of use and other agreements; or protect the rights, property, or safety of Hariharan M, our employees, our users, or others. This includes exchanging information with other companies and organizations for fraud protection and credit risk reduction.</p><p>With Your Consent: Except as set forth above, you will be notified when your personal information may be shared with third parties, and will be able to prevent the sharing of this information.</p><p>CONDITIONS OF USE.</p><p>If you decide to use or otherwise access the Application, your use/access and any possible dispute over privacy is subject to this Privacy Statement and our Terms of Use, including limitations on damages, arbitration of disputes, and application of California state law.</p><p>THIRD PARTY APPLICATIONS/WEBSITES.</p><p>The Application may permit you to link to other applications or websites. Such third party applications/websites are not under Hariharan M’s control, and such links do not constitute an endorsement by Hariharan M of those other applications/websites or the services offered through them. The privacy and security practices of such third party application/websites linked to the Application are not covered by this Privacy Statement, and Hariharan M is not responsible for the privacy or security practices or the content of such websites.</p><p>WHAT PERSONAL INFORMATION CAN I ACCESS?</p><p>Hariharan M allows you to access the following information about you for the purpose of viewing, and in certain situations, updating that information. This list may change in the event the Application changes.</p><p>- Account and user profile information<br>- User e-mail address, if applicable<br>- Facebook profile information, if applicable<br>- User preferences<br>- Application specific data</p><p>CAN CHILDREN USE THE APPLICATION?</p><p>Our site and the services available through Hariharan M are not intended for children under the age of 13. Hariharan M does not knowingly or specifically collect information about children under the age of 13 and believes that children of any age should get their parents’ consent before giving out any personal information. We encourage you to participate in your child’s web experience.</p><p>CHANGES TO THIS PRIVACY STATEMENT.</p><p>Hariharan M may amend this Privacy Statement from time to time. Use of information we collect now is subject to the Privacy Statement in effect at the time such information is used. If we make changes in the way we use personal information, we will notify you by posting an announcement on our Site or sending you an email. Users are bound by any changes to the Privacy Statement when he or she uses or otherwise accesses the Application after such changes have been first posted.</p><p>QUESTIONS OR CONCERNS.</p><p>If you have any questions or concerns regarding privacy on our Website, please send us a detailed message at vshshv3@gmail.com . We will make every effort to resolve your concerns.</p><p>Effective Date: December 13, 2017</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d6f30282382" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User Feedback and Testing]]></title>
            <link>https://harimanikandan.medium.com/user-feedback-and-testing-9c1aa8e0483a?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c1aa8e0483a</guid>
            <category><![CDATA[feedback]]></category>
            <category><![CDATA[user-testing]]></category>
            <category><![CDATA[app-review]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[hasura]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Sat, 05 Aug 2017 05:14:15 GMT</pubDate>
            <atom:updated>2017-08-05T09:11:49.072Z</atom:updated>
            <content:encoded><![CDATA[<h4>Crashz in the Launch Phase</h4><blockquote>Now that the coding &amp; update phases are done and dusted, lets collect some statistics on our app’s economy and outreach.</blockquote><p>This part was the trickiest, coz, <strong>people keep adding outlooks</strong>, until they <em>fine-tune it on a physical balance with Google apps</em> :) <strong>Users look forward to so many things when it comes to a mobile app.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*tTTk401WagiVkojzB_E2ZA.png" /><figcaption>There you go, my app’s icon</figcaption></figure><p>I share here a feedback summary of how guys reacted to my app.</p><h3>First-hand Feedback</h3><p><strong><em>Let me pin some quick reactions I had in receipt in Social Media, here.</em></strong></p><h4>Welcome my first user!</h4><p><a href="https://www.facebook.com/joel.raymann">Ray</a> is a typical<strong><em> Ethical hacker</em></strong>, who works freelance. He’s got <em>game design and animation for added skills</em>. He’s an <strong>easy-come-easy-go type, who takes life plain and sweet for everybody around him</strong> ( I’m amazed with his work environment — Never complains). Nevertheless, he’s fascinated with web-design sometimes :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*bbFxBc9A5p3auFXlHHr8-w.png" /><figcaption>My friend Ray was the very first person to try out my app.</figcaption></figure><h4>Hi my best friend!</h4><p><a href="https://www.facebook.com/gowtham.sundaram.3"><strong>Gowtham</strong></a><strong> always had impulses for an amazing programmer</strong>. With <em>pointer logic and problem solving skills</em>, hes’s been unparallel in my school days. Currently studying at SRM, he’s turning the tables on the <strong><em>NextGen Automobile Technology with hybrid F1 cars</em></strong>. Though a <strong>hard-coder in his best of skills, he’s mastering the swag on Cars</strong>, his childhood passion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*c9XBdxsXow2A6MHJnJfbEw.png" /><figcaption>Gowtham stepped in late, but was an awesome user. His user perspective was a class in itself.</figcaption></figure><h4>Thanks a lot sir</h4><p><a href="https://www.facebook.com/bjayaram">Prof. Jayaram</a> is the <strong><em>best of easy-go faculties I’ve ever had in my life</em></strong>. His <strong>concepts and calm analyzing skills</strong> are a <em>treasure for us to cherish</em>. He looks at the <strong><em>better ways of doing the same thing</em></strong><em> and is always the first person to pat your back</em> when you achieve something great.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*AiX1o6_dRjBeGdL-ZuCLlA.png" /><figcaption>If you ask me where was the testing, this is what I could tell you. My professor came up with questions and was intuitive with his feedback. He helped me find user-bugs and refine my approach skills.</figcaption></figure><p>The <strong>fix was a simple formValid() check on the user input</strong>. When <em>I process the link I get, I cut down the last 5 characters</em> and <strong><em>add an extension that could play the media raw, the mp3 link is only browser compatible</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*EOG3_oloc6gMEX6ybED2Vw.png" /><figcaption>It was in the eleventh hour that I happened to find this. The Java regex match malfunctioned.</figcaption></figure><p>I had a <strong>Java regex match to tell me if “.mp3” was a part of the string</strong>. If not, <em>don’t insert it into the DB, coz, every .mp3 link from Dropbox comes with the extension</em>. I’d to tune that segment of the code. Simple, though.</p><h4>Hi there my well-wisher!</h4><p>Never to forget the time when I’d <strong>no response whatsoever, for my app from my recipients, even Slack</strong>(maybe, people at Slack didn’t have the Slack app installed to click on links). I’d <strong><em>to dig at everybody to spare atleast a couple of minutes to look into my app.</em></strong> And, this guy did it without compulsion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/1*pWoWe7Fd1eFgBfYWqfhxXA.png" /><figcaption>When I signaled distress calls for sometime with no users turning up, it was <a href="https://www.facebook.com/pruthviraj.patil.1291?fref=pb&amp;hc_location=friends_tab&amp;pnref=friends.all">Prithvi</a> who consoled me.</figcaption></figure><h3>The Current Scene</h3><p>I’ve about a <strong>20 people active</strong> on Crashz and <strong>some 12 regulars</strong>. I’m <strong>indebted to fb for making this reach a larger community</strong>, though not installed, many were <strong><em>still pinging me about what the app was about</em></strong>. That was a success fraction <strong>I’d envisioned for myself.</strong></p><h3>Statistics in the Play</h3><p>Without collecting <em>official feedback, its impossible to make any hooked conclusions on its success</em>. I circulated a <a href="https://docs.google.com/forms/d/e/1FAIpQLSdQGez7AgI_-jZkXs6mzPT5HBCVJUUvdqhplBM-AU-ssZOayg/viewform?usp=sf_link"><strong>Google Form</strong></a><strong> that hosted some cogent questions on my app’s features in some variety</strong>. Below is the response summary computed from about 16 people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*8E1uz6Xw8cXWgqYnHOiXQA.png" /><figcaption>I wholeheartedly thank my friends and well-wishers for all the help &amp; support I earned. I appraise their time &amp; effort in walking through my app and lending me priceless feedback.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*NmhVNv-635TVibYxLvyKUQ.png" /><figcaption>Here’s the next piece of scroll in the drop-down list.</figcaption></figure><p>I stand in a place where <strong><em>I’ve got to thank everybody who’ve lent me your ideas </em>VERBALLY</strong>. Of course, <strong>I meet up with a lot of people, promoting my app</strong> :) I should mention a few names here.</p><p><a href="https://www.facebook.com/ganapathysubramaniam.r"><strong>Ganapathy Subramaniam</strong></a>, <em>Supervisor@Ford India</em> called on me amidst his <strong><em>crammed timeline</em></strong> to <strong><em>offer new ideas and opportunities</em></strong> in regard to Android App Dev. He takes it from a common man perspective to <strong>suggest some imperative features.</strong></p><p><a href="https://www.facebook.com/rohithsv.rohithsv.1"><strong>Rohith</strong></a><strong>, </strong><a href="https://www.facebook.com/profile.php?id=100008436280632"><strong>Revanth</strong></a><strong>, </strong><a href="https://www.facebook.com/sandeepkiran.js.22"><strong>Sandeep</strong></a><strong>, </strong><a href="https://www.facebook.com/akhil.krishnar.12"><strong>Akhil</strong></a><strong> &amp; </strong><a href="https://www.facebook.com/profile.php?id=100007238538911"><strong>Gautam</strong></a><strong> were a few more who regarded my work, with their time</strong>. They were among the very few <strong><em>who heard out my demo in-person and were expressive in all ways possible.</em></strong></p><blockquote>Let’s now take a look at the statistics we’ve got.</blockquote><p>The console should’ve been effortless. <strong><em>Please go easy on me, if it didn’t.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*2Aswq5eOhnk6AiVASb-OUA.png" /><figcaption>How easy was the console to understand and work upon?</figcaption></figure><p>There were a lot who <strong>frightened me into believing that my idea was no different from Saavan or Gaana.</strong> But <strong><em>upon close look, I revealed its uniqueness</em></strong>. Of course, <strong><em>with Saavan, you can connect with friends and share songs, but where is your voice over a song?</em></strong> I mean, can you comment on a song in Saavan? Even with Gaana, <strong>its ultimately down to the songs they offer</strong>. What if I like a Classic song that is missed out? This way, I assure the singularness of my idea.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*4A67zZGm4MYGy8aidqqnMw.png" /><figcaption>Was the app idea new?</figcaption></figure><blockquote>The most compelling feature was a Dropbox account.</blockquote><blockquote>There were very few <strong><em>who took it to the roads, when it came to adding media files via Dropbox</em></strong>.</blockquote><p><strong>Jayaram sir was the pioneer and kept asking me questions <em>that modeled my app’s course in the last few days</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*knlT_mH91K_T8Cj9g5JxeA.png" /><figcaption>What the Dropbox a tough job?</figcaption></figure><p>The <strong><em>app flow was meant to be frictionless</em></strong>. I checked on that with utmost care, though as time passed, <em>my updates didn’t reach a lot of people</em>. They should be fine with the latest version of Crashz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*Y5oQtjUrtHCEUeTpjHoHTQ.png" /><figcaption>Did it run fluid?</figcaption></figure><p><strong>Some wanted a song delete, others wanted a song edit to be a part of essentials</strong>. As said from an earlier blog, <em>this is one and only me building the app</em>. <strong>An one-man army can’t manage everything</strong>. I needs <em>hands</em>. But, I’ll do my level-best to bring this out in sometime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*A8h5-JbwfsJU-aPdXGNbsQ.png" /><figcaption>Did you like all the features?</figcaption></figure><p>This is a tricky question. <strong>The Social Platform is the king-maker</strong> and the <strong>king, Song-Tabs is equally robust</strong>. So, no wonder they have no edge over the other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*8RTM0wgv5x6tntIzQ_K7fQ.png" /><figcaption>Which feature you like the best?</figcaption></figure><blockquote>I <strong>expected a lot more answers on this question</strong>, but fortunately, it was an hand-full.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*P2ExFO1S4KEbikQKPvDzXQ.png" /><figcaption>What new features you would like?</figcaption></figure><ol><li><strong>The first wants me to bank on a new partner</strong>. Probably <em>after reading my Climax blog</em>, it <strong><em>should’ve made some sense, as to why I prefer Dropbox over other Cloud Storage Providers.</em></strong></li><li>The <em>equaliser is a cool way of configuring song frequencies as you like. </em>Maybe, I should give it a second thought.</li><li><strong><em>An audio converter is crucial</em></strong>, because people <strong>don’t have .mp3 always</strong>. I <strong>promote creativity and new ideas via my app</strong>. They could be <em>potential singers and bands who may want to share their concert</em>. The recordings <strong><em>typically come in .wav formats</em></strong>. I should be able to <em>play a variety in music formats. I’ll take this up</em>.</li><li><strong>Deploying on PlayStore</strong> was the very last thing I planned to do. <strong><em>When the internship ends and my app’s back-end is recycled at Hasura</em></strong>, then there’s <em>no point in pushing boundaries for all that effort it takes to deploy</em>.</li><li><strong>Syncing with fb and getting friend’s into my app is a great way of socializing</strong>. But, <em>am I ready for handling that huge a data</em>( Guys even have 1000 friends) and <strong><em>managing people with and without Crashz accounts?</em></strong> <strong>Google or fb OAuth Logins</strong> can be useful in tracking sessions, but integration of that scale is something I’m yet to be ready for.</li><li>Its <em>an easy process to download the song and save it in your local dir</em>. Its something that<strong><em> people not on an all-time internet would want</em></strong>. I’ll look into this in the coming days.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*TfJwDE5lKizYwwoutBqhog.png" /><figcaption>For all who felt it worth recommending, I’m indebted to you forever.</figcaption></figure><blockquote>This question is for you. I provide no inference out of these results.</blockquote><h3>The End</h3><p>From this blog, <strong><em>I review each of my app’s feature to some detail, highlighting scope for augmentation wherever possible</em></strong>. I do plan to add some of these in the near future.</p><p>But, I’m in <strong>the middle of lessons at my college, now that its August</strong>. I’ve <strong>projects for some big-head courses</strong>(<em>Data structures &amp; Algorithms</em>) :) I’ll be <em>refining my action strategy</em> in the coming days, with how I approach projects. <strong>Where should I start?</strong> Obviously <em>not the design, but the tooling</em>. Then, take one step at a time.</p><p>This internship <strong>has been a learning outcome unrivaled</strong> with anything I’ve ever taken up in my life so far. It taught me, <strong>things more than just coding. </strong>The <strong><em>essence of a developer</em></strong>, the <strong><em>persistence to never give up, distill your skills, and look for help</em></strong> — from a larger community — until you find your way out.</p><p>I <strong><em>promise users with updates worthy of the app’s concept</em></strong>, which they adore, in the imminent days. Though it may fall out of the internship’s scope, I’ve <strong>got virtues that seek for a better ‘developer’ in me</strong>. I’ll strive to live to that :)</p><blockquote>Please find my updated, bug-free, fixed up and all-boarded brand new app <a href="https://www.dropbox.com/s/cdm2i0643qmo5nm/brand_new_crashz.apk?raw=1"><strong><em>here</em></strong></a><strong><em> and my source code on </em></strong><a href="https://github.com/Hariharan98m/Crashz--Song-Sharing-App"><strong><em>github</em></strong></a><strong><em>.</em></strong></blockquote><blockquote><strong>Note:</strong> If <a href="http://hasura.io/">Hasura</a> are ready to sponsor my app for some-more time, I’ll be obliged.</blockquote><p>Well then, <strong>since I’m into my semester days</strong>, I can’t <em>go on writing anymore blog stories</em>. But, this <strong><em>new experience of writing blogs has instilled a new feeling of an author in me.</em></strong> I should <strong>groom these skills as well</strong>. Bye then. Lets meet up on another different series :)</p><blockquote>This app is dedicated to you if you’ve stayed with Crashz till the end :)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c1aa8e0483a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Climax, atlast]]></title>
            <link>https://harimanikandan.medium.com/the-climax-atlast-50533be842d9?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/50533be842d9</guid>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Fri, 04 Aug 2017 09:26:57 GMT</pubDate>
            <atom:updated>2017-08-05T05:52:10.584Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is where I bring to your table, the Company Secrets of Crashz. The Quest for a multimedia DB ends right here and a tailored Media Player is in for a Grand Launch.</h4><p><em>Lets rewind the past and take a look at how the home page steered the app to command.</em></p><p><a href="https://medium.com/@vshshv3/the-runner-up-page-41d486396269">The Runner-Up Page</a></p><h3>The Song Page</h3><p><strong>A list of tabs featuring a song.</strong> <strong><em>Every song is a complete package </em></strong>— <em>Song Name, Composer, Bool Like, Comment Box, Comment List and Date added. </em>Not to forget that <strong><em>each song can play on a sandboxed Custom Media Player designed and hosted</em></strong> by your friendly neighbourhood ‘<em>hari</em>’.</p><blockquote><strong>Reader Note:</strong> This may feel like yet another update story, coz, I’ve kept <strong>some .mp3 and .jpg file handling techniques shrouded</strong> for sometime in this series so far.</blockquote><h4>Beneath the Cover</h4><blockquote>The song tab is a CardView stacked into a RecyclerView. The CardView template is designed with a Constraint layout tooling.</blockquote><h3>Cipher Unlocked!</h3><h4>The Challenge with Media Files</h4><p>We are offered with a <strong><em>Relational DB and even JSON blobs don’t hit the roads with a .mp3 file</em></strong>. I’m left with the local setup for a <strong>filestore DB</strong>, but I’d <em>problems with the filestore port forwarding</em>. A <strong><em>better proposition to make would be that the SSH tunneling simply can’t go on forever</em></strong> with my laptop working 24/7, which I recall from the <a href="https://medium.com/@vshshv3/how-about-a-dp-19316159f0c9"><strong><em>DP story</em></strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syHgJ7BroFgU4lVJhpLPEg.png" /><figcaption>shark made it clear that the PC has to be running and Wi-fi connected for the VM to be exposed.</figcaption></figure><p>Reminding you of the premises I’d made in the DP update story, <strong><em>concerning specifics, the response rate and interactivity, when it comes to a mobile app</em></strong><em>.</em> I can’t trade-off that with my laptop spinning live all-the-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*fPYuUxIbGbNMyKks.jpg" /><figcaption>How could I ever keep my laptop running non-stop ?</figcaption></figure><h4>Where can save a Song?</h4><blockquote>In a file hosting server, in the Cloud.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*7QEgkEIaM4A4-SJJ145eiw.png" /><figcaption>GDrive is a popular Cloud File Storage Provider</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*bdhQcw-wLDqlXxD0NSzasw.png" /><figcaption>Microsoft’s OneDrive was meant to integrate work files across devices.</figcaption></figure><h4>Why can’t you integrate with GDrive to add files on the go within your app, with built-in intents?</h4><blockquote>There’s a reason, I’d to work within the scope of the project.</blockquote><p><em>I can’t go about research and there are no </em><a href="https://developers.google.com/drive/android/get-started"><em>Google APIs that serve system</em>-<em>intents </em>with a <strong>sharable link of the song file</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*YNW-UYMUlRQWI2GWPkFKsQ.png" /><figcaption>This is how the drive APIs integrate android with drive.</figcaption></figure><blockquote><strong>Reader Note:</strong> I sincerely <strong><em>researched for weeks parallely with </em></strong><a href="https://developers.google.com/drive/"><strong><em>GDrive for some way of API integration</em></strong></a><strong><em> to save and fetch files</em></strong>, but in vain. Its easy to add files, but extracting a public link is out for user discretion and <strong>system permissions are nowhere revelant.</strong></blockquote><h3>Dropbox!</h3><p><em>This Cloud Storage Provider saved my day</em>. Now that I can save my files to my Dropbox Personal Cloud, I <strong>can easily get a sharable public link that could stream songs for me.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*P2J7ER7dXJ8Cp2hvsV3rdw.png" /><figcaption>Dropbox offers cloud storage, file synchronization, personal cloud, and client software.</figcaption></figure><h4>Why not GDrive? Why Dropbox out of nowhere?</h4><p>I tried GDrive, but when <strong>I play the file more than 5 times in a day, I got this Snap Message.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*lS45PklKfCYqBX9qdodalw.png" /><figcaption>When too many people access the same file in a day, the Drive Server refutes any more requests.</figcaption></figure><h4>The DP Story Revisited</h4><p>When <strong><em>I said that I’d secrets to reveal with the ‘*’ in the update post</em></strong>, I was referring to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*hdijHvlJfilCd8Pm0X6ULA.png" /><figcaption>URL response corresponding to the request below.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*JAjBUQEP-ohLrTYZJpB67A.png" /><figcaption>A typical query for a DP link.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*eDNpDZjQIHFLdlOzYChSvg.png" /><figcaption>Here’s how the UI looks. Its a custom-alertbox. Pretty easy to handle over creating an activity :), coz, your activity pages are limited to 3. I’ve talked in depth on how permissions and camera intents steal the show, in the last update. Here’s its follow-up.</figcaption></figure><h3>The Plan</h3><p>Let me come again. <strong>The Pre-Requisite to Crashz is a Dropbox account.</strong> <em>I don’t endorse raw .mp3 file links from any-other Cloud File Service.</em> Next, you’ve got to <strong>upload your file to Dropbox</strong>, enabling <strong>sharing via HTTPS</strong>, and <strong>give me the link</strong>. The <strong><em>link is stored into my tables</em></strong>. When you play a Song tab, <em>I stream the song for you from the URL.</em></p><h3>Does the URL streaming lag my UI thread?</h3><p>You needn’t worry on that. <strong><em>I’ve got the most optimized Media Player playing the song, so your Internet Data Use is trivial and the app works seamlessly.</em></strong></p><blockquote><em>Now, lets gear up and make the insert calls.</em></blockquote><h4>Insert a Song</h4><p><strong>The song table beyond any shadow of doubt is alive</strong>. So, <em>lets insert something and kindle some fire.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uQD3s0DAShn_NveKAOT1A.png" /><figcaption>This is a simple song insert.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*AzRRUdBUOBD356IYiCJoEg.png" /><figcaption>This is how the insert UI looks. Again, a custom-layout alert, designed by yours truly.</figcaption></figure><h4>The Song Tab Explained</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*Z9RaNQOc01Rtrt95R7wLVw.png" /><figcaption>There goes a list of song tabs, each with a name, composer, date_created, num_of_likes and comments synced into a single entity, loaded from a view in one shot. Hover over the Thumbs up to like the song. The little arrow to the right is the mix &amp; pix!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*02fV8nW_TKvI5-QK-qRHTg.png" /><figcaption>Tap on the banner to see the comments added. Its an auto-scroll viewpager, so displays new pages on its free will.</figcaption></figure><h3>Beneath the Cover</h3><ol><li>The <strong>Media Player holds a lock on the Device’s Power Manager</strong>. Obviously, <em>that keeps it playing even when you lock your screen</em> or <em>the system goes into stand-by.</em></li><li>It also <strong>holds Wi-fi lock</strong>, if <strong><em>you are connected to a hotspot</em></strong>, so that there <strong>are no spurts when playing a song</strong>.</li><li>I’ve designed <strong>the Media Player to work only within the scope of the app</strong>. If <em>you navigate out of the app, on a back-press, the song won’t be playing in the background anymore</em>. <strong><em>Why?</em></strong> Its Coming up.</li><li>The <strong><em>auto-scroll comments view-pager was imported from a </em></strong><a href="https://github.com/Trinea/android-auto-scroll-view-pager"><strong><em>.jar package </em></strong></a>into the gradle. Its not worth bragging about.</li><li>The <strong>Like Thumbs up switching to a Heart is the work of no selectors</strong>. A <strong><em>simple setImageResource() to the button upon ‘select’</em></strong> is all there to it.</li><li><em>‘Your Songs’ Page is easy to compute</em>. <strong>I pass your hasura_id instead of user_id to fetch your songs</strong> :)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*DSRqkJeuvVgoWUQ00g9FTw.png" /><figcaption>The Crashz Media Player in action</figcaption></figure><h3>Why is the Media Player not run as a System Service?</h3><p>A system service <strong>runs in the background even while navigating out of apps</strong>. A typical example would be a Task Manager. Its possible to lock the device’s speakers to run music, between app sessions. <strong><em>But, whats the app’s intention?</em></strong></p><h4>The Intended Audience</h4><p>This app <strong>targets long-time commuters</strong>, people <strong><em>who spend hours in travel, typically, us, Day-Scholars</em></strong>. There is no way a commuter <strong>could stand hours of journey without some recreation</strong>. If you were <em>to listen your own songs, it gets horrible after a few days</em>. Boring, I would say. If <em>it were your friends’ songs, there are some intriguing moments</em> <strong>when you click on the song’s handle, awaiting for a thriller </strong>:)</p><h3>End of Design</h3><p>With this we come to the end of Crashz Design Architecture. Its taken me a lot of time and effort to design and code the app’s pages.</p><blockquote>But self-conscience and passion kept me going to what the app’s turned out.</blockquote><p>There are a lot to thank for this. <strong><em>But, lets save it all for the next story</em></strong>. And, please <strong>look into my </strong><a href="https://github.com/Hariharan98m/Crashz--Song-Sharing-App"><strong><em>git repo</em></strong></a><strong> to exactly know how things are done.</strong></p><p><strong><em>So Long then :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50533be842d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How about a DP?]]></title>
            <link>https://harimanikandan.medium.com/how-about-a-dp-19316159f0c9?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/19316159f0c9</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Wed, 02 Aug 2017 09:29:50 GMT</pubDate>
            <atom:updated>2017-08-02T09:56:46.832Z</atom:updated>
            <content:encoded><![CDATA[<h4>This is an update story for the App’s Mastermind, the 2nd Screen</h4><p><em>Lets track some past with the prequel designer stories.</em></p><ul><li><a href="https://medium.com/@vshshv3/data-modelling-43eeb7b3121e">Data Modeling</a></li><li><a href="https://medium.com/@vshshv3/data-api-calls-e0f5772a4912">Data API Calls</a></li></ul><blockquote><strong>This update has got nothing to do with making Auth Calls.</strong> So lets leave it at that.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PkZo0QqDN4QAtGJsGHllA.png" /><figcaption>The Commotion on slack with ngrok. I’m the initiater of course :D</figcaption></figure><h3>A Pre-Note:</h3><p>From an earlier update story on the UI, readers could’ve caught a faint suspicion on <strong><em>what’s coming with inserting a song or setting a DP.</em></strong> To be more abstract, <strong>what is gonna be the plan for a filestore multimedia DB</strong>, with <em>now that I can’t tunnel my local endpoint to a public domain 24/7</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*3ECmTNNeq0jtiCjBnMqAYw.png" /><figcaption><a href="https://github.com/hasura/ngrok"><em>Hasura’s fork of ngrok</em></a>, to expose local setup publlic.</figcaption></figure><p>Remind you, <strong>with mobile apps, its all about responsiveness and impulse.</strong> And my definition for <em>the scope of interactivity and dynamism is a class apart</em>. That leaves me with….. <strong><em>Read the blog on 3rd screen, the Song Page for that :)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*neQVKbfGKASrkWo8.jpg" /><figcaption>How cogent is the response rate with mobile apps?</figcaption></figure><blockquote><strong>Reader Note:</strong> From the previous post, it should’ve been crystal clear for the reasons to chose to make a plot out of updates :)</blockquote><h3>What update?</h3><p>This one is around a feature that’s gripping the selfie world. <strong>A DP is almost natural rather phenomenal for most of us today</strong>. <em>I wouldn’t deny a requisite factor in my app either.</em></p><p>Those <strong><em>blue circles you’ve been seeing so far are artistic impressions of a profile pic</em></strong>. If you are one of the kind <em>who fronts a formidable personal image over your interests</em>, <strong>you are in a must-read story.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*8e3TIbT1PBhD9SSKUNCyDQ.png" /><figcaption>The blue circles are testimonial to host a DP.</figcaption></figure><h4>How to set a DP?</h4><p><em>You can add a profile pic to my filestore DB and click open your friends’ anytime</em>. <strong>Just tap on their circular minuscules and you zoom into their larger pics on a dusted out ‘Board of New People’</strong>, with high resolution.</p><blockquote><strong>Note:</strong> I don’t wanna get into the filestore details just yet. Look for my 3rd screen.</blockquote><h4>With the Data models</h4><p>I’ve got myself a table <strong><em>with just 2 fields, the user_id and a profile image link</em></strong>. And, <strong>the your_friends view</strong> is now <em>bedecked with a link pointing to an image, so that I get friend_info in one shot</em>.</p><blockquote><strong>I still don’t make any statements on the file source</strong> :) A link is all I can say.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*r0NCswZpHJv9wUMQKtw-bw.png" /><figcaption>Note that the image_link is NULL when its not set.</figcaption></figure><h4>With the Data APIs</h4><p><em>There’s one and only one call to fetch the image.</em> <strong>Just the link from the profile_image for a a given user_id.</strong></p><p><strong>Insert</strong> <em>when you’ve got yourself a new pic</em> and you <strong>Update</strong> <em>when you’ve a stand-in ready. </em>A<em> </em><strong>Select</strong><em> to get your friends’ DP links </em>and of course your DP as well<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S0VrXzxo0p_gxX3MF5XQNQ.png" /><figcaption>Insert a DP</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LrdbMW14b5_0Zs42EyUqIA.png" /><figcaption>Update your DP</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*M0Pw0kj5LDo1EoLOcMtQgw.png" /><figcaption>A simple select query to get your DP. The response * is covert for now!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*O9Pmal8jzCoVaSa6npoYtA.png" /><figcaption>This view was computed from a series of parent views</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*cr1tcmYqA7hULBAR7DPoXg.png" /><figcaption>The hierarchy tracks back to your_friends. The friend_data views are intended to wrap the data fair and square.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*rh1YBYwFwsr4SPoNibwY2g.png" /><figcaption>friend_data2 is one such view embedding in and outs on your friend’s profle. friend_data3 is inherited from the former &amp; encompasses in its entirety, a tricky feature, the DP link which could be NULLABLE.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*e2fdKJZWNzpDNttIfVPV0g.png" /><figcaption>I recall that, your friend DPs are fetched in *</figcaption></figure><blockquote><strong>Beneath the Cover:</strong> I’ve <strong>a Shared Preference in place to flag this step</strong> if at all <em>the user sets a DP for the first time</em>. Once <strong>the flag is true, thereon I update the set record.</strong></blockquote><h4>Anything in the Mix?</h4><p><strong>To make the feature beckoning, I’ve an inter-app intent system set.</strong> You <em>can capture photos from my app rightaway</em>, without having <strong>to hand-operate the Camera app</strong>. Your <strong><em>pic gets saved instantly to Pictures Album, Gallery.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*8-KDoRr5S6EuMSfe7v8XLg.png" /><figcaption>You are pinged for permissions, run-time.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*QJgzCnu8UblqytuFEuaZkQ.png" /><figcaption>Toast showing a success message that your photoshot was pinned to Gallery</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*WtTltDT6FIHbz7xcWEfkXA.png" /><figcaption>If you deny permission, I leave a reader note for you the next-time.</figcaption></figure><h4><strong><em>Beneath the Cover</em></strong></h4><p><em>I can start an activity instance of another app from my app and get the response with the content-uri in the onResult call</em>. First <a href="https://developer.android.com/training/permissions/requesting.html"><strong>I ask for user permissions with camera and file access</strong></a><strong>.</strong> This is <strong><em>typical with android versions&gt;5.0.</em></strong> Then, I <a href="https://developer.android.com/training/camera/photobasics.html"><strong><em>capture something and create a file</em></strong></a><strong><em> into which I trove in the pic</em></strong>. Finally, I put the snap into Gallery for an instant Click-Upload.</p><blockquote><strong>Note:</strong> I use a professional approach with <a href="https://developer.android.com/reference/android/support/v4/content/FileProvider.html">fileproviders</a> to get legitimate file paths.</blockquote><h3>What about ‘my’ DP?</h3><p><strong><em>If you set a DP, cool, you can’t inflate yours</em></strong>. Coz, you have it saved locally. <strong>I want people looking at others for a change :)</strong> Your DP is neatly crafted into a disk at top-right of the action bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*VDZnTZODz37DJfP65TW9Ng.png" /><figcaption>Look at my DP circle, after I’d set one.</figcaption></figure><blockquote>But mind you, I’ve tried to snap this strife out of the way, but in vain</blockquote><blockquote>Menu bar reloads to prepare options as nav drawers open and close, so that I discard the irrelevant tools showing up. But, this took a toll on my DP, as it refreshes every time. It should be faster with cache :)</blockquote><h3>Beneath the Cover</h3><ol><li>I’ve used a <a href="https://developer.android.com/training/animation/zoom.html"><strong><em>zoom in out animation</em></strong></a><strong><em> for the display</em></strong>.</li><li>I’ve got a <a href="http://square.github.io/picasso/"><strong>Picasso</strong></a> <strong><em>loading the image into a bitmap from an url</em></strong>, for both the icon (<em>which I achieved with a transform function for a croppped circle</em>) &amp; the enlarged views.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*xE2xbxZGStvOrNEB58n_4Q.png" /><figcaption>There a zoom animation for the DP to hit the porch.</figcaption></figure><p>A few other technical points are discussed then and there.</p><h4>Conclusion</h4><p><em>I would commend the DP as a trendy way of finding people when it comes to Social Media.</em> <strong>But, I’m happy for how I managed this feature into my own app, with my own data style.</strong></p><blockquote>As for when I load these pics, I should really say, I load the entire Home Page script in a shot when the app starts :) . After that, its all dynamic.</blockquote><p>Please <strong><em>find my Postman collection </em></strong><a href="https://documenter.getpostman.com/view/1690547/dp_update/6n1XEwJ"><strong><em>here</em></strong></a> for more. Refer up to the story on <a href="https://medium.com/@vshshv3/data-api-calls-e0f5772a4912"><strong>Data API calls</strong></a> to know about <em>Postman Collections.</em></p><p><em>Hope the update helped clearing buffers in the readers’ minds :) Stay amazed.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19316159f0c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Tweak]]></title>
            <link>https://harimanikandan.medium.com/a-tweak-5553dec89a8?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5553dec89a8</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Mon, 31 Jul 2017 09:37:47 GMT</pubDate>
            <atom:updated>2017-07-31T09:37:47.156Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let me come through with a little pull, I’d toiled around with the previous story.</h4><p><em>Let’s revisit the last blog in a jiffy,</em></p><p><a href="https://medium.com/@vshshv3/the-first-screen-83a13db01117">The First Screen</a></p><h4>Why update?</h4><blockquote>A first look can convey a mental visual of what I desire.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*aEDy4X3IMmxaZADpI_eWig.png" /><figcaption>Ins and Outs of an android app</figcaption></figure><p>But, <strong><em>with the technical aspect counting for a furnished app</em>, I can’t afford to gamble on user-experience</strong>. This story is <em>around a small fix that I’d to tussle to get the app running seamless.</em></p><h4>Where update?</h4><blockquote>This update is unfortunately on the UI. There’s no better place to impress users or scope for a revision than the Interface.</blockquote><p><strong><em>Data modeling and APIs are well-defined for the 1st screen and infact, don’t play the complex bit here</em></strong> (Comeon, its just a user table with insert and update). I <strong>came upon this hassle while I’m busy amidst the 2nd screen</strong>, Home Page. I <strong><em>specifically wanted to pin this up so that, I explicitly fulfill my deliverable targets</em></strong> (<em>self-satisfaction, thats all :D </em>)</p><h4>What update?</h4><p><strong>There was a ‘gear-jam’ that I’d to make with the Edit Profile Action bar. <em>For the first time a user logs in, the Action title is plain &amp; simple.</em></strong> But, as the user visits the page again, <em>the HomeUpNavigation is enabled to take him back home.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*lLE38tzyBQonXwbeNh6GKA.png" /><figcaption>A simple gnarled Action bar with no colleague controls shown up at the time of registration.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*4MX1zV5pVbvBjD09pjoCkg.png" /><figcaption>An advanced peer-to-peer toolbar that’s got an amazing connectivity, shown up only after the reg.</figcaption></figure><p><em>The flaw in the plan was around this</em> — there was <strong>no instance of the parent activity when the up button was shown</strong>, so upon click, it shut my app down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*Pxegf0tbwMf_0yzMfRcy3Q.png" /><figcaption>This keeps popping everytime you flush a stack or load the homepage. Annoying right?</figcaption></figure><p><strong><em>The home screen gets reloaded everytime </em>I navigate in or pop a page off the activity stack<em>.</em></strong> I set a <a href="https://inthecheesefactory.com/blog/understand-android-activity-launchmode/en"><strong><em>singleTop launchMode</em></strong></a> to check on this. <strong>Easy solution, right</strong>. It also <em>solved me the trouble of developing a swipe left transition when popping a page off the stack.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*G-GzvmjPgOt64AANSB4BFA.png" /><figcaption>Here’s one who opens his thoughts for others to cognize.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*L0_oZcWhnzseO_ibbIySxQ.png" /><figcaption>Not everybody is comfortable with sharing a personal description.</figcaption></figure><p><strong>I faced some challenges with parsing the user data into readable text — </strong><em>omitting blank data and rendering a formatted ready-to-read version of the available data fields</em>.</p><p>I’d to tell you this with this post, coz, <strong>this is an exclusive UI update tracker</strong>, &amp; probably the upcomings needn’t graze this side of my android development.</p><h3>End Note</h3><blockquote>I <strong>didn’t want to sneak into the begone stories and alter content</strong>. I want to put up <strong>anything new into a story so that I comprehend for myself why I’d to make these changes</strong> &amp; what was <strong>my thinking strategy</strong> when I designed the page in debut. <strong>That little conscience can help evolve a developer to a DESIGNER. </strong><em>That’s my stake for the day.</em></blockquote><blockquote>That said, Every update deserves a PLOT.</blockquote><p>So long for the next story :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5553dec89a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Runner-Up Page]]></title>
            <link>https://harimanikandan.medium.com/the-runner-up-page-41d486396269?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/41d486396269</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Sun, 30 Jul 2017 12:53:25 GMT</pubDate>
            <atom:updated>2017-07-30T13:05:05.668Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Epicenter of Social Connections &amp; Song Pages</h4><blockquote>I rewind the past of how the profile page set the stage for a cogent mass social network. Here, people find you with your name, work place and your work quarters (the city). They even associate your music story with your personality and that’s what a social platform is all about.</blockquote><h4><strong>Inherit proposed ideas</strong></h4><blockquote>With the 2nd screen, the Home Page, I extend the above premises and bring to life the 3-pillar views from my Data Modeling Story — Send-an-invite, confirm-invitees and your-friends.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*FDgxkLBTkurcGXkLE_4JwA.png" /><figcaption>Friends make a difference in our life, by hook or song. I believe a soothing song could change how we feel.</figcaption></figure><h3>The Board of New People</h3><p>There’s a cardboard pinned on the screen top tagged with the caption — <strong>‘Guys you may know’</strong>. This is a <strong><em>place for you to add new friends</em></strong>. The Real Cool part is that, <em>Confirm-invitees tabs are stacked on top of Send-an-invite tabs.</em></p><h4><strong>Why?</strong></h4><p>Most of us wait for people to find us, rather than we inviting the lot. So, invitees are prioritized so that we can add value to their invitations, over people who we may want to invite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*eClrbRHvC4LiCaCGg0wlPA.png" /><figcaption>There you go, is the list of people, neatly crafted into a CardView Box and since, I’m a newbie here, I’ve not got any friends.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*464kEFZe3vGFshmWw1bPcQ.png" /><figcaption>I show you a glimpse of my relinquished ‘Developer’ account. I found a newbie named ‘User’ a while ago. And, I’ve entreated him into joining my channel. That leaves me with nobody on the Board, coz, I’m connected with everybody in the fray.</figcaption></figure><blockquote>Then, comes the bunch of guys you may request to (for a friend).</blockquote><h3><strong>Social Etiquette</strong></h3><blockquote>We don’t want random people to look at our profile description, say, hobbies and music patterns, nor do we want them tuning to our songs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*zjLSNjZnkE2lDj9-PJUNaA.png" /><figcaption>Hmmm, I’ve got someone who wants to tune into my songs. Cool, let me add him.</figcaption></figure><p>Once <em>you identify your friend</em> from the ‘<strong>Board of New People</strong>’ and <em>mutually connect, you are free to look into each other</em> and ‘<strong>Your Friends’ List</strong>’ gets decorated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*XBSJ3AwiOYeIDEwNGXHEhg.png" /><figcaption>I just tap on the Action clip and I’m now connected with Hariharan. Hari leaves my Pandora Box to exclusively get a tab on my friends’ list.</figcaption></figure><h4><strong>My friends</strong></h4><p>In the list of tabs featuring your friends, one after another, <em>simply tap on their handles to check out on their little personal page.</em> On the <strong><em>right-end of the tab is a floating chord</em></strong> that takes into your friend’s ‘<strong>Song Page</strong>’, which I’ll take up for a story on the 3rd screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*GNVo1aBCRMIZZ6V2QrMT7Q.png" /><figcaption>I spout on my new friend and there goes his personal story, sketched bit-by-bit.</figcaption></figure><h3><strong>The Navigation Drawer, Open!</strong></h3><p>A gesture swipe to the right, <strong><em>unfolds the navigation tab that offers some cool choices.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*eKctJ847tcCxkBF-Zat2Ew.png" /><figcaption>The Hodgepodge of my app features exposed! An easy drive for a beginner.</figcaption></figure><h4>1. <strong>Edit — Profile</strong></h4><p><em>An acquaintance of my story series — Regular Readers know for sure :)</em></p><h4>2. <strong>Your Songs</strong></h4><p>The unraveling of the 3rd screen with a tint of your flavour —<em> Stay tuned for this.</em></p><h4>3. <strong>Add a song</strong></h4><p>You get an action picker to choose audio files from your device. <em>Add songs instantly to my filestore DB on Hasura.</em></p><h4><strong>4. Update your DP</strong></h4><p><em>Set a profile pic so that people can find you</em>. I’ll come with <strong>some action strategy on this. The blue circles play the part of a DP as for now.</strong></p><h4><strong>5. Logout</strong></h4><p><strong>Signs you out.</strong> <em>Your active session ends here.</em></p><h3><strong>Never forget</strong></h3><p>There’s an app action bar on top of the page with a Logout menu, next to which is your DP cropped to a circle. <strong><em>Hover over your DP and you’ll still be taken to the profile page.</em></strong></p><h3><strong>Beneath the cover</strong></h3><ol><li>The ‘<strong>People Cardboard</strong>’ is a <a href="https://developer.android.com/reference/android/support/v7/widget/CardView.html"><strong><em>CardView</em></strong></a> holder.</li><li>I display <strong><em>every guy in a fragment, stacked into a view pager</em></strong>. There are some <strong>groovy transition animations running backdrop</strong>.</li><li>If you’ve <em>befriended everybody</em> on <strong>Crashz</strong> or if it happens that you are <em>connected with everybody,</em> an empty insignia, the ‘<strong>Nothing to show</strong>’ fragment is slid over the CardView.</li><li><strong><em>If you add a friend or confirm someone</em></strong>, you’ll be seeing a mild <strong>fade in out, </strong>an effect by the <a href="https://developer.android.com/training/transitions/transitions.html"><strong><em>Transition Manager</em></strong></a> &amp; a <a href="https://developer.android.com/reference/android/support/design/widget/Snackbar.html"><strong><em>Snackbar</em></strong></a> throws Open.</li><li>The <em>sneak peek into a little dropdown profile of your friend</em>, is again the handicraft of the one &amp; only <strong><em>Transition Manager.</em></strong></li><li>The <strong>Just a Bit</strong> Progress Dialog is <em>Custom-made</em>, <strong><em>tailored by yours truly</em></strong>. I’ve used <strong>2 selector </strong><a href="https://developer.android.com/guide/topics/graphics/2d-graphics.html"><strong>drawables</strong></a> and a <strong><em>layout to affix the </em></strong><a href="https://developer.android.com/reference/java/nio/channels/Selector.html"><strong><em>selectors</em></strong></a><strong><em> in place</em></strong>.</li></ol><h4>Ending On a High Note</h4><blockquote>I save the App’s Climax for the next story.</blockquote><blockquote>Until, then <strong>lets Stay Calm for the Ice Breaking Challenge</strong>, <em>my speculations about a </em><strong><em>Multimedia DB </em></strong><em>and a </em><strong><em>Media Player</em></strong><em> </em>:)</blockquote><p><strong><em>Note to Readers: </em></strong>I’ve tried to <strong>keep the UI design and functionalities, as abstract as possible to define a greater scope for a range of readers</strong>. If you are <em>interested to really know the back-end side of how things work</em> in regard to the features I’ve talked about so far, <em>you are most welcome to read my </em><a href="https://github.com/Hariharan98m/Crashz--Song-Sharing-App"><strong><em>github repo</em></strong><em>.</em></a></p><p><em>Stay tuned to my channel :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41d486396269" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The First Screen]]></title>
            <link>https://harimanikandan.medium.com/the-first-screen-83a13db01117?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/83a13db01117</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Sat, 29 Jul 2017 16:14:57 GMT</pubDate>
            <atom:updated>2017-07-29T16:17:06.120Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>It’s conventional to start building anything with a plan and there goes a prequel of stories that define the structure of my app, in its entirety.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*OvgUJmw4BmOwNXg9ekEaWA.png" /><figcaption>My Crashz Guitar Symbolizes a Music World full of Peace, Love and Harmony</figcaption></figure><p>Look out for <strong><em>Beneath the Cover</em></strong> sections of this blog to <em>unveil the underlying technology.</em></p><h3>My Speculations</h3><blockquote>If the Login/Register Page doesn’t count for a screen in scope of the internship, it’s never a futile proposal to design one that’s a starter for a fresher.</blockquote><p>I can put some words into what my app <strong><em>is all about with some groovy, that catches the user attention,</em></strong> esp. when it comes to android apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*od1IX5uRDNse-kat4VjSmA.png" /><figcaption>This is my 3 pager Welcome Screen and I unwind the curtains over my app screens for the first time, in the journey so far :)</figcaption></figure><h4>The Starter</h4><blockquote>I say what the user can put inside the app.</blockquote><p><strong><em>I can also talk about what the app offers.</em></strong> It’s basically <em>a social media platform with friends tuning into each others’ song collections</em>. They <strong><em>comment on songs and tag them with likes</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*r8AQL2QIZyIhwQABdJ6-Fw.png" /><figcaption>The page on Social media, the essence of one’s voice in a community.</figcaption></figure><p>Then, I go further into asking the user <strong><em>if he’s got an user account with Crashz </em></strong>—<em> yup, thats’ my app’s brand name, by the way :)</em> — <strong>or if he’s a fresher.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*bsV-u6WVIBvIu8l0GnY7mA.png" /><figcaption>The xml design blueprint of the welcome footer fragments.</figcaption></figure><blockquote><strong>Beneath the Cover: </strong>I’ve used a <a href="https://developer.android.com/training/animation/screen-slide.html"><strong>viewpager</strong></a><strong> to host the welcome screens</strong>. The first 2 screens are <a href="https://developer.android.com/training/basics/fragments/creating.html"><strong>fragments</strong></a><strong> instantiated from the above constrained blueprint</strong>. I’ve used a <strong>depth in transformer for the transition effects.</strong></blockquote><h4>Fresher’s Way In</h4><blockquote>If you are a fresher, sign up for Crashz.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*fjMnDEUUOa0mf9X1rxrVsg.png" /><figcaption>Login or Register</figcaption></figure><p>I’ve got the <a href="https://msg91.com/"><strong><em>MSG91</em></strong></a><strong><em> </em></strong><a href="https://docs.hasura.io/0.6/ref/auth/configuration.html#mobile"><strong><em>Gateway setup for OAuth login via Mobile</em></strong></a> and for one-time mobile verification, which I recall from the last blogpost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zW22vb_kZvI4zwtK.jpg" /><figcaption>MSG91, my OTP Partner. I would’ve gone with Social OAuth Logins, but a mobile OTP identity appeals the best with a mobile app.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*uKVJRq_IlYaLnBWErVm-aQ.png" /><figcaption>This is how the hints look on a blank Register page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*hrxZ-NrdgG3GDbRqM__rtA.png" /><figcaption>Upon clicking Submit with just the 3 fields, you’ll be prompted for an OTP.</figcaption></figure><blockquote>When prompted for OTP, <strong>just copy paste from your Messaging clipboard </strong>&amp; Submit.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*QB8OH_3nZC9yRxCy9WmDlw.png" /><figcaption>Hasura Auth Console gets decorated.</figcaption></figure><p>Cool, you are now into my Auth tables :)</p><h3>Let’s Interact a Bit</h3><p><strong><em>The first screen in a First Look</em></strong></p><p>I’m finally grazing the opening shots of my first screen. <strong><em>It’s imperative to get some basic user profile into the data tables</em></strong>, — <em>esp. when it comes to Social Media apps </em>— so that he is <strong><em>presented with some uniqueness essentially.</em></strong></p><blockquote>From my stories so far, it should be pretty obvious for how I do that.</blockquote><h4>What’s Identity and what’s personal?</h4><blockquote>You can be identified with your name, place of work or your city. But, sharing your emotions with music, life events and a bit about your hobbies is the personal side of you.</blockquote><p>Users may feed on that part for their friends to know them better. <em>But otherwise,</em><strong><em> I strictly don’t encourage people without self-note (on name, work &amp; city) to be able to make friends or add songs or do anything at all with the app.</em></strong></p><h3>The Cliffhanger</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*TZ75hu2twvt0ZsxW1vnpKw.png" /><figcaption>Now that you are registered, you are on permit to cross the Sign In Page.</figcaption></figure><p>Once you register and login for the first time, <strong><em>you get the edit profile screen.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*cCtsCXgfYrJqGpUuIwg7Hg.png" /><figcaption>Here comes the Main Picture after weeks of Trailers :)</figcaption></figure><blockquote>It never takes you to your home screen until you fill the debated small piece of yourself, even when you restart the app.</blockquote><blockquote><strong>Beneath the Cover: </strong>I’ve <strong>used </strong><a href="https://developer.android.com/guide/components/intents-filters.html"><strong>intents</strong></a><strong> to check</strong> on that. Once an <strong>user registers, I put a bool tag on a </strong><a href="https://developer.android.com/guide/components/activities/parcelables-and-bundles.html"><strong>bundle</strong></a><strong> object</strong>, and passed it with the intent to the sign in page. This <strong>tag indicates a first time login</strong>. If true, it takes the user to the Edit Profile and <strong>saves the tag into a </strong><a href="https://developer.android.com/training/basics/data-storage/shared-preferences.html"><strong>SharedPreference</strong></a>. Even if you <strong>abort the app, leaving the page, you are still logged in &amp; your tag is not flagged</strong>. So, you <em>will revisit your profile nevertheless you lend the elementary--Who you are.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*89lPpVSoqDorgWLeiafy0A.png" /><figcaption>I’ve got some profile into the app.</figcaption></figure><blockquote><em>And once you save your profile, </em><strong>HomeUp Navigate to the back stack is set</strong><em> from thereon.</em></blockquote><p>Happy Tuning and Posting.</p><h3>A Special Tweak</h3><p>In further as you update, <strong><em>the update queries are propagated to the correlative user record in the user table, if the tag is flagged</em></strong>(if tag is false, it’s first time — So, I do an insert). But the best part is, <em>your data is written into a SharedPreference, retrieved and rendered for you everytime</em> to visit the <strong>Edit Profile page</strong>.</p><blockquote>You get to make some revisions of your personal stories and save them in no time :)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*Z7MC1RzdHP57zf_sp1cdyQ.png" /><figcaption>While I visit Edit Profile, to make an update, its surprising to find my past data there as ever.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*xveCLGDm9QG-0iMVmyiz2Q.png" /><figcaption>User is logged into my Hasura DB console. Hurrah.</figcaption></figure><blockquote><strong>Pretty Cool ah.</strong></blockquote><h3>For the Day</h3><blockquote>That’s it for the story of the day, <strong>which infact took me a week to cook :D</strong></blockquote><p>I’ve provided with links then and there for a better visual simulation of the underlying technology. <em>More coming up. So long for next time :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83a13db01117" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data API Calls]]></title>
            <link>https://harimanikandan.medium.com/data-api-calls-e0f5772a4912?source=rss-d4806714102f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0f5772a4912</guid>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Hariharan M]]></dc:creator>
            <pubDate>Sat, 29 Jul 2017 13:59:05 GMT</pubDate>
            <atom:updated>2017-08-02T09:55:21.943Z</atom:updated>
            <content:encoded><![CDATA[<p>This story is around simple CRUD queries with Postgres DB, running on Hasura.</p><blockquote>Let’s pin this down with the story on how my Data models evolved.</blockquote><p><a href="https://medium.com/@vshshv3/data-modelling-43eeb7b3121e">Data Modeling</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*CinNuxL1yKQb8T6F.png" /><figcaption>Share, test, document &amp; monitor APIs</figcaption></figure><h3>What is Postman?</h3><p>From my acquaintance with <a href="https://www.getpostman.com/"><strong><em>Postman</em></strong></a>, I put it in my own words.</p><blockquote>Postman is an API tool to build API requests and test the endpoints across Development environments.</blockquote><p>From IMAD, <strong><em>I know how crucial it is for the role of developers in the API Economy :)</em></strong></p><p>Of course, you can use a different tool to hit APIs, the one that is featured from IMAD, ‘curl’ to make a GET/POST request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7n3leNHrUvQdLEG-5sQ6wA.png" /><figcaption>A curl request to the login end-point of my IMAD app. -v shows the response headers. -X takes in the required REQ method, -H takes the type of the REQ body, — data takes the REQ body and atlast the URL.</figcaption></figure><p><strong><em>Cool thing here is you can even run a curl on a text file hosting the request. Thanks to @tanmaig for the demo.</em></strong></p><p>But, I prefer Postman for the compelling UI and the collections.</p><h4>What are the Collections anyway?</h4><blockquote><strong>I would say, its a box to put all your requests in one place and share with your team, </strong>a typical corporate logic for large scale API integration.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*500Y2WwT7Ijr8XigCvK_2w.png" /><figcaption>Its simple to create a collection, just click on the + icon, name your collection, describe it and create it.</figcaption></figure><p>You can run collections, clicking on Run and it iteratively goes through a demo of making API requests and rendering the test run response-results.</p><blockquote><a href="https://www.getpostman.com/docs/postman/collections/sharing_collections"><strong><em>Sharing Collections:</em></strong></a><strong> </strong>To share collections, you’ve got to sign in with Postman.</blockquote><blockquote><strong><em>Via Embed:</em> </strong>Then you can share a Run Embed, that is, a <strong>running instance of your collection gets uploaded on Postman servers</strong> at the shown URL and a HTML code gets generated, which makes it easy <strong>for anybody to import and run your collection from your docs, provided you have got the script embedded in it.</strong></blockquote><blockquote><strong><em>Via Link:</em> </strong>This should be really simple. Just get a link and <strong>the collection at that point in time is packaged into a JSON</strong> and ready to run on some instance of Postman. I use the <a href="http://blog.getpostman.com/2016/03/10/documenter-documents-apis/"><strong>Documentation Share</strong></a> to <strong>publish Postman blogs as my Collection docs.</strong></blockquote><h3>The HTTPS Layer</h3><blockquote>The API Gateway fronts the subdomain on Hasura running a TCP service. So your API calls are as safe as ever with SSL encryption to prevent random people from making requests to upstream services.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*6ClVoKPJyRmkvgE2PCmBAg.png" /><figcaption>The HTTP Client is filtered out in the HTTPS layer as shown. This helps defining access permissions for various roles. Another security feature for Postgres is the tunneling via SSH to run SQL commands.</figcaption></figure><h3>Down to the Ground</h3><p>For any app, Data API calls are imperative to sustain long-term data, <strong><em>unlike the web-counter we did on IMAD. I give here some insight into API calls I make to Postgres.</em></strong></p><h4>Insert User Data</h4><p>When an user first signs up for my app, I log the user into my DB.</p><blockquote>I ask for their <strong>Profile name</strong>(unlike the username, this is featured when you connect with people), <strong>workplace</strong>(to extricate users with same names), <strong>city</strong>, <strong>passion with music</strong>(their personal tastes and stories) and a <strong>self-description spanning a few lines</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyAvluXGl-HuBhZPZZ4tbA.png" /><figcaption>I’ve spoken extensively about the must-fill-in fields &amp; here’s the insert query.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Gg3wHJZGPepU7rBAd_Ymvg.png" /><figcaption>For a 200 success response, it affects an “user” row.</figcaption></figure><h4>Update User Data</h4><p>I save user stories(their music story and personality briefing) for later.<strong><em> So that they can update these fields on the go, anytime.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3kn_qh6ZJqyIOMNJy0vW3A.png" /><figcaption>Say, the user updates his Music style to Pop later on. I save the updated user_info into my “user” table. For a better view, look into my Postman collection.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*b98V1QALucOoBxWgdpLdaw.png" /><figcaption>I get a success reply for the intended update action.</figcaption></figure><h3>The Action Arena</h3><p>This a place for you to <strong><em>ping your friends with requests or affirm a pinging friend :)</em></strong></p><h4>Invite your mate to Crashz</h4><p><strong><em>Insert a new record into friend relation</em></strong>, and you are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*MwzC974uyK3CW_I-9z6hJQ.png" /><figcaption>I’ve invited 74 to the fair :)</figcaption></figure><h4>Vouch an invite</h4><p><strong><em>Simply flag the confirm to true</em></strong><em> </em>and you are mutually connected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6t1Y0wxirzTV9gD1BVRRLA.png" /><figcaption>Voila, 74 has confirmed. Cool.</figcaption></figure><h3>The ‘Fetch’ Show</h3><p>I have already seen to how this works with <strong><em>2 views — ‘send_an_invite’ (your intended audience) and ‘confirm_invitees’(respond to requests).</em></strong></p><h4>Fetch people who you may lend out invites</h4><p>If you wanna get this notorious list, its simple, <strong><em>as it comes pre-processed in a view for every user indexed by the user_id.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*tUEkMzW1NFfnwg4Rqd8ttw.png" /><figcaption>Just get the friend_id corresponding for your user_id.</figcaption></figure><h4>Fetch people from whom, you are in receipt of an invite</h4><p>You’ve just got to confirm your friend here and its simple, <strong><em>I’ve a view doing this for me, with a list of friend_ids that a user might confirm to, like a hashmap index.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*lZ2n0kL6f3B1DBD5aqGWUw.png" /><figcaption>I give my id and I get a list of friend_ids</figcaption></figure><h4>Fetch your friends</h4><p>I recall from the data modeling blog that <strong><em>I just need to feed my hasura_id and it gets me my friends</em></strong>, looking up on the your_friends view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*5ANTCrlqy5zPO641BTYa1w.png" /><figcaption>I get my friends with just my id.</figcaption></figure><blockquote><strong>Note:</strong> I’ve not actually shown the responses, because, <strong>we are dealing with real-time users here and can’t afford to leak data</strong>. But <strong>the response schema is always at hand with the story on Data Models.</strong></blockquote><h4>Insert a Song</h4><p>I’ve no working implementation or ideas for this, <strong><em>but I’m positive that, I’ll come up with some action-plan, hoping the filestore docs come up pretty soon. </em></strong><em>Though there is a song relation, with primo attributes, as follows :)</em></p><h4>Fetch mine or my friends’ songs</h4><p>I get the <strong><em>complete info pertaining to a song into an UI tab, by just selecting * from songs_likes_comments_info</em></strong>, on songs relevant to my friend’s id or my id, if it were my own songs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*kAE014cSGNDg55EPZ3r8Tg.png" /><figcaption>I recall that, every song comes pre-processed with a song_id, song_name &amp; composer_name( just to credit the composer).</figcaption></figure><h4>Insert a comment or a like</h4><p><strong><em>Any record insert into these relations count for a comment or a like.</em></strong> That way, job’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*NrFhDFexWdzh3wDVlYBPaw.png" /><figcaption>Like inserted into ‘Like’ Table for the song 18 by user 74</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*CDEW5NrF-u34GcoSvXb2yQ.png" /><figcaption>This is a comment, with a comment text on the same song.</figcaption></figure><p><em>What would you expect for a response?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*b98V1QALucOoBxWgdpLdaw.png" /><figcaption>A success response reflecting an affected row.</figcaption></figure><h4>Delete a like</h4><p>You might want to <strong>take your ‘Like’ back</strong>, <em>as with people tastes keep floating :)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*2UgnDAYjyVDaKCoCnSfSUA.png" /><figcaption>Delete your like for the song</figcaption></figure><h4>Get the comments for a song</h4><p><strong><em>Comments make user-experience richer</em></strong><em>, and some songs do have </em><strong><em>a bunch of associated text in the comments section</em></strong><em>, </em><strong><em>referenced by a FK song_id</em></strong><em>. </em>It’s easy to fetch comments this way :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*y3AGZsNNhQBSvsGjYVD9GQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*97bHI7GhFX7x8IJGbRRroA.png" /></figure><blockquote><strong>Note:</strong> Comments for a song can’t be pushed into a view. <strong>Its an array relationship, right? I know normalization techniques to some level from IMAD :)</strong></blockquote><h3>End Note</h3><p><strong><em>Please find my postman collection </em></strong><a href="https://documenter.getpostman.com/view/1690547/data_collection/6n1XF1h"><strong><em>here</em></strong></a><strong><em>. </em></strong><em>Its taken me lot of effort to document the same :)</em></p><p>It’s a Know-Your-Schema approach to first design APIs and then give them justice at the right time with app code integration. I realized this for the day,</p><blockquote>Querying is indeed a part and parcel of building APIs.</blockquote><p><strong><em>So Long for the next story :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0f5772a4912" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>