<?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 yeboah isaac on Medium]]></title>
        <description><![CDATA[Stories by yeboah isaac on Medium]]></description>
        <link>https://medium.com/@isayeb?source=rss-bf7406082cae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wak97foln-Kb9-8q.jpg</url>
            <title>Stories by yeboah isaac on Medium</title>
            <link>https://medium.com/@isayeb?source=rss-bf7406082cae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 17:09:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@isayeb/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[You Want To Be An Object Oriented Programming Guru, Then Read This…]]></title>
            <link>https://medium.com/@isayeb/you-want-to-be-an-object-oriented-programming-guru-then-read-this-58262fd22e3e?source=rss-bf7406082cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/58262fd22e3e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[yeboah isaac]]></dc:creator>
            <pubDate>Thu, 24 Sep 2015 23:49:41 GMT</pubDate>
            <atom:updated>2015-09-25T01:28:56.168Z</atom:updated>
            <content:encoded><![CDATA[<p>Object oriented Programming is quite difficult to understand and the terms associated with it. But i trust that after reading this article will make things very simple and easy to understand and implement.</p><p><strong>INHERITANCE</strong></p><p>Inheritance is the used when the traits or characteristics from a parent or top level categories or group are transmitted or transferred to to sub level categories or group.</p><p>It is best used when you want to write less code and avoid duplication of codes when you know you’ll be creating sub groups or sub categories of things which similar characteristics.</p><p><strong>Example :</strong></p><p>You want to create a cat and a dog group and you know that have some similar characteristics they share. So to avoid duplicating those similarities for cat and dog, instead, you place them into a top level group called Animal knowing well very that both cat and dog belongs to the kingdom Animalia.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab46d12c4ff9069a95276687d6e7908d/href">https://medium.com/media/ab46d12c4ff9069a95276687d6e7908d/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a17cd4363862d6591890d30a8a95880/href">https://medium.com/media/7a17cd4363862d6591890d30a8a95880/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc2f7e84f6ac899e25d10a7624b1da12/href">https://medium.com/media/bc2f7e84f6ac899e25d10a7624b1da12/href</a></iframe><p><strong>POLYMOPHISM</strong></p><p>Polymophism is the term used to refer to being able to create different groups of objects of from a super group in this case Dog and Cat sub classes from Animal.java class</p><p><strong>Example :</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cad38aae99dbc19d3a2ad349f633e03/href">https://medium.com/media/5cad38aae99dbc19d3a2ad349f633e03/href</a></iframe><p><strong>INTERFACE</strong></p><p>Interface on the other hand allows you to create and implement methods in other sub class especially when you can only extend one super or top level class and not multiple classes. Unlike the other class types, interface will force you to implement or make use of all the methods you define in it.</p><p>It is by custom name as an adjective to better describe the role it plays. Eg. Drinkable, Eatable, Runnable etc.</p><p><strong>Example :</strong></p><p>If you want to now include another animal type say, fish which swims in water as its movement type, you can implement swimable as a nice and self descriptive interface name.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18497429b15316eb47c16f0963effc69/href">https://medium.com/media/18497429b15316eb47c16f0963effc69/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/453a3d4282c249e6aeaff4f12f3958cc/href">https://medium.com/media/453a3d4282c249e6aeaff4f12f3958cc/href</a></iframe><p><strong>ABSTRACT</strong></p><p>As the name suggests, you are allowed to create as many methods you want. Very similar to how the Interface how works but the major difference is that unlike the Interface that forces you to implement every method you create, abstract does not. You have the privilege to decide the mthods to implement</p><p><strong>Example :</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/771e70ecf51e81716b61d3b072c8d50e/href">https://medium.com/media/771e70ecf51e81716b61d3b072c8d50e/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fba307607392fa458a8858840ed4a4a/href">https://medium.com/media/4fba307607392fa458a8858840ed4a4a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58262fd22e3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why It’s Better To Use BufferedReader And BufferedWriter In Java]]></title>
            <link>https://medium.com/@isayeb/why-it-s-better-to-use-bufferedreader-and-bufferedwriter-5d9ba29a1a77?source=rss-bf7406082cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d9ba29a1a77</guid>
            <category><![CDATA[vv]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[yeboah isaac]]></dc:creator>
            <pubDate>Wed, 23 Sep 2015 00:43:43 GMT</pubDate>
            <atom:updated>2015-09-23T00:54:16.769Z</atom:updated>
            <content:encoded><![CDATA[<p>In computing buffer refers to a portion of memory set aside to store data, often before it is sent to external device or as it is received from an external device.</p><p>So what <strong>BufferedReader</strong> does is to gather data(characters) into a buffer or a pack so that everything is read one time. Without this you would be trying to read everything each time a new character was needed to be read.</p><p><strong>BufferedWriter</strong> do is to gather data(characters) into a buffer or a pack so that everything is written one time. Without this you would be trying to write everything each time a new character was needed to be written or generated.</p><h3>Benefits of Using Buffer</h3><p><strong><em>Unbuffered</em> I/O. </strong>This means each read or write request is handled directly by the underlying OS. This can make a program much less efficient, since each such request often triggers disk access, network activity, or some other operation that is relatively expensive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d9ba29a1a77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Skip Typing Username/Password When Using Github]]></title>
            <link>https://medium.com/@isayeb/how-to-skip-typing-username-password-when-using-github-4b0c819ba29b?source=rss-bf7406082cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0c819ba29b</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[yeboah isaac]]></dc:creator>
            <pubDate>Sat, 05 Sep 2015 16:36:50 GMT</pubDate>
            <atom:updated>2015-09-05T16:36:50.511Z</atom:updated>
            <content:encoded><![CDATA[<p>With git 1.7.9 or later, you can just use one of the following credential helpers:</p><pre>git config --global credential.helper cache</pre><p>… which tells git to keep your password cached in memory for (by default) 15 minutes. You can set longer timeout with:</p><pre>git config --global credential.helper &quot;cache --timeout=3600&quot;</pre><p>GitHub’s help also suggests that if you’re on Mac OS and used homebrew to install git, you can use the native Mac OS keystore with:</p><pre>git config --global credential.helper osxkeychain</pre><p>For Windows, there is a helper called git-credential-winstore.exe or wincred in msysgit.</p><p>For Linux, you can use gnome-keyring(or other keyring implementation such as KWallet).</p><p><strong>With git versions before 1.7.9</strong></p><p>With versions of git before 1.7.9, this more secure option is not available, and you’ll need to change the URL that your origin remote uses to include the password in this fashion:</p><pre>https://you:password@github.com/you/example.git</pre><p>… in other words with :password after the username and before the @. You can set a new URL for your origin remote with:</p><pre>git config remote.origin.url https://you:password@github.com/you/example.git</pre><p>Make sure that you use https and you should be aware that if you do this, your github password will be stored in plaintext in your .git directory, which is obviously undesirable.</p><p><strong>With any git version (well, since v0.99)</strong></p><p>An alternative approach is to put your username and password in your ~/.netrc file, although, as with keeping the password in the remote URL, this means that your password will be stored on the disk in plain text and is thus less secure and not recommended. However, if you want to take this approach, add the following line to your ~/.netrc:</p><pre>machine &lt;hostname&gt; login &lt;username&gt; password &lt;password&gt;</pre><p>… replacing &lt;hostname&gt; with the server’s hostname, and &lt;username&gt; and &lt;password&gt; with your username and password. Also remember to set restrictive file system permissions on that file:</p><pre>chmod 600 ~/.netrc</pre><p>Note that on Windows, this file should be called _netrc, and you may need to define the %HOME% environment variable — for more details see</p><p><strong><em>Reference : Stackoverflow.com</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0c819ba29b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Description of Some Basic Unix Command Line Utilities]]></title>
            <link>https://medium.com/@isayeb/description-of-some-basic-unix-command-line-utilities-88f0440c3108?source=rss-bf7406082cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/88f0440c3108</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[unix]]></category>
            <dc:creator><![CDATA[yeboah isaac]]></dc:creator>
            <pubDate>Sun, 23 Aug 2015 02:48:00 GMT</pubDate>
            <atom:updated>2015-08-23T02:48:55.116Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>cut</strong> is a Unix command line utility which is used to extract sections from each line of input — usually from a file.</p><p>Extraction of line segments can typically be done by bytes (-b),characters (-c), or fields (-f) separated by a delimiter (-d — the tab character by default). A range must be provided in each case which consists of one of N, N-M, N- (N to the end of the line), or -M (beginning of the line to M), where N and M are counted from 1 (there is no zeroth value).</p><p>Assuming a file named “file” containing the lines:</p><pre>foo:bar:baz:qux:quux<br>one:two:three:four:five:six:seven<br>alpha:beta:gamma:delta:epsilon:zeta:eta:theta:iota:kappa:lambda:mu<br>the quick brown fox jumps over the lazy dog</pre><p>To output the fourth through tenth characters of each line:</p><pre>$ cut -c 4-10 file</pre><p>This gives the output:</p><pre>:bar:ba<br>:two:th<br>ha:beta<br> quick</pre><p>It requires a mandatory arguments to execute</p><p>cut [-b] [-c] [-f list] [-n] [-d delim] [-s] [file</p><p><strong>fg</strong> is a job control command in Unix and Unix-like operating systems that resumes execution of a suspended process by bringing it to the <em>foreground</em> and thus redirecting its standard input and output streams to the user’s terminal.</p><p>it takes the arguments :</p><p>fg (process) | (process)…..</p><p><strong>Secure copy</strong> or <strong>SCP</strong> is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.</p><p>Copying file to host:</p><pre>scp <em>SourceFile</em> <em>user</em>@<em>host</em>:<em>directory</em>/<em>TargetFile</em></pre><p>Copying file from host:</p><pre>scp <em>user</em>@<em>host</em>:<em>directory</em>/<em>SourceFile</em> <em>TargetFile</em><br>scp -r <em>user</em>@<em>host</em>:<em>directory</em>/<em>SourceFolder</em> <em>TargetFolder</em></pre><p>Note that if the remote host uses a port other than the default of 22, it can be specified in the command. For example, copying a file from host:</p><pre>scp -P 2222 <em>user</em>@<em>host</em>:<em>directory</em>/<em>SourceFile</em> <em>TargetFile</em></pre><p><strong>SSH</strong> (<strong>Secure Shell</strong>)client utility in unix or linux server is used to logging into a remote host and execute commands on the remote machine. The rlogin and rsh commands can also be used to login into the remote machine. However these are not secure. The ssh command provides a secure connection between two hosts over a insecure network. The syntax ssh command is</p><pre>ssh [-l username] hostname | user@remote-hostname [command]</pre><p>Let see the examples of ssh command.</p><p>1. Version of the SSH command We can find the version of SSH installed on the unix system using the -V option to the ssh. This is shown below:</p><pre>&gt; ssh -V<br>OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008</pre><p>2. Copying files between remote host and local host. We can use the scp command to copy the files securely between the local host and remote host using the ssh authentication. To copy the file from local host to remote hosts /var/tmp/ directory, run the below scp command.</p><pre>scp filename user@remote-host:/var/tmp/</pre><p>To copy the file from remote hosts /usr/local/bin/ directory to local hosts current directory, run the below scp command.</p><pre>scp user@remote-host:/usr/local/bin/add.sh .</pre><p><strong>Uptime</strong> is a measure of the time a machine, typically a computer, has been working and available. Uptime is the opposite of downtime.</p><p>It is often used as a measure of computer operating system reliability or stability, in that this time represents the time a computer can be left unattended without crashing, or needing to be rebooted for administrative or maintenance purposes</p><p>In linux kennel it looks like ;</p><pre>$ uptime<br>  18:17:07 up 68 days,  3:57,  6 users,  load average: 0.16, 0.07, 0.06</pre><p>Shows how long the system has been on since it was last restarted:</p><pre>$ cat /proc/uptime<br>  350735.47 234388.90</pre><p><strong>Netstat</strong> command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc.,</p><p><strong>Example netstat command</strong>.</p><p>List all the ports(both listening and non listening ports)</p><pre># netstat -a | more<br>Active Internet connections (servers and established)<br>Proto Recv-Q Send-Q Local Address           Foreign Address         State<br>tcp        0      0 localhost:30037         *:*                     LISTEN<br>udp        0      0 *:bootpc                *:*                                </pre><pre>Active UNIX domain sockets (servers and established)<br>Proto RefCnt Flags       Type       State         I-Node   Path<br>unix  2      [ ACC ]     STREAM     LISTENING     6135     /tmp/.X11-unix/X0<br>unix  2      [ ACC ]     STREAM     LISTENING     5140     /var/run/acpid.socket</pre><p><strong>top</strong> is a basic Unix command which is very useful for observing the current state of your Unix system, by default presenting you the list of top users of your system’s resources — CPU shares and memory.</p><p>This is the line of <strong>top </strong>which confirms how many hours (or even days!) your system has been up, shows you the number of logged in users, and reports the average system load numbers for the last minute, 5 minutes and 15 minutes.</p><pre>top - 13:29:09 up 2 days,  7:13,  4 users,  load average: 0.07, 0.02, 0.00</pre><p><strong>tar</strong> command is short for tape archiving, the storing of entire file systems onto magnetic tape, which is one use for the command. However, a more common use for tar is to simply combine a few files into a single file, for easy storage and distribution.</p><p>To combine multiple files and/or directories into a single file, use the following command:</p><pre>tar -cvf file.tar inputfile1 inputfile2</pre><p>To separate an archive created by tar into separate files, at the shell prompt, enter:</p><pre>tar -xvf file.tar</pre><p><strong>zip </strong>utility is used to combine as well as compress files in Linux.In this article i have included the uses of zip command and how to secure zip files.</p><p>To create a zip file, enter:</p><pre><strong>zip</strong> filename.<strong>zip</strong> input1.txt input2.txt resume.doc pic1.jpg</pre><p>To include the contents of a directory in a zip archive, enter:</p><pre><strong>zip</strong> -r backup.<strong>zip</strong> /data</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88f0440c3108" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>