<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jorge Anaya&#39;s personal insight hub</title>
    <link>https://www.jorgeanaya.dev/en/</link>
    <description>Recent content on Jorge Anaya&#39;s personal insight hub</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>es-es</language>
    <lastBuildDate>Tue, 27 Jul 2021 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.jorgeanaya.dev/en/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Agnoster Persona</title>
      <link>https://www.jorgeanaya.dev/en/news/agnoster-persona/</link>
      <pubDate>Tue, 27 Jul 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/news/agnoster-persona/</guid>
      <description>I worked in a custom theme for oh my zsh, I use the agnoster theme as base and added some elements to spice up the console.
The idea behind this modification is to add &amp;ldquo;personality&amp;rdquo; to command line, sometimes you&#39;re working with several tabs and this customization allows to quickly identify which one is the one you&#39;re looking for and have fun in the process.
 Two line command prompt means more space for title, current path, git status, pyvenv Includes last command status and time of execution Change context title and color Change emoji in command prompt Based on Agnoster so it includes git status, pyvenv, nodejs, aws  Please take a look at the Agnoster Persona repo at GitHub  Agnoster Persona repository</description>
    </item>
    
    <item>
      <title>Docker prettify docker ps output</title>
      <link>https://www.jorgeanaya.dev/en/bin/docker-ps-prettify/</link>
      <pubDate>Sat, 01 Aug 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/docker-ps-prettify/</guid>
      <description>Everytime I run docker ps to list my containers, I find hard to understand where does the list start and where it ends:
 What the! ... the port, which one? ... I almost feel like I&amp;#39;m seeing the matrix  I have to say, after some time your eyes get used to and begin to do weird movements but at the end you begin to understand the output, of course it shouldn&#39;t be this way, so I found there are server ways to improve the command output, let&#39;s take a look.</description>
    </item>
    
    <item>
      <title>Docker network name is ambiguous</title>
      <link>https://www.jorgeanaya.dev/en/bin/docker-network-name-is-ambiguous/</link>
      <pubDate>Wed, 25 Mar 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/docker-network-name-is-ambiguous/</guid>
      <description>The Issue I was working on my Linux server, and I had to restart it. The docker instance was empty when the server came back, and it didn&#39;t show any container. I was in shock, and I thought I had lost my images and containers. After reviewing the system&#39;s health couldn&#39;t found a root cause, so I did a second restart 😅 and that&#39;s it the containers were back. Great! But when I tried to start my containers &amp;hellip;</description>
    </item>
    
    <item>
      <title>The simplest react app in 100 lines of code</title>
      <link>https://www.jorgeanaya.dev/en/bin/react-the-simplest-app/</link>
      <pubDate>Sun, 02 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/react-the-simplest-app/</guid>
      <description>The following code allow us to understand the way we can built a simple react app  Read the comments in the code  &amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html lang=&amp;#34;en&amp;#34;&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta charset=&amp;#34;UTF-8&amp;#34; /&amp;gt; &amp;lt;meta name=&amp;#34;viewport&amp;#34; content=&amp;#34;width=device-width, initial-scale=1.0&amp;#34; /&amp;gt; &amp;lt;meta http-equiv=&amp;#34;X-UA-Compatible&amp;#34; content=&amp;#34;ie=edge&amp;#34; /&amp;gt; &amp;lt;title&amp;gt;React JS Search Results&amp;lt;/title&amp;gt; &amp;lt;!--Add React and Babel References --&amp;gt; &amp;lt;script src=&amp;#34;https://unpkg.com/react@16/umd/react.development.js&amp;#34;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src=&amp;#34;https://unpkg.com/react-dom@16/umd/react-dom.development.js&amp;#34;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src=&amp;#34;https://unpkg.com/babel-standalone@6.26.0/babel.js&amp;#34;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body&amp;gt; &amp;lt;section&amp;gt; &amp;lt;!--Every React app must have what’s known as an entry point.</description>
    </item>
    
    <item>
      <title>FFmpeg concat videos without reencoding</title>
      <link>https://www.jorgeanaya.dev/en/bin/terminal-ffmpeg-concat-videos/</link>
      <pubDate>Sun, 12 Jan 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/terminal-ffmpeg-concat-videos/</guid>
      <description>To concatenate some videos using ffmpeg we need to provide a text file with the word file followed by the path to the media:
