<?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 Raffy Repiso on Medium]]></title>
        <description><![CDATA[Stories by Raffy Repiso on Medium]]></description>
        <link>https://medium.com/@raffyrepiso?source=rss-a9a6d011c72f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UCr1jD3hQVZWyRoKR2f3Cg.jpeg</url>
            <title>Stories by Raffy Repiso on Medium</title>
            <link>https://medium.com/@raffyrepiso?source=rss-a9a6d011c72f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 13:07:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raffyrepiso/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[Protect Your Files: The One Setting You NEED to Check Today! ️]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@raffyrepiso/protect-your-files-the-one-setting-you-need-to-check-today-%EF%B8%8F-a542aba14423?source=rss-a9a6d011c72f------2"><img src="https://cdn-images-1.medium.com/max/1200/0*EQN5nu0rtsuXRtkC.png" width="1200"></a></p><p class="medium-feed-snippet">Ever heard of BitLocker? It&#x2019;s a powerful security tool that encrypts your drive to keep your data safe. But here&#x2019;s the catch: if your&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@raffyrepiso/protect-your-files-the-one-setting-you-need-to-check-today-%EF%B8%8F-a542aba14423?source=rss-a9a6d011c72f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@raffyrepiso/protect-your-files-the-one-setting-you-need-to-check-today-%EF%B8%8F-a542aba14423?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a542aba14423</guid>
            <category><![CDATA[bitlocker-recovery-key]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[bitlocker]]></category>
            <category><![CDATA[tech-support]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 07:33:17 GMT</pubDate>
            <atom:updated>2026-04-14T07:33:17.268Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[MacBook Air SSD Corrupted and Upgrade Journey]]></title>
            <link>https://medium.com/@raffyrepiso/macbook-air-ssd-corrupted-and-upgrade-journey-b17abf9bb227?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b17abf9bb227</guid>
            <category><![CDATA[macos-upgrade]]></category>
            <category><![CDATA[reinstall-macos]]></category>
            <category><![CDATA[macbook-air]]></category>
            <category><![CDATA[macos-monterey]]></category>
            <category><![CDATA[macos-high-sierra]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 15:41:43 GMT</pubDate>
            <atom:updated>2025-11-06T15:41:43.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vWjajxdEtmsVXGKu" /><figcaption>Photo by <a href="https://unsplash.com/@contentpixie?utm_source=medium&amp;utm_medium=referral">Content Pixie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have a MacBook Air whose SSD storage, including the operating system, was corrupted — meaning I couldn’t use the laptop anymore. I decided to keep it and eventually left it unused for a long period of time.<br> <br> This documentation and knowledge sharing has two parts:</p><p><strong>1. Reinstalling the default macOS (High Sierra)</strong><br><strong> 2. Upgrading from High Sierra to macOS Monterey</strong></p><h3><strong>Part 1: Reinstalling macOS High Sierra</strong></h3><p>One day, I thought about selling the laptop, but I realized that its value would be much lower since it had no OS and couldn’t be used. So, I decided to replace the SSD and forget the corrupted files stored on the old one. This reminded me how important it is to always have an online backup in case of unexpected events like this.<br> <br> During the restoration process, I encountered an error message:</p><p>The recovery server could not be contacted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*tbf8o8Fadxx1CySBN9lRdw.png" /><figcaption>The recovery server could not be contacted.</figcaption></figure><p>The recovery server could not be contacted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U5oh2KAc3RCzpN7u" /><figcaption>Photo by <a href="https://unsplash.com/@tjump?utm_source=medium&amp;utm_medium=referral">Nik Shuliahin 💛💙</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I initially thought the reinstallation would be smooth and straightforward, but to my surprise, an unexpected problem appeared along the way.</p><p>After some research, I found two potential solutions online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BBlqcBzjiFeyJoH1" /><figcaption>Photo by <a href="https://unsplash.com/@kyledarrenhanson?utm_source=medium&amp;utm_medium=referral">Kyle Hanson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I saw this 2 solutions:<br> <br><strong>1. Using Terminal command:</strong><br> <em><br>nvram IASUCatalogURL=”http://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog&quot;</em><br> <br> <br><strong> 2. Using Terminal to change the system date:</strong><br> <br><em> date -u mmddhhmmyy</em><br> <br> For example:<br> <br><em> date -u 1106203025</em><br> <br> means <strong>November 6, 2025, at 8:30 PM</strong>.<br> <br> I tried both solutions — and surprisingly, one worked!<br> <br><strong> Results:</strong></p><p>— The first solution allowed the installer to start, but there was no visible progress after 15 minutes. I checked the logs and saw that it was still downloading without progress.<br> — Then, I tried the second solution (changing the date), and it successfully allowed the installation to proceed. This time, the installation showed progress and completed successfully.</p><h3><strong>Part 2: Upgrading from High Sierra to macOS Monterey</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LGWSgfJtu4JQddAy" /><figcaption>Photo by <a href="https://unsplash.com/@philipp_dice?utm_source=medium&amp;utm_medium=referral">Philipp Düsel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After successfully reinstalling macOS High Sierra, the next step was to upgrade to macOS Monterey — since High Sierra cannot support many modern applications from the App Store.<br> <br> Here’s how I upgraded my MacBook Air from <strong>High Sierra</strong> to <strong>macOS Monterey</strong>:<br> <br> <strong>1. Visit Apple’s official support page:</strong></p><p><em>🔗 [https://support.apple.com/en-us/102662]</em></p><p><em>(https://support.apple.com/en-us/102662)</em></p><p><strong>2. Scroll down to the list of available macOS upgrades.</strong></p><p><strong>3. Choose your desired macOS version — but first, confirm that your Mac model supports it.</strong><br> <br><strong> Reference Compatibility List:</strong><br> <br> | Mac Model | Latest Official macOS |<br> | — — — — — — | — — — — — — — — — — — |<br> | MacBook Air (Mid 2012 or later) | macOS Monterey (12) |<br> | MacBook Pro (Mid 2012 or later) | macOS Monterey (12) |<br> | iMac (Late 2012 or later) | macOS Monterey (12) |<br> | Mac mini (Late 2012 or later) | macOS Monterey (12) |<br> | MacBook (Early 2015 or later) | macOS Monterey (12) |<br> | Mac models 2017 or later | macOS Ventura (13) or Sonoma (14) |<br> <br> <br> However, I encountered another issue — the installation process wasn’t starting. It turned out that the `nvram` command from Part 1 was preventing downloads via HTTPS.<br> <br> To fix this, I learned that resetting the NVRAM (or PRAM) could help. This small amount of memory stores certain system settings such as sound volume, display resolution, startup disk selection, and time zone.<br> <br> If you’re using an Intel-based Mac (not Apple Silicon), here’s how to reset NVRAM:<br> <br><strong> How to Reset NVRAM:</strong></p><p><strong>1. Shut down your Mac.</strong><br><strong> 2. Turn it on and immediately press and hold</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*Hi7Y-q9WJs6iMAq687UavQ.png" /><figcaption>Option + Command + P + R</figcaption></figure><p><strong>3. Keep holding for about 20 seconds, then release.</strong><br> <br> You can read Apple’s full guide here:</p><p><em>🔗 [https://support.apple.com/en-us/102539]</em></p><p><em>(https://support.apple.com/en-us/102539)</em><br> <br>After resetting <strong>NVRAM</strong>, I repeated the steps from the beginning — visiting Apple’s software update page and starting the upgrade again. This time, it worked perfectly!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eXqNSsoVNniEoNJW" /><figcaption>Photo by <a href="https://unsplash.com/@stefentan?utm_source=medium&amp;utm_medium=referral">Stefen Tan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Note:</strong><br> <br> This is how I successfully reinstalled macOS and upgraded from <strong>High Sierra</strong> to <strong>Monterey.</strong> Hopefully, this documentation helps anyone facing similar challenges with their MacBook Air or other older Mac devices.<br> <br> Thanks for reading! <br> God bless!<br> #BhoxxHash</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b17abf9bb227" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DataTables Library ( Mobile & Tablet ) Responsive View Fix]]></title>
            <link>https://medium.com/@raffyrepiso/datatables-library-mobile-tablet-responsive-view-fix-1889dfc16d4c?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1889dfc16d4c</guid>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[ajax]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[datatables]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 14:57:02 GMT</pubDate>
            <atom:updated>2025-10-30T14:57:02.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCAYPG-yi3pvgNCi" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>🧩 Problem Summary</h3><p>When using <strong>Bootstrap tabs</strong> with <strong>DataTables</strong>, the table inside a non-active tab doesn’t initialize correctly. As a result, the <strong>table header shrinks or misaligns</strong> once the tab becomes active — as shown in the photo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sh-sCQTTu7grSw6FR98new.png" /><figcaption>DataTable Thead Header Shrink when bootstrap tab switching.</figcaption></figure><h3>🔍 What I Tried</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2LQuH21aW5dmMyUa" /><figcaption>Photo by <a href="https://unsplash.com/@lukas_blass?utm_source=medium&amp;utm_medium=referral">visualsoflukas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I searched online (including AI-assisted responses), and most solutions suggested recalculating the table width or reinitializing the DataTable when switching tabs.</p><p>However, even after triggering the initialization on tab clicks, the issue persisted — the header still shrank when navigating between tabs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xthlYGNl1myVQPne" /><figcaption>Photo by <a href="https://unsplash.com/@silverkblack?utm_source=medium&amp;utm_medium=referral">Vitaly Gariev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>⚙️ My Approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5pLBEY4gBmn9OD8L" /><figcaption>Photo by <a href="https://unsplash.com/@jarl_schmidt?utm_source=medium&amp;utm_medium=referral">Jarl Schmidt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I implemented a custom function that triggers whenever a <strong>Bootstrap tab</strong> is clicked.<br> This function also checks for <strong>screen responsiveness</strong> — distinguishing between desktop and mobile/tablet views.</p><p>When a tab is activated, the script automatically:</p><p><strong>Reloads DataTable data</strong> to ensure proper rendering.</p><p><strong>Adjusts responsiveness</strong> based on screen size.</p><p>This combination finally solved the shrinking header issue — ensuring that all DataTables display correctly across <strong>desktop, tablet, and mobile devices</strong>.</p><h3>🧠 Implementation Example</h3><pre>&lt;script&gt;<br>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {<br>const tabButtons = document.querySelectorAll(&#39;#myTab button[data-bs-toggle=&quot;tab&quot;]&#39;);<br>// ✅ Restore last active tab from localStorage<br>const lastTab = localStorage.getItem(&#39;lastActiveTab&#39;);<br>if (lastTab) {<br>const triggerEl = document.querySelector(`#myTab button#${lastTab}`);<br>if (triggerEl) {<br>const tab = new bootstrap.Tab(triggerEl);<br>tab.show();<br>// Reload all DataTables to fix header alignment<br>$(&#39;#lostandf&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#foundtable&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#claimeditem&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#disposalitm&#39;).DataTable().ajax.reload(null, false);<br>}<br>}<br>// ✅ Save active tab and reload tables on tab switch<br>tabButtons.forEach(button =&gt; {<br>button.addEventListener(&#39;shown.bs.tab&#39;, function(event) {<br>localStorage.setItem(&#39;lastActiveTab&#39;, event.target.id);<br>$(&#39;#lostandf&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#foundtable&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#claimeditem&#39;).DataTable().ajax.reload(null, false);<br>$(&#39;#disposalitm&#39;).DataTable().ajax.reload(null, false);<br>});<br>});<br>});<br><br>// ✅ Screen size checker<br>function isMobileView() {<br>return window.matchMedia(&quot;(max-width: 768px)&quot;).matches;<br>}<br>// ✅ DataTable initialization<br>function initTables() {<br>const mobile = isMobileView();<br>// LOST ITEMS TABLE<br>let lostFoundTable = $(&#39;#lostandf&#39;).DataTable({<br>processing: true,<br>serverSide: true,<br>responsive: mobile,<br>scrollX: !mobile,<br>ajax: {<br>url: &#39;url&#39;,<br>type: &#39;POST&#39;,<br>dataSrc: function (json) {<br>if (!json || !json.data) return [];<br>return json.data.filter(item =&gt;<br>item.item_concerns &amp;&amp; item.item_concerns.toUpperCase() === &#39;LOST&#39;<br>);<br>}<br>},<br>columns: [<br>{ data: null, title: &#39;#&#39;, render: (d, t, r, m) =&gt; m.row + 1 },<br>{ data: &#39;item_name&#39;, title: &#39;ITEM NAME&#39; },<br>{ data: &#39;datefile&#39;, title: &#39;DATE LOST&#39; },<br>{ data: &#39;dpname&#39;, title: &#39;REPORTER&#39; },<br>{<br>data: &#39;img_uploaded_link&#39;,<br>title: &#39;ITEM&#39;,<br>render: data =&gt; data<br>? `&lt;div class=&quot;gallery&quot; style=&quot;display:flex;justify-content:center;align-items:center;&quot;&gt;<br>&lt;a href=&quot;${data}&quot; class=&quot;image-popup&quot;&gt;<br>&lt;img src=&quot;${data}&quot; style=&quot;width:50px;height:50px;object-fit:cover;border-radius:8px;border:1px solid #ccc;&quot;&gt;<br>&lt;/a&gt;<br>&lt;/div&gt;`<br>: `&lt;span style=&quot;color:#aaa;&quot;&gt;No Image&lt;/span&gt;`,<br>className: &#39;text-center align-middle&#39;<br>}<br>],<br>pageLength: 25,<br>lengthMenu: [[25, 100, 150, -1], [25, 100, 150, &quot;All&quot;]],<br>language: { emptyTable: &quot;⚠️ No lost items recorded.&quot; },<br>drawCallback: function () {<br>initGalleryInTable(this.api());<br>}<br>});<br>// (Other tables initialized similarly…)<br>}<br>document.addEventListener(&#39;DOMContentLoaded&#39;, function() {<br>initTables();<br>});<br>&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*u2qlEhhR8bV6LLUPcwBcZg.gif" /></figure><h3>✅ Conclusion</h3><p>To fix the <strong>shrinking DataTable header</strong> issue when using <strong>Bootstrap tabs</strong>, especially with data loaded via API calls, use this approach:</p><pre>$(&#39;#tableID&#39;).DataTable().ajax.reload(null, false);</pre><p>Trigger this reload whenever a tab is clicked or activated.<br> This ensures the table recalculates column widths and displays properly in responsive mode.</p><p>Additionally, if your DataTable <strong>ID doesn’t display all columns</strong>, this reload also helps refresh and render the missing columns correctly once the tab becomes visible.</p><p><strong>💡 Note</strong></p><p>If your page only contains <strong>one DataTable</strong>, this extra step might not be necessary.<br> However, for <strong>multiple tables inside Bootstrap tabs</strong>, this method is highly recommended for smooth <strong>UI and UX responsiveness</strong> — across desktop, tablet, and mobile screens.</p><p>Thanks for reading!<br>Happy Coding!</p><p>Yes sir!, God Bless!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1889dfc16d4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Form — Publish first feature]]></title>
            <link>https://medium.com/@raffyrepiso/google-form-publish-first-feature-68f55d3cc432?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/68f55d3cc432</guid>
            <category><![CDATA[google-product]]></category>
            <category><![CDATA[google-feature]]></category>
            <category><![CDATA[google-forms]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[g-suite]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 02:15:33 GMT</pubDate>
            <atom:updated>2025-03-25T02:19:29.280Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google Form — Publish first feature</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hCLuoE0rdRzPB0L1" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>“Have you encountered issues with Google Forms or other Google products where add-ons fail to function, or where ‘publish’ features seem to be malfunctioning? If so, this information may be relevant.</p><p>Google has implemented changes regarding add-on authorization and usage. Their official documentation emphasizes that users must install and authorize add-ons before use.</p><p>However, a recent development requires an additional step: <strong>publishing the Google Form (or related document) before the add-on will operate</strong>.</p><p>This conclusion stems from observed behavior where Google Forms, and possibly other Google Workspace applications, <strong>necessitate a ‘publish’ action prior to the execution of associated add-ons</strong>. This added layer of control impacts the workflow of those relying on add-on functionality within Google’s ecosystem.”</p><p>I’m unsure of the precise date this change occurred, but it’s important to know that <strong>publishing is now necessary for add-ons to function correctly</strong>.</p><p>Thank you for reading.</p><p>God Bless!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68f55d3cc432" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Security Alert: WordPress Plugin Compromise — `wp-file-manager-pro` Injecting Unauthorized Code]]></title>
            <link>https://medium.com/@raffyrepiso/security-alert-wordpress-plugin-compromise-wp-file-manager-pro-injecting-unauthorized-code-6df8af7f17b6?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6df8af7f17b6</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <category><![CDATA[wordpress-plugins]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 01:13:23 GMT</pubDate>
            <atom:updated>2025-02-06T03:30:04.436Z</atom:updated>
            <content:encoded><![CDATA[<h2>🚨 Security Alert: WordPress Plugin Compromise — wp-file-manager-pro Injecting Unauthorized Code.</h2><p>✍️ Author: Team BoxxHash</p><p>🔒 Category: Website Security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MUXV4JxkWJ9rkJ0H" /><figcaption>Photo by <a href="https://unsplash.com/@setyaki?utm_source=medium&amp;utm_medium=referral">Irham Setyaki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>🔍 What Happened?</p><p>We recently discovered that the **WordPress plugin `wp-file-manager-pro`** was compromised and injected **unauthorized Google AdSense code** into our website. This malicious code used an **unknown AdSense publisher ID (`ca-pub-3838462999229532`)** to display unauthorized ads, potentially stealing revenue and exposing security vulnerabilities.</p><p>🚨 If you have `wp-file-manager-pro` installed on your WordPress site, take immediate action!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*6FCpqZpFLyIzw931-DtVNg.png" /><figcaption>Injected Google Adsense</figcaption></figure><p>🔎 How Did the Injection Occur?</p><p>Through investigation, we found that **`wp-file-manager-pro` contained a vulnerability** that allowed attackers to modify critical theme files, including `header.php`. The possible ways this injection happened include:</p><p>✅ 1. Exploiting File Management Capabilities</p><p>—The plugin provides **direct file management** in WordPress, allowing admins to modify core files.</p><p>— If exploited, attackers could use it to **modify theme files (`header.php`, `functions.php`)** and inject malicious code.</p><p>✅ 2. Unrestricted File Upload Vulnerability</p><p>— Some versions of `wp-file-manager-pro` allow **unauthenticated file uploads**, which can lead to **remote code execution**.</p><p>— Attackers may have uploaded **a malicious PHP script** to modify files and insert unauthorized ads.</p><p>✅ 3. Modifying Theme Files (`header.php`)</p><p>— The injected code was found inside `&lt;head&gt;` in `header.php`, possibly via **direct file modification or database injection**.</p><p>✅ 4. Admin Account Compromise via Plugin</p><p>— The plugin could have been used to create a **backdoor**, giving attackers unauthorized admin access.</p><p>✅ 5. Outdated Plugin Vulnerability</p><p>— If **`wp-file-manager-pro` was outdated**, it might have had **unpatched security flaws** that attackers exploited.</p><p><strong>🚀 How We Fixed the Issue</strong></p><p>🔹 1. Removed the Malicious Code</p><p>.— We manually **deleted the injected Google Ads script** from `header.php`.</p><p>🔹2. Disabled &amp; Deleted `wp-file-manager-pro`**</p><p>.— Immediately **removed the plugin** from our website.</p><p>🔹3. Reviewed WordPress Admin Users**</p><p>— Checked for **unauthorized admin accounts** and removed suspicious users.</p><p>— Reset all administrator passwords** and enforced **Two-Factor Authentication (2FA)**.</p><p>🔹 4. Checked File Integrity &amp; Plugin Logs**</p><p>— Manually reviewed **recent file modifications** in `/wp-content/plugins/` and `/wp-content/themes/`.</p><p>— Looked at the **plugin’s database records** for unauthorized changes.</p><p>🔹5. Restricted File Upload Permissions**</p><p>— Implemented **server-side file validation** to prevent arbitrary PHP file uploads.</p><p>— Ensured **only specific file types (e.g., images, PDFs) could be uploaded**.</p><p>🔹6. Reported the Plugin to WordPress.org**</p><p><em>— Submitted a **security report** to **WordPress Plugin Review Team**.</em></p><p><em>.— Contacted **Google AdSense** to report unauthorized usage of `ca-pub-3838462999229532`.</em></p><p><strong>📌 What This Means for WordPress Users</strong></p><ul><li>If you are using `wp-file-manager-pro`, **uninstall it immediately** and scan your site for malware.</li><li>**Unauthorized ads may redirect your traffic or steal revenue**.</li><li>**Ensure all plugins are updated** and remove any **suspicious or unused plugins**.</li></ul><p><strong>🛡️ Preventing Future Security Issues</strong></p><p>✅ 1. Avoid Untrusted Plugins</p><p>— Download plugins **only from WordPress.org** or **trusted developers**.</p><p>✅2. Disable Direct File Editing</p><p>— Add this to `wp-config.php` to **prevent file modification via the admin panel:</p><p><em>```php</em></p><p><em>define(‘DISALLOW_FILE_EDIT’, true);</em></p><p><em>define(‘DISALLOW_FILE_MODS’, true);</em></p><p><em>```</em></p><p>✅ 3. Monitor User Activity**</p><p>— Install **activity log plugins** to track admin login attempts and file changes.</p><p>✅ 4. Restrict File Upload Permissions**</p><p>— Allow uploads **only for trusted users** and enforce **strict file type validation**.</p><p><strong>🚀 Final Thoughts</strong></p><p>This incident highlights **why it’s crucial to monitor WordPress plugins** for security risks. Attackers often target **vulnerable plugins** to **inject malicious code, steal data, or hijack revenue**.</p><p>🔹 Have you used `wp-file-manager-pro`?</p><p>🔹 Noticed unusual ads or security issues?</p><p>🔒 Security Team : BoxxHash</p><p>Reference:</p><p><a href="https://www.wordfence.com/blog/2024/01/high-severity-arbitrary-file-upload-vulnerability-patched-in-file-manager-pro-wordpress-plugin/">High Severity Arbitrary File Upload Vulnerability Patched in File Manager Pro WordPress Plugin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6df8af7f17b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elementor Becomes the Element of Surprise: Security Vulnerabilities.]]></title>
            <link>https://medium.com/@raffyrepiso/elementor-becomes-the-element-of-surprise-security-vulnerabilities-399675294660?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/399675294660</guid>
            <category><![CDATA[wordpress-plugins]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[elementor-wordpress]]></category>
            <category><![CDATA[cybersecurity-awareness]]></category>
            <category><![CDATA[elementor-pro]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Sat, 25 Jan 2025 09:08:08 GMT</pubDate>
            <atom:updated>2025-01-25T09:08:08.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fRn3pXNEe6LLZ8eh" /><figcaption>Photo by <a href="https://unsplash.com/@maxwbender?utm_source=medium&amp;utm_medium=referral">Max Bender</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Late 2023, a Blog Post about Elementor’s Critical Vulnerability Affected 5+ Million Websites</p><p>I came across a blog post in late 2023 that highlighted a critical vulnerability in Elementor, a popular WordPress plugin, affecting over 5 million websites. I took a closer look after a recent attack on our server, where malicious code was injected, and the attack seemed to resemble the issues described in the post.</p><figure><img alt=".htaccess — malicious code affected" src="https://cdn-images-1.medium.com/max/522/1*6yxzXxq4uSfc_kV-4mSEPg.png" /></figure><p>Code:</p><p>&lt;FilesMatch “.(py|exe|php)$”&gt;<br> Order allow,deny<br> Deny from all<br>&lt;/FilesMatch&gt;<br>&lt;FilesMatch “^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php|wp-l0gin.php|wp-theme.php|wp-scripts.php|wp-editor.php|mah.php|jp.php|ext.php)$”&gt;<br> Order allow,deny<br> Allow from all<br>&lt;/FilesMatch&gt;</p><p>Surprisingly!</p><p>This configuration is part of an Apache server .htaccess file, which is used to control access to certain files based on patterns. Let me break it down:</p><p>First &lt;FilesMatch “.(py|exe|php)$”&gt;<br>Purpose: This section matches files with extensions .py, .exe, or .php.<br>Order allow,deny: This directive specifies the order in which rules are applied. In this case, it first allows access and then denies, which means the default action is to allow unless specified otherwise.<br>Deny from all: This line denies access to all users (from all IP addresses) for any file that matches the pattern (i.e., .py, .exe, or .php files).<br>This effectively blocks access to scripts and executable files that are sensitive and should not be directly accessed from a browser.</p><p>Second &lt;FilesMatch “^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php|wp-l0gin.php|wp-theme.php|wp-scripts.php|wp-editor.php|mah.php|jp.php|ext.php)$”&gt;<br>Purpose: This section targets specific PHP files that are explicitly listed. These files are allowed for access, regardless of whether they are PHP scripts.<br>Order allow,deny: Again, the rules are applied in the same order — first, allow access and then deny it.<br>Allow from all: This line allows all users (from all IP addresses) to access the listed PHP files.<br>These files could be important application files or entry points (e.g., wp-login.php is the login page for WordPress), and they are explicitly allowed despite the general blocking of .php files in the first section.</p><p>Then here’s the affected directories and subdirectories in our server.</p><figure><img alt=".htaccess" src="https://cdn-images-1.medium.com/max/353/1*Kpep6152hHyvqj2Q8QZC5Q.png" /></figure><p>When i saw this i was like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*IIQDrLVD70yaDV7x.gif" /></figure><p>And Guess what? Our server was recently affected by a serious issue, and it all came down to code execution vulnerabilities.</p><p>What’s most interesting (and alarming) about this is that there was a way for attackers to essentially “open a backdoor” or create a “passport” to access our server.</p><p>We had no idea at first, but after some serious digging, we eventually found out what happened.</p><p>I started by doing a thorough check of our directories and subdirectory files, and I have to say, I was amazed (and a little shocked) at what I discovered. It was a lot to handle, but after some persistence, we managed to stop the issue. However, the journey to understanding why we were experiencing this took much longer than expected. We only figured it out after conducting some research — and that’s when I found an incredibly insightful blog post.</p><p><strong>The Vulnerability in Elementor</strong><br>The post I came across was about a critical vulnerability in Elementor, a popular WordPress plugin. The vulnerability in question was an authenticated arbitrary file upload issue that could affect websites with certain user permissions. Specifically, it allowed accounts with permissions to edit posts — such as a Contributor — to upload arbitrary files, including PHP files. This could lead to remote code execution (i.e., an attacker could run malicious code on the server, leading to full access or control).</p><p>The vulnerability was introduced in Elementor version 3.3.0 and was later fixed in version 3.18.2. It was assigned the CVE identifier CVE-2023–48777.</p><p><strong>How We Fixed It</strong><br>The issue stemmed from vulnerable code within Elementor’s handle_elementor_upload function. Essentially, the code allowed malicious files to be uploaded to the server without proper security checks, creating a potential attack vector.</p><p>Once I identified the issue, the solution was straightforward. I located the files that were saved into the temporary directory under the path:</p><blockquote>wp-content/uploads/elementor/tmp/</blockquote><p>From there, <strong>I deleted the files inside the tmp folder or the elementor folder itself, and boom! </strong>Our website was back to normal. It felt like a huge weight was lifted off our shoulders, and I was incredibly grateful for the blog post that led me to the solution.</p><p><strong>Key Takeaways and Lessons Learned</strong></p><p>This experience taught me some valuable lessons about website security, especially for WordPress users:</p><p><strong>Stay Updated with Plugins:</strong> Always check for updates to the plugins you’re using, particularly for high-traffic ones like Elementor. Security vulnerabilities can often be patched in newer releases, so it’s crucial to stay current to prevent attackers from exploiting these weaknesses.</p><p><strong>Regular Backups Are a Lifesaver: </strong>Thankfully, we had regular backups of our site and database. This made restoring our site fast and painless, saving us from a potential disaster. Backup your website and data regularly — it’s a small step that can save you a lot of headaches later on.</p><p><strong>Monitor Your Server Closely:</strong> This issue took us a while to uncover, but by monitoring the files and directories regularly, you can catch unexpected changes or strange uploads before they cause any serious damage.</p><p>As we’ve seen, Elementor has presented some surprising security challenges in 2024. In addition to the critical vulnerability we encountered, there were other notable issues. Here’s a list of six Elementor vulnerabilities that were discovered in 2024, all of which are rated as medium-level security threats.</p><p><strong>List of Six Elementor Vulnerabilities</strong></p><p><strong>Elementor Website Builder (CVE-2024–2117)</strong><br>Affects up to and including 3.20.2 — Authenticated DOM-Based Stored Cross-Site Scripting via Path Widget</p><p><strong>Elementor Website Builder Pro (and maybe free) (CVE-2024–2120)</strong><br>Affects up to and including 3.20.1 — Authenticated Stored Cross-Site Scripting via Post Navigation</p><p><strong>Elementor Website Builder Pro (CVE-2024–1521)</strong><br>Affects up to and including 3.20.1 — Authenticated Stored Cross-Site Scripting via Form Widget SVGZ File Upload<br>This vulenrability only affects servers running NGINX-based servers. Servers running Apache HTTP Server are unaffected.</p><p><strong>Elementor Website Builder Pro (CVE-2024–2121)</strong><br>Affects up to and including 3.20.1 — Authenticated Stored Cross-Site Scripting via Media Carousel widget</p><p><strong>Elementor Website Builder Pro (CVE-2024–1364)</strong><br>Affects up to and including 3.20.1 — Authententicated Stored Cross-Site Scripting via widget’s custom_id</p><p><strong>Elementor Website Builder Pro (CVE-2024–2781)</strong><br>Affects up to and including 3.20.1 — Authenticated DOM-Based Stored Cross-Site Scripting via video_html_tag<br>All six vulnerabilities are rated as medium level security threats and require contributor-level permission level to execute.</p><p>Reference:<br><a href="https://patchstack.com/articles/critical-vulnerability-in-elementor-affecting-5-million-websites/">https://patchstack.com/articles/critical-vulnerability-in-elementor-affecting-5-million-websites/</a></p><p><a href="https://www.searchenginejournal.com/elementor-vulnerability/503286/">https://www.searchenginejournal.com/elementor-vulnerability/503286/</a></p><p><a href="https://www.searchenginejournal.com/elementor-wordpress-plugin-hit-by-6-vulnerabilities/512566/">https://www.searchenginejournal.com/elementor-wordpress-plugin-hit-by-6-vulnerabilities/512566/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=399675294660" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Macbook Annoying App Popup  even already deleted Fixed]]></title>
            <link>https://medium.com/@raffyrepiso/macbook-annoying-app-popup-even-already-deleted-fixed-953010c10fcc?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/953010c10fcc</guid>
            <category><![CDATA[macbook]]></category>
            <category><![CDATA[macbook-repair-services]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[pop-up-blocker-error]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 06:19:28 GMT</pubDate>
            <atom:updated>2025-01-25T13:58:33.196Z</atom:updated>
            <content:encoded><![CDATA[<h2>Macbook Annoying App Popup. even already deleted Fixed</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rDgspyO0qVMNsyWEPNntg@2x.jpeg" /><figcaption>Photo by <a href="http://erikallen920.redbubble.com/">Erik Mclean</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you ever encounter or experience that after you uninstall a application in your Mac PC or laptop the applications show a popup that even you click dont not allow or allow it shows again and again.</p><p>If you encounter this means this post is for you.</p><p>Let’s start to know first what tool we will be using</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4MCXU_LJL7yz5zT1VY_OAA@2x.jpeg" /><figcaption>Photo by <a href="http://cgower.com/">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ol><li>Commandline or Terminal</li><li>2. Command Script and Functions sudo , rm -rf fun tions</li></ol><p>3. Full Command use</p><p>4. Application finding</p><p>5. Command or script execution</p><p>How to execute and use.</p><p>First open the terminal in your Mac , After you open the terminal next is to find the Applications directory using CD command after you found the Application directory view all the list of applications using L’s command it will show all the list of applications installed in your laptop.</p><p>Then just look all the applications. If the application that you want to remove is there even you already uninstall it.</p><p>Then the next step is to remove it via terminal</p><p>Note Warning!</p><p>Please double or tripple check the application that you want to delete because using this command will totally delete forever the application.</p><p>To permanently delete the application</p><p>Use sudo rm -rf name_of_application then press enter</p><p>This will ask a password.</p><p>Insert your mac password then press enter.</p><p>Then viola</p><p>The Application is finally deleted permanently</p><p>This part should be no more annoying popup of that application you encounter.</p><p>If you’ve ever uninstalled an application on your Mac only to see persistent pop-ups, this guide is for you. We’ll use the Terminal to completely remove any remnants of the application.</p><p>Tools Required:</p><ol><li>Terminal</li><li>Commands: `sudo`, `rm -rf`</li></ol><p>Steps to Execute:</p><ol><li>Open Terminal: Find it in your Applications or through Spotlight.</li><li>Navigate to Applications Directory:</li><li>Type `cd /Applications` and press Enter.</li></ol><p>List Installed Applications:</p><p>. — Use `ls` to display all applications in the directory.</p><p>4. Locate the Application:</p><p>. — Check if the application you want to remove is still listed.</p><p>5. Remove the Application:</p><p>. — Use the command `sudo rm -rf name_of_application`, replacing `name_of_application` with the actual name.</p><p>6. Enter Password:</p><p>. — You’ll be prompted for your Mac password; enter it and press Enter.</p><p>Warning:</p><p>Double-check the application name before executing the delete command, as this will permanently remove it.</p><p>Once completed, the annoying pop-ups should cease.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=953010c10fcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing CrowStrike BSOD ( Blue Screen Of Dead)]]></title>
            <link>https://medium.com/@raffyrepiso/fixing-crowstrike-bsod-blue-screen-of-dead-1f5e8554a3ec?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f5e8554a3ec</guid>
            <category><![CDATA[blue-screen-of-death-fix]]></category>
            <category><![CDATA[bsod-error]]></category>
            <category><![CDATA[crowdstrike]]></category>
            <category><![CDATA[bsod-crowdstrike]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 01:39:48 GMT</pubDate>
            <atom:updated>2024-07-30T01:39:48.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MJk1K1yg64lANeGq" /><figcaption>Photo by <a href="https://unsplash.com/@joshua_hoehne?utm_source=medium&amp;utm_medium=referral">Joshua Hoehne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Maybe you are one of the person who experience this bug. Out of now where when you are working calmly with no problem then suddenly your calm moods change it to something that you do not want to do instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ySS0V9j1CUlQN2Hc" /><figcaption>Photo by <a href="https://unsplash.com/@bermixstudio?utm_source=medium&amp;utm_medium=referral">Bermix Studio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>But do not worry you are not the only one who are experiencing it. A lot of companies, small and big business even air lines experience this bug.</p><p>Maybe you are also the IT Tech person in your company finding how to fix this issue. You go everywhere searching everywhere to find a solution to this problem. But unfortunately even you found the solution it takes alot of work. Why because according to retired windows developer <a href="https://www.youtube.com/@DavesGarage">Dave’s Garage</a>. This type of bug in the windows need a manual configuration fix.</p><p>Which it booting the windows system into <strong>safe mode</strong> then look this file in system32 &gt; drivers &gt; CrowdStrike find this C — .sys files then delete it. You may look for this photo for reference</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Me1VG2xVecr-icTGIqILMQ.png" /></figure><p>Then viola! Congratulation.</p><p>Hope this help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5e8554a3ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing hybrid approach of Online Data Saving to Combat Data Loss]]></title>
            <link>https://medium.com/@raffyrepiso/implementing-hybrid-approach-of-online-data-saving-to-combat-data-loss-ab24a1464573?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab24a1464573</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[attendance-system]]></category>
            <category><![CDATA[upload]]></category>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 03:48:53 GMT</pubDate>
            <atom:updated>2023-12-13T03:50:38.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YgDJ6vgFu95c9zIJ" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In our daily operations, we rely heavily on a time recording system that staffs QR code tapping at the guardhouse. While the system works seamlessly under normal circumstances, we encountered challenges when the internet connection wasn’t stable, leading to the failure of saving attendance data to the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xd4BQaOS1Qo0YaQ9" /><figcaption>Photo by <a href="https://unsplash.com/@elisa_ventur?utm_source=medium&amp;utm_medium=referral">Elisa Ventur</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Identifying the Challenge</strong>:</p><p>Upon investigation, we found that the intermittent internet connection was the culprit. The system itself functioned properly, but disruptions in connectivity impacted the data-saving process.</p><p><strong>The Solution:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RQjBEMXgDy5QZ2qW" /><figcaption>Photo by <a href="https://unsplash.com/@krakenimages?utm_source=medium&amp;utm_medium=referral">krakenimages</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To address this issue, I delved into finding a robust solution. After numerous trials and errors, I implemented an approach that involves saving data both in the database and directory folder. Here’s a snippet of the PHP code I used saving data into directory folder:</p><pre>// Get the upload directory<br>$upload_dir = wp_upload_dir();</pre><pre>&lt;?php </pre><pre>// Assuming you have a unique identifier or timestamp<br>$unique_identifier = time(); </pre><pre>$qrcodesa = $cstaffid;<br>$withtimes = $qrcodesa . &quot; &quot; . $combindatetime;</pre><pre>// Specify the file name and path<br>$file_path = $upload_dir[&#39;basedir&#39;] . &#39;/qrcodes_tap/_&#39;. $qrcodesa .&#39;_&#39;. $unique_identifier. &#39;.txt&#39;;</pre><pre>// Your data to be saved<br>$data_to_save = $cstaffid . &quot; - &quot; .$combindatetime;</pre><pre>// Save data to the file<br>file_put_contents($file_path, $data_to_save);</pre><pre>?&gt;</pre><p><strong>Breaking Down the Code:</strong></p><ol><li>$upload_dir = wp_upload_dir();: Retrieves the WordPress site&#39;s upload directory.</li><li>$unique_identifier = time();: Generates a unique timestamp for creating distinct filenames.</li><li>$qrcodesa = $cstaffid; $withtimes = $qrcodesa . &quot; &quot; . $combindatetime;: Gathers staff ID and combines it with the current date and time.</li><li>$file_path = $upload_dir[&#39;basedir&#39;] . &#39;/qrcodes_tap/_&#39;. $qrcodesa .&#39;_&#39;. $unique_identifier. &#39;.txt&#39;;: Defines the file path with a unique name.</li><li>$data_to_save = $cstaffid . &quot; - &quot; .$combindatetime;: Prepares the data to be saved.</li><li>file_put_contents($file_path, $data_to_save);: Saves the data to the specified file.</li></ol><p><strong>Conclusion:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q3QyvvQ80K9y5Etf" /><figcaption>Photo by <a href="https://unsplash.com/@lucabravo?utm_source=medium&amp;utm_medium=referral">Luca Bravo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This innovative approach ensures that even in scenarios where the internet is unreliable, essential data is stored, providing a fail-safe mechanism. By combining both local and online storage, we’ve mitigated the risk of data loss during internet instability.</p><p>Feel free to adapt and implement this solution in your projects, and may it prove as beneficial for you as it has for us.</p><p>Thank you for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab24a1464573" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Select2: Resolving Search Issues]]></title>
            <link>https://medium.com/@raffyrepiso/troubleshooting-select2-resolving-search-issues-1f5480e893b7?source=rss-a9a6d011c72f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f5480e893b7</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[select2]]></category>
            <category><![CDATA[jquery]]></category>
            <dc:creator><![CDATA[Raffy Repiso]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 06:44:08 GMT</pubDate>
            <atom:updated>2023-12-04T06:44:08.495Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6ybCAKPdYWAU6kpy" /><figcaption>Photo by <a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;utm_medium=referral">James Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Are you frustrated by Select2’s search functionality not working as expected?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aJ06u_oCyQYoRq5P" /><figcaption>Photo by <a href="https://unsplash.com/@hhh13?utm_source=medium&amp;utm_medium=referral">傅甬 华</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You’re not alone! In this blog post, we’ll explore the common issue of searching inside Select2 and discover a solution that involves a hidden gem in the library.</p><p>Understanding Select2: Select2 is a versatile dropdown select library renowned for its ability to display select options with extensive customization features. Offering support for searching, tagging, remote data sets, and more, Select2 is a go-to choice for developers. To learn more, check out the full documentation <a href="https://select2.org/getting-started/introduction">here</a>.</p><p>The Search Dilemma: Despite its powerful features, some users encounter a peculiar issue with Select2’s search functionality, especially when dealing with arrays of data from a database. It can be frustrating when the search box fails to function as expected, leaving users bewildered.</p><p>The GitHub Repository Solution: Enter the Select2 GitHub repository, a treasure trove of insights and solutions contributed by the community. While exploring the repository, I stumbled upon a valuable code snippet shared by a user who faced a similar issue back in 2017. Let’s dissect the snippet to understand its functionality.</p><pre>$(document).ready(function() {<br>    $(&quot;#select2insidemodal&quot;).select2({<br>        dropdownParent: $(&quot;#myModal&quot;)<br>    });<br>});</pre><p><strong>Breaking Down the Code:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O_hWY9yehyPL6Tnc" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ol><li>$(document).ready(function() {...});: This ensures that the document is fully loaded before executing the enclosed code. It&#39;s a common practice in jQuery to ensure reliable functionality.</li><li>$(&quot;#select2insidemodal&quot;).select2({...});: This selects the element with the ID &quot;select2insidemodal&quot; and initializes Select2 on it. However, this alone didn&#39;t solve the search issue.</li><li>dropdownParent: $(&quot;#myModal&quot;): The magic happens here. By specifying the dropdown parent as the modal with the ID &quot;myModal,&quot; we guide Select2 on where to display the dropdown. This seemingly small addition proved to be the key to resolving the search problem.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VlXwWpy1uI2QySrU" /><figcaption>Photo by <a href="https://unsplash.com/@disruptxn?utm_source=medium&amp;utm_medium=referral">Desola Lanre-Ologun</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Implementation Success</strong>: After implementing this code snippet, the search functionality inside Select2 started working seamlessly. It serves as a testament to the collaborative nature of open-source communities, where users share solutions to common challenges.</p><p><strong>Conclusion</strong>: In troubleshooting issues with libraries like Select2, exploring community resources, such as GitHub repositories, can provide invaluable solutions. This experience reinforces the importance of active community engagement and how shared knowledge contributes to the success of open-source projects.</p><p>Thank you for reading and happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5480e893b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>