<?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 Nguyễn Trường Chung on Medium]]></title>
        <description><![CDATA[Stories by Nguyễn Trường Chung on Medium]]></description>
        <link>https://medium.com/@ntchung?source=rss-5579c0a7242b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*D8Gi5Om7k85yxBeH.</url>
            <title>Stories by Nguyễn Trường Chung on Medium</title>
            <link>https://medium.com/@ntchung?source=rss-5579c0a7242b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:19:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ntchung/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[Cách cài đặt ejabberd trên Ubuntu 18.04]]></title>
            <link>https://ntchung.medium.com/c%C3%A1ch-c%C3%A0i-%C4%91%E1%BA%B7t-ejabberd-tr%C3%AAn-ubuntu-18-04-1866c6ee9333?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1866c6ee9333</guid>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Wed, 24 Feb 2021 13:26:46 GMT</pubDate>
            <atom:updated>2021-02-24T13:32:17.144Z</atom:updated>
            <content:encoded><![CDATA[<p>Tài liệu hướng dẫn cài đặt ejabberd không hiếm nhưng có nhiều cái bị lỗi thời hoặc không hướng dẫn đầy đủ.</p><h4>Các bước cơ bản</h4><p>Đầu tiên bao giờ cũng là update các gói software cho Ubuntu:<br>apt update</p><p>Tiếp theo là cài đặt ejabberd:<br>apt install -y ejabberd</p><p>Đăng ký tài khoản admin cho ejabberd:<br>ejabberdctl register admin localhost P@ssw0rd</p><p>Sau đó, cho phép tài khoản admin này quyền truy cập:<br>nano /etc/ejabberd/ejabberd.yml</p><p>Tìm dòng config acl rồi thêm quyền admin như sau:</p><pre>acl:<br> admin:<br>  - &quot;admin&quot;: &quot;localhost&quot;</pre><p>Khởi động lại service của ejabberd sau đó:<br>service ejabberd restart</p><p>Bây giờ có thể truy cập vào trang admin của ejabberd từ browser:<br>https://&lt;địa chỉ IP&gt;:5280/admin</p><p>Lưu ý phải gõ protocolhttps chứ không phải http và cần đồng ý sử dụng certificate SSL mặc định của ejabberd.</p><p>Sau đó gõ tài khoản <strong>admin@localhost </strong>và mật khẩu vào là được. Lưu ý là phải thêm <strong>@localhost </strong>vào định danh.</p><h4>Điều chỉnh tên miền</h4><p>Đăng ký tên miền ở một dịch vụ rồi đặt địa chỉ A Address trỏ vào IP của server.</p><p>Sửa lại file config /etc/ejabberd/ejabberd.yml, tìm mục hosts rồi thêm vào tên miền cần thêm sau localhost</p><pre>hosts:<br>  - &quot;localhost&quot;<br>  - &quot;myaddress.com&quot;</pre><h4>Thêm user</h4><p>Quá dễ nên không thèm viết</p><h4>Cài đặt XMPP Client</h4><p>Quá dễ nên không thèm viết.<br>Chỉ lưu ý là username không cần thêm tên miền.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1866c6ee9333" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create App from website]]></title>
            <link>https://ntchung.medium.com/how-to-create-app-from-website-52cca94b41a4?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/52cca94b41a4</guid>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Fri, 07 Aug 2020 18:41:57 GMT</pubDate>
            <atom:updated>2020-08-07T18:41:57.373Z</atom:updated>
            <content:encoded><![CDATA[<p>My friend today asked me to clone a good Website out of his fear that the site can be some day lost. The site is <a href="https://cpetry.github.io/NormalMap-Online/">https://cpetry.github.io/NormalMap-Online/</a> which generates Normal Maps from pictures. It is more or less a Javascript tool and should be able to be converted to an Application that runs on Windows or anywhere else.</p><p>To do it, first step would be using a website downloader like httrack (<a href="http://www.httrack.com/">http://www.httrack.com/</a>) to get all the source code of it. I will show how to later.</p><p>In fact, the required website’s source code can be found at: <a href="https://github.com/cpetry/NormalMap-Online">https://github.com/cpetry/NormalMap-Online</a> , but in case there is no public source code, we still need to use a website downloader.</p><p>So I created a regular httrack project, with external depth limitation to 1 and general depth limitation to 20.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*IYIfYru8ycMTAhgfrth6Ng.png" /><figcaption>Create a new project with the targeted website</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*h9V5GMY0Ofw4sZ0QMrNTGg.png" /><figcaption>Click set options button to limit the downloads, or it could take a very long time to finish</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*Fn9czRcEI7x9Aa2Tcux2iQ.png" /><figcaption>I mainly set these 2 values</figcaption></figure><p>After the download finished you can find the product at the destination download folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*8t9a-HuA_9ElHHrmDKFGlw.png" /></figure><p>You can double click the index.html file to open the browser, but it will not be able to load the Javascript due to security settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*_3ocgykFMlmdWNYZBUhUSA.png" /><figcaption>No, you cannot open this tool like this. It’s for your own security.</figcaption></figure><p>I used a simple local http server: <a href="https://github.com/http-party/http-server">https://github.com/http-party/http-server</a> to remedy this, and now in the browser I go to <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a></p><p>It seems working now but then more errors happened, and the tool is still not usable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*UkBHv9xySn7G-qpRk8mh3g.png" /></figure><p>The reason of those missing files is because httrack can scan data files from HTML tags. However those are files used by the Javascript of the website, and httrack is not able to track those.</p><p>The only way we can fix this is to download those missing files manually. There should be tools and tricks to solve that problem but by this time, I actually found the original source code of this website so I just skip this step.</p><p>At this point the website should work locally, and the last thing to do is to wrap it into executable application. For this purpose I am using <a href="https://nwjs.io/">https://nwjs.io/</a> which is much simpler than Electron.</p><p>Firstly, I run “npm init” at the place of the file “index.html”, and just type “index.html” as the entry point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*dt17v7ycoHh6AJ_swdpEvA.png" /></figure><p>After this, the file “package.json” is generated, which is all NW JS wants.</p><p>Now, download the NW JS normal binary package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*16wCFsRc5m1afpzjd6AhgA.png" /></figure><p>Unzipping the downloaded package, you can see the executable file “nw.exe”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*hd7-Pi1QpnBP4-3QGMJ_tw.png" /></figure><p>What to do now is to copy all the content of this to the source code folder, where the file “package.json” and “index.html” is located.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*_IKaOt5Y1sH_n2Jf8uNdnA.png" /><figcaption>Final package might look like this</figcaption></figure><p>Clicking the executable “nw.exe” to see the result Application!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*hQi1Wjr1creHoPZoB85VjA.png" /></figure><p>I “released” this package by zipping it and emailed to my friend. That’s all folk!</p><p>Of course, NW JS provides more APIs to create native app although not as powerful as Electron, but I was just too lazy to do anything further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52cca94b41a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Javascript in Android app or game with JavaScriptCore and Native code]]></title>
            <link>https://ntchung.medium.com/running-javascript-in-android-app-or-game-with-javascriptcore-and-native-code-221f7466852d?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/221f7466852d</guid>
            <category><![CDATA[javascriptcore]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Mon, 16 Jul 2018 19:18:25 GMT</pubDate>
            <atom:updated>2018-07-16T19:18:25.111Z</atom:updated>
            <content:encoded><![CDATA[<p>Javascript is a powerful scripting language that is also easy to learn and very popular. There is a great range of potentials to use it in app or game, from scripting design to creating a full engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*18hQn1kh7M0PUAobkOeXqg.jpeg" /></figure><p>One great things about this is that you can hot-update your app or game without the need to resubmit to the Stores. However, this might lead to a ban, so don’t blame me for not telling you beforehand.</p><p>I always have this desire to create my own cross-platform App SDK similar to React-native or Flutter with Javascript as the programing language. The difference would be in the UI design and architecture, but that would be another story. Thus, my first brick of the wall would be to run Javascript source code with native code.</p><p>You might ask why I want to re-invent the wheel, but the hell I don’t. Shit stuck on the wheels. React-native UI design is way too tedious, and I hate flux. To further piss us programmers off, Flutter uses Dart. With all due respect to people who created these good SDKs, I can’t understand why they did not make things similar to Microsoft WPF.</p><p>Anyway, back to the main topic.</p><p>Curiously, I could not find any document out there to tell me how to do this job in step-by-step manner. After some struggle and effort to do this by myself, I decide to share my experience here.</p><p>If you have read this far, I bet you know what you want to get from this story I am writing. You must have also suffered from the lack of documents for this task.</p><p>The objective of this story is to run a simple Javascript line and show the result on screen.</p><p>Let’s begin!</p><h3>Why JavaScriptCore?</h3><ul><li>React-native uses it. Most of the hard job was done by React-native community.</li><li>It is native to iOS, half of the job is already done this way.</li></ul><h3>Overview</h3><ul><li>First thing to do is compile JavaScriptCore into Android shared library.</li><li>Link the shared library into an Android project.</li><li>Run a simple script using that library.</li></ul><h3>Step 1 — Compile JavaScriptCore</h3><p>This is the most difficult and lengthy task to do, however, it was made very simple because react-native community already did everything here: <a href="https://github.com/react-community/jsc-android-buildscripts">https://github.com/react-community/jsc-android-buildscripts</a>.</p><p>So to begin with, clone that repo somewhere and do exactly as their instructions in the README file until you get a folder named <strong>compiled</strong> in <strong>/build</strong>. This process can take more than 2 hours.</p><p>You can learn a lot by trying to compile the shared library by yourself without using what react-native community already did. But trust me, the knowledge would be very hard-earned, and you will swear a lot during the process.</p><p>In that folder, you can see shared library files (.so files) of JavaScriptCore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cw-VmGTa-0uJpKy2ll1ZQg.png" /></figure><p>We will need all the <strong>so files</strong> generated above. You can try to delete some of them later and see if the app still runs.</p><h3>Step 2 — Create new Android project</h3><p>In this story, I use Android Studio for the sake of simplicity.</p><p>When creating new project, make sure C++ support is checked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWzIhQbgpLHtWhOCYVrGuA.png" /></figure><p>And the minimum target API is 21 because JavaScriptCore needs it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWmZlPI3WWocUcvmqQnh7Q.png" /></figure><p>Try running the empty App project.</p><p>The native-code part of our App begins in <strong>app/src/main/cpp/native-lib.cpp</strong>, we will modify it to run this simple Javascript line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_YD9nt8MH5S_Q8ISV46hA.png" /></figure><p>The line calculates a simple math operation using a defined function and then returns a simple message to the context.</p><p>But before that, we need to link the shared library to our project.</p><h3>Step 3 — Link shared library to Android project</h3><p>You need to create a directory named <strong>jniLibs</strong> in <strong>app/src/main</strong>, and copy all <strong>so files</strong> generated in step 1 here. Thus you get this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*FJL4Ps0nyEX_GfmFH0xucg.png" /></figure><p>Everything in <strong>app/src/main/jniLibs</strong> will be copied to the build automatically. We don’t need to tell Android Studio to do anything else.</p><p>Now, if we call JavaScriptCore functions in <strong>native-lib.cpp</strong> file, we will surely gets compile errors. However, just go ahead, change that cpp file like the following. I want you to get error to learn.</p><pre>#include <strong>&lt;jni.h&gt;<br></strong>#include <strong>&lt;string&gt;<br><br></strong>#include <strong>&quot;JavaScriptCore/JavaScriptCore.h&quot;<br><br></strong>std::string JSStringToStdString(JSStringRef jsString) {<br>    size_t maxBufferSize = JSStringGetMaximumUTF8CStringSize(jsString);<br>    <strong>char</strong>* utf8Buffer = <strong>new char</strong>[maxBufferSize];<br>    size_t bytesWritten = JSStringGetUTF8CString(jsString, utf8Buffer, maxBufferSize);<br>    std::string utf_string = std::string(utf8Buffer, bytesWritten -1);<br>    <strong>delete </strong>[] utf8Buffer;<br>    <strong>return </strong>utf_string;<br>}<br><br><strong>extern &quot;C&quot; JNIEXPORT </strong>jstring<br><br><strong>JNICALL<br></strong>Java_com_example_chungnguyen_testjsc_MainActivity_stringFromJNI(<br>        JNIEnv *env,<br>        jobject <em>/* this */</em>) {<br><br>    JSContextGroupRef contextGroup = JSContextGroupCreate();<br>    JSGlobalContextRef globalContext = JSGlobalContextCreateInGroup(contextGroup, <strong>nullptr</strong>);<br><br>    JSStringRef statement = JSStringCreateWithUTF8CString(<strong>&quot;function degToRad(value) { return (value * Math.PI) / 180; } (&#39;90deg = &#39; + degToRad(90))&quot;</strong>);<br><br>    JSValueRef retValue = JSEvaluateScript(globalContext, statement, <strong>nullptr</strong>, <strong>nullptr</strong>, 1,<strong>nullptr</strong>);<br><br>    JSStringRef retString = JSValueToStringCopy(globalContext, retValue, <strong>nullptr</strong>);<br><br>    std::string hello = JSStringToStdString(retString);<br><br>    JSGlobalContextRelease(globalContext);<br>    JSContextGroupRelease(contextGroup);<br>    JSStringRelease(statement);<br>    JSStringRelease(retString);<br><br>    <strong>return </strong>env-&gt;NewStringUTF(hello.c_str());<br>}</pre><p>The very first error would be missing header file <strong>JavaScriptCore/JavaScriptCore.h</strong>. My reaction when I got this compile error was: “Where the f@#k can I find that header file?”.</p><p>Go back to the <strong>jsc-android-buildscripts</strong> repo folder you had cloned before, you can find source code of JavaScriptCore at <strong>build/target/webkit/Source</strong>. What needs to be done would be adding header files search path to our Android Project.</p><p>To do so, in the file <strong>CMakeLists.txt </strong>at <strong>app/src</strong>, add these lines:</p><pre>include_directories(../../jsc-android-buildscripts/build/target/webkit/Source/JavaScriptCore)<br>include_directories(../../jsc-android-buildscripts/build/target/webkit/Source/JavaScriptCore/ForwardingHeaders)</pre><p>In my case, <strong>jsc-android-buildscripts</strong> repo folder is located at the same place at the Android project folder, and so I put the header search paths like above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*NvdeghRL622VvQcAVHXGIw.png" /><figcaption>These two folders are at the same location.</figcaption></figure><p>Now header file paths are resolved, but after compiling again, we have link errors about undefined references.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*qHp8z9M8hhHN2rA-EGkxZQ.png" /></figure><p>No need to panic, we just need to link the shared library to our native code. To do so, first we need to define the library property by adding these lines to the <strong>CMakeLists.txt</strong> file.</p><pre>add_library(jsc SHARED IMPORTED)<br>set_target_properties( # Specifies the target library.<br>                       jsc<br><br>                       # Specifies the parameter you want to define.<br>                       PROPERTIES IMPORTED_LOCATION<br><br>                       # Provides the path to the library you want to import.<br>                       src/main/jniLibs/${ANDROID_ABI}/libjsc.so )</pre><p>Those lines define the shared library named <strong>jsc</strong>. The real file name is <strong>libjsc.so</strong>, but the file location is based on ABI architecture when compiling the native code.</p><p>Then, we need to actually link the library by adding <strong>jsc</strong> this line:</p><pre>target_link_libraries( # Specifies the target library.<br>                       native-lib<br><br>                       jsc<br><br>                       # Links the target library to the log library<br>                       # included in the NDK.<br>                       ${log-lib} )</pre><p>That’s it! Run the app to see the result.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=221f7466852d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phân bổ CPU bằng Threading trong Unity 3D (C#)]]></title>
            <link>https://ntchung.medium.com/ph%C3%A2n-b%E1%BB%95-cpu-b%E1%BA%B1ng-threading-trong-unity-3d-c-2bfb881f383?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bfb881f383</guid>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Mon, 28 May 2018 18:08:06 GMT</pubDate>
            <atom:updated>2018-05-29T02:18:35.473Z</atom:updated>
            <content:encoded><![CDATA[<p>Hôm nay có người hỏi tớ một vấn đề như sau:</p><p><em>Game có rất nhiều nhân vật, các nhân vật này có logic khá phức tạp như tìm đường đi, nhận diện đối phương, tự hoạch định động tác, v.v…</em></p><p><em>Việc update toàn bộ nhân vật cùng lúc dĩ nhiên sẽ làm cho FPS của game giảm đi rất nhiều trên thiết bị yếu vì quá trình này cần rất nhiều tính toán.</em></p><p>Cách giải quyết tớ đề xuất:</p><p><em>Phân nhóm ưu tiên cho các nhân vật: nhân vật quan trọng, nhân vật trong tầm nhìn người chơi, và các nhân vật râu ria nằm ngoài vùng nhìn.</em></p><p><em>Việc tối ưu hóa các hàm update logic của nhân vật gần như rất khó rồi, không nên quá bận tâm nữa.</em></p><p><em>Bằng cách nào đó phân bổ thời gian định kỳ update cho các nhân vật trên các luồng xử lý khác nhau, tránh ảnh hưởng tới luồng chính của game.</em></p><p>Như vậy ta cần:</p><p><em>Tạo ra 3 thread với độ ưu tiên khác nhau, các thread này sẽ gọi các hàm update logic của 3 nhóm nhân vật đã phân. Dĩ nhiên là ta sẽ tạo một class manager nào đó để implement điều này. Tạm gọi là LogicThreadManager.</em></p><p><em>Trong quá trình chơi, game sẽ tự phân bổ các nhóm nhân vật vào một trong 3 LogicThreadManager trên.</em></p><p>Sau đây tớ sẽ thực hiện code theo cách làm tương đối ngu học, chủ yếu để các bạn hiểu phương pháp và các bạn sẽ tự nâng cao lên.</p><p><strong>LogicThreadManager.cs</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fa519543b3658f51b1c7561b3d4636e/href">https://medium.com/media/8fa519543b3658f51b1c7561b3d4636e/href</a></iframe><p>Có thể dễ dàng thấy là constructor của class này có 3 parameters:</p><p><em>Đầu tiên là reference tới danh sách các nhân vật của game.</em></p><p><em>Nhóm nhân vật mà manager này sẽ thực hiện update logic.</em></p><p><em>Thời gian nghỉ giữa mỗi lần update logic cho từng nhân vật. Nhân vật càng ít quan trọng thì thời gian nghỉ càng dài để tiết kiệm tính toán.</em></p><p>Trong quá trình update game, việc cần làm là phân bổ các nhân vật vào các nhóm có độ quan trọng khác nhau cũng như cập nhật tọa độ đồ họa của chúng. Rất đơn giản:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/219c8c444af02181f02ac888844f9d8c/href">https://medium.com/media/219c8c444af02181f02ac888844f9d8c/href</a></iframe><p>Tuy nhiên việc cập nhật trên thread chính và thread phụ nên có sự đồng bộ hóa để tránh những rủi ro logic có thể xảy ra. Để thực hiện điều này, bạn có thể sử dụng <em>AutoresetEvent</em> hoặc đơn giản là dùng từ khóa <em>synchronized</em>.</p><p>Cái khó của đồng bộ hóa là việc update các nhân vật được thực hiện dàn trải nên việc sync chỗ nào cũng là điều đáng suy nghĩ. Dễ dàng nhất là sync mỗi khi cần update logic cho từng nhân vật là được rồi. Và như vậy ta có thay đổi sau:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fa519543b3658f51b1c7561b3d4636e/href">https://medium.com/media/8fa519543b3658f51b1c7561b3d4636e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bfb881f383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cách kiểm tra lỗi chính tả với gmail]]></title>
            <link>https://ntchung.medium.com/c%C3%A1ch-ki%E1%BB%83m-tra-l%E1%BB%97i-ch%C3%ADnh-t%E1%BA%A3-v%E1%BB%9Bi-gmail-d2cbd9244425?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2cbd9244425</guid>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Fri, 27 Apr 2018 16:02:28 GMT</pubDate>
            <atom:updated>2018-04-27T16:02:28.224Z</atom:updated>
            <content:encoded><![CDATA[<p>Bước 1 — Bấm nút soạn thảo email mới và soạn thảo email như bình thường.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rDW2CzB4Uivc4qMfpZMLeQ.png" /></figure><p>Bước 2 — Bấm vào mũi tên ở góc dưới và chọn tính năng kiểm tra lỗi chính tả</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5kopDlOADfnbk20SmEr5WQ.png" /></figure><p>Bước 3 — Chọn ngôn ngữ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zPvi8vCIK29UVUo4i_BFjA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2cbd9244425" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cách làm tương XO]]></title>
            <link>https://ntchung.medium.com/c%C3%A1ch-l%C3%A0m-t%C6%B0%C6%A1ng-xo-1c847f7211e?source=rss-5579c0a7242b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c847f7211e</guid>
            <dc:creator><![CDATA[Nguyễn Trường Chung]]></dc:creator>
            <pubDate>Thu, 22 Mar 2018 15:20:30 GMT</pubDate>
            <atom:updated>2018-03-23T01:21:12.024Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Nguyên liệu</strong></h3><ul><li>100g cồi sò điệp khô</li><li>100g tôm khô</li><li>100g cá lóc khô</li><li>200g thịt jambon</li><li>15 tép hành tím</li><li>1 củ tỏi</li><li>1 chai rưỡi dầu thực vật nhỏ</li><li>2 muỗng canh đường nâu</li><li>1 muỗng canh dầu hào</li><li>1 muỗng nhỏ tiêu</li><li>10 quả ớt tươi bỏ hạt</li><li>1 muỗng canh ớt khô</li><li>1 muỗng canh nước mắm</li><li>1 muỗng canh hắc xì dầu</li><li>10 muỗng canh rượu Thiệu Hưng</li><li>1 chén nước dùng gà</li></ul><h3>Đi chợ</h3><ul><li>Cồi sò điệp khô khó mua ở các siêu thị nên sử dụng cồi sò điệp tươi ở quầy đông lạnh cũng được. Mua một bịch như sau là đủ cho một phần tương.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Lac0VjD05MZHMCi6NEYtwA.png" /></figure><ul><li>Tôm khô nên mua ngoài chợ thì vừa rẻ lại ngon hơn siêu thị. Tôm càng to càng ngon.</li><li>Cá lóc khô có thể mua trong siêu thị. Không nhất thiết phải là cá lóc mà loại khô nào nhiều thịt như basa cũng được mà lại rẻ hơn.</li><li>Thịt jambon càng ngon càng tốt. Nếu nhà có điều kiện sang chảnh thì jambon Kim Hoa ở Chiết Giang là số một cho món này.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*0RjFd7FIuuoJolYr8DhY7Q.png" /></figure><ul><li>Rượu Thiệu Hưng có thể mua ở các tiệm đồ khô của người Hoa. Nếu không có thời gian đi ra quận 6 mua thì có thể thay thế bằng rượu Mai Quế Lộ, Sochu Hàn Quốc, hoặc Sake Nhật có bán trong các siêu thị.</li><li>Nước dùng gà thì thường là phải hầm xương gà khá kỳ công, nhưng có thể thay thế bằng một chén nước sôi với 2 viên súp Phở gà.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*bwa6N3U6dccCKMmKrmqB_Q.png" /></figure><h3>Dụng cụ lao động</h3><ul><li>Chảo trũng của người Hoa, hoặc chảo đủ to và trũng cũng được.</li><li>Một chảo vừa để phi hành tỏi.</li><li>Máy quay thịt đủ tốt.</li><li>Xửng hấp hoặc nồi đủ to để hấp.</li></ul><h3>Sơ chế</h3><ul><li>Cho sò điệp vào chén. Cho một muỗng canh rượu ướp. Nếu là sò điệp khô thì cho nước sôi vào ngâm 4–6 tiếng.</li><li>Tôm khô cho vào chén riêng, ngâm nước sôi và rượu khoảng 1–2 tiếng.</li><li>Cá khô cũng làm như tôm khô.</li><li>Trong thời gian ngâm, lột vỏ hành tỏi băm nhuyễn. Nên dùng máy quay để băm hành tỏi và nhớ là không được cho nước vào như quay sinh tố.</li><li>Cho sò điệp và jambon vào một cái tô rồi hấp khoảng 15 phút. Giữ lại nước cốt.</li><li>Trong lúc hấp thì lọc xương của cá khô, rồi quay nhuyễn cả cá và tôm. Cho ra chén riêng.</li><li>Để nguội sò điệp rồi dùng tay bóp nát rồi mới xay nhuyễn. Nếu không bóp nát trước thì thịt sò sẽ quết vào nhau, sau này khó chiên.</li><li>Băm nhỏ phần jambon đã hấp bằng dao, không nên dùng máy xay.</li><li>Trộn nước cốt chưng sò vào nước dùng gà. Trộn luôn đường nâu vào.</li></ul><h3>Nấu lần thứ nhất</h3><ul><li>Cho toàn bộ 1 chai dầu nhỏ vào chảo to, chờ dầu sôi rồi vặn lửa vừa.</li><li>Cho sò vào chiên chưa tới 5 phút, chỉ cần chớm vàng là được vì còn phải chiên tiếp.</li><li>Tiếp theo, cho tôm khô và cá khô vào cùng lúc, đảo chưa tới 10 phút là được.</li><li>Cho jambon và ớt tươi vào chiên tiếp. Tới khi phần jambon vàng là hoàn thành.</li><li>Quá trình này cần đảo liên tục để tránh bị cháy.</li><li>Để toàn bộ hỗn hợp này nguội rồi dùng một cái rây vớt ra tô. Để lại dầu trên chảo.</li><li>Nếu dầu còn ít quá thì có thể cho thêm.</li></ul><h3>Nấu lần hai</h3><ul><li>Cho toàn bộ phần thịt đã chiên ở trên vào một cái chảo khác, đảo sơ sơ rồi thêm phần nước dùng gà ở trên vào.</li><li>Cho toàn bộ phần rượu còn lại vào luôn.</li><li>Nấu cho nước dùng cạn và hỗn hợp hơi kẹo một chút. Vì có đường nên tránh để lửa to sẽ bị cháy.</li><li>Trong khi chờ cạn nước thì trên chảo dầu kia, phi hành và tỏi cho vàng.</li><li>Khi nước đã cạn thì đổ toàn bộ dầu và hành tỏi đã phi vào.</li><li>Lúc này cho dầu hào, tiêu, nước mắm, xì dầu vào.</li><li>Cuối cùng là cho thêm ớt sao cho vừa đủ độ cay.</li><li>Nêm nếm cho vừa miệng</li><li>Để nguội và cho vào lọ đêm cất.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c847f7211e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>