&amp;emsp;VideoList.txt
# We can use absolute or relative paths file &#39;/path/to/video1.mp4&#39; file &#39;/path/to/video2.mp4&#39; file &#39;/path/to/video3.mp4&#39;     &amp;emsp;Run
# If you use an absolute path to the file we need to add the parameter -safe 0 ffmpeg -f concat -safe 0 -i videolist.txt -c copy output.</description>
    </item>
    
    <item>
      <title>Terminal check if string has value</title>
      <link>https://www.jorgeanaya.dev/en/bin/terminal-check-string-value/</link>
      <pubDate>Sun, 05 Jan 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/terminal-check-string-value/</guid>
      <description>A basic task when you are scripting is to verify if a string is empty or not. We can do it using the following operators -n y -z
&amp;emsp;Check if empty
#!/bin/bash VAR=&#39;&#39; if [[ -z $VAR ]]; then echo &#34;String is empty.&#34; fi     &amp;emsp;Check if not empty
#!/bin/bash VAR=&#39;Linuxize&#39; if [[ -n $VAR ]]; then echo &#34;String is not empty.&#34; fi     REFERENCE: Linuxize</description>
    </item>
    
    <item>
      <title>SQL Studio run as remote user</title>
      <link>https://www.jorgeanaya.dev/en/bin/sql-ssms-sql-studio-as-remote-user-vpn/</link>
      <pubDate>Sun, 01 Sep 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/sql-ssms-sql-studio-as-remote-user-vpn/</guid>
      <description>Here is a tip to connect to SQL Server Management Studio using different windows credentials than the current logon, very useful when using VPN and requires using another user from another domain.
The key is to create a shortcut and use the command runas with parameters /user and /netonly to which we point out the SSMS exe file at the end we add the nosplash option.
&amp;emsp;SSMS run as
C:\Windows\System32\runas.exe /user:domain\username /netonly &#34;</description>
    </item>
    
    <item>
      <title>Using Git reset to undo the last commit</title>
      <link>https://www.jorgeanaya.dev/en/bin/git-reset-undo-last-commit/</link>
      <pubDate>Thu, 01 Aug 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/git-reset-undo-last-commit/</guid>
      <description>Sometimes we need to undo our last commit but we don&#39;t want to lose the changes we&#39;ve already made. There are several reasons, sometimes we made a commit prematurely or we forgot to add a file, etc.
WARNING: These commands assume we haven&amp;#39;t sync/publish the changes to a remote origin.  git reset: What it actually does is that moves the actual branch to X commit, so, using HEAD~1 or &amp;quot;HEAD^&amp;quot; (both are valid) we move the actual branch to the previous commit, example: &amp;emsp;git reset</description>
    </item>
    
    <item>
      <title>Clean recycle bin for all users</title>
      <link>https://www.jorgeanaya.dev/en/bin/windows-clean-recycle-bin-globally/</link>
      <pubDate>Sat, 20 Jul 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/windows-clean-recycle-bin-globally/</guid>
      <description>The Emergency 🔔 Notification, there is an emergency, you need to connect to a remote desktop to run some transact SQL queries, you do it, press F5 and &amp;hellip; 💥
An error occurred while executing batch. Error message is: There is not enough space on the disk....  You realize that there isn&#39;t enough space on C - nothing, zero, nada - It turns out that SSMS needs space to write some temp files on C:\Users\.</description>
    </item>
    
    <item>
      <title>Configure vscode remote development extension</title>
      <link>https://www.jorgeanaya.dev/en/bin/vscode-configure-remote-development-extension/</link>
      <pubDate>Mon, 01 Jul 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/vscode-configure-remote-development-extension/</guid>
      <description>Recently, vscode add a new extension Remote Development that allow us to connect to a remote project via SSH, Containers or WSL.
I&#39;m using it to connect to a local linux server using SSH.
  Install the extension Remote Development
  Configure SSH
To configure from Mac OS (~/rs_pub.id): &amp;emsp;
ssh-keygen -t rsa -b 4096 sh-copy-id jorgeanaya@host-fqdn-or-ip-goes-here    
  Configure the access SHIFT+CMD+P
 3.</description>
    </item>
    
    <item>
      <title>Use cmder as your default terminal in vscode</title>
      <link>https://www.jorgeanaya.dev/en/bin/vs-cmder-default-terminal/</link>
      <pubDate>Thu, 04 Apr 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/vs-cmder-default-terminal/</guid>
      <description>Cmder is a powerful console emulator that has a lot of features and brings some of the joy of working in terminal from macos/linux to windows. I&#39;ve been using it for a while and always forget how to configure in visual studio code, so, follow these two steps to configure as default terminal:
  Create a bat file in your Cmder folder &amp;emsp;vscode.bat
