<?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"><channel><title><![CDATA[iamsywid]]></title><description><![CDATA[🌱 learning, unlearning, relearning]]></description><link>https://blog.sywid.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 10:32:46 GMT</lastBuildDate><atom:link href="https://blog.sywid.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[TIL:  LLM Jailbreak]]></title><description><![CDATA[Jailbreak in the context of LLM is manipulating the prompt to bypass restrictions set by the service provider.
The 4 common prohibited scenarios (Deng et al., 2024):

Illegal usage against law

Generation of harmful or abusive contents

Violation of ...]]></description><link>https://blog.sywid.dev/til-llm-jailbreak</link><guid isPermaLink="true">https://blog.sywid.dev/til-llm-jailbreak</guid><category><![CDATA[jailbreak]]></category><category><![CDATA[large language models]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Mon, 24 Jun 2024 16:41:54 GMT</pubDate><content:encoded><![CDATA[<p>Jailbreak in the context of LLM is manipulating the prompt to bypass restrictions set by the service provider.</p>
<p>The 4 common prohibited scenarios (Deng et al., 2024):</p>
<ol>
<li><p>Illegal usage against law</p>
</li>
<li><p>Generation of harmful or abusive contents</p>
</li>
<li><p>Violation of rights and privacy</p>
</li>
<li><p>Generation of adult contents</p>
</li>
</ol>
<h2 id="heading-reference">Reference</h2>
<p>Deng, G., Liu, Y., Li, Y., Wang, K., Zhang, Y., Li, Z., Wang, H., Zhang, T., &amp; Liu, Y. (2024). MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots. <em>Proceedings 2024 Network and Distributed System Security Symposium</em>. <a target="_blank" href="https://doi.org/10.14722/ndss.2024.24188">https://doi.org/10.14722/ndss.2024.24188</a></p>
]]></content:encoded></item><item><title><![CDATA[TIL: Google Cloud Storage and Serverless Options]]></title><description><![CDATA[5 Core Storage Options

Cloud Storage

Object Storage

Object (e.g. video, pictures, audio recordings) + Metadata



Cloud SQL

Fully managed relational databases

MySQL, PostgreSQL, SQL Server



Cloud Spanner

Scales horizontally

SQL support for o...]]></description><link>https://blog.sywid.dev/til-google-cloud-storage-and-serverless-options</link><guid isPermaLink="true">https://blog.sywid.dev/til-google-cloud-storage-and-serverless-options</guid><category><![CDATA[google cloud]]></category><category><![CDATA[storage]]></category><category><![CDATA[serverless]]></category><category><![CDATA[TIL]]></category><category><![CDATA[Cloud]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Mon, 18 Dec 2023 16:00:10 GMT</pubDate><content:encoded><![CDATA[<h3 id="heading-5-core-storage-options"><strong>5 Core Storage Options</strong></h3>
<ol>
<li><p>Cloud Storage</p>
<ul>
<li><p>Object Storage</p>
</li>
<li><p><strong>Object</strong> <em>(e.g. video, pictures, audio recordings)</em> + <strong>Metadata</strong></p>
</li>
</ul>
</li>
<li><p>Cloud SQL</p>
<ul>
<li><p>Fully managed relational databases</p>
</li>
<li><p>MySQL, PostgreSQL, SQL Server</p>
</li>
</ul>
</li>
<li><p>Cloud Spanner</p>
<ul>
<li><p>Scales horizontally</p>
</li>
<li><p>SQL support for online transaction (OLTP) system</p>
</li>
</ul>
</li>
<li><p>Cloud Bigtable</p>
<ul>
<li><p>NoSQL</p>
</li>
<li><p>Does not support SQL queries</p>
</li>
</ul>
</li>
<li><p>Firestore</p>
<ul>
<li><p>NoSQL</p>
</li>
<li><p>Free quota per day</p>
</li>
</ul>
</li>
</ol>
<h3 id="heading-4-serverless-options"><strong>4 Serverless Options</strong></h3>
<ol>
<li><p>App Engine</p>
<ul>
<li>host frontend, backend, or both</li>
</ul>
</li>
<li><p>Cloud Functions</p>
<ul>
<li>event-driven code</li>
</ul>
</li>
<li><p>Cloud Run</p>
<ul>
<li>containerized apps</li>
</ul>
</li>
<li><p>Cloud Run for Anthos</p>
<ul>
<li>hybrid/multi-cloud apps</li>
</ul>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[TIL: How to remove X-Powered-By: ASP.NET Header]]></title><description><![CDATA[Go to Server Manager -> IIS

Right click on the Server

Select Internet Information Services (IIS) Manager




    

On Features View tab, go to IIS -> HTTP Response Headers


 Right click on X-Powered-By -> Remove


 Click Yes to confirm.


 Reload ...]]></description><link>https://blog.sywid.dev/til-how-to-remove-x-powered-by-aspnet-header</link><guid isPermaLink="true">https://blog.sywid.dev/til-how-to-remove-x-powered-by-aspnet-header</guid><category><![CDATA[TIL]]></category><category><![CDATA[IIS webserver on windows]]></category><category><![CDATA[IIS]]></category><category><![CDATA[response headers]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Tue, 28 Nov 2023 16:00:10 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095932195/3d6d9741-696e-4aa7-ba67-dc02120c92dd.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<ol>
