<?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 Adi Wijaya on Medium]]></title>
        <description><![CDATA[Stories by Adi Wijaya on Medium]]></description>
        <link>https://medium.com/@adiwijaya25?source=rss-db9bf99fe332------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kiwCqab1JWn-CvyI</url>
            <title>Stories by Adi Wijaya on Medium</title>
            <link>https://medium.com/@adiwijaya25?source=rss-db9bf99fe332------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:06:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adiwijaya25/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[The DNA of Joyfulness in Yogyakarta]]></title>
            <link>https://medium.com/@adiwijaya25/the-dna-of-joyfulness-in-yogyakarta-a023598a0ff9?source=rss-db9bf99fe332------2</link>
            <guid isPermaLink="false">https://medium.com/p/a023598a0ff9</guid>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[yogyakarta]]></category>
            <category><![CDATA[working]]></category>
            <category><![CDATA[healing]]></category>
            <category><![CDATA[joy]]></category>
            <dc:creator><![CDATA[Adi Wijaya]]></dc:creator>
            <pubDate>Thu, 10 Nov 2022 06:14:33 GMT</pubDate>
            <atom:updated>2022-11-10T07:36:03.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcetcZDVkJGETqCoJIAHBw.jpeg" /></figure><h3>The Idea</h3><p>In October 2022, I decided to experience the island of Java on road. The main goal is for finding <em>joyfulness </em>in working. I’m trying to find a way to work and have fun at the same time.</p><p>I’m born and lived in a capital metropolitan city. After the work-from-home pandemic experience, I felt thirsty to see nature, just be outdoors and interact with people. I think this is what post-pandemic people described as “Healing” :D.</p><p>The plan is to drive a car from Jakarta to Yogyakarta (560KM) and spend one-month working + having fun. Plus continuing the practice of giving that I started in Bali.</p><p><a href="https://medium.com/@adiwijaya25/experimenting-practice-of-giving-in-bali-e9dfae1d3d8">Experimenting Practice of Giving in Bali</a></p><p>Ok, now that’s the plan. Let’s drive!</p><h3>The Outcome</h3><p>I got slapped in the face hard.</p><p>Not that I don’t enjoy the trips. The trip is amazing! I really enjoy driving on Java island; visiting temples, museums, and nature; having delicious meals in interesting places. But I learned something else, I learned from Yogyakarta’s people that Joyfulness doesn’t come from those aspects.</p><p>I heard from a wise man about Joyfulness:</p><blockquote>Joyfulness comes from rejoicing others.</blockquote><p>The Yogyakarta people just prove that point.</p><p>Here most people are very happy if I’m comparing to the capital metropolitan city. Yogyakarta’s people also have the same life issues like economic, career, natural disasters, etc. But, I found out that they are a lot more chill to life, smile and laugh more, and are a lot more selfless.</p><p>It’s part of their culture and life. It’s called Javanese culture, there are many kinds of literature on the internet that you may find about the culture. I’m not an expert in their culture yet, but I know there is something fundamental that I can learn from this place and the people.</p><h3>Places in Yogyakarta</h3><p>Yogyakarta is very beautiful. You can see mountains, sea, temples, and forests in less than one hour of driving to most of them. I’ll share the working + having fun aspects in Yogyakarta.</p><h4>Prambanan Temple</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiLHYceBa11C_Iprr1VBag.jpeg" /><figcaption>Prambanan Tample</figcaption></figure><p>I’ll start with Prambanan Temple. This is a very well-known 10th-century temple in Yogyakarta that is acknowledged by UNESCO.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2CEkURO0ZeRfSxTEDsNSQ.jpeg" /></figure><p>But never that I imagined that I can work with the temple as my background!</p><h4>Pengilon Cafe</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNnwBUQR5cbPxJra6KMNFA.jpeg" /></figure><p>Similar to Bali, Yogyakarta has a lot of cafes that blend with nature. This cafe is just one of them, there are hundreds like this with gardens, paddy fields, and villages as its surroundings.</p><p>How about using these cafes as your permanent working spaces? ;)</p><h4>Kulon progo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CsIKbU4jx2gJNdcTLcmVew.jpeg" /></figure><p>Most cafes that I visited merge the cafe with semi-artificial nature. Semi-artificial means gardens and paddy fields are beautiful nature but human-made.</p><p>Little that I knew, that Yogyakarta really has a cafe that merged with nature! This one is located in the Kulon progo region. I can work with Manoreh hill as my background. Simply stunning.</p><h3>People in Yogyakarta</h3><p>As I mentioned earlier, the people in Yogyakarta are amazing. It’s one of the reasons I really love this city.</p><h4>Klinik Kopi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2yFpfww2qiM_Tn3YTgnIg.jpeg" /></figure><p>I’ll start with Mas Pepeng. (In Indonesia <em>Mas </em>is a salutation for males). He is a coffee legend in Indonesia. You can easily find his name and cafe on the internet. His cafe&#39;s specialty is not only in the coffee quality. But also how the cafe works.</p><p>I arrived at his cafe (his actual home) at 3 PM. When I arrived, instead of giving me the menu, he gave me a queue number. I got number 46.</p><p>After waiting for 20 minutes he welcomed us and so we came to his brewing place. Mas Pepeng asked me and my wife’s name, genuinely asking about our life, and he is more than welcome to tell stories about coffee, business, and life. We talked about many things while enjoying his brewing.</p><p>I recognized that every single customer here is treated as a friend or even family to him. Even though he is very famous, he is open for people to ask about his coffee business secrets even his personal life. As the result, I realized that every single person here is drinking coffee fully. No one opens their laptop, or phone or takes selfies. Everyone drinks coffee while talking with each other; friends, and family. Beautiful.</p><p>Mas Pepeng inspires me to open my small step connecting with data people in Indonesia, klinikdata (only in Bahasa).</p><p><a href="https://www.instagram.com/klinikdataid/">https://www.instagram.com/klinikdataid/</a></p><p>I can talk much more about him and his business, but I’ll probably keep that for other posts and continue to the next experience.</p><h4>The Tour Guides</h4><p>Yogyakarta is a very cultural city with a lot of historical destinations. While visiting temples or museums, I always request tour guides. My motivation is not only getting more history but also helping those, who are impacted the most by the pandemic.</p><p>Most of the tour guides here are full-timers. Meaning that this job is the only source of income for them and their family. During the pandemic, as you know most tourist destinations are closed for almost a year. Can you imagine not having income for months?</p><p>But again, instead, they gave me more. There are a lot of life lessons from them coming from their interesting stories and conversations. I’ll quote some of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mCJRUcfP41R7QEQYN5P4mg.jpeg" /><figcaption>Prambanan Temple’s tour</figcaption></figure><p>This is the tour guide from Prambanan temple. I will call him Mas Gondrong in this blog.</p><p>Me: Hi Mas Gondrong, how’s life during the pandemic?</p><p>Mas Gondrong: Well, the Prambanan temple was closed for months. We as full-timers need to find other things to do for our life and family.</p><p>Me: Oh, what did you do then?</p><p>Mas Gondrong: I was trading.</p><p>Me: Oh great! What were you trading?</p><p>Mas Gondrong: I traded my motorcycle for rice.</p><p>We laughed together after that. Mas Gondrong is a very funny tour guide. He always tried to make us laugh while explaining the history.</p><p>As a modern city person, I always thought the word <em>trading </em>is fancy. The word trading may mean stock trading or big businessman trading. But he reminds me that some people may trade whatever they have left for food.</p><p>I’m pretty sure even though he was joking, the story is real.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0LKozuhq_vjsgUtdOrKwQ.jpeg" /><figcaption>Taman Sari’s tour</figcaption></figure><p>This one is the tour guide from Taman Sari. Taman Sari is a king’s villa from the 17th century. The tour guide is Abdi Dalem (King’s internal helper), I will call her Bu Dalem in this blog.</p><p>Me: Bu Dalem, how long have you been working here?</p><p>Bu Dalem: I’m new…</p><p>Me: Oh, you are new? exciting! For how long?</p><p>Bu Dalem: 12 years…</p><p>She is not joking. From her face, I knew she meant it that 12 years is new. She then continues “I want to keep working in here for a much longer time, so that’s why I think 12 years is new. I really enjoy explaining and learning about Taman Sari to tourists”</p><p>As a millennial working in tech industries, I often say to people that I’ve worked for too long in a role, which most often actually less than 3 years.</p><h3>Useful Links if You Are Visiting Yogyakarta</h3><h4>KlinikKopi</h4><p><a href="https://www.instagram.com/klinikkopi">https://www.instagram.com/klinikkopi</a></p><h4>Pulung house</h4><p><a href="https://www.airbnb.com/rooms/615383746994439566?source_impression_id=p3_1668058316_tpysi4UA4EtynzMW">https://www.airbnb.com/rooms/615383746994439566?source_impression_id=p3_1668058316_tpysi4UA4EtynzMW</a></p><h4>Candi (Temples)</h4><p><a href="https://borobudurpark.com/en/temple/">https://borobudurpark.com/en/temple/</a></p><h3>The DNA of Joyfulness Takeaways</h3><p>The stories from Mas Pepeng, Mas Gondrong, and Bu Dalem are only three of the dozens of people that I met in Yogyakarta. Most of them have one common attitude, they feel joy when others are joyful. I think it’s just part of their DNA.</p><p>Back to the Java trip goal, which is working + having fun. On this trip, I realized one aspect of life, having fun doesn’t always equal to joyful.</p><p>There are many many times that someone asked me in the evening time “Hi, what did you do today?”. Then my brain froze because I can’t actually remember. I can’t remember regardless I was having so much fun traveling to beautiful places, and eating fancy foods. Again, they are fun! Seriously fun and I never regret traveling in Yogyakarta, but <em>fun </em>may last for a very short time. While experiencing and sharing joy with other people is very memorable.</p><p>I’m happy to meet those people and got my face slapped by their experience. Here are my three summarized takeaways:</p><ol><li>Working + traveling in Yogyakarta is very fun!</li><li>Having fun is great, and I think everyone deserves it. But the feeling may not last long.</li><li>Rejoicing others gave me actual joy. It can be applied on many occasions including in any working conditions and roles. I will try to implement it in my next working journey.</li></ol><p>If you are ever in the same situation or thoughts, please try rejoicing others, and do let me know your experience.</p><h3>Bonus</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F769306376%3Fh%3D52dab61e1e%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F769306376&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1544237805-ce3755c49ab015f1a85330905caf0ea382120094527d2e6be951758516242024-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/68f538f0649f88e69ac6b7606ef6a3ef/href">https://medium.com/media/68f538f0649f88e69ac6b7606ef6a3ef/href</a></iframe><p>This is a short clip from a less fortunate kids’ house (<a href="https://griyakasihvictory.com/">https://griyakasihvictory.com</a>). Me and my wife’s motivation was to share some fun with them, but instead, they gave us the most memorable joy from this long trip.</p><p>The lyric in English</p><blockquote>Never stop. Never stop yielding fruits (goodness). Just Never stop.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a023598a0ff9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Lady of Gratitude]]></title>
            <link>https://medium.com/@adiwijaya25/the-lady-of-gratitude-f568511859e3?source=rss-db9bf99fe332------2</link>
            <guid isPermaLink="false">https://medium.com/p/f568511859e3</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[gratitude]]></category>
            <dc:creator><![CDATA[Adi Wijaya]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 02:22:11 GMT</pubDate>
            <atom:updated>2022-11-18T08:19:28.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hgCLAlCfhD5hbO0m7Q2NQw.jpeg" /><figcaption>The lady of gratitude</figcaption></figure><p>One morning, I met this old lady. I guess she is between 60 to 70 years old. She is a cleaning staff in my parent’s neighborhood. When I saw her, she was picking the dry leaves one by one with her hands.</p><p>As part of the practice of giving from Bali’s</p><p><a href="https://medium.com/@adiwijaya25/experimenting-practice-of-giving-in-bali-e9dfae1d3d8">https://medium.com/@adiwijaya25/experimenting-practice-of-giving-in-bali-e9dfae1d3d8</a></p><p>We (me and my wife) decided to have breakfast not far from there, it was nasi ulam :). And we bought one for her as part of giving practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvBgpvve6g2gmOTWYFwdoQ.jpeg" /><figcaption>Nasi ulam</figcaption></figure><p>I gave it to her, and she returns it with a smile. But, I immediately realized something. I think she needs something more.</p><p>Take a moment here and please check her photo again. Can you notice what is missing?</p><p>She didn’t wear footwear! She walks in the sunny Jakarta weather on asphalt while cleaning the neighborhood area without footwear, and yet can still give us a smile to us!</p><p>After realizing that, I immediately went back home, took some sandals that I no longer wear, cleansed them, and run back to her to give the sandals.</p><p>I didn’t take a photo of the actual sandals, but for illustration, they look like the below’s photo. They were worn-out sandals, nothing fancy, but still wearable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X063h2r1L9TVoXld7g24pA.jpeg" /><figcaption>Example of worn-out sandal</figcaption></figure><p>She accepted it with an even bigger smile. She said slowly <em>Terima Kasih banyak</em>, in English, means <em>Thank you very much</em>. In Indonesia, people often says <em>makasi </em>(Thanks) or terima kasih (Thank you). A full <em>Terima kasih banyak</em> (Thank you very much) is rare. It’s the highest form of gratitude in Bahasa Indonesia that shows high appreciation for what we get. That moment was simply joyful and meaningful for me.</p><h3>Learning</h3><p>I learned so much from her. I realized that an object is dependent on people’s minds. I was imagining that if I was given worn-out sandals by my parents or friends, I may be unpleased or even angry.</p><p>After thinking for some time, my conclusion is that the lady is super! She was a guru to me at that moment, she taught me about gratitude. With all the conditions and objects, she can still have full gratitude. Most people, again including me can’t realize how valuable things around us are. Not having a grateful mind, may lead to cravings for wanting more and more materials, and this often produces stress in life. She is special, she is rare.</p><p>I need to learn from her. I write this post so that I can always remember her and the moment. Every time I feel less grateful, I need to remember her and be fully grateful for everything that I’ve got from others.</p><p>Further, I realize that everything that I have in this life is given by other people. I probably work hards to get my own salary, and bought my own stuff. I may think that they all are mine. But in reality, the salaries are given by others, all the stuff is produced by others.</p><p>The others can include parents, family, friends, colleagues, employers, government, product sellers, product producers, and so many others. A countless number of people are contributing the stuff that I got. I hope I can be thankful for every single thing in my life, just like the Lady of Gratitude.</p><h3>Further</h3><p>I’ve also met a lot! of amazing people when spending weeks in Yogyakarta. Please check it to find what I’ve learned from them</p><p><a href="https://medium.com/@adiwijaya25/the-dna-of-joyfulness-in-yogyakarta-a023598a0ff9">The DNA of Joyfulness in Yogyakarta</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f568511859e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Experimenting Practice of Giving in Bali]]></title>
            <link>https://medium.com/@adiwijaya25/experimenting-practice-of-giving-in-bali-e9dfae1d3d8?source=rss-db9bf99fe332------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9dfae1d3d8</guid>
            <category><![CDATA[giving]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[bali]]></category>
            <category><![CDATA[career-break]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Adi Wijaya]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 02:01:43 GMT</pubDate>
            <atom:updated>2022-11-18T08:13:37.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbkDN1yF2nhf3Ll9-9Qv4A.jpeg" /></figure><h3>The Idea</h3><p>In September 2022, I decided to take a career break. I pulled up the handbrake for the first time in my career. I felt I’d taken so much.</p><p>My income, career, and life have been so smooth. I’m satisfied and grateful for that, but I feel something is missing. I have a feeling I need to balance something.</p><p>In order to find the answer, while taking the career break I followed a wise man says:</p><blockquote>“Giving material help to those in poverty, including giving food to animals everyday” (The practice of giving)</blockquote><p>That sounds easy. I don’t know where it will lead me, but alright, that&#39;s the plan. Let’s do it!</p><h3>The Outcome</h3><p>I failed.</p><p>In Indonesia, food cost less than $2, yet I failed to consistently give every day. I realized that it’s not only about the money, or the food. It’s about my mind. Interestingly I found out that there are many obstacles that come simply from the thoughts coming from my mind.</p><p>These thoughts are my enemies: doubt, overthinking, and laziness. The good thing is that now I realized those enemies so I can keep improving.</p><p>Other than that aspect, I also try to experience new places, the first one is Bali. I believe some of you know Bali well, but here are some of my stories, places, and experience meeting with the Balinese people. Hopefully, it can inspire you when traveling to Bali.</p><h3>Places in Bali</h3><p>As you already know, there are many amazing places in Bali. Here are my favourites.</p><h4>Paddy field</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKmKf1i_v03lHs42KsWnzg.jpeg" /><figcaption>Jatiluwih paddy field</figcaption></figure><p>This is Jatiluwih paddy field. Other than beaches and clubs, Bali is very well known for its paddy fields.</p><h4>Campuhan Walk</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B2rNxIwjm1R8BZre21LF8A.jpeg" /><figcaption>Campuhan Walk 1</figcaption></figure><p>6 AM in the morning. The view of foggy hills, the smells of wet leaves, and the mild wind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0i836DTrKTfRNcGOsilMzA.jpeg" /><figcaption>Campuhan Walk 2</figcaption></figure><p>This place is called Campuhan Walk. People often come here for morning jogs.</p><h4>Balinese Dancing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yj0DYioYX_K2JAosonkfyg.jpeg" /><figcaption>Uluwatu kecak dance</figcaption></figure><p>The place is called Uluwatu. It’s most well-known for its dancing performance.</p><p>The dance is called Kecak. It’s the only dance performance that doesn’t need any musical instruments. The place is full! I love seeing the crowds have been back after the pandemic.</p><h4>Mary gold garden</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TD_wy5SfzT4tjWN8nlIW2A.jpeg" /><figcaption>Mary gold garden</figcaption></figure><p>I can say this place and the whole experience in this area is my favorite. This is a Mary gold flower garden, located in Tambakan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONLrNIHXThxjLBsEWZpAKQ.jpeg" /><figcaption>A bucket of mary gold</figcaption></figure><p>The garden is not a tourist selfie garden. It’s a real garden that produces flowers for the city people. Look at the bucket full of fresh-cut mary gold that is ready for delivery.</p><p>Tambakan is actually not a touristy place. The place is well known for its orange, coffee, and flower producers.</p><p>The whole experience is amazing and it’s my favorite place because of the people.</p><h3>People (and dogs) in Bali</h3><p>I’ll start with the mary gold lady</p><h4>The Mary-Gold Lady</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zi65TxWU-yknmd4KKjnzVw.jpeg" /><figcaption>The mary gold lady</figcaption></figure><p>This lady owns the garden. When meeting her at 8 AM, she and her team are harvesting the mary gold.</p><p>She welcomed us with a very big smile. Not only allows us to take pictures, but she also serves us food and coffee!</p><p>Tried to be polite, we often say “It’s ok, please don’t bother”. But she insisted. She then run to her motorbike, drove to some places, and back to us with all the servings.</p><p>Here I learned a lot from her. Back to the outcome section. I believe giving is not only about money, economic gap, etc. It’s about the mind. I truly believe she doesn’t have the enemies that I do. She is amazing.</p><h4>The Jinggo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ntQXaGSCKcWFbGLGJcrNQ.jpeg" /><figcaption>The jinggo is smiling</figcaption></figure><p>Back to the Bali central in the city. I met this man The Jinggo. He sells Nasi Jinggo which is a traditional Balinese dish.</p><p>When I first arrived, I was full of doubt. The place is in a small alley, not many people there, and this man came to us. Full of tattoos and shirtless, then he served us. But turned out this is the most memorable lunch that I had. He is the most humble and kind man that met in Bali.</p><p>Fast forward to the end of the lunch. We paid him, and he asked us “Where are you going now?” We said we will go to the beach 1km from here on foot. In a spontaneous reaction, he said “Let’s go! I’ll ride you with my bike!”</p><p>The Jinggo taught me that giving does not necessarily mean materials. A lot of time, your support, your time, or providing services from your skills may be precious for those who need it.</p><h4>The Dogs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjagt6-ekXax_07Y4a38mg.jpeg" /><figcaption>The dogs of Bali</figcaption></figure><p>Lastly, not only people but also met a lot of dogs. Not meant to say dogs are people, or people are equal to dogs. But simply it is also a fun experience for us to give to sentient beings, especially dogs.</p><p>Thanks to this practice, I was more aware of these dogs. There are many of them, with different conditions. And learned that the dogs with collars in Bali mean they have been vaccinated by the government regardless it’s looks and condition.</p><h3>Useful Links if You Are Visiting Bali</h3><h4>Jatiluwih paddy field</h4><p><a href="https://www.indonesia.travel/gb/en/destinations/bali-nusa-tenggara/bali/jatiluwih">https://www.indonesia.travel/gb/en/destinations/bali-nusa-tenggara/bali/jatiluwih</a></p><h4>Uluwatu Kecak dance</h4><p><a href="https://www.uluwatukecakdance.com/">https://www.uluwatukecakdance.com/</a></p><h4>Tunas Bali Tour</h4><p><a href="https://www.instagram.com/tunas.balitour/">https://www.instagram.com/tunas.balitour/</a></p><p>If you are not sure, just reach the Tunas Bali Tour. I trust him 100% for his service. He was also the one who brought me to the Mary gold garden and all the local destinations.</p><h3>Practice Giving Takeaways</h3><p>I’m super grateful that I started this trip with the practice in mind. Experimenting with the practice of giving not only increases happiness but also opens a lot of experience and knowledge.</p><p>Here are some of them and my summarized key takeaways:</p><ol><li>Dogs with collar in Bali has owners</li><li>Bali has more than beaches and paddy fields. Flower, orange, and coffee fields are amazing! But they are not known for tourists, only by talking with local people that you may find them.</li><li>Giving theoretically is not difficult and is part of us humans. But interestingly you may find enemies from within your mind. Like muscles, with time, they may weaken if you are not using them.</li><li>For me, the practice of giving 100% works toward improving my happiness. If you try it, it may come with many obstacles. I believe, similar to other skills, it needs practice. And from the process itself, we and others may get all the benefits.</li></ol><p>If you are ever in the same situation or thoughts, please try the practice of giving, and do let me know your experience.</p><h3>Further</h3><p>A bit far from Bali, this experiment also brought me to meet with The Lady of Gratitude in Jakarta.</p><p><a href="https://medium.com/@adiwijaya25/the-lady-of-gratitude-f568511859e3">The Lady of Gratitude</a></p><p>And my next trip to Yogyakarta, where I learned The DNA of Joyfulness.</p><p><a href="https://medium.com/@adiwijaya25/the-dna-of-joyfulness-in-yogyakarta-a023598a0ff9">The DNA of Joyfulness in Yogyakarta</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9dfae1d3d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Serve Machine Learning as REST API in Python?]]></title>
            <link>https://medium.com/@adiwijaya25/how-to-serve-machine-learning-as-rest-api-in-python-76aac29ec8c1?source=rss-db9bf99fe332------2</link>
            <guid isPermaLink="false">https://medium.com/p/76aac29ec8c1</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[data-scientist]]></category>
            <dc:creator><![CDATA[Adi Wijaya]]></dc:creator>
            <pubDate>Thu, 25 Jul 2019 08:11:24 GMT</pubDate>
            <atom:updated>2019-07-25T08:17:05.443Z</atom:updated>
            <content:encoded><![CDATA[<p><em>When the last step of Machine Learning is Evaluation, probably you missed something</em></p><p>This article is a continuation of my concern on how online courses teach machine learning as <strong><em>The Art of Increasing Accuracy of Testing Dataset</em></strong><em>.</em></p><p><a href="https://medium.com/@adiwijaya25/what-is-production-machine-learning-theres-a-gap-896a639b840d">What is Production Machine Learning? There’s a gap!</a></p><p>Please spend time to read my previous post to get the context.</p><h3>Let’s Jump!</h3><p>In this post, I will directly jump to the technical tutorial. Please be ready that this article will have a lot of technical terminologies, I will try to explain anything that I think is not a common term for beginner Data Scientist, if I missed anything, please ask in the response box</p><p><strong>Machine Learning as a Serving application</strong></p><pre>from flask import Flask, jsonify,request,session<br>from sklearn.externals import joblib<br>import pandas as pd<br>import json</pre><pre>app = Flask(__name__)</pre><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/predict_ml&#39;, methods=[&#39;POST&#39;])<br>def predict_ml():<br>    if request.method==&#39;POST&#39;:<br>        data = request.data<br>        dataDict = json.loads(data)<br>        <br>        pandas_df = pd.DataFrame([dataDict])<br>        rf_model_load = joblib.load(&#39;ml_model/model_rf_iris.pkl&#39;)<br>        prediction = rf_model_load.predict(pandas_df)[0]<br>        print(prediction)<br>        <br>        return jsonify({&#39;prediction&#39;: prediction})<br>    <br>if __name__ == &#39;__main__&#39;:<br>     app.run(host=&#39;localhost&#39;,port=8080)</pre><p>Above are the codes to use our machine learning model file so software engineer can call a URL link, input parameter and get the prediction result.</p><p>Let’s break down the codes</p><p><strong>Import</strong></p><pre>from flask import Flask, jsonify,request,session</pre><p>We will use flask library as a web application library.</p><p>What is this?</p><p>Basically, Flask library can be used for a web programmer to build a website using python language, or the most common use case is to use it as WebAPI.</p><p>What is WebAPI?</p><p>Based on wikipedia, here is the definition:</p><blockquote>A <strong>Web API</strong> is an <a href="https://en.wikipedia.org/wiki/Application_programming_interface">application programming interface</a> for either a <a href="https://en.wikipedia.org/wiki/Web_server">web server</a> or a <a href="https://en.wikipedia.org/wiki/Web_browser">web browser</a>. It is a <a href="https://en.wikipedia.org/wiki/Web_development">web development</a> concept, usually limited to a <a href="https://en.wikipedia.org/wiki/Web_application">web application</a>’s client-side (including any <a href="https://en.wikipedia.org/wiki/Web_framework">web frameworks</a> being used), and thus usually does not include web server or browser implementation details such as <a href="https://en.wikipedia.org/wiki/Server_Application_Programming_Interface">SAPIs</a> or APIs unless publicly accessible by a remote web application.</blockquote><p>Understand better? No? Me too</p><p>I’ll explain using example</p><p>What is a website? A website is when you put a URL, for example <a href="http://google.com/">http://google.com</a> in a browser and you can see a web page</p><p>What is WebAPI? A webapi is when you put a URL for example <a href="http://api.plos.org/search?q=title:DNA">http://api.plos.org/search?q=title:DNA</a> in a browser and you can see a JSON text.</p><h3>Next</h3><pre>app = Flask(__name__)</pre><p>this line of code is to declare the Flask application</p><p>The main code is below</p><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/predict_ml&#39;, methods=[&#39;POST&#39;])<br>def predict_ml():<br>    if request.method==&#39;POST&#39;:<br>        data = request.data<br>        dataDict = json.loads(data)<br>        <br>        pandas_df = pd.DataFrame([dataDict])<br>        rf_model_load = joblib.load(&#39;ml_model/model_rf_iris.pkl&#39;)<br>        prediction = rf_model_load.predict(pandas_df)[0]<br>        print(prediction)<br>        <br>        return jsonify({&#39;prediction&#39;: prediction})</pre><p>In here, we have a function “predict_ml” that</p><ol><li>Will receive data of iris variables in JSON format</li><li>Transform json to pandas dataframe</li><li>Load our machine learning model</li><li>Predict the incoming data</li><li>Return the prediction as JSON</li></ol><h3><strong>What is this @ $)%_*#($)?</strong></h3><pre><a href="http://twitter.com/app">@app</a>.route(&#39;<strong>/predict_ml</strong>&#39;, methods=[&#39;POST&#39;])</pre><p>Well if you are Data Scientist who use python to build machine learning model, you might not familiar with @ notation in python code, it’s ok you do not need to know. Just take a look at ‘/predict_ml’, that will be our link to call the API. In this case, we will get our result by calling <a href="http://localhost:8080/predict_ml">http://localhost:8080/predict_ml</a></p><pre>if __name__ == &#39;__main__&#39;:<br>     app.run(host=&#39;localhost&#39;,port=8080)</pre><p>These lines are codes to start the web. When you call this 2 lines, the WebAPI will start and will continue to run until you stop it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*kAhc1kl3x3JwHren0MrCtg.jpeg" /><figcaption>Our WebAPI is starting running on localhost port 8080</figcaption></figure><p>You can run above codes in Jupyter Notebook for learning purpose.</p><h3><strong>How to use it?</strong></h3><p>Well, up until this point, this is Software Engineer area. It’s common for a Software Engineer to use WebAPI like above.</p><p>For example, you can call the link in a REST API Client, looks like below. This shows your model url linked being called, and has 4 inputs variable. When the request made, the response shows the prediction result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*HHloaEq3FQhTVN7lEqmTWQ.jpeg" /></figure><p>This method used by many applications.</p><p>In Practice, there are a lot of other things to consider to build a WebAPI, such as Load Balancer, Containerization, etc but it’s usually mastered by Software engineer and Infrastructure Team.</p><p><strong>When to use batch ETL process or build a WebAPI?</strong></p><p>Long short explanation, if you need immediate prediction result and predict each record independently, API is usually used, it is very common in Micro Service Architecture.</p><p>If prediction needs a lot of data transformation, and you can use prediction from days, weeks, months ago, batch ETL process is common. For example, item recommendation in Amazon is generated daily, even as a user we feel like its an immediate suggestion.</p><h3>Summary</h3><ol><li>Machine Learning is not only <em>The Art of Increasing Accuracy of Testing Dataset</em></li><li>You can serve Machine Learning as API in python using Flask package</li><li>Will help me to write more if you <strong>clap multiple times</strong> ;)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76aac29ec8c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Production Machine Learning? There’s a gap!]]></title>
            <link>https://medium.com/@adiwijaya25/what-is-production-machine-learning-theres-a-gap-896a639b840d?source=rss-db9bf99fe332------2</link>
            <guid isPermaLink="false">https://medium.com/p/896a639b840d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineer]]></category>
            <dc:creator><![CDATA[Adi Wijaya]]></dc:creator>
            <pubDate>Thu, 25 Jul 2019 07:14:12 GMT</pubDate>
            <atom:updated>2019-07-25T08:13:01.161Z</atom:updated>
            <content:encoded><![CDATA[<p><em>When the last step of Machine Learning is Evaluation, probably you missed something</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6btv5gZTrQ060sYY5dRLew.jpeg" /></figure><p>Are you someone who just finished a machine learning course online? Or just started to understand the coolness and fun part of Machine Learning? Or just got a good score on Kaggle Competition? <strong>Congratz!</strong></p><p>The first year I studied machine learning, I felt a mixture of both struggle and fun. Building a machine learning model is like playing a video game for me, you make sure that every step is correct, and then you try to explore how to get a better and better score for the accuracy of Testing dataset.</p><p>I follow many online courses like Coursera, DataCamp, Udemy, and Emeritus. And here are the steps of Machine Learning on most of the courses:</p><ol><li>Load Data</li><li>Data Cleansing</li><li>Feature Engineering</li><li>Split Train Test Data</li><li>Build Model</li><li>Hyperparameter Tuning</li><li>Evaluation</li></ol><p>With this knowledge, I can enter Kaggle competition, Start to create a machine learning demonstration, start to teach other people about how to build a machine learning model, those all are cool! But then…</p><h3><strong>Now What?</strong></h3><p>When talked to business people, clients, or someone who wants a tangible result, the questions are,</p><ul><li>What can I do with the good score model?</li><li>How can I make money seeing your good score machine learning model?</li><li>How can it help our mobile application better?</li></ul><p>After more than 6 years of working in this industry, I realized that a lot of people who just started learning machine learning, also struggle to answer the above questions</p><h3>Why?</h3><blockquote>Most online course teaches Machine Learning as<em> An Art of Increasing Accuracy of Testing Dataset</em></blockquote><p>Here I give an example of building a prediction model for Iris dataset. It is a famous dataset for learning purpose.</p><p><strong>Step 1:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*-JGemFbMKc4D33VVnXCEZg.jpeg" /><figcaption>Load data from csv</figcaption></figure><p><strong>Step 2:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*PvUnPaUr4eMU5rOs7QTwGw.jpeg" /><figcaption>Split the data to Train and Test dataset</figcaption></figure><p><strong>Step 3:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*wVAcNbpGMMVMVKHJyg7ZWw.jpeg" /><figcaption>Build Model using Random Forest</figcaption></figure><p><strong>Step 4:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*M7tr0tfcEMTrM8MW6ZV8fA.jpeg" /><figcaption>Evaluate Both in Train and Test dataset to make sure there is no overfitting</figcaption></figure><p><strong>Step 5:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*V5qL3Ojm2BHhA_45pa15LA.jpeg" /><figcaption>Predict the test dataset</figcaption></figure><p>Above codes are a common and standard building machine learning model in Jupyter notebook using python programming language utilizing sklearn library. Most of courses will stop there or continue to iterate focusing on getting better Testing data accuracy.</p><h3>Where is the gap?</h3><p>Have you ever heard of <em>joblib</em> library? Or <em>Pickle</em>? Or <em>Flask</em>? Or <em>ETL</em> Process? (Please tell me in the response box below, so we can learn together how many people know or don’t know yet)</p><p>If not, then probably you still see Machine Learning as <em>An Art of Increasing Accuracy of Testing Dataset.</em></p><p><strong>It is not wrong</strong>, but it’s not complete, the above steps are a part of bigger machine learning as a solution. You need to open your horizon of machine learning to also see the Engineering part. Again, the goal is to see Machine Learning on a wider horizon so we know how Machine Learning actually solving a real problem.</p><h3>Machine Learning in Production</h3><p>If you want to solve a real business problem using Machine Learning, you should see Machine Learning as a part of a system. Like an engine in a car, an engine itself cannot solve any problem, it needs to be part of a car so it can solve <em>transportation</em> problem.</p><p>There are 2 common practice on how industries using Machine learning</p><ol><li>A Scheduled or Triggered <strong>Pipelined ETL Process</strong></li><li>A <strong>Serving application</strong> that will be shown in Mobile Apps or Websites or Notification</li></ol><p><em>(There are other factors in production machine learning like, how you monitor the model accuracy, how to version control models, how to collaborate the model building, but it’s not part of this article. Maybe I will write about each of these in the future article)</em></p><h3>1. ETL Process</h3><p>ETL is common terminology for Data Engineer, it’s Extract Transform Load, here is a very simple explanation :</p><p><strong>Extract: </strong>Get data from source data</p><p><strong>Transform: </strong>Do anything necessary to the data</p><p><strong>Load:</strong> Export or store the result to any place, can be a database, an excel spreadsheet or anywhere</p><p>How to do ETL for Machine Learning?</p><p>Machine Learning is a <strong>Transformation</strong>! It transforms data from company’s system, and give prediction result. It can be scheduled every day, every week, every month depends on the business use case. And then stored to a database or excel spreadsheet so application or business can consume the prediction result.</p><p>First, we need to save! Save the model as a file, it usually in pickle(.pkl) format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*AhaDU6Sjl3s9n1fYKKmBGA.jpeg" /></figure><pre>from sklearn.externals import joblib<br>joblib.dump(model_rf, &#39;ml_model/model_rf_iris.pkl&#39;)</pre><p>in the above example, I saved the iris model from variable <strong><em>model_rf</em></strong> to a folder <strong><em>ml_model</em></strong> then I named it <strong><em>model_rf_iris.pkl</em></strong></p><p>Why do we need to save the file? Because <strong>Jupyter notebook is only for exploration and building model</strong>. To make our model part of a system, it is very not common to use Jupyter notebook, I found out that this point is something that confusing for a beginner, again because most of courses teach only using notebook-styled programming.</p><p>The <em>.pkl</em> file model then will be used as part of ETL.</p><pre>import pandas as pd<br>from sklearn.ensemble import RandomForestClassifier<br>from sklearn.externals import joblib</pre><pre># Extract<br># This lines could be codes that extract or load data from any database directly<br>file = &quot;dataset/iris_new_data.data&quot;<br>new_data = pd.read_csv(file,delimiter=&#39;,&#39;,names=[&quot;sepal_length&quot;, &quot;sepal_width&quot;, &quot;petal_length&quot;, &quot;petal_width&quot;])</pre><pre>#Transform<br>rf_model_load = joblib.load(&#39;ml_model/model_rf_iris.pkl&#39;)<br>new_data[&#39;prediction&#39;] = rf_model_load.predict(new_data)</pre><pre>#Load<br># This lines could be codes that Export data to any database directly<br>new_data.to_csv(&quot;predicted_iris_data.csv&quot;, sep=&#39;,&#39;,index=False)</pre><pre>print(&quot;Job Success&quot;)</pre><p>Above codes are an example of a very simple ETL Process that extract data <strong>without </strong>label<strong> </strong>from file, Transform it using our built machine learning model, and then load the result to a result file.</p><p>Let’s break down each part of the codes:</p><p><strong>Import</strong></p><pre>from sklearn.externals import joblib</pre><p>joblib is a library in sklearn to store and load model file in python.</p><p><strong>Extract</strong></p><pre>file = &quot;dataset/iris_new_data.data&quot;<br>new_data = pd.read_csv(file,delimiter=&#39;,&#39;,names=[&quot;sepal_length&quot;, &quot;sepal_width&quot;, &quot;petal_length&quot;, &quot;petal_width&quot;])</pre><p>This part of code is to load the unlabeled dataset, and it can be replaced with any datasource like RDBMS database, Hadoop, Google BigQuery, etc. The codes will be different, but the process is the same, the point is, at this point we need to know how to get the unlabeled dataset from our system.</p><p><strong>Transform</strong></p><pre>rf_model_load = joblib.load(&#39;ml_model/model_rf_iris.pkl&#39;)<br>new_data[&#39;prediction&#39;] = rf_model_load.predict(new_data)</pre><p>Oh look! Our iris machine learning model!</p><p>Yes, it is the file that we saved from jupyter notebook codes, and loaded in a different environment. When<em> joblib.load</em> called, the <em>rf_model_load</em> variable will become a trained RandomForestClassifier for iris dataset.</p><p>And yes, machine learning is a Transformation process in ETL. In practice, we might have many many other transformations code before and after these 2 lines of codes to clean and transform data.</p><p><strong>Load</strong></p><pre>new_data.to_csv(&quot;predicted_iris_data.csv&quot;, sep=&#39;,&#39;,index=False)</pre><p>This part of code is to store the result. Similar to the <em>Extract</em> process, this can be replaced to any type of database.</p><p>The codes then can be saved as a file for example, predict_iris.py and called using command line</p><pre>#python predict_iris.py</pre><p>Further, we can manage the dependency using requirements.txt file, schedule this process using crontab or any other scheduler tool, embed this python code to corporate-grade ETL tool like Talend, Pentaho, Airflow, etc.</p><p>All the above codes are in github</p><p><a href="https://github.com/adiwijaya/iris_model_in_production">https://github.com/adiwijaya/iris_model_in_production</a></p><h3>Summary</h3><ol><li>Most of Machine Learning online course teaches us <strong><em>The Art of Increasing Accuracy of Testing Dataset</em></strong><em>.</em></li><li>While it’s totally not wrong, but to solve a real problem using machine learning, we need to widen our horizon, <strong>machine learning needs to be in part of a system</strong></li><li>I know I haven’t write tutorial on what and how to use machine learning as a Serving application<strong>. Will write it in next article.</strong></li></ol><p><a href="https://medium.com/@adiwijaya25/how-to-serve-machine-learning-as-rest-api-in-python-76aac29ec8c1">How to Serve Machine Learning as REST API in Python?</a></p><p>4. Will help me to write more if you <strong>clap multiple times</strong> ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=896a639b840d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>