@echo off SET CurrentWorkingDirectory=%CD% SET CMDER_ROOT=C:\cmder CALL &#34;</description>
    </item>
    
    <item>
      <title>Command Line Commands for dotnet core</title>
      <link>https://www.jorgeanaya.dev/en/bin/dotnet-comandos-basicos-cli/</link>
      <pubDate>Thu, 28 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/dotnet-comandos-basicos-cli/</guid>
      <description>Command Line Commands for dotnet core
&amp;emsp;dotnet core
dotnet dotnet --version dotnet new [template]     &amp;emsp;Create a console app
dotnet new console // dotnet restore implicit dotnet build // dotnet restore and build implicit dotnet run     &amp;emsp;Create a solution with tests and references
dotnet new [template] dotnet new sln -n [name] mkdir Library cd Library dotnet new classlib dotnet add package System.Threading.Task.Extensions cd .</description>
    </item>
    
    <item>
      <title>ASP.NET attach your source code to published IIS website</title>
      <link>https://www.jorgeanaya.dev/en/bin/dotnet-aspnet-attach-source-code-to-published-iis-website/</link>
      <pubDate>Thu, 21 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/dotnet-aspnet-attach-source-code-to-published-iis-website/</guid>
      <description>When working with ASP.NET and developing websites focused to micro-services is a common approach to use a remote published website to test our project and all the interactions between micro-services, so to debug this, follow the next steps:
It&amp;#39;s a must that our source code match with the build of the published website to allow us debugging    To debug, attach our visual studio using Ctrl + Alt + P    In the window Attach to Process filter we can search by process name, for IIS is always w3wp.</description>
    </item>
    
    <item>
      <title>Map a folder to a drive in Windows</title>
      <link>https://www.jorgeanaya.dev/en/bin/windows-map-folder-to-drive/</link>
      <pubDate>Mon, 18 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/windows-map-folder-to-drive/</guid>
      <description>An old DOS command will allow us to map a directory to a drive in windows. This could be useful in many scenarios (). There are two commands that we can use:
subts &amp;emsp;subts
REM to create subst X: &#34;C:\Users\LuckyDeveloper\MyFolderToMap&#34; REM to delete subst X: /D      Drive name must be followed by a whitespace If the target folder has whitespace in its name, use quotes &amp;ldquo;\directory withe white spaces&amp;quot; Notice that at the end of the command we don&#39;t use the character &amp;ldquo;\&amp;rdquo;  ✍️ This command expects that the folder is always present, be aware of this so you don&#39;t impair the performance of your machine</description>
    </item>
    
    <item>
      <title>Swift basic concepts - Functions and Classes</title>
      <link>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-function-classes/</link>
      <pubDate>Thu, 07 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-function-classes/</guid>
      <description>&amp;emsp;Functions and Classes
// Functions func grettings_void() { print(&#34;Hello World!&#34;) } func grettings() - String { return &#34;Hello World!&#34; } func grettings(yourname:String) - String { return &#34;Hello \(yourname)&#34; } func sum(a:Int,b:Int) - Int { return a + b } print(grettings_void()) print(grettings()) print(grettings(nombre: &#34;Jorge&#34;)) print(sum(a: 2, b: 3)) // Classes class Person { var name : String var age : Int init(\_name:String, \_age:Int) { self.name = \_name self.age = \_age } func grettings() - String { return self.</description>
    </item>
    
    <item>
      <title>Swift basic concepts - Control and data</title>
      <link>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-control-data/</link>
      <pubDate>Wed, 06 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-control-data/</guid>
      <description>&amp;emsp;Control and Data