<li><p>Go to Server Manager -&gt; IIS</p>
<ul>
<li><p>Right click on the Server</p>
</li>
<li><p>Select Internet Information Services (IIS) Manager</p>
</li>
</ul>
</li>
</ol>
<p>    <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095489857/b0069f4f-bc05-4168-82a5-4fddbd7d77b3.png" alt /></p>
<ol>
<li><p>On <code>Features View</code> tab, go to <code>IIS</code> -&gt; <code>HTTP Response Headers</code></p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095854421/c474992b-3190-4973-bb7d-61224c9db314.png" alt /></p>
<p> Right click on <code>X-Powered-By</code> -&gt; <code>Remove</code></p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095871280/53a8ec02-b0ed-4fd8-b87b-cc63285898f2.png" alt /></p>
<p> Click <code>Yes</code> to confirm.</p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095883406/45fd2a25-cfc2-425f-b8b4-74b41c5fd0c7.png" alt /></p>
<p> Reload the page and inspect the response. The <code>X-Powered-By:</code> <a target="_blank" href="http://ASP.NET"><code>ASP.NET</code></a> <code>Header</code> should be removed</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095904150/ef19f514-7b39-410c-a1c9-1c5fd4b87d72.png" alt class="image--center mx-auto" /></p>
<p> .</p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[TIL: How to remove IIS server response header]]></title><description><![CDATA[Go to Server Manager -> IIS

Right click on the Server

Select Internet Information Services (IIS) Manager
  



On Features View tab, go to Management -> Configuration Editor


 On the drop down menu, select the section: system.webServer -> security...]]></description><link>https://blog.sywid.dev/til-how-to-remove-iis-server-response-header</link><guid isPermaLink="true">https://blog.sywid.dev/til-how-to-remove-iis-server-response-header</guid><category><![CDATA[TIL]]></category><category><![CDATA[IIS webserver on windows]]></category><category><![CDATA[response headers]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Mon, 27 Nov 2023 16:00:10 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1701094725198/c7363119-3078-41b2-980c-0e579e81d525.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<ol>
