<?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[Messages From Irresponsible Fat Boy - Medium]]></title>
        <description><![CDATA[一個對自己發表的言論一概不負責任的肥仔的留言 - Medium]]></description>
        <link>https://medium.com/messages-from-irresponsible-fat-boy?source=rss----f8b28bce0e11---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Messages From Irresponsible Fat Boy - Medium</title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy?source=rss----f8b28bce0e11---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:19:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/messages-from-irresponsible-fat-boy" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[Record:IT][WSL2][Apache]Mount Windows Folder to HTML for easy Development with VS Code (中文在英文後)]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-it-wsl2-apache-mount-windows-folder-to-html-for-easy-development-with-vs-code-%E4%B8%AD%E6%96%87%E5%9C%A8%E8%8B%B1%E6%96%87%E5%BE%8C-72dc5eb70cd5?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/72dc5eb70cd5</guid>
            <category><![CDATA[folder-mounts]]></category>
            <category><![CDATA[wsl-2]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[local-web-server]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 04:59:07 GMT</pubDate>
            <atom:updated>2026-02-06T07:32:50.142Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZRM_b4PG9q_CMUprHjZBg.png" /></figure><p>Since most of working time is using windows machine, storing files at oneDrive is one easy way for me to sync all code through all machines I’m using!<br>因為大部份時間都是用WINDOWS機工作，用OneDrive去同步所有機其實好便！</p><p>Recently, writing some web apps to help my working environment, like use JSPDF to create PDF form, make some webapps for checking and calculate the design, create and modifying the document control system….<br>近期除正常工程工作，大多時間會寫一點webapp去幫助日常工作，好似用JSPDF做表，寫點小程式做設計驗算和文件管理‥‥</p><p>As there is a CORS problem when direc open the HTML file from file explorer and it will load another local file(s), a web server is needed for developing these stuffs locally or using VSCode-Server (it also another daily usage of my development) or other means which a web server needed to be deploied.<br>如果在檔案總管直接打開HTML檔，在載入其他本地文件時會有CORS問題，那，只好架設一個網頁伺服器去做了！</p><p>To solve this problem, using WSL should be a great solution.<br>After installing WSL with Ubuntu-22.04, and installed the APACHE server to the WSL, it is found that some steps are needed to go for sync the code to oneDrive.<br>近期發現，用WSL會是一個超方便的解決方法。<br>在WSL上安裝好Ubuntu 22.04後, 再安裝Apache2，差只差幾步就可以繼續寫碼了。</p><p>First, as the root of the web server is at /var/www/html, the owner should be change to current user, then the permission has to change for read &amp; write the file. Then, the folder of code at oneDrive needed to mount under the root of web server folder.<br>首先，用Apache的話，網站的根目錄是在 /var/www/html，因WSL的 &#39;/&#39; 是root的，這目錄需轉給目前用戶及設定權限給讀寫網站的根目錄。接著就是開一個子目錄去掛載OneDrive上的工作目錄，然後掛載OneDrive上的工作目錄。</p><pre>PS C:\Users\me&gt; wsl --install Ubuntu-22.04 # install Ubuntu 22.04 to WSL<br>...<br>...<br>PS C:\UserS\me&gt; wsl # run the WSL</pre><pre>me@myPC:/mnt/c/Users/me$ sudo apt-get update &amp;&amp; sudo apt-get upgrade -y<br># update the repo and upgrade if available,, -y to skip confirmation<br><br>me@myPC:/mnt/c/Users/me$ sudo apt-get install apache2 # install apache server<br>...<br>...<br><br>me@myPC:/mnt/c/Users/me$ cd /var/www/html/ # change directory to web server root folder<br><br>me@myPC:/var/www/html$ sudo chown -R $USER:www-data ./ # change owner of current folder to current user<br>me@myPC:/var/www/html$ sudo chmod -R 775 ./ # set permission for read and read<br>me@myPC:/var/www/html$ mkdir newProject # make a folder for project to be mounted<br>me@myPC:/var/www/html$ sudo mount -t drvfs &#39;C:\Users\me\OneDrive\path\to\project&#39; /var/www/html/newProject</pre><p>Finally, cd to project folder and run VS Code for continuous works!!!<br>最後，轉到工作目錄再用 ‘ code . ‘去進入VS Code繼續開發工作！</p><pre>me@myPC:/var/www/html$ cd newProject<br>me@myPC:/var/www/html/newProjecrt$ code.<br>Updating VS Code Server to.....<br>...<br>...</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGm2BoN5hulUN20QDR5i1A.png" /><figcaption>It works!!! 得咗!!!</figcaption></figure><p>(TN-20260206)</p><p>[Supplymentary | 後加]</p><p>After testing, it is found that the mounting will not auto re-mount after restart, some steps added:<br>在測試時，發現restart WSL後個mount消失咗，跟住要做多幾步︰</p><p>Auto-remount 自動重掛:</p><pre>me@myPC:/var/www/html/$ sudo nano /etc/fstab</pre><p>Add | 加</p><pre>path/to/your/windows/folder /var/www/html/newProject drvfs defaults 0 0</pre><p>Restart WSL | 重新開動WSL</p><pre>me@myPC:/var/www/html/$ exit<br>...<br><br>PS C:\Users\me&gt; wsl --shutdown # shutdown WSL<br>PS C:\Users\me&gt; wsl # restartt WSL</pre><p>Then, it work again!<br>跟住，得咗！</p><p>(TN-20260206)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72dc5eb70cd5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-it-wsl2-apache-mount-windows-folder-to-html-for-easy-development-with-vs-code-%E4%B8%AD%E6%96%87%E5%9C%A8%E8%8B%B1%E6%96%87%E5%BE%8C-72dc5eb70cd5">[Record:IT][WSL2][Apache]Mount Windows Folder to HTML for easy Development with VS Code (中文在英文後)</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][WebRTC] Using webRTC on iPhone]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-it-webrtc-using-webrtc-on-iphone-878ba9b6079e?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/878ba9b6079e</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 20:33:15 GMT</pubDate>
            <atom:updated>2025-02-11T20:33:15.441Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsXnlQMWrTKjTyPMbGu61Q.png" /></figure><p>While testing the webRTC on iphone with laptop, it find that the WebRTC is not work on Chrome of iPhone, if try to use WebRTC on iPhone, use Safari instead!</p><p>[TN 20250212]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=878ba9b6079e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-it-webrtc-using-webrtc-on-iphone-878ba9b6079e">[Record:IT][WebRTC] Using webRTC on iPhone</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT] Keyboard “F2” and “Sleep” Toggle]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-it-keyboard-f2-and-sleep-toggle-933052ca1444?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/933052ca1444</guid>
            <category><![CDATA[fn-key]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 13:33:01 GMT</pubDate>
            <atom:updated>2024-09-05T13:33:01.776Z</atom:updated>
            <content:encoded><![CDATA[<p>[Record:IT] Keyboard “F2” and “Sleep” Toggle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25Ud69RhpGp5qsG-JskoeQ.jpeg" /></figure><p>There are penlty of keyboard layout in the world, for common examples, there are en-US, en-UK, JP, zh-TW, en-HKSAR……</p><p>There are many programs, soddftware, app using function key (F1 ~ F12) ti work as shortcut, and there are some ‘normal / general practice’ for functon key work for, such as ‘F1’ is help menu, ‘F2’ is rename…..<br>And most of my surrounding people use is ‘F2’ which will use for shortcut of rename/edit, and will work in ‘File Manager / Explorer”, “Excel”, VS Code…..</p><p>The aforesaid case nearly the same in the individual keyboard and keyboard of notebook / laptop, but, for the keyboard of notebook / laptop, the function key will include other function will combine key with function “Fn” key, and most are use for setting, such as volume control, brightness, touch pad toggle, monitor mode…..</p><p>Which one if the main function and function with Fn key? Different manufacturer had a different default setting.</p><p>Few year ago, my office had purchase some ASUS set PC, which include the PC tower (case with CPU, mother board, RAM…..), keyboard and mouse. For the mouse, since most of mouse available in the market is similar, only problem is the layout of keyboard….</p><p>The ‘original’ function that act as the function key ‘F1’ to F12 might swap as the alternative function that needed use with press-and-hold the ‘Fn’ key as well, and the alternative function in the past such as ‘sleep’, ‘audio volume control’, ‘brightness’, etc. will being the main function of the function key.</p><p>As metioned before, the most use is ‘F2’ which used to edit / rename something in the application, and the most common combination of the alternative function in the ‘F2’ key is sleep…..</p><p>If we are not clear the layout is ‘change’, press ‘F2’ to edit / rename will then turn to shut the PC down or put it to sleep mode….. and we need to wait for the reboot / restart of the PC…..</p><p>With some surfing by my colleague, there is found that a combine-key might be useful for settle this matter — — -&gt; “Fn” + “Esc”</p><p>My colleague found that if we press “Fn” + “Esc” after boot-in the system, it will toggle the major/minor functionality of the function key, which solve the big-big problem on using the ‘Fn” key!</p><p>[TN 20240905]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=933052ca1444" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-it-keyboard-f2-and-sleep-toggle-933052ca1444">[Record:IT] Keyboard “F2” and “Sleep” Toggle</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][PHP]password_verify, always return FALSE]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-it-php-password-verify-always-return-false-fcb37b852e79?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/fcb37b852e79</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[password-hashing]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Mon, 02 Sep 2024 06:54:36 GMT</pubDate>
            <atom:updated>2024-09-02T06:58:18.170Z</atom:updated>
            <content:encoded><![CDATA[<p>Using password_hash and password_verify if my newly try, but always find the verification return FALSE…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ro2P9pTcq_rJ4Ll2j8YHTA@2x.jpeg" /></figure><p>After surfing a bit, it was found that only a little matter getting wrong…… I used double quote instead of single quote to wrap up the pre-hashed string(60) plain-text……</p><p>As using double quotes to wrap up some strings, string after ‘$’ will parse as variable and make the plain-text became a different thing…..</p><p>[TN 2024–09–02]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcb37b852e79" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-it-php-password-verify-always-return-false-fcb37b852e79">[Record:IT][PHP]password_verify, always return FALSE</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[ThreeJS]Why trying to use ThreeJS to show the 3D Model in web browser]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/threejs-why-trying-to-use-threejs-to-show-the-3d-model-in-web-browser-85b0fa652205?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/85b0fa652205</guid>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[3d-models]]></category>
            <category><![CDATA[threejs]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Mon, 13 May 2024 15:54:07 GMT</pubDate>
            <atom:updated>2024-05-13T15:54:07.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Br1xeFZkemmATcGiw8OW5Q@2x.jpeg" /></figure><p>For easy showing the idea to the client, 3D model is a great aid for the project presentation.</p><p>I am an engineer(?) in the construction field, find that using 3D model for the presentation on paper-base proposals, animation-simulation also share the 3d models with other parties is a great way to show my idea and already use for over 20 years.</p><p>In the past, plans, elevations, sections are prepared in the CAD software such as AutoCAD, SketchUp and export to pdf or printed to A3 / A2 paper are the normal ways for present to other parties. Then, start from about 2004, building the 3D model of the project with different natures of the drawings (such as architectural, structural, drainage…) and checking the discrepancies is found useful and reduce the time and abortive works.</p><p>Then, for some big projects, such as a domestic building over four railway, cutting sections to show different stages of the project is seem not simple enough for let every parties to understand. For that, some 3D simulation are made to present the procedures and different stages also some critical views of the project for showing the work and sequence for present to every parties.</p><p>As the processing power of laptop increase, sometime the 3d model will present and amended during the meeting with the CAD software installed in the laptop, and finalized 3D model will share for every parties. But, although the major CAD being use is AutoCAD and SketchUp, the files shall be convert before sharing if some parties only use either of two or neither…. export to OBJ/DXF/DAE…. seem is not good.</p><p>Around 3~5 years ago, the ThreeJS is introduced to me from the path of learning Bender3D, but, the lack of knowledge about the programming language, try try and put it down.</p><p>Few months ago, many of short clip / video about ThreeJS were suggested to me at YouTube, and the construction project is just completed, I try to watch the tutorial video and pick the ThreeJS again!</p><p>Around three months had been spent, the basic of the basic concept is finally learnt, and the 3D model built from SketchUp is finally can be display on the browser from the webpage at my private web server!</p><p>(TN-20240513)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85b0fa652205" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/threejs-why-trying-to-use-threejs-to-show-the-3d-model-in-web-browser-85b0fa652205">[ThreeJS]Why trying to use ThreeJS to show the 3D Model in web browser</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT] Local Web Server | 在本機上執網頁伺服器]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-local-web-server-%E5%9C%A8%E6%9C%AC%E6%A9%9F%E4%B8%8A%E5%9F%B7%E7%B6%B2%E9%A0%81%E4%BC%BA%E6%9C%8D%E5%99%A8-799e008137ed?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/799e008137ed</guid>
            <category><![CDATA[python-local-web-server]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[隨想]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Fri, 19 Apr 2024 06:42:05 GMT</pubDate>
            <atom:updated>2024-04-26T15:43:07.030Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dEbBWAPVD3IQsxRW0EJCkw.jpeg" /></figure><p>原本很想利用如Ionic/ React / Electron之類的framework去寫幾個只為本機服務嘅應用，好似存取xml去搞inventory 記錄，但發覺自己能力有限，完全睇唔明白framework點用，於是諗下寫HTML5+Javascript去做，不過browser係唔可以係網頁中直接讀本機檔案，計劃中用js去讀xml嚟做嘅功能係無可能嘅…..</p><p>其實一早就知唔得，但抱住試下，雖然唔得，咪放堆code係自家後備/內聯網入面嘅web server/NAS度行囉；不過想𢱑生意諗住放幾個陽春版俾朋友們用，咁，對方唔識丁點IT其實無得玩，但叫人安裝WAMP/XAMP/LAMP都唔係好得，因為要安個伺服器，人地未必識/未必肯，咁，點好？</p><p>係網度遊咗遊，搵到個唔上唔落嘅方法，似乎有可能/較易入口入手，就係用python開個webserver咯😂</p><p>較易入口入手係因為好多人都知道python係乜，仲有佢唔使去官網下載再自己安，只要去Microsoft Store度搵python，㩒個install制就搞掂，係用嘅時候先開，對於有d比較怕唔識數碼保安(好似我咁)都會試一下，只要打開CMD再CD到放code嘅folder，然後輸入：</p><pre>python3 -m http.server</pre><p>咁，個STATIC WEB SERVER就用得架喇。不過，係STATIC，只可以將現有資料顯示，唔可以係HTML入面改⋯⋯ 要改，就一係轉做DYNAMIC WEB SERVER，一係就寫個APP/PROGRAM仔另外用嚟改，但又有點本末倒置，算了，都係唔諗住，先做個Drawing List Registry，正正經經咁處理好家下個令我頭大嘅問題先。</p><p>(TN-20240419)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=799e008137ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-local-web-server-%E5%9C%A8%E6%9C%AC%E6%A9%9F%E4%B8%8A%E5%9F%B7%E7%B6%B2%E9%A0%81%E4%BC%BA%E6%9C%8D%E5%99%A8-799e008137ed">[Record:IT] Local Web Server | 在本機上執網頁伺服器</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][PHP][SQLite] Using PHP return SQLite in JSON for JavaScript at HTML]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-using-php-return-sqlite-in-json-for-javascript-at-html-9c3546f883d9?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/9c3546f883d9</guid>
            <category><![CDATA[xmlhttprequest]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[sqlite3]]></category>
            <category><![CDATA[json]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 19:01:50 GMT</pubDate>
            <atom:updated>2024-04-26T15:44:22.875Z</atom:updated>
            <content:encoded><![CDATA[<p>Using SQLite as the database of a project, and as some unexpected issues, need to draw the data from the SQLite for showing at the webpage.</p><p>For quick completion, with the previous experiences, the webpage to be adopted HTML and using JavaScript to get the data from the server with PHP.</p><p>How to send the SQLite to HTML? After surfing a while, the JSON format is use for the data exchange between the server and the client.</p><p>Flow: First, the bare frame of the webpage will render with basic HTML5 &lt;table&gt;, &lt;thead&gt; is used to set the head of the columns.</p><p>Then, using XMLHTTPREQUEST to get the JSON via the PHP to encode the json data from SQLite file.</p><p>After pulled the JSON, use looping to generate the HTML code with the data and store in a variable. When all data had been processed, the concatenated string will insert to the &lt;tbody&gt; and finish the table generation.</p><p>PHP:</p><pre>&lt;?php<br>	$db_file = “path/to/file.db”;<br>	$db = new SQLITE3($db_file);<br>	$sql = “SELECT * FROM table_name WHERE conditions”;<br>	$result = $db-&gt;query($sql);<br>	$jsonArray = [];<br>	while($row = $result-&gt;fetchArray(SQLITE3_ASSOC)) {<br>		array_push($jsonArray, $row);<br>	}<br>	echo json_encode($jsonArray);<br>?&gt;</pre><p>HTML:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*gMogVuYArPbxtT_5d07Hwg@2x.jpeg" /></figure><p>(TN-20240403)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c3546f883d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-using-php-return-sqlite-in-json-for-javascript-at-html-9c3546f883d9">[Record:IT][PHP][SQLite] Using PHP return SQLite in JSON for JavaScript at HTML</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][NodeJS] Update NodeJS of WSL at VS Code]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-update-nodejs-of-wsl-at-vs-code-152164f3a094?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/152164f3a094</guid>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[nodejs-update]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 07:22:29 GMT</pubDate>
            <atom:updated>2024-04-26T15:46:27.077Z</atom:updated>
            <content:encoded><![CDATA[<h2>[Record:IT][NodeJS] Update NodeJS in WSL at VS Code</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*abxjBHwaxiaDdFDxp_Q04g@2x.jpeg" /></figure><p>When trying building app with React Native, NodeJS needed to install either using React Native CLi or Expo. To avoid affecting the host OS, the WSL is use when development is on a Windows machine.</p><p>From the TERMINAL of the VS Code, after install WSL and NodeJS, there is found that the version of NodeJS is v12.22.9 (at the time today setting up a new machine of Windows 10). From the searching before on the web, there is a method that clean up the cache and re-install the NodeJS, and record here for easy reference.</p><p>First, check the version of NodeJS and NPM, if NPM not installed, install it by:</p><pre>$ sudo apt install npm</pre><p>Then, check the version of NodeJS:</p><pre>$ node —version<br>v12.22.9</pre><p>Then, if the version is not the latest, remove it and re-install again:</p><pre>$ sudo npm cache clean -f<br>$ sudo npm install n -g<br>$ sudo n stable</pre><p>Final, check again the version of NodeJS:</p><pre>$ node —version<br>v20.11.1</pre><p>[TN-20240319]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=152164f3a094" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-update-nodejs-of-wsl-at-vs-code-152164f3a094">[Record:IT][NodeJS] Update NodeJS of WSL at VS Code</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][Apache][SQLite] Using SQLite3 with Apache at Ubuntu Server]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/record-using-sqlite3-with-apache-at-ubuntu-server-9f2efb188829?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/9f2efb188829</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <category><![CDATA[sqlite3]]></category>
            <category><![CDATA[apache-server]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 08:05:52 GMT</pubDate>
            <atom:updated>2024-04-26T15:47:43.177Z</atom:updated>
            <content:encoded><![CDATA[<p>A testing PHP server for testing is built at an Ubuntu machine, and want to using SQLite as the database, cloning some codes from other projects and only Error 500 appeared……</p><p>After line by line checking, the problem is calling the ‘new SQLite3’ and remember that the SQLite3 hadn’t been installed…..</p><pre>$ sudo apt-get update &amp;&amp; sudo apt-get upgrade<br>$ sudo apt install php-sqlite3<br>$ sudo systemctl restart apache2</pre><p>After install the php-sqlite3 and restart the apache2, everythings come back!</p><p>[TN-2023010]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f2efb188829" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/record-using-sqlite3-with-apache-at-ubuntu-server-9f2efb188829">[Record:IT][Apache][SQLite] Using SQLite3 with Apache at Ubuntu Server</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Record:IT][Python][PDF] Merge & Extract PDF File(s) withN Python & TKinter]]></title>
            <link>https://medium.com/messages-from-irresponsible-fat-boy/merge-extract-pdf-file-s-with-python-tkinter-541b1ba37553?source=rss----f8b28bce0e11---4</link>
            <guid isPermaLink="false">https://medium.com/p/541b1ba37553</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pdf]]></category>
            <category><![CDATA[tkinter]]></category>
            <category><![CDATA[dummy-programmer]]></category>
            <dc:creator><![CDATA[TN.HK]]></dc:creator>
            <pubDate>Sat, 18 Jun 2022 08:46:54 GMT</pubDate>
            <atom:updated>2024-04-26T15:48:42.257Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jnJLSF1DwG0Y41rLAMMFg.png" /><figcaption>Program building WIP</figcaption></figure><p>There are pently of software can manipulate PDF file, like rotate, typewriter, extract, merge…… Some are free of charge, some are free for basic function, and most likely the merge, splite, extract are paid version.</p><p>From roaming and learning from the web, there are some ways to do these paid version stuff by using python libraries, but most are in command line.<br>With the trial on the Tkinter to build GUI applications, now trying to build an application with the basic functions on merging, extracting pdf-file(s) for daily use without pay to anyone!</p><p>Program for Merging and Extracting PDF had been already built in separed program and seem run without significantly bug / error, and now is trying to merge into one singal application with the ttk.Notebook. Since some of the variable names for the both program are idential, renaming and mapping is undertaking and hope it can be issued soon!</p><p>[TN-20220618]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=541b1ba37553" width="1" height="1" alt=""><hr><p><a href="https://medium.com/messages-from-irresponsible-fat-boy/merge-extract-pdf-file-s-with-python-tkinter-541b1ba37553">[Record:IT][Python][PDF] Merge &amp; Extract PDF File(s) withN Python &amp; TKinter</a> was originally published in <a href="https://medium.com/messages-from-irresponsible-fat-boy">Messages From Irresponsible Fat Boy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>