<?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 Mochamad Aris Zamroni on Medium]]></title>
        <description><![CDATA[Stories by Mochamad Aris Zamroni on Medium]]></description>
        <link>https://medium.com/@ma-zamroni?source=rss-14db0bd92cde------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9VaOpC_4kuHpDgJyigrkag.png</url>
            <title>Stories by Mochamad Aris Zamroni on Medium</title>
            <link>https://medium.com/@ma-zamroni?source=rss-14db0bd92cde------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:05:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ma-zamroni/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[Workaround for Whatsapp Business API to get Customer’s Current Location]]></title>
            <link>https://ma-zamroni.medium.com/workaround-for-whatsapp-business-api-to-get-customers-current-location-392c63b4b365?source=rss-14db0bd92cde------2</link>
            <guid isPermaLink="false">https://medium.com/p/392c63b4b365</guid>
            <dc:creator><![CDATA[Mochamad Aris Zamroni]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 06:45:34 GMT</pubDate>
            <atom:updated>2024-10-27T15:39:27.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>Workaround for Whatsapp Business API-based Application to Get Customer’s Current Location in One-Time-Only Manner</h3><p>Note: Note: Meta now provides built in mechanism for user’s location request (likely since Q1 2023) in <a href="https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-messages/location-request-messages">this API documention</a>.</p><p>Whatsapp Business API is usually used by business organizations or companies to communicate with their customers. In some cases, the company’s application server, e.g. CRM application, might need to know customer’s current location.</p><p>However, Whatsapp API doesn’t provide such information, except if customer shares his/her live location which most customers will not going to do. Meanwhile, most CRM applications actually only needs customer’s location in one-time-only manner.</p><p>We know that Internet browser can capture user’s location with user consent. So, the workaround is basically asking customer to open webpage which its Javascript will capture customer’s current location and send it to company’s application server. This is the flow of the basic functionality:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*Hpfg8CygTBsLCiccV0fskQ.png" /></figure><p><a href="https://zci.sourceforge.io/OTHER/whatsapplocator.svg">https://zci.sourceforge.io/OTHER/whatsapplocator.svg</a></p><p>This is example of simple HTML &amp; Javascript code that captures user’s current location and redirects the user back to Whatsapp application:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ca6021a656e62f0e1802a320b3338d8/href">https://medium.com/media/3ca6021a656e62f0e1802a320b3338d8/href</a></iframe><p>The security of the workflow can be improved in several ways to protect against brute force &amp; spamming, e.g.:</p><ul><li>Replace LOCATE.HTML with session-based dynamic page, i.e. “LOCATE.jsp?sessionid=3248738956746”.</li><li>Encrypt location coordinate data when it is sent from customer’s browser to company’s webserver OR when it is formatted into Whatsapp’s Click-to-Chat URL. You can use Javascript’s builtin encryption mechanism to encrypt the data with RSA public key (<a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt">https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt</a>). Function window.btoa can be use to convert binary data to Base64 text format.</li></ul><p>My other articles:</p><ol><li><a href="https://www.linkedin.com/pulse/vertical-gantt-chart-mochamad-aris-zamroni/">Vertical Gantt Chart</a></li><li><a href="https://www.linkedin.com/pulse/data-migration-strategy-conversion-techniques-mochamad-aris-zamroni/">Application Data Migration and Data Conversion Techniques</a></li><li><a href="https://ma-zamroni.blogspot.com/">Blogspot1</a></li><li><a href="https://zamroni111.blogspot.com/">Blogspot2</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392c63b4b365" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Displaying Unstructured Data in Table]]></title>
            <link>https://ma-zamroni.medium.com/displaying-unstructured-data-in-table-1a7704768aa6?source=rss-14db0bd92cde------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7704768aa6</guid>
            <dc:creator><![CDATA[Mochamad Aris Zamroni]]></dc:creator>
            <pubDate>Sun, 24 May 2020 17:57:16 GMT</pubDate>
            <atom:updated>2024-10-27T15:36:45.131Z</atom:updated>
            <content:encoded><![CDATA[<h3>Visualizing Unstructured Data in Table Format</h3><p>Per Wikipedia definition, unstructured data (or unstructured information) is information that either does not have a pre-defined data model or is not organized in a pre-defined manner. Visualizing unstructured data in table format is a bit challenging because each record may have fields that don’t exist in other records.</p><p>Few years ago, I made web-based telecom subscriber transaction history viewer. Telecom transaction history data can be classified as unstructured data. Voice call transaction records have different fields than SMS or mobile data connection. However, all the transaction records must be shown in single table in chronological order to ease tracking of balance changes.</p><p>My solution was to made the table to have columns for all fields in transaction records with following field/column arrangement for left-to-right table:</p><p>a. Priority rule #1: Start from field that has most frequent appearance in data records to the least frequent.</p><p>b. Priority rule #2: If more than 1 field has same number of appearances, then field that appears in earlier position in records is displayed first before other fields.</p><p>To produce above algorithm, my application traverses all retrieved data records to collect statistics of the available fields. This indeed may not look like efficient, but it can be done in client side at small latency. My web-based application uses Javascript and it takes less than a second to handle hundreds of records.</p><p>Note: In some type of unstructured data, the table can be more readable if Priority rule #2 takes precedence over rule #1, i.e. there are fields that appear in many records but they have low importances.</p><p>This is sample of the algorithm in programming language. I am sorry if the code is not compilable. I wrote the code with main objective to show how the algorithm works.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c65d3e387c4982a8607f84963854062/href">https://medium.com/media/4c65d3e387c4982a8607f84963854062/href</a></iframe><p>My other articles:</p><ol><li><a href="https://www.linkedin.com/pulse/vertical-gantt-chart-mochamad-aris-zamroni/">Vertical Gantt Chart</a></li><li><a href="https://www.linkedin.com/pulse/data-migration-strategy-conversion-techniques-mochamad-aris-zamroni/">Application Data Migration and Data Conversion Techniques</a></li><li><a href="https://ma-zamroni.blogspot.com/">Blogspot1</a></li><li><a href="https://zamroni111.blogspot.com/">Blogspot2</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7704768aa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[App-by-App Datacenter/Cloud Migration using DNS-based Cutover Method]]></title>
            <link>https://ma-zamroni.medium.com/app-by-app-datacenter-cloud-migration-using-dns-based-cutover-method-10bf1b22c4a6?source=rss-14db0bd92cde------2</link>
            <guid isPermaLink="false">https://medium.com/p/10bf1b22c4a6</guid>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[data-center]]></category>
            <dc:creator><![CDATA[Mochamad Aris Zamroni]]></dc:creator>
            <pubDate>Tue, 24 Sep 2019 07:25:01 GMT</pubDate>
            <atom:updated>2024-10-27T15:37:49.281Z</atom:updated>
            <content:encoded><![CDATA[<p>Using DNS based cutover, migration to cloud or new datacenter (DC) can be done application by application. New DC/cloud must use new IP address space, instead of duplicating IP addresses of source DC.</p><p>Basically, the step for each application will be:</p><p>1. Replicate components of App1, i.e. database, application servers, load balancer &amp; etc. to new DC/cloud.</p><p>2. Cutover: Set DNS resolution of App1 to App1’s IP address of new DC/cloud.</p><p>3. Fallback if needed: Set DNS resolution of App1 to App1’s IP address of source DC.</p><p>Note: if a database is used by multiple applications, then all of these applications needs to be migrated at once.</p><p>Using smart/programmable DNS server, the granularity of step 2 and 3 above can be detailed with client selection, e.g. client from specific branch IP segment is directed to cloud as pilot users while other clients uses old DC.</p><p>Programmable DNS is available in GSLB (Global Server Load Balancer) component of many ADC (Application Delivery Controller aka server load balancer). GSLB is basically DNS-based datacenter load balancer. Because GSLB only handles DNS queries, virtual machine based GSLB with small throughput license is more than enough.</p><p>Compared to big-bang method that migrates all services from source DC at once, DNS-based app-by-app migration has following benefits:</p><p>a. Each cutover has smaller risk hence higher success rate.</p><p>b. Smaller cutover needs smaller team which means cheaper project costs.</p><p>c. First cutover can be achieved very early as soon as cutover of App1 is ready. It is not needed to wait for all applications to be ready for cutovers.</p><p>d. If multiple applications are scheduled in one cutover, failure of an application doesn’t mean full fallback. Only DNS resolution of failed applications (and other applications using same database) need to be reverted to source DC while other applications continue to use new DC/cloud.</p><p>e. Using cheap programmable DNS, administrators will have granularity to choose which DC/cloud that specific clients will use. This will also be beneficial for arranging test traffic or pilot users.</p><p>f. As new DC/cloud uses different IP address space, there will be no address overlap with source DC. Hence, no non-standard IP routing is needed. Address segments of new DC/cloud can be added to existing routers using regular static/dynamic method.</p><p>As database replication will be the most time-consuming task, regular network-based database replication can be used because database servers of new DC/cloud use different IP address than database servers of source DC.</p><p>My other articles:</p><ul><li><a href="https://www.linkedin.com/pulse/vertical-gantt-chart-mochamad-aris-zamroni/">Vertical Gantt Chart</a></li><li><a href="https://www.linkedin.com/pulse/data-migration-strategy-conversion-techniques-mochamad-aris-zamroni/">Data Migration Strategy and Data Conversion Techniques</a></li><li><a href="https://ma-zamroni.blogspot.com/">Blogspot1</a></li><li><a href="https://zamroni111.blogspot.com/">Blogspot2</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10bf1b22c4a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>