<li><p>Go to <code>Server Manager -&gt; IIS</code></p>
<ul>
<li><p>Right click on the Server</p>
</li>
<li><p>Select <code>Internet Information Services (IIS) Manager</code></p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1699510973903/346ce59c-4a9c-4136-a543-953f5f7314bf.png" alt /></p>
</li>
</ul>
</li>
<li><p>On <code>Features View</code> tab, go to <code>Management</code> -&gt; <code>Configuration Editor</code></p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095240162/39dfcc0c-d752-4c8e-b626-56a6aff1c93b.png" alt class="image--center mx-auto" /></p>
<p> On the drop down menu, select the section: <code>system.webServer</code> -&gt; <code>security</code> -&gt; <code>authentication</code> -&gt; <code>requestFiltering</code></p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095285697/64237a65-2ce0-49cc-83e5-2f853f420dc6.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Set the value for <code>removeServerHeader</code> to <code>True</code></p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095303071/bfd7cf85-7406-486d-a317-b73be783a927.png" alt class="image--center mx-auto" /></p>
<p> Reload the page and inspect the response. The IIS header should be removed.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1701095309160/8912f783-a3ac-46fa-91e7-873ef097a627.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[Google Preemptible Virtual Machine Instances]]></title><description><![CDATA[To preempt means to stop. Preemptible virtual machines are available at a lower price but might be preempted (stopped) at any time. This instance always stops after running for 24 hours (except for Spot VMs that do not have maximum runtime unless def...]]></description><link>https://blog.sywid.dev/google-preemptible-virtual-machine-instances</link><guid isPermaLink="true">https://blog.sywid.dev/google-preemptible-virtual-machine-instances</guid><category><![CDATA[google cloud]]></category><category><![CDATA[virtual machine]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[TIL]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Mon, 20 Nov 2023 16:00:12 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/_Vm8XWJ9UaQ/upload/5e530fea3709675e68c6bacd4c720df7.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>To preempt means to stop. <a target="_blank" href="https://cloud.google.com/compute/docs/instances/preemptible">Preemptible virtual machines</a> are available at a lower price but might be preempted (stopped) at any time. This instance always stops after running for 24 hours (except for Spot VMs that do not have maximum runtime unless defined.) </p>
<h3 id="heading-notes">Notes:</h3>
<ul>
<li>Data is not persisted locally. No <a target="_blank" href="https://cloud.google.com/compute/docs/disks/local-ssd">Local SSD data</a> is retained.</li>
<li>Persistent disks can be attached to the VM but will incur storage costs.</li>
<li>Not covered by SLA.</li>
<li>Not charged while in Terminated state.</li>
<li>Example use case: Batch processing jobs</li>
</ul>
<p>References:</p>
<ol>
<li><p><a target="_blank" href="https://cloud.google.com/compute/docs/instances/preemptible">Preemptible VM instances</a></p>
</li>
<li><p><a target="_blank" href="https://cloud.google.com/compute/docs/disks/local-ssd">About Local SSD disks</a></p>
</li>
<li><p><a target="_blank" href="https://cloud.google.com/compute/docs/instances/create-use-preemptible#best_practices">Preemptible VMs Best Practices</a></p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[TIL: How to change default IIS web server web page]]></title><description><![CDATA[TLDR: Create index.html and save in C:\inetpub\wwwroot


Create an index.html file. This will be the new default page.
 

Save in the directory C:\\inetpub\\wwwroot
 

Check the web page displayed on localhost]]></description><link>https://blog.sywid.dev/til-how-to-change-default-iis-web-server-web-page</link><guid isPermaLink="true">https://blog.sywid.dev/til-how-to-change-default-iis-web-server-web-page</guid><category><![CDATA[TIL]]></category><category><![CDATA[IIS webserver on windows]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Mon, 13 Nov 2023 16:00:12 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1700985999603/d89a7e0a-b67c-4de0-83d4-c7ef0416cbb4.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-tldr-create-indexhtml-and-save-in-cinetpubwwwroot"><strong>TLDR</strong>: Create <code>index.html</code> and save in C:\inetpub\wwwroot</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1700985152900/f4cb8824-30f6-4ac1-a4ff-e636ce023370.png" alt class="image--center mx-auto" /></p>
<ol>
<li><p>Create an <code>index.html</code> file. This will be the new default page.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1700985092057/9b313003-d5eb-47d0-bf83-aed228567460.png" alt /></p>
</li>
<li><p>Save in the directory <code>C:\\inetpub\\wwwroot</code></p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1700985104162/8c839222-4583-4a14-8fe2-c8096e822849.png" alt /></p>
</li>
<li><p>Check the web page displayed on localhost</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1700985130884/3fc8bc14-2743-495f-85cd-34416501a5c4.png" alt /></p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[TIL: How to install IIS web server on Windows Server 2019?]]></title><description><![CDATA[Run PowerShell as administrator and install IIS services
 import-module servermanager
 add-windowsfeature web-server -includeallsubfeature



Default IIS web server web page on localhost.




Version Notes:

