<?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 Doan Thai on Medium]]></title>
        <description><![CDATA[Stories by Doan Thai on Medium]]></description>
        <link>https://medium.com/@doanthai?source=rss-dfc89026f0f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eriW359_oKIqvRXG.</url>
            <title>Stories by Doan Thai on Medium</title>
            <link>https://medium.com/@doanthai?source=rss-dfc89026f0f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 10:29:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doanthai/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[What thing make you become senior?]]></title>
            <link>https://medium.com/@doanthai/what-thing-make-you-become-senior-6abf3ad2bc7e?source=rss-dfc89026f0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6abf3ad2bc7e</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coders]]></category>
            <category><![CDATA[seniors]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Doan Thai]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 05:05:55 GMT</pubDate>
            <atom:updated>2025-03-12T05:05:55.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*Xgg6QK4_aSuefCRGGb-wnw.jpeg" /><figcaption>AI Generate</figcaption></figure><h4><strong>Beyond the Code: The Unseen Traits That Forge a Senior Developer</strong></h4><p>The journey from junior to senior developer isn’t just a linear progression of acquired knowledge. It’s a transformation, a metamorphosis driven by subtle shifts in perspective, decision-making, and a deeper understanding of the software development ecosystem. While mastering languages ​​and frameworks is crucial, it’s the how and why behind their application that truly sets a senior developer apart.</p><p><strong>It’s Not Just What You Know, It’s How You Apply It.</strong></p><p>Let’s be honest: in the age of readily available documentation and Stack Overflow, knowing every nook and cranny of a technology is less important than knowing when and why to use it. A senior developer doesn’t blindly adopt the latest shiny framework just because it’s trending. They possess a keen sense of discernment, evaluating tools based on:</p><ul><li><strong>Project Requirements</strong>: A seasoned developer understands that the “best” technology is the one that best fits the project’s specific needs, constraints, and long-term goals. Sometimes, the tried-and-true approach is superior to the cutting-edge.</li><li><strong>Maintainability and Scalability</strong>: They think beyond the immediate feature implementation, considering the project’s future. Will this technology be easy to maintain? Will it scale as the user base grows? These are critical questions that inform their choices.</li><li><strong>Team Expertise</strong>: A senior developer recognizes the importance of team collaboration. They consider the existing skill set of the team and the learning curve associated with new technologies. Choosing a technology that the team can readily adopt and maintain is paramount.</li><li><strong>Long Term cost</strong>: They understand that a technology can have hidden costs, and that the newest technology may not be the most stable. They consider the cost of hosting, maintenance, and the availability of developers with the required skill set.</li></ul><p><strong>Decisions Driven by Experience, Not Just Enthusiasm.</strong></p><p>The difference between a junior and senior developer lies in the ability to make informed decisions based on experience. This translates to:</p><ul><li><strong>Risk Assessment</strong>: Senior developers are adept at identifying potential risks and mitigating them proactively. They understand that every technology choice carries trade-offs, and they weigh the risks and benefits carefully.</li><li><strong>Technical Debt Management</strong>: They are keenly aware of the concept of technical debt and strive to minimize it. They prioritize writing clean, maintainable code, even if it means taking a little extra time upfront.</li><li><strong>Prioritization and Trade-offs</strong>: In the real world, deadlines and resource constraints are inevitable. Senior developers excel at prioritizing tasks and making informed trade-offs, balancing speed and quality.</li><li><strong>Knowing When to Say No</strong>: A senior developer is not afraid to push back against unrealistic deadlines or poorly defined requirements. They understand the importance of setting boundaries and protecting the project’s integrity.</li></ul><p><strong>Beyond the Code: The Soft Skills That Shine.</strong></p><p>Technical expertise is only one piece of the puzzle. Senior developers also possess a strong set of soft skills:</p><ul><li><strong>Communication and Collaboration</strong>: They are effective communicators, able to articulate complex technical concepts to both technical and non-technical audiences. They are also excellent collaborators, fostering a positive and productive team environment.</li><li><strong>Mentorship and Leadership</strong>: They are willing to share their knowledge and experience with junior developers, acting as mentors and role models. They also demonstrate leadership qualities, taking ownership of projects and guiding their teams towards success.</li><li><strong>Problem-Solving and Critical Thinking</strong>: They are adept at breaking down complex problems into smaller, controlled tasks. They possess a strong analytical mind and are able to think critically about potential solutions.</li><li><strong>Continuous Learning</strong>: The technology landscape is constantly evolving. Senior developers are lifelong learners, staying up-to-date with the latest trends and technologies.</li></ul><h4>Conclusion</h4><p>Becoming a senior developer is a journey of continuous growth and refinement. It’s about developing a deep understanding of the software development process, making informed decisions, and fostering a collaborative and supportive team environment. It’s about recognizing that code is only a part of the whole picture, and that the true value of a senior developer lies in their ability to apply their knowledge and experience to create sustainable and impactful solutions.</p><p>What do you think about it?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6abf3ad2bc7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get time create task in Calendar?]]></title>
            <link>https://medium.com/@doanthai/how-to-get-time-create-task-in-calendar-ca0ce4fcbd12?source=rss-dfc89026f0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca0ce4fcbd12</guid>
            <category><![CDATA[calendar]]></category>
            <category><![CDATA[google-calendar]]></category>
            <category><![CDATA[tasks]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Doan Thai]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 17:32:54 GMT</pubDate>
            <atom:updated>2025-01-27T17:32:54.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGYE0WOY4ylmNo82yWWZDA.png" /><figcaption>Image generated by canva.com</figcaption></figure><p><strong>Introduction:</strong></p><p>Google Calendar is an indispensable tool for managing schedules and staying organized. But have you ever found yourself searching for tasks based on when they were <em>created</em>, not just when they’re due? This can be incredibly helpful for tracking project progress, analyzing your productivity patterns, or simply finding those long-forgotten tasks lurking in your calendar.</p><p>Unfortunately, there’s no single, direct filter in Google Calendar to isolate tasks based on their creation time. However, the only way to achieve this by my knowledge that check API from Google.</p><p>I searched in many places but all just said in general. Finally, I must read all XHR request from website of Calender by “Inspect” and I discovered it after a while.</p><p>You can try by follow bellow step.</p><ol><li>Create simple task.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*jyoIAZ6SAMgiEjqFfCYKSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*h5DKAPX6dmPtc-_qgrI2ZA.png" /></figure><p>2. Check XHR Request.</p><p>After create task, you can see task that was created at calendar. Now, we can inspect XHR request by click right click and choose “Inspect” or press F12. Remember select tab network and refresh page to get new data. After new data reload, list XHR will be show.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TXXq8n3AnbJ1-tif96XMQ.png" /></figure><p>We can filter XHR requests by the name ‘Sync’ to easily find and extract the specific request that retrieves the list of tasks. Click to “Sync” request to show data that we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2XyToJqZEO71zvxC8U9BQ.png" /></figure><p>That is example json response.</p><pre>[<br>    [<br>        [<br>            [<br>                null,<br>                null,<br>                [<br>                    null,<br>                    &quot;1&quot;<br>                ]<br>            ]<br>        ],<br>        [<br>            null,<br>            [<br>                &quot;~default&quot;,<br>                &quot;user&quot;,<br>                null,<br>                null,<br>                null,<br>                null,<br>                null,<br>                null,<br>                null,<br>                null,<br>                [<br>                    null,<br>                    &quot;2&quot;<br>                ],<br>                null,<br>                null,<br>                null,<br>                null,<br>                &quot;~default&quot;<br>            ]<br>        ],<br>        [<br>            null,<br>            null,<br>            null,<br>            [<br>                &quot;~default&quot;,<br>                [<br>                    &quot;My Tasks&quot;,<br>                    null,<br>                    &quot;user&quot;<br>                ],<br>                [<br>                    [<br>                        [<br>                            &quot;9_8-WXd7lSL3lc0t&quot;<br>                        ],<br>                        [<br>                            &quot;FATmx3mDqtwussXW&quot;<br>                        ]<br>                    ]<br>                ],<br>                null,<br>                null,<br>                [<br>                    &quot;1600979292&quot;,<br>                    744335000<br>                ],<br>                [<br>                    null,<br>                    &quot;3&quot;<br>                ],<br>                [<br>                    &quot;1737996881&quot;,<br>                    275663000<br>                ]<br>            ]<br>        ],<br>        [<br>            null,<br>            null,<br>            [<br>                &quot;9_8-WXd7lSL3lc0t&quot;,<br>                [<br>                    null,<br>                    &quot;Task title&quot;,<br>                    null,<br>                    [<br>                        2025,<br>                        1,<br>                        27<br>                    ]<br>                ],<br>                [<br>                    &quot;1737996881&quot;,<br>                    275663000<br>                ],<br>                &quot;~default&quot;,<br>                null,<br>                null,<br>                null,<br>                [<br>                    null,<br>                    &quot;3&quot;<br>                ],<br>                [<br>                    [<br>                        null,<br>                        [<br>                            2025,<br>                            1,<br>                            27<br>                        ],<br>                        [],<br>                        &quot;Asia/Ho_Chi_Minh&quot;,<br>                        null,<br>                        [<br>                            &quot;1737910800&quot;<br>                        ]<br>                    ]<br>                ],<br>                null,<br>                [<br>                    &quot;1737996881&quot;,<br>                    235544000<br>                ],<br>                null,<br>                [<br>                    &quot;117430276005273666387&quot;<br>                ]<br>            ]<br>        ]<br>    ],<br>    null,<br>    [<br>        [<br>            &quot;1737997674&quot;,<br>            954137000<br>        ]<br>    ]<br>]</pre><p>The first time I encountered this, I didn’t know which field represented the task creation time. So, I attempted to identify it by examining various fields that resembled timestamps or were in a readable time format. I finally found it, index 10 of array that have index 2 in each task (in task “Task title” time created is “1737996881”).</p><p>Conclusion:</p><p>By leveraging these techniques, you can track task create time. Hope google support show task create time soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca0ce4fcbd12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kết nối VPN từ android vào server linux. (How to connect android to OpenVPN on Ubuntu server)]]></title>
            <link>https://medium.com/@doanthai/k%E1%BA%BFt-n%E1%BB%91i-vpn-t%E1%BB%AB-android-v%C3%A0o-server-linux-how-to-connect-android-to-openvpn-on-ubuntu-server-3d81414dd84f?source=rss-dfc89026f0f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d81414dd84f</guid>
            <category><![CDATA[openvpn-for-android]]></category>
            <category><![CDATA[openvpn]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[openvpn-setup]]></category>
            <dc:creator><![CDATA[Doan Thai]]></dc:creator>
            <pubDate>Thu, 19 Sep 2024 05:28:01 GMT</pubDate>
            <atom:updated>2024-09-19T05:28:01.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*cbmEumtMxyeLT93C" /></figure><p>Đôi khi phát triển ứng dụng trên mobile chúng ta cần gọi API từ thiết bị android đến server, thường thì sẽ trỏ trực tiếp đến IP nhưng vì 1 vài lý do việc đó là không thể hoặc bị hạn chế như server chỉ dùng mạng nội bộ hoặc các service trong IP sử dụng custom hostname, … . Vì thế cần tạo 1 VPN để server và thiết bị android cùng kết nối vào. Cách đơn giản nhất là dùng OPENVPN bản free nhưng lại bị hạn chế ở 3 connection, nếu không bị giới hạn bởi chi phí hãy sử dụng nó. Ngươc lại, chúng ta phải tự cầu hình VPN trên server 1 cách thủ công.</p><p>Dưới đây là các bước chi tiết để cấu hình OPENVPN trên Ubuntu server và cách kết nối thiết bị android vào VPN đã tạo.</p><p><strong>Bước 1: Cài đặt OpenVPN và Easy-RSA</strong></p><p>Đầu tiên hãy cài đặt OpenVPN và Easy-RSA. Easy-RSA là tool để quản lý SSL Certificates.</p><pre>sudo apt install openvpn easy-rsa</pre><p><strong>Bước 2: Tạo thư mực Easy-RSA</strong></p><pre>sudo make-cadir /etc/openvpn/easy-rsa<br>cd /etc/openvpn/easy-rsa</pre><p><strong>Bước 3: Khởi tạo PKI (Public Key Infrastructure)</strong></p><p>Tiếp theo là tạo Public Key Infrastructure trong thư mục Easy-RSA vừa tạo. Lệnh này sẽ tạo ra 1 thư mục pki .</p><pre>./easyrsa init-pki</pre><p><strong>Bước 4: Tạo Certificate Authority (CA)</strong></p><p>Build the Certificate Authority that will sign and manage certificates.</p><p>Dùng lệnh sau để tạo ra Certificate Authority. Lệnh này sẽ yêu cầu nhập Key Passphrase và tên server. Chỉ cần nhớ Key Passphrase để dùng cho các lệnh sau là được.</p><pre>./easyrsa build-ca</pre><pre>Using SSL: openssl OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)<br><br>Enter New CA Key Passphrase: <br>Re-Enter New CA Key Passphrase: <br>You are about to be asked to enter information that will be incorporated<br>into your certificate request.<br>What you are about to enter is what is called a Distinguished Name or a DN.<br>There are quite a few fields but you can leave some blank<br>For some fields there will be a default value,<br>If you enter &#39;.&#39;, the field will be left blank.<br>-----<br>Common Name (eg: your user, host, or server name) [Easy-RSA CA]:server<br><br>CA creation complete and you may now import and sign cert requests.<br>Your new CA certificate file for publishing is at:<br>/etc/openvpn/easy-rsa/pki/ca.crt</pre><p><strong>Bước 5: Tạo Server Certificates</strong></p><p>Để tạo server certificate, chúng ta sẽ tạo key Diffie-Hellman và 1 file .req .</p><pre>./easyrsa gen-req myserver nopass<br>./easyrsa gen-dh<br>./easyrsa sign-req server myserver</pre><p><strong>Bước 6: Sao phép Server Certificates đến thư mục OpenVPN của Ubuntu.</strong></p><p>Thực hiện lệnh cp để di chuyển cách file đã tạo đến đúng thư mục của OpenVPN trên Ubuntu.</p><pre>sudo cp pki/dh.pem pki/ca.crt pki/issued/myserver.crt pki/private/myserver.key /etc/openvpn/</pre><p><strong>Bước 7: Tạo Client Certificates</strong></p><p>Để tạo client certificate chúng ta sẽ tạo 1 file .req trước sau đó dùng nó để sinh client certificate file and sao chép file đã tạo đến thưc mực OpenVPN.</p><pre>./easyrsa gen-req android nopass<br>./easyrsa import-req /etc/openvpn/easy-rsa/pki/reqs/android.req android-imported<br>./easyrsa sign-req client android<br>sudo cp /etc/openvpn/easy-rsa/pki/reqs/android.req /etc/openvpn/<br>sudo cp /etc/openvpn/easy-rsa/pki/issued/androi.crt /etc/openvpn/</pre><p><strong>Bước 8: Cấu hình OpenVPN Server</strong></p><p>The server.conf file is located in the following path: /usr/share/doc/openvpn/examples/sample-config-files. Let’s copy this file and transfer it to the /etc/openvpn directory.</p><p>Mặc định khi cài OpenVPN sẽ không có file .conf có sẵn trong thư mục OpenVPN như khi cài các phần mềm khác. Nhưng chúng ta có thể sao chép từ thư mục /usr/share/doc/openvpn/examples .</p><pre>sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf /etc/openvpn/server.conf</pre><p>Sau khi sao chép chúng ta cần chỉnh sửa lại 1 số cài đặt theo ý muốn. Nếu path hiện tại trong file server.conf đã đúng thì không cần chỉnh sữa gì thêm.</p><pre>ca /etc/openvpn/ca.crt<br>cert /etc/openvpn/myserver.crt<br>key /etc/openvpn/myserver.key<br>dh /etc/openvpn/dh.pem<br>tls-auth /etc/openvpn/ta.key 0</pre><p>Ngoài ra có thểm thêm dòng sau nếu muốn quản lý client kết nối vào VPN qua web.</p><pre>management localhost 7505</pre><p><strong>Bước 9: Cho phép IP Forwarding</strong></p><p>Cầu hình cho phép IP forwarding trong file sysctl.conf.</p><pre>sudo nano /etc/sysctl.conf</pre><p>Uncomment this line and save the file.</p><p>Xóa # trước dòng # net.ipv4.ip_forward=1 hoặc thêm mới nếu không tìm thấy sao đó hãy lưu lại file.</p><pre># Uncomment the line: net.ipv4.ip_forward=1</pre><p>Sau khi sửa file cần reload lại cầu hình bằng lệnh sau:</p><pre>sudo sysctl -p /etc/sysctl.conf</pre><p><strong>Bước 10: Tạo file ta.key</strong></p><pre>sudo openvpn --genkey --secret /etc/openvpn/ta.key</pre><p><strong>Bước 11: Chạy OpenVPN service và cho phép chạy ngay khi server khởi động.</strong></p><pre>sudo systemctl start openvpn@myserver<br>sudo systemctl enable openvpn@myserver<br>sudo systemctl status openvpn@myserver</pre><p>Sau các bước trên chúng ta đã hoàn thành xong nhưng dòng lệnh để tạo VPN dùng OpenVPN trên server Ubuntu.</p><p>Tiếp theo là kết nối vào VPN đã tạo. Đầu tiên hãy tải và cài đặt app <a href="https://play.google.com/store/apps/details?id=de.blinkt.openvpn&amp;hl=en">OpenVPN for Android</a> từ Play Store trên thiết bị android. Để kết nối dễ dàng chung ta sẽ tạo 1 file có đuôi là.openvpn file này chứa các cầu hình OpenVPN dùng cho client để kết nối, nó sẽ sử dụng các file chúng ta đã tạo cho client ở các bước trên.</p><pre>client<br>remote 192.168.XXX.XXX 1194<br>ca ca.crt<br>cert android.crt<br>key android.key<br>tls-auth ta.key 1</pre><p>Thay đổi 192.168.XXX.XXX bằng IP server Ubuntu. File trên là cấu hình thường thấy khi kết nối VPN trên PC. Nhưng với android thì hơi khác 1 chút.</p><p>Với 4 file như cấu hình trên app OpenVPN android chỉ dùng được 2 file ca.crt và android.crt còn file android.key và ta.key thì không. Hiện tại dõ không rõ nguyên nhân nhưng khi vào chọn file key trên app thì nó không cho chọn file .key . Vì thế chúng ta sẽ đổi đuôi file từ .key thành .req</p><pre>cp android.crt android_key.req<br>cp ta.key ta.req</pre><p>Sau khi đã có các file cần thiết android.openvpn , ca.crt , android.crt , android_key.req , ta.req , chúng ta cần sao chép các file này đến thiết bị android. Có thể dùng kết nối trực tiếp như bluetooth, wifi, .. hoặc up lên các storage cloud như Google Drive.</p><p>Cuối cùng là thao tác trên thiết bị android để kết nối. Trước tiên là mở app OpenVPN for Android, giao diện chính như sau:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4s5LYhOv5-UxjCw92jWGaQ.jpeg" /><figcaption>Main Screen</figcaption></figure><p>Click vào Icon đấu + góc trên bên phải nhập tên VPN và click vào import để chọn file android.opevpn</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLXuaRfsTSb4egP0oYKPnw.jpeg" /></figure><p>Khi import xong, các file certificate sẽ bị lỗi vì sai đường dẫn cần chỉnh sửa lại các file này.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dinDw23XwGxhn40sMaShmA.jpeg" /></figure><p>Sau khi trỏ đúng file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v76tifsmVvanYw3U94Xc4Q.jpeg" /></figure><p>Cuối cùng là lưu lại và kết nối</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s11C2bxGkaAXio-8S40DzA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fvrTrtEElZztMLm_z1xww.jpeg" /></figure><p>Log khi kết nối thành công:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fvrTrtEElZztMLm_z1xww.jpeg" /></figure><p>Trên đây là các bước để cầu hình OpenVPN trên Ubuntu và thiết lập certificate cho thiết bị android. Kết nối VPN sẽ dùng cho nhiều mục đích khác nhau nhưng chủ yếu là cho development và testing dễ dàng hơn, tốn ít chi phí hơn.</p><p>Reference: <a href="https://www.linkedin.com/pulse/step-by-step-guide-setting-up-secure-server-vpn-ubuntu-navi-singh-filkc">https://www.linkedin.com/pulse/step-by-step-guide-setting-up-secure-server-vpn-ubuntu-navi-singh-filkc</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d81414dd84f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>