<?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 Nicolas Morales on Medium]]></title>
        <description><![CDATA[Stories by Nicolas Morales on Medium]]></description>
        <link>https://medium.com/@nicomor?source=rss-d5f83f9f7fe2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i2s7tsbBCyCdfUM2m_3kDw.jpeg</url>
            <title>Stories by Nicolas Morales on Medium</title>
            <link>https://medium.com/@nicomor?source=rss-d5f83f9f7fe2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:26:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nicomor/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[Uploading Angular application to Firebase hosting]]></title>
            <link>https://medium.com/@nicomor/uploading-angular-application-to-firebase-hosting-6899352567ec?source=rss-d5f83f9f7fe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6899352567ec</guid>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nicolas Morales]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 18:12:57 GMT</pubDate>
            <atom:updated>2020-06-30T18:12:57.138Z</atom:updated>
            <content:encoded><![CDATA[<h3>Log in to Firebase Console</h3><p>First, we’ll need a Firebase account. Make sure you get yours with your existing Google account, and access Firebase console at: <a href="https://console.firebase.google.com/">https://console.firebase.google.com/</a></p><h3><strong>Creating a Firebase project</strong></h3><p>Click on Add Proyect button to create a new Project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*sXliL1XHSTpI3brAyFSmzA.png" /></figure><p>Fill in the project name and click on continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7SogGqkRkUxprJ6zCeu5w.png" /></figure><p>Decide wether you’d require Google Analytics enabled or not and click Continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWR4DyqnREu8AJowMsoHCw.png" /></figure><p>Accept Google Analytics terms and confirm!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8g70uNcD1EmwJcyuNFdIBQ.png" /></figure><p>You should get a confirmation message and your project should be ready!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*tTX4naF74aZ7ko7NZsFSYw.png" /></figure><h3>Generate Configuration for Hosting</h3><p>Once your project is ready, check the hosting tab to configure your project hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*s8QAoVqoBGIetnmGy61SiQ.png" /></figure><p>Click on Start Button in the hosting home page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*psS7WmfLms7JgMge32ebGA.png" /></figure><p>Follow the required steps to install firebase hosting tools on your workstations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05ajQsH2zh4Yc2WqmC8_vA.png" /></figure><p>Login to Firebase using the <strong>firebase login </strong>command</p><p>Then init your project using <strong>firebase init</strong> command</p><p>Once prompted choose the Hosting option from the feature list, and hit enter to create the config files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1YLnghzrr5B9getql6Hjw.png" /></figure><p>Set up your project with the projects you’ve recently created on Firebase console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MeceI9f3qjEmVN8n8RYnww.png" /></figure><p>Project should not be set up with the firebase.json configuration file ready for first deployment.</p><p>First run the app locally to make sure it works:</p><p>&gt; ng serve</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JNyLkaxvPFRiCjA_JbfInQ.png" /></figure><p>Build project using the command:</p><pre>ng build — prod=”true”</pre><p>Static files should now be in the <strong><em>./dist </em></strong>path</p><p>We can see there’s a subdirectory on this path, so now, we must point our firebase.json file to this directory.</p><p>Make sure the hosting &gt; public attribute matches the path where angular is building the project. In this case : dist/ecommerce</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*h_l5ofMjiieKT5MpeckTAA.png" /></figure><p>Now we can try to deploy using <strong>firebase deploy </strong>command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6Jz2IMJDdH0lTQ6laa5oQ.png" /></figure><p>Your app should now be deployed and available to everybody!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVMmjOYRwH6mI8W1ZYQ2_g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6899352567ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing OpenCV 4 on MacOS]]></title>
            <link>https://medium.com/@nicomor/installing-opencv-4-on-macos-d0cc33e5618e?source=rss-d5f83f9f7fe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0cc33e5618e</guid>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Nicolas Morales]]></dc:creator>
            <pubDate>Thu, 28 May 2020 22:01:01 GMT</pubDate>
            <atom:updated>2020-05-28T22:01:01.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*Y3K79RFY40G4QxNxu1jXAg.png" /></figure><h4>Base OpenCV installation</h4><p>I’ve worked with OpenCV version 3 on Windows and Ubuntu in the past, and did a single install in OSx a couple of years ago.</p><p>If you landed here, you are probably working on a Mac based system, and looking forward to work with OpenCV. If this is the case, check my previous article on <a href="https://medium.com/@nicomor/installing-homebrew-on-mac-os-61d7dc712509">getting HomeBrew installed on your system</a>.</p><p>After getting HomeBrew installed, our next step on this journey is to get the latest version of OpenCV. OpenCV 4 was released on late 2018, and provides some new features mainly related to deep learning.</p><p>We are not particularly interested in those features (for now), but we’ll just get the latest version so we don’t need to struggle in the future with updates.</p><h4>Recommended read</h4><p>There’s a great site by <a href="https://www.pyimagesearch.com/author/adrian/"><strong>Adrian Rosebrock</strong></a><em> </em>where you can find tons of cool examples of different applications of OpenCV, as well as installation instructions.</p><p>For this specific scenario, as we are just focusing on Java, we’ll follow the simple instructions from the following site (<a href="https://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html">https://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html</a>), to modify HomeBrew formula for OpenCV, and install it will Java compatibility.</p><h4>Installation Process</h4><p>To install OpenCV (with Java support) through Homebrew, you need to edit the <em>opencv</em> formula in Homebrew, to add support for Java: brew edit opencv In the text editor that will open, change the line: -DBUILD_opencv_java=OFF to -DBUILD_opencv_java=ON .</p><p>Also, make sure you have <strong>ant </strong>installed in your system, if not, install it with HomeBrew as well.</p><p>brew install ant</p><p>After modifying the brew command, and installing ant, you can effectively install OpenCV: brew install --build-from-source opencv</p><p>Installation will take some minutes. Don’t panic!</p><p>The brew install command has built OpenCV from the source code (which can actually be found at <a href="https://github.com/opencv/opencv">GitHub</a>). Note OpenCV is developed in C++, but they offer lots of wrappers in different languages, even for Mobile and for the Web Browsers. This build process will generate both the wrapper library .jar file, and the native dylib library, that we’ll need to reference from our development environment.</p><p>After the installation of OpenCV is done, you’ll find the needed files in the path below:</p><p>/usr/local/Cellar/opencv/4.3.0_3/share/java/opencv4</p><ul><li>note this path will vary for different OpenCV versions</li></ul><h4>Setting up the IDE</h4><p>I’ll be using Eclipse for Development. So I’ll need to create a new Java Project from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-o-dqBsQ5kzRwEIFw3KlZA.png" /><figcaption>Creating new Java Project</figcaption></figure><p>Then create an empty main class.</p><p>Right click the Project name on the project explorer, and click on properties.</p><p>Go to Java Build Path on the left menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dam0QhI3lTaauHz53b7kOA.png" /></figure><p>Click on Add External JARs button on the right side, and browser for the jar file generated during the OpenCV Build explained above.</p><p>Pick the Jar file and Click Open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eqh6wRIuYHWdD1b0mdPjjw.png" /></figure><p>Now click on the arrow on the left of the jar you’ve just imported, then click on native Library location, and finally click on Edit… button on the right side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIjb3SZmcijkldKxYpSHnQ.png" /></figure><p>In the Dialog box, type in the path for the dylib file</p><blockquote>/usr/local/Cellar/opencv/4.3.0_3/share/java/opencv4</blockquote><p>Finally Click on Apply and Close.</p><p>You are done with importing OpenCV into your Java Project.</p><p>You must now initialise the Library by using the following command before using any OpenCV Function.</p><blockquote>System.<em>loadLibrary</em>(Core.<strong><em>NATIVE_LIBRARY_NAME</em></strong>);</blockquote><p>This Core library comes from Open CV, so if you already have the .jar into your project, it will automatically try to import it from org.opencv.core.Core;</p><p>A simple check will be creating an <a href="https://en.wikipedia.org/wiki/Identity_matrix">identity matrix</a> and dumping it out to the console.</p><blockquote>Mat mat = Mat.<em>eye</em>(3,3, CvType.<strong><em>CV_8UC1</em></strong>);</blockquote><blockquote>System.<strong><em>out</em></strong>.println(“mat = “ + mat.dump() );</blockquote><p>You should get the following output in the terminal:</p><blockquote>mat = [ 1, 0, 0;</blockquote><blockquote>0, 1, 0;</blockquote><blockquote>0, 0, 1]</blockquote><p>This means you are done with OpenCV setup, and you can start developing your Computer Vision based application in Java :D.</p><p><strong>Important:</strong></p><p>Make sure you are compiling and executing your new project with the same JDK version the Library was compiled, otherwise you may run into JRE compatibility issues. (i.e. Library was compiled with a newer JRE, so your new Project won’t be able to use openCV’s functions from the generated Jar file.</p><p>Hopefully we can get hands-on into some real-world examples soon!</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0cc33e5618e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing HomeBrew on Mac OS]]></title>
            <link>https://medium.com/@nicomor/installing-homebrew-on-mac-os-61d7dc712509?source=rss-d5f83f9f7fe2------2</link>
            <guid isPermaLink="false">https://medium.com/p/61d7dc712509</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[mac-os-x]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[homebrew]]></category>
            <dc:creator><![CDATA[Nicolas Morales]]></dc:creator>
            <pubDate>Mon, 25 May 2020 14:58:11 GMT</pubDate>
            <atom:updated>2020-05-25T14:58:11.243Z</atom:updated>
            <content:encoded><![CDATA[<h4>The apt-like package manager on OS x</h4><h4>What is HomeBrew?</h4><p>HomeBrew is a Terminal based package manager for Mac OS.</p><p>If you, as me, have transitioned from any of the popular Linux Distros, such as Debian or Ubuntu, this will provide an “apt-like” interface for installing packages in your Mac OS System.</p><p>You can find more information on HomeBrew in their website:</p><p><a href="https://brew.sh/index_es">&gt; https://brew.sh/</a></p><h4>Installing HomeBrew</h4><p>Within the first sections of the site, you’ll find a terminal command that will actually download the necessary installation files and execute the installation in your system.</p><p><strong>Note:</strong> There are some prerequisites for installing HomeBrew in your Mac OS Computer.</p><p>Requirements can be found here: <a href="https://docs.brew.sh/Installation#macos-requirements">https://docs.brew.sh/Installation#macos-requirements</a>. Essentially, you’ll need a base install plus the Command Line Tools (CLT) fir XCode.</p><ul><li>Command Line Tools (CLT) for Xcode: xcode-select --install, <a href="https://developer.apple.com/downloads"><strong>developer.apple.com/downloads</strong></a> or <a href="https://itunes.apple.com/us/app/xcode/id497799835"><strong>Xcode</strong></a> <a href="https://docs.brew.sh/Installation#3"><strong>3</strong></a></li></ul><p>The terminal command looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9QrBtAsDAPYX3JJLs8FIA.png" /><figcaption>HomeBrew download + install command</figcaption></figure><p>Just copy and paste in a terminal and hit enter.</p><p>This will require you to input your admin password in order to get everything installed.</p><p>Download and Installation process may take a while, and you’ll be prompted with the following message when done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gq21SC25B7Lignkl3OFHvQ.png" /><figcaption>Installation succesful prompt</figcaption></figure><p>You are done now! So you can now start installing packages using the brew command.</p><p>As any other command line utility, you may need some help to get started, so here are a couple of handy commands in the Homebrew cheatsheet.</p><p><a href="https://devhints.io/homebrew">Homebrew cheatsheet</a></p><p>In upcoming articles, we’ll see how we use HomeBrew to install specific packages and tools.</p><p>Hope this simple instructions helped you to get started!</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61d7dc712509" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>