Windows Server 2019
Microsoft IIS/10.0 
Po...]]></description><link>https://blog.sywid.dev/til-how-to-install-iis-web-server-on-windows-server-2019</link><guid isPermaLink="true">https://blog.sywid.dev/til-how-to-install-iis-web-server-on-windows-server-2019</guid><category><![CDATA[TIL]]></category><category><![CDATA[windows server]]></category><category><![CDATA[IIS webserver on windows]]></category><category><![CDATA[IIS]]></category><category><![CDATA[Powershell]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Thu, 09 Nov 2023 16:00:10 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1699509671468/2975e54d-5105-4435-a4cd-edba472bf8dd.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<ol>
<li><p>Run PowerShell as administrator and install IIS services</p>
<pre><code class="lang-bash"> import-module servermanager
 add-windowsfeature web-server -includeallsubfeature
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1699508852888/1c42b3e2-c8eb-44fe-a737-20357cdb5334.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Default IIS web server web page on <code>localhost</code>.
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1699509465676/fa1ff157-ae30-4d3a-b3eb-2a88cf9474b2.png" alt class="image--center mx-auto" />
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1699509843419/5ee4fffc-c741-4d52-82d0-4745ea119fba.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
<h4 id="heading-version-notes">Version Notes:</h4>
<ul>
<li>Windows Server 2019</li>
<li>Microsoft IIS/10.0 </li>
<li>PowerShell 5.1</li>
</ul>
<p>Display PowerShell version using <code>$PSVersionTable</code>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1699508769730/943d3211-0355-4d25-9a3b-d64e8c49a31f.png" alt class="image--center mx-auto" /></p>
]]></content:encoded></item><item><title><![CDATA[Google Cloud Project]]></title><description><![CDATA[1. A Tour of Google Cloud Hands-on Labs introduces the Google Cloud console. There's also a walkthrough on how to enable an API (e.g. Dialogflow).

Google Cloud Project refers to the entity that contains the cloud resources and services (e.g. pool of...]]></description><link>https://blog.sywid.dev/google-cloud-project</link><guid isPermaLink="true">https://blog.sywid.dev/google-cloud-project</guid><category><![CDATA[TIL]]></category><category><![CDATA[google cloud]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Wed, 08 Nov 2023 16:00:09 GMT</pubDate><content:encoded><![CDATA[<p><a target="_blank" href="https://www.cloudskillsboost.google/focuses/2794?parent=catalog">1. A Tour of Google Cloud Hands-on Labs</a> introduces the Google Cloud console. There's also a walkthrough on how to enable an API (e.g. Dialogflow).</p>
<ul>
<li><p>Google Cloud Project refers to the entity that contains the cloud resources and services (e.g. pool of virtual machines, databases, network, settings and permissions)</p>
</li>
<li><p><a target="_blank" href="https://cloud.google.com/iam/docs/understanding-roles/#primitive%5C_roles">Basic Roles/Primitive Roles</a> (Viewer, Editor, Owner) are highly permissive and are not recommended in production environments. Instead, use predefined roles or custom roles.</p>
</li>
<li><p>The core principle of <a target="_blank" href="https://cloud.google.com/apis/design/resources">REST architecture style</a> is to "define named resources that can be manipulated using a small number of methods."</p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Installing Logisim on macOS]]></title><description><![CDATA[Download Logisim from SourceForge.

Check the hash: sha256sum logisim-generic-2.7.1.jar

Initially, I downloaded logisim-macosx-2.7.1.tar.gz but I encountered errors due to the required java version. What worked for me is to directly run the jar file...]]></description><link>https://blog.sywid.dev/installing-logisim-on-macos</link><guid isPermaLink="true">https://blog.sywid.dev/installing-logisim-on-macos</guid><category><![CDATA[tools]]></category><category><![CDATA[logisim]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Sun, 16 Apr 2023 12:45:39 GMT</pubDate><content:encoded><![CDATA[<p>Download <a target="_blank" href="http://www.cburch.com/logisim/download.html">Logisim</a> from SourceForge.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681485497843/79172988-771a-4673-8317-6697f0e70a5a.png" alt class="image--center mx-auto" /></p>
<p>Check the hash: <code>sha256sum logisim-generic-2.7.1.jar</code></p>
<ul>
<li><p>Initially, I downloaded <code>logisim-macosx-2.7.1.tar.gz</code> but I encountered errors due to the required java version. What worked for me is to directly run the jar file: <code>java -jar logisim-generic-2.7.1.jar</code></p>
</li>
<li><p>tar.gz also includes a .jar file. Show package contents to access:</p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681479192633/0b0df8c0-524a-4499-a9ed-5c072c5af591.png" alt /></p>
</li>
<li><p>Logism.app package contents:</p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681479149491/c8c8b234-8f4f-4626-b345-0181cb6319a1.png" alt /></p>
</li>
</ul>
<h3 id="heading-related-tool">Related Tool</h3>
<ul>
<li><a target="_blank" href="https://github.com/logisim-evolution/logisim-evolution">Logisim-evolution</a></li>
</ul>
<h3 id="heading-errors-encountered">Errors Encountered:</h3>
<ul>
<li><p>When I tried to open <code>Logism.app</code>, it required the Java SE6 Runtime.</p>
<p>  <code>More Info...</code> leads to <a target="_blank" href="https://support.apple.com/kb/DL1572?locale=en_US">Download Java for OS X 2017-001</a></p>
<p>  However, I already have a newer java version installed.</p>
<blockquote>
<p>Java for macOS 2017-001 can't be installed on this disk. A newer version of this package is already installed.</p>
</blockquote>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681480188034/59b51464-801a-4261-93e0-d48e8d724cd5.png" alt /></p>
<p>  This is when I considered using <a target="_blank" href="https://sdkman.io/">sdkman</a> to see if I can download Java SE6 but since the version is deprecated, it is not immediately available on the list.</p>
</li>
<li><p>When I double-click the jar file, the following warning is displayed:</p>
</li>
</ul>
<blockquote>
<p>"logism.jar" cannot be opened because it is from an unidentified developer.</p>
</blockquote>
<p>    <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681480257835/f1c3fad1-9e24-46ee-8c94-0aa9022c89b2.png" alt /></p>
<p>    To resolve this, go to System Preferences -&gt; Security &amp; Privacy.</p>
]]></content:encoded></item><item><title><![CDATA[TIL: How to generate checksum?]]></title><description><![CDATA[Checksums work like a fingerprint. It is used to verify file integrity. If the files have the same checksums, then they are identical. It can also be used to check if the file has been previously scanned as malicious.
On Windows:

certutil:
 certutil...]]></description><link>https://blog.sywid.dev/til-how-to-generate-checksum</link><guid isPermaLink="true">https://blog.sywid.dev/til-how-to-generate-checksum</guid><category><![CDATA[TIL]]></category><category><![CDATA[tools]]></category><category><![CDATA[Hash]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Sat, 15 Apr 2023 12:45:39 GMT</pubDate><content:encoded><![CDATA[<p>Checksums work like a fingerprint. It is used to verify file integrity. If the files have the same checksums, then they are identical. It can also be used to check if the file has been previously scanned as malicious.</p>
