<?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 Deepak Shakya on Medium]]></title>
        <description><![CDATA[Stories by Deepak Shakya on Medium]]></description>
        <link>https://medium.com/@deepakshakya?source=rss-f44de6ef0f0b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*D8LrR2HNOz6bYfEsiJy8FA.jpeg</url>
            <title>Stories by Deepak Shakya on Medium</title>
            <link>https://medium.com/@deepakshakya?source=rss-f44de6ef0f0b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:54:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepakshakya/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[A Journey Within: My Path to Becoming a Hatha Yoga Teacher]]></title>
            <link>https://medium.com/yogasattva-offering-classical-hatha-yoga-as-tools/a-journey-within-my-path-to-becoming-a-hatha-yoga-teacher-858eb36cad65?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/858eb36cad65</guid>
            <category><![CDATA[self-transformation]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[hatha-yoga]]></category>
            <category><![CDATA[mindfulness]]></category>
            <category><![CDATA[meditation]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 18:02:43 GMT</pubDate>
            <atom:updated>2025-04-12T18:12:08.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NMuopdq-RkPrQrWsr-TuA.png" /><figcaption>An auspicious day of receiving Hatha Yoga teachers training completion certificate in Dec 2022, IYC, Coimbatore</figcaption></figure><p>Namaskaram &amp; Hello!</p><p>My name is Deepak Shakya, and I am a Hatha Yoga teacher, trained at Sadhguru Gurukulam (formerly known as the Isha School of Hatha Yoga) at the Isha Yoga Centre in Coimbatore, India. From July to December 2022, I undertook an intensive residential training programme, spanning over 1,750 hours.</p><p>This unique 21-week programme, designed by Sadhguru, offers an immersive opportunity to learn, experience, and share Classical Hatha Yoga in its purest form. These powerful yogic practices, crafted by Sadhguru, are tools for profound self-transformation and empowerment, rooted in the ancient science of yoga.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDYggucr6zOjNIjwJKVq_g.jpeg" /></figure><p><a href="https://isha.sadhguru.org/uk/en/about-isha-foundation">Isha Foundation</a> is an international non-profit organisation, dedicated to raising human consciousness, and fosters global harmony through individual transformation. Guided by Sadhguru, it is an essential resource for exploring the ancient science of yoga in all its depth and dimensions. The foundation offers a variety of programs that provide methods for anyone to attain physical, mental and spiritual wellbeing. Its offerings allow participants to deepen their experience of life, and reach their ultimate potential. Supported by 17 million volunteers in 300 centers worldwide, Isha Foundation’s activities address all aspects of human wellbeing. From its powerful yoga programs for inner transformation to its inspiring projects for society, environment and education, Isha activities are designed to create an inclusive culture that is the basis for global harmony and progress.</p><p>My self transformation journey started in Oct 2011 with Isha Foundation’s flagship programme — <a href="https://isha.sadhguru.org/en/wisdom/video/what-is-inner-engineering">Inner Engineering</a> — a program that offers tools to take charge of your body, mind, emotions and energies, and live a joyful, fulfilling life. Now, this is also available in a 7-session online course.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FS2uINxm_wbc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DS2uINxm_wbc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FS2uINxm_wbc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ca761efdcf0546a66ed993f6994174a/href">https://medium.com/media/2ca761efdcf0546a66ed993f6994174a/href</a></iframe><p>I enrolled in a four-day Inner Engineering Retreat with the expectation of learning yoga primarily for its physical benefits. It was a residential programme held at the Isha Yoga Centre in Coimbatore, nestled at the foothills of the Velliangiri Mountains — also known as the Kailash of the South.</p><p>The discipline, structure, and meticulous design of the programme pleasantly surprised me. Sadhguru had thoughtfully crafted every aspect to enhance one’s receptivity. The retreat featured multiple interactive sessions that dismantled my preconceived notions about the mind, body, and emotions. There were guided meditations and, most significantly, the powerful <em>Shambhavi Maha Mudra Kriya</em>.</p><p>Undergoing the initiation into <em>Shambhavi Maha Mudra Kriya</em> was a deeply transformative experience — one that, if I may say, changed the course of my life. Within just two to three months of daily practice, I began to notice greater control over my emotions, reduced anxiety and fear, improved focus, and deeper, more restful sleep. Since then, <em>Shambhavi Kriya</em> has become a non-negotiable part of my daily routine, requiring only about 30 minutes each day.</p><p>For those wishing to explore deeper inner dimensions, the Isha Foundation offers a variety of advanced yoga and meditation programmes, such as <a href="https://isha.sadhguru.org/uk/en/yoga-meditation/yoga-program-advanced/bhava-spandana"><em>Bhava Spandana</em></a> and <a href="https://isha.sadhguru.org/uk/en/yoga-meditation/yoga-program-advanced/shoonya-meditation"><em>Shoonya Intensive</em></a>. Having experienced immense benefits from just the <em>Inner Engineering</em> programme, I felt a strong desire to delve further into the depths of yoga. It was at this point that I truly realised yoga is not merely about bending and twisting the body into unusual postures — it offers so much more, extending far beyond the physical.</p><blockquote>“Yoga is not about twisting your body or standing on your head. It is a technology of wellbeing.” — Sadhguru</blockquote><p>I have learnt advanced yogic tools for inner wellbeing through these programmes. <a href="https://isha.sadhguru.org/uk/en/yoga-meditation/yoga-program-advanced/bhava-spandana"><em>Bhava Spandana</em></a> offers a unique opportunity to experience heightened states of consciousness and transcend the limitations of the body and mind. For those seeking to explore even deeper inner dimensions, <a href="https://isha.sadhguru.org/uk/en/yoga-meditation/yoga-program-advanced/shoonya-meditation"><em>Shoonya Intensive</em></a> is an advanced meditation programme designed by Sadhguru, which combines the dynamic <em>Shakti Chalana Kriya</em> with <em>Shoonya Meditation</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNEnVh5r5MwBI99DhsH5WQ.jpeg" /><figcaption>Image captured during hatha yoga teachers training upgrade at Montenegro, May 2024</figcaption></figure><p>In my experience, the nature of these yogic practices is such that, while it may seem as though nothing is happening at the physical level, much is actually taking place within the human system. You have to place your trust in the ancient science of yoga, from which Sadhguru has derived and designed these transformative practices.</p><p>I have come to realise that our outer actions are merely an extension of our inner state, and are deeply dependent on the stability of the mind, body, and energy system. Through consistent practice of yoga and meditation, I have experienced greater balance and stability within myself, leading to enhanced focus and clarity. My dependence on stimulants like coffee or tea has significantly reduced, and the number of hours my body requires for rest (sleep) has also decreased.</p><p>I find myself more energised and open to embracing new opportunities in life — opportunities that, at times, have arrived unexpectedly, but I have welcomed them wholeheartedly.</p><p>I began my professional career in 2006 with FT100 companies such as Cisco and Juniper. Fresh out of university, I was full of passion to embark on my journey, but I lacked the tools for inner stability. Between 2006 and 2012, I experienced the inevitable highs and lows of life. In hindsight, I often found myself driven more by emotions than intellect, becoming anxious in unfamiliar situations and reserved in open communication. Naturally, this had an impact on my professional growth.</p><p>However, I remain deeply grateful to the close friends who introduced me to Isha Yoga in 2011. Since then, my life has followed an entirely different trajectory — shifting, I would say, from a downward spiral to an upward, exponential curve. Between 2012 and 2014, I began to thrive in a more fulfilling professional role.</p><p>Alongside this, I co-founded a not-for-profit organisation called <em>Anahatalife</em> in Bangalore, India. The organisation supported refugee children in the city, helping them access basic healthcare and education. We organised various fundraisers, TED-style talks, and art exhibitions in the heart of the city at M.G. Road, Bangalore. These events even caught the attention of major national newspapers, which covered our initiatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDRi1a8LzRwluQeEMkWSuw.jpeg" /><figcaption>Image from the first Anahatalife event in 2014 at M.G Road, Bangalore</figcaption></figure><blockquote>“I feel like I am on F1 track all the time equipped with necessary (yogic &amp; scientific) tools that help me to not only maintaining the speed but keep repairing the engine at the same time for any wear and tear without stopping.”</blockquote><p>My journey received a significant boost in 2014 when I began practising Classical Hatha Yoga. These practices are designed as a holistic process to cultivate health, joy, and bliss, while exploring the deeper dimensions of this ancient science. Through daily practice, I noticed that my body became increasingly stable, both in terms of energy and emotional balance. I found myself able to focus for long hours without the need for water or toilet breaks. My quality of sleep improved noticeably, even as the number of hours I needed to rest decreased.</p><p>I still vividly remember a moment when a colleague asked me, “Why is your face glowing? What have you been doing?” That question made me smile, as it was perhaps an outer reflection of the inner balance and vitality that practising Hatha Yoga had begun to create within me.</p><blockquote>“Your physical health, your psychological wellbeing, and your spiritual possibility depend on how well aligned you are with existence. Essentially, Hatha Yoga is towards establishing this alignment.” — Sadhguru</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-SGX2VPz1yeuJm3372rzA.jpeg" /><figcaption>Image from top of the Shard when I moved to London, UK to join Gyana — a data science startup</figcaption></figure><p>Since 2014, I gradually transitioned my career to specialise in building and scaling early-stage startups. I served as Chief Operations Officer at <em>Gyana</em>, a data science startup based in London, UK, which achieved a successful exit in 2018.</p><p>Following that, during the Covid period from 2019 to 2022, I co-founded a not-for-profit startup called <em>SuperPitch</em>, which aimed to connect women entrepreneurs from around the world with potential investors. We built a thriving community of over 200 global entrepreneurs and investors, many of whom successfully secured funding through these connections. In 2022, <em>SuperPitch</em> was acquired by <em>Diversity-X</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpXnJByRJxRxqUnl0aG6mw.jpeg" /><figcaption>Image captured during a SuperPitch event in May 2022, London, UK</figcaption></figure><p>I share these experiences to acknowledge that much of my success is rooted in the journey of self-transformation made possible through Isha Hatha Yoga and meditation practices. For me, this has been a truly transformative chapter in my life. It inspired me to take the next step: enrolling in the Isha Hatha Yoga Teacher’s Training in July 2022.</p><p>Through this, my intention is to offer these powerful tools to people here in the UK, helping them realise their full potential and overcome the many challenges life presents.</p><blockquote>“We teach Hatha Yoga as a transformative process. The transformation will not only be on the level of your body but in the way you are.” — Sadhguru</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtrRxJl8g7Mc%3Fstart%3D4%26feature%3Doembed%26start%3D4&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtrRxJl8g7Mc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtrRxJl8g7Mc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/80bf06d03ed814616498305520800b97/href">https://medium.com/media/80bf06d03ed814616498305520800b97/href</a></iframe><p>Sadhguru Gurukulam (previously known as Isha Hatha Yoga School) delivers classical Hatha Yoga in its full depth and dimension. It is Sadhguru’s vision to offer this ancient science in all its purity and make it available to every individual. As a step towards realising this vision, he has devised the <a href="https://isha.sadhguru.org/global/en/yoga-meditation/yoga-teacher-training/hatha-yoga-teacher-training">Hatha Yoga Teacher Training Program</a>. In this program, Hatha Yoga is taught as a living experience in the most beautiful ashram setting of the Isha Yoga Center - India, under the grace of a living master. Upon completion of the program, trainees have the privilege and fulfillment of bringing this knowledge to many more people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6kIg74mH8ct4yXV-V7iTA.jpeg" /><figcaption>Elated after blessing from Sadhguru as we completed the Hatha Yoga Teachers Training 2022</figcaption></figure><p>This programme embarks us on a journey of holistic inner transformation that goes beyond physical postures, integrating mind, body, and energy for a profound inner experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*gp5rEnFwa1wNfHiaA7hr6Q.png" /></figure><p>After completing my training in December 2022, I returned to the UK and founded <a href="https://www.yogasattva.co.uk/"><em>YogaSattva</em></a>, with the aim of offering these ancient tools for self-transformation. Since then, I have been fortunate to share these practices with many people across the UK, and, in my own small way, to contribute to Sadhguru’s vision: <em>“Make one drop of spirituality happen across the world.”</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9rBxmGg1KDU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9rBxmGg1KDU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9rBxmGg1KDU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec737ce312f052b81ead71d735ba6911/href">https://medium.com/media/ec737ce312f052b81ead71d735ba6911/href</a></iframe><p>My first programme in the UK was a free offering held in Orpington on 14th May 2023. I was deeply grateful for the many volunteers who supported the programme from start to finish and helped make it possible. As part of the International Day of Yoga celebrations, around 80 to 100 people attended the session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qshZnKGRuD7wtH09SIYO9g.jpeg" /><figcaption>Particpant practising guided practices as part of Yoga for Stress module</figcaption></figure><p>Over the past two years, I have had the privilege of offering a variety of group sessions, private classes, and guided practice correction sessions to people of all age groups across the UK.</p><p>As I continue this journey, I remain a student at heart — learning, sharing, and growing through these ancient yogic tools. It brings me immense joy to see others experience the same inner balance and transformation that first drew me to this path. I hope to continue sharing these practices with anyone seeking to explore their full potential.</p><p>If you would like to learn more about the teacher’s training programme or explore any of the <a href="https://www.yogasattva.co.uk/programs">Hatha Yoga practices</a>, please feel free to get in touch through my website: <a href="http://www.yogasattva.co.uk/">www.yogasattva.co.uk</a>.</p><blockquote>“Hatha Yoga is the phenomenon of aligning the human system with the cosmic — a way to hold one’s system in a way that it will become a receptacle to receive and hold the entire cosmos.” — Sadhguru</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=858eb36cad65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/yogasattva-offering-classical-hatha-yoga-as-tools/a-journey-within-my-path-to-becoming-a-hatha-yoga-teacher-858eb36cad65">A Journey Within: My Path to Becoming a Hatha Yoga Teacher</a> was originally published in <a href="https://medium.com/yogasattva-offering-classical-hatha-yoga-as-tools">YogaSattva — offering classical Hatha Yoga as tools for human wellbeing</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence is the next Cloud]]></title>
            <link>https://medium.com/@deepakshakya/artificial-intelligence-is-the-next-cloud-6f9e8ed3874e?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f9e8ed3874e</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 01:52:49 GMT</pubDate>
            <atom:updated>2019-03-28T01:52:49.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8J8t-C2bcZWwOb6-TcwQFg.jpeg" /></figure><p>Shall we buy cloud?</p><p>How much cloud will cost?</p><p>How cloud will help us?</p><p>Who provides the best cloud?</p><h4>But what is a cloud?</h4><p>If I had asked this question in 90’s or early 2000, it would have been difficult to get a befitting answer.</p><blockquote>“First to mind when asked what ‘the cloud’ is, a majority respond it’s either an actual cloud, the sky, or something related to weather.” <strong>— </strong><a href="http://www.citrix.com/site/resources/dynamic/additional/Citrix-Cloud-Survey-Guide.pdf"><strong>Citrix Cloud Survey Guide</strong></a><strong> (August, 2012)</strong></blockquote><p>Till mid 2000, cloud as a concept/service was in infancy. Though everyone in IT sector was getting used to the term ‘Cloud’ however only few knew what it meant. For most of them it was a buzz (marketing) word and apparently every business wanted to have it or use it because it seemed to have certain opex and capex benefits.</p><h4>Cloud — A big learning opportunity</h4><p>We are not here to discuss in-depth details of cloud or it’s associated services. I see a big opportunity and learning if we just look at the overall evolution of cloud from concept to business and ultimately it has become indispensable for every business. It has not only catalysed many diverse start-ups and existing businesses but also empowered students in various academic and research institutes.</p><blockquote><em>“Any sufficiently advanced technology is indistinguishable from magic.” </em>— Arthur C. Clarke</blockquote><h4>First taste of cloud computing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zTn9OnCAEFkGBeJBih2UwQ.jpeg" /><figcaption>Supercomputer (PARAM) @ NIT Allahabad, India</figcaption></figure><p>I remember my college (NIT-Allahabad, India) days where we had this supercomputer (named PARAM). We used to connect to it via distributed terminals and execute programs. It was my first taste of cloud computing.</p><h4>Journey from evolution to adoption</h4><p>Conceptually, it goes back till 1950’s mainframe computing with shared access to multiple users via dumb terminals. In those days, it was not feasible to individually buy and maintain such high power computing machines even for businesses. Then by 1970’s, concept of virtual machines eased the situation and much later in 1990’s, telecom companies started offering VPN services.</p><blockquote><strong>“Cloud is about how you do computing, not where you do computing.” — </strong><em>Paul Maritz, CEO of VMware (2008–2012)</em></blockquote><p>In today’s world, cloud is no brainer at least to a majority of people who are in related industry. I have worked in Cisco long enough to see server world transitioning from Sun solaris to Linux and eventually distributed services using VM. I can definitely say how it helps faster development and infrastructure management.</p><p>Even now as I am working in London based AI startup (<strong>Gyana</strong>), I can see how it has helped us to jumpstart different development activities and further enabling us to serve our customers in proactive way. Buying cloud services has almost become synonymous with buying any other thing online. In fact it has branched off multiple businesses in segments like IaaS, PaaS and SaaS.</p><blockquote><strong>“Every kid coming out of Harvard, every kid coming out of school now thinks he can be the next Mark Zuckerberg, and with these new technologies like cloud computing, he actually has a shot.”</strong> — <em>Marc Andreessen, Co-founder of Netscape, Board Member of Facebook</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*U0QvAiP8W4P9_fhSUGquNw.png" /></figure><p>At <strong>Gyana</strong>, we are working on cutting edge <strong>data driven technology</strong> solutions <strong>(SaaS) </strong>powered with <strong>Artificial Intelligence</strong> and in-house customised software stack and algorithms. Without going into details of why everyone prefers SaaS and highest profit margins being on top to pyramid, let’s look at next big buzz word which businesses are seeking — <strong>AI</strong> or <strong>A</strong>rtificial <strong>I</strong>ntelligence.</p><h4>Next Buzz word ? — AI</h4><p>In simple word, programming a machine who can think like human, act like human, behave like human. When we say machine, it’s not just about some physical robots, it could also be just an intelligent self sustainable software application.</p><h4>Birth</h4><p>Though cloud as concept might had it foundation way back in 1960’s but so does AI at Dartmouth Conference in 1956. There has been consistent efforts and remarkable progress made in AI field even though the research was always challenged by dearth of fund and enough computing power back in days till first decade of 21st century.</p><h4>Evolution to acceptance</h4><p>After ‘AI Winter’ in 70’s, it gained momentum again in 80’s till so called ‘AI spring’ in early 2000. Investment and interest in AI boomed in the first decades of the 21st century, when machine learning was successfully applied to many problems in academia and industry due to the presence of powerful computer hardware.</p><blockquote><strong>McKinsey estimates that total annual external investment in AI was between $8B to $12B in 2016, with machine learning attracting nearly 60% of that investment. — </strong><a href="https://www.forbes.com/sites/louiscolumbus/2017/07/09/mckinseys-state-of-machine-learning-and-ai-2017/#7648294775b6"><strong>Forbes</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*5IVwCPoHVww0l919uVhlfQ.jpeg" /><figcaption>Source: <a href="https://www.forbes.com/sites/louiscolumbus/2017/07/09/mckinseys-state-of-machine-learning-and-ai-2017/#7648294775b6">Forbes</a></figcaption></figure><h4>What AI is not?</h4><p>Just like some earlier buzz words — Cloud, Big-data etc, AI is new one tossed by media a lot. With every other business trying to have some kind of AI in their solutions, investors wanting to invest in AI driven technologies and every other customer seeking intelligent applications and solutions to reduce human effort, AI seems to be a hot cake at this point of time and definitely in lime light in tech industry. I am sure everyone has their version of AI definition, however I would like to share what it’s not.</p><ul><li><strong>It’s not something to be frightened of</strong>: It’s not created to replace human rather it’s there to save human bandwidth from monotonous work and increase productivity.</li><li><strong>It’s not omnipresent or an alive entity:</strong> AI doesn’t have genuine creativity, emotions or desire like human. In whatever way media present it for marketing, in the end it’s just a set of programmed instructions or rules.</li><li><strong>AI is not by itself a thing:</strong> It’s a concept just like cloud. As there is no cloud in real, similarly there is no AI in real as an entity. It’s an umbrella word which is an amalgamation of technologies and solutions like NLP, machine learning, autonomous vehicles, Neural networks, smart robotics etc.</li></ul><h4>AI in real world</h4><ul><li><strong>Autonomous vehicles</strong> — This need no explanation after Tesla’s autonomous cars in market and many other competitors following the suite.</li><li><strong>Voice enabled solutions</strong> like Siri, Alexa or Echo changing the way interact and live.</li><li><strong>Recommendation systems</strong> — Spotify, Netflix, Youtube, e-commerce websites like Amazon</li><li><strong>Chatbots — </strong>NHS is doing trials of AI-powered chatbot on the 111 non-emergency helpline. The Royal Bank of Scotland launched a language processing AI to answer RBS, Natwest and Ulster Bank customer questions. Online shopping delivery service, Ocado, is working on a machine learning project to replace barcode scanning. These are few examples in this segment</li><li><strong>Smart Grid </strong>— With consistent pressure on non-renewable resources, everyone’s on lookout for renewable green energy and measures to reduce carbon footprints for long term sustainability on planet earth.</li></ul><p>These real world examples would hopefully help us understand what’s under this buzz word AI and what could be it’s potential. How and in what ways we could make lives better by using it.</p><h4>Future of AI</h4><blockquote><strong>McKinsey predicts High Tech, Communications, and Financial Services will be the leading industries to adopt AI in the next three years. — Forbes</strong></blockquote><p>As of now where we are today in terms of computing capabilities supported by cloud together with large scale awareness and competition, future looks very promising and productive. It’s the time when we are living in the era of next big tech revolution. Having witnessed one with cloud, I am quite excited to be in next one — AI.</p><p>At Gyana, we definitely believe in the power of AI and building smart and intuitive technology solutions which would enable different businesses to grow and build sustainable future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f9e8ed3874e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring postgres hot standby using Ubuntu 16.04]]></title>
            <link>https://medium.com/@deepakshakya/configuring-postgres-hot-standby-using-ubuntu-16-04-e37940aed080?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e37940aed080</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[replication]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Wed, 15 Nov 2017 06:51:29 GMT</pubDate>
            <atom:updated>2018-06-05T08:59:29.581Z</atom:updated>
            <content:encoded><![CDATA[<h4>Pre-requisite</h4><ol><li>2 Ubuntu machines/VM</li><li>Postgres9.6 installations</li><li>Basic understanding of postgres and sql</li></ol><h4>Install postgres9.6 on both Linux(Ubuntu 16.04) machines(install_postgres.sh)</h4><pre>#!/bin/bash</pre><pre>sudo add-apt-repository “deb <a href="http://apt.postgresql.org/pub/repos/apt/">http://apt.postgresql.org/pub/repos/apt/</a> trusty-pgdg main”<br>wget — quiet -O — <a href="https://www.postgresql.org/media/keys/ACCC4CF8.asc">https://www.postgresql.org/media/keys/ACCC4CF8.asc</a> | sudo apt-key ad<br>d -<br>sudo apt-get update<br>sudo apt-get install -y postgresql-9.6<br>sudo systemctl start postgresql.service<br>sudo systemctl status postgresql.service</pre><p>Generate SSH-KEYS on both machines and add them onto each other</p><pre>$ ssh-keygen -t rsa</pre><pre>$ ssh-copy-id &lt;IP_address_of_opposite_server&gt;</pre><h4>Configure MASTER</h4><p>Create a user “rep” for “replication” purpose.</p><pre>psql -c &quot;CREATE USER rep REPLICATION LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD &#39;yourpassword&#39;;&quot;</pre><p>Update pg_hba.conf file for new user named “rep”</p><pre>host    replication     rep     IP_address_of_slave/32   md5</pre><p>Update postgres.conf</p><pre>listen_addresses = &#39;localhost,IP_address_of_MASTER&#39;<br>wal_level = hot_standby<br>archive_mode = on<br>archive_command = &#39;cd .&#39;<br>max_wal_senders = 3<br>hot_standby = on</pre><p>Restart postgres service on master now</p><pre>$ sudo systemctl start postgresql@9.6.service</pre><h4>Configure SLAVE</h4><p>Begin on the slave server by shutting down the postgres database software:</p><pre>$ sudo systemctl stop postgres@9.6.service <br>OR<br>$ sudo service postgresql stop</pre><p>Update pg_hba.conf file for “rep” user</p><pre>host    replication     rep     IP_address_of_master/32  md5</pre><p>Update postgres.conf file</p><pre>listen_addresses = &#39;localhost,IP_address_of_SLAVE&#39;<br>wal_level = hot_standby<br>archive_mode = on<br>archive_command = &#39;cd .&#39;<br>max_wal_senders = 3<br>hot_standby = on</pre><p>Try connecting with the replication user (rep) we created from the command line just to make sure all firewalls and stuff is all set up properly.</p><pre>$ psql &quot;host=&lt;IP of master&gt; user=rep replication=on&quot;<br>Password:<br>psql (9.3.10)<br>SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)<br>Type &quot;help&quot; for help.<br><br>rep=&gt; \q<br>$</pre><h4>Create a backup of data /var/lib/postgresql/9.6/main</h4><pre>$ mv /var/lib/postgresql/9.6/main /var/lib/postgresql/9.6/main_bkp</pre><p>I am now ready to bootstrap my standby by running pg_basebackup with the connection info used above. The -R switch tells it to create the recovery.conf file automatically for me. The -D switch tells it where to put the files.</p><pre>pg_basebackup -D /var/lib/postgresql/9.6/main -R --xlog-method=stream --dbname=&quot;host=&lt;IP of master&gt; user=rep replication=on&quot;</pre><p>The resulting files in /var/lib/postgresql/9.6/main is a copy of the master servers data dir.</p><p>Start postgres service now.</p><h4>Keep a watch on logs:</h4><pre>$ tail -f /var/log/postgresql/postgresql-9.6-main.log</pre><p>Once “recovery.conf” file created in ‘main’ directory, append to it following lines</p><pre>trigger_file = &#39;/tmp/postgresql.trigger.5432&#39;</pre><h4>Verify replication or hot_standby</h4><p>Create a table and insert data from master shell. Same table and row inputs should be readable from standby servers.</p><pre>master$ sudo -i -u postgres</pre><pre>master$ psql -c &#39;CREATE TABLE guestbook (visitor_email text, vistor_id serial, date timestamp, message text);&#39;</pre><pre>master$ psql -c &#39;INSERT INTO guestbook (visitor_email, date, message) VALUES ( &#39;jim@gmail.com&#39;, current_date, &#39;This is a test.&#39;);&#39;</pre><pre>slave$ sudo -i -u postgres</pre><pre>slave$ psql -c &#39;select * from guestbook;&#39;</pre><p>If successful, then you shall see following logs:</p><p>/var/log/postgresql/postgresql-9.6-main.log</p><pre>2017–11–15 02:34:21.622 UTC [8385] LOG: entering standby mode<br>2017–11–15 02:34:21.673 UTC [8385] LOG: redo starts at 0/E000028<br>2017–11–15 02:34:21.703 UTC [8385] LOG: consistent recovery state reached at 0/E0000F8<br>2017–11–15 02:34:21.703 UTC [8383] LOG: database system is ready to accept read only connections<br>2017–11–15 02:34:21.727 UTC [8390] LOG: started streaming WAL from primary at 0/F000000 on timeline 1<br>2017–11–15 02:38:08.765 UTC [8390] LOG: replication terminated by primary server</pre><h3>Note:</h3><ul><li>standby is READ-ONLY</li><li>There is NO default failover configuration. Either you need to use 3rd party tools or create your own logic.</li></ul><h3>References:</h3><ul><li><a href="http://help.theatremanager.com/book/export/html/3679">Promoting a Standby to the Main server</a></li><li><a href="https://blog.tyk.nu/blog/postgresql-hot-standby-replication-from-freebsd-master-to-ubuntu-standby/">PostgreSQL &quot;hot standby&quot; - replication from FreeBSD master to Ubuntu standby - TykBlog</a></li><li><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-on-postgresql-on-an-ubuntu-12-04-vps">How To Set Up Master Slave Replication on PostgreSQL on an Ubuntu 12.04 VPS | DigitalOcean</a></li><li><a href="https://cloud.google.com/community/tutorials/setting-up-postgres-hot-standby">How to set up PostgreSQL for high availability and replication with Hot Standby | Google Cloud Platform Community</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e37940aed080" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Increase postgres storage using RAID]]></title>
            <link>https://medium.com/@deepakshakya/increase-postgres-storage-using-raid-33724446fe5?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/33724446fe5</guid>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[raid]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Thu, 26 Oct 2017 13:07:33 GMT</pubDate>
            <atom:updated>2018-06-05T09:01:30.875Z</atom:updated>
            <content:encoded><![CDATA[<h4>Step1: Create a Linux VM</h4><p>I am using azure cloud services to deploy a linux VM with Ubuntu 16.04</p><h4>Step2: Add data disks</h4><p>Once VM is ready, add data disk to it. I am using azure online portal to add data disks. You can also use azure cli or powershell for same.</p><p><strong>After adding disks, verify:</strong></p><pre>$ lsscsi<br>[0:0:0:0] disk Msft Virtual Disk 1.0 /dev/sda<br>[1:0:1:0] disk Msft Virtual Disk 1.0 /dev/sdb<br><strong>[3:0:0:0] disk Msft Virtual Disk 1.0 /dev/sdc<br>[3:0:0:1] disk Msft Virtual Disk 1.0 /dev/sdd</strong><br>[5:0:0:0] cd/dvd Msft Virtual CD/ROM 1.0 /dev/sr0</pre><p><strong>/dev/sdc</strong> and <strong>/dev/sdd</strong> are newly added data disks.</p><h4>Step3: Partition disks &amp; format them for raid</h4><pre><strong>$ sudo fdisk /dev/sdc</strong></pre><pre>Welcome to fdisk (util-linux 2.27.1).<br>Changes will remain in memory only, until you decide to write them.<br>Be careful before using the write command.</pre><pre>Device does not contain a recognized partition table.<br>Created a new DOS disklabel with disk identifier 0xb1a55336.</pre><pre>Command (m for help): n<br>Partition type<br> p primary (0 primary, 0 extended, 4 free)<br> e extended (container for logical partitions)<br>Select (default p): p<br>Partition number (1–4, default 1):<br>First sector (2048–2145386495, default 2048):<br>Last sector, +sectors or +size{K,M,G,T,P} (2048–2145386495, default 2145386495):</pre><pre>Created a new partition 1 of type ‘Linux’ and of size 1023 GiB.</pre><pre>Command (m for help): t<br>Selected partition 1<br>Partition type (type L to list all types): fd<br>Changed type of partition ‘Linux’ to ‘Linux raid autodetect’.</pre><pre>Command (m for help): w<br>The partition table has been altered.<br>Calling ioctl() to re-read partition table.<br>Syncing disks.</pre><pre><strong>$ sudo fdisk /dev/sdd</strong></pre><pre>Welcome to fdisk (util-linux 2.27.1).<br>Changes will remain in memory only, until you decide to write them.<br>Be careful before using the write command.</pre><pre>Device does not contain a recognized partition table.<br>Created a new DOS disklabel with disk identifier 0x5ae06a92.</pre><pre>Command (m for help): n<br>Partition type<br> p primary (0 primary, 0 extended, 4 free)<br> e extended (container for logical partitions)<br>Select (default p): p<br>Partition number (1–4, default 1):<br>First sector (2048–2145386495, default 2048):<br>Last sector, +sectors or +size{K,M,G,T,P} (2048–2145386495, default 2145386495):</pre><pre>Created a new partition 1 of type ‘Linux’ and of size 1023 GiB.</pre><pre>Command (m for help): t<br>Selected partition 1<br>Partition type (type L to list all types): fd<br>Changed type of partition ‘Linux’ to ‘Linux raid autodetect’.</pre><pre>Command (m for help): w<br>The partition table has been altered.<br>Calling ioctl() to re-read partition table.<br>Syncing disks.</pre><h4>Step4: Create RAID using 2 disks</h4><pre><strong>$ sudo mdadm — create /dev/md0 — level 0 — raid-devices 2 /dev/sdc1 /dev/sdd1</strong><br>mdadm: Defaulting to version 1.2 metadata<br>mdadm: array /dev/md0 started.</pre><p>Create the file system on the new RAID device</p><pre><strong>$ sudo mkfs -t ext4 /dev/md0</strong><br>mke2fs 1.42.13 (17-May-2015)<br>Discarding device blocks: done<br>Creating filesystem with 536280576 4k blocks and 134070272 inodes<br>Filesystem UUID: 3d614d7a-e43a-4d56-b84e-de3f0fa84f10<br>Superblock backups stored on blocks:<br> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br> 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br> 102400000, 214990848, 512000000</pre><pre>Allocating group tables: done<br>Writing inode tables: done<br>Creating journal (32768 blocks): done<br>Writing superblocks and filesystem accounting information: done</pre><p>Create the desired mount point for your new file system, for example:</p><pre>sudo mkdir /data</pre><p>When editing /etc/fstab, the <strong>UUID</strong> should be used to reference the file system rather than the device name. Use the blkid utility to determine the UUID for the new file system:</p><pre><strong>$ sudo /sbin/blkid</strong><br>...........<br>/dev/md127: UUID=&quot;aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee&quot; TYPE=&quot;ext4&quot;</pre><p>Open /etc/fstab in a text editor and add an entry for the new file system, for example:</p><pre>UUID=aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee /data ext4 defaults 0 2</pre><p>Test that the /etc/fstab entry is correct:</p><pre>sudo mount -a</pre><p>If no error in above step(s), then you should see new mounted drive</p><pre>$ df -h<br>Filesystem Size Used Avail Use% Mounted on<br>………<br><strong>/dev/md0 2.0T 71M 1.9T 1% /data</strong></pre><h4>Step5: Install postgresql</h4><pre>sudo apt-get install postgresql</pre><p>Step6: Configure postgres to point to new data location</p><pre><strong>$ sudo -u postgres psql</strong><br>psql (9.5.9)<br>Type “help” for help.</pre><pre><strong>postgres=# show data_directory;</strong><br> data_directory<br> — — — — — — — — — — — — — — — <br><strong> /var/lib/postgresql/9.5/main</strong><br>(1 row)</pre><h4>Step6: Stop postgres service before moving any data</h4><pre>$ sudo systemctl stop postgresql</pre><pre>$ sudo systemctl status postgresql<br>● postgresql.service — PostgreSQL RDBMS<br> Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)<br> Active: inactive (dead) since Thu 2017–10–26 10:43:36 UTC; 6s ago<br> Main PID: 4734 (code=exited, status=0/SUCCESS)</pre><pre>Oct 26 10:24:24 testing-raid systemd[1]: Starting PostgreSQL RDBMS…<br>Oct 26 10:24:24 testing-raid systemd[1]: Started PostgreSQL RDBMS.<br>Oct 26 10:24:31 testing-raid systemd[1]: Started PostgreSQL RDBMS.<br>Oct 26 10:43:36 testing-raid systemd[1]: Stopped PostgreSQL RDBMS.</pre><h4>Step7: Copy postgres data to new location</h4><p>We’re going to start the rsync from the postgresql directory in order to mimic the original directory structure in our new location. By creating that postgresql directory within the mount-point directory and retaining ownership by the PostgreSQL user, we can avoid permissions problems for future upgrades. The version directory, 9.5 isn’t strictly necessary since we’ve defined the location explicitly in the postgresql.conf file, but following the project convention certainly won’t hurt, especially if there’s a need in the future to run multiple versions of PostgreSQL.</p><pre><strong>$ sudo rsync -av /var/lib/postgresql /data</strong><br>sending incremental file list<br>postgresql/<br>postgresql/.psql_history<br>postgresql/9.5/</pre><pre>…</pre><pre>…</pre><pre>sent 38,545,949 bytes received 16,458 bytes 25,708,271.33 bytes/sec<br>total size is 38,485,955 speedup is 1.00</pre><pre>$</pre><h4>Step7.1: Make backup of existing data in same location</h4><p>Once the copy is complete, we’ll rename the current folder with a .bak extension and keep it until we’ve confirmed the move was successful. By re-naming it, we’ll avoid confusion that could arise from files in both the new and the old location:</p><pre>$ sudo mv /var/lib/postgresql/9.5/main /var/lib/postgresql/9.5/main.bak</pre><h4>Step8: Configure postgres to point to new data location</h4><p>Edit file at this location: /etc/postgresql/9.5/main/postgresql.conf</p><pre>. . .<br>data_directory = &#39;/data/postgresql/9.5/main&#39;<br>. . .</pre><h4>Step9: Restart postgres service and verify new data location</h4><pre><strong>$ sudo systemctl start postgresql</strong></pre><pre><strong>$ sudo systemctl status postgresql</strong><br>● postgresql.service — PostgreSQL RDBMS<br> Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)<br> Active: active (exited) since Thu 2017–10–26 10:52:19 UTC; 6s ago<br> Process: 8311 ExecStart=/bin/true (code=exited, status=0/SUCCESS)<br> Main PID: 8311 (code=exited, status=0/SUCCESS)</pre><pre>Oct 26 10:52:19 testing-raid systemd[1]: Starting PostgreSQL RDBMS…<br>Oct 26 10:52:19 testing-raid systemd[1]: Started PostgreSQL RDBMS.</pre><pre><strong>$ sudo -u postgres psql</strong><br>psql (9.5.9)<br>Type “help” for help.</pre><pre><strong>postgres=# show data_directory;</strong><br> data_directory<br> — — — — — — — — — — — — — -<br> /data/postgresql/9.5/main<br>(1 row)</pre><pre>postgres=#</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33724446fe5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with azure PowerCLI >_]]></title>
            <link>https://medium.com/@deepakshakya/getting-started-with-azure-powercli-e0b737bd6f26?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b737bd6f26</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Wed, 27 Sep 2017 14:39:05 GMT</pubDate>
            <atom:updated>2018-06-05T09:08:23.146Z</atom:updated>
            <content:encoded><![CDATA[<h3>Installing Powershell</h3><p>As I couldn’t get the AzureRM modules working on an older version you need to make sure you run the latest version of Powershell for Mac. <br>You can download a .pkg package from <a href="https://github.com/PowerShell/PowerShell">https://github.com/PowerShell/PowerShell</a>. <br>Installing is as simple as any other package. Just follow the wizard.</p><h4>On Mac:</h4><pre>$ <strong>brew cask reinstall powershell</strong><br>==&gt; Caveats<br>A OpenSSL-backed libcurl is required for custom handling of certificates.<br>This is rarely needed, but you can install it with<br>  brew install curl --with-openssl<br>See <a href="https://github.com/PowerShell/PowerShell/issues/2211">https://github.com/PowerShell/PowerShell/issues/2211</a></pre><pre>==&gt; Satisfying dependencies<br>All Formula dependencies satisfied.<br>==&gt; Downloading <a href="https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0-beta.7-osx.10.12-x64.pkg">https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.7/powershell-6.0.0-beta.7-osx.10.12-x64.pkg</a><br>######################################################################## 100.0%<br>==&gt; Verifying checksum for Cask powershell<br>==&gt; Installing Cask powershell<br>==&gt; Running installer for powershell; your password may be necessary.<br>==&gt; Package installers may write to any location; options such as --appdir are ignored.<br>Password:<br>==&gt; installer: Package name is powershell-6.0.0-beta.7-osx.10.12-x64<br>==&gt; installer: Upgrading at base path /<br>==&gt; installer: The upgrade was successful.<br>🍺  powershell was successfully installed!</pre><pre>PS /Users/username&gt; <strong>$env:PSModulePath</strong><br>/Users/username/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/usr/local/microsoft/powershell/6.0.0-beta.7/Modules</pre><pre>PS /Users/username&gt; <strong>$profile</strong><br>/Users/username/.config/powershell/Microsoft.PowerShell_profile.ps1</pre><pre>PS /Users/username&gt; <strong>$psversiontable</strong></pre><pre>Name                           Value<br>----                           -----<br>PSVersion                      6.0.0-beta<br>PSEdition                      Core<br>GitCommitId                    v6.0.0-beta.7<br>OS                             Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64<br>Platform                       Unix<br>PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}<br>PSRemotingProtocolVersion      2.3<br>SerializationVersion           1.1.0.1<br>WSManStackVersion              3.0</pre><h4>On Linux:</h4><pre><strong># Import the public repository GPG keys</strong><br>curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -<br><br><strong># Register the Microsoft Ubuntu repository</strong><br>curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list<br><br><strong># Update apt-get</strong><br>sudo apt-get update<br><br><strong># Install PowerShell</strong><br>sudo apt-get install -y powershell<br><br><strong># Start PowerShell</strong><br>powershell</pre><pre>PS /home/username&gt; <strong>$psversiontable</strong></pre><pre>Name                           Value<br>----                           -----<br>PSVersion                      6.0.0-beta<br>PSEdition                      Core<br>GitCommitId                    v6.0.0-beta.7<br>OS                             Linux 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017<br>Platform                       Unix<br>PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}<br>PSRemotingProtocolVersion      2.3<br>SerializationVersion           1.1.0.1<br>WSManStackVersion              3.0</pre><pre>PS /home/username&gt; <strong>$profile</strong><br>/root/.config/powershell/Microsoft.PowerShell_profile.ps1</pre><pre>PS /home/username&gt; <strong>$env:PSModulePath</strong><br>/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/6.0.0-beta.7/Modules</pre><p><strong>Links:</strong></p><p><a href="https://www.devprotocol.com/powershell-and-azure-on-macos/">https://www.devprotocol.com/powershell-and-azure-on-macos/</a></p><p><a href="https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#macos-1012">https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#macos-1012</a></p><p><strong>Checkpoint1:</strong> Hopefully by this time, using above set of links or instructions, you are able to install powershell on your machine and ready for next step.</p><h4>Install AzureRM.Netcore module</h4><pre>PS /home/username&gt; <strong>$env:PSModulePath</strong><br>/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/6.0.0-beta.7/Modules</pre><pre>PS /Users/username&gt; <strong>ls /Users/dshakya/.local/share/powershell/Modules</strong><br>AzureRM.Network AzureRM.profile</pre><pre><strong>Note: </strong>Go to <strong>super</strong> <strong>user mode (sudo su)</strong> before installing modules</pre><pre>PS /Users/username&gt; <strong>Save-Module -Name AzureRM.Netcore -Path /Users/dshakya/.local/share/powershell/Modules</strong></pre><pre>PS /Users/username&gt; <strong>Install-Module -Name AzureRM.Netcore</strong></pre><pre>Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from ‘PSGallery’? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “N”): Y<br>PS /Users/username&gt;</pre><pre><br>Come out of super user session and run following command as normal user:</pre><pre>PS /Users/username&gt; <strong>Get-Module -ListAvailable</strong></pre><pre>Directory: /usr/local/microsoft/powershell/6.0.0-beta.7/Modules</pre><pre>ModuleType Version    Name                                ExportedCommands<br>---------- -------    ----                                ----------------<br>Manifest   0.9.1      AzureRM.Compute.Netcore             {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-AzureRmAvailabilitySet...}<br>Manifest   0.9.1      AzureRM.Netcore<br>Manifest   0.9.1      AzureRM.Network.Netcore             {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticationCertificate, New-AzureRmApplicationG...<br>Manifest   0.9.1      AzureRM.Profile.Netcore             {Disable-AzureRmDataCollection, Enable-AzureRmDataCollection, Remove-AzureRmEnvironment, Get-AzureRmEnvironment...}<br>Manifest   0.9.1      AzureRM.Resources.Netcore           {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignment...}<br>Manifest   0.9.1      AzureRM.Storage.Netcore             {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmStorageAccountKey...}<br>Manifest   0.9.1      AzureRM.Tags.Netcore                {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}<br>Manifest   0.9.1      AzureRM.Websites.Netcore            {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAppServicePlan...}<br>Manifest   1.1.0.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}<br>Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}<br>Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}<br>Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Credential, Get-ExecutionPolicy, Set-ExecutionPolicy, ConvertFrom-SecureString...}<br>Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}<br>Script     1.1.4.0    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}<br>Script     3.3.9      Pester                              {Describe, Context, It, Should...}<br>Script     1.1.3.2    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}<br>Script     0.0        PSDesiredStateConfiguration         {ThrowError, Get-PSMetaConfigDocumentInstVersionInfo, New-DscChecksum, ValidateNodeResourceSource...}<br>Script     1.2        PSReadLine                          {Get-PSReadlineKeyHandler, Set-PSReadlineKeyHandler, Remove-PSReadlineKeyHandler, Get-PSReadlineOption...}</pre><p>You can simply import a module by adding “Import-Module MyModuleName” in the file. Because AzureRM has multiple modules you can add them in one command</p><pre>PS /Users/username&gt; Get-Module -ListAvailable AzureRm.* | Import-Module</pre><p><strong>Checkpoint2:</strong> Using above steps, you should be able to Install-Module(s)</p><h3>Login to azure using powershell</h3><pre>PS /Users/username&gt; <strong>Login-AzureRmAccount</strong><br>WARNING: Microsoft Azure PowerShell collects data about how users use PowerShell cmdlets and some problems they encounter. Microsoft uses this information to improve our PowerShell cmdlets.<br>Participation is voluntary and when you choose to participate your device automatically sends information to Microsoft about how you use Azure PowerShell.</pre><pre>If you choose to participate, you can stop at any time by using Azure PowerShell as follows:<br>1. Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the AzureRM.Profile module<br>To disable data collection: PS &gt; Disable-AzureDataCollection</pre><pre>If you choose to not participate, you can enable at any time by using Azure PowerShell as follows:<br>1. Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the AzureRM.Profile module<br>To enable data collection: PS &gt; Enable-AzureDataCollection</pre><pre><strong>Select Y to enable data collection [Y/N]:</strong><br>WARNING: You choose to participate in Microsoft Azure PowerShell data collection. </pre><pre>WARNING: The setting profile has been saved to the following path ‘/var/root/.config/Windows Azure Powershell/AzureDataCollectionProfile.json’. </pre><pre>WARNING: To sign in, use a web browser to open the page <a href="https://aka.ms/devicelogin">https://aka.ms/devicelogin</a> and enter the code XXXXXXXX to authenticate. </pre><pre>Environment : AzureCloud <br>Account : <a href="/service/mailto:deepak.shakya@gyana.co.uk">&lt;</a>your email id&gt; <br>TenantId : &lt;tenant Id&gt; <br>SubscriptionId : &lt;Susbcription id&gt;<br>SubscriptionName : &lt;Subscription name&gt; <br>CurrentStorageAccount : </pre><pre>PS /Users/username&gt;</pre><p>GET operations</p><h4>Get VM disk details</h4><pre><strong>#All data disk details in all resource groups</strong><br>PS /Users/username&gt; <strong>Get-AzureRmDisk</strong></pre><pre><strong>#Disks details for a specific RG and diskName<br></strong>PS /Users/username&gt; <strong>Get-AzureRmDisk -ResourceGroupName ‘RG’ -DiskName ‘OsDisk_1_dbdacee1edd44f01a9f7245a08a12743’</strong></pre><pre><strong>#Disks details for a specific RG<br></strong>PS /Users/username&gt; <strong>Get-AzureRmDisk -ResourceGroupName &#39;RG&#39;</strong></pre><h4>Documentation of managing azure using powershell for different features</h4><p><a href="https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/get-azurermvm?view=azurermps-4.4.0">Get-AzureRmVM (AzureRM.Compute)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b737bd6f26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sometimes do things that DO SCALE after all!]]></title>
            <link>https://medium.com/gyaanaa/sometimes-do-things-that-do-scale-after-all-ded9f702258d?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded9f702258d</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneur]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Mon, 04 Sep 2017 21:27:27 GMT</pubDate>
            <atom:updated>2017-09-04T21:30:40.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uIFVrefXPvyMikaKemmr5g.jpeg" /></figure><p>Hello — I am a software solutions architect at Gyana. A foundational member- I have seen it being conceived, born and now scaled.</p><p>I have worked earlier with top MNC’s like Cisco &amp; Juniper, in both big and small teams. I have seen that side of the world. My self-start journey started with a non-profit org named Anahatalife. Now, I am on another marathon journey with like minded and enthusiastic people in Gyana. It’s like a team who has to win a relay race but to do so every individual has to run as per his max potential. It wouldn’t be wrong to say there we need to believe there are <strong>NO LIMITS!</strong></p><blockquote><strong>“Limits are imaginations from past or historical records.”</strong></blockquote><p><strong><em>[I am also an avid marathon runner — therefore from time to time you will find I cannot help but keep bringing up running metaphors.]</em></strong></p><p>History always teaches you to be someone other than you. History is safe. History is limited.</p><p>And that’s why History is HISTORY!</p><p>Be bold.</p><p>Be limitless.</p><p>Be maker of your own destiny.</p><p>Create unprecedented space for your endeavours.</p><p>Now as we are scaling up Gyana, we want to rewrite our own history- as someone wise said —<strong><em> “the best competition is always with your own former self”</em></strong>.Thankfully we have put in place processes and infrastructure solutions over the last 2 years which otherwise I would expect only in some big organisations or sometimes even not. This has helped us begin to scale up quite fast and with zero casualties!</p><blockquote><strong>I know most startup books say “do things that do not scale” — but myself ( and Founders ) always strongly believed that ‘history’ is limiting in nature.</strong></blockquote><p>There are no golden rules when it comes to startups.</p><p>We knew that our entire business potential is such that scale up is not just a essential step in the business- the nature of our work is such that it is the ONLY step that will ultimately make sense. So, we constantly worked towards band aid solutions as well as long term remedies- be it cyber security, ISO certification very early on, massive ETL pipeline automations, sorting algorithms, classifiers, orchestrators, data lake strategies — CTO David Kell always ensured we are scale ready from very early on.</p><p>And how it paid off ! As soon as we begun the customer ramp up process — I can tell you how much we thanked each other for that foresight. I pat myself on the back quite often for going that extra mile each time in the past architectural plans.</p><blockquote>“What seemed like more work turned out to be a pure blessing.”</blockquote><h4><strong>Some tips from my end :-</strong></h4><h4><strong>1. Agile methodology</strong> <strong>— set key processes</strong></h4><p>I have seen big organisations struggling to adopt Agile methodology even though they want to. The data science market is very competitive and businesses want faster feature delivery to their customers. Agile enforces us to have key processes in place which helps in quicker delivery along with quality. It is definitely helping us to have high feature velocity.</p><blockquote><strong><em>“Adopt it early and keep scaling it as you grow.”</em></strong></blockquote><h4><strong>2. Code quality measures — follow industry standard best practices</strong></h4><p>This is always key concern in s/w development. You don’t want to waste your bandwidth on fixing more issues than development. More importantly you don’t want to lose your customer’s trust. We strictly follow industry standard code reviews, coding standards, versioning system, documentation etc. This is definitely helping new on-boarding members as we scale up. Beautifully documented code is a dream- always has been — and we got very close to it. Believe it or not- I and CTO do spot checks on code documentation even now, for everyone. On some rainy days , our CEO — an ex-techie herself, still drops that occasional slack message to a random coder “I checked the codebase, your modules are not well documented” even now. [ <em>Sometimes I think she has made clones of herself</em>].</p><h4><strong><em>3. </em>Get the Certifications early</strong></h4><blockquote><em>“If your customer cares about trust, then so shall you give.”</em></blockquote><p>We are also <strong>ISO27001 certified</strong> (framework of policies and procedures that includes all legal, physical and technical controls involved in an organisation’s information risk management processes). Many people said it is an overkill but given we work in enterprise Saas, this alone changed our pipeline by 30% overnight.</p><p><em>[So don’t listen to people- only you know the business best.]</em></p><h4><strong>4. Continuous Integration &amp; Deployment</strong> <strong>— process optimisation</strong></h4><p>With high feature velocity, it takes a lot of effort and bandwidth to test and deploy newer version of code. Hence, in order to optimise this overall process it is important to deploy continuous integration and deployment. I am happy to say I have not seen this level of 100% autonomous deployment in very established organisations.</p><h4><strong>5. Analytics</strong> <strong>— User behaviour, product monitoring/logging</strong></h4><p>It’s paramount to have a feedback loop which helps to improve product by every release. Direct user feedback is always great. However, user will not always be candid, will not always have time and will not always talk to you directly ( will talk to others in team or worse, to competitors ). <strong><em>Deep stack analytics are the plan to have alternate infrastructure in place with which you can understand the improvement areas in your product.</em></strong> We have developed in-house solutions advanced solutions to monitor our product performance and hence we can constantly improve it regardless of user feedback</p><p><em>[However, my advice would be to use these services smartly. Don’t get too coupled with proprietary services that it would be difficult to switch to any other service provider in future]</em></p><p>All in all keep a balance — startups are all about fast response and delivering quick. So keep doing what you do but also keep an eye on long term strategies. Ear mark that Saturday morning or that one unusually easy day for cleaning up and creating long term grooves in your product architecture and deployment practices. Make an organization that does not stumble and break when you go from local to global. Create a culture that is all about go-getters but also about sustainability and far sightedness. I am glad I found that in Gyana foundations from day one.</p><p>I would love to hear from fellow readers about their journey from startup to scale-up mode. How did you achieve this?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded9f702258d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gyaanaa/sometimes-do-things-that-do-scale-after-all-ded9f702258d">Sometimes do things that DO SCALE after all!</a> was originally published in <a href="https://medium.com/gyaanaa">Gyana Limited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Programmatically generating PDF solutions]]></title>
            <link>https://medium.com/gyaanaa/programmatically-generating-pdf-solutions-7d0690bfd9a8?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d0690bfd9a8</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[gyana-limited]]></category>
            <category><![CDATA[pdf]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Mon, 17 Jul 2017 08:23:43 GMT</pubDate>
            <atom:updated>2017-07-17T14:10:33.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*KfEIRO3uwQcadqTc-qvdog.jpeg" /></figure><p>Sometime back I was looking for some open source solutions to create PDF. I came across many solutions and thought of sharing my analysis. Below, I am sharing 6 different existing PDF generation solutions. Each one of them is different and you may choose to pick one over other depending upon your priority, project, framework etc.</p><h4>1. XHTML2PDF</h4><p>xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written in pure Python so it is platform independent.</p><p>The main benefit of this tool that a user with Web skills like HTML and CSS is able to generate PDF templates very quickly without learning new technologies.</p><p><strong>Support:</strong></p><p><strong>Python2</strong> (in addition to xhtml2pdf, need to install this specific version of html5 in case of error , pip install html5lib==1.0b8)</p><p><strong>Python3</strong> (pip install xhtml2pdf==0.2b1)</p><p><strong>Git Source:</strong> <a href="https://github.com/xhtml2pdf/xhtml2pdf">https://github.com/xhtml2pdf/xhtml2pdf</a></p><p><strong>Documentation:</strong> <a href="http://xhtml2pdf.readthedocs.io/en/stable/usage.html">http://xhtml2pdf.readthedocs.io/en/stable/usage.html</a></p><p><strong>Pros</strong>: Quick and easy to create pure text based PDFs</p><p><strong>Quick example:</strong></p><pre>from xhtml2pdf import pisa # import python module</pre><pre># Define your data<br>sourceHtml = “””&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br> &lt;div&gt;<br> &lt;h1&gt; Hello, world! &lt;/div&gt;</pre><pre>&lt;p&gt;<br> The quick red fox jumps over the lazy brown dog.<br> &lt;/p&gt;<br> &lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;”””<br>outputFilename = “test.pdf”</pre><pre># Utility function<br>def convertHtmlToPdf(sourceHtml, outputFilename):<br> # open output file for writing (truncated binary)<br> resultFile = open(outputFilename, “w+b”)</pre><pre># convert HTML to PDF<br> pisaStatus = pisa.CreatePDF(<br> sourceHtml, # the HTML to convert<br> dest=resultFile) # file handle to recieve result</pre><pre># close output file<br> resultFile.close() # close output file</pre><pre># return True on success and False on errors<br> return pisaStatus.err</pre><pre># Main program<br>if __name__==”__main__”:<br> pisa.showLogging()<br> convertHtmlToPdf(sourceHtml, outputFilename)</pre><h4>2. REPORTLAB</h4><p>Solutions to generate rich, attractive and fully bespoke PDF documents at incredible speeds. Serve high quality personalised documents in real time and support all kinds of delivery from web downloads to digital print from a single API.</p><p><strong>Support: </strong>Python 2.7 or 3.3+</p><p>You need to register here (<a href="http://www.reportlab.com/accounts/register/">http://www.reportlab.com/accounts/register/</a>) before able to get access to download source code</p><p><strong>Source: </strong><a href="http://www.reportlab.com/software/downloads/">http://www.reportlab.com/software/downloads/</a></p><p><strong>Bitbucket:</strong> <a href="https://bitbucket.org/rptlab/reportlab">https://bitbucket.org/rptlab/reportlab</a></p><p><strong>Documentation:</strong> <a href="https://www.reportlab.com/documentation/">https://www.reportlab.com/documentation/</a></p><pre>(reportlab) $ pip install rlextra -i <a href="https://www.reportlab.com/pypi">https://www.reportlab.com/pypi</a><br>Collecting rlextra<br>User for <a href="http://www.reportlab.com/">www.reportlab.com</a>: <a href="/service/mailto:deepak.shakya@gmail.com">&lt;</a>registered user id&gt;<br>Password: &lt;your password&gt;<br> Downloading <a href="https://www.reportlab.com/pypi/packages/rlextra-3.4.14.tar.gz">https://www.reportlab.com/pypi/packages/rlextra-3.4.14.tar.gz</a> (9.2MB)<br> 100% |████████████████████████████████| 9.2MB 13.4MB/s<br>Collecting reportlab&gt;=3.4.14 (from rlextra)<br> Downloading <a href="https://www.reportlab.com/pypi/packages/reportlab-3.4.14.tar.gz">https://www.reportlab.com/pypi/packages/reportlab-3.4.14.tar.gz</a> (2.0MB)<br> 100% |████████████████████████████████| 2.0MB 11.6MB/s<br>Collecting Pmw&gt;=2.0.0 (from rlextra)<br> Downloading <a href="https://www.reportlab.com/pypi/packages/Pmw-2.0.0.tar.gz">https://www.reportlab.com/pypi/packages/Pmw-2.0.0.tar.gz</a> (847kB)<br> 100% |████████████████████████████████| 849kB 11.9MB/s<br>Collecting preppy&gt;=2.3.5 (from rlextra)<br> Downloading <a href="https://www.reportlab.com/pypi/packages/preppy-2.4.1-py2.py3-none-any.whl">https://www.reportlab.com/pypi/packages/preppy-2.4.1-py2.py3-none-any.whl</a><br>Collecting pyRXP&gt;=2.1.1 (from rlextra)<br> Downloading <a href="https://www.reportlab.com/pypi/packages/pyRXP-2.1.1.tar.gz">https://www.reportlab.com/pypi/packages/pyRXP-2.1.1.tar.gz</a> (251kB)<br> 100% |████████████████████████████████| 256kB 6.4MB/s<br>Collecting pillow&gt;=2.4.0 (from reportlab&gt;=3.4.14-&gt;rlextra)<br> Downloading <a href="https://www.reportlab.com/pypi/packages/Pillow-3.0.0.tar.gz">https://www.reportlab.com/pypi/packages/Pillow-3.0.0.tar.gz</a> (9.6MB)<br> 100% |████████████████████████████████| 9.6MB 14.3MB/s<br>Installing collected packages: pillow, reportlab, Pmw, preppy, pyRXP, rlextra<br> Running setup.py install for pillow … done<br> Running setup.py install for reportlab … done<br> Running setup.py install for Pmw … done<br> Running setup.py install for pyRXP … done<br> Running setup.py install for rlextra … done<br>Successfully installed Pmw-2.0.0 pillow-3.0.0 preppy-2.4.1 pyRXP-2.1.1 reportlab-3.4.14 rlextra-3.4.14</pre><h4>Example:</h4><p>In reportlab repository navigate to following path: reportlab/demos/gadflypaper/gfe.py</p><p><strong>Pros: </strong>provides wide range of support for different data elements in pdf.</p><h4>3. PHANTOMJS</h4><p>PhantomJS is a headless WebKit scriptable with a JavaScript API. It has <strong>fast</strong> and <strong>native</strong> support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.</p><p><strong>Main website:</strong> <a href="http://phantomjs.org/">http://phantomjs.org/</a></p><p><strong>Download:</strong> <a href="http://phantomjs.org/download.html">http://phantomjs.org/download.html</a></p><p><strong>Example:</strong></p><p><a href="https://coderwall.com/p/5vmo1g/use-phantomjs-to-create-pdfs-from-html">https://coderwall.com/p/5vmo1g/use-phantomjs-to-create-pdfs-from-html</a></p><pre>phantomjs rasterize.js <a href="https://www.google.com/">https://www.google.com</a> google.pdf</pre><p><strong>Pros:</strong> Quickly convert any existing webpage to PDF.</p><p><strong>Cons: </strong>This may not be great solution if you looking for customisation on the fly type of solution to create PDF.</p><h4>4. jsPDF — A library to generate PDFs in client-side JavaScript.</h4><p>This is <strong>javascript</strong> based solution. I like this personally as it has very simple and intuitive API (very well documented) to use and one can create PDF from scratch.</p><p><strong>Github:</strong> <a href="https://github.com/MrRio/jsPDF">https://github.com/MrRio/jsPDF</a></p><p><strong>Git (clone):</strong> <a href="https://github.com/MrRio/jsPDF.git">https://github.com/MrRio/jsPDF.git</a></p><p><strong>NPM:</strong> <a href="https://www.npmjs.com/package/jspdf">https://www.npmjs.com/package/jspdf</a></p><p><strong>Documentation:</strong> <a href="http://rawgit.com/MrRio/jsPDF/master/docs/">http://rawgit.com/MrRio/jsPDF/master/docs/</a></p><p><strong>Good examples to start:</strong> <a href="https://mrrio.github.io/">https://mrrio.github.io/</a></p><p><strong>Live Demo:</strong> <a href="http://rawgit.com/MrRio/jsPDF/master/">http://rawgit.com/MrRio/jsPDF/master/</a></p><p><strong>Quick sample code:</strong></p><pre>var doc = new jsPDF();<br>doc.text(20, 20, &#39;Hello world!&#39;);<br>doc.text(20, 30, &#39;This is client-side Javascript, pumping out a PDF.&#39;);<br>doc.addPage();<br>doc.text(20, 20, &#39;Do you like that?&#39;);<br><br>// Output as Data URI<br>doc.output(&#39;datauri&#39;);<br>doc.save(&#39;test.pdf&#39;);</pre><p><strong>Pros:</strong> It has very simple and intuitive API (very well documented) to use and one can create PDF from scratch.</p><h4>5. WeasyPrint</h4><p>WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license.</p><p><strong>Support:</strong> Python 2.7 or 3.3+</p><p><strong>Github:</strong> <a href="https://github.com/Kozea/WeasyPrint">https://github.com/Kozea/WeasyPrint</a></p><p><strong>Tutorial:</strong> <a href="http://weasyprint.readthedocs.io/en/stable/tutorial.html">http://weasyprint.readthedocs.io/en/stable/tutorial.html</a></p><p><strong>Documentation:</strong> <a href="https://weasyprint.readthedocs.io/en/stable/">https://weasyprint.readthedocs.io/en/stable/</a></p><p><strong>API:</strong> <a href="http://weasyprint.readthedocs.io/en/stable/api.html">http://weasyprint.readthedocs.io/en/stable/api.html</a></p><p><strong>Dependencies:</strong></p><pre>brew install python3 cairo pango gdk-pixbuf libffi</pre><p><strong>Installation:</strong></p><pre>(weasyprint) $ pip install weasyprint<br></pre><p>After installation, quick check:</p><pre><strong>(weasyprint) $ weasyprint — help</strong><br>usage: weasyprint [-h] [ — version] [-e ENCODING] [-f {pdf,png}]<br> [-s STYLESHEET] [-m MEDIA_TYPE] [-r RESOLUTION]<br> [ — base-url BASE_URL] [-a ATTACHMENT] [-p]<br> input output</pre><pre>Renders web pages to PDF or PNG.</pre><pre>positional arguments:<br>  input                 URL or filename of the HTML input, or - for stdin<br>  output                Filename where output is written, or - for stdout</pre><pre>optional arguments:<br>  -h, --help            show this help message and exit<br>  --version             Print WeasyPrint&#39;s version number and exit.<br>  -e ENCODING, --encoding ENCODING<br>                        Character encoding of the input<br>  -f {pdf,png}, --format {pdf,png}<br>                        Output format. Can be omitted if `output` ends with a<br>                        .pdf or .png extension.<br>  -s STYLESHEET, --stylesheet STYLESHEET<br>                        URL or filename for a user CSS stylesheet. May be<br>                        given multiple times.<br>  -m MEDIA_TYPE, --media-type MEDIA_TYPE<br>                        Media type to use for <a href="http://twitter.com/media">@media</a>, defaults to print<br>  -r RESOLUTION, --resolution RESOLUTION<br>                        PNG only: the resolution in pixel per CSS inch.<br>                        Defaults to 96, one PNG pixel per CSS pixel.<br>  --base-url BASE_URL   Base for relative URLs in the HTML input. Defaults to<br>                        the input&#39;s own filename or URL or the current<br>                        directory for stdin.<br>  -a ATTACHMENT, --attachment ATTACHMENT<br>                        URL or filename of a file to attach to the PDF<br>                        document<br>  -p, --presentational-hints<br>                        Follow HTML presentational hints.</pre><p><strong>Example to try:</strong></p><pre>weasyprint http://weasyprint.org ./weasyprint-website.pdf</pre><h4>6. LaTeX</h4><p>LaTeX, which is pronounced «Lah-tech» or «Lay-tech» (to rhyme with «blech» or «Bertolt Brecht»), is a document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.</p><p><strong>Website:</strong> <a href="https://www.latex-project.org/">https://www.latex-project.org/</a></p><p><strong>Download:</strong> <a href="https://www.latex-project.org/get/">https://www.latex-project.org/get/</a></p><p>It is supported on all platforms.</p><p>You can install full version (<a href="http://www.tug.org/mactex/mactex-download.html">MacTeX</a>, 3.5GB) or smaller limited version (<a href="http://tug.org/cgi-bin/mactex-download/BasicTeX.pkg">BasicTeX</a>)which is approx 72MB.</p><p>Sample latex file:</p><pre>\documentclass{article}<br>\usepackage{graphicx}<br><br>\begin{document}<br><br>\title{Introduction to \LaTeX{}}<br>\author{Author&#39;s Name}<br><br>\maketitle<br><br>\begin{abstract}<br>This is abstract text: This simple document shows very basic features of<br>\LaTeX{}.<br>\end{abstract}<br><br><br>\section{Introduction}<br><br>Here is the text of your introduction. We use some Latin nonsense text to fill<br>the paragraphs. This way the resulting document will look more like an actual<br>scientific paper or so. Here is an equation:<br><br>\begin{equation}<br>    \label{simple_equation}<br>    \alpha = \sqrt{ \beta }<br>\end{equation}<br><br>Now you don&#39;t need to read the text any further because it&#39;s just Lorem ipsum.<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in<br>culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit<br>amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore<br>et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation<br>ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor<br>in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla<br>pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui<br>officia deserunt mollit anim id est laborum.<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in<br>culpa qui officia deserunt mollit anim id est laborum.<br><br><br>\subsection{Subsection Heading Here}<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in<br>culpa qui officia deserunt mollit anim id est laborum.<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in<br>culpa qui officia deserunt mollit anim id est laborum.<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in<br>culpa qui officia deserunt mollit anim id est laborum.<br><br><br>\section{Conclusion}<br><br>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br>incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis<br>nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu<br>fugiat nulla pariatur.<br><br><br>\end{document}</pre><p>Command to compile it:</p><pre><strong>$pdflatex sample_latex.tex</strong><br>This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)<br> restricted \write18 enabled.<br>entering extended mode<br>(./sample_latex.tex<br>LaTeX2e &lt;2017-04-15&gt;<br>Babel &lt;3.10&gt; and hyphenation patterns for 22 language(s) loaded.<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/article.cls<br>Document Class: article 2014/09/29 v1.4h Standard LaTeX document class<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/base/size10.clo))<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/graphicx.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/keyval.sty)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/graphics.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics/trig.sty)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/graphics-def/pdftex.def<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/infwarerr.sty)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))<br>(./sample_latex.aux)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/context/base/mkii/supp-pdf.mkii<br>[Loading MPS to PDF converter (version 2006.09.02).]<br>) (/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/ifluatex.sty)<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/ifpdf.sty))<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/oberdiek/grfext.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty)<br>) (/usr/local/texlive/2017basic/texmf-dist/tex/latex/oberdiek/kvoptions.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty<br>(/usr/local/texlive/2017basic/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))<br>(/usr/local/texlive/2017basic/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg<br>)) [1{/usr/local/texlive/2017basic/texmf-var/fonts/map/pdftex/updmap/pdftex.map<br>}] [2] (./sample_latex.aux) )&lt;/usr/local/texlive/2017basic/texmf-dist/fonts/typ<br>e1/public/amsfonts/cm/cmbx12.pfb&gt;&lt;/usr/local/texlive/2017basic/texmf-dist/fonts<br>/type1/public/amsfonts/cm/cmbx9.pfb&gt;&lt;/usr/local/texlive/2017basic/texmf-dist/fo<br>nts/type1/public/amsfonts/cm/cmex10.pfb&gt;&lt;/usr/local/texlive/2017basic/texmf-dis<br>t/fonts/type1/public/amsfonts/cm/cmmi10.pfb&gt;&lt;/usr/local/texlive/2017basic/texmf<br>-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb&gt;&lt;/usr/local/texlive/2017basic/te<br>xmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb&gt;&lt;/usr/local/texlive/2017basic<br>/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb&gt;&lt;/usr/local/texlive/2017ba<br>sic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb&gt;&lt;/usr/local/texlive/2017<br>basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb&gt;<br>Output written on sample_latex.pdf (2 pages, 95855 bytes).<br>Transcript written on sample_latex.log.</pre><p><strong>Pros:</strong> Amazing amount of granularity to create your PDF.</p><p>Cons: It might take some time to get yourself familiar with all syntax of LaTeX to use it’s full potential.</p><p>I wanted to put together all these solutions on one page and hopefully it might be useful for many people who are looking for similar solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d0690bfd9a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gyaanaa/programmatically-generating-pdf-solutions-7d0690bfd9a8">Programmatically generating PDF solutions</a> was originally published in <a href="https://medium.com/gyaanaa">Gyana Limited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Bugzilla using docker image on localhost]]></title>
            <link>https://medium.com/@deepakshakya/setting-up-bugzilla-using-docker-image-on-localhost-e73d6371f482?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e73d6371f482</guid>
            <category><![CDATA[bugzilla]]></category>
            <category><![CDATA[bug-tracking]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Mon, 29 May 2017 23:19:17 GMT</pubDate>
            <atom:updated>2018-06-05T09:03:16.257Z</atom:updated>
            <content:encoded><![CDATA[<p>**For all who want to try out bugzilla on localhost using docker image**</p><p><strong>Step1</strong>: Git clone bugzilla</p><pre>git clone <a href="https://github.com/bugzilla/bugzilla.git">https://github.com/bugzilla/bugzilla.git</a></pre><p><strong>Step2</strong>: Build docker image</p><pre>docker-compose build</pre><p><strong>Step3</strong>: Bring up docker image</p><pre>docker-compose up</pre><p><strong>Step4</strong>: Connect to docker bugzilla instance</p><p>Here we need to create a <strong>new user</strong> ‘bugs’ with <strong>ALL privileges</strong> and <strong>password</strong> as ‘bugs’ on <strong>localhost</strong> for <strong>new database</strong> as ‘bugs’.</p><pre>$<strong>docker exec -it bugzilla_bugzilla_1 su — bugzilla</strong></pre><pre>Last login: Mon May 29 21:11:59 UTC 2017<br>[bugzilla@1f5025cbfde5 ~]$ <strong>mysql -h localhost -u root</strong><br>Welcome to the MySQL monitor.  Commands end with ; or \g.<br>Your MySQL connection id is 70<br>Server version: 5.6.36 MySQL Community Server (GPL)</pre><pre>Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.</pre><pre>Oracle is a registered trademark of Oracle Corporation and/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.</pre><pre>Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.</pre><pre>mysql&gt;</pre><pre>mysql&gt; <strong>CREATE USER &#39;bugs&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;bugs&#39;;</strong></pre><pre>mysql&gt; <strong>SELECT User FROM mysql.user;</strong></pre><pre>mysql&gt; <strong>GRANT ALL PRIVILEGES ON *.* TO &#39;bugs&#39;@&#39;localhost&#39; WITH GRANT OPTION;</strong><br>Query OK, 0 rows affected (0.00 sec)</pre><pre>mysql&gt; <strong>SHOW GRANTS FOR ‘bugs’@’localhost’;</strong><br>+ — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br>| Grants for bugs@localhost |<br>+ — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br>| GRANT ALL PRIVILEGES ON *.* TO ‘bugs’@’localhost’ IDENTIFIED BY PASSWORD ‘*F6143BCA58806D14CD1C97998C6792405D8AE8AE’ WITH GRANT OPTION |<br>+ — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — +<br>1 row in set (0.00 sec)</pre><pre>[bugzilla@1f5025cbfde5 bugzilla]$ <strong>mysql -h localhost -u bugs -D bugs -p</strong><br>Enter password:<br>Reading table information for completion of table and column names<br>You can turn off this feature to get a quicker startup with -A</pre><pre>Welcome to the MySQL monitor. Commands end with ; or \g.<br>Your MySQL connection id is 55<br>Server version: 5.6.36 MySQL Community Server (GPL)</pre><pre>Copyright © 2000, 2017, Oracle and/or its affiliates. All rights reserved.</pre><pre>Oracle is a registered trademark of Oracle Corporation and/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.</pre><pre>Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.</pre><pre>mysql&gt;</pre><p><strong>Step5</strong>: Now run ‘perl checksetup.pl’</p><pre>[bugzilla@1f5025cbfde5 bugzilla]$ cd <strong>/home/bugzilla/devel/htdocs/bugzilla</strong><br>[bugzilla@1f5025cbfde5 bugzilla]$ pwd<br>/home/bugzilla/devel/htdocs/bugzilla</pre><pre>[bugzilla@1f5025cbfde5 bugzilla]$ perl checksetup.pl<br>.<br>.<br>.<br>.<br>.<br>.<br>Adding new table bz_schema…<br>Initializing bz_schema…<br>Creating tables…<br>Converting attach_data maximum size to 100G…<br>Setting up choices for standard drop-down fields:<br> priority bug_status rep_platform resolution bug_severity op_sys<br>Creating ./data directory…<br>Creating ./data/assets directory…<br>Creating ./data/attachments directory…<br>Creating ./data/db directory…<br>Creating ./data/extensions directory…<br>Creating ./data/mining directory…<br>Creating ./data/webdot directory…<br>Creating ./graphs directory…<br>Creating ./skins/custom directory…<br>Creating ./data/extensions/additional…<br>Creating ./data/mailer.testfile…<br>Precompiling templates…done.<br>Fixing file permissions…<br>Initializing “Dependency Tree Changes” email_setting …<br>Initializing “Product/Component Changes” email_setting …<br>Marking closed bug statuses as such…<br>Creating default classification ‘Unclassified’…<br>Setting up foreign keys…<br>Setting up the default status workflow…<br>Creating default groups…<br>Setting up user preferences…</pre><pre>Looks like we don’t have an administrator set up yet. Either this is<br>your first time using Bugzilla, or your administrator’s privileges<br>might have accidentally been deleted.</pre><pre>Enter the e-mail address of the administrator: deepak.shakya@gyana.space<br>Enter the login name the administrator will log in with: dshakya<br>Enter the real name of the administrator: Deepak Shakya<br>Enter a password for the administrator account:<br>Please retype the password to verify:<br>dshakya is now set up as an administrator.<br>Creating initial dummy product ‘TestProduct’…</pre><pre>Now that you have installed Bugzilla, you should visit the ‘Parameters’<br>page (linked in the footer of the Administrator account) to ensure it<br>is set up as you wish — this includes setting the ‘urlbase’ option to<br>the correct URL.<br><strong>checksetup.pl complete.</strong></pre><p>If no obvious errors in above step, then bugzilla is ready to use.</p><p>You can open browser and use following address to connect to bugzilla</p><pre>http://localhost:8080/bugzilla/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jL7WHWK9k8bP79qTnp14qQ.png" /><figcaption>Bugzilla home page snapshot</figcaption></figure><h4>Note:</h4><p>Bugzilla docker image <strong>doesn’t support SSL </strong>as of now.</p><p>Some links which might be useful if looking to support SSL</p><p><a href="https://linoxide.com/tools/install-bugzilla-apache-ssl-freebsd-10-2/">How to Install Bugzilla with Apache and SSL on FreeBSD 10.2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e73d6371f482" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step by step guide to build a docker image with Node + Django + Postgres]]></title>
            <link>https://medium.com/@deepakshakya/step-by-step-guide-to-build-a-docker-image-with-node-django-postgres-a8ebf1038e66?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8ebf1038e66</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Thu, 11 May 2017 12:17:59 GMT</pubDate>
            <atom:updated>2017-05-11T12:17:59.048Z</atom:updated>
            <content:encoded><![CDATA[<p>My motivation to write this blog so that you save some time on searching similar stuff again on multiple forums. Especially, first time users of docker</p><h3>Some pre-requisites</h3><p>You must be familiar with following:-</p><ol><li><strong>Install docker locally</strong>: <a href="https://docs.docker.com/engine/installation/">https://docs.docker.com/engine/installation/</a></li><li><strong>Build your own Docker image: </strong><a href="https://docs.docker.com/engine/userguide/dockerimages/">https://docs.docker.com/engine/userguide/dockerimages/</a></li><li><strong>Publish your Docker image to Docker Hub: </strong><a href="https://docs.docker.com/engine/userguide/dockerimages/#push-an-image-to-docker-hub">https://docs.docker.com/engine/userguide/dockerimages/#push-an-image-to-docker-hub</a></li><li><strong>Publish your Docker image to your self-hosted registry: </strong><a href="https://docs.docker.com/engine/userguide/containers/dockerimages/#push-an-image-to-docker-hub">https://docs.docker.com/engine/userguide/containers/dockerimages/#push-an-image-to-docker-hub</a></li></ol><p>You could go through my other article which is specially for newbies who wants to use docker from scratch.</p><h3>My learning &amp; precautions:</h3><p>— Please check all default packages which comes as part of Ubuntu image are updated as per latest stable version or at least what you need in your project.</p><p>— Make sure you finally have latest versions of Postgres, Node, Yarn, Python3, pip3 and related setuptools</p><p>— Split your docker file into logically if you are into try and debug mode. For e.g. if you gonna experiment with how to install django, node, postgres then it’s better you do one by one by commenting our rest of config.</p><h4>Let’s create a Dockerfile to build a basic Ubuntu 14.0.4 image</h4><h4>Contents of my basic Dockerfile:</h4><pre><br><strong>FROM</strong> ubuntu:14.04<br><strong>RUN</strong> apt-get update &amp;&amp; apt-get install -y locales &amp;&amp; rm -rf /var/lib/apt/lists/* \<br> &amp;&amp; localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8<br><strong>ENV</strong> LANG en_US.utf8<br><strong>CMD</strong> ls</pre><p>To build docker image using Dockerfile</p><pre><strong><em>$sudo docker build -t deepakshakya/ubuntu .</em></strong><em><br>Password:<br>Sending build context to Docker daemon 3.072 kB<br></em><strong><em>Step 1/4</em></strong><em> : FROM ubuntu:14.04<br>14.04: Pulling from library/ubuntu<br>30d541b48fc0: Pull complete<br>8ecd7f80d390: Pull complete<br>46ec9927bb81: Pull complete<br>2e67a4d67b44: Pull complete<br>7d9dd9155488: Pull complete<br>Digest: sha256:62a5dce5ceccd7f1cb2672a571ebee52cad1f08eec9b57fe4965fb0968a9602e<br>Status: Downloaded newer image for ubuntu:14.04<br> — -&gt; 7c09e61e9035<br></em><strong><em>Step 2/4</em></strong><em> : RUN apt-get update &amp;&amp; apt-get install -y locales &amp;&amp; rm -rf /var/lib/apt/lists/* &amp;&amp; localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8<br> — -&gt; Running in 6480c0e38576<br>.</em></pre><pre><em>.</em></pre><pre><em>.</em></pre><pre><em>.<br>Fetched 22.5 MB in 7s (3011 kB/s)<br>Reading package lists…<br>Reading package lists…<br>Building dependency tree…<br>Reading state information…<br>locales is already the newest version.<br>0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.<br> — -&gt; d0d2fbf93099<br>Removing intermediate container 6480c0e38576<br></em><strong><em>Step 3/4</em></strong><em> : ENV LANG en_US.utf8<br> — -&gt; Running in f38b2eed4f22<br> — -&gt; 631834b1ce09<br>Removing intermediate container f38b2eed4f22<br></em><strong><em>Step 4/4</em></strong><em> : CMD ls<br> — -&gt; Running in b7ab1c29b13a<br> — -&gt; 578685956775<br>Removing intermediate container b7ab1c29b13a<br>Successfully built 578685956775<br>$</em></pre><p><strong>Verify build:</strong></p><pre>$docker images</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qkk-O7HJ2HOesks0KhsYCQ.png" /></figure><h4><strong>Let’s run this image</strong></h4><p>Remember what do we expect to see when we run this image?</p><p>We have mentioned ‘<strong>ls</strong>’ command to be run in <strong>Dockerfile</strong></p><pre><strong>$docker run &lt;Image ID&gt;</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rE1KEPaOwVceT74DovIlvA.png" /></figure><p>So it works fine! Hurray!</p><p>Now let’s write our <strong>Dockerfile</strong>.</p><pre><strong>FROM</strong> ubuntu:14.04</pre><pre># Create app directory<br><strong>RUN</strong> mkdir -p /usr/src/&lt;project-dir&gt;<br><strong>WORKDIR</strong> /usr/src/&lt;project-dir&gt;</pre><pre>Adding some initial packages/libraries required:</pre><pre># Bundle app source<br><strong>COPY</strong> . /usr/src/&lt;project-dir&gt;</pre><pre><strong><em>Note:</em></strong><em> Dot (.) above assuming that your docker file exists in root folder of your project directory. Change it accordingly.</em></pre><pre><strong>RUN</strong> apt-get update &amp;&amp; apt-get install -y \<br> locales \<br> python3-pip \<br> libgdal1-dev \<br> libxft-dev \<br> libfreetype6-dev \<br> libffi-dev \<br> vim \<br> nodejs \<br> npm \<br> curl \<br> wget</pre><p><strong><em>Note:</em></strong><em> You can append more or less as per your requirements.</em></p><p><strong>Add some env variables related to locale.</strong></p><p><em>This may not be obvious at this time but some libraries need it.</em></p><pre>ENV LANG C.UTF-8<br>ENV LC_ALL C.UTF-8</pre><h3>Framework: Install Node + NPM + YARN</h3><pre>#Installing yarn using npm<br><strong>RUN</strong> sudo npm install -g yarnpkg</pre><pre>#Upgrading node version to latest stable<br><strong>RUN</strong> sudo npm cache clean -f<br><strong>RUN</strong> sudo npm install -g n<br><strong>RUN</strong> sudo n stable<br><strong>RUN</strong> sudo ln -sf /usr/local/n/versions/node/7.8.0/bin/node /usr/bin/node</pre><pre>#Upgrade yarn to latest stable<br><strong>RUN</strong> npm install -g yarn</pre><pre># Install app dependencies<br><strong>RUN</strong> yarn install</pre><p>I am going to use <strong>Python3</strong> and related setuptools like <strong>pip3</strong> and <strong>dependancies</strong> <em>(using requirements.txt)</em>.</p><h3>Fontend: Install Django + setuptools</h3><pre>#Install python dependancies<br><strong>RUN</strong> pip3 install -U wheel setuptools pip<br><strong>RUN</strong> pip3 install pip-tools<br><strong>RUN</strong> pip-sync api/requirements.txt api/dev-requirements.txt</pre><h3>Backend: Install postgres</h3><pre>#Installing latest or 9.6 version of postgres<br><strong>RUN</strong> sudo add-apt-repository “deb <a href="http://apt.postgresql.org/pub/repos/apt/">http://apt.postgresql.org/pub/repos/apt/</a> trusty-pgdg main” &amp;&amp;\<br> wget — quiet -O — <a href="https://www.postgresql.org/media/keys/ACCC4CF8.asc">https://www.postgresql.org/media/keys/ACCC4CF8.asc</a> | sudo apt-key add — &amp;&amp;\<br> sudo apt-get update &amp;&amp;\<br> sudo apt-get install -y postgresql-9.6 &amp;&amp;\<br> postgis</pre><p><em>Note: above is a set of commands separated by ‘&amp;&amp;’ fed to RUN and ‘\’ is line break.</em></p><h3>References</h3><p><a href="https://confluence.atlassian.com/bitbucket/using-docker-images-as-build-environments-792298897.html">Using Docker images as build environments - Atlassian Documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8ebf1038e66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Missed Millennial 20/20? Read this!]]></title>
            <link>https://medium.com/@deepakshakya/do-you-know-audience-impacting-your-business-2599ee9bf3f6?source=rss-f44de6ef0f0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2599ee9bf3f6</guid>
            <category><![CDATA[millennials]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Deepak Shakya]]></dc:creator>
            <pubDate>Mon, 08 May 2017 21:46:19 GMT</pubDate>
            <atom:updated>2017-05-08T21:49:09.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*qM725APY8XirSjsFnsvEmw.jpeg" /><figcaption>Representative image : Audience from different demographics (baby-boomers, Gen-X, Millennials, Centennials)</figcaption></figure><p><strong><em>Disclaimer</em></strong><em>: This article is based on </em><a href="http://www.millennial20-20.com/london2017/"><em>Millennial 20/20 convention</em></a><em> and the views of those who attended it.</em></p><p><em>Credit — CEO and friend Joyeeta Das for her valuable inputs and suggestions.</em></p><h3>1. Introduction — Businesses moving from bricks to clicks!</h3><p>Nowadays, bricks-and-mortar business model is taking a severe hit due to rapidly changing market scenario both in terms of technology as well as target audience. On one side, the world is moving towards being more digital than ever with AI, machine learning, blockchain, mobility solutions, social media boom, IoT etc and on another side, changing demographics of the target audience are a continuous channel. One day they love influencers, another day they kick them out- one day they love politics and another day they only care about <a href="http://www.pokemongo.com/">Pokemon Go</a>. They are social media driven, have lesser attention span than a goldfish, they don’t trust a brand easily and they are considerate of the social impact of businesses.</p><h3>2. Challenges faced by businesses in 2017</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5Mazpj7T234a1-kM7BdyQ.jpeg" /><figcaption>Challenges faced by businesses in 2017</figcaption></figure><ul><li><strong>Unpredictability about future</strong> — Being able to predict customer trends, market trends, etc. is vital to a changing economic climate. <strong><em>In this digital era, one must have a unified platform which provides analytics at finger tips otherwise seamless predictability across multiple data sources is impossible.</em></strong></li><li><strong>Monitoring performance</strong> — Most business people are not necessarily experts in data science, how do they avoid the key pitfalls and how to best communicate metrics so that they inform decision-making- do they spend time learning a scientific skill such as data science or do they hire data scientists? What is the right answer? <strong><em>They need a platform that has the capability to generate performance metrics for your business data without ever hiring data scientist teams.</em></strong></li><li><strong>Technology adoption</strong> — As technologies change practically at the speed of light, it’s vital for companies to innovate or be left behind — but many CEOs started their careers and businesses before many of these technologies even existed!<strong><em>When you can do all data analysis by yourself with help of simple UI is when Big data world has finally evolved to a sophisticated point where difficulty is abstracted away leaving only functionality.</em></strong></li><li><strong>Data explosion</strong> — <strong>90% of the world’s data was created in the past two years</strong> and managing, keeping safe and extracting insights from the ever-increasing amounts of data your company produces needs to be in the hands of a qualified professional who can help you get the most return from that data. <strong><em>You need to generate multiple trends from your internal business data and also understand how external factors like traffic, social media, footfall etc are driving your business data.</em></strong></li><li><strong>Customer service</strong> — In a world of instant gratification, customers expect instant customer service and now it takes less than 5 min to publish their experience on social media. This could be bane or boon for your business, depending on which side you are on! <strong><em>Constantly tracking sentiment analysis of your customers on your web-based platforms is a key ingredient to overall responsiveness.</em></strong></li><li><strong>Maintaining reputation</strong> — In a similar vein, because customers can voice any displeasure so much more publicly and loudly than ever before, businesses have to monitor and maintain their online reputations.</li></ul><h3>3. Case study — John Lewis’ secret to digital marketing success</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9L823fckL1YZYevOJoEbdw.jpeg" /><figcaption>John Lewis Partnership, John Munnelly, Head of operations — sharing insights on multi-channel customer, sales &amp; support system at Millennial-2020 conference, London</figcaption></figure><p>Few top highlights of the <a href="http://www.mytotalretail.com/article/5-ways-centennials-are-going-to-totally-disrupt-your-business-and-what-you-can-do-about-it/">case study</a> are as follows:-</p><ul><li><strong>Multichannel strategy </strong>— John Lewis’ multichannel strategy has now evolved to include mobile apps that have inbuilt barcode scanners and store locators, as well as free in-store Wi-Fi, which all helps to boost brand awareness and drive sales across all customer touchpoints.</li><li><strong>Mobile shopping </strong>— John Lewis is the perfect example of a company that has invested in mobile marketing — on Christmas Day of last year, 75% of the company’s online traffic came from mobile devices.</li><li><strong>Click &amp; collect</strong> — In the case of John Lewis, the Click and Collect system was up 60% last year from the previous 12 months. The app also features a barcode scanner so that customers can check online stock of an item they see in the store.</li><li><strong>Speed </strong>— While John Lewis wasn’t a top scorer for speed (six out of ten), the other things to consider are how quick and easy it is the find what you want on the mobile site; something John Lewis is quite good at.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJWGRSbtwXAqW38YWHYLYQ.png" /><figcaption>Quick glimpse about millennials and why do they matter so much to businesses (source: <a href="http://whymillennialsmatter.com/">http://whymillennialsmatter.com/</a>)</figcaption></figure><h3>4. Facts about Gen-Y &amp; Gen-Z</h3><h3>4.1 Millennials(Gen-Y)</h3><ul><li>Millennials will make up <strong>50% of the workforce by 2021</strong> and almost <strong>75% by 2025.</strong></li><li><strong>Millennials make up 21% of consumer discretionary purchases</strong> — This is estimated to be <strong>over a trillion dollars in direct buying power.</strong></li><li><strong>53% of millennial households already have children — This means that within a decade, centennials will also be your target customers.</strong></li><li><strong>Millennials are 2.5X more likely to be an early adopter of technology</strong> than other generations.</li></ul><h3>4.2. Centennials(Gen-Z)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*oUNgUciy2_0JDpnhwLuq8w.jpeg" /><figcaption>Representative image of centennials; Born in digital and social era of facebook, Instagram, twitter etc.</figcaption></figure><p>Contrary to what many retailers assume, <strong>centennials aren’t just a younger version of their millennial predecessors</strong>; they have unique habits, ambitions and values. Their population, growing fast, will soon change the way you do business.</p><ul><li>Centennials comprise a <strong>larger population</strong> than both millennials and baby boomers. Their <strong>numbers will almost double by 2020</strong>.</li><li>Centennials have <strong>tremendous buying power</strong> — estimated around $44 billion and growing.</li><li>Centennials’ attention spans are around eight seconds. That’s shorter than a goldfish.</li><li>Centennials have <strong>grown up as children of the Great Recession</strong>.</li><li>Centennials are the <strong>first truly digital-native generation</strong>. They’ve never lived in a world without the internet or social media.</li></ul><h3>5. What are top trends and behaviours of Gen-Y &amp; Gen-Z impacting businesses?</h3><p>From the recent <a href="http://www.millennial20-20.com/">Millennial-2020 conference held in London</a>, here are few insights shared by industry leaders and research platforms about millennials/centennials as follows:-</p><ul><li>Expect <strong>personalised and customised product experiences</strong> in return for sharing data (via multiple platforms and wearables). Approx 54 MN smartwatches sold in 2016.</li><li><strong>Don’t expect a job for life</strong>. Changing jobs every 3 years.</li><li>About <strong>60% of them have done at least one internship</strong>.</li><li>The rise of <strong>polymaths</strong> (expert in multiple domains).</li><li><strong>Want to feel passionate</strong> about their career.</li><li>An increase in the number of freelancers and entrepreneurs.</li><li><strong>Digital age</strong> — Extensive use of messaging interfaces like WeChat, Viber, WhatsApp etc.</li><li><strong>Loves to create and share videos</strong> — High use of live streaming &amp; video features in FB, Instagram, Periscope.</li><li><strong>67% prefer to talk to bots</strong> than human for customer services.</li><li><strong>Attention span </strong>8 secs or less.</li><li><strong>The trust factor is all time low </strong>— don’t trust in DM by brands rather trust what is being accepted by their friends and family over social media. Hence social acceptance becomes new authentication.</li><li><strong>Tech savvy</strong> — Early adopters of new technology. Technology is embedded part of life and heavily rely on stats and analytics. Apple report 60% increase in the use of Apple pay.</li><li><strong>Loves cool factor </strong>— Snapchat is one of the best examples. They have launched <strong>sunglasses fitted with tiny cameras</strong> that will allow users to take snaps with their eyewear.</li><li><strong>Want to follow their heart</strong> and more adventurous than ever.</li><li><strong>Loves to travel </strong>and it’s one of the ways they want to understand and learn from practical experiences.</li><li><strong>Breaking free from all boundaries</strong> — Gender, ethnicity, religion doesn’t matter.</li></ul><h3>6. Solutions — What it means for businesses to understand, connect and engage with this new audience</h3><ul><li><strong>Go online </strong>— This is going to be minimal surviving criteria. If you are not online then you are not present. Most of the customers prefer buying online. <strong><em>These days, 51% of Americans prefer to shop online rather than in stores — a figure that jumps to 67% for Millennials and 56% for Gen-Xers. According to some experts, online sales will increase from $335 billion in 2015 to $523 billion in 2020, a rise of 9.32% per year, although the current annual growth rate is actually 14%.</em></strong></li><li><strong>Go multi-channel</strong> — Identify where your audience is? Youtube, Instagram, Snapchat, Twitter, WeChat etc social platforms. You need to have platform agnostic product solutions and focussed strategies for each media channel. <strong><em>Example: BBC has a huge customer base but recently they targeted Planet earth’s exclusive content for Snapchat in America. Likewise one can use FB’s 360 video solutions if your majority audience is using FB.</em></strong></li><li><strong>Customised solutions/content</strong> — Creating and customising products/solutions which are relevant and appealing to users is very important to have their attention. This could be in terms of language, content, local preference, demographics, ethnicity, popular social media platform(WeChat) etc. <strong><em>According to the WeChat official data, 76.1% of the users’ age from 22–35, mainly in big cities.</em></strong></li><li><strong>Create experiences than just a product/solution</strong> — Most of newer technology products like Snapchat, VR, AR, Voice integrated tech (Alexa, GooogleHome) etc. are mostly about cool experiences. You need to create that stickiness factor in your product. Engage with users around their passion points.</li><li><strong>Product authentication &amp; acceptance</strong> — In this digital and social media-driven era, product authentication and acceptance have new meaning. You may have an amazing tech-heavy product but if it’s not cool and socially accepted then most likely it’s not gonna be a success among Gen-Z and Gen-Y. <strong><em>Millennials prefer to share their experiences online and also their purchasing patterns are highly driven by social media recommendations.</em></strong></li><li><strong>Seamless end-to-end experiences</strong> — Many business industries like Travel, Hotel, Airlines, Retail, Automative etc are reviving their strategy to provide their customers with a unique end-to-end seamless experience. <strong><em>In one of the automotive solutions displayed at M2020 by Accenture, they are automating the whole car buying experience for users by using latest technologies like AR, VR, AI-driven Chatbots etc. Finnair (Finland airline company) talked about making whole end-to-end journey right from onboarding, in-flight food &amp; services to off-boarding a pleasurable experience for each customer.</em></strong></li><li><strong>Focus on UX than UI </strong>— This is more in terms where a product is expected with almost no bugs and intuitive UI (user interface) considering attention span of millennials. Smart, intuitive and intelligent UI will no longer be of importance in future rather it would be assumed to be present. <strong><em>Therefore, more focus needs to be on UX (user experience). Use latest technology and tools (AI, AR, VR, Voice solutions, ChatBots etc) to provide your customers with a better experience.</em></strong></li></ul><p>Hope readers would find this article useful. Please feel free to share your thoughts, feedback or any related question.</p><p>#Millennials #Centennials #businesses #retail #fashion #travel #hotel #fmcg #consulting #customers #consumers #audience #technology #marketing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2599ee9bf3f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>