<?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 torrito on Medium]]></title>
        <description><![CDATA[Stories by torrito on Medium]]></description>
        <link>https://medium.com/@chestozo?source=rss-2ddf45dcebe7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ff3aqSs8hmCc16ez.jpeg</url>
            <title>Stories by torrito on Medium</title>
            <link>https://medium.com/@chestozo?source=rss-2ddf45dcebe7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 19:38:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chestozo/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[How to fix AirDrop not seeing contacts]]></title>
            <link>https://chestozo.medium.com/how-to-fix-airdrop-not-seeing-contacts-ee314c86e982?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee314c86e982</guid>
            <category><![CDATA[fix]]></category>
            <category><![CDATA[lifehacks]]></category>
            <category><![CDATA[airdrop]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Fri, 01 Nov 2024 10:17:10 GMT</pubDate>
            <atom:updated>2024-11-01T10:17:10.834Z</atom:updated>
            <content:encoded><![CDATA[<p>Finally solved!</p><p>I have AirDrop configured to “Contacts Only” option but I could not see my wife’s iPhone neither she could see mine.</p><p>After reading this <a href="https://support.apple.com/en-gb/119857">https://support.apple.com/en-gb/119857</a> article I’ve spotted this part:</p><blockquote>Check if the person you’re sending to has their AirDrop set to receive from Contacts Only. If they do, and you’re in their Contacts, they’ll need to have <strong>your Apple ID’s email address</strong> or mobile number in your contact card for AirDrop to work.</blockquote><p>I was sure having mobile number would be enough but turns out it is not.</p><p>After adding Apple ID email address to my wife’s account and after she has added mine we now see each other without issues.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee314c86e982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Typescript / generics: dependent type variables]]></title>
            <link>https://chestozo.medium.com/typescript-generics-dependent-type-variables-657f8e768eee?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/657f8e768eee</guid>
            <category><![CDATA[type-variables]]></category>
            <category><![CDATA[generics]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 22:31:26 GMT</pubDate>
            <atom:updated>2024-04-03T22:37:46.457Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve spent some time looking for solution so will write it here for the future when I will need to find it again =)</p><p>Imagine you have a generic component with 2 type variables:</p><pre>const Component = &lt;TObjectPreview, TObject&gt;({<br>}: {<br>  preview: TObjectPreview<br>  onLoaded: (obj: TObject) =&gt; void<br>}) {<br>  ...<br>}</pre><p>Pretty legitimate huh?</p><p>Now what if we are working with unions:</p><pre>type SupportedPreview = PhotoPreview | VideoPreview<br>type SupportedObject = Photo | Video</pre><p>and we want for consistency have always TObject = Photo when TObjectPreview = PhotoPreview and TObject = Video when TObjectPreview = VideoPreview?</p><p>Turns out we can do this with ternary operator in type definition + never usage like this:</p><pre>type ObjectForPreview&lt;T&gt; = T extends PhotoPreview<br>  ? Photo<br>  : T extends VideoPreview<br>  ? Video<br>  : never<br><br>const Component = &lt;<br>  TObjectPreview extends SupportedPreview,<br>  TObject = ObjectForPreview&lt;TObjectPreview&gt;<br>&gt;({<br>}: {<br>  preview: TObjectPreview<br>  onLoaded: (obj: TObject) =&gt; void<br>}) {<br>  ...<br>}<br><br>// Bonus: in the end user does not need to specify 2nd type variable<br>// Actually 1st one is also not needed - typescript does its magic based<br>// on supplied `preview` type.</pre><p>Looks a bit hardcoded tbh but it solved my issue.<br>Ideally would be to use something more dynamic like Record&lt;T1,T2&gt; but I could not understand how to do that.</p><p>If you know how to do this better — please let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=657f8e768eee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to fix Melitta Caffeo Solo coffee machine when coffee is not flowing through noses]]></title>
            <link>https://chestozo.medium.com/how-to-fix-melitta-caffeo-solo-coffee-machine-when-coffee-is-not-flowing-through-noses-7a6a210b50c6?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a6a210b50c6</guid>
            <category><![CDATA[machine]]></category>
            <category><![CDATA[coffee]]></category>
            <category><![CDATA[how-to-fix]]></category>
            <category><![CDATA[melitta]]></category>
            <category><![CDATA[fix]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 08:59:29 GMT</pubDate>
            <atom:updated>2022-08-21T08:59:29.735Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/715/0*D-6om_AMd6iqfiyY.jpg" /></figure><p>It can be just a matter of spout manifold to be clogged.</p><p>Steps to be taken:</p><ol><li>Take off spout manifold using this guide <a href="https://www.ifixit.com/Guide/Replacing+Coffee+Spout+Manifold+on+Melitta+Caffeo+Solo/125263">https://www.ifixit.com/Guide/Replacing+Coffee+Spout+Manifold+on+Melitta+Caffeo+Solo/125263</a></li><li>Now fill spout manifold with water and actively shake it. In my case after 2 years of operation there was a lot of coffee wastes inside.</li><li>Once your stop seeing coffee wastes coming out — you are done!</li><li>Just place everything back and that’s it!</li></ol><p>I was super happy that I could fix this issue without calling a coffee machine repairing master.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a6a210b50c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add conditional formatting in one cell in a spreadsheet based on a value of another cell in…]]></title>
            <link>https://chestozo.medium.com/how-to-add-conditional-formatting-in-one-cell-in-a-spreadsheet-based-on-a-value-of-another-cell-in-b3c4f0bb6232?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3c4f0bb6232</guid>
            <category><![CDATA[spreadsheets]]></category>
            <category><![CDATA[formatting]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[todo]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Thu, 11 Feb 2021 06:16:20 GMT</pubDate>
            <atom:updated>2021-02-11T06:19:57.911Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to add conditional formatting in one cell in a spreadsheet based on a value of another cell in this same row?</h3><p>Here you have the magic formula that will reference a value in column A for the same row that your current cell is:</p><pre>=$A1</pre><p>And here is a quick ToDo app based on that in Google Spreadsheets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ysAqvLy9H5S1Ko7imdYEHg.png" /></figure><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3c4f0bb6232" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UX bits #3]]></title>
            <link>https://chestozo.medium.com/ux-bits-3-757a10162d29?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/757a10162d29</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[interfaces]]></category>
            <category><![CDATA[ux-bits]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 19:11:17 GMT</pubDate>
            <atom:updated>2020-12-06T19:11:17.787Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Lovely loading animation</li></ol><h3></h3><p>Loading ...Currently, we are working on refactoring a lot to guarantee great performance. On top of that, some new features are in the making 🚀 pic.twitter.com/2xzipkEohp</p><p>2. Gender neutral emojis on Mac … not seen them before:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*R2DfSIjrEknFE4VfRpwVvA.png" /></figure><p>3. <a href="https://dribbble.com//shots/14678944-tuna-logotype">Tuna logo</a> — I was always a big fan of smart logos =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MEdTSlHQf5gD2R7_.jpg" /></figure><p>4. Guys at <a href="https://check.so/">Check app</a> playing around with check mark — what a pleasure to watch the progress:</p><h3></h3><p>Rainbow Chrome Render pic.twitter.com/I1BZwEuEYe</p><p>5. Burger-button !!!</p><h3></h3><p>🍔 3D Button@CodePen https://t.co/vwRqQ2VLcIConcept @Pinsky pic.twitter.com/5w6alXcV6i</p><p>And that’s it for now</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=757a10162d29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UX bits #2]]></title>
            <link>https://chestozo.medium.com/ux-bits-2-ff9ef8e3972f?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff9ef8e3972f</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux-bits]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Thu, 19 Nov 2020 18:00:12 GMT</pubDate>
            <atom:updated>2020-11-19T18:03:23.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gu8m2hrsKmdcspEFc2CKww.png" /></figure><ol><li><a href="https://dribbble.com/shots/9402146-Plane-Switch">Plane Switch by Aaron Iker</a></li></ol><p>Look at this beauty 😍</p><p><a href="https://dribbble.com/shots/9402146-Plane-Switch">Plane Switch</a></p><p>2. Do you remember flash?</p><p>It still looks hilarious don’t you think?</p><h3></h3><p>Just shared this with my design students... they gotta know their design history... #2Advanced pic.twitter.com/p68ANg4gxp</p><p>3. Beautiful event creation popup:</p><p><a href="https://dribbble.com//shots/14590159--Meeting-Modal-Creator">📅 Meeting Modal Creator</a></p><p>4. This tool looks crazy awesome!</p><h3></h3><p>A first peek at something new we&#39;re working on.What if programs spoke *our* language? pic.twitter.com/019cblQ33f</p><p>5. Turn the lights on!</p><p><a href="https://dribbble.com/shots/5392104-3D-Led-Switch">3D Led Switch</a></p><p>And that’s it for this week 🙌</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff9ef8e3972f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UX bits #1]]></title>
            <link>https://chestozo.medium.com/ux-bits-1-87530ae2e733?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/87530ae2e733</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Thu, 12 Nov 2020 16:49:26 GMT</pubDate>
            <atom:updated>2020-11-12T16:49:26.880Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Beautiful icon picker</strong><br>by upcoming Check to-do app:</li></ol><h3></h3><p>Icon picker for projects and folders.For each topic, there will be check icons pic.twitter.com/D9h0ki91De</p><p>2. Apple Event — November 10<br>Have you noticed those <strong>feature grid screens</strong>?<br>Looks very nice and neat:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqrPz2wFffOI_1s67fUdDg.png" /></figure><p>Full Apple Event link is <a href="https://www.youtube.com/watch?v=5AwdkGKmZ0I">here</a>.</p><p>3. <strong>Tixy land</strong> — a nice little tool and website that makes math functions super visual. Try it out!</p><p><a href="https://tixy.land/">(t,i,x,y) =&gt; &#39;creative code golfing&#39;</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*rUq7qcTc_t-a_mthDtx8Tg.png" /></figure><p>4. This will be always a mystery for me:<br>why those <strong>❤️ buttons</strong> are so small in Mac Music.app?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*rQipHcVAbFrzzlrgVxDRtA.png" /></figure><p>And that’s it for the release #1.</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87530ae2e733" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to access files on USB drive on Mac that are readonly inside Finder]]></title>
            <link>https://chestozo.medium.com/how-to-access-files-on-usb-drive-on-mac-that-are-readonly-inside-finder-8e51a85269e9?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e51a85269e9</guid>
            <category><![CDATA[drive]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[usb]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[readonly]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Sat, 17 Oct 2020 18:03:09 GMT</pubDate>
            <atom:updated>2020-10-18T12:08:51.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to read / write files on a USB drive on MAC when it is shown as readonly by Finder</h3><p>Sometimes you may need to access files from an old USB drive and usually MAC OS X will show them as readonly.</p><p>For example I’ve got an old reader by Sony — PRS-505 — which I was not using for several years.<br>After connecting it using USB cable I could see it in Finder and I could check that the drive is shown to be formatted as MS-DOS (FAT16).</p><p>I’ve tried to copy some new books on this drive and I’ve got stuck because MAC was not allowing me to write those files.</p><p>Luckily enough you can overcome this by using a Terminal.<br>Here is what you need to do.</p><p><strong>Step 1</strong><br>find the name of your disk using diskutil:</p><pre>$ diskutil list</pre><pre># you will get something similar to this:<br>/dev/disk0 (internal, physical):<br>   ...</pre><pre>/dev/disk1 (synthesized):<br>   ...</pre><pre>/dev/disk2 (external, physical):<br>   ...</pre><p>In my case I am pretty sure that connected reader is shown as /dev/disk2 (it is the only external drive shown).</p><p><strong>Step 2</strong><br>once you know the name of your reader disk you need to mount it with writing permissions:</p><pre>mount -uw /dev/disk2</pre><pre># NOTE that you may need sudo permissions to do it on<br># your machine; in this case you need to run this</pre><pre>sudo mount -uw /dev/disk2</pre><p><strong>Step 3</strong><br>now we need to find the mounted drive in the list of drives:</p><pre>$ ls /Volumes/<br>&gt; Macintosh HD<br>&gt; Untitled</pre><pre># in my case it is the last one - Untitled<br># it is also visible in Finder in the left panel inside Locations section</pre><p><strong>Step 4<br></strong>now we can copy files from / to reader.</p><p>Strangely enough I was not able to copy files to my reader using Finder.<br>But at the same time it is very possible to do it by using Terminal:</p><pre>cd /Volumes/Untitled/database/media/books/<br>cp ~/Desktop/books/thebook.txt .</pre><p><strong>Bonus track</strong><br>this is how you can fully unmount the drive after you’ve finished with it:</p><pre># first - change your current directory to something different<br># from the mounted volume<br># `cd` will move you to your home directory</pre><pre>cd</pre><pre># and now you can unmount the drive like this<br># NOTE that I am using sudo here but you may not need it in case<br># you have not used it during mounting</pre><pre>sudo diskutil unmount /dev/disk2</pre><p>And that’s it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e51a85269e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My most useful tool that helps me be a better UI developer]]></title>
            <link>https://chestozo.medium.com/my-most-useful-tool-that-helps-me-be-a-better-ui-developer-a3a4b60dc442?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3a4b60dc442</guid>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Sun, 23 Aug 2020 16:49:43 GMT</pubDate>
            <atom:updated>2020-08-23T16:49:43.310Z</atom:updated>
            <content:encoded><![CDATA[<p>is this code snippet:</p><pre>let s = document.querySelector(&#39;#__ext_plugs_outline_style__&#39;);<br>if (s) {<br>  s.parentNode.removeChild(s);<br>} else {<br>  s = document.createElement(&#39;style&#39;);<br>  s.id = &#39;__ext_plugs_outline_style__&#39;;<br>  s.innerText = &#39;* { box-shadow: inset 0 0 1px green; } iframe { box-shadow: 0 0 1px green; }&#39;;<br>  document.head.appendChild(s);<br>}</pre><p>Try it in DevTools right now.<br>Do you see the power of it? 👁</p><p>Yeah! that is all you need sometimes to finally see what is there in the DOM and how your elements are positioned.<br>Now on each page you can see structure like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffCKIzrGYxz4MSS_WyzKRA.png" /></figure><p>If you would like to use it you have these 3 options (at least):</p><ul><li>copy and paste this snippet each time you need it</li><li>create a snippet inside DevTools<br>In Chrome you can go to: DevTools &gt; Sources &gt; Snippets &gt; + New snippet &gt; Enter snippet name and save it for later usage</li><li>create a Chrome Extension for that. You can use mine for reference <a href="https://github.com/chestozo/outliner">https://github.com/chestozo/outliner</a>.</li></ul><p>This one is my favorite for several years now. And if you have a designer in your team that goes pixel perfect — this tool will help you a lot in debates =)</p><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3a4b60dc442" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to query old logs from Google Cloud bucket]]></title>
            <link>https://chestozo.medium.com/how-to-query-old-logs-from-google-cloud-bucket-61a8bfc982e3?source=rss-2ddf45dcebe7------2</link>
            <guid isPermaLink="false">https://medium.com/p/61a8bfc982e3</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[gsutil]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[torrito]]></dc:creator>
            <pubDate>Wed, 19 Aug 2020 07:36:00 GMT</pubDate>
            <atom:updated>2020-08-20T07:21:11.349Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have your logs archive in Google Cloud bucket this is how you can query them:</p><ul><li>use BigQuery (if you have permissions)</li><li>download log files locally and query them on your machine</li><li>use Cloud Shell (this is what I recommend to do)</li></ul><p>Using Cloud Shell is the best way to go imo because you are not downloading log files to your own machine (which may take a lot of time) whereas you are doing that while being logged in to some machine inside Google Cloud infrastructure. This gives you the best download speed possible.</p><p>So this is my current flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVpPSQZju5mcm0Ze29bHaw.png" /></figure><ul><li>open Cloud Shell (the button for that is located in the top right corner in GC Console)</li><li>you should see a terminal-like widget at the bottom of you screen</li><li>now you can run gsutil commands in that terminal and dump found results in a temporary files</li><li>after that you can download those files to your local machine</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSk4v3uUK_T2pLjje602CQ.png" /></figure><p>Here is an example of how you can query several files and dump results in a temp file:</p><pre>gsutil -m cat gs://prod-apps_logs/backend/2020/06/29/*.json | fgrep 96b397ca5bf8 &gt; 0629.log</pre><p>After running this command you will get a temp file 0629.log in your home directory. You can download it to your local machine for further analysis.</p><p>Hint: if your older logs are gzipped — use zcat:</p><pre>gsutil -m cat gs://data/prod/2019/06/01/log__2019_06_01.json.gz | zcat | fgrep 96b397ca5bf8 &gt; 190601.log</pre><p>Cheers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61a8bfc982e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>