<?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 Iván Mosquera Paulo on Medium]]></title>
        <description><![CDATA[Stories by Iván Mosquera Paulo on Medium]]></description>
        <link>https://medium.com/@ivmos?source=rss-d0f51c3af46b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hLD3V0IJcX3Xii7FHGJDxQ.jpeg</url>
            <title>Stories by Iván Mosquera Paulo on Medium</title>
            <link>https://medium.com/@ivmos?source=rss-d0f51c3af46b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:05:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ivmos/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[Exploring Telnet: The Retro Tech Still Offering Fun Surprises]]></title>
            <link>https://medium.com/@ivmos/exploring-telnet-the-retro-tech-still-offering-fun-surprises-2526c30d822e?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2526c30d822e</guid>
            <category><![CDATA[telnet]]></category>
            <category><![CDATA[retro]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Fri, 19 Jul 2024 11:10:01 GMT</pubDate>
            <atom:updated>2024-07-22T21:18:04.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*cLQTSZdGT255HP1M" /></figure><p>In the fast-paced world of modern computing, where sleek interfaces and seamless connectivity reign supreme, it’s easy to forget about the old tools that paved the way for today’s digital marvels. One such tool is Telnet. Though it may seem antiquated now, Telnet has a storied history and even today, offers some unexpectedly fun uses that you can enjoy right from your keyboard.</p><p>See related video in my Youtube channel.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2-XLmE9UB0c%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2-XLmE9UB0c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2-XLmE9UB0c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/29a7c46a153dbdc805cd749597db3278/href">https://medium.com/media/29a7c46a153dbdc805cd749597db3278/href</a></iframe><h4>What is Telnet?</h4><p>Telnet, short for “TELetype NETwork,” is one of the earliest protocols used for accessing remote computers over the internet or a local network. Telnet allows users to connect to remote servers and interact with them as if they were local, using a text-based interface. Before graphical user interfaces (GUIs) became the norm, Telnet was a fundamental tool for system administrators, developers, and anyone needing remote access to a computer.</p><p>Telnet operates on the client-server model. A Telnet client connects to a Telnet server via the command line or a terminal emulator, and once connected, users can execute commands on the remote machine. It was a revolutionary tool in its time, but it lacks the security features of more modern protocols like SSH (Secure Shell). As a result, Telnet has largely fallen out of favour for secure communications but remains a fascinating relic of the early internet.</p><h4>Two Fun Uses of Telnet</h4><p>Despite its outdated nature, Telnet can still provide a surprising amount of entertainment. Here are two fun and nostalgic uses of Telnet that you can try out:</p><p>1. Watch Star Wars in ASCII Art</p><p>One of the most delightful Easter eggs hidden on the internet is the ability to watch “Star Wars: Episode IV — A New Hope” rendered entirely in ASCII art via Telnet. This project, created by Simon Jansen, captures the magic of the iconic film using nothing but characters from the ASCII table.</p><p><strong>How to Watch:</strong></p><ol><li>Open your terminal or command prompt.</li><li>Type the following command and press Enter: telnet towel.blinkenlights.nl</li></ol><p>You will be greeted with a surprisingly detailed rendition of the Star Wars universe, complete with scrolling text and iconic scenes-all crafted with ASCII characters. It’s a testament to the creativity of early internet enthusiasts and a fun way to revisit a classic film.</p><p>2. Relive the Max Headroom Phenomenon</p><p>Max Headroom, the iconic 1980s character known for his glitchy, computer-generated appearance and stuttering speech, became a symbol of futuristic tech and cyberpunk aesthetics. While Max Headroom’s origins lie in TV, movies, and commercials, you can experience a bit of this retro-futuristic character through Telnet.</p><p><strong>How to Connect:</strong></p><ol><li>Open your terminal or command prompt.</li><li>Type the following command and press Enter: telnet 1984.ws</li></ol><p>You’ll be greeted with a Max Headroom emulation that pays homage to the quirky and groundbreaking character. It’s a fun way to dive into the retro-futuristic world that captivated audiences in the 80s.</p><h4>How to Exit Telnet</h4><p>While exploring Telnet is fun, knowing how to exit the session is equally important. Exiting Telnet sessions can vary slightly depending on the client and the server configuration, but here are the general steps:</p><ol><li><strong>Use the escape sequence</strong>:</li></ol><ul><li>Typically, you can use the escape sequence Ctrl+] (hold Ctrl and press ]). This should bring you to the Telnet command prompt (telnet&gt;).</li></ul><ol><li><strong>Close the connection</strong>:</li></ol><ul><li>Once at the Telnet command prompt, type quit or exit and press Enter. This should close the Telnet session and return you to your original command prompt.</li></ul><ol><li><strong>Alternative method</strong>:</li></ol><ul><li>If the above methods don’t work, simply closing the terminal or command prompt window will also terminate the Telnet session.</li></ul><ol><li><strong>If your console is weird after telnet, run “reset”</strong></li></ol><h4>Conclusion</h4><p>Telnet may no longer be the go-to tool for remote computing, but its legacy lives on in unexpected ways. Whether you’re an old-school tech enthusiast or just looking for a bit of nostalgic fun, exploring Telnet can be a rewarding experience. From watching Star Wars in ASCII art to reliving the Max Headroom phenomenon, these hidden gems highlight early internet culture&#39;s enduring creativity and innovation. So, fire up your terminal, connect to a Telnet server, and take a step back in time you might just be surprised by what you find. And when you’re ready to log off, remember those simple steps to exit. Happy exploring!</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2024/07/19/exploring-telnet-the-retro-tech-still-offering-fun-surprises/"><em>http://ivanmosquera.net</em></a><em> on July 19, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2526c30d822e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Steganography with Hidden Unicode Characters]]></title>
            <link>https://medium.com/@ivmos/exploring-steganography-with-hidden-unicode-characters-d9bd64d35ad9?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9bd64d35ad9</guid>
            <category><![CDATA[unicode]]></category>
            <category><![CDATA[steganography]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 22:06:18 GMT</pubDate>
            <atom:updated>2024-08-01T17:08:29.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*AMLS0wPsfKl_2Dyc" /></figure><p>In the digital age, where information security is paramount, steganography has emerged as a fascinating and subtle method for concealing information. Unlike traditional encryption, which transforms data into a seemingly random string, steganography hides information in plain sight. One intriguing technique is the use of hidden Unicode characters in plain text, an approach that combines simplicity with stealth.</p><p>Related video from my Youtube channel:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1lBKoxgur2Y&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1lBKoxgur2Y&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2F1lBKoxgur2Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/435520ee716c06be5553cd08e0f0d5fd/href">https://medium.com/media/435520ee716c06be5553cd08e0f0d5fd/href</a></iframe><h3>What is Steganography?</h3><p>Steganography, derived from the Greek words “steganos” (hidden) and “graphein” (to write), is the practice of concealing messages or information within other non-suspicious messages or media. The goal is not to make the hidden information undecipherable but to ensure that it goes unnoticed. Historically, this could mean writing a message in invisible ink between the lines of an innocent letter. In the digital realm, it can involve embedding data in images, audio files, or text.</p><h3>The Role of Unicode in Text Steganography</h3><p>Unicode is a universal character encoding standard that allows for text representation from various writing systems. It includes many characters, including letters, numbers, symbols, and control characters. Some of these characters are non-printing or invisible, making them perfect for hiding information within plain text without altering its visible appearance.</p><h3>How Does Unicode Steganography Work?</h3><p>Unicode steganography leverages the non-printing characters within the Unicode standard to embed hidden messages in plain text. These characters can be inserted into the text without affecting its readability or format. Here’s a simple breakdown of the process:</p><ol><li><strong>Choose Hidden Characters</strong>: Unicode offers several invisible characters, such as the zero-width space (U+200B), zero-width non-joiner (U+200C), and zero-width joiner (U+200D). These characters do not render visibly in the text.</li><li><strong>Encode the Message</strong>: Convert the hidden message into a binary or encoded format. Each bit or group of bits can be represented by a unique combination of invisible characters.</li><li><strong>Embed the Message</strong>: Insert the invisible characters into the plain text at predetermined positions or intervals, embedding the hidden message within the regular text.</li><li><strong>Extract the Message</strong>: A recipient who knows the encoding scheme can extract the invisible characters from the text and decode the hidden message.</li></ol><h3>Example: Hiding a Message</h3><p>Let’s say we want to hide the message “Hi” within the text “Hello World”. First, we convert “Hi” into binary (using ASCII values):</p><p>Next, we map these binary values to invisible characters. For simplicity, let’s use the zero-width space (U+200B) for ‘0’ and zero-width non-joiner (U+200C) for ‘1’. The binary for “Hi” becomes a sequence of these characters:</p><ul><li>H: 01001000 → U+200B U+200C U+200B U+200B U+200C U+200B U+200B U+200B</li><li>i: 01101001 → U+200B U+200C U+200C U+200B U+200C U+200B U+200B U+200C</li></ul><p>We then embed this sequence in the text “Hello World”:</p><pre>H\u200B\u200C\u200B\u200B\u200C\u200B\u200B\u200B e\u200B\u200C\u200C\u200B\u200C\u200B\u200B\u200C llo World</pre><p>To the naked eye, “Hello World” appears unchanged, but the hidden message “Hi” is embedded within.</p><h3>Advantages and Disadvantages</h3><h4>Advantages:</h4><ul><li><strong>Subtlety</strong>: The hidden information is invisible to the casual observer.</li><li><strong>Preserves Original Format</strong>: The visible text remains unaltered, maintaining readability and meaning.</li><li><strong>Easy to Implement</strong>: Inserting and extracting hidden characters is straightforward with proper tools.</li></ul><h4>Disadvantages:</h4><ul><li><strong>Limited Capacity</strong>: The amount of data that can be hidden is relatively small.</li><li><strong>Vulnerability</strong>: If the presence of hidden characters is suspected, they can be detected and removed.</li><li><strong>Dependence on Format</strong>: Changes in text formatting or encoding can corrupt the hidden message.</li></ul><h3>Practical Applications</h3><ol><li><strong>Secure Communication</strong>: Concealing sensitive messages within seemingly innocuous text.</li><li><strong>Watermarking</strong>: Embedding copyright information in digital documents.</li><li><strong>Data Integrity</strong>: Adding hidden markers to verify the authenticity of text.</li></ol><h3>Conclusion</h3><p>Unicode steganography in plain text with hidden characters offers a clever and discreet way to conceal information. By understanding and utilizing the invisible aspects of Unicode, individuals can enhance their data security practices, ensuring their messages remain hidden in plain sight. As with all security techniques, it’s essential to stay informed about potential vulnerabilities and to use these methods responsibly.</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2024/07/08/exploring-steganography-with-hidden-unicode-characters/"><em>http://ivanmosquera.net</em></a><em> on July 8, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9bd64d35ad9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Canary Tokens]]></title>
            <link>https://medium.com/@ivmos/understanding-canary-tokens-bce0f4314325?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bce0f4314325</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[canary-tokens]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 23:58:59 GMT</pubDate>
            <atom:updated>2024-07-20T07:33:46.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*AIimK_qetL4DFZ_M" /></figure><p>In the realm of cybersecurity, staying ahead of potential threats is paramount. One innovative method that has gained traction in recent years is the use of canary tokens. These digital tripwires are designed to alert organizations to potential breaches and unauthorized access. In this blog post, we’ll explore what canary tokens are, how they work, and why they are becoming an essential tool in the cybersecurity toolkit.</p><p>Related video from my channel:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-qdmP_s0RoM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-qdmP_s0RoM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-qdmP_s0RoM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/df73c1c867fe6150e05713840a671874/href">https://medium.com/media/df73c1c867fe6150e05713840a671874/href</a></iframe><h3>What are Canary Tokens?</h3><p>Canary tokens, inspired by the canaries historically used in coal mines to detect dangerous gases, are digital markers that serve as early warning systems for unauthorized access or malicious activity. When a canary token is accessed, triggered, or interacted with in any unauthorized manner, it sends an alert to the network administrators, signaling a potential security breach.</p><p>These tokens can take various forms, including:</p><ol><li><strong>Documents</strong>: Files with embedded tracking capabilities.</li><li><strong>Web URLs</strong>: Links that trigger alerts when visited.</li><li><strong>API Keys</strong>: Fake credentials that generate warnings when used.</li><li><strong>DNS Entries</strong>: Domain name entries that alert administrators when queried.</li></ol><h3>How Do Canary Tokens Work?</h3><p>The operation of canary tokens is straightforward yet effective. Here’s a typical workflow:</p><ol><li><strong>Deployment</strong>: Canary tokens are strategically placed within a network, embedded in documents, or distributed in ways that they appear attractive to potential attackers.</li><li><strong>Monitoring</strong>: The tokens remain dormant until they are accessed or triggered. They are designed to look like genuine assets or credentials, making them appealing targets.</li><li><strong>Alerting</strong>: When a token is accessed, it sends an alert to the administrators. This alert can be in the form of an email, SMS, or integration with a monitoring system.</li><li><strong>Response</strong>: Upon receiving an alert, administrators can investigate the breach, determine the extent of the intrusion, and take necessary actions to mitigate the threat.</li></ol><h3>Why Use Canary Tokens?</h3><p>Canary tokens offer several advantages that make them a valuable addition to any cybersecurity strategy:</p><h3>1. Early Detection</h3><p>Canary tokens provide early warnings of potential security breaches, allowing organizations to respond quickly before significant damage occurs. This proactive approach can prevent data theft, system compromise, and other malicious activities.</p><h3>2. Simplicity and Low Cost</h3><p>Implementing canary tokens is relatively simple and cost-effective compared to other cybersecurity measures. They do not require complex infrastructure changes or significant financial investments.</p><h3>3. Minimal False Positives</h3><p>Since canary tokens are designed to be accessed only in specific scenarios, the likelihood of false positives is low. Alerts generated by canary tokens are more likely to indicate genuine security incidents.</p><h3>4. Versatility</h3><p>Canary tokens can be customized to fit various scenarios and environments. Whether embedded in documents, disguised as login credentials, or hidden in web applications, they can be tailored to meet specific security needs.</p><h3>5. Psychological Deterrence</h3><p>The knowledge that canary tokens are in place can act as a psychological deterrent for potential attackers. The risk of triggering an alert and being detected can discourage malicious activities.</p><h3>Real-World Applications of Canary Tokens</h3><h3>Protecting Sensitive Data</h3><p>Organizations dealing with sensitive information, such as financial institutions or healthcare providers, can embed canary tokens in critical files. If these files are accessed or exfiltrated, administrators are immediately alerted.</p><h3>Monitoring Network Intrusions</h3><p>Canary tokens can be placed within a network to detect unauthorized access. For example, creating a fake administrative login page with a canary token can reveal attempts to gain unauthorized control.</p><h3>API Security</h3><p>By deploying canary tokens as fake API keys, organizations can detect and track the misuse of stolen credentials. This helps in identifying compromised systems and taking corrective actions.</p><h3>Conclusion</h3><p>In an era where cyber threats are constantly evolving, canary tokens offer a proactive and efficient way to detect and respond to security incidents. Their simplicity, cost-effectiveness, and versatility make them an invaluable tool for organizations looking to bolster their cybersecurity defenses. By incorporating canary tokens into their security strategies, organizations can gain a critical edge in protecting their digital assets and maintaining the integrity of their networks.</p><p>Stay vigilant, stay secure, and consider deploying canary tokens as part of your comprehensive cybersecurity strategy.</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2024/06/29/understanding-canary-tokens-a-modern-approach-to-cybersecurity/"><em>http://ivanmosquera.net</em></a><em> on June 29, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bce0f4314325" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding PNG Format and Draw.io steganography]]></title>
            <link>https://medium.com/@ivmos/understanding-png-format-and-draw-io-steganography-072121c378b5?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/072121c378b5</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[steganography]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 11:10:58 GMT</pubDate>
            <atom:updated>2024-07-20T07:34:21.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*kcXAO502Bm2vWhwM" /></figure><h4>Introduction</h4><p>Portable Network Graphics (PNG) is a popular raster graphics file format known for its lossless compression and wide support across various platforms and applications. In this blog post, we’ll delve into how PNG works, its format structure with a focus on headers and chunks, and how Draw.io leverages these features to embed drawing code within PNG files.</p><p>Related video from my Youtube channel:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGR2QSY8H1pI%3Fstart%3D3%26feature%3Doembed%26start%3D3&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGR2QSY8H1pI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGR2QSY8H1pI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c0eb3abd9f1b8b3b4e8e93834763d3f/href">https://medium.com/media/5c0eb3abd9f1b8b3b4e8e93834763d3f/href</a></iframe><h4>The PNG Format</h4><p>PNG was developed to replace the older Graphics Interchange Format (GIF). It offers several advantages, including better compression and support for a wider range of colors and transparency levels. Unlike JPEG, which is a lossy format, PNG preserves the original image quality, making it ideal for images that require precise details, such as text, graphics, and illustrations.</p><h4>Structure of a PNG File</h4><p>A PNG file is composed of a series of chunks. Each chunk has a specific function and structure, allowing for flexible and efficient image data storage. Here’s a breakdown of the core components of a PNG file:</p><ol><li><strong>PNG Signature</strong>: The file starts with an 8-byte signature that identifies the file as a PNG image. This signature is essential for programs to recognize and process the file correctly.</li><li><strong>Chunks</strong>: Following the signature, the file consists of multiple chunks. Each chunk has four main parts:</li></ol><ul><li><strong>Length (4 bytes)</strong>: The length of the data field.</li><li><strong>Chunk Type (4 bytes)</strong>: A four-letter ASCII code specifies the chunk type.</li><li><strong>Chunk Data (variable length)</strong>: The data contained in the chunk.</li><li><strong>CRC (4 bytes)</strong>: A cyclic redundancy check value for error-checking.</li></ul><p>There are several critical chunks, including:</p><ul><li><strong>IHDR (Image Header)</strong>: Contains basic information about the image, such as width, height, bit depth, color type, compression method, filter method, and interlace method.</li><li><strong>PLTE (Palette)</strong>: Defines the color palette used if the image is paletted.</li><li><strong>IDAT (Image Data)</strong>: Contains the actual image data, compressed using the zlib algorithm.</li><li><strong>IEND (Image End)</strong>: Marks the end of the PNG file.</li></ul><p>Additional chunks can store metadata, text information, and other data, enabling extended functionalities.</p><h4>How Draw.io Embeds Code in PNG Files</h4><p>Draw.io is an online diagramming tool that allows users to create a wide range of diagrams, from flowcharts to network diagrams. One of its unique features is the ability to embed the diagram’s XML code directly within a PNG file. This makes it easy to share and store diagrams without needing separate files for the image and the underlying code.</p><p>Here’s how Draw.io achieves this:</p><ol><li><strong>Embedding XML in a PNG</strong>: Draw.io takes advantage of PNG’s chunk-based structure by adding a custom chunk that contains the diagram’s XML data. This chunk is typically labeled zTXt or tEXt to indicate compressed or uncompressed textual data, respectively.</li><li><strong>Custom Chunk Integration</strong>: When a user saves a diagram as a PNG in Draw.io, the application generates the diagram’s XML representation and compresses it if necessary. This XML data is then inserted into a custom chunk within the PNG file.</li><li><strong>Reading Embedded Data</strong>: When the PNG file is opened in Draw.io, the application scans the chunks, identifies the custom chunk containing the XML data, extracts it, and reconstructs the diagram based on the embedded code.</li></ol><p>This seamless integration allows users to benefit from the portability and compatibility of the PNG format while maintaining the ability to edit and update the diagrams within Draw.io.</p><h4>Conclusion</h4><p>PNG is a versatile and powerful image format, and its chunk-based structure offers extensive flexibility for embedding additional data. Draw.io leverages this feature to embed the diagram’s XML code directly within PNG files, making it convenient for users to share and edit diagrams without losing any information. Understanding the inner workings of PNG and its structure not only enhances our appreciation for this format but also opens up possibilities for creative and innovative uses in various applications.</p><p><strong>Interesting links</strong> <a href="https://es.wikipedia.org/wiki/Portable_Network_Graphics">https://es.wikipedia.org/wiki/Portable_Network_Graphics</a> <a href="https://github.com/pedrooaugusto/steganography-png">https://github.com/pedrooaugusto/steganography-png</a></p><p>Note: This post has been partly generated with Chat-GPT</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2024/06/29/understanding-png-format-and-draw-io-stenography/"><em>http://ivanmosquera.net</em></a><em> on June 29, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=072121c378b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling WordPress with helm and k8s]]></title>
            <link>https://medium.com/@ivmos/scaling-wordpress-with-helm-and-k8s-6bf9108e3138?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bf9108e3138</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[helm]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Sun, 05 May 2024 17:57:57 GMT</pubDate>
            <atom:updated>2024-05-06T12:31:41.217Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*jiHEsFKL6dw1mW4Z" /></figure><p>In the ever-evolving landscape of web development and content management, WordPress stands as a steadfast titan, empowering millions of websites with its user-friendly interface and robust features. However, deploying WordPress can sometimes be a challenging task, especially for those new to server management and configuration. Fortunately, with the advent of containerization and orchestration technologies like Kubernetes, deploying WordPress has become more streamlined and efficient than ever before. One such method is leveraging the Bitnami Helm Chart, offering a seamless solution for deploying WordPress on Kubernetes clusters. In this blog post, we’ll explore the process of deploying WordPress using the Bitnami Helm Chart, highlighting its simplicity and effectiveness.</p><p><strong>What is Bitnami?</strong></p><p>Before delving into the deployment process, let’s take a moment to understand Bitnami. Bitnami is a well-known name in the world of application packaging and deployment automation. They offer a vast library of pre-configured software packages, including popular applications like WordPress, Drupal, Joomla, and many others. These packages are designed to be easily deployable across various platforms, making it convenient for developers and administrators to set up complex applications with minimal effort.</p><p><strong>Their WordPress chart is the most active and downloaded amount the ones listed in </strong><a href="https://github.com/bitnami/charts/blob/main/bitnami/wordpress/values.yaml"><strong>artifacthub.io</strong></a> <strong>Introducing Helm and Kubernetes</strong></p><p>Helm is a package manager for Kubernetes that simplifies the process of deploying, managing, and upgrading applications. It uses charts, which are packages of pre-configured Kubernetes resources, to define the structure of an application. Kubernetes, on the other hand, is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.</p><p><strong>Deploying WordPress with Bitnami Helm Chart</strong></p><p>Now, let’s walk through the steps of deploying WordPress using the Bitnami Helm Chart:</p><ul><li>Setup Kubernetes Cluster: Before deploying WordPress, you’ll need to have a Kubernetes cluster up and running. This can be a local cluster using tools like Minikube or a cloud-based solution like Google Kubernetes Engine (GKE), Amazon Elastic Kubernetes Service (EKS), or Microsoft Azure Kubernetes Service (AKS).</li><li>Install Helm: Install Helm on your local machine or wherever you’ll be running the Helm commands. Helm provides a command-line interface (CLI) for managing charts and releases.</li><li>Add Bitnami Repository:</li></ul><p>Add the Bitnami Helm repository to Helm by running the following command:</p><p>helm repo add bitnami <a href="https://charts.bitnami.com/bitnami">https://charts.bitnami.com/bitnami</a></p><ul><li>Customize Values (Optional): Optionally, you can customize the values in the <a href="https://github.com/bitnami/charts/blob/main/bitnami/wordpress/values.yaml">values.yaml</a> file to configure aspects of the WordPress deployment, such as resource limits, database credentials, and ingress settings. Make sure you have read their great <a href="https://github.com/bitnami/charts/tree/main/bitnami/wordpress">README</a> to understand the different options you have.</li><li>Deploy WordPress:</li></ul><p>Access WordPress: Once the deployment is complete, you can access your WordPress site by retrieving the external IP address or domain associated with the WordPress service. Simply navigate to that address in your web browser, and you should see the WordPress installation wizard, allowing you to set up your site.</p><p><strong>Benefits of Using Bitnami Helm Chart for WordPress</strong></p><p>Deploying WordPress with the Bitnami Helm Chart offers several advantages:</p><ul><li>Simplified Deployment: The Helm Chart abstracts away the complexity of deploying WordPress on Kubernetes, making it accessible to developers of all skill levels.</li><li>Consistency: Bitnami’s extensive experience in packaging applications ensures that the WordPress deployment is reliable and consistent across different environments.</li><li>Customization: While the default configuration works out of the box, you have the flexibility to customize various aspects of the deployment to suit your specific requirements.</li><li>Scalability: Kubernetes enables seamless scaling of WordPress instances to handle varying levels of traffic and workload.</li></ul><p><strong>A common use case example</strong></p><p>Let’s say you want to deploy WordPress with high availability being able to scale horizontally. Checking the README you will want to increase the <a href="https://github.com/bitnami/charts/tree/main/bitnami/wordpress#wordpress-deployment-parameters">replicaCount</a> from default 1 to N.</p><p>This figure summarizes the components we would have:</p><ul><li>Ingress: you might need a more complex ingress configuration if you want to enforce security with the network.</li><li>WordPress pods: instead of having a single replica, you will want N, being able to grow automatically.</li><li>Mysql service: here lives most of your WordPress state, except uploads.</li><li>Memcached: make your front end fast! Avoid touching the DB over and over again for the same posts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*32qkhKH5P7K_MtdP" /></figure><p>Related config example:</p><pre>autoscaling:<br>    enabled: true<br>    minReplicas: 3<br>    maxReplicas: 9<br>    targetCPU: 50<br>    targetMemory: 50</pre><p>However, once you can have N pods you need common storage for certain things. If you are lucky with the requirements you’d better not offer installing plugins from the interface and you should burn them in a custom image or in a customPostInitScript. That way you can have this config which only uses the shared volume for uploads and config:</p><pre> extraEnvVars:<br>  - name: WORDPRESS_DATA_TO_PERSIST<br>    # Note: we avoid persisting plugins/themes for performance reasons<br>    value: &quot;wp-config.php wp-content/uploads&quot;</pre><p>If you need to offer plugin installation through the admin interface it will mean you will need to use a really fast volume for that. E.g Azure Files is really bad for that because of all those tiny PHP files, even using the premium offering. I thought OP Cache would limit the impact but it was not enough, leave a comment if you know certain tweaks related to this as I was unable to make it well enough and the admin interface was horrible to use. At least the user-facing part can be easily cached.</p><p>Lastly, you want to enable Memcached. You need to use a deployed Memcached pod or you can use an external service. You will need to use the <a href="https://wordpress.org/plugins/w3-total-cache/">W3 Total cache plugin</a> so that you can take advantage of it.</p><pre>memcached: enabled: true</pre><p><strong>Common pitfalls and solutions</strong></p><p>📝 <em>Troubleshooting hints</em></p><p>You might be reproducing performance issues, the best thing you can do is deploy root run pods in DEV so that you can add a few var_dumps or even install xdebug which will find the culprit for sure:</p><p><em>Note: Be aware that this is horrible for production envs. I recommend only enabling it in local/DEV k8s!!</em></p><pre>  # Configuration to run wordpress as root.<br>  # Only enable for troubleshooting, e.g profiling with xdebug<br>  #podSecurityContext:<br>  #  enabled: true<br>  #  fsGroup: 0<br>  #containerSecurityContext:<br>  #  runAsNonRoot: false<br>  #  runAsGroup: 0<br>  #  runAsUser: 0<br>  #  readOnlyRootFilesystem: false<br>  #  privileged: true<br>  #  allowPrivilegeEscalation: trueYou might also need to disable health checks so that you can debug stuff there:</pre><p><em>Note: same note, only for local/DEV envs.</em></p><pre>  # Health checks override, only set as false for troubleshooting<br>  #livenessProbe:<br>  #  enabled: false<br>  #readinessProbe:<br>  #  enabled: false<br>  #startupProbe:<br>  #  enabled: false</pre><p>📝 <em>Populating the volume and editing wp-config.php</em></p><p>You probably need to fill the /uploads folder or tweak the wp-config.php file. Just use <a href="https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cp/">kubectl cp.</a></p><p>📝 <em>About wp-config.php persistence</em></p><p>The config file is generated according to the Values.yaml when helm install is run but not with upgrade, that is an expected behaviour. However, at least you can override the database config, which is a common thing you might need to change:</p><pre>  # We are persisting wp-config.php but we need to update the DB when needed<br>  overrideDatabaseSettings: yes</pre><p>Additionally, if you need to update the wp-config.php file you can use <a href="https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cp/">kubectl cp</a>. An alternative would be using a secret for the config instead (check existingWordPressConfigurationSecret in the <a href="https://github.com/bitnami/charts/tree/main/bitnami/wordpress#wordpress-configuration-parameters">README</a>).</p><pre>existingWordPressConfigurationSecret: &quot;wp-config-secret&quot;</pre><p>📝 <em>Running customPostInitScripts every time the pods are created.</em></p><p>You can try this workaround, thank me in the comments or provide a better solution if you know it please:</p><pre>    my-script.sh: |<br>      #!/bin/bash<br>      set -x<br>      # Do stuff<br>      # Workaround for https://github.com/bitnami/charts/issues/21216<br>      (sleep 10 &amp;&amp; rm -f /bitnami/wordpress/.user_scripts_initialized)&amp;<br>      echo &quot;Finished my-script.sh&quot;</pre><p>📝 <em>Customizing more stuff</em></p><p>If the bitnami chart values.yaml is not enough for your use case you can always create your chart which uses the bitnami one as a child. E.g that way you can have your ingress.yaml file:</p><pre>apiVersion: v2<br>name: my-wordpress-chart<br>description: My WordPress chart<br>type: application<br>version: 1.0.0<br>appVersion: 1.0.0<br><br>dependencies:<br>  - name: wordpress<br>    version: X.Y.Z<br>    repository: oci://registry-1.docker.io/bitnamicharts</pre><p>You can also fork the chart easily just copying locally and using a local reference instead of OCI. That is also a solution if you want to make sure you don’t depend on docker.io for chart retrieval.</p><p>Further than that you can build and use your WordPress <a href="https://github.com/bitnami/charts/blob/5a6d3fb0285c759a1b32b1b880c5ecb168a31176/bitnami/wordpress/values.yaml#L83">docker image and repository.</a></p><p><em>Note: never customize a docker image to burn default config containing secrets!</em></p><p>📝 <em>Unable to connect to Azure Mysql</em></p><p>If you cannot connect to Azure Mysql even though host and credentia are fine. Just try this and you’re welcome:</p><pre>wordpressExtraConfigContent: &quot;define(&#39;MYSQL_CLIENT_FLAGS&#39;, MYSQLI_CLIENT_SSL);&quot;</pre><p><strong>Conclusion</strong></p><p>The Bitnami Helm Chart provides a hassle-free solution for deploying WordPress on Kubernetes, allowing developers to focus on building and managing their websites without getting bogged down by infrastructure concerns. By leveraging the power of Helm and Kubernetes, deploying WordPress has never been easier or more efficient. Whether you’re a seasoned Kubernetes pro or just getting started, the Bitnami Helm Chart for WordPress is a valuable tool in your arsenal for modern web development. However, different use cases require different configurations, and you’ll need to work on that.</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2024/05/05/scaling-wordpress-with-helm-and-k8s/"><em>http://ivanmosquera.net</em></a><em> on May 5, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bf9108e3138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO transcribe from MP4 to TXT with Whisper AI]]></title>
            <link>https://medium.com/@ivmos/howto-transcribe-from-mp4-to-txt-with-whisper-ai-486725227cf1?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/486725227cf1</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[whisper]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 22:19:16 GMT</pubDate>
            <atom:updated>2023-09-13T07:55:55.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/825/0*JFqym0PcwxsJid_o" /></figure><p>In an era where information is constantly flowing through various forms of media, the need to extract and transcribe audio content has become increasingly important. Whether you’re a journalist, a content creator, or simply someone looking to convert spoken words into written text, the process of transcribing audio can be a game-changer. In this guide, we’ll explore how to transcribe audio from an MP4 file to text using Whisper AI, a powerful automatic speech recognition (ASR) system developed by OpenAI.</p><h3>What is Whisper AI?</h3><p><a href="https://github.com/openai/whisper#available-models-and-languages">Whisper AI </a>is an advanced ASR system designed to convert spoken language into written text. It has been trained on an extensive dataset, making it capable of handling various languages and accents. Whisper AI has numerous applications, including transcription services, voice assistants, and more. In this guide, we will focus on using it for transcribing audio from MP4 files to text.</p><h3>Prerequisites</h3><p>Before you can start transcribing MP4 files with Whisper AI, make sure you have the following prerequisites in place:</p><ol><li><strong>Docker</strong>: <a href="https://es.wikipedia.org/wiki/Docker_(software)">Docker</a> is a platform for developing, shipping, and running applications in containers. You’ll need Docker installed on your system. If you don’t have it, you can <a href="https://www.docker.com/get-started">download and install Docker</a>.</li><li><strong>MP4 to MP3 Conversion</strong>: Whisper AI currently accepts MP3 audio files as input. If your audio is in MP4 format, you’ll need to convert it to MP3 first. There are various tools available for this purpose. You can use <a href="https://ffmpeg.org/">FFmpeg</a> for a reliable and versatile conversion process.</li></ol><p>fmpeg -i 20230523_111106-Meeting\ Recording.mp4 20230523_111106-Meeting\ Recording.mp3</p><h3>Transcribing MP4 to TXT with Whisper AI</h3><p>Now, let’s walk through the steps to transcribe an MP4 file to text using Whisper AI. We’ll assume you already have your MP4 file converted to MP3.</p><h3>Step 1: Clone the Whisper AI Docker Repository</h3><p>First, clone the Whisper AI Docker repository to your local machine. Open a terminal and run the following command:</p><p>git clone <a href="https://github.com/hisano/openai-whisper-on-docker.git">https://github.com/hisano/openai-whisper-on-docker.git</a></p><h3>Step 2: Navigate to the Repository</h3><p>Change your current directory to the cloned repository:</p><p>cd openai-whisper-on-docker</p><h3>Step 3: Build the Docker Image</h3><p>Build the Docker image for Whisper AI with the following command:</p><p>docker image build --tag whisper:latest .</p><h3>Step 4: Set Up Volume and File Name</h3><p>Set the VOLUME_DIRECTORY to your current directory and specify the name of your MP3 file. In this example, we&#39;ll use &quot;hello.mp3&quot;:</p><p>VOLUME_DIRECTORY=$(pwd) FILE_NAME=hello.mp3</p><h3>Step 5: Copy Your MP3 File</h3><p>Copy your MP3 file (the one you want to transcribe) to the current directory.</p><p>cp ../20230503_094932-Meeting\ Recording.mp3 ./$FILE_NAME</p><h3>Step 6: Transcribe the MP3 File</h3><p>Finally, use the following command to transcribe the MP3 file to text using Whisper AI. In this example, we’re specifying the model as “small” and the language as “Spanish.” Adjust these parameters according to your needs:</p><p>docker container run --rm --volume ${VOLUME_DIRECTORY}:/data whisper --model small --language Spanish /data/$FILE_NAME</p><p>Once you execute this command, Whisper AI will process the audio file and provide you with the transcribed text output.</p><p>You’ll see transcription is outputted through stdout so consider piping the docker run to a file.</p><p>docker container run --rm --volume ${VOLUME_DIRECTORY}:/data whisper --model small --language Spanish /data/$FILE_NAME &amp;&gt; result.txt</p><p>You can monitor how it goes with:</p><p>tail -f result.txt</p><p>If you see a warning like:</p><p>/usr/local/lib/python3.9/site-packages/whisper/transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead</p><p>It will mean that you lack a CUDA setup so it will run using your CPU.</p><p>Also notice that here we’re using the small model, which is good enough but perhaps too slow with CPU usage. In my machine, it takes like 2.5 hours to transcribe 3 hours of audio.</p><h3>Conclusion</h3><p>Transcribing audio from MP4 to text has never been easier, thanks to Whisper AI and the power of Docker. With this guide, you can efficiently convert spoken content into written text, opening up a world of possibilities for content creation, research, and more. Experiment with different Whisper AI models and languages to tailor your transcription experience to your specific needs. Happy transcribing!</p><p><em>Note: I’ve written this blog post with the help of ChatGPT based on my own experiments with Whisper AI. I’m just too lazy to write something coherent in English. Sorry for that, I hope you liked it anyway.</em></p><p><em>Prompt: “Write a blog post whose title is HOWTO transcribe from mp4 to txt with Whisper AI. It should explain what Whisper AI is but also explain how to extract mp3 from mp4, and the following commands, ignore first column: 10054 git clone </em><a href="https://github.com/hisano/openai-whisper-on-docker.git"><em>https://github.com/hisano/openai-whisper-on-docker.git</em></a><em> 10055 cd openai-whisper-on-docker 10056 docker image build -tag whisper:latest . 10057 VOLUME_DIRECTORY=$(pwd) 10058 FILE_NAME=hello.mp3 10059 cp ../20230503_094932-Meeting\ Recording.mp3 ./hello.mp3 10060 docker container run -rm -volume ${VOLUME_DIRECTORY}:/data whisper -model small -language Spanish /data/hello.mp3” . After that, I added some extra useful information about performance.</em></p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2023/09/11/howto-transcribe-from-mp4-to-txt-with-whisper-ai/"><em>http://ivanmosquera.net</em></a><em> on September 11, 2023.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=486725227cf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Eliza to ChatGPT]]></title>
            <link>https://medium.com/@ivmos/from-eliza-to-chatgpt-8b12868b7fa5?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b12868b7fa5</guid>
            <category><![CDATA[eliza]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 13:27:38 GMT</pubDate>
            <atom:updated>2022-12-05T15:42:53.176Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*74y-Giq9JUsPZV9YK__Edg.png" /></figure><p>When I was in <a href="https://www.ehu.eus/es/web/bilboko-ingeniaritza-eskola/hasiera">college</a>, I studied <a href="https://en.wikipedia.org/wiki/ELIZA">Eliza</a>, one of the first natural language processing programs developed in the 1960s. Eliza was designed to simulate a psychotherapist and used a set of pre-defined rules and responses to generate replies to user input. At the time, Eliza was considered a significant advancement in the field of natural language processing, but it was limited in its abilities and could not provide detailed or accurate responses to complex questions.</p><p>Today, we have programs like <a href="https://chat.openai.com/">ChatGPT</a>, a large language model trained by OpenAI that uses the latest advancements in natural language processing to generate human-like responses to questions and prompts. ChatGPT was trained on a vast amount of text data from a variety of sources, which allows it to have a broad range of knowledge and the ability to provide detailed, accurate responses to a wide range of questions.</p><p>Here is a sample snippet of code for the Eliza program:</p><pre>// Define a set of rules for generating responses<br>const rules = [<br>  {key: &quot;i need&quot;, response: &quot;Why do you need&quot;},<br>  {key: &quot;i want&quot;, response: &quot;What would it mean to you if you got&quot;},<br>  {key: &quot;i feel&quot;, response: &quot;Do you often feel&quot;}<br>];<br> <br>// Define a function for generating a response to user input<br>function generateResponse(input) {<br>  // Use the find() method to look for the first rule that matches the input<br>  const rule = rules.find(r =&gt; input.includes(r.key));<br> <br>  // If a match is found, return the corresponding response<br>  if (rule) {<br>    return rule.response;<br>  }<br> <br>  // If no rules match, return a default response<br>  return &quot;I&#39;m sorry, I don&#39;t understand what you&#39;re saying.&quot;;<br>}</pre><p>Compared to Eliza, ChatGPT is much more advanced and can provide more detailed and accurate responses to user input. While Eliza used pre-defined rules and answers to generate its replies, ChatGPT uses machine learning algorithms and a vast amount of training data to generate its responses. This allows ChatGPT to have a much broader range of knowledge and the ability to provide accurate answers to complex questions.</p><p>Overall, while Eliza was a significant advancement in its time, it is now limited compared to more advanced programs like ChatGPT. ChatGPT’s ability to generate detailed, accurate responses to a wide range of questions makes it a valuable tool in the field of natural language processing.</p><p>There are many books available that can help you understand ChatGPT and the underlying technology behind it. Some books that may be of interest include<a href="https://amzn.to/3HjT1hw"> “Speech and Language Processing” by Daniel Jurafsky and James H. Martin</a>, and <a href="https://www.amazon.es/Natural-Language-Processing-Python-2009-07-10/dp/B004R24OS6/ref=sr_1_1?__mk_es_ES=%C3%85M%C3%85%C5%BD%C3%95%C3%91&amp;crid=QYTU8DXZBBYC&amp;keywords=%22Natural+Language+Processing+with+Python%22+by+Steven+Bird&amp;qid=1670245337&amp;sprefix=natural+language+processing+with+python%22+by+steven+bird%2Caps%2C73&amp;sr=8-1">“Natural Language Processing with Python” by Steven Bird</a> These books provide in-depth information about natural language processing and how it is used in programs like ChatGPT and Eliza.</p><p>Additionally, <a href="https://amzn.to/3VyST1Z">the book “The Master Algorithm” by Pedro Domingos </a>provides an overview of the field of machine learning and discusses how it relates to natural language processing and programs like ChatGPT. This book is a valuable resource for anyone interested in learning more about the technology behind ChatGPT and how it is used in the field of artificial intelligence.</p><p>Overall, these books provide a wealth of information about natural language processing and its applications, including ChatGPT and Eliza. They are valuable resources for anyone looking to learn more about these technologies and how they are used in the field of artificial intelligence.</p><p>There are many science fiction books that feature artificial intelligence or advanced natural language processing technology that is related to ChatGPT. Some books that you may be interested in include:</p><p>These books are all science fiction stories with advanced artificial intelligence or natural language processing technology. They may be of interest to readers who are interested in the capabilities and potential consequences of such technology.</p><p><strong>This blog post has been 100% generated by ChatGPT.</strong></p><p>In the future, bloggers may have to compete with tools like ChatGPT that can quickly and efficiently generate high-quality content. However, there are also opportunities for bloggers to differentiate themselves from AIs like ChatGPT. For example, bloggers who offer unique perspectives or have a distinct voice can stand out from the crowd and continue to be valuable to their audiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ttk-mQ9W_eCp35O-UwRwnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FDVoNABahwG4aQVrcG7OrQ.png" /></figure><p><em>Originally published at </em><a href="https://ivanmosquera.net/2022/12/05/from-eliza-to-chatgpt/"><em>http://ivanmosquera.net</em></a><em> on December 5, 2022.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yb7HuPyAaHa78GKHYQotPg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b12868b7fa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOWTO see Google Calendar events in YEARLY view]]></title>
            <link>https://medium.com/@ivmos/howto-see-google-calendar-events-in-yearly-view-88fc2321ae1b?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/88fc2321ae1b</guid>
            <category><![CDATA[google-calendar]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Sat, 12 Jan 2019 12:21:49 GMT</pubDate>
            <atom:updated>2019-01-12T12:31:22.287Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*jEmsOPDnnVRODsuZ8teGzw.png" /></figure><p>It turns out I already have booked a few events for 2019 so I wanted to have a <strong>yearly</strong> view of everything I have.</p><p>I was <strong>disappointed</strong> to see that current Google Calendar <strong>yearly events view</strong> is <strong>useless</strong> as It’s just empty. There are lots of comments about this issue in this <a href="https://productforums.google.com/forum/#!topic/calendar/YhaSvgeJlSU;context-place=topicsearchin/calendar/authorid$3AAPn2wQevukIDi5Bo69TOJTcWhB9sRKIoADh8lYsZZ9stjut_deyCahxTdVZPjP3_wxcSjt_1Xp2h%7Csort:date%7Cspell:false">Google productforums entry</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/0*FhxE0npxy217hGwP" /><figcaption>:S</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*Pa43RXc7eTllO2IZ" /><figcaption>Ron Irrelavent is absolutely right</figcaption></figure><p>So I did some search to look for solutions and I found these 2:</p><p><a href="https://chrome.google.com/webstore/detail/google-calendar-plus/mjelhipeelammmhpghkpigkdonihkakj">Google Calendar Plus extension</a></p><ul><li>I haven’t even tried as I’m tired of Chrome extensions but seems to work.</li></ul><p><a href="https://github.com/ctcode/visual-planner">Visual-Planner project</a></p><ul><li>A bit ugly but it works and it’s open-source so this is what I’m using. You can use it without installing it <a href="https://ctcode.github.io/visual-planner/vp.htm">here</a> (you just need to OAUTH to your gmail account). Only drawback is that it does not display names for multi-day events, as a workaround you can create a single event for the first day e.g “Flight to London”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*g0zIPTxOw9uDGFxp" /><figcaption>This is something ¯\_(ツ)_/¯</figcaption></figure><p>Let me know if you have better alternatives.</p><p>I also hope Google implements this.. Hello Google PMs? 🙂</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2019/01/12/howto-see-google-calendar-events-in-yearly-view/"><em>ivanmosquera.net</em></a><em> on January 12, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88fc2321ae1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts about React Native after a few months working with it]]></title>
            <link>https://medium.com/@ivmos/thoughts-about-react-native-after-a-few-months-working-with-it-4b3e255c3120?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b3e255c3120</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Sat, 19 May 2018 09:33:36 GMT</pubDate>
            <atom:updated>2018-06-07T16:48:34.180Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*KO0HOvtZ-Rn-T4XaG-6ENQ.png" /></figure><p>I faced the following challenge in January:</p><ul><li>Porting a complex <a href="https://en.wikipedia.org/wiki/Web_application">webapp</a> to native Android and iOS. The web-app to be ported is written in <a href="https://reactjs.org/">ReactJs</a>+<a href="https://es.redux.js.org/">Redux</a>. Besides most of its business logic is in a pure ES5 javascript library.</li></ul><p>So in this situation, <a href="https://facebook.github.io/react-native/docs/getting-started.html">React Native</a> (“<strong>RN</strong>” from now on) seemed like the way to go as we wanted to have a working prototype in a month and it should be maintained in both Android and iOS without extra resources.</p><h3>Misconceptions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osOqf2ramoUfBLmh6v318A.jpeg" /></figure><p>Some possible misconceptions about RN that I’ll talk about:</p><ol><li>RN is a solution for pure developers who only want to know a bit about mobile native development. (?)</li><li>RN means learn ‘once’ and write anywhere (?)</li><li>RN might not make sense if you are a proficient mobile native developer (?)</li><li>RN in the worst case can perform too badly to the point of having to rewrite everything to native when it’s too late. (?)</li><li>RN allows to reuse tons of code among platform (?)</li><li>RN is fun (?)</li></ol><p><strong>Let’s divide and conquer the discussion in different points and in the Summary we’ll get back to this points.</strong></p><h3>Tooling and learning curve</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*XSps3iYS06zbJAdOPr-ong.jpeg" /><figcaption>Minions in tech posts are a must.</figcaption></figure><h4>react-native run-platform little disappointment</h4><p>I’ll avoid talking about <a href="https://expo.io/">Expo</a> as I cannot rely on it because I use a few native libraries that require the app to be <a href="https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md">ejected</a>. So, the first experience creating a RN app is pretty cool, you just do <em>react native init MyNewFancyApp</em> and there you have a hello world which you can run with <em>react-native run-PLATFORM</em></p><p>Do both <em>react-native run-android / run-ios</em> work as you would expect? Well, more-less:</p><ul><li><strong><em>react-native run-ios</em></strong> compiles your iOS project, including native dependencies, links the project and runs <a href="https://facebook.github.io/metro/">Metro</a> so that the JS code is bundled and offered by a Node server running on your laptop. Finally it runs your app in a Simulator target.</li><li><strong><em>react-native run-android</em></strong> compiles your Android app with <a href="https://gradle.org/">Gradle</a> and also runs Metro the same way but there’s a difference: it won’t start an emulator or simulator, it will try to run <a href="https://developer.android.com/studio/command-line/adb?hl=es-419">adb</a><em> install</em> against whatever is attached to your laptop: an emulator running in Genymotion, a real device connected to USB…</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*t0ueF5T74jvSJu_S." /><figcaption>You get used to keep an eye on this.</figcaption></figure><p>This is the <strong>first little difference you find between using RN</strong> against each platform and this is just about tooling. <em>react-native run-PLATFORM</em> has different behaviour on Android and iOS. Actually, if you want to run your RN app in your device <em>react-native run-android</em> will work fine as “adb<em> install”</em> works both for emulator and devices the same way whereas <em>react-native </em>run-ios is only enough for running on the simulator. You’ll need to run Xcode to run it in your device. You might think “not a big deal” and you’re right but it turns out RN is full of this kind of details that could be improved and make dev experience better.</p><h4>A RN app is a native app so you’ll need to learn mobile native stuff to certain degree</h4><p>You’ll see <em>react-native init</em> basically creates a Gradle Java android project under /android folder, a /iOS project under ios folder and a /index.js to start the RN app.</p><p><strong>You might think you won’t need to care about those autogenerated native projects and just about the JS and you’ll be wrong.</strong></p><p>Every time you <a href="https://facebook.github.io/react-native/docs/linking-libraries-ios.html">link a npm RN library</a> containing native code (with <em>react-native link</em>) you’ll see how it patches your projects, and sometimes it won’t be enough and you’ll need to do some manual changes to integrate such libraries correctly. This means <strong>you cannot be a zero native knowledge developer to use RN</strong>, you’ll need to get your hands on those native projects from time to time. Don’t cry about it, <strong>embrace it</strong> as this will rarely change as RN is basically about patching those native projects that you scaffold initially over and over again and you’d better check what changes you introduce “automatically” when you link new libraries. It’s a good practice trying to <strong>understand the generated patch every time you run react-native link</strong> .</p><p>Does this mean you need to know both Java and Objective-C to be a productive RN developer? <strong>IMHO Yes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/0*UIdAH77VRRgYaim9." /><figcaption>I enjoyed this book but not sure why there is a bicycle there.</figcaption></figure><p>For Java there are plenty of books you can use whereas for learning Objective-C I can recommend <a href="https://www.amazon.com/Objective-C-Programming-Ranch-Guide-Guides/dp/0321706285?ref_=nav_ya_signin&amp;">Objective-C Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides) 1st Edition.</a> You can also learn Swift but you’ll see that <strong>you need to learn Objective-C</strong> anyway so that should be your priority as most of RN libs are written in Objective-C and your /ios RN generated project is in Objective-C. Same happens on Android with Java, you can learn Kotlin too but your autogenerated project is in Java and most of the libs you’ll use are in Java so it should be your priority if you have no knowledge of it.</p><p>There are other examples that enforce the idea that<strong> if you want to do serious RN job and you only know Javascript you really should learn mobile native languages</strong> anyway is that there are simple things such as <a href="https://medium.com/@Krizzu/how-to-change-background-color-of-rootview-in-react-native-3279417c34bb">changing the background of your app</a> or <a href="https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae">tweaking the splash screen</a> that you simply cannot perform just with Javascript. These are more exceptions than the general rule but you don’t want to limit yourself anyway. I can mention that you probably need to change AppDelegate.m when using certain libraries, and those libraries typically have some code you can copy-paste it but they don’t tell you how to mix different libraries there correctly, that’s something you need to do with care and at least some Objective-C understanding.</p><p>E.g some libs tells you to add a continueUserActivity method in AppDelegate.m which can collide with other libraries you had and you might need to figure out yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*SknYHzIWKFVjxl91eY6Tkg.png" /><figcaption>Just a simple example of supporting 2 libraries at the same time in continueUserActivity</figcaption></figure><p><strong>At some point, you might need to create a native module yourself</strong>. RN documentation documents <a href="https://facebook.github.io/react-native/docs/native-modules-android.html">two</a> <a href="https://facebook.github.io/react-native/docs/native-modules-ios.html">examples</a> about how to do it so you can see that the vision of <strong>RN is not about avoiding any native development, it’s more about boosting productivity and sharing business logic and practices among very different platforms.</strong></p><h4>Debug mode and runtimes</h4><p>Usually, when you’re developing with RN you will be using DEBUG mode. You’ll soon discover that running your app that way means that your JS code is being run by your laptop browser which is important to have in mind as in Android especially you can hit important differences that will make you introduce extra polyfills. E.g <a href="https://medium.com/@jordan_mohi/cant-find-variable-symbol-in-react-native-782489d86bd7">Symbol._iterator issue.</a></p><p>My advice for this is clear: <strong>test your JS code often in your device/simulator, don’t live in the browser runtime all the time</strong> until a bad surprise comes too late when you thought your code was already ready. You might think, Tests!: well, that kind of problems will be detected if your running those tests with the device runtime, otherwise won’t be detected either 😦</p><p>In practice, I’m usually developing with both Chrome and an iOS device runtime and I check from time to time on Android and It’s common finding a surprise to fix. It also depends on which is your prioritized platform, in my case I focus on iOS first and I care about nailing Android with less priority. You cannot assume things just will work in every platform out of the box.</p><h3>Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/0*kU6xba3P7BumSlLJ." /></figure><p>Testing in native platforms is mature so I was not sure about whether I would be comfortable with RN in that regard. Luckily it’s pretty good, it takes some time to get used to the way dependency injection is done (basically ES6 imports and props) but<strong> </strong><a href="https://facebook.github.io/jest/"><strong>Jest</strong></a><strong> testing framework rocks</strong> and <a href="https://github.com/storybooks/storybook/tree/master/app/react-native">storybooks</a> + <a href="https://github.com/storybooks/storybook/tree/master/addons/storyshots">snapshots</a> is pretty cool. Besides, as Redux is the de facto standard to develop RN apps that’s a part which is testable by default as it enforces using <a href="https://medium.com/javascript-scene/master-the-javascript-interview-what-is-a-pure-function-d1c076bec976">pure functions</a>. Perhaps I miss that in RN world is common seeing native libraries with no test coverage at all, my recommendation is checking the project README and the issues first as a project that seems great at first glance might be better to avoid for <a href="https://github.com/vault-development/react-native-svg-uri/issues/107">not being maintained or being buggy</a>. You’ll find there are lots of react-native-foo libs that expose “<a href="https://stackoverflow.com/questions/4868904/what-is-the-origin-of-foo-and-bar">foo</a>” native APIs but the quality among them is different and there are different libraries doing the same thing with different level of quality.</p><h4>Organizing your code</h4><p>About organizing your code, <strong>don’t assume you should do it the way you see in the basic examples</strong>, consider them just a starting point to having something working but not something maintainable in long-term. E.g avoid adding all your business logic directly to your components, favour pure functions (using Redux is a must), extract redux part from component to <a href="https://redux.js.org/basics/usage-with-react#implementing-container-components">containers</a>, find a consistent way to <a href="https://revelry.co/styles-in-react-native/">organize your styles</a> instead of just having them spread in your components and in general apply any good practice you know from other languages/frameworks even if you rarely see them in common RN examples.</p><p>One more thing: <strong>sometimes you’ll find you need different code depending on platforms</strong>, think carefully about how to do it as the typical <a href="https://facebook.github.io/react-native/docs/platform-specific-code.html#platform-module"><em>“if(platform == ‘ios’)”</em></a> can be a first working approach but you should try to wrap those blocks in generic classes or components which deal with the differences internally so that you don’t have lots of platform branching in your main business logic.</p><h4>Preparing builds</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/0*kljNUJsSGrKEUDCX." /></figure><p>Preparing release/alpha RN builds is as complex or even a bit more than preparing classic native ones as you also need to care about the JS bundle. Luckily you can automate with <a href="https://fastlane.tools/"><strong>fastlane</strong></a>, something you should really do to avoid <a href="https://facebook.github.io/react-native/docs/running-on-device.html#building-your-app-for-production">the pain of preparing them manually</a>. Besides you can consider using <a href="https://github.com/Microsoft/react-native-code-push">Codepush</a> so that you can avoid preparing new builds unless you’ve really changed native dependencies.</p><h3>Performance</h3><p>This was one of my main doubts about RN:</p><ol><li><strong>Most of your code is in JS and Javascript code does not run in UI thread, it has its own background thread</strong>. This is great for someone used to Android development where that’s a typical problem when running your code. In RN if you have bad performance because of your JS code you won’t be affecting UI thread as JS runs in a different thread. Besides the async nature of running your JS code makes deadlocks unlikely, s<a href="https://ivanmosquera.net/2016/04/04/ikusth-android-threads-dependency-graph-generator/#ikusth-english">omething that I’ve seen happening in Android depending on the practices</a>.</li><li><strong>Performance issues are quite easy to detect</strong> thanks to libraries like <a href="https://github.com/jondot/react-native-slowlog">slowlog</a> and <a href="https://github.com/jondot/rn-snoopy">snoppy</a>. With slowlog you can monitor whether components take too much time to mount and with snoppy you can watch whether you’re having excessive activity in the RN bridge.</li><li>There are <strong>lots of little easy details to care of </strong>like disabling <a href="https://facebook.github.io/react-native/docs/performance.html#using-consolelog-statements">console logs</a> for production, typically avoid blocking <a href="https://www.youtube.com/watch?v=8aGhZQkoFbQ">JS event loop</a>, <a href="https://facebook.github.io/react-native/docs/performance.html#profiling">profiling</a> your app performance.. You can read more about them in <a href="https://facebook.github.io/react-native/docs/performance.html">this nice documentation</a>.</li><li>Just <strong>avoid doing animations with the Javascript thread</strong>, search for <a href="https://github.com/wix/react-native-interactable#why-is-this-challenging">native libraries</a> that can help and <a href="https://facebook.github.io/react-native/blog/2017/02/14/using-native-driver-for-animated.html#how-do-i-use-this-in-my-app">useNativeDriver flag</a> in animations.</li></ol><h4>The RN bridge</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/0*EP05igATte51s4xh." /></figure><p>RN bridge is an important thing to understand as RN developer. Magic does not exist, in RN either. Your JS code runs in a background thread and your native modules run on their own background threads too so how does your JS code communicate with your native modules?</p><h4>How is a call from javascript translated to native land?</h4><p>Well, basically the message object you want to send to the native API that will send the <strong>message is serialized</strong> so that it can be communicated to the other thread, and then it’s unserialized in the native thread side. That’s basically the bridge and <strong>it has a cost</strong>. <strong>If you are doing too many communication from JS to Native or vice-versa that will degrade your app</strong>, those calls are actually batched but It can become a problem anyway. That’s a bottleneck as other code that needs the bridge to run will need to wait.</p><p><strong>How can you take care about this?</strong> As I said you can use a tool like <a href="https://github.com/jondot/rn-snoopy">snoppy</a> to monitor it. If you rarely see high peaks in such bridge, congratulations! You’re achieving native-like performance in your react-native app. Otherwise, you’ll need to do something about it. What? Well, if those peaks are quite rare you can try to improve the UX when they happen… whereas if they really affect the user experience or battery <strong>you might need to port some JS code to a native module</strong> because that’s something to take into account.</p><h4>Pure JS libs vs RN native libs</h4><p>Related to this you’ll often find different libraries that try to do the same thing but one does it in Javascript (always using JS thread) whereas the other one requires adding native code to your android/ios native projects. The pure JS library is probably easier to set up whereas the one including native code will require a react-native link in the best case (+checking the patch carefully) but It can also happen that you need to use <a href="https://cocoapods.org/">Cocoapods</a> and you might need to apply some monkey patches yourself. You need to evaluate each case because such “pain” might pay off. An example of this is choosing a navigation lib for your RN app,<strong> I prefer </strong><a href="https://github.com/wix/react-native-navigation"><strong>react-native-navigation</strong></a><strong> to </strong><a href="https://reactnavigation.org/"><strong>react-navigation</strong></a><strong>.</strong></p><h4>A kind of magic</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*sW_aFIAvqaP5Sv64." /></figure><p>It can be interesting checking the <a href="https://github.com/facebook/react-native/search?p=2&amp;q=invoke&amp;type=&amp;utf8=%E2%9C%93">RN repo</a> to see the magic under the hood.</p><p>E.g: In BatchedBridge/MessageQueue.js you can see the <a href="https://github.com/facebook/react-native/blob/a93e281428f47ba355ba79cda3e98ca7da677636/Libraries/BatchedBridge/MessageQueue.js#L169">enqueueNativeCall</a> method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*2hkhVxndFuuA6lis." /></figure><p>In that method, you’ll see method and params data are <a href="https://github.com/facebook/react-native/blob/a93e281428f47ba355ba79cda3e98ca7da677636/Libraries/BatchedBridge/MessageQueue.js#L245">pushed to _queue</a> and that queue is flushed <a href="https://github.com/facebook/react-native/blob/a93e281428f47ba355ba79cda3e98ca7da677636/Libraries/BatchedBridge/MessageQueue.js#L250">from time to time</a>. calling <a href="https://github.com/facebook/react-native/blob/a93e281428f47ba355ba79cda3e98ca7da677636/Libraries/BatchedBridge/MessageQueue.js#L255">global.nativeFlushQueueImmediate(queue)</a>. And what’s next step? If you look for nativeFkushQueueImmediate you’ll see you land into C++ world and you can see <a href="https://github.com/facebook/react-native/blob/9d0b7d8f31c7045d6b68ec03d48e617c4c0f07bb/ReactCommon/cxxreact/JSCExecutor.cpp#L706">the interesting part where the queue is JSON serialized</a>. From there you go <a href="https://github.com/facebook/react-native/blob/9d0b7d8f31c7045d6b68ec03d48e617c4c0f07bb/ReactCommon/cxxreact/NativeToJsBridge.cpp#L37">NativeToJsBridge.cpp</a> where you can see the implementation of both <a href="https://github.com/facebook/react-native/blob/9d0b7d8f31c7045d6b68ec03d48e617c4c0f07bb/ReactCommon/cxxreact/NativeToJsBridge.cpp#L28">JsToNativeBridge</a> and <a href="https://github.com/facebook/react-native/blob/9d0b7d8f31c7045d6b68ec03d48e617c4c0f07bb/ReactCommon/cxxreact/NativeToJsBridge.cpp#L78">NativeToJsBridge</a>. CallNativeMethod is finally run in <a href="https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/ReactCommon/cxxreact/ModuleRegistry.cpp#L147">ModuleRegistry.cpp</a> and after that you’re already in platform specific area, e.g you can see the actual call being performed with reflection in<a href="https://github.com/facebook/react-native/blob/1e8f3b11027fe0a7514b4fc97d0798d3c64bc895/ReactAndroid/src/main/jni/react/jni/JavaModuleWrapper.cpp#L86"> JavaModuleWrapper.java</a> whereas I think that job is done in <a href="https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/React/CxxModule/RCTNativeModule.mm#L58">RTCNativeModule.mm</a> for iOS.</p><h3>RN is fun 🙂</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/0*giggueh6LTtMx6c6." /></figure><p>So why RN can be more enjoyable for a native developer?</p><p>Basically because <strong>you rarely need to recompile your app</strong> unless you change the native dependencies, something that you’re not doing N times a day and not even N times a week probably whereas you’re probably changing templates N times a day, or business logic, or assets, or colours… And those things in RN are in JS and you can just refresh and see the changes almost instantly! <strong>This makes RN development cycle way more similar to web development as the feedback cycle is way faster</strong> and you can be way more time <a href="https://www.huffingtonpost.com/emily-hill/what-it-really-means-to-b_b_10300610.html">in the zone</a> having fun as a happy developer as you don’t need to be multitasking to find other little things to do at the same time your app is being rebuilt, even if your app is small and just takes like 30 seconds to rebuild that’s still way more than what JS code takes to be loaded again. <strong>You can even enable hot reloading</strong>! and you’ll see how your app changes as you change JS lines.</p><h3>In Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*Rw20DLmmr23QWN-3zpOA0w.png" /></figure><p>So, <strong>when do I think react-native is a good idea as of today?</strong> IMHO it worths seriously considering if:</p><ul><li>You need to port a web app written in ReactJS+Redux to Android/IOS which is quite complex and just runs fine.</li><li>You want to prototype a native app fast. I avoided talking about <a href="https://expo.io/">Expo</a> but check it out, if you’re lucky and you can use it it can be a good extra developer performance boost.</li></ul><p><strong>And when do I think it might not pay off?:</strong></p><ul><li>You have enough amount and good mobile native developers to develop the app for each platform.</li><li>You already have solid native apps for each platform, rewriting them to RN might not make sense unless you want to reuse web version business logic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/0*4EPqJHoQ-UJeGJit." /></figure><p>And lastly, <strong>let’s review the possible misconceptions</strong> I talked about at the beginning:</p><blockquote>RN is a solution for pure developers who only want to know a bit about mobile native development.</blockquote><p><strong>FALSE</strong>: you need to understand those android and iOS folders, you need to be able to install RN libs including native code and you even might need to write your own native modules!</p><blockquote>RN means learn ‘once’ and write anywhere.</blockquote><p><strong>TRUE</strong> but… you need to learn as much as you can for each specific platform.</p><blockquote>RN might not make sense if you are a proficient mobile native developer.</blockquote><p><strong>FALSE</strong>: productivity can be quite bigger in RN and that can be a good reason to adopt RN.</p><blockquote>RN in the worst case can perform too badly to the point of having to rewrite everything to native when it’s too late.</blockquote><p><strong>FALSE</strong>: in the worst case you can migrate JS code to native code.</p><blockquote>RN allows reusing tons of code among platform.</blockquote><p><strong>TRUE</strong>: In the app I built, <strong>the whole redux code is the same in RN and ReactJs </strong>and that’s where most of the complex business logic is. Besides code differences between Android and iOS are just some UI details here and there to improve the experience for each platform.</p><blockquote>RN is fun.</blockquote><p><strong>TRUE</strong>!: See the minion “Fun” part 🙂</p><p>I hope this blog post can serve others introducing to this framework which is nice and powerful but there are a few things to consider or it’s easy to be disappointed.</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2018/05/19/thoughts-about-react-native-after-a-few-months-working-with-it/"><em>ivanmosquera.net</em></a><em> on May 19, 2018.</em></p><h4>More where this came from</h4><p>This story is published in <a href="http://blog.usejournal.com/">Noteworthy</a>, where thousands come every day to learn about the people &amp; ideas shaping the products we love.</p><p>Follow our publication to see more product &amp; design stories featured by the <a href="https://usejournal.com/?utm_source=usejournal.com&amp;utm_medium=blog&amp;utm_campaign=guest_post">Journal</a> team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b3e255c3120" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Tech Lead HOWTO]]></title>
            <link>https://medium.com/@ivmos/a-tech-lead-howto-79c5174ed02c?source=rss-d0f51c3af46b------2</link>
            <guid isPermaLink="false">https://medium.com/p/79c5174ed02c</guid>
            <category><![CDATA[tech-lead]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Iván Mosquera Paulo]]></dc:creator>
            <pubDate>Wed, 27 Dec 2017 10:09:43 GMT</pubDate>
            <atom:updated>2018-01-13T09:26:27.853Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been working in a Tech Lead role position for more than 2.5 years. Some notes I can write here that would have been useful for me and hopefully for someone reaching this page:</p><ul><li>Read this HN question: <a href="https://news.ycombinator.com/item?id=10395046">https://news.ycombinator.com/item?id=10395046</a></li><li>Create a <strong>plan</strong>, parallel to the team projects. Make sure you have a long-term plan in mind.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*4s_-KQYWQXL9YPf_qFfCDQ.jpeg" /></figure><ul><li>Your team needs to fulfill the projects maintaining a good working environment, otherwise, they’ll burn out soon. The opposite is true too, it does not matter having the happiest team if projects don’t evolve as they should.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*SlCi-SR4F-XS94QYyysd9w.jpeg" /></figure><ul><li><strong>Be patient</strong>, start just with little improvements as you understand your area. Avoid revolution feeling, people don’t like too many changes at the same time.</li><li><strong>Coding is probably not the most important thing you’ll do</strong> for your team. First months it will feel awkward but you’ll get used to it once you understand your responsibilities.</li><li><strong>Understand your area top-down</strong>, from architecture to code so you’ll probably won’t be an expert in every repo but you probably should be an expert of how everything glues together, how the architecture works and how it should evolve.</li><li><strong>1:1s</strong> are one of the most important things you’ll do, make sure most of the 1:1 time is just informal, the projects sync part should be just the first 5 minutes. Try fixing calendar events for them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*-4ez0pFzDeH5MlIp." /></figure><ul><li><strong>Overcommunicate</strong>: tell important things to the team as a group and repeat it again in each 1:1 and see if your message is being understood. Always ask for the opinion, especially in 1:1s, your mates will often help you to do things better.</li><li>Be <strong>data driven</strong>, make sure you can see the state of everything with data, you should not need to do ad-hoc queries or launching dirty scripts to gather important health data. Your important metrics should always be available to be reviewed. However, if you find yourself checking a metric a lot for certain thresholds, just create an alarm!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*WudTTbIn-TeKMJiaCQydTA.jpeg" /></figure><ul><li>You’ll need to keep <strong>caring about your craftsmanship</strong> and it <strong>will be more difficult than ever</strong> as you won’t be coding most of the day. However, you should make sure you keep improving technically, not just growing in soft skills. Try maintaining pet-projects, courses and try to contribute to team code in low priority tasks from time to time.</li><li>Be involved in code reviews and read every pull request if possible, that’s where you’ll feel how good work is evolving. However, avoid micro-manage, especially to senior mates, just be a helpful safety net if needed. Avoid commenting in CRs if you have nothing important to say, avoid the “here comes the boss comment” syndrome.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*bC9EWcLUfPHTX8QAsgjtVQ.jpeg" /></figure><ul><li><strong>Detect any block and tackle it</strong> with most urgency. It’s one of your main responsibilities. Ask for blocks in every standup.</li><li>Be the<strong> tech proxy</strong> for your team so that they can focus on their tasks. Be ready to be interrupted, learn how to optimize context changes. Actually, make sure your team understands you’re approachable and they can ping you if any problem without waiting, you’re there to be interrupted at any time if needed.</li><li>Supervise estimations. Avoid being always dummy conservative, think carefully about risks and if any high <strong>risk</strong> then yes, be conservative with estimation. But if you’re estimating a task your team already did in the past, it should be pretty straightforward (and perhaps should be automated?)</li><li>Try introducing and <strong>welcome changes</strong> to how things are done but be careful about <strong>when those changes are applied</strong> as if they impact a project, it can be difficult to justify. Related to this, avoid taking the easy route of just saying always “NO” to new things just to avoid risks, as your platform should evolve as part of your plan.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/0*ZnHu4v3D6-jvcMe0." /></figure><ul><li>Measure<a href="https://en.wikipedia.org/wiki/Technical_debt"> <strong>technical debt</strong></a>, buy it consciously and fight it as part of your plan with priorities.</li><li>Improve your <a href="https://en.wikipedia.org/wiki/Soft_skills"><strong>soft skills</strong></a>. You’ll be more time talking to people than to your IDE.</li><li>Be always constructive with feedback, as a criticism without <strong>action points</strong> to follow is not a solution.</li><li>Be the Toxic-comments goalkeeper. Try favoring a positive environment. However, don’t confuse toxic comment with a constructive critic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*bXkyInCCunqHInc67FY0vg.jpeg" /></figure><ul><li>Tech Lead position is quite prone to workaholism. <strong>Go home!</strong> Read this post by Rafael López: <a href="https://badoo.com/techblog/blog/2017/04/11/leads-go-home-and-take-your-reports-with-you/">https://badoo.com/techblog/blog/2017/04/11/leads-go-home-and-take-your-reports-with-you/</a></li></ul><p>Good luck!</p><p><em>Originally published at </em><a href="https://ivanmosquera.net/2017/12/27/a-tech-lead-howto/"><em>ivanmosquera.net</em></a><em> on December 27, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79c5174ed02c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>