<?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 Sergey Nevzorov on Medium]]></title>
        <description><![CDATA[Stories by Sergey Nevzorov on Medium]]></description>
        <link>https://medium.com/@s.nevzor56?source=rss-1d8aa7a7aebc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0mghvO88pSe-54De0_-Hpw.jpeg</url>
            <title>Stories by Sergey Nevzorov on Medium</title>
            <link>https://medium.com/@s.nevzor56?source=rss-1d8aa7a7aebc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:57:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@s.nevzor56/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[Shake It, Baby!]]></title>
            <link>https://medium.com/@s.nevzor56/shake-it-baby-4924bafb719d?source=rss-1d8aa7a7aebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4924bafb719d</guid>
            <dc:creator><![CDATA[Sergey Nevzorov]]></dc:creator>
            <pubDate>Thu, 28 Jul 2016 18:45:30 GMT</pubDate>
            <atom:updated>2016-07-28T18:54:09.911Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FWjjXDenYaxQys%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=http%3A%2F%2Fgiphy.com%2Fgifs%2Fdog-internet-picture-WjjXDenYaxQys&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FWjjXDenYaxQys%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/736575540871ed51ef1b2fb8dcc77df0/href">https://medium.com/media/736575540871ed51ef1b2fb8dcc77df0/href</a></iframe><p>To make apps appeal to our audience we add different animations or sounds, creating a connection between user and app. For this blog, I followed a tutorial which showed me how to add small app snippets of sound that play when you shake the phone. I used<strong> AVFoundation framework</strong> to add sound to the app.</p><p>So, let’s make this app.</p><p>Create a<strong> new project</strong>. To add sound to your app, you must import the <strong>AVFoundation Framework</strong>. Click on your project name, on the top left corner. Then choose <strong>Target -&gt; Build Phases -&gt; Link Binary With Libraries.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94bJaey5U4dNpfAUxxCbZg.png" /></figure><p>Press “+” sign.</p><p>In the search bar find the framework you need and add it. <strong>AVFoundation framework</strong> is amazing! Go and find more about it <a href="https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundationFramework/"><strong><em>here</em></strong></a>.</p><p>Now let’s code a little bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NL0oY7B1n1dGRyyzLpymCA.png" /></figure><ol><li>Importing framework to your file. Now we have access to all AVFoundation methods.</li><li>Creating a variable of type AVAudioPlayer.</li><li>Writing a function which takes two parameters.</li></ol><p>Creating a variable of type Array where we are storing the names of our sounds as Strings. There is a great <a href="http://www.freesfx.co.uk/"><strong><em>website</em></strong></a> where you can find a bunch of sounds for free. Just download the sounds you want and then drag and drop them to your project. Name them properly and short for convenience. We are going to use the names in our Array.</p><p>5. Detecting a shake motion.</p><p>6. Creating a random number to use as an index number for plucking out a random sound name from our Array.</p><p>7. Getting the file location for our sound.</p><p>8. Try to find the sound using the fileLocation and play it if found.</p><p>Done. Super easy! Shake It Baby!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*Eqcfmu2aI2_RkX_5_1ao5A.png" /></figure><p>References:</p><ul><li><a href="http://www.freesfx.co.uk/">freeSFX.co.uk - Download Free Sound Effects</a></li><li><a href="https://www.udemy.com/the-complete-ios-9-developer-course">The Complete iOS 9 Developer Course - Build 18 iOS9 Apps</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=http%3A%2F%2Fwidgets.itunes.apple.com%2Fwidget.html%3Fc%3Dus%26brc%3DFFFFFF%26blc%3DFFFFFF%26trc%3DFFFFFF%26tlc%3DFFFFFF%26d%3D%26t%3D%26m%3Dsoftware%26e%3Dsoftware%2CiPadSoftware%26w%3D250%26h%3D300%26ids%3D1034678284%26wt%3Ddiscovery%26partnerId%3D%26affiliate_id%3D%26at%3D%26ct%3D&amp;url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fbuttafyngas%2Fid1034678284%3Fmt%3D8&amp;image=http%3A%2F%2Fis4.mzstatic.com%2Fimage%2Fthumb%2FPurple6%2Fv4%2F86%2F62%2F2b%2F86622baf-811c-a5cc-88e2-79447d116e20%2Fsource%2F1200x630bf.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=apple" width="250" height="300" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ce8ca05aa0caeab5088a64fd67e2b0b/href">https://medium.com/media/5ce8ca05aa0caeab5088a64fd67e2b0b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4924bafb719d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Navigation Bar]]></title>
            <link>https://medium.com/@s.nevzor56/custom-navigation-bar-44b0e6f61c87?source=rss-1d8aa7a7aebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b0e6f61c87</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Sergey Nevzorov]]></dc:creator>
            <pubDate>Wed, 27 Jul 2016 15:59:37 GMT</pubDate>
            <atom:updated>2016-07-27T16:12:01.043Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you know that you can customize a Navigation Bar? Let’s do it. It’s very easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*azEBu0Zxn4ayu4ZyxQB0cw.jpeg" /></figure><p>Create a new project. Go to storyboard. Click on the ViewController. Go to “<strong>Editor -&gt; Embed in -&gt; Navigation Controller</strong>”. So, a Navigation Bar was created. Now add two bar buttons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*b73lSxqci3-vZTvj0Ur1zA.png" /></figure><p>Add an image to your <strong>Assets.xcassets </strong>folder that you would like to display in the Navigation Bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKQNKFrSNyUMP7BKn9iIZA.png" /></figure><p>Let’s code now. Go to <strong>ViewController.swift.</strong></p><p>Write a new function <strong>override func viewDidAppear(animated: Bool).</strong></p><p>Then add this code to the function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G32VavoQNycz9KsDqiyJQA.png" /></figure><p>Now let’s go through code line by line.</p><ol><li>Initializing the Navigation Bar.</li><li>Defining the style of our Navigation Bar.</li><li>Setting the color of our bar buttons.</li><li>Initializing the imageView, so we have a place to display our image.</li><li>Creating an image and setting it to our imageView.</li><li>Adding imageView to our Navigation Bar.</li><li>Done. Run the project</li></ol><p>Your Navigation Bar was customized. Super easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*HOvUXn4DKTEkrVv88qbNKA.png" /></figure><p>References:</p><p><a href="http://swiftbook.ru/">http://swiftbook.ru/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b0e6f61c87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terminal Keyboard Short Cuts & Fun.]]></title>
            <link>https://medium.com/@s.nevzor56/terminal-keyboard-short-cuts-fun-e19671e69f1?source=rss-1d8aa7a7aebc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e19671e69f1</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Sergey Nevzorov]]></dc:creator>
            <pubDate>Wed, 29 Jun 2016 12:29:43 GMT</pubDate>
            <atom:updated>2016-06-29T12:29:43.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*boG7OQrejv7UPgqCuZSSxQ.jpeg" /></figure><p>To start working with Terminal just open it. Then go to the preferences and in the profiles choose the style you like. Let’s set the green one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0QtnmeDTNTetTl44qZc-g.png" /></figure><p>When you choose the style, click the “Default” button on the bottom right. Close the Terminal and open it to make your setting active.</p><p>Tada!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwsA7qiahlGC5MoPo1lNRg.png" /></figure><p>After we chose our style let’s work with files and directories. We are going to create files and directories, copy files, move files, and delete files and directories.</p><p>To start working with Terminal, let’s see what is the current directory we are in. Use <strong>ls</strong> (listing) in command line and press <strong>enter</strong>. We will see “<strong>~</strong>” sign, represent root directory of our file system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ww0ycJs7V1o5wjqoXFdvw.png" /></figure><p>Let’s navigate inside the <strong>Desktop</strong> folder by using <strong>cd</strong> (change directory) command and the name of the folder, you want to get into. For convenience, use <strong>tab</strong> button to autocomplete your folder name. Just type first letter of your folder and press <strong>tab</strong>. If it doesn’t autocomplete for you, there are probably more than one folder with same beginning name. Keep going. Type second letter and <strong>tab</strong> again, until it done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVfodhYhqL92I7Rg4_sTdw.png" /></figure><p>To make sure you are in the <strong>Desktop</strong> directory check the name of the current directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*430YagXfMX32QzivIDc87Q.png" /></figure><p>Let’s go to the <strong>Terminal Test</strong> folder that was created for our test. To do this type “<strong>cd Terminal Test</strong>” in command line.</p><p>Also go to the <strong>Finder</strong> and find <strong>Terminal Test</strong> file. We can see that our <strong>Terminal Test</strong> file is empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkus8i0BhaN9ylnxUSPu7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWAloslED4lSEKmGGGXOSw.png" /></figure><p>Our <strong>Terminal</strong> screen looks messy now. You can delete command history by using <strong>⌘ + K</strong>.</p><p>Now let’s create our first file in our <strong>Terminal Test</strong> directory. To do this type <strong>touch &lt;yourFileName&gt; </strong>in command line. Let’s name it <strong>objectiveCFile</strong>.</p><p>Great! We have a file!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nl0w7r3nph1M-38bVqkLhQ.png" /></figure><p>Check it in <strong>Terminal</strong> as well. Use <strong>ls</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hlo_y389MkIEiBBMMO3VQg.png" /></figure><p>Cool!</p><p>Now we need to create new directory, let’s call it “<strong>DirectoryOne</strong>”. Use <strong>mkdir </strong>command to create a new directory in terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKU1sG_Pv-HstHOrP8Umdw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMatQpaFI-vGQ4qALjnRQA.png" /></figure><p>Let’s say we want to copy our <strong>objectiveCFile</strong> to our <strong>DirectoryOne</strong>. Type <strong>cp</strong> (copy) <strong>objectiveCFile DirectoryOne</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcstPC6SriAyIivlSImFyA.png" /></figure><p>Tada! The copy of our file in the <strong>DirectoryOne</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6aA2LpUA8l1iV0TFNBOFnw.png" /></figure><p>So, let’s now rename our origin <strong>objectiveCFile</strong> file. To do this let’s type <strong>mv</strong> (move/rename) <strong>objectiveCFile &lt;newFileName&gt;</strong>. Let’s call renamed file <strong>anotherObjectiveCFile</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwC38HvS69ojOvmhr0foHg.png" /></figure><p>Congrats with the new name!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtxAP82ZaVGcB3m2tcxFiw.png" /></figure><p>We can move our file with the same <strong>mv</strong> command. Let’s create a new directory <strong>DirectoryTwo</strong> and move our file there. It will be one directory inside another directory (nested). First of all let’s create a new directory. <strong>mkdir DirectoryOne/&lt;newDirectoryName&gt;.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mC3IuROJuTtSrZvETekJfA.png" /></figure><p>Now we have <strong>DirectoryTwo</strong> inside <strong>DirectoryOne.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9aAcAujjkeU2DLXlp1EMzQ.png" /></figure><p>Let’s move our <strong>anotherObjectiveCFile</strong> to the <strong>DirectoryTwo</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_hzXyMdfMj2fSThff28bmQ.png" /></figure><p>It works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UHzswmYxE0ReE48CdhNGw.png" /></figure><p>Now let’s remove our <strong>anotherObjectiveCFile</strong>. To do so, we have to be sure that we are inside the directory where our file is located. Check it with <strong>ls</strong> command.</p><p>Wait! We are in the <strong>DirectoryOne,</strong> but our file in the <strong>DirectoryTwo.</strong> Let’s go to the <strong>DirectoryTwo</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZwZCUKeHZadbKFBj8FkTQ.png" /></figure><p>We are there! Let’s remove our file. <strong>rm</strong> (remove) <strong>anotherObjectiveCFile</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EXDRk4PbJeS6i-MilHouaA.png" /></figure><p>Done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*maAZxehmdovqdg3MNNSNfg.png" /></figure><p>So, let’s remove our <strong>DirectoryTwo</strong> now. To do this, let’s go to our <strong>DirectoryOne</strong>. Type <strong>cd ..</strong> (it means go one step up) and use <strong>ls</strong> to check where are we now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlnZDfdKSar7aLnd8fJl6Q.png" /></figure><p>We are in the <strong>DirectoryOne</strong>. Lovely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MdmqRBOLyna4PpAyzGUcA.png" /></figure><p>It’s time to remove <strong>DirectoryTwo</strong>. Type: <strong>rm -R DirectoryTwo</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6z_rjdt9OHwtS0ZmZ7MXGA.png" /></figure><p><strong>DirectoryTwo</strong> was successfully removed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myKCrN-owjMwQF-5KMQPqw.png" /></figure><p>To know exactly where are we right now, type: <strong>pwd</strong> and you will see the whole path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LCDDhfH-lE7DDUuSAmUKtw.png" /></figure><p>So, now let’s delete the <strong>Terminal Test</strong> file. For that, we have to exit from the file which we want to remove. Type <strong>cd</strong>. This command will return us to our <strong>root</strong> directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYiJGufb-sV9S969lxmStA.png" /></figure><p>Now, let’s go to our <strong>Desktop</strong>. Find our <strong>Terminal Test</strong> there and remove it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPxnz309jYQ8Jfi0pIa4vg.png" /></figure><p>Done. Our <strong>Terminal Test</strong> no more exist =(</p><h3><strong>Fun Fun Fun</strong></h3><p>Besides general commands which we are going to use during our work, there are also fun things in Terminal.</p><p>For example, type <strong>brew install sl </strong>in command line.<strong> </strong>After that, every time when you make spelling mistake in terminal command <strong>ls </strong>( type as “<strong>sl</strong>”), you will see a train passing trough your screen.</p><p>Type in terminal <strong>telnet towel.blinkenlights.nl </strong>and you can watch the entire episode of Star Wars four (A New Hope). Also, don’t forget that you can play some classic games on your terminal, such as Tetris, Pong, and others.</p><p>How cool is that!</p><p>Enjoy!</p><p>SOURCES AND FURTHER READING:</p><ul><li><a href="https://github.com/0nn0/terminal-mac-cheatsheet">GitHub - 0nn0/terminal-mac-cheatsheet: List of my most used commands and shortcuts in the terminal for Mac</a></li><li><a href="https://developer.apple.com/library/mac/documentation/OpenSource/Conceptual/ShellScripting/CommandLInePrimer/CommandLine.html">Command Line Primer</a></li><li><a href="http://geekingspree.blogspot.com/2013/05/tree-things-to-make-your-osx-shell.html">Geeking Spree</a></li><li><a href="http://www.guidingtech.com/26214/cool-mac-terminal-fun-tricks/">4 Cool Tricks to Have Some Fun With the Mac Terminal</a></li><li><a href="http://www.makeuseof.com/tag/4-fun-and-simple-things-you-can-do-using-terminal-mac/">4 Fun And Simple Things You Can Do Using Terminal [Mac]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19671e69f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>