//  Switch let numericValue = 3 switch numericValue { case 1: print(&#34;The value is 1&#34;) case 2: print(&#34;The value is 2&#34;) case 3...10: // Using ranges print(&#34;The value is greater or equal to 3 but less than 10&#34;) default: print(&#34;The value is greater than 10&#34;) } let weekDays = &#34;Martes&#34; switch weekDays { case &#34;monday&#34;,&#34;wednesday&#34;,&#34;friday&#34;: print(&#34;Promo A&#34;) case &#34;tuesday&#34;,&#34;thursday&#34;: print(&#34;Promo B&#34;) case &#34;saturday&#34;: print(&#34;Promo C&#34;) default: print(&#34;</description>
    </item>
    
    <item>
      <title>Swift basic concepts - Variables</title>
      <link>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-variables/</link>
      <pubDate>Tue, 05 Mar 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/swift-basic-concepts-variables/</guid>
      <description>&amp;emsp;Variables
// Variable declaration var expressiveAssigment : String = &#34;Value&#34; print(expressiveAssigment) var expressive : String = &#34;&#34; expressive = &#34;Value&#34; print(expressive) var intuitive = &#34;Guest What?&#34; print(intuitive) // Contants let constantAssigment : String = &#34;Constant Value&#34; print(constantAssigment) let pi = 3.1416 print(pi) // Optionals var optionalString : String? = nil var optional : Int? = nil // How to work with optionals print(optional) // nil print(optional ?? 0) // Provide a default value print(optional as Any) // Explicit Cast to Any to avoid errors print(optional!</description>
    </item>
    
    <item>
      <title>Find elements inside NodeList using jQuery</title>
      <link>https://www.jorgeanaya.dev/en/bin/js-jquery-find-elements-inside-a-nodelist/</link>
      <pubDate>Sun, 03 Feb 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/js-jquery-find-elements-inside-a-nodelist/</guid>
      <description>Using jquery.find() we can find by element or selector. This is a use case where we have a variable with a NodeList object.
&amp;emsp;jquery.find()
// Get a list of elements and initialize with another function \$(items).find(&#34;.collapse-card&#34;).paperCollapse(); // Combine with each(Integer index, Element element) to explore its content. \$(items).find(&#34;.collapse-card&#34;).each( (i,e) = console.log(e));     References: https://api.jquery.com/find/
https://api.jquery.com/each/</description>
    </item>
    
    <item>
      <title>Responsive Image using the fluid-image trick</title>
      <link>https://www.jorgeanaya.dev/en/bin/css-responsive-image-fluid/</link>
      <pubDate>Sun, 03 Feb 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/css-responsive-image-fluid/</guid>
      <description>To achieve a responsive behavior in a web site requires working with several HTML elements, images are one of the most requested. The are several techniques, the most simple one and with 99% backward compatibility (I&#39;m looking to you IE 🤦‍♂️ ) is called Fluid Image, of course is not intended to solve all the problems, but it is a simple fix that works great most of the time.
&amp;emsp;Fluid image</description>
    </item>
    
    <item>
      <title>Watch your thoughts</title>
      <link>https://www.jorgeanaya.dev/en/bin/post-new-year-2019/</link>
      <pubDate>Wed, 02 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/post-new-year-2019/</guid>
      <description> Watch your thoughts, they become your words; watch your words, they become your actions; watch your actions, they become you.  Buda   As simple as this  </description>
    </item>
    
    <item>
      <title>Docker a quick guide</title>
      <link>https://www.jorgeanaya.dev/en/docs/docker-a-quick-guide/</link>
      <pubDate>Tue, 01 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/docs/docker-a-quick-guide/</guid>
      <description>This is a succintly guide to react</description>
    </item>
    
    <item>
      <title>How this blog was built</title>
      <link>https://www.jorgeanaya.dev/en/bin/post-how-this-blog-was-built/</link>
      <pubDate>Tue, 01 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/bin/post-how-this-blog-was-built/</guid>
      <description>Here is a list of the resources I&amp;#39;ve used to build this blog   HUGO - The world’s fastest framework for building websites  Built using HUGO. A very interesting framework that uses GO Language. In my humble opinion HUGO is versatile, rewarding and fun. It has a helpful community not as big a another frameworks but enough to help you not to get stuck.
 Logo  I appreciate the generosity, patience and creativity of MagMagnolia to create the Logo.</description>
    </item>
    
    <item>
      <title>Intro to Docker</title>
      <link>https://www.jorgeanaya.dev/en/docs/docker-a-quick-guide/docker-intro/</link>
      <pubDate>Tue, 01 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://www.jorgeanaya.dev/en/docs/docker-a-quick-guide/docker-intro/</guid>
      <description>Part 1.</description>
    </item>
    
  </channel>
</rss>