<?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 Dandy Naufaldi on Medium]]></title>
        <description><![CDATA[Stories by Dandy Naufaldi on Medium]]></description>
        <link>https://medium.com/@dandy-naufaldi?source=rss-f17d2685db85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9UdyBj3hJUbNjd0vOCYAwQ.png</url>
            <title>Stories by Dandy Naufaldi on Medium</title>
            <link>https://medium.com/@dandy-naufaldi?source=rss-f17d2685db85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:44:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dandy-naufaldi/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[Chat Web Apps Without Websocket]]></title>
            <link>https://dandy-naufaldi.medium.com/chat-web-apps-without-websocket-98f8321390a0?source=rss-f17d2685db85------2</link>
            <guid isPermaLink="false">https://medium.com/p/98f8321390a0</guid>
            <dc:creator><![CDATA[Dandy Naufaldi]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 21:12:49 GMT</pubDate>
            <atom:updated>2020-10-25T21:12:49.199Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this experiment, we’ll be using HTTP POST and Server Sent Events (SSE) instead of Websocket</blockquote><p>Chat web apps are a pretty interesting thing to be built. It has the ability to send and receive messages instantly between two or more parties in a real time manner. Usually to enable such communication, websocket will be used as it enables two-way full duplex communication between client and server through TCP connection</p><h3>Server Sent Events</h3><p><a href="https://www.ably.io/topic/server-sent-events#what-is-server-sent-events-sse">Server Sent Events (SSE)</a> is a standard that enables client to receive stream of messages from a server in a unidirectional way, meaning that only the server is able to send data to the client. So, it’s more like a server pushing data into the clients. Because of its ability to push data to clients, SSE use cases cover things like receiving live score updates, stock price updates, and receiving alerts. In SSE, client will first send request to stream endpoint and then the server will continue on opening HTTP response as long as there are events to be pushed to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*5NAAi7OP-vR1XRc_" /><figcaption>Chat web apps design</figcaption></figure><p>Image above is the design of the chat application utilising SSE and HTTP POST. A client will send the chat message through HTTP POST to the server. Then, the server will broadcast the message to all clients through SSE. This way, we can replicate the behaviour of two-way communication in a chat app that is usually done with websocket.</p><h3>Implementation</h3><p>On the server side, implementation is done in Python. We’ll use Flask with the flask-sse library to push messages through SSE. Also, flask-sse requires us to set up a Redis server that is used to broadcast messages through the PUBSUB feature. On the client side, we’ll use EventSource API to stream messages from SSE. All of the code can be accessed from <a href="https://github.com/dandynaufaldi/chat-wo-socket">Github repo</a>.</p><p>Flow of apps:</p><ol><li>Client send messages through HTTP POST (AJAX)</li><li>Received by server, broadcast through SSE</li><li>Client received message from SSE, render to browser</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ac10b928fc470b299e42d1cdbeb8fd4/href">https://medium.com/media/2ac10b928fc470b299e42d1cdbeb8fd4/href</a></iframe><p>Above is the implementation in Flask. To serve receiving and broadcasting data, we have 2 endpoints. First is /chat that will receive all messages sent by client that need to be broadcasted. Second is /stream that will be used by flask-sse library to push message. In line 14, we can see the usage of sse to broadcast messages to all clients.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cd49e85ced630b73dec8fb543283760/href">https://medium.com/media/5cd49e85ced630b73dec8fb543283760/href</a></iframe><p>On the client side, we’ll use EventSource API in Javascript to consume data stream from SSE endpoints in line 23–27.</p><p>Below is the demo of chat app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*RUq9WQeKtUPclaya5YF6BA.gif" /><figcaption>Chat app demo</figcaption></figure><p>So, from this experiment, two-way communication in a “real time” manner can be done through standard HTTP connection utilising POST request and Server Sent Events. Even though, in general you’ll still want to implement it with Websocket as it is originally built for this kind of requirement.</p><h3>References</h3><ol><li><a href="https://www.ably.io/topic/server-sent-events#what-is-server-sent-events-sse">https://www.ably.io/topic/server-sent-events#what-is-server-sent-events-sse</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events">https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events</a></li><li><a href="http://flask-sse.readthedocs.io/en/latest/quickstart.html">http://flask-sse.readthedocs.io/en/latest/quickstart.html</a></li><li><a href="http://w3schools.com/">http://w3schools.com/</a></li><li><a href="https://blog.garstasio.com/you-dont-need-jquery/ajax/">https://blog.garstasio.com/you-dont-need-jquery/ajax/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98f8321390a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Great Man from Kraksaan]]></title>
            <link>https://dandy-naufaldi.medium.com/a-great-man-from-kraksaan-791517b2f342?source=rss-f17d2685db85------2</link>
            <guid isPermaLink="false">https://medium.com/p/791517b2f342</guid>
            <dc:creator><![CDATA[Dandy Naufaldi]]></dc:creator>
            <pubDate>Sun, 11 Oct 2020 11:36:36 GMT</pubDate>
            <atom:updated>2020-10-11T11:36:36.737Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a story about my grandpa, Soedihardjo. He was born in Kraksaan, Probolinggo in 1925. He passed away when I was still in 4th grade of elementary school. So personally, I haven’t had that many chances to talk with him, because we lived in a different city and my family visited him and my grandma once in a while. I got a lot of great stories about him from my mother, aunt, uncle, and other relatives too as I grew older then I realized how great he was as a human being, a father, and a husband. Here I want to share two great main values from him that I can take as a lesson and maybe for you as well. From now on, I will refer to my grandpa with “<em>yangkung</em>” a short version of Javanese word “eyang kakung” which means grandfather as that is how I was used to call him.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*CkbZO3N7i3F53i21" /><figcaption>Yangkung enjoyed a glass of coconut ice</figcaption></figure><h3>Be honest and responsible with power we have</h3><p><em>Yangkung</em> was a civil servant. He worked in a local Department of Agriculture as a farming counselor. I don’t really know what his level was there but it must be pretty senior since he got an official car facility that he could use. So, one day my mother, who was young and a student, was about to go to school. But, she only had about 5–10 minutes to go to school with a pedicab and she would be late by the time she got there. Then, she asked <em>yangkung</em> to take her to school using the office’s official car so that she wouldn’t be late. But, <em>yangkung</em> refused and said, “That car can only be used for office business only. I’m not supposed to use that to take you to school. It’s your own fault that you can be late”.</p><p>What he had done might seem like a little thing but actually at that time and until now, we can still see lots of people abuse the office’s facility for their own personal advantages. <em>Yangkung</em> could actually just use the car right away and nobody would be mad at him, but he didn’t like to take advantage of the power he had.</p><h3>Be prepared for the future</h3><p><em>Yangkung</em> and his family didn’t live a rich and wealthy life, he was in the middle class and even started pretty low. There was a time when he lived in a house made of woven bamboo and a family member couldn’t have a whole egg for himself. They also need to move from a rented house to another one periodically. Despite all the limitations he had, he always wanted his family to have a better future. He enrolled all his children to the best private school in town. That was the kind of school where most of the parents were rich and took their kids to school by car. He wanted to ensure that he could give his children the best education they could access. He didn’t stop at that, he also enrolled his children to English course which was very much not a common thing at that time. He believed that his children would gain lots of benefit from learning foreign languages. He did small things here and there, sacrificed this and that in order to prepare his children for their future ahead. And of course it works.</p><p>So, those two were his values that I admire. I wish that I have a chance to have lots of conversations talking about those with him when I am an adult, but I can’t. At least, I can listen to all of his great stories from my mother and other relatives too. <em>Yangkung </em>may have passed away more than 10 years ago, but all of his great values will remain as legacy and valuable lessons. I really hope others can learn something from him too. Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=791517b2f342" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Immerse Yourself with Active Noise Cancelling]]></title>
            <link>https://dandy-naufaldi.medium.com/immerse-yourself-with-active-noise-cancelling-6027e17e81b0?source=rss-f17d2685db85------2</link>
            <guid isPermaLink="false">https://medium.com/p/6027e17e81b0</guid>
            <dc:creator><![CDATA[Dandy Naufaldi]]></dc:creator>
            <pubDate>Wed, 07 Oct 2020 22:47:17 GMT</pubDate>
            <atom:updated>2020-10-07T22:49:22.556Z</atom:updated>
            <content:encoded><![CDATA[<p>At the time I wrote this, we’re in a COVID19 pandemic situation. Our normal days change, we even call it new normal. Working remotely or working from home (WFH) become a new normal for some people. People used to just tap other coworker shoulder to ask about something, now we can’t meet face to face and have to get to them by chat or other. We used to do meeting together with others, sitting side by side, now we can’t. We have to do meeting through video call platform.</p><p>One of difficulties that we may face during WFH is noises that we have at home. We can lose our focus during meeting when we got distracted by certain noise. To help us eliminating those noises, we can use an active noise cancelling (ANC) headphone or earphone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F40jeS0-M-XPTfqA.jpg" /><figcaption>On of ANC headphones from Bose. From <a href="https://www.expertreviews.co.uk/">https://www.expertreviews.co.uk/</a></figcaption></figure><p>Active noise cancelling headphones can help us to “active”-ly block noises from entering our ear. How does it happen? ANC headphones make use of a concept called destructive interference in audio wave. So, it has a microphone that will capture noises from our surrounding and then produce new wave that is out of shape. So that when the new wave interfere with wave from noise, they will cancel each other out and we will only hear things produced by the headphone. That means we won’t hear noise from our surrounding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/0*IpcoCZ13T6jXrhhY.jpg" /><figcaption>Destructive interference between two waves. From <a href="https://www.soundguys.com/">https://www.soundguys.com/</a></figcaption></figure><p>Active noise cancelling is awesome that it implement a physics theory to solve one of our problem. And now we can immerse ourself in paying attention to a meeting or just listening to our favourite songs. Let’s start saving money to get one :P</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6027e17e81b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Internship as AI Research Scientist at Nodeflux]]></title>
            <link>https://medium.com/data-science/first-internship-as-ai-research-scientist-at-nodeflux-ea4a339d03f?source=rss-f17d2685db85------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea4a339d03f</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Dandy Naufaldi]]></dc:creator>
            <pubDate>Sun, 04 Nov 2018 11:47:07 GMT</pubDate>
            <atom:updated>2018-11-05T13:50:29.788Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>It’s a rare occasion for a sophomore student to do internship, at least around my neighborhood. My motivation was to get new experience and getting to know what an after-campus life is like. By this article I will tell about myself in general, Nodeflux, and my internship experience as data scientist which later revised to AI research scientist from enrollment until finally going through a 2 months internship.</blockquote><h3><strong>My background in general</strong></h3><p>My name is Dandy Naufaldi. By the time I write this article, I’m about to start my 3rd year at Informatics Department, ITS. My background in highschool was a nerd who kinda enjoy learning maths and physics. Probably I choose Informatics major just to avoid biology and chemistry. In campus, I always interested to learn new things and that might be the beginning of my ‘data science’ journey after deciding not to continue on competitive programming lol.</p><h3><strong>Nodeflux</strong></h3><p>You may never heard of Nodeflux. Well, it’s a pretty young startup located in Jakarta which focuses on intelligent video analytics services. The exploit all kind of knowledge you can get from CCTV video stream. Some of their products are vehicle counter in highway’s rest area which really help lots of people during ‘mudik’, employee attendance machine using face recognition technology, and video surveillance system in Asian Games 2018 also using face recognition technology. Their tag line is “Extending Vision Beyond Imagination”. Check their <a href="http://nodeflux.io/">web</a>.</p><h3><strong>Pre-Internship : How I get here</strong></h3><p>In my 4th semester I decided that I must do an internship in my next holiday to get new experience and knowledge. So, I start to look for internship information mainly on IT startup. I was looking for software engineer position. Once, Mas Fika, my senior from batch 2012 share information in my department Facebook group about internship opportunity at Nodeflux. Well, I don’t really know about Nodeflux, previously I just know that Mas Rizok from batch 2013 is not the only alumni from my department who works at Nodeflux. All I know is that they do AI stuff and focus on computer vision technology. At that time, Nodeflux open position for software engineer, web developer, and devops engineer. I just think that this is an opportunity, I have to apply for this one.</p><p>First, I just send my CV to email provided in the poster. Then come the technical assignment. It consist of some problem related to different fields, the same as the positions opened. So there are some OOP problem, CSS and Javascript thing, linux comprehension, and machine learning stuff. There was a lot of problems to be done within deadline of 3 days. They were quite easy except some devops thing which I’ve never heard of before. After that, the selected candidates will have an online interview with some of Nodeflux’s engineer. One of the first few question is what positions I interested in. I was blank, forgot what are the opened positions. I just said that I’m interested in software engineering and machine learning stuff <em>(which was not published in their poster, lol)</em>. After some questions, the question started to focus on web development and data science. I was asked which one I prefer, web dev or data scientist and I chose data scientist, as this company’s specialty is its AI and I thought this will be a very good opportunity to expand my knowledge. Few weeks later, I got the position. Yeah!!</p><h3><strong>Day-to-day internship</strong></h3><p>First, you need to know that data scientist here is not that kind of bussiness oriented job. We are more like AI engineer or AI research scientist or machine learning engineer which focuses on using AI to create product or enhance product. Fun fact, there is no employee here with data scientist position, there are AI engineer and AI research scientist. During my internship, I have 2 mentors, Mas Rizok (AI engineer) and Mas Alvin (AI research scientist). On my first day, I was asked to learn about container concept and Docker, since it’s heavily used here for containerizing development environment and product deployment. Then, I was given a project to be done during my whole internship period, which is to make model that able to predict age and gender from a person frontal face photograph. Check my project <a href="https://github.com/dandynaufaldi/Agendernet">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g60YwrEdVOo3CSGyycsDDg.jpeg" /><figcaption>With one of my mentor, Mas Rizok (Informatics ITS 2013)</figcaption></figure><p>My journey on doing the project is about up and down. One of the challenge is to handle such ‘dirty’ dataset which is IMDB-Wiki dataset. It contain lots of mislabeled data. I spend around 3 days going through 20 thousands of images (just 1/10 from whole<em> partially cleaned</em> dataset) and manage to discard 2000 of it and it actually just small portion of the whole data. One of the things that make me happy is access to lots of computing power. At first, I was given access to a server with 2 x GTX 1080Ti + 2 x 16 core Intel Xeon and then change to AWS instance with Tesla V100. They’re really fast that I’ve never have opportunity to use such amount of computing power.</p><p>Lots of new tech and method I learned here. They are face detection, face alignment, making model with 2 outputs, multiprocessing and multi-threading. Before my internship, I never handle such data which can not fit to a memory, there was day where I just consume up all 60 GB of available RAM because my dumb mind and then I learn how to load data as needed and minimizing I/O overhead with multiprocessing. This project also my first project which I give lots of documentation. I tried to make it reproducible for others. Here, I also familiarizing myself to read papers as reference since they are really good references. So much new thing I learned here until I might said that most of my codes were new things for me.</p><p>Later, when I finished on building the model. My mentor asked me to build end to end system to inference the model with live video stream as its input. There I learned how to separate job in threads to ‘<em>chase</em>’ a real time video processing. I also integrate SORT tracker, which later I know use Kalman Filter as its main structure. After studying a bit about Kalman Filter, I realize that my linear algebra and statistical &amp; probability class was worthy. Yeah, lots of new things I learned during my internship are actually implementation of what I’ve studied in campus (operating system course, linear algebra course, and statistical &amp; probability course, also some others).</p><h3><strong>Values</strong></h3><p>Here I developed some values which really helped me going through my first internship. They are:</p><ul><li><strong>Curiosity</strong> : always have the spirit to learn new things, let them guide you to overcome your real problem. Search a lot and read a lot</li><li><strong>Confidence</strong> : new challenge will always come to you and you have to make yourself sure that <strong>YOU CAN</strong> do it. Strong will really helps.</li><li><strong>Patience </strong>: obstacle may come in the middle of your journey and you have to be patience to keep on your track and be consistent. Later you will be able to overcome the problems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSX5awPKB7SP0h-mthHNdw.jpeg" /><figcaption><em>With some of other intern, CEO, and employee. From top left to bottom right: Guntara (SE Intern), Atina (SE Intern), Kak Ilham (SE), Kak Meidy (CEO), Chasni (Web Dev Intern), Dani (AI Intern), Nanda (DevOps Intern), Adi (DevOps Intern), Kevin (SE Intern), Daniel (SE Intern), Me, Kak Anggun (Talent Management)</em></figcaption></figure><h3><strong>Conclusion</strong></h3><p>During my internship, I got all things I hope for. I learned new things, met great people, learned from the best, and be able to discuss my thought with others. Nodeflux is a young startup which grow pretty fast. I will recommend it to anyone who love to experience new thing, solving challenge, and of course want to know more about AI. All of people here are great people who love what they do and do their job with love. I want to thank Nodeflux for this great opportunity as it is my first internship and it was really fun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oM1owdf_iEtUHDXmvtQkYA.jpeg" /><figcaption>Our “Agustusan” event</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea4a339d03f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/first-internship-as-ai-research-scientist-at-nodeflux-ea4a339d03f">First Internship as AI Research Scientist at Nodeflux</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>