<?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 Ali Shabdar on Medium]]></title>
        <description><![CDATA[Stories by Ali Shabdar on Medium]]></description>
        <link>https://medium.com/@shabdar?source=rss-63b7f8c7de40------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lmsmSB4CQsnO09ijmadIQQ.jpeg</url>
            <title>Stories by Ali Shabdar on Medium</title>
            <link>https://medium.com/@shabdar?source=rss-63b7f8c7de40------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:50:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shabdar/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[Low-code is dead. Long live low-code.]]></title>
            <link>https://shabdar.medium.com/low-code-is-dead-long-live-low-code-810abc4e090b?source=rss-63b7f8c7de40------2</link>
            <guid isPermaLink="false">https://medium.com/p/810abc4e090b</guid>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Ali Shabdar]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 09:38:41 GMT</pubDate>
            <atom:updated>2023-04-21T09:38:41.355Z</atom:updated>
            <content:encoded><![CDATA[<h4>The growing relevance of Low-code &amp; No-code platforms in the Wild Wild West of AI</h4><figure><img alt="A low code magician, deploying rainbows in the cloud; imagined in Midjourney V5." src="https://cdn-images-1.medium.com/max/1024/1*cbOiKqTttS0kuGVnf-DwWA.png" /><figcaption>A low code magician, deploying rainbows in the cloud; imagined in <a href="https://www.midjourney.com/">Midjourney </a>V5.</figcaption></figure><p>Low-code/ No-code (LCNC) platforms have become one of the hottest topics in enterprise technology. The ability to write little to no code opens up possibilities for businesses to build software and automate processes like never before.</p><p>With LCNC, the speed of development and deployment, stability of the software, protection of data, security, information and process governance, and scalability are all included by design.</p><p>However, with the recent explosion in the release of AI tools and technologies, and the deafening volume of online chatter about it, mostly thanks to Chat-GPT and GPT4 in particular, there is a growing debate if LCNC is still relevant and worth the time and investment of the businesses.</p><p>The short answer? Absolutely!</p><blockquote>Not only LCNC is still relevant, but I would argue that it’s more important now than ever to invest in LCNC and especially in platforms that have a clear roadmap to roll out their own version of Generative AI or incorporate the existing ones into their platforms.</blockquote><p>The low-code/ No-code landscape is changing fast and for the better. We are about to experience new ways of rapid application development with the help of machines. Also, users will soon have new ways of interacting with apps build on LCNC platforms to maximize productivity.</p><p>Will Chat-GPT, and Generative AI in general, disrupt the LCNC landscape? Not anytime soon. For now, GPT alone cannot replace any of the respectable LCNC platforms. And maybe it shouldn’t.</p><p>There are several obvious reasons for this, and none of them are doomsday scenarios. I’ll leave those to your imagination.</p><p><strong><em>Note:</em></strong><em> </em><a href="#f626"><em>I left a few videos on the concepts, realities, and implications of AI creeping so fast into our lives at the end of this article.</em></a></p><h4>AI is still in its infancy</h4><p>Yes, Chat-GPT became the <a href="https://twitter.com/YahooFinance/status/1621814843475988480">fastest-growing technology</a> in the history of humanity in terms of userbase, but it is still a kicking screaming and pooping baby.</p><p>Apart from the staggering speed at which it is growing, the reliability of the work produced by AI is still very spotty. It is often cute and playful, but we shouldn’t let AI run our business yet.</p><h4>It’s complicated</h4><p>The herd of AI gurus living in Twitterama will tell you that <em>“99% of the people don’t know how to do X and Y with AI, …”</em> and that all you need to do to become an AI expert yourself is to read their thread and hit on <em>Follow</em>. But in reality, especially if you’re planning to do something serious, such as building a business application that does something meaningful, you will need a strong background in a number of technologies.</p><p>The promise of LCNC is to abstract complexity and help non-techies to build functional business software. So far, GPT4 is not able to wield a wand and make it happen for you by reading your mind, or your half-baked prompt. You need to do a lot of work yourself.</p><p>So, if you are a business leader or a knowledge worker who is not into programming, a reliable LCNC platform is still your best friend. You can always connect it to AI via built-in integrations or API if you need to.</p><h4>It’s shiny, but it is still messy out there</h4><p>It is never a good idea for a typical business to live on the bleeding edge of technology. The unknown factors are so many to risk the smooth running of your business for some seemingly revolutionary feature or technology. Also, the risk of inadvertent loss or misuse of data is high.</p><p>The dust has to settle and the implications of using “democratized” AI have to be quantifiable for businesses to use AI with peace of mind.</p><p>This also calls for clear and practical policies and procedures within organizations for all the stakeholders to know with confidence how they will interact with AI and how their data and their customers&#39; data will be used in the process.</p><h4><a href="https://www.cyberdefinitions.com/definitions/PEBCAC.html#:~:text=PEBCAC%20means%20%22Problem%20Exists%20Between,the%20user)%20is%20an%20idiot.">PEBCAC</a></h4><p>People tend to add to the mess too. Our workforce is yet to keep up the pace in this brave new world or has only obtained dangerously little knowledge about the applications and ramifications of AI that might give them a false sense of confidence to use it as they see fit.</p><p>That’s why training humans for practical and responsible use of AI is at least as important as training AI models. People need to know what it is that they are dealing with and what it means for their future to live in a work environment shared by Spaiens and Cyborgs.</p><p>In a recent incident, <a href="https://mashable.com/article/samsung-chatgpt-leak-details">Samsung employees accidentally leaked trade secrets</a> thanks to their unrestricted and overenthusiastic use of Chat-GPT. This can be attributed to the fact that the employees were unaware of the sort of fire they were playing with and that there were no “firewalls” in place to control the people or AI.</p><p>Another point worth mentioning is that businesses need to be careful not to overwhelm themselves or their employees by throwing new things at them on daily basis. This will lead to anxiety and discouragement partly due to the fear of becoming irrelevant.</p><p>A robust LCNC strategy is inclusive and will help everyone to grow together and more steadily within the safety of a controlled environment.</p><h4><strong>Privacy, anyone?</strong></h4><p>Privacy and protection of personal data is a major concern for any business that cares about its own and the well-being of its customers. It is both a business risk and an ethical question to take privacy lightly.</p><p>Storage of customers’ personal information without adhering to strict privacy policies and procedures is a current problem to grapple with in today’s business. Therefore feeding sensitive information to the data-hungry AI baby whenever it screams louder should be avoided or meticulously controlled.</p><p>We still don’t have a complete grasp on the scope and scale of the information that was fed into GPT to make it sound like an oracle and now that OpenAI has a new capitalist master, we might never find out.</p><p>We also know little to nothing about how the data in the prompts and generated results that potentially have your sensitive information in them are being used (or misused) by AI or humans don’t report to you.</p><p>Feeding company data indiscriminately to an AI (that you don’t own and don’t know the inner workings of) is not a sound idea as it could open Pandora’s box of personal data, privacy, and security risks.</p><h4>Intellectual property, probably?</h4><p>An uncomfortable debate about who owns the rights to the capabilities of AI is gaining momentum in art and tech communities. The key to the magic of Generative AI until now is to train it on copious amounts of data, but where does this data come from? Are businesses at risk if they use tools that gained their capabilities by potentially infringing copyright laws in a good number of countries?</p><p>In the case of Chat-GPT, the main source of the training data was the internet (until September 2021 as of GPT4). This means the vast majority of this data is copyrighted and owned by intellectuals, artists, businesses, and other individuals alive or deceased.</p><p>Now, who owns the rights to all this AI-generated information (or art)? Is it the people who created the wealth of human knowledge on which the AI was trained? Is it the people who created the AI? Is it us the end-users? Or, is it the AI itself?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HFvHkrQyRGE-SAR6LuLFg.png" /><figcaption><em>Will Aaron Chang sue me for asking </em><a href="https://stablediffusionweb.com/"><em>Stable Difusion</em></a><em> to generate a whale-riding stormtrooper to the moon? I sure hope not!</em></figcaption></figure><p>Until and unless these pressing questions are answered and the jurisdiction and ownership of such data are clarified by the law, businesses should stay away from free-feeding of organizational data into any AI and banking on magical results.</p><p>LCNC as we know it will remain quite relevant in the foreseeable future. The recent developments in AI will only empower low-code and no-code development by speeding up the software development time and access to new capabilities within the safe confines of LCNC.</p><p>The maturity and steady growth in capabilities and adoption, perhaps, are some of the key factors why businesses will stick to LCNC. In larger companies, “legacy” systems from decades ago are still fully operational managing most of the enterprise data and processes. LCNC often sits on top of the legacy systems improving extensibility and abstracting complexities.</p><p>In choosing the right LCNC platform it is crucial to pick from those which have the plan to integrate Generative AI safely and are made future-proof. Albeit, future-proofing anything these days seems to be an increasingly challenging mountain to climb.</p><p>As for controlled testing environments, you can go nuts, given your company provides a safe and secure sandbox for you to play in. One point to keep in mind though is to be extra cautious when you are playing with data that your company doesn’t own or doesn’t have the right to use outside the permitted scope.</p><p>It’s exciting out there and surely overwhelming to keep up with the speed at which technology is changing. We should drive down the path of adoption with the lights on and see this journey as an opportunity to learn new possibilities. Using our learnings responsibly is fundamental to staying relevant and to the longevity of our businesses.</p><p>Have a safe journey.</p><h4>P.S. Binge on these</h4><p>If you like to learn about Generative AI, this fairly digestible video could help:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhfIUstzHs9A%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhfIUstzHs9A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhfIUstzHs9A%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb16cbe25bb271160fe6fa0091e9dce6/href">https://medium.com/media/cb16cbe25bb271160fe6fa0091e9dce6/href</a></iframe><p>If you want to lose sleep over how fast things are going down the drain and it will get worse if AI development and use are not closely monitored and regulated, watch this sobering presentation:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxoVJKj8lcNQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxoVJKj8lcNQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxoVJKj8lcNQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfd1756b1367fbc035990f97537d6427/href">https://medium.com/media/dfd1756b1367fbc035990f97537d6427/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVcVfceTsD0A%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVcVfceTsD0A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVcVfceTsD0A%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/62b8151ad98fba15bff4b6ed418d0e8d/href">https://medium.com/media/62b8151ad98fba15bff4b6ed418d0e8d/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=810abc4e090b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple but useful program written almost entirely by Chat-GPT]]></title>
            <link>https://shabdar.medium.com/a-simple-but-useful-program-written-almost-entirely-by-chat-gpt-91872a28c90c?source=rss-63b7f8c7de40------2</link>
            <guid isPermaLink="false">https://medium.com/p/91872a28c90c</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ali Shabdar]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 07:49:42 GMT</pubDate>
            <atom:updated>2023-04-15T07:49:42.803Z</atom:updated>
            <content:encoded><![CDATA[<h4>The disruption of low code/no code is coming. Soon.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZhT1wDMWcel9U1OI_oFpg.png" /><figcaption>A main computer bringing colour and happiness to the world; imagined by <a href="https://www.midjourney.com/">Midjourney </a>V.5.</figcaption></figure><p>For a long time, I wanted to digitize my heap of business cards and pretty much all the free and paid apps I tried out were a disappointment in one way or another. Digitally connecting with each other via LinkedIn, WhatsApp, and other apps has picked up recently, but exchanging business cards is still commonplace in the Middle East and Africa.</p><p>All I needed was a simple personal tool to simplify an otherwise daunting job that’s been haunting me and my desk (with a stack of business cards migrating from one corner to another like a stop-motion movie) for quite some time.</p><p>As a techie with an itch, the next natural course of action would be to write a program that does it for you. Even if it takes as long (or longer) to build the program than to actually do the thing manually that the program was supposed to automate, it is worth it.</p><p>However, it’s been quite a while since I built a fully functional app that is usable by the masses. My Python is rusty at best and I don’t remember what a Rails or a PHP app looks like. And C# and BASIC are so distant I can hardly recognize them. Sure, I dabble with code from time to time, but it’s almost exclusively for entertainment.</p><p>So, I asked the friendly AI assistant, Chat-GPT (version 4) to help me write a simple program for me. And it was a rewarding experience garnished with some existential dilemmas.</p><h3>Enter Chat-GPT</h3><p>I was (and still am at the time of this writing) an absolute beginner in using Chat-GPT or any LLM for that matter.</p><p>I figured I should be fairly descriptive and process-oriented in my approach if I want a fairly good result.</p><p>This was my initial Prompt:</p><pre>Can you help me write a code that does the following:<br>1. runs on my local windows 11 machine <br>2. read images of business cards from a local folder<br>3. uses chat gpt-4 to extract these fields from each image: first name, last name, designation, company, email, phone number, mobile number, website, address.<br>4. format the fields extracted in step 3 into a data record and adds it as a new row to a CSV file called cards.csv<br>5. logs the potential errors in the file called log.txt<br>6. announces when the work is done.<br><br>before starting, tell me which language you will use for this task and why.</pre><p>The initial response from GPT4:</p><blockquote>I will use Python for this task because it is a versatile and widely-used programming language that has extensive libraries and tools available for image processing, optical character recognition (OCR), and working with files such as CSV and TXT. Specifically, I’ll use the OpenCV library for reading images, pytesseract for OCR, and the built-in CSV and logging modules for handling CSV files and logging errors, respectively.</blockquote><blockquote>Here’s the code for the task:</blockquote><pre>import cv2<br>import pytesseract<br>import os<br>import csv<br>import logging<br>from pytesseract import Output<br><br># Configure the logging<br>logging.basicConfig(filename=&#39;log.txt&#39;, level=logging.ERROR)<br><br># Set up pytesseract<br>pytesseract.pytesseract.tesseract_cmd = r&#39;&lt;path_to_tesseract_executable&gt;&#39;<br># Replace &lt;path_to_tesseract_executable&gt; with the actual path, e.g., &#39;C:\\Program Files\\Tesseract-OCR\\tesseract.exe&#39;<br><br>def extract_fields(text):<br>    fields = [&#39;first name&#39;, &#39;last name&#39;, &#39;designation&#39;, &#39;company&#39;, &#39;email&#39;, &#39;phone number&#39;, &#39;mobile number&#39;, &#39;website&#39;, &#39;address&#39;]<br>    extracted_data = {field: &#39;&#39; for field in fields}<br><br>    for line in text.split(&#39;\n&#39;):<br>        for field in fields:<br>            if field in line.lower():<br>                extracted_data[field] = line.replace(field, &#39;&#39;).strip()<br>                break<br><br>    return extracted_data<br><br>def main():<br>    input_folder = &#39;&lt;path_to_input_folder&gt;&#39;<br>    # Replace &lt;path_to_input_folder&gt; with the actual path, e.g., &#39;C:\\Users\\Username\\Desktop\\BusinessCards&#39;<br>    output_file = &#39;cards.csv&#39;<br><br>    with open(output_file, &#39;a&#39;, newline=&#39;&#39;, encoding=&#39;utf-8&#39;) as csvfile:<br>        fieldnames = [&#39;first name&#39;, &#39;last name&#39;, &#39;designation&#39;, &#39;company&#39;, &#39;email&#39;, &#39;phone number&#39;, &#39;mobile number&#39;, &#39;website&#39;, &#39;address&#39;]<br>        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<br>        writer.writeheader()<br><br>        for filename in os.listdir(input_folder):<br>            if filename.lower().endswith((&#39;.png&#39;, &#39;.jpg&#39;, &#39;.jpeg&#39;)):<br>                try:<br>                    img = cv2.imread(os.path.join(input_folder, filename))<br>                    text = pytesseract.image_to_string(img, lang=&#39;eng&#39;, config=&#39;--psm 6&#39;, output_type=Output.TEXT)<br><br>                    extracted_data = extract_fields(text)<br>                    writer.writerow(extracted_data)<br>                except Exception as e:<br>                    logging.error(f&#39;Error processing {filename}: {e}&#39;)<br><br>    print(&#39;The work is done.&#39;)<br><br>if __name__ == &#39;__main__&#39;:<br>    main()</pre><blockquote>Replace &lt;path_to_tesseract_executable&gt; with the actual path to the Tesseract executable (e.g., &#39;C:\Program Files\Tesseract-OCR\tesseract.exe&#39;) and &lt;path_to_input_folder&gt; with the path to the folder containing the business card images.</blockquote><blockquote>Make sure to install the required libraries (OpenCV and pytesseract) before running the code:</blockquote><pre>pip install opencv-python<br>pip install pytesseract</pre><blockquote>This code will read images of business cards from the specified folder, extract the required fields using pytesseract OCR, format the extracted data into records, and append them to the ‘cards.csv’ file. Errors encountered during processing will be logged to ‘log.txt’. The program will print ‘The work is done.’ when it has finished processing all images in the folder.</blockquote><p>The initial code didn’t work and I started asking questions and sharing error codes one after another. Chat-GPT patiently apologized and made corrections.</p><p>The bot iterated the code 3 or 4 times and made little changes here and there while explaining what likely went wrong and what is suggested to do. I had to consult OpenAI documentation once to learn how to use the <em>gpt-3.5-turbo</em> engine until it finally worked and generated somewhat acceptable results.</p><p>The program worked as intended, but the results were subpar at first. The main issue was with the (quality) of the prompt that I devised. Now, it all boiled down to how to provide a good prompt for the AI to be able to generate quality results.</p><p>I modified the prompt a few times until the results started to show some promise. I can only guess that the prompt can still be improved. No wonder why <a href="https://en.wikipedia.org/wiki/Prompt_engineering">prompt engineering</a> has become the hottest skill overnight with vacancies popping up everywhere like mushrooms.</p><p>Here is the final code after my edits:</p><pre>import cv2<br>import pytesseract<br>import os<br>import csv<br>import logging<br>import openai<br>from tenacity import retry, stop_after_attempt, wait_fixed<br>from tenacity import RetryError<br>from datetime import datetime<br>from PIL import Image<br><br>logging.basicConfig(filename=&#39;log.txt&#39;, level=logging.ERROR)<br><br>pytesseract.pytesseract.tesseract_cmd = r&#39;C:\\Program Files\\Tesseract-OCR\\tesseract.exe&#39;<br>fields = [&#39;first name&#39;, &#39;last name&#39;, &#39;designation&#39;, &#39;company&#39;, &#39;phone&#39;, &#39;mobile&#39;, &#39;email&#39;, &#39;website&#39;, &#39;country&#39;, &#39;address&#39;]<br>openai.api_key = &quot;&lt;YOUR API KEY GOES HERE.&gt;&quot;<br><br>def extract_text_from_image(image_path):<br>    img = cv2.imread(image_path)<br>    text = pytesseract.image_to_string(img, lang=&#39;eng&#39;, config=&#39;--psm 6&#39;)<br><br>    return text<br><br>@retry(stop=stop_after_attempt(3), wait=wait_fixed(1))<br>def ask_gpt3(text, prompt):<br>    completions = openai.ChatCompletion.create(<br>        model=&quot;gpt-3.5-turbo&quot;,<br>        messages=[<br>            {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are a helpful assistant.&quot;},<br>            {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: f&quot;&quot;&quot;Extract {prompt} from the following text: {text}, ensuring that you<br>            return only the extracted data omitting field name, extra explanation or sentence, punctuation, or label, and<br>            if you couldn&#39;t extract the data for any reason, just return &#39;NA&#39; with no extra wording or explanation.<br>            for phone numbers and mobile numbers, only pick the first one for each.<br>            &quot;&quot;&quot;}<br>        ],<br>        max_tokens=50,<br>        n=1,<br>        stop=None,<br>        temperature=0.5,<br>    )<br><br>    message = completions.choices[0][&#39;message&#39;][&#39;content&#39;]<br><br>    return message.strip()<br><br>def extract_fields_using_gpt3(text):<br>    extracted_data = {field: &#39;&#39; for field in fields}<br><br>    for field in fields:<br>        extracted_data[field] = ask_gpt3(text, field)<br>        #I added this lazy way of formatting of the phone and mobile numbers<br>        if field in (&#39;phone&#39;, &#39;mobile&#39;):<br>            cleaned_number = str(&#39;&#39;.join(c for c in extracted_data[field] if c.isdigit()))<br>            extracted_data[field] = &#39;+&#39; + cleaned_number<br><br>    return extracted_data<br><br>def main():<br>    #change this <br>    input_folder = &#39;&lt;PATH TO LOCAL FOLDER CONTAINING THE IMAGES.&gt;&#39;<br>    output_file = &#39;cards.csv&#39;<br><br>    #I added this <br>    print(datetime.now().strftime(&quot;%H:%M:%S&quot;))<br><br>    with open(output_file, &#39;a&#39;, newline=&#39;&#39;, encoding=&#39;utf-8&#39;) as csvfile:<br>        writer = csv.DictWriter(csvfile, fieldnames=fields)<br>        writer.writeheader()<br><br>        for filename in os.listdir(input_folder):<br>            if filename.lower().endswith((&#39;.png&#39;, &#39;.jpg&#39;, &#39;.jpeg&#39;)):<br>                try:<br>                    image_path = os.path.join(input_folder, filename)<br>                    with Image.open(image_path) as img:<br>                        img.verify()<br>                    text = extract_text_from_image(image_path)<br>                    extracted_data = extract_fields_using_gpt3(text)<br>                    writer.writerow(extracted_data)<br>                    #I added this premitive progress bar<br>                    print(&quot;-&quot;, end=&quot; &quot;, flush=True) <br>                except Exception as e:<br>                    error_message = f&#39;Error processing {filename}: {e}&#39;<br>                    logging.error(error_message)<br>                    print(error_message, flush=True)<br>                    if isinstance(e, RetryError):<br>                        print(&quot;Cause of the RetryError:&quot;, e.reraise())<br>    <br>    #I added this<br>    print(datetime.now().strftime(&quot;%H:%M:%S&quot;))<br>    print(&#39;The work is done.&#39;)<br><br>if __name__ == &#39;__main__&#39;:<br>    main()</pre><p>Well, I think the code speaks for itself. Yes, it’s not the best code you’ve seen and I’m not an expert programmer anymore. But in my humble opinion, it’s breaking new ground in how we build computer programs. If you asked me to do this without any “help”, I would’ve spent at least a day refreshing my rusty Python knowledge, reading a bunch of documentation, and manually debugging and improving the code.</p><p>The cruicial point here is that the Python code feeds a fairly primitive conversational prompt into the GPT-3.5 engine itself to extract the contact information from a given block of text. And it does it not by me dealing with regex and some other complicated code, but simply by AI sorcery.</p><blockquote>This is the future, the beginning of a new era of versatile LowCode-NoCode and rapid software development.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xPTfCXFi_8fyG6hA_Nh9WA.png" /><figcaption>A group of engineers at work perhaps in a parallel universe; imagined by <a href="https://www.midjourney.com/">Midjourney </a>V.5</figcaption></figure><p>What I demonstrated in here was a very idea of the immense possibilities of building software with AI assistance, something that was just a pipedream for decades, and until a few months ago.</p><p>There are thousands of talented people coming up with genius ways to use Chat-GPT in building software every day. All you need to do is to get on Twitter and see for yourself. Just stay away from the crypto-bros turned AI-bros.</p><p>Companies too, in tech and other industries, have started incorporating the capabilities of AI, and Chat-GPT in particular, into their existing ecosystem to bring these capabilities to the masses.</p><p>One of the key areas would be LCNC (low code/no code) development. So far, leading LCNC platforms allow users to eliminate being exposed to code mostly or completely when building business apps. This makes it easier for non-techies to build apps and automate their processes with minimal cost, time, and risk. However, you’ll need a certain level of IT literacy to be able to do anything meaningful.</p><blockquote>In the post-Chat-GPT world, a knowledge worker would simply “talk” to the computer sharing their vision of what their app should look like and do, and then leave the rest to the machine. Who knows, maybe apps as we know them cease to exist and it’ll be just us talking and teaching the machines what we want and then that’ll be it. Soon, you’ll be reserving a seat for AI in your brainstorming meetings.</blockquote><p><strong><em>Disclosure: </em></strong><em>No, I did not use ChatGPT or any AI assistant to write this article, except of course, the prompts and results posted in here verbatim as examples.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91872a28c90c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Now What? Turning the tables for your business in the dawn of crisis]]></title>
            <link>https://shabdar.medium.com/now-what-turning-the-tables-for-your-business-in-the-dawn-of-crisis-1f36833c2707?source=rss-63b7f8c7de40------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f36833c2707</guid>
            <category><![CDATA[process]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <dc:creator><![CDATA[Ali Shabdar]]></dc:creator>
            <pubDate>Thu, 07 May 2020 20:02:14 GMT</pubDate>
            <atom:updated>2020-05-09T14:26:24.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fC27AVIh-yF2OrtY" /><figcaption>Photo by <a href="https://unsplash.com/@krisroller?utm_source=medium&amp;utm_medium=referral">Kristopher Roller</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“We must get it into our heads that our lives have changed.” — Dr. Francesco Menchise, Anesthesiologist <br>(on the cover of the Time Magazine, April 2020)</blockquote><p>W e are living through a painful and disruptive period in our lives. For the majority of us, this is the first threat of this magnitude. Not only it threatens the health and wellbeing of our communities as a whole, but also the economic welfare of our global society.</p><p>No one seems to be safe from the immediate or the long-term impact of the Coronavirus pandemic. It is a paralyzing catalyst for the demise of an already troubled global capitalism.</p><p>But one thing is for certain. This is a transitioning period. It is temporary, and we will have to eventually get out of our caves into a brave new world.</p><h4>What is that we must do in this transitioning period to not only survive in the post-pandemic world but also thrive in it?</h4><blockquote><strong>These are not unprecedented times.</strong> There are many cases — lists of cases — where change, or something unexpected, has put many companies out of business and made other companies come out stronger and reinvent themselves.</blockquote><blockquote>The invention of the internet put many, many companies out of business; the ones who could not reinvent themselves for the Internet Age but rather doubled down on the old way they did business. Every video store is out of business because of streaming. When Starbucks moved into neighborhoods, many coffee shops went out of business. Not because of Starbucks, but because they refused to change the way they did business. Uber is putting taxi companies out of business — not because of Uber, but because the taxi companies refuse to change.</blockquote><blockquote><strong>This is not unprecedented. More sudden? Absolutely. More shocking? Absolutely. But this is not unprecedented in the business world.</strong></blockquote><blockquote>So for us to say, “How will we do what we’re doing?” but rather, <strong>“How <em>will</em> we do what we’re doing in a different world?”</strong></blockquote><blockquote>And the world is different.</blockquote><blockquote>— <a href="https://zurl.co/P79o">Simon Sinek</a></blockquote><h3>What is our prevailing mindset?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cXTC-oCbs0ieRYhi" /><figcaption>Photo by <a href="https://unsplash.com/@mgshannon?utm_source=medium&amp;utm_medium=referral">Michael Shannon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Are we in the fight or flight mode? Do we see loss, or do we see opportunity in the middle of all this chaos?</p><p>On April 20, 2020, when the oil futures dropped to a whopping minus $37.63 (<a href="https://www.bloomberg.com/news/articles/2020-04-20/negative-prices-for-oil-here-s-what-that-means-quicktake">yes it did</a>), the first thought coming to my mind was of a disaster: dropping GDPs, a chain reaction in the global economy, and a whirlwind of negative intellectual thoughts.</p><p>It only hit me a few days later, that while the world was mourning the demise of oil, the oil tanker stocks went on a <a href="https://www.freightwaves.com/news/tanker-stocks-surge-as-global-oil-market-collapses">soaring frenzy</a>, and <a href="https://www.fool.com/investing/2020/04/27/why-teekay-corporation-teekay-tankers-tsakos-energ.aspx">still are</a>. Focusing on the opportunity rather than the loss must have made a few investors very happy. And I was just a bystander biting my nails.</p><p>The world is currently changing so fast that practically no one can predict anything other than the fact that the global economy is on the brink of collapse. A new recession has started, and we might be in for another depression.</p><p>Looking at our humble and once-thriving businesses, how does our mindset impact the outcome? How are we writing the story of our businesses today, once this becomes history?</p><p>A mindset focused on the loss and driven by fear will cause us to:</p><ul><li>have a reactive or delayed response to rapid changes in the market</li><li>rash cost-cutting and losing some of our most valuable assets, chief among them, key members of our team</li><li>resort to protectionism and stop innovating, and</li><li>ultimately lose most or some of our business and our livelihood.</li></ul><p>On the other hand, seeking opportunities will help us:</p><ul><li>observe threats and prospects better and clearer</li><li>quickly plan and execute change while restrategizing with agility</li><li>diversify our products to match the current needs, and</li><li>innovate and differentiate in ways that were not possible before.</li></ul><blockquote>In the time of crisis, more doors open than they close, but a few get to go through those doors successfully, and the majority will stand by the closed ones banging on them to no avail.</blockquote><h4>Meeting in the middle</h4><p>Somewhere between seeing fear or opportunity lies in the risk of making a decision. No matter if we are fearlessly optimistic or fearfully pessimistic, we will have to make a call and jump. Where we land, however, will decide the fate of our business.</p><blockquote>“The risk of a wrong decision is preferable to the terror of indecision.“ — Maimonides</blockquote><p>So let’s make a calculated decision.</p><h3>A 3 Step action plan</h3><p>Start with a warm-up and reflect on the basics. Stay away from drawing conclusions too early and coming up with solutions that are likely to fail in the long run. There are no shortcuts.</p><p>First, Review your why (<a href="https://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action?language=en">watch this timeless TED talk by Simon Sinek, even if you watched it before</a>) together with your team. Bring as many team members as you can and revisit why you are in this business in the first place.</p><p>Then together, go on an internal observation tour, analyze current realities, and finally execute on your findings and your revised plans.</p><p>Set hard deadlines for all of these steps and consider that the clock is somehow ticking faster than it was before.</p><h3>1. Observation</h3><p>Identify the impacted areas of your business from a functional point of view. That is, getting granular into each function, e.g. marketing, sales, support, etc. beyond departments and divisions.</p><p>Look into the affected areas and see how the context of reality has changed for them after February 2020. The situation is quite fluid, and world events are happening at a staggering speed, but we can turn this speed to our favour.</p><blockquote>In this new world, one factor remains a constant: Time is our biggest enemy and our biggest ally depending on which side you are standing.</blockquote><p>Some common areas of impact are:</p><h4>Marketing</h4><ul><li>Budgets are slashed or frozen, and</li><li>Some channels are no longer relevant, such as OOH ads, while some channels became more relevant, such as TV.</li></ul><h4>Sales</h4><ul><li>There are no in-person meetings anymore, and fancy boardrooms are replaced with dull video calls, and</li><li>Sales cycles are stretched to their limits and follow-ups are taking longer, while negotiations are taking forever.</li></ul><h4>Support</h4><ul><li>The team is most likely working beyond capacity</li><li>Customer experience has been impacted, and</li><li>Employee experience is at an all-time low due to added pressure and social distancing.</li></ul><h4>HR</h4><ul><li>Tracking attendance is not as straightforward or as accurate as before</li><li>Team and individual KPIs are most probably changed with people now doing more work with less time</li><li>Working from home (WFH) is impacting the physical and mental wellbeing of the employees, and</li><li>Training and professional development programs, especially in-person sessions, have taken a hit.</li></ul><h4>IT</h4><ul><li>Information management, governance, and compliance are under threat as teams are more distributed with little readiness</li><li>Keeping the information and infrastructure secure is harder than ever before, and</li><li>It is simply much harder to support the WFH teams with their daily IT requirements.</li></ul><h4>Operations</h4><ul><li>Employee and customer safety have taken on a new meaning</li><li>Adherence to ever-changing safety guidelines seems impossible while they hinder the performance of the various teams, and</li><li>Logistics and supply chain channels are under extra pressure, while capacity issues create new bottlenecks.</li></ul><h4>Management</h4><ul><li>The 2020 plans made last year are heading down the drain, and</li><li>The company has entered the survival mode, which impacts every aspect of the functions listed above.</li></ul><p>These are some of the most common scenarios. If you look deeper, you will find more areas of impact, especially where there are dependencies between functions or departments.</p><h4>Mandate a Systems View</h4><p>It matters to look at all these functions in a systematic and interrelated manner. Each one of these functions affects others either directly or indirectly. It may sound obvious, however, many organizations still have a siloed approach when it comes to day-to-day operations.</p><p>You can ask yourself when was the last time there was someone from HR sitting in a sales strategy meeting? Or, when the running a flash-sale on your website, were the support or logistic teams informed before the campaign started?</p><h3>2. Analysis</h3><p>To put the results of the observation exercise in a digestible and an actionable structure, we can use the good old (or dreaded, depending on how you look at it) SWOT analysis.</p><p><strong>SWOT Analysis</strong> <em>(SWOT, for brevity)</em> is a powerful method that helps build your business strategy based on internal and external realities.</p><p>Typically, SWOT focuses on the <em>Strengths</em> and <em>Weaknesses</em> of your company, mostly from an internal perspective as well as <em>Opportunities</em> and <em>Threats</em> from an external perspective.</p><h4>Why SWOT Now?</h4><p>There is a good chance that you had done one or more SWOT when you started your business. You might even wonder why on Earth do we need to do another one in the middle of all this chaos.</p><p>Revisiting your SWOT, I would argue, is one of the best areas to start seeing the new realities clearly about your organization and put the areas of impact into perspective.</p><p>Better yet, it is beneficial to delve one level deeper and do a Functional SWOT. A Functional SWOT starts with focusing on different functions (and not departments) of an organization instead of looking at the organization as a whole.</p><figure><img alt="Four areas of focus and typical questions to answer when doing SWOT analysis" src="https://cdn-images-1.medium.com/max/1000/1*TNHiAAqJxZIP6QJ34QzDkg.jpeg" /><figcaption>Figure-1. Four areas of focus and typical questions to answer when doing a Functional SWOT analysis.</figcaption></figure><p>The key here is to analyze in the context of the current business and economic climate. Factors, such as uncertainty, cash flow, and market demand have been massively disrupted and need to be considered for the analysis to be as accurate and reliable as possible.</p><p>For instance, looking at Marketing as a function, you can evaluate what the new areas of strength and weakness are. Also, you can identify what opportunities were created recently, and what emerging threats impact your marketing efforts.</p><p>If you have a clear idea about the above, chances are that you will not make a quick decision to abolish the entire marketing budget overnight to save costs. If digital marketing was a strength of yours, it is now an even more critical asset.</p><p>If you look closer, you might find out that it is time to focus more on Account-based Marketing. This means that within the Marketing function, you will need to reallocate efforts and budget from mass emails and cold calls to key accounts while working closely with the Sales and Support functions.</p><p>Doing a SWOT within functions and keeping the respective teams involved and engaged will go a long way. The result of these Functional SWOT will then help improve the internal processes and collectively feed into an updated SWOT for the entire organization.</p><p>The outcome of this exercise will help you immensely to make decisions based on the current realities of the market and the internal realities of the organization. Taking a step back and doing a reality check by itself will give you an edge in the market.</p><blockquote>For many, experiences and assumptions of the past coupled with anxieties of the present will be the guiding principle. In your case, however, it will be the validated information and hard facts that will show you the way.</blockquote><figure><img alt="Functional SWOT Analysis" src="https://cdn-images-1.medium.com/max/1024/1*zhHH0zOMZG8unjDCYJvndQ.png" /><figcaption>Figure-2. Functional SWOT Analysis — Crisis Edition</figcaption></figure><p><strong>Resource:</strong> To help speed up the process and get you started today, you can <a href="https://workdrive.zohoexternal.com/external/69SdftFkDnz-Mdv2w">download a Functional SWOT Analysis template</a> here.</p><p>Use it as you wish.</p><p><strong><em>Note:</em></strong><em> If you are wondering what that hourglass is doing on the top-right of the template, it is not a logo. It is a reminder of how important time is and how little of it we have to get our act together.</em></p><p><strong>Diving even deeper:</strong> It is quite beneficial to do a <a href="https://www.investopedia.com/terms/p/pest-analysis.asp">PEST Analysis </a>once you complete all the SWOT. Most of the political, economic, social, and technological factors have changed dramatically as well.</p><h3>3. Execution</h3><p>Once you completed the Functional SWOT and reached internal consensus and clarity, you can decide and act on what the next steps should be with more confidence.</p><p>Reallocating teams and resources to take advantage of strengths and opportunities while mitigating threats and improving on the weaknesses will be a natural next step.</p><p>Reviewing and improving processes should also be an integral part of the work. Now would be the perfect time to make them efficient and cut back on unnecessary steps or subprocesses. Identifying and giving priority to processes that impact the top line and bottom line one way or another is key to this improvement.</p><p>I must say, we are not talking about months and months of business process improvement (BPM) with consultants and thousands of pages of analysis and recommendations. If you are running a small business, you don’t have time for this nonsense, especially now. However, it is absolutely ok to take a few pages from the secret Book of Consultants and apply it here.</p><p>When it comes to business process improvement, two primary ingredients of success are:</p><ul><li>people, and</li><li>technology.</li></ul><h3>People</h3><p>People are still your biggest asset, now more than ever. Salaries and bonuses are a big chunk of the cost of running any business, and it is tempting to cut expenses by drastically reducing the workforce.</p><p>Downsizing impacts two key areas: customer experience and employee experience, both of which are tightly correlated.</p><p>Of course, when there is no business, cash is scarce, and the outlook of generating revenue is as clear as a foggy night, making hard decisions is inevitable. However, if you put on the paper the real value of your key people who keep the wheels spinning, chances are you decide to keep them on board for as long as possible.</p><p>People who bought into and got excited about your vision when they joined your company tend to stick around, share the risks with you, and help you make it back to the top again.</p><h3>Technology</h3><p>When it comes to efficiency, automation is king. Technology, when implemented and used properly, will help automate most of the cumbersome and resource-hungry tasks and free up resources to deliver real value for the customers and the organization.</p><p>Sure, launching a CRM sounds like a great idea, but it could be a daunting and expensive feat. A CRM can bring tangible value to the Sales function by making sure no lead falls through the cracks and the tedious admin work is done by the machine. This return will surely justify the investment.</p><p>Salespeople can focus on closing deals rather than sending hundreds of emails every day or remembering to follow up with a dozen prospects. A functional CRM will be a smart private assistant for the team. Moreover, it will help decision-makers to stay on top of the pipeline making the right decisions backed by facts instead of relying on gut feeling.</p><blockquote>Transformation begins when technology works in harmony with people and processes to achieve tangible results better and faster.</blockquote><p>Digital transformation has been a novelty for many in the past decade, an abstract concept that barely left the meeting room. For others, when it materialized, it was often a confusing mix of haphazardly implemented software systems that added to the troubles of the organization more than solving significant problems.</p><figure><img alt="Digital Transformation by COVID-19" src="https://cdn-images-1.medium.com/max/1024/1*RtJ9327aZRRd3QuKSHboUw.jpeg" /><figcaption>Source: <a href="https://marketoonist.com/2020/04/digital-transformation-2.html">marketoonist</a></figcaption></figure><h3>Time is now</h3><p>In recent years, technology has become more accessible and affordable than ever. Cloud Computing is helping even the companies with little budget to tap into the computing power that was once only accessible to Fortune 500 companies.</p><p>The market needs have changed massively too. The speed at which modern society churns and consumes data today is incomparable to a few years ago. Artificial Intelligence (AI) and Machine Learning have found their ways into the most delicate parts of the operation of a typical business. Both consumers and employees are more tech-savvy, and advanced technology is a ubiquitous part of our daily lives.</p><p>Change is hard and often costly. There is no easier way to say this, but if your website was last done 15 years ago, and your client database is a spreadsheet saved on a desktop PC in the office, you are on the brink of extinction.</p><p>You might not need a behemoth server located in your headquarters or a complex <a href="https://en.wikipedia.org/wiki/Enterprise_resource_planning">ERP</a> system to make things more complicated for your operation.</p><p>Streamlining your processes, relying on your core team, and buying software that you actually use will suffice for your company to pull off a successful digital transformation project. And you can do it in the midst of the crisis.</p><h3>Make it happen</h3><p>If you are a change-maker in your organization and have been pushing for kicking off a digital transformation project, you are lucky. There is no better time to have that conversation.</p><p>Here are some of the reasons:</p><p><strong>Burning Platform:</strong> Digital transformation is no longer a nice-to-have; it’s a must. The urgency will lead to quicker internal response time and faster sign-offs.</p><p><strong>Pivot Mode:</strong> Most organizations are at the crossroads of a complete pivot or less severely, fine-tuning current processes, products and services to match the current market conditions. This will need newer better technology.</p><p><strong>Stronger Competition:</strong> Smaller competitors will have to quickly adapt to new realities. Those who are won&#39;t do it quickly enough will disappear and be replaced with stronger ones. You will need to stay ahead.</p><p><strong>Virtual Meetings:</strong> No matter how much you dread video calls, everyone is nowadays available to jump on a quick call and discuss ideas and make decisions.</p><p><strong>Resistance to Change:</strong> People are in survival mode, and most will put the ego or complacency aside, try and play nice when it comes to change. Involve everyone and make them feel included and influential in what might be the most important project of your tenure.</p><h3>Summary</h3><p>Let’s revisit what we covered.</p><p>‌What is our prevailing mindset: Loss or Opportunity? Seeing the world with a mindset of opportunity will open up hidden doors to places few have gone.</p><p>Time is of the essence, and inaction or fear-based decisions will prove perilous.</p><p>Take a quick and effective 3-step approach and get to work:</p><ul><li><strong>OBSERVE:</strong> Which areas/functions in your organization are impacted, and how?</li><li><strong>ANALYZE:</strong> Perform a Functional SWOT Analysis for each function in the organization; What do the outcome of these analyses tell us?</li><li><strong>ACT:</strong> Put Digital Transformation on overdrive; Time is now.</li></ul><p>Take care of your people, and they will take care of you.</p><blockquote>State-of the-art technology without the proper processes in place and the right people at the helm, is just painful overhead expense in your balance sheet.</blockquote><p><em>&gt;&gt;&gt;</em><a href="http://zc.vg/12sQi"><em> Enjoyed reading this piece? Sign up here. No spam. No nonsense.</em></a><em> &lt;&lt;&lt;</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f36833c2707" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Will Google mine Meet?]]></title>
            <link>https://shabdar.medium.com/will-google-mine-meet-fc40adea3b03?source=rss-63b7f8c7de40------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc40adea3b03</guid>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[risk]]></category>
            <category><![CDATA[zoom]]></category>
            <category><![CDATA[google-meet]]></category>
            <dc:creator><![CDATA[Ali Shabdar]]></dc:creator>
            <pubDate>Thu, 30 Apr 2020 19:31:10 GMT</pubDate>
            <atom:updated>2020-05-09T14:28:06.871Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cAkk8n_8WGNbaMq4" /><figcaption>Photo by <a href="https://unsplash.com/@lianhao?utm_source=medium&amp;utm_medium=referral">Lianhao Qu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>With <a href="https://meet.google.com/">Google Meet</a> taking on Zoom by adding a host of cool features and also <a href="https://www.forbes.com/sites/ilkerkoksal/2020/04/30/google-meet-is-now-free-for-everyone/#52b14d584a0a">becoming free</a> for all, thousands of meetings will flock from Zoom and other providers to this new sensation of the webinar world.</p><p>Given the questionable track record of Google mining our personal and private data, with or sometimes without our consent (remember <a href="https://www.wsj.com/articles/google-s-secret-project-nightingale-gathers-personal-health-data-on-millions-of-americans-11573496790">Project Nightingale</a>?), it is hard to imagine for Google not to be tempted feeding hours and hours of precious video from all over the world into its machine learning algorithms.</p><p>A handful of Google services that could ultimately benefit from this sheer amount of data come to mind: Translate, Photos, Search, and who knows what else.</p><p>Voice and video data in the form of facial expressions, languages, dialects, accents, and other sounds and tones are pure gold for those algorithms.</p><p>Add to it people’s habits, such as punctuality, meeting discipline, as well as the material shared in screen-shares, chatboxes, calendar invitations, etc. It will be only a matter of time for Google to get a good grasp of the way people meet in professional and personal settings while (and I’m speculating) having its intelligent machines eavesdrop every second of these meetings.</p><p>Now, let’s combine all these with the intelligence gathered from Google’s assistant, mail, calendar, and office apps. Then add Google Home to the mix as a garnish.</p><p>Of course, this will only make our beloved Google services (see above) even better, but the eternal question is that at what price? Privacy? Your business secrets? National security?</p><p>If you rely on the governments to take action, you better be ready for a long and uninspiring ride. Governments are slow to react by design, and with all due respect, the people in charge often are not equipped with comprehending the gravity of the short-term and the long-term impact of technology on boring topics, such as privacy.</p><blockquote>“You know something is wrong when the government declares opening someone else’s mail is a felony but your internet activity is fair game for data collecting.” ― E.A. Bucchianeri</blockquote><p>Sure there is <a href="https://gdpr-info.eu/">GDPR</a>, and a host of other privacy and antitrust regulations, however, they are usually vague, cumbersome, out-dated (because by the time they kick in, technology manages to pose new dilemmas), and sometimes easy to circumvent.</p><p>We know that <a href="https://www.wsj.com/articles/amazon-scooped-up-data-from-its-own-sellers-to-launch-competing-products-11587650015">Amazon is competing with its sellers</a> by practically stealing their private sales secrets. Modern Feudalism at its best. Let’s wait and see when an affirmative action will ensue by the countries affected.</p><p>But, there are the privacy policy and terms of service that will protect us, you might wonder. That Google (or whoever is planning to munch on your private data) asks for permission beforehand. All they need to do is ask, and we can be adults about it.</p><blockquote>“Privacy means people know what they’re signing up for, in plain language, and repeatedly. I believe people are smart. Some people want to share more than other people do. Ask them.” — Steve Jobs</blockquote><p>Although I agree in principle with the late wizard of Cupertino, I’m not quite sure how smart people will be when they are presented with legally crafted and obfuscated terms of service.</p><p>We are as smart to make decisions as the amount of information we have in hand. Not all of us are skeptic enough as we are not trained to be. Not everyone takes the time in the midst of an emergency to weight the big-picture implications of letting something as grand as their privacy and secrets to be peeped in.</p><p>What can we expect from an average citizen when the government of the <a href="https://www.investopedia.com/insights/worlds-top-economies/#6-united-kingdom">sixth-largest economy in the world</a> is so <a href="https://www.infosecurity-magazine.com/news/uk-government-zoom-despite-mod/">oblivious to the realities</a>?</p><p>All said, every day, we see essential meetings, even those of the politicians with expectedly classified conversations, are <a href="https://www.cbc.ca/news/politics/zoom-house-of-commons-1.5546906">being held on Zoom</a>. And it is just a matter of time for some of these sensitive meetings to move to Google Meet. At least Google doesn’t have a leaky boat <a href="https://www.businessinsider.com/china-zoom-data-2020-4">taking a detour through China</a>. But their AI is notoriously information hungry.</p><p>Now, with our business and behavioural information mined by the gods of G, what can we expect our borrowed future to be like?</p><p>With great power comes greater responsibility. Tech companies possess unprecedented power, and they are expected to act more responsibly. Expectation often leads to disappointment. Inspection is key. Capitalist technology is a greater force than any and needs to be supervised closely and regularly.</p><p><em>&gt;&gt;&gt;</em><a href="http://zc.vg/12sQi"><em> Enjoyed reading this piece? Sign up here. No spam. No nonsense.</em></a><em> &lt;&lt;&lt;</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc40adea3b03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importing data from FTP server into Zoho Creator]]></title>
            <link>https://shabdar.medium.com/importing-data-from-ftp-server-into-zoho-creator-e8da00610757?source=rss-63b7f8c7de40------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8da00610757</guid>
            <category><![CDATA[integration]]></category>
            <category><![CDATA[zoho]]></category>
            <category><![CDATA[ftp]]></category>
            <dc:creator><![CDATA[Ali Shabdar]]></dc:creator>
            <pubDate>Sat, 02 May 2015 14:13:42 GMT</pubDate>
            <atom:updated>2015-05-02T14:14:41.561Z</atom:updated>
            <content:encoded><![CDATA[<p>Importing data from FTP server into Zoho Creator</p><p><a href="http://creator.zoho.com/">Zoho Creator</a> has grown to be a great cloud-based app creation platform. You can build simple apps in the matter of hours or have complex solutions up and running much quicker than a from-scratch project.</p><p>Manipulating data is a core capability of (Zoho) Creator . There is a rich toolset of UI elements, business logic components, and reporting tools to make your life easier. If you need more functionality you can always create custom functions and behaviours using the powerful <a href="https://www.zoho.com/creator/overview/deluge-script.html">Deluge</a> scripting language. To take it even further there is a rather capable <a href="http://en.wikipedia.org/wiki/Representational_state_transfer">REST API</a> to connect your app to the outside world.</p><p>In this post I’ll show you how to import data from an FTP server into a Creator app using a Deluge function and a little middleware.</p><p><strong>Note:</strong> I assume that you are familiar with Creator and Deluge. We will also get some help from a PHP script, so some PHP knowledge is helpful too, but not necessary. You can use the code in this tutorial without changing anything other than the FTP url and account.</p><h3>Problem</h3><p>You have created a sales management app that keeps track of sales. The app is working great and users are able to place orders and record each transaction. There is, however, a small bottleneck.</p><p>The company uses a <a href="http://en.wikipedia.org/wiki/Legacy_system">legacy</a> inventory management system to keep track of all the goods and material available to sell. The only way this system can communicate with the outside world is via FTP.</p><p>Every morning at 1:00AM EST the legacy system exports a list of all products and available stock to a <a href="http://en.wikipedia.org/wiki/Comma-separated_values">CSV</a> file and places it on company’s FTP server. Other software systems in the organization consume that file by importing it manually every morning.</p><p>Your sales management app is no exception either and needs to import this CSV file every morning to have the updated product list available.</p><h3>Solution</h3><p>Deluge offers <a href="https://www.zoho.com/creator/help/script/get-url.html"><em>getURL()</em></a>, a function that allows apps to retrieve data from external sources using HTTP protocol. In our example, this data is CSV, but it could very well be <a href="http://en.wikipedia.org/wiki/JSON">JSON</a>, or plain text.</p><p>Since <em>getURL()</em> can only send HTTP requests, connecting to a secure (password protected) FTP server is not directly possible. For this purpose you need to either place the remote file(s) on a non-secure site, or use a <a href="http://en.wikipedia.org/wiki/Middleware">middleware</a> to extract data for you. Placing private company data in a non-secure location is never recommended. So the only solution is to create a small middleware that takes care of extracting data from the FTP server and sends it back to the Creator app. Now, a middleware can do way more than that, but for the purpose of our tutorial all it needs to do is to connect to the FTP server, load the CSV file, and send its contents back via a HTTP response.</p><h4>Step 1 — The Data File</h4><p>Before everything make sure you have the demo CSV file, <em>inventory.csv</em>, ready and uploaded to the FTP server. A sample file is shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3448515b59bf893b137bdca03382e891/href">https://medium.com/media/3448515b59bf893b137bdca03382e891/href</a></iframe><h4>Step 2 — The Middleware</h4><p>First, we need to create the middleware and deploy it on a web server. Note that you can’t store this in Creator and you will need to have access to a web server, such as where your company site is hosted. For this purpose we are going to use the good old PHP because it is easy to code and maintain and works on pretty much any web server.</p><p>On your local machine create a PHP file, <em>ftp.php</em>, and paste the code below in it. Make sure you change the values in lines 5–7 and line 9 to reflect your server settings.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31696f26f174fd9bf5634eadab67f972/href">https://medium.com/media/31696f26f174fd9bf5634eadab67f972/href</a></iframe><p>Now upload <em>ftp.php</em> to the web server. Test if the script works properly. Simply open the PHP file in the browser. It should return the contents of the CSV file and display it in the browser similar to the following figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/0*dfGZJp2tJwgtxXxs.png" /><figcaption>Raw Output from ftp.php</figcaption></figure><p><strong>Note:</strong> Depending on the <a href="http://php.net/manual/en/ini.core.php#ini.sect.resource-limits">version of PHP</a> on your web server, there is a memory limit to how big of a CSV file you can load up in one go. If you need to access massive CSV files, you may need to change the code in the middleware.</p><h4>Step 3 — The Creator App</h4><p>For our little demo, we are going to create a simple app featuring 2 forms:</p><ol><li><strong>Products</strong> — This form contains the latest products available in stock. Our deluge script will pull the inventory every morning and update the list of products in this form.</li><li><strong>Add Order</strong> — This form allows users to place new orders. It collects order, customer, and products information. A list of available products will be populated from <em>Products</em> to make sure employees are selling what is in stock.</li></ol><p>I assume you know how to create forms in Creator, but to make sure you have all the necessary fields for the deluge function to work, here is how the <em>Products</em> form should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*jAUeg3_0yAYlsHlZ.png" /><figcaption>Demo <strong>Products</strong> Form in Creator</figcaption></figure><p>Now our app is ready to receive data. By creating a form, the data storage mechanism behind it is also created. I’m reluctant to use the term <em>table </em>here because unlike other environments, in Creator each form represents both the visual and the data layer of each entity.</p><h4>Step 4 — The Deluge Function</h4><p>To create a function in Creator follow these steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/0*OBIuI-IEyPRecsRh.png" /><figcaption>Creating a Function</figcaption></figure><ol><li>Click on <em>Workflow</em> button on the left sidebar.</li><li>Select <em>Functions</em> tab.</li><li>Select <em>Write script / Copy same function</em> button.</li><li>Type in the code below in the text area.</li><li>Click <em>Create the Function</em>.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa69221198e382ae8430635d7a9d0f13/href">https://medium.com/media/fa69221198e382ae8430635d7a9d0f13/href</a></iframe><p>The code above simply sends a request to <em>ftp.php</em> and loads the results, i.e. the content of the CSV file, into variable <em>csv.</em> Then it displays the loaded data showing that everything works as intended.</p><p>Go ahead and click on <em>Execute Script</em> and see the results. The content of <em>inventory.csv</em>, which you have placed on the FTP server earlier will be displayed in a dialog box. You have successfully imported data from a remote FTP server into Zoho Creator, but there still remains a very import step: Storing imported data in <em>Products</em> form.</p><h4>Step 5 — Storing Imported Information</h4><p>The next step is to parse the CSV data and insert each row into <em>Products</em>.</p><p>Update <em>importInventory()</em> function with the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cd58e345ecc150fa76140fa5cc7eac2/href">https://medium.com/media/5cd58e345ecc150fa76140fa5cc7eac2/href</a></iframe><p>The code is self-explanatory, but let’s revisit a few points here:</p><ul><li><strong>Line 7</strong>: To break the CSV data and put each line into a Deluge list item, <em>“\n”</em> (<a href="http://en.wikipedia.org/wiki/Newline">Lf</a>) is used as a separation indicator. Sometimes CSV lines are not broken with <em>“\n”</em>. If you experience an issue when importing try using <em>“\r”</em> (<a href="http://en.wikipedia.org/wiki/Newline">Cr</a>) instead.</li><li><strong>Line 10–13</strong>: If you skip emptying <em>Products</em> before each import, new data will be appended to the existing list of products, which is not what we want. In other scenarios appending may make perfect sense and you can omit these lines.</li><li><strong>Line 34–41</strong>: The actual insertion of a record into <em>Products</em> happen here. So make sure you are finished with data processing or cleanup before this point.</li></ul><p>Save the changes by clicking <em>Save Script</em> and execute. Hopefully you will get a message that script executed successfully.</p><p>Now run the application and open <em>Products Report</em> view (created automatically). Newly imported rows should be displayed in the report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/0*ozEUXhq5vezGjGac.png" /><figcaption>Products Imported into Creator Successfully</figcaption></figure><h3>Step 6 — Scheduling the Imports</h3><p>One last thing remaining is to make sure this magical script runs every morning and imports an updated list of products. Creator offers a convenient scheduler to help automate various processes.</p><p>To schedule importing products on daily basis, follow these steps:</p><p>1. Select <em>Schedules</em> tab. You will see 3 different types of schedules available.</p><p>2. Create a custom schedule by clicking the <em>Create</em> button in the <em>Custom Schedule</em> box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*aTdnNsS8h5kK2S4G.png" /><figcaption>Creating a Custom Schedule</figcaption></figure><p>3. Under <em>When to do?</em> tab fill in the boxes as shown below and then click <em>Next.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*cZwucZIz9GetxWaE.png" /><figcaption>Setting When to Run the Function</figcaption></figure><p>4. Under <em>What to do?</em> tab enter the function name we want to run, i.e. <em>importInventory()</em>, save the changes, and click <em>Execute Now</em> to ensure everything works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*4V33BKGtP1N-yS7Q.png" /><figcaption>Specifying the Function that needs to be Run</figcaption></figure><p>That is it. Creator will run the<em> importInventory()</em> function every morning at 2:00 AM EST and import the latest inventory list into <em>Products</em>.</p><h3>Summary</h3><p>Congratulations! You have just created a solution for one of the common challenges of today’s database apps in a few hours, thanks to Zoho Creator. By getting a little help from a simple middleware written in PHP we were able to access information on a secured FTP server. For HTTP requests (common with JSON and XML data sources) you don’t need a middleware and you can pretty much do all the work from within Creator. This means one less piece of software to maintain and that is always good news.</p><p>If you know a better way to import data into Creator, or an improvement to the current method, please share it in the comments.</p><p><strong><em>Note:</em></strong><em> This post has first appeared on </em><a href="http://www.alishabdar.com/2015/04/15/importing-data-from-ftp-server-into-zoho-creator/"><em>my personal blog</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8da00610757" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>