<h3 id="heading-on-windows">On Windows:</h3>
<ol>
<li><p><a target="_blank" href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certutil">certutil</a>:</p>
<pre><code class="lang-bash"> certutil -hashfile &lt;filepath&gt; SHA256
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681477053717/b0cbc661-ee41-412e-96fc-e3d2eeb5231c.png" alt /></p>
</li>
<li><p><a target="_blank" href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.3">Get-FileHash</a></p>
<pre><code class="lang-bash"> Get-FileHash &lt;filepath&gt; -Algorithm SHA256
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681477069290/3542a26e-81ac-4f80-9c26-7bb984dc77e4.png" alt /></p>
</li>
</ol>
<h3 id="heading-on-linuxmacos">On Linux/macOS:</h3>
<ol>
<li><p><a target="_blank" href="https://man7.org/linux/man-pages/man1/sha256sum.1.html">sha256sum</a></p>
<pre><code class="lang-bash"> sha256sum &lt;filepath&gt;
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681477392350/ffb8b37f-c6c2-4e6a-a09e-d2ea8ebac6fb.png" alt class="image--center mx-auto" /></p>
</li>
<li><p><a target="_blank" href="https://opensource.apple.com/source/CPANInternal/CPANInternal-62/Digest-SHA/shasum.auto.html">shasum</a></p>
<pre><code class="lang-bash"> shasum -a 256 &lt;filepath&gt;
</code></pre>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681477820614/6156ea96-77ac-4155-b095-11ba199c0ce2.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
<p>The file hash can also be checked on <a target="_blank" href="https://www.virustotal.com/gui/home/search">VirusTotal</a> and <a target="_blank" href="https://labs.inquest.net/">InQuest</a></p>
<p><strong>f29bc64a9d3732b4b9035125fdb3285f5b6455778edca72414671e0ca3b2e0de</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681478175894/2cfca925-2a53-4a38-8482-915bfb62b4f1.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1681478260927/989289a1-d01f-417f-8209-5390164721f9.png" alt class="image--center mx-auto" /></p>
]]></content:encoded></item><item><title><![CDATA[TIL: ctrl + space: Eclipse Content Assist on macOS]]></title><description><![CDATA[When I tried to use ctrl + space, it brings out the Input Sources while cmd + space brings out Spotlight. How to use this shortcut for content assist?

Go to System Preferences -> Keyboard -> Shortcuts -> Input Sources

Deselect the check box labeled...]]></description><link>https://blog.sywid.dev/til-ctrl-space-eclipse-content-assist-on-macos</link><guid isPermaLink="true">https://blog.sywid.dev/til-ctrl-space-eclipse-content-assist-on-macos</guid><category><![CDATA[TIL]]></category><category><![CDATA[Eclipse]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Sun, 29 Jan 2023 15:00:39 GMT</pubDate><content:encoded><![CDATA[<p>When I tried to use <code>ctrl + space</code>, it brings out the Input Sources while <code>cmd + space</code> brings out Spotlight. How to use this shortcut for content assist?</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1674977234574/ea2e362a-83a7-4ffe-9c09-601056a49e8b.png" alt class="image--center mx-auto" /></p>
<p>Go to System Preferences -&gt; Keyboard -&gt; Shortcuts -&gt; Input Sources</p>
<ul>
<li><p>Deselect the check box labeled: `Select the previous input source.` It is also using the ctrl+space key combination.</p>
<p>  <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1674978501685/82021e13-d38c-4257-b5a5-89a67699dc91.png" alt class="image--center mx-auto" /></p>
</li>
</ul>
<p>Go back to Eclipse, and try content assist again.</p>
<h2 id="heading-main">main</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1674978791155/a59adaa6-0c0d-4c46-955b-e193c030c5ea.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-syso">syso</h2>
<pre><code class="lang-java">System.out.println();
</code></pre>
<h2 id="heading-for">for</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1674979229181/c9bb13c6-78e3-4848-805d-86fc0022b1ee.png" alt class="image--center mx-auto" /></p>
]]></content:encoded></item><item><title><![CDATA[TIL: 3 general approaches language models use]]></title><description><![CDATA[How one word relates to another and in which context it can be used. If this can be calculated precisely, then would that be the same as knowing exactly what to say and when?
How can a sequence of words be generated?
The 3 general approaches language...]]></description><link>https://blog.sywid.dev/til-3-general-approaches-language-models-use</link><guid isPermaLink="true">https://blog.sywid.dev/til-3-general-approaches-language-models-use</guid><category><![CDATA[TIL]]></category><category><![CDATA[language]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Tue, 24 Jan 2023 15:00:42 GMT</pubDate><content:encoded><![CDATA[<p>How one word relates to another and in which context it can be used. If this can be calculated precisely, then would that be the same as knowing exactly what to say and when?</p>
<p>How can a sequence of words be generated?</p>
<p>The 3 general approaches language models use according to the report (Eovito &amp; Danilevsky, 2021, p.8) are:</p>
<ol>
<li><p>Linguistic - by following a set of rules (grammatical structure)</p>
</li>
<li><p>Probabilistic/statistical - by calculating the probability of words occurring together</p>
</li>
<li><p>Embeddings - by representing words as vectors in a large dimensional space</p>
</li>
</ol>
<p>I like learning languages. And it would be interesting to read more about how machines "learn" languages.</p>
<h3 id="heading-reference">Reference</h3>
<p>Eovito, A., Danilevsky, M. (2021). <em>Language Models in Plain English: Humans Understanding How Machines Understand Language.</em> O’Reilly Media Inc. <a target="_blank" href="https://learning.oreilly.com/library/view/language-models-in/9781098109073/">https://learning.oreilly.com/library/view/language-models-in/9781098109073/</a></p>
]]></content:encoded></item><item><title><![CDATA[Ignoring files in Git]]></title><description><![CDATA[tl;dr: We can tell git to ignore files using .gitignore and exclude. 

In the home directory, we can set the global .gitignore
From within the project repository, there's the project .gitignore andpersonal exclude file (found within the local .git fo...]]></description><link>https://blog.sywid.dev/ignoring-files-in-git</link><guid isPermaLink="true">https://blog.sywid.dev/ignoring-files-in-git</guid><category><![CDATA[Git]]></category><dc:creator><![CDATA[Christine Balanaa]]></dc:creator><pubDate>Wed, 05 Oct 2022 14:30:42 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1664978233900/YJiD81mDB.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>tl;dr: We can tell git to ignore files using <em><code>.gitignore</code></em> and <code>exclude</code>. </p>
<ul>
<li>In the home directory, we can set the <code>global .gitignore</code></li>
<li>From within the project repository, there's the <code>project .gitignore</code> and<code>personal exclude</code> file (found within the local <code>.git</code> folder).</li>
<li>Rules in the subdirectories override the rules in the parent directories.</li>
</ul>
<h2 id="heading-on-gitignore-and-exclude-files">On .gitignore and exclude files</h2>
<ol>
<li><p><code>core.excludesfile</code> </p>
<ul>
<li><em>Global</em> .gitignore</li>
<li>Ignore files across all git repositories of the current user in the system.</li>
<li>Example: Files related to the OS and code editor<ul>
<li><a target="_blank" href="https://github.com/github/gitignore/blob/main/Global/macOS.gitignore">macOS.gitignore</a>, </li>
<li><a target="_blank" href="https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore">VisualStudioCode.gitignore</a> 
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1664807303836/Sz0PRco6j.png" alt="image.png" /></li>
</ul>
</li>
<li><p>Configure using <code>--global</code> option</p>
<ul>
<li>Below it's named <code>.gitignore</code> but it can be any file name (e.g. <code>.gitignore_global</code>).</li>
<li><p>By convention, this is saved in the same location as the global <code>gitconfig</code> (in the home directory) but it can be in another location.</p>
<pre><code>  nano ~/.gitignore
</code></pre></li>
<li><p>Specify the path to the <em><code>.gitignore</code></em> file</p>
<pre><code>  git config --<span class="hljs-built_in">global</span> core.excludesfile ~/.gitignore
</code></pre></li>
<li>Additional patterns can be appended using:<pre><code>  echo .DS_Store &gt;&gt; ~/.gitignore
</code></pre></li>
<li>⏩ <a target="_blank" href="https://www.youtube.com/watch?v=buTq5JebsH8">Set global .gitignore</a></li>
<li><em>It's also possible to set values using <code>--system</code> and the <code>--local</code> options</em></li>
</ul>
</li>
</ul>
</li>
<li><p><code>.gitignore</code></p>
<ul>
<li><em>Project</em> .gitignore</li>
<li>Ignore files common across all copies of the current project repository.</li>
<li>Example: File patterns related to the project and the programming language<ul>
<li><a target="_blank" href="https://github.com/github/gitignore/blob/main/Node.gitignore">Node.gitignore</a></li>
<li>config.json (because this contains the token)<pre><code>  echo config.json &gt;&gt; .gitconfig
</code></pre><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1664807713279/mHaZU2YSh.png" alt="image.png" /></li>
</ul>
</li>
<li>Version-controlled, committed and shared with anyone who clones the repository.</li>
<li>There can be multiple <code>.gitignore</code> in a repository but the convention is to place one in the top level directory. Same level as  the local <code>.git</code> folder</li>
</ul>
</li>
<li><code>.git/info/exclude</code><ul>
<li><em>Personal</em> exclude</li>
<li>Ignore files within the current copy of the project repository.</li>
<li>Example: File patterns related to personal workflow and development tools<ul>
<li>Personal commit.template saved in .gitmessage.txt<pre><code>echo .gitmessage.txt &gt;&gt; .git/info/exclude
</code></pre></li>
</ul>
</li>
<li><code>exclude</code> is a file located in the local <code>.git</code> folder. This file is not committed to the repository.
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1664807966127/jRl362r9t.png" alt="image.png" /></li>
<li>⏩ <a target="_blank" href="https://www.youtube.com/watch?v=sGqHzNtji6s">Display .git folder on Visual Studio Code</a></li>
</ul>
</li>
</ol>
<h3 id="heading-more-gitignore-templates">More .gitignore templates</h3>
<ul>
<li>Github maintains a collection of <a target="_blank" href="https://github.com/github/gitignore/">.gitignore templates</a>.</li>
<li>Toptotal <a target="_blank" href="https://www.toptal.com/developers/gitignore">gitignore.io</a> can be used to generate .gitignore files.</li>
</ul>
]]></content:encoded></item></channel></rss>