<?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 David Hernández on Medium]]></title>
        <description><![CDATA[Stories by David Hernández on Medium]]></description>
        <link>https://medium.com/@davidhernandeze?source=rss-9fd0e5b3cc68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WNBi3VZKbbs8iVzz.</url>
            <title>Stories by David Hernández on Medium</title>
            <link>https://medium.com/@davidhernandeze?source=rss-9fd0e5b3cc68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:20:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidhernandeze/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[Use Storage inside the /public directory on Laravel]]></title>
            <link>https://davidhernandeze.medium.com/use-storage-inside-the-public-directory-on-laravel-961829baafc0?source=rss-9fd0e5b3cc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/961829baafc0</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[David Hernández]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 02:46:15 GMT</pubDate>
            <atom:updated>2021-04-29T02:46:15.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*Zq6Agy3G5qi0E1AjMZYCIQ.jpeg" /></figure><p>This little article is meant to help you if are on the need to use Laravel’s Storage amazing API on the /public directory. One common use case is when you need to be able to have version control over template files that can be downloaded by users. Lets begin!</p><p>First we need to setup our new static disk onconfig/filesystems.php. I recommend not to point your new disk to the /public root, instead point it to a specific folder like /public/static</p><pre>...<br>&#39;<em>static</em>&#39; =&gt; [<br>    &#39;driver&#39; =&gt; &#39;local&#39;,<br>    &#39;root&#39; =&gt; public_path(&#39;<em>static</em>&#39;),<br>    &#39;url&#39; =&gt; env(&#39;APP_URL&#39;).&#39;/static&#39;,<br>    &#39;visibility&#39; =&gt; &#39;<em>public</em>&#39;,<br>],<br>...</pre><p>With that simple config change, we are now able to use Laravel’s Storage functions on any file under /public/static directory:</p><pre><em>return </em>Storage::disk(&#39;<em>static</em>&#39;)-&gt;download(&#39;templates/example.csv&#39;);</pre><p>And that’s all!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=961829baafc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel: query is not being execute]]></title>
            <link>https://davidhernandeze.medium.com/laravel-query-is-not-being-execute-f733e7b381ad?source=rss-9fd0e5b3cc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/f733e7b381ad</guid>
            <category><![CDATA[error]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[David Hernández]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 19:24:14 GMT</pubDate>
            <atom:updated>2020-09-23T19:24:14.146Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all<strong> Check if you are under a transaction</strong>, in my case I was running queries inside a transaction. The transaction was in a parent function so it wasn’t too evident that I was working inside one(not all the code was written by me). In top of that I was using dd() to stop execution because I was debugging a long command, so I wanted to stop the command in some points to test specific functionalities. So basically I was never running DB::commit();</p><p>I write this article because I tried a lot of stupid <em>solutions </em>and googled a lot of sentences in order to solve such a silly mistake, and who knows, maybe I will google this <em>issue</em> again, so I will have this article instead of wasting 2 hours of my time (:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f733e7b381ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use special characters on Windows without change keyboard language]]></title>
            <link>https://davidhernandeze.medium.com/how-to-use-special-characters-on-windows-without-change-keyboard-language-fc030d8698ee?source=rss-9fd0e5b3cc68------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc030d8698ee</guid>
            <category><![CDATA[autohotkey]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[keyboard-layout]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[David Hernández]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 02:10:13 GMT</pubDate>
            <atom:updated>2019-11-05T16:37:56.937Z</atom:updated>
            <content:encoded><![CDATA[<p>One year ago, I purchased a new laptop on the internet and I was unable to choose my keyboard language (not a big deal), I set up my new Windows with the ability to change my keyboard language using win+space.</p><p>I started using the English keyboard to work (it is very good to code), but I stilled using my Spanish keyboard to chat with friends and family since I was unable to input special characters like <strong>¿ </strong>or <strong>á</strong>. This was a good solution at that time, but I always felt uncomfortable changing my keyboard language a lot of times during the day.</p><p>One year later, I reinstalled Windows (what a surprise eh) and I thought that it was a good moment to improve my day to day. So I did some research about how to extend my keyboard functionality to use both languages in one keyboard layout.</p><p>My research led me to Auto Hot Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*-acI3PCkWtMBw2RetRNLiA.png" /></figure><blockquote>AutoHotkey is a free, open-source scripting language for Windows that allows users to easily create small to complex scripts for all kinds of tasks such as: form fillers, auto-clicking, macros, etc.</blockquote><p>The main goal is to create a script that allows us to write special characters without a Spanish keyboard active.</p><p>Once AHK is installed, the first step is to create a new AHK script:</p><ol><li>Right-click on Desktop or any location.</li><li>Choose new</li><li>Click on AutoHotKey Script</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*0C080mY7KTGpGP88r496oQ.png" /></figure><p>Then we need to right-click on the new file and click on <strong>Edit script.</strong></p><p>Now we will see some code on the script, we can delete it without a problem.</p><p>One of the main functionalities on AHK is to replace strings when we are typing, it is called <strong>hotstrings</strong>, for example, if we include this line</p><pre><strong>::</strong>btw<strong>::</strong>by the way</pre><p>and run the script (right-click on the file — Run script) we will be able to type <em>btw</em> and when we press tab, we will get the <em>by the way </em>text on wherever program that we are using.</p><p>So, after some research, I found a way to simulate the way we type special characters like <strong>á, ñ, </strong>or <strong>¿</strong>. I added some extra symbols and include all my needed special characters resulting in the following script</p><blockquote>:?*:]n::ñ</blockquote><blockquote>:?*:]a::á</blockquote><blockquote>:?*:]e::é</blockquote><blockquote>:?*:]i::í</blockquote><blockquote>:?*:]o::ó</blockquote><blockquote>:?*:]u::ú</blockquote><blockquote>:?*:]?::¿</blockquote><p>The <strong>?</strong> symbol indicates that doesn’t matter what is before the hotstring and the <strong>*</strong> allows to fire the text replacement without press tab or enter. I choose <strong>] </strong>as my prefix character to fire the script since is not very common to use the <strong>] character </strong>before a letter, and because it feels familiar to me but you can choose any symbol you want.</p><p>When the script is running I’m able to input <strong>á </strong>typing <strong>]a </strong>or <strong>ñ </strong>typing <strong>]n.</strong></p><p><strong>IT WORKS!</strong></p><p>Finally we can setup the script to run when the system starts.</p><ol><li>Press Windows + R and type</li></ol><p>%appdata%\Microsoft\Windows\Start Menu\Programs\Startup</p><p>2. Create a shortcut to your script under the startup folder.</p><h4>I hope this article helps another person using multiple keyboards layouts!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc030d8698ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>