<?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 Santosh Shrestha on Medium]]></title>
        <description><![CDATA[Stories by Santosh Shrestha on Medium]]></description>
        <link>https://medium.com/@santoshstha2010?source=rss-3c24f36b61c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CcmUIiwnJnjPN1Mi.</url>
            <title>Stories by Santosh Shrestha on Medium</title>
            <link>https://medium.com/@santoshstha2010?source=rss-3c24f36b61c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:47:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@santoshstha2010/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[Debugging JavaScript]]></title>
            <link>https://medium.com/@santoshstha2010/debugging-javascript-8d96fa93135b?source=rss-3c24f36b61c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d96fa93135b</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Santosh Shrestha]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 10:14:17 GMT</pubDate>
            <atom:updated>2019-02-22T10:14:17.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*bxEkHw1xewxOFjmGunb-Cw.png" /><figcaption>source:wiki</figcaption></figure><h3>Print to console</h3><h3>console.log</h3><p>All of the examples below are ones you can copy-paste to your developer console and starting playing around with.</p><p>One of the most underrated but definitely powerful tool is console.log and its friends. It&#39;s also usually the first and easiest step in inspecting what might be the issue.</p><pre>console.log(`The value of variable foo is ${foo}`)</pre><p>The most simple way is just to log some extra text with variable values. ES6 and its template literals make it a breeze. No need to worry about string concatenation.</p><p>To print out multiple values, you can do</p><pre>console.log(`name: ${name}, age: ${age}, city: ${city)`)</pre><p>but thankfully, ES6 brings us object property value shorthand. It allows us to create objects where the key will become the variable name and value its value.</p><pre>console.log({name, age, city})</pre><p>You can even color your output with CSS!</p><pre>console.log(`%c This is blue,%c and this is green`, &#39;color: blue&#39;, &#39;color: green&#39;)</pre><h3>console.table</h3><p>For the longest time, the usage above was the extent of how I used printing to the console. But lately I’ve learned so many new tools that might be new for you as well.</p><pre>let dog = {<br>  name: &#39;Bolt&#39;,<br>  age: 3,<br>  isGood: true<br>}</pre><pre>let cat = {<br>  name: &#39;Grumpy&#39;,<br>  age: 5,<br>  isGood: false<br>}</pre><pre>console.table([dog, cat])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*FB7Q2RKWR9WQGJpx.png" /></figure><p>With console.table you get a nicely outputted tabular view into your data. It&#39;s very nice when you have objects that share the same keys.</p><h3>console.trace</h3><p>If you want to inspect the stack trace of your function calls, you can use console.trace()</p><pre>function foo(bar) {<br>  console.trace();<br>  return bar * 2;<br>}</pre><pre>console.log(foo(21));</pre><h3>console.count</h3><p>Sometimes you need to keep track of how many times a line has been executed. Adding a new variable, keeping track of it and console.log’ing it is cumbersome and can end up leaving unused variables in your code.</p><pre>function foo(bar) {<br>  if(bar &gt; 0) {<br>    console.count(&#39;Bar was positive&#39;)<br>    return true;<br>  } else {<br>    console.count(&#39;Bar was 0 or negative&#39;)<br>    return false;<br>  }<br>}</pre><pre>foo(1)<br>foo(0)<br>foo(42)<br>foo(-210)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*whvlECu-9ZwyQg4B.png" /></figure><h3>console.group</h3><p>If your application prints out a lot of output, sometimes you might want to group it bit better. Instead of inserting manual console.log(&#39;Here be dragons&#39;), you can use console.group</p><pre>function foo(bar) {<br>  console.group(&#39;At function body&#39;)<br>  console.log(`Executing function foo with a list of ${bar.length} items`)<br>  console.group(&#39;Inside loop&#39;)<br>  bar.forEach(baz =&gt; {<br>    console.log(`Value of baz is ${baz}`)<br>  })<br>  console.groupEnd()<br>  console.log(`Function foo has finished`)<br>  console.groupEnd()<br>}</pre><pre>foo([1,2,3,4])<br>foo([&#39;Bolt&#39;, &#39;Lassie&#39;, &#39;Doggo&#39;])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*3nrLZsB4LrQvWvcH.png" /></figure><h3>Debugger</h3><p>Javascript’s debugger keyword is a magical creature. It gives you access to the very spot with full access to local and global scope. Let&#39;s take a look at a hypothetical example with a React Component that gets some props passed down to it.</p><pre>const CardComponent = props =&gt; {<br>  debugger;<br>  return (<br>    &lt;h1&gt;{props.title}&lt;/h1&gt;<br>    &lt;ul&gt;<br>      {props.items.map(item =&gt; (&lt;li&gt;{item}&lt;/li&gt;))}<br>    &lt;/ul&gt;<br>  );<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*Y5NeSbo-zOX769qf.png" /></figure><p>When the component is rendered, if our browser’s developer tools are open, it will halt the execution and give you access to console. There you can take advantage of knowledge from the previous section and inspect what is inside props or any other variable available in the scope where debugger was executed.</p><p>I often use debugger as a quick prototyping tool: I jump into a particular spot in the code, look into what data I have and in what format and build small pieces of what’s to follow inside developer tools console and then move those things into the code itself.</p><p>This approach shortens the feedback loop from “write code in editor -&gt; refresh browser” to “write code in console -&gt; see the result”.</p><p>Once you’re in the debugger mode, you can also continue the execution line by line to see where your execution fails.</p><h3>Browser Dev Tools</h3><p>If you’re using the console.log and debugger, you are probably familiar with the Browser Developer Tools. And if not, you should familiarize yourself with them. They are bit different between browsers and I’m most familiar with Google Chrome so my examples will be from that. If you’re using Safari, Edge or Firefox, you can quite easily figure this out with some exploration or an Internet search.</p><h3>Conditional Breakpoints</h3><p>You can access the debugger state also without changing any code. In Sources tab of Chrome Dev Tools, you can open a Javascript file and click any line number to turn it into a blue arrow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*4nhAaphwWs-p5F9H.png" /></figure><p>What’s even more awesome, is you can make these breakpoints conditional by right-clicking the line number and selecting <strong>Edit breakpoint</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*7mMH1G1EqAKpGace.png" /></figure><p>While it instructs you to provide a boolean expression there, you don’t necessarily have to. I’ve used these breakpoint conditionals for adding a console.log to be run when that breakpoint conditional is hit. It will return undefined which is a falsy value – it will still print it but won&#39;t stop execution.</p><h3>Watch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/0*9mWqXmVxKINxLPCi.png" /></figure><p>On the right side of the Chrome Dev Tools is a collection on buttons and panels. While they all provide valuable tools to you, I’ll only highlight one (you can learn about the other ones yourself): watch.</p><p>Inside watch panel, you add variables and as the code is executed, it will show their current value. Instead of jumping in console after every breakpoint (for example in a loop), you can just look at the value in watch and see what happens.</p><h3>Network tab</h3><p>In the modern web development, HTTP calls to API endpoints are one of the most common ways to transfer data. Chrome Dev Tool’s Network tab is a wonderful example of how to inspect what’s going out and what’s coming in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*w6PnGWrvq8Al4peg.png" /></figure><p>Here I have made an API call to <a href="https://api.pokemontcg.io/v1/cards?name=charizard">https://api.pokemontcg.io/v1/cards?name=charizard</a> and I can directly inspect the response from the Network tab. This can help you figure out what data is returned and if it’s in the right format for your use.</p><p>By clicking around in the different tabs you can find out more information about the headers and responses as well as the performance of the call.</p><h3>Framework specific extensions</h3><p>The support for different frameworks via extensions is amazing. If you’re working on <a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi">React</a>, <a href="https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=fi">Redux</a>, <a href="https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd">Vue</a>, or <a href="https://chrome.google.com/webstore/detail/augury/elgalmkoelokbchhkhacckoklkejnhcd">Angular</a>, looking at those extensions is definitely worth the while.</p><p>I have my Redux tab open almost all of the time when working in React+Redux app because it gives me best visibility into what data is available.</p><p>Install the plugin (and restart your browser) and you’ll have great extended tools at your fingertips right in the Chrome Dev Tools.</p><h3>Logging</h3><p>While printing to console is helpful, it’s only useful when you’re developing the app. They do not persist and they don’t leave the client’s browser console so you won’t be able to look into the history of issues.</p><p>That’s where logging services come handy. Using tools like <a href="https://www.elastic.co/">Elasticsearch</a> or <a href="https://www.bugsnag.com/">BugSnag</a>, you can save your logs into the service and gain analytics and search into the issues. This is especially valuable when your user reports that something went wrong and you can just open your log service and go through what has happened.</p><p>Logging your logs to these services is simple. In BugSnag, you use their SDK and whenever something worth logging happens, just run</p><pre>try {<br>  something.risky()<br>} catch (e) {<br>  bugsnagClient.notify(e)<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*ud7tJw8MHxEyPE1X.png" /></figure><p>For small projects, you can take a look at <a href="https://github.com/akx/gentry">Gentry</a> created by a friend of mine.</p><h3>Non-Technical Approaches</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*TY30zIybnFc7sT8j.jpeg" /></figure><p>In addition to writing Javascript code and interacting with your browser, there are non-technical ways to debug your software.</p><h3>Rubber Duck Debugging</h3><p>Explaining what you are trying to do, what’s the encountered problem and what you have tried already to your colleague is a good tool. It forces you to think about the problem from multiple different aspects and phrase the question in a way that often helps you figure out the solution before your colleague has time to answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*zt-QRx1X5Gkj-ddp.jpg" /></figure><p>To save your colleagues time from this rather monologue-y approach, you should <a href="https://rubberduckdebugging.com/">talk to a duck</a>. I have one at my desk at work and while someone might think talking to a rubber duck is silly or insane, the approach really works. My duck is a special breed, it’s a detective duck and like everyone knows, detective ducks are super effective against programming bugs.</p><h3>Sleep &amp; Walk (not necessarily in that order)</h3><p>Step away from the computer and the problem. Let your unconscious mind work on it and think about something totally different. I often take 20 minute walks every afternoon and especially if there’s a nasty problem. Sleeping is another very good approach because it lets your mind clear itself from excess thoughts and crystallize the solution.</p><p>When I’m facing a particularly nasty issue, I do it like this:</p><p>1) Brain dump: writing down everything to my notebook. What’s the problem, which cases it happens with, what I have tried, what assumptions I have.</p><p>2) Go for a 20-minute walk, think about completely other stuff, enjoying fresh air and nature. Because I’ve written down everything, I don’t have to worry about forgetting things.</p><p>3) Back to desk. If I have gotten new fresh ideas about the problem while walking, I add those to my notes. After that, getting back to problem solving.</p><p>It sounds always counterintuitive to take breaks but it can improve both your problem-solving skills, your productivity and your happiness when you’re not pounding your head to the wall but giving your brain some slack. Best solutions are not forced but come from when you give yourself time and space to think about stuff.</p><h3>Wrap-up</h3><p>So what did we learn today?</p><p>console is a powerhouse in JavaScript. It’s most often used just for console.log but learning about its different abilities and capabilities is worth it.</p><p>Debugger is a friend. Whether it’s a tool to jump into state to figure out what’s wrong or to help you build the next piece of code interactively, using it effectively will improve your workflow.</p><p>Invest time in learning your browser’s Dev Tools. You can develop a React+Redux app with no extra tools but once you install extensions for both, you will gain much easier access to your Redux state, component state and props and basically everything that otherwise would require lots of console.logging and debugging. I have Firefox as my secondary browser solely because of their great built in CSS Grid tooling.</p><p>Start logging what happens in your app if you aren’t already doing that. It will give you insights into how it’s working, how it’s used and will let you solve some of the issues that pop up before all of your clients are sending angry emails to support.</p><p>Take breaks, talk to a duck, walk and sleep. A developer’s work is not (or at least, should not be) measured in hours typing the keyboard nor the lines of code created. I spend quite a lot of time away from my keyboard: writing notes to my notebook, sketching, designing, planning, taking walks, discussing matters with colleagues.</p><p>source dev.to</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d96fa93135b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker]]></title>
            <link>https://medium.com/@santoshstha2010/docker-21de5b83858b?source=rss-3c24f36b61c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/21de5b83858b</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Santosh Shrestha]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 12:26:20 GMT</pubDate>
            <atom:updated>2019-02-08T12:26:20.933Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker is a software which runs containers. A container is a “isolated package” including a piece of software.</p><p>A container does not include a full OS, but rather just the parts that it needs to run the software itself.</p><p>This makes a container a whole lot smaller than a traditional virtual machine and a whole lot less resource hungry.</p><p>Easiest way to “explain” docker is to say that it’s much like a virtual machine.</p><p>It’s not entirely true, but we go with it anyways, because that way anyone whom are used to VM’s will feel safe!</p><p>Now, the best thing with a container, is that it’s exactly the same on all computers that runs it, regardless OS! That means that it will run the same on a linux computer as on windows or mac!</p><h3>To use docker</h3><p>First off, you will need to<a href="https://www.docker.com/"> install docker</a>. I’m not going to explain this step though,</p><p>Every container you run will be using a docker image. A image is a pre-built package on which the container will be based. Images can be built locally or by using a hosted alternative like<a href="https://hub.docker.com/"> docker hub</a>.</p><p>Building your own images will let you customize the containers a whole lot more than using pre built images, but in this first part we will just use</p><p>images from docker hub rather than jump in to writing dockerfiles right away!</p><h3>Retrieving pre-built images</h3><p>On docker hub one can find images for most things that one could want. In our first example,</p><p>we will use the official docker tutorial image called<a href="https://hub.docker.com/_/hello-world/"> hello-world</a>.</p><p>The first thing we have to do is to fetch the image to the computer and your local docker service.</p><p>No! this is not done by using curl, it’s already built in to the docker engine!</p><p>Fetching the image is done by using the docker pull command:</p><p>Command: docker pull hello-world</p><p><em>Note: its also possible to just run the image, docker will fetch it, but pull is a good thing to start with.</em></p><p>It can take some time to pull a docker image over the net, but this image should be one of the faster (its under a kb in size).</p><p>When we got the image we can start a container based on the image.</p><h3>Running the image</h3><p>Starting a container for the first time is done by using the docker run command, and there are a few important arguments that one can or even should apply.</p><p>Command : docker run — rm — name hello hello-world</p><p>When running the command like this, we will start a container which we have named hello, when the container is stopped for some reason, it will be removed</p><p>we have ensured this by the — rm argument. If you want the container to keep on existing after it has stopped (so that it can be started again), just omit the — rm argument!</p><h3>Further down the rabbit hole</h3><p>Running a hello-world application like this might not be very fun, so we could go on with something a bit more useful.</p><p>How about installing dependencies in a composer project? That could be useful I bet!</p><p>You do not have to install composer or anything locally for this, all that is done in the container.</p><p>First off we need a composer file, cause that is the project “base”.</p><p>Example:</p><p>{<br> “name”: “my/project”,<br> “description”: “Just testing docker!”,<br> “require”: {<br> “jitesoft/exceptions”: “2.2.0”<br> }<br>}</p><p>Put the file in a empty directory and open the terminal there.</p><p>After creating a composer file we will need to find a composer image that we like. I personally always use one I made myself which can be fetched with docker pull jitesoft/composer.</p><p>When we got the composer image we will want to run the image… but we need to add the files to the image someway…</p><p>Docker and volumes (filesystem) is kind of a special thing and there is a whole lot of stuff to learn about it but in this case we will go the easy way and just share a volume!</p><p>Sharing a volume with a container is done when its started and the command looks something like this:</p><p>docker run — rm -v $(pwd):/app jitesoft/composer install — no-interaction</p><p>This will start a container which is based on the jitesoft/composer image, the image will have the current directory ($(pwd) will put that into the command) to the /app directory in the container,</p><p>it will run composer install — no-interaction and install the dependencies that is required, then it will stop and clean up itself (remove due to — rm).</p><h3>More run arguments!</h3><p>There are a few more arguments in the docker run command that I find very useful to know about:</p><p><strong>Detached:</strong></p><p><strong>-d</strong></p><p>The -d argument tells the docker container that you want to be detached from it. This can be useful when running containers that are supposed to be long lived.</p><p><strong>Port:</strong></p><p>-p &lt;local-port&gt;:&lt;container-port&gt;<br> — port=&lt;local-port&gt;:&lt;container-port&gt;</p><p>With the -p argument you can map a port from the container to the local computer. Say for example that you want to open the containers port 80 (standard http port) to your local machines port 8080 you would write something like:</p><p>docker run -p 8080:80 nginx</p><p><strong>Memory:</strong></p><p><strong>— memory=&lt;size&gt;</strong></p><p>With this argument you can limit the amount of memory that the container is allowed to use. I always try to set this argument to make sure that the computer don’t run out of memory if I made something very wrong! (yes it has happened, on a live server!).</p><p>You can find all the arguments at the<a href="https://docs.docker.com/"> official documentation</a>.</p><p><strong>Docker Compose</strong></p><p>Docker Compose is used to run multiple containers as a single service. For example, suppose you had an application which required NGNIX and MySQL, you could create one file which would start both the containers as a service without the need to start each one separately.</p><p>In this chapter, we will see how to get started with Docker Compose. Then, we will look at how to get a simple service with MySQL and NGNIX up and running using Docker Compose.</p><h3>Docker Compose ─ Installation</h3><p><strong>The following steps need to be followed to get Docker Compose up and running.</strong></p><p><strong>Step 1 −</strong> Download the necessary files from github using the following command −</p><p>curl -L “https://github.com/docker/compose/releases/download/1.10.0-rc2/dockercompose<br> -$(uname -s) -$(uname -m)” -o /home/demo/docker-compose</p><p><strong>The above command will download the latest version of Docker Compose which at the time of writing this article is 1.10.0-rc2. It will then store it in the directory /home/demo/.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/0*SxCZ1tpN6ocxG4V4" /></figure><p><strong>Step 2 − Next, we need to provide execute privileges to the downloaded Docker Compose file, using the following command −</strong></p><p><strong>chmod +x /home/demo/docker-compose</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*3clAohQYQyt5c7px" /></figure><p><strong>We can then use the following command to see the compose version.</strong></p><h3>Syntax</h3><p><strong>docker-compose version</strong></p><h3>Parameters</h3><ul><li><strong>version − This is used to specify that we want the details of the version of Docker Compose.</strong></li></ul><h3>Output</h3><p><strong>The version details of Docker Compose will be displayed.</strong></p><h3>Example</h3><p><strong>The following example shows how to get the docker-compose version.</strong></p><p><strong>sudo ./docker-compose -version</strong></p><h3>Output</h3><p><strong>You will then get the following output −</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*BVDL6zrIDZGMwvca" /></figure><h3>Creating Your First Docker-Compose File</h3><p>Now let’s go ahead and create our first Docker Compose file. All Docker Compose files are YAML files. You can create one using the vim editor. So execute the following command to create the compose file −</p><p><strong>sudo vim docker-compose.yml</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*v2KmaNFM5Yr7K_OT" /></figure><p>Let’s take a close look at the various details of this file −</p><ul><li>The database and web keyword are used to define two separate services. One will be running our mysql database and the other will be our nginx web server.</li><li>The image keyword is used to specify the image from dockerhub for our mysql and nginx containers</li><li>For the database, we are using the ports keyword to mention the ports that need to be exposed for mysql.</li><li>And then, we also specify the environment variables for mysql which are required to run mysql.</li></ul><p>Now let’s run our Docker Compose file using the following command −</p><p>sudo ./docker-compose up</p><p>This command will take the docker-compose.yml file in your local directory and start building the containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*LVIklZ9WcMC8EtS7" /></figure><p>Once executed, all the images will start downloading and the containers will start automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/0*QR-bARLDQE6RSZkd" /></figure><p>And when you do a docker ps, you can see that the containers are indeed up and running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*Hb1eGmyMXnfX_3Y6" /></figure><h3>Docker — Continuous Integration</h3><p>Docker has integration with many Continuous Integration tools, which also includes the popular CI tool known as Jenkins. Within Jenkins, you have plugins available which can be used to work with containers. So let’s quickly look at a Docker plugin available for the Jenkins tool.</p><p>Let’s go step by step and see what’s available in Jenkins for Docker containers.</p><p>Step 1 − Go to your Jenkins dashboard and click Manage Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*JxLxSyzTY4u7-Jmv" /></figure><p>Step 2 − Go to Manage Plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*JUJAml6MGDik8WUO" /></figure><p>Step 3 − Search for Docker plugins. Choose the Docker plugin and click the Install without restart button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*Jg0mJpNMAIwOQJWt" /></figure><p>Step 4 − Once the installation is completed, go to your job in the Jenkins dashboard. In our example, we have a job called Demo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*5vfStyn3tJ_tPPl9" /></figure><p>Step 5 − In the job, when you go to the Build step, you can now see the option to start and stop containers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*6s4qCWkDKCR8lNzr" /></figure><p>Step 6 − As a simple example, you can choose the further option to stop containers when the build is completed. Then, click the Save button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*NJOS6OXS9yA9vGOH" /></figure><p>Now, just run your job in Jenkins. In the Console output, you will now be able to see that the command to Stop All containers has run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*Wi6c0m9OJyBZ38i0" /></figure><h3>Docker — Kubernetes Architecture</h3><p>Kubernetes is an orchestration framework for Docker containers which helps expose containers as services to the outside world. For example, you can have two services − One service would contain <strong>nginx</strong> and <strong>mongoDB</strong>, and another service would contain <strong>nginx</strong> and <strong>redis</strong>. Each service can have an IP or service point which can be connected by other applications. Kubernetes is then used to manage these services.</p><p>The following diagram shows in a simplistic format how Kubernetes works from an architecture point of view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*tz9jpr89bA8aLIGh" /></figure><p>The <strong>minion</strong> is the node on which all the services run. You can have many minions running at one point in time. Each minion will host one or more POD. Each <strong>POD</strong> is like hosting a service. Each POD then contains the Docker containers. Each POD can host a different set of Docker containers. The proxy is then used to control the exposing of these services to the outside world.</p><p>Kubernetes has several components in its architecture. The role of each component is explained below &amp;mius;</p><ul><li><strong>etcd</strong> − This component is a highly available <strong>key-value</strong> store that is used for storing <strong>shared configuration</strong> and <strong>service discovery</strong>. Here the various applications will be able to connect to the services via the <strong>discovery service</strong>.</li><li><strong>Flannel</strong> − This is a backend network which is required for the containers.</li><li><strong>kube-apiserver</strong> − This is an API which can be used to orchestrate the Docker containers.</li><li><strong>kube-controller-manager</strong> − This is used to control the <strong>Kubernetes services</strong>.</li><li><strong>kube-scheduler</strong> − This is used to schedule the containers on hosts.</li><li><strong>Kubelet</strong> − This is used to control the launching of containers via <strong>manifest files</strong>.</li><li><strong>kube-proxy</strong> − This is used to provide network proxy services to the outside world.</li></ul><h3>Docker — Working of Kubernetes</h3><p><strong>Step 1</strong> − Ensure that the <strong>Ubuntu server version</strong> you are working on is <strong>16.04</strong>.</p><p><strong>Step 2</strong> − Ensure that you generate a <strong>ssh</strong> key which can be used for <strong>ssh</strong> login. You can do this using the following command.</p><p>ssh-keygen</p><p>This will generate a key in your <strong>home folder</strong> as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/0*SiPoKJ_am8vWXQtO" /></figure><p><strong>Step 3</strong> − Next, depending on the version of Ubuntu you have, you will need to add the relevant site to the <strong>docker.list</strong> for the <strong>apt package manager</strong>, so that it will be able to detect the <strong>Kubernetes packages</strong> from the <strong>kubernetes</strong> site and download them accordingly.</p><p>We can do it using the following commands.</p><p>curl -s <a href="https://packages.cloud.google.com/apt/doc/apt-key.gpg">https://packages.cloud.google.com/apt/doc/apt-key.gpg</a> | apt-key add — <br>echo “deb <a href="http://apt.kubernetes.io/">http://apt.kubernetes.io/</a> kubernetes-xenial main” | sudo tee /etc/apt/sources.list.d/docker.list</p><p><strong>Step 4</strong> − We then issue an apt-get update to ensure all packages are downloaded on the Ubuntu server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*_YmwARVLlORM9Joj" /></figure><p><strong>Step 5</strong> − Install the Docker package as detailed in the earlier chapters.</p><p><strong>Step 6</strong> − Now it’s time to install <strong>kubernetes</strong> by installing the following packages −</p><p>apt-get install –y kubelet kubeadm kubectl kubernetes-cni</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*PqTAEedDsgivjRQX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*Ds3VpNNpq_vrelq7" /></figure><p><strong>Step 7</strong> − Once all <strong>kubernetes</strong> packages are downloaded, it’s time to start the kubernetes controller using the following command −</p><p>kubeadm init</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*y-k8BH-H4hNscoCE" /></figure><p>Once done, you will get a successful message that the master is up and running and nodes can now join the cluster.</p><h3>Docker — Instruction Commands</h3><p>Docker has a host of instruction commands. These are commands that are put in the Docker File. Let’s look at the ones which are available.</p><h3>CMD Instruction</h3><p>This command is used to execute a command at runtime when the container is executed.</p><h3>Syntax</h3><p>CMD command param1</p><h3>Options</h3><ul><li><strong>command</strong> − This is the command to run when the container is launched.</li><li><strong>param1</strong> − This is the parameter entered to the command.</li></ul><h3>Return Value</h3><p>The command will execute accordingly.</p><h3>Example</h3><p>In our example, we will enter a simple <strong>Hello World</strong> echo in our Docker File and create an image and launch a container from it.</p><p><strong>Step 1</strong> − Build the Docker File with the following commands −</p><p>FROM ubuntu <br>MAINTAINER demousr@gmail.com <br>CMD [“echo” , “hello world”]</p><p>Here, the CMD is just used to print <strong>hello world</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*X3GL0L4KZ58x8ms_" /></figure><p><strong>Step 2</strong> − Build the image using the Docker <strong>build</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*NTSpU2uAzjLgdpCN" /></figure><p><strong>Step 3</strong> − Run a container from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/0*OjBkVV8_FsZvubvE" /></figure><h3>ENTRYPOINT</h3><p>This command can also be used to execute commands at runtime for the container. But we can be more flexible with the ENTRYPOINT command.</p><h3>Syntax</h3><p>ENTRYPOINT command param1</p><h3>Options</h3><ul><li><strong>command</strong> − This is the command to run when the container is launched.</li><li><strong>param1</strong> − This is the parameter entered into the command.</li></ul><h3>Return Value</h3><p>The command will execute accordingly.</p><h3>Example</h3><p>Let’s take a look at an example to understand more about ENTRYPOINT. In our example, we will enter a simple <strong>echo</strong> command in our Docker File and create an image and launch a container from it.</p><p><strong>Step 1</strong> − Build the Docker File with the following commands −</p><p>FROM ubuntu <br>MAINTAINER demousr@gmail.com <br>ENTRYPOINT [“echo”]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*etAu1HfgoCKoxgIy" /></figure><p><strong>Step 2</strong> − Build the image using the Docker <strong>build</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/0*4jMpDq71Cax5Se1E" /></figure><p><strong>Step 3</strong> − Run a container from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/0*q2ZvggKKuwh2H0Ke" /></figure><h3>ENV</h3><p>This command is used to set environment variables in the container.</p><h3>Syntax</h3><p>ENV key value</p><h3>Options</h3><ul><li><strong>Key</strong> − This is the key for the environment variable.</li><li><strong>value</strong> − This is the value for the environment variable.</li></ul><h3>Return Value</h3><p>The command will execute accordingly.</p><h3>Example</h3><p>In our example, we will enter a simple <strong>echo</strong> command in our Docker File and create an image and launch a container from it.</p><p><strong>Step 1</strong> − Build the Docker File with the following commands −</p><p>FROM ubuntu <br>MAINTAINER demousr@gmail.com <br>ENV var1=Tutorial var2=point</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*YmWUcoyUuQeF7G2t" /></figure><p><strong>Step 2</strong> − Build the image using the Docker <strong>build</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/0*D3hJRR2rxAPUWT78" /></figure><p><strong>Step 3</strong> − Run a container from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*F1A_yX4_ugtbmiT_" /></figure><p><strong>Step 4</strong> − Finally, execute the <strong>env</strong> command to see the environment variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*WHbnNXoU6COQ5q2l" /></figure><h3>WORKDIR</h3><p>This command is used to set the working directory of the container.</p><h3>Syntax</h3><p>WORKDIR dirname</p><h3>Options</h3><ul><li><strong>dirname</strong> − The new working directory. If the directory does not exist, it will be added.</li></ul><h3>Return Value</h3><p>The command will execute accordingly.</p><h3>Example</h3><p>In our example, we will enter a simple <strong>echo</strong> command in our Docker File and create an image and launch a container from it.</p><p><strong>Step 1</strong> − Build the Docker File with the following commands −</p><p>FROM ubuntu <br>MAINTAINER demousr@gmail.com <br>WORKDIR /newtemp <br>CMD pwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/0*JP0famWafL__MmLO" /></figure><p><strong>Step 2</strong> − Build the image using the Docker <strong>build</strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*K7PzjcJf97S6b8PP" /></figure><p><strong>Step 3</strong> − Run a container from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*0lv7HisoRTY-Eu4E" /></figure><p>source:tutorial point and docker official documents</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21de5b83858b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPEN SOURCE]]></title>
            <link>https://medium.com/@santoshstha2010/open-source-4e302bf7ad7a?source=rss-3c24f36b61c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e302bf7ad7a</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programminglanguange]]></category>
            <dc:creator><![CDATA[Santosh Shrestha]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 06:20:31 GMT</pubDate>
            <atom:updated>2019-02-01T06:20:31.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*zXSUR6o_eTu3_YvDljFBqw.png" /><figcaption>source:opensource.com</figcaption></figure><p>The term “open source” refers to something people can modify and share because its design is publicly accessible.</p><p>The term originated in the context of software development to designate a specific approach to creating computer programs. Today, however, “open source” designates a broader set of values — what we call “<a href="https://opensource.com/open-source-way">the open source way</a>.” Open source projects, products, or initiatives embrace and celebrate principles of open exchange, collaborative participation, rapid prototyping, transparency, meritocracy, and community-oriented development.</p><h3>What is open source software?</h3><p>Open source software is software with source code that anyone can inspect, modify, and enhance.</p><p>“Source code” is the part of software that most computer users don’t ever see; it’s the code computer programmers can manipulate to change how a piece of software — a “program” or “application” — works. Programmers who have access to a computer program’s source code can improve that program by adding features to it or fixing parts that don’t always work correctly.</p><h3>What’s the difference between open source software and other types of software?</h3><p>Some software has source code that only the person, team, or organization who created it — and maintains exclusive control over it — can modify. People call this kind of software “proprietary” or “closed source” software.</p><p>Only the original authors of proprietary software can legally copy, inspect, and alter that software. And in order to use proprietary software, computer users must agree (usually by signing a license displayed the first time they run this software) that they will not do anything with the software that the software’s authors have not expressly permitted. Microsoft Office and Adobe Photoshop are examples of proprietary software.</p><p>Open source software is different. Its authors <a href="https://opensource.com/business/13/5/open-source-your-code">make its source code available</a> to others who would like to view that code, copy it, learn from it, alter it, or share it. <a href="https://www.libreoffice.org/">LibreOffice</a> and the <a href="http://www.gimp.org/">GNU Image Manipulation Program</a> are examples of open source software.</p><p>As they do with proprietary software, users must accept the terms of a <a href="https://opensource.com/law/13/1/which-open-source-software-license-should-i-use">license</a> when they use open source software — but the legal terms of open source licenses differ dramatically from those of proprietary licenses.</p><p>Open source licenses affect the way people can <a href="https://opensource.com/law/10/10/license-compliance-not-problem-open-source-users">use, study, modify, and distribute</a> software. In general, open source licenses grant computer users <a href="https://opensource.org/docs/osd">permission to use open source software for any purpose they wish</a>. Some open source licenses — what some people call “copyleft” licenses — stipulate that anyone who releases a modified open source program must also release the source code for that program alongside it. Moreover, <a href="https://opensource.com/law/13/5/does-your-code-need-license">some open source licenses</a> stipulate that anyone who alters and shares a program with others must also share that program’s source code without charging a licensing fee for it.</p><p>By design, open source software licenses promote collaboration and sharing because they permit other people to make modifications to source code and incorporate those changes into their own projects. They encourage computer programmers to access, view, and modify open source software whenever they like, as long as they let others do the same when they share their work.</p><h3>Which open source software license should I use?</h3><p>’I have recently been involved in several discussions that are variations on, “Which open source or free software license should I choose for my project?” Here is my way of looking at the large and growing collection of licenses in the wild. First, let’s make sure we all understand that I Am Not A Lawyer. This is not legal advice. Depending upon your needs and your comfort with risk around your software, you’ll want to confirm your legal choices with counsel in your jurisdiction.</p><p>The first and obvious consideration is whether or not the license is approved as an open source license by the Open Source Initiative (OSI). The OSI created the <a href="http://opensource.org/osd">Open Source Definition</a> in the late 1990 as a set of attributes that a software license must support to be considered “open source.” Anyone can take a license to the OSI for debate and discussion and if approved as meeting the OSD, then the license is added to <a href="http://opensource.org/licenses/index.html">the canonical list</a>.</p><p>While this seems an obvious place to start, I was recently surprised to discover a license called the “Clear BSD License.” It attempts to clarify explicitly that patents are not being discussed in the license. It is not on the OSI list (while the New BSD and Simplified BSD licenses are) and is therefore not worth considering. Inventing new licenses as small derivatives of existing licenses is not helpful and creates costly legal busy work. There exists a broad collection of OSI-approved licenses today. These licenses cover millions of lines of software involved in billions of dollars in procurement. One would be hard pressed to describe a serious set of circumstances that isn’t already covered by an OSI-approved license.</p><p>There are several big levers available when considering an open source license:</p><ul><li>How much license reciprocity is required with respect to the software, modifications, and any derivatives someone develops?</li><li>What is said about patent licensing and litigation?</li><li>What legal jurisdiction covers the license?</li></ul><p>The reciprocity issue is all about “<a href="http://www.gnu.org/copyleft/">copyleft</a>” and whether or not using the software source code attaches the license to the modifications and derivatives, and whether the source code to those modifications and derivatives needs to be published.</p><p>On one end of the spectrum are licenses that have no copyleft requirements. These licenses essentially allow anyone to use the software in anyway without requiring much more than maintaining copyrights. Licenses that fall into this set include the New and Simplified BSD licenses, the MIT license, and the Apache 2.0 and Microsoft Permissive licenses.</p><p>There are a set of licenses that maintain a sense of copyleft around the software itself but support the use of the software in larger works of software which may contain software that is licensed differently (e.g. closed and proprietary). These licenses include the Eclipse Public License, the newer Mozilla Public License 2.0, and the Microsoft Reciprocal License.</p><p>On the other end of the copyleft spectrum are strong copyleft licenses. <a href="http://www.gnu.org/philosophy/free-sw.html">Software freedom</a> is defined by the Free Software Foundation in terms of the freedoms a user of software must have. Strong copyleft supports software freedom. Many developers support software freedom, and demonstrate this support using one of the family of GPL licenses (GPL2.0, GPL3.0, and the Affero GPL3.0) as a way to ensure the strongest copyleft and strongest license attachment when the software in question is used in building and distributing other software.</p><p>Software patents weren’t really an issue when software was beginning to be widely shared on the early Internet and so weren’t mentioned in the early licenses. By the late 1990s, software patents were on the rise and corporate legal teams were becoming more involved in the writing of open source licenses as they became more involved with open source software and developing the open source foundations around evolving projects. The Apache 2.0 License, Mozilla Public License 2.0, Eclipse Public License, the newer GPL licenses, and both Microsoft licenses reflect this shift in language. Each license explicitly talks about patent licenses. Each license has language that covers patent litigation to varying degrees.</p><p>I mention legal jurisdiction in the big levers category because some licenses explicitly mention it and this can be a real show stopper for some people. For that reason alone I treat it as a Big Lever. (The Mozilla Public License 2.0 specifically tries to deal with jurisdiction as one of changes from the original MPL, as that was often a criticism of the earlier license.)</p><p>Other considerations in license choice include:</p><ul><li>Are there project specific affinities?</li><li>History of the license and foundation/corporate/commercial involvement?</li></ul><p>The “language” projects (Perl, PHP, Python) each have their own licenses (Artistic License 2.0, PHP License 3.0, and Python License 2.0 respectively). If you are working on a project that closely ties to a specific open source programming language community then you should obviously consider that community’s license as the question of mixing modules and dependencies will be simplified with respect to open source licenses.</p><p>As software IP law has evolved and the Internet has become an enormous space for people to collaborate on software development, commercial organizations became involved. We have seen the creation of open source software foundations with specific licenses associated with them. Corporate legal teams have become involved in authoring open source licenses, and the language and structure of these licenses (e.g. terminology and definitions) reflect this involvement. Lawyers without a lot of experience in open source licenses may feel more comfortable reviewing these newer licenses.</p><p>So to recap, presuming that your primary motivation is to co-develop and collaborate on an open source project, in my way of looking at open source licenses your choices break down roughly as follows. (I’m keeping the discussion here to widely used licenses and/or licenses where large commercial organizations with conservative counsel or neutral non-profit open source foundations had a hand in their creation.)</p><p>If you want to allow anyone to do anything at any time with the software, use the MIT or new (3-clause) BSD license, i.e. no copyleft and no discussion of patents. Both of these licenses came from the academic world, and both from a period of time where software patents were not a focus.</p><p>If you want to allow anyone to do anything with the software (so no copyleft), but feel something needs to be said about patents and license termination in the face of litigation, and/or you want a license that corporate counsel is more comfortable reading then look at either the Apache 2.0 license or possibly the Microsoft Permissive License. These licenses were written to continue to encourage a completely open sharing environment but were written with a more corporate view (note the structure and language), and both begin to cover patents with varying (and subtly different) degrees of patent retaliation built into them.</p><p>If you feel others should be able to build [possibly product] around your software, but want to ensure changes to the core software project itself remain open source (i.e. the changes must be published), you likely want to look to either the Eclipse Public License, the newer Mozilla Public License 2.0, or the Microsoft Reciprocal License. These are modern licenses developed from commercial/corporate perspectives supporting “weak” copyleft. [N.B. The EPL does name NY State as the jurisdiction.] Pay attention to patent statements in each.</p><p>If you are a firm supporter of software freedom or want to ensure that if your software source is used anywhere that the resulting derivatives are maximally published as open source ensuring software freedom, then you should look to GPL2.0 or GPL3.0 depending upon your needs.</p><p>There are a couple of interesting side ideas I’ve come across in the open source licensing space as different projects wrestled with how best to create the “right” licensing for their software.</p><ul><li>Many companies are concerned about their patent portfolios when creating open source projects. Google took an interesting approach to the problem when they released the WebM project. They chose the New BSD license and then created a very specific “Additional IP Rights Grant” to cover the patent language they needed.</li><li>It is the nature of IP law that the owner of the property can license it as many ways to as many people as they choose. This is why the Microsoft EULA for a personal copy of the Windows operating system is different from an Enterprise License Agreement and how MySQL AB developed a line of business around closed software licensing as well as their GPL-licensed project. In the early days (up through PHP3), the software from the PHP project was similarly “dual” licensed under both the GPL2.0 and an earlier PHP license to allow the software to be included in as many places as possible because the GPL was not directly compatible with the PHP license of the time.</li></ul><p>I have deliberately not tried to create a table or decision tree for license choice here. I believe there are sufficient edges and nuances to license choice that it can never be properly “automated” with the licenses we have today that reflect their rich background of needs and history. There is always one more legal question of “what about the situation when…?” Such questions will likely involve legal counsel and may be very jurisdiction sensitive.</p><p>Likewise, open source software licenses don’t simply reflect a set of legal choices. In the early stage of an open source project when the author or authors are first publishing the software, the choice of license reflects as much of the social contract that is being made for the project as any legal requirements. It is the first governance document of the early possible community that comes into play long before formal governance, mission statements, and codes of conduct may be created around growing community.</p><p>source:opensource.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e302bf7ad7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Catching Exception in stripe payement]]></title>
            <link>https://medium.com/@santoshstha2010/catching-exception-in-stripe-payement-22f670881ad4?source=rss-3c24f36b61c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f670881ad4</guid>
            <category><![CDATA[php-developers]]></category>
            <category><![CDATA[laravel-5]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Santosh Shrestha]]></dc:creator>
            <pubDate>Tue, 15 May 2018 05:47:31 GMT</pubDate>
            <atom:updated>2018-05-15T05:47:31.104Z</atom:updated>
            <content:encoded><![CDATA[<p>Catching Exception in stripe payement</p><pre>try {<br>  // Use Stripe&#39;s library to make requests...<br>} catch(\Stripe\Error\Card $e) {<br>  // Since it&#39;s a decline, \Stripe\Error\Card will be caught<br>  $body = $e-&gt;getJsonBody();<br>  $err  = $body[&#39;error&#39;];</pre><pre>  print(&#39;Status is:&#39; . $e-&gt;getHttpStatus() . &quot;\n&quot;);<br>  print(&#39;Type is:&#39; . $err[&#39;type&#39;] . &quot;\n&quot;);<br>  print(&#39;Code is:&#39; . $err[&#39;code&#39;] . &quot;\n&quot;);<br>  // param is &#39;&#39; in this case<br>  print(&#39;Param is:&#39; . $err[&#39;param&#39;] . &quot;\n&quot;);<br>  print(&#39;Message is:&#39; . $err[&#39;message&#39;] . &quot;\n&quot;);<br>} catch (\Stripe\Error\RateLimit $e) {<br>  // Too many requests made to the API too quickly<br>} catch (\Stripe\Error\InvalidRequest $e) {<br>  // Invalid parameters were supplied to Stripe&#39;s API<br>} catch (\Stripe\Error\Authentication $e) {<br>  // Authentication with Stripe&#39;s API failed<br>  // (maybe you changed API keys recently)<br>} catch (\Stripe\Error\ApiConnection $e) {<br>  // Network communication with Stripe failed<br>} catch (\Stripe\Error\Base $e) {<br>  // Display a very generic error to the user, and maybe send<br>  // yourself an email<br>} catch (Exception $e) {<br>  // Something else happened, completely unrelated to Stripe<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f670881ad4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>