<?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 Sri Padaraj on Medium]]></title>
        <description><![CDATA[Stories by Sri Padaraj on Medium]]></description>
        <link>https://medium.com/@sripadaraj?source=rss-c54779873bab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q3BznVY88R4bB98KGt943w.jpeg</url>
            <title>Stories by Sri Padaraj on Medium</title>
            <link>https://medium.com/@sripadaraj?source=rss-c54779873bab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:35:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sripadaraj/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[A Product Tear Down on Xiaomi/Smartisan /Alcatel/Google/Apple: calculator]]></title>
            <link>https://medium.com/@sripadaraj/a-product-tear-down-on-xiaomi-smartisan-alcatel-google-apple-calculator-d202d51e4a83?source=rss-c54779873bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/d202d51e4a83</guid>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[user-interface]]></category>
            <dc:creator><![CDATA[Sri Padaraj]]></dc:creator>
            <pubDate>Sun, 20 Aug 2017 13:27:48 GMT</pubDate>
            <atom:updated>2017-08-20T13:32:56.609Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this blog, <em>I am going to write a few articles about product teardown of utility apps on smartphone , such as Calculator / Calendar /Call /Camera /Clock/File Manager /Gallery /Messaging /Music /Photo/, etc.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIvj4jJckhforYt-7JjE2Q.png" /></figure><p>I’m a xiaomi user and I feel to mark some lags with their design and features ,I have gone through the internal design, appearance and features .</p><p>I was wondered how these phones are grasping the market in these days, lets take look on how the internal apps and designs are made in this days .</p><p><em>These are frequently used products, but are often not given enough attention when they are being designed. My goal here is to compare and analyze these products, and then dive deep into why they design in that way and how we can improve these products.</em></p><p><strong>Let start from Calculator.</strong></p><p>Calculator is a simple app. It’s an often used app. But it’s not an app on which everybody does a good job.</p><h4>First Appearance (App Icon, User Interface)</h4><p><strong>App Icon</strong></p><p>If we take a first look at these apps, we find big different in icon design. Icons are subjective, but I think we can still say some icons are more beautiful than others.</p><p>Icon should convey the meaning of the app. It should be easy to recognize and remember. It should NOT create ambiguity or confusion.</p><p>Among all these Icons, Smartisan’s calculator is the best. Without an app name, users can still know that Smartisan is developing a calculator. Vivo and oppo’s are OK. Xiaomi’s are worst.</p><p>Xiaomi uses “=” as a calculator icon. It doesn’t convey the meaning of the app. Without an app name, users would never know this is a Calculator.</p><p>Why Xiaomi design their icons in such a way? I think one of the reasons is that they try to come up with something that is different from Others. Unfortunately, they failed. My suggestion would be, if you couldn’t do a better job than others, just follow other’s design and do not mess around it. Please!</p><p><strong>User Interface</strong></p><p>Alcatel / Google</p><p>Since Alcatel almost copied Google’s design, let put the together to do a comparison.</p><p>Google Calculator is probably the best option for those who need something simple. It features a Material Design-inspired interface with nice, large buttons and it works rather quickly. You can get some scientific calculator use out of it but it won’t suffice for anything more than the basics, really. It’ll work just as well on tablets as it does on a phone and there is even Android Wear support. It’s completely free with no in-app purchases and no advertising. There are plenty of other Material Design calculators out there, but this one is definitely the best one.</p><p>There is a side bar on the right. So users can swipe left to pull scientific calculator. I think this is a good design.</p><p>Alcatel’s calculator only has a “back button” — “x”, while Google has “DEL” as well as “CLR” which shows up after you do the calculation. Google does a better job here. Alcatel’s “back button” is not easy to use when you want to start a new calculation.</p><p>Google also has a folded button through which you can send feedback or ask for help. It’s useful but I personally think it’s annoying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*URG5ojtMN64oSl-QwGiUBg.png" /></figure><p><strong>Smartisan / Xiaomi / Apple .</strong></p><p>Smartisan and Xiaomi all have clean user interface. They are doing better job than Google , Appleand others .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*YRURAscJ5xsxL8N2POcxUw.png" /></figure><h4>Features</h4><p>For basic features, such as standard calculation and scientific calculation, all calculators do the job.</p><p>But there are a few features that make Xiaomi stand out</p><ol><li>modify inputs. If you mistakenly put a wrong number in Smartisan’s calculator, you would not be able to make changes. You either re-do calculation, or cancel out the effects by adding or subtracting that wrong number. But from MIUI 8, in Xiaomi’s calculator, you can modify your inputs in a multi step calculation. This is doable because of the second feature</li><li>remember and show every step of calculation. If you have a list of numbers, it’s easy to miss one or two during the inputting. From MIUI 8, every step is remembered and shown, so users can easily know where they are. And if they make mistakes, they can modify inputs easily.</li><li>Numbers changes to characters . This is a great feature targeting Chinese market. In China, if you want to write a check, you need to write both in numbers, and in characters. Many people actually don’t now how to express numbers in character. MIUI 8 makes that work very easy.</li></ol><h4>Improvement</h4><p>There is always room for improvement.</p><p>1) they need to design a better app icon, or simply follow Google’s design</p><p>2) remove calculating history. it is not useful at all. Think from users’ perspective, why they need to know the history if they couldn’t change them. Or learn from MIUI 8, allow users to make changes in a multi steps calculation.</p><p>add a “clear” button when users finish calculation. So users can simply press the button and restart, instead of pressing “back” multiple times.</p><p>4) allow users to input a formula and get final result. This would be very useful for college students who do a lot of calculating work.</p><p>5) Calculator can be a floating window on screen. Many times, when users are viewing a webpage or reading Facebook post, they see some numbers and they want to do a quick check. They can launch calculator, start doing calculation while read the numbers in webpage or Facebook feed.</p><p>6) Add metric conversion feature for common things, such as currency($ , ￥), temperature(F, C), weight(kilo, pounds, etc), length, area, volume, speed, distance (miles, km). conversion calculator can be a very useful feature for younger users who study in college, who travel a lot, who meet people from different places of the world.</p><p><strong>Thanks for viewing : Have more deliverable to share? Please let me know in the comments</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d202d51e4a83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INTRODUCTION TO DOCKERS AND CONTAINERS]]></title>
            <link>https://medium.com/@sripadaraj/a-product-tear-down-on-dockers-and-containers-9b8fbecce285?source=rss-c54779873bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b8fbecce285</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Sri Padaraj]]></dc:creator>
            <pubDate>Mon, 14 Aug 2017 06:19:00 GMT</pubDate>
            <atom:updated>2017-08-20T10:04:53.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovRuAuqPf4r2xpiWh71rUg.png" /><figcaption>courtesy : Google images</figcaption></figure><p>It’s a great experience to share a blog on dockers and containers . In this blog I have discussed in brief introduction on VMs , Docker and how effectively Dockers have gained strength as a SaaS product.</p><h3>Docker: a helpful tool for packing, shipping, and running applications within <em>“containers.”</em></h3><p><em>Let’s start by understanding what VMs and containers even are.</em></p><h3>What are “containers” and “VMs”?</h3><p><em>Containers and VMs are similar in their goals: to isolate an application and its dependencies into a self-contained unit that can run anywhere.</em></p><p><em>Moreover, containers and VMs remove the need for physical hardware, allowing for more efficient use of computing resources, both in terms of energy consumption and cost effectiveness.</em></p><h3>Virtual Machines</h3><h4><em>A VM is essentially an emulation of a real computer that executes programs like a real computer. VMs run on top of a physical machine using a “ hyper-visor ”. A hyper-visor, in turn, runs on either a host machine or on “bare-metal”.</em></h4><p><em>A </em><strong><em>hyper-visor</em></strong><em> is a piece of software, firmware, or hardware that VMs run on top of. The hyper-visors themselves run on physical computers, referred to as the “host machine”. The host machine provides the VMs with resources, including RAM and CPU. These resources are divided between VMs and can be distributed as you see fit. So if one VM is running a more resource heavy application, you might allocate more resources to that one than the other VMs running on the same host machine.</em></p><p><em>The benefit of a hosted hyper — visor is that the underlying hardware is less important. The host’s operating system is responsible for the hardware drivers instead of the hyper-visor itself, and is therefore considered to have more “hardware compatibility.”</em></p><p><em>On the other hand, this additional layer in between the hardware and the hyper-visor creates more resource overhead, which lowers the performance of the VM.</em></p><p><em>A bare metal hyper-visor environment tackles the performance issue by installing on and running from the host machine’s hardware. Because it interfaces directly with the underlying hardware, it doesn’t need a host operating system to run on. In this case, the first thing installed on a host machine’s server as the operating system will be the hyper-visor.</em></p><p><em>Unlike the hosted hyper-visor, a bare-metal hyper-visor has its own device drivers and interacts with each component directly for any I/O, processing, or OS-specific tasks. This results in better performance, scalability, and stability. The tradeoff here is that hardware compatibility is limited because the hyper-visor can only have so many device drivers built into it.</em></p><p><em>The VM that is running on the host machine (again, using a hyper-visor) is also often called a “guest machine.”The use of virtual machines to support separate guest operating systems is popular in regard to embedded systems . A typical use would be to run a real-time operating system simultaneously with a preferred complex operating system, such as Linux or Windows. Another use would be for novel and unproven software still in the developmental stage, so it runs inside a sandbox . Virtual machines have other advantages for operating system development, and may include improved debugging access and faster reboots.</em></p><p><em>As mentioned above, a guest machine can run on either a </em><strong><em>hosted hyper-visor</em></strong><em> or a </em><strong><em>bare-metal hyper-visor</em></strong><em>. There are some important differences between them.</em></p><h3>Operating-system-level virtualization</h3><p>In operating-system-level virtualization, a physical server is virtualized at the operating system level, enabling multiple isolated and secure virtualized servers to run on a single physical server. The “guest” operating system environments share the same running instance of the operating system as the host system. Thus, the same operating system kernel is also used to implement the “guest” environments, and applications running in a given “guest” environment view it as a stand-alone system. The pioneer implementation was FreeBSD jails; other examples include Docker, Solaris containers, OpenVZ, Linux-Vserver, LXC, AIX Workload Partitions , Parallels Virtuozzo Containers, and icore Virtual Accounts.</p><h3>Where does Docker come ?</h3><p>Docker is the world’s leading software container platform. Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers. Operators use Docker to run and manage apps side-by-side in isolated containers to get better compute density. Enterprises use Docker to build agile software delivery pipelines to ship new features faster, more securely and with confidence for both Linux and Windows Server apps.</p><p><strong>Timeline history :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcmgkMvwNnSWWcUQhJ1JYg.png" /><figcaption>growth of docker</figcaption></figure><p>So why is Docker all of a sudden gaining steam?</p><p>1. Ease of use: Docker has made it much easier for anyone — developers, systems admins, architects and others — to take advantage of containers in order to quickly build and test portable applications. It allows anyone to package an application on their laptop, which in turn can run unmodified on any public cloud, private cloud, or even bare metal. The mantra is: “build once, run anywhere.”</p><p>2. Speed: Docker containers are very lightweight and fast. Since containers are just sandboxed environments running on the kernel, they take up fewer resources. You can create and run a Docker container in seconds, compared to VMs which might take longer because they have to boot up a full virtual operating system every time.</p><p>3. Docker Hub: Docker users also benefit from the increasingly rich ecosystem of Docker Hub, which you can think of as an “app store for Docker images.” Docker Hub has tens of thousands of public images created by the community that are readily available for use. It’s incredibly easy to search for images that meet your needs, ready to pull down and use with little-to-no modification.</p><p>4. Modularity and Scalability: Docker makes it easy to break out your application’s functionality into individual containers. For example, you might have your Postgres database running in one container and your Redis server in another while your Node.js app is in another. With Docker, it’s become easier to link these containers together to create your application, making it easy to scale or update components independently in the future.</p><h3>How Docker helps developer ?</h3><p>The developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that machine might have that could differ from the machine used for writing and testing the code.</p><h3>Fundamental Docker Concepts</h3><p>Now that we’ve got the big picture in place, let’s go through the fundamental parts of Docker piece by piece:</p><h4>Docker Engine</h4><p>Docker engine is the layer on which Docker runs. It’s a lightweight runtime and tooling that manages containers, images, builds, and more. It runs natively on Linux systems and is made up of:</p><p>1. A Docker Daemon that runs in the host computer.</p><p>2. A Docker Client that then communicates with the Docker Daemon to execute commands.</p><p>3. A REST API for interacting with the Docker Daemon remotely.</p><h4>Docker Client</h4><p>The Docker Client is what you, as the end-user of Docker, communicate with. Think of it as the UI for Docker. For example, when you do…</p><p>you are communicating to the Docker Client, which then communicates your instructions to the Docker Daemon.</p><h4>Docker Daemon</h4><p>The Docker daemon is what actually executes commands sent to the Docker Client — like building, running, and distributing your containers. The Docker Daemon runs on the host machine, but as a user, you never communicate directly with the Daemon. The Docker Client can run on the host machine as well, but it’s not required to. It can run on a different machine and communicate with the Docker Daemon that’s running on the host machine.</p><h4>Dockerfile</h4><p>A Dockerfile is where you write the instructions to build a Docker image. These instructions can be:</p><ul><li><strong>RUN apt-get y install some-package</strong>: to install a software package</li><li><strong>EXPOSE 8000: </strong>to expose a port</li><li><strong>ENV ANT_HOME /usr/local/apache-ant</strong> to pass an environment variable</li></ul><p>and so forth. Once you’ve got your Dockerfile set up, you can use the <strong>docker build</strong> command to build an image from it.</p><p>Here’s an example of a</p><p><strong>Dockerfile :</strong></p><p>Check my github profile which i have made some java code to run on different machines account</p><p><a href="https://github.com/sripadaraj/DockerPlay/blob/master/docker_java/dockerfile">sripadaraj/DockerPlay</a></p><p>Docker Image :Images are read-only templates that you build from a set of instructions written in your Dockerfile. Images define both what you want your packaged application and its dependencies to look like *and* what processes to run when it’s launched.</p><p>The Docker image is built using a Dockerfile. Each instruction in the Dockerfile adds a new “layer” to the image, with layers representing a portion of the images file system that either adds to or replaces the layer below it. Layers are key to Docker’s lightweight yet powerful structure. Docker uses a Union File System to achieve this:</p><h4>Union File Systems</h4><p>Docker uses Union File Systems to build up an image. You can think of a Union File System as a stackable file system, meaning files and directories of separate file systems (known as branches) can be transparently overlaid to form a single file system.</p><p>The contents of directories which have the same path within the overlaid branches are seen as a single merged directory, which avoids the need to create separate copies of each layer. Instead, they can all be given pointers to the same resource; when certain layers need to be modified, it’ll create a copy and modify a local copy, leaving the original unchanged. That’s how file systems can *appear* writable without actually allowing writes. (In other words, a “copy-on-write” system.)</p><p>Layered systems offer two main benefits:</p><p>1. <strong>Duplication-free: </strong>layers help avoid duplicating a complete set of files every time you use an image to create and run a new container, making instantiation of docker containers very fast and cheap.</p><p>2. <strong>Layer segregation:</strong> Making a change is much faster — when you change an image, Docker only propagates the updates to the layer that was changed.</p><h4>Volumes</h4><p>Volumes are the “data” part of a container, initialized when a container is created. Volumes allow you to persist and share a container’s data. Data volumes are separate from the default Union File System and exist as normal directories and files on the host filesystem. So, even if you destroy, update, or rebuild your container, the data volumes will remain untouched. When you want to update a volume, you make changes to it directly. (As an added bonus, data volumes can be shared and reused among multiple containers, which is pretty neat.)</p><h4>Docker Containers</h4><p>A Docker container, as discussed above, wraps an application’s software into an invisible box with everything the application needs to run. That includes the operating system, application code, runtime, system tools, system libraries, and etc. Docker containers are built off Docker images. Since images are read-only, Docker adds a read-write file system over the read-only file system of the image to create a container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*irGrMF6EBYtT_L9-." /></figure><p>Source: Docker</p><p>Moreover, then creating the container, Docker creates a network interface so that the container can talk to the local host, attaches an available IP address to the container, and executes the process that you specified to run your application when defining the image.</p><p>Once you’ve successfully created a container, you can then run it in any environment without having to make changes.</p><h3>Double-clicking on “containers”</h3><p>Phew! That’s a lot of moving parts. One thing that always got me curious was how a container is actually implemented, especially since there isn’t any abstract infrastructure boundary around a container. After lots of reading, it all makes sense so here’s my attempt at explaining it to you! :)</p><p>The term “container” is really just an abstract concept to describe how a few different features work together to visualize a “container”. Let’s run through them real quick:</p><h4>1) Namespaces</h4><p>Namespaces provide containers with their own view of the underlying Linux system, limiting what the container can see and access. When you run a container, Docker creates namespaces that the specific container will use.</p><p>There are several different types of namespaces in a kernel that Docker makes use of, for example:</p><p>a. <strong>NET:</strong> Provides a container with its own view of the network stack of the system (e.g. its own network devices, IP addresses, IP routing tables, /proc/net directory, port numbers, etc.).</p><p>b. <strong>PID :</strong> PID stands for Process ID. If you’ve ever ran <strong>ps aux</strong> in the command line to check what processes are running on your system, you’ll have seen a column named “PID”. The PID namespace gives containers their own scoped view of processes they can view and interact with, including an independent init (PID 1), which is the “ancestor of all processes”.</p><p>c. <strong>MNT :</strong> Gives a container its own view of the<a href="http://www.linfo.org/mounting.html"> “mounts” on the system</a>. So, processes in different mount namespaces have different views of the filesystem hierarchy.</p><p>d. <strong>UTS :</strong> UTS stands for UNIX Timesharing System. It allows a process to identify system identifiers (i.e. hostname, domainname, etc.). UTS allows containers to have their own hostname and NIS domain name that is independent of other containers and the host system.</p><p>e.<strong> IPC :</strong> IPC stands for InterProcess Communication. IPC namespace is responsible for isolating IPC resources between processes running inside each container.</p><p>f. <strong>USER: </strong>This namespace is used to isolate users within each container. It functions by allowing containers to have a different view of the uid (user ID) and gid (group ID) ranges, as compared with the host system. As a result, a process’s uid and gid can be different inside and outside a user namespace, which also allows a process to have an unprivileged user outside a container without sacrificing root privilege inside a container.</p><p>Docker uses these namespaces together in order to isolate and begin the creation of a container. The next feature is called control groups.</p><h4>2) Control groups</h4><p>Control groups (also called cgroups) is a Linux kernel feature that isolates, prioritizes, and accounts for the resource usage (CPU, memory, disk I/O, network, etc.) of a set of processes. In this sense, a cgroup ensures that Docker containers only use the resources they need — and, if needed, set up limits to what resources a container *can* use. Cgroups also ensure that a single container doesn’t exhaust one of those resources and bring the entire system down.</p><p>Lastly, union file systems is another feature Docker uses:</p><h4>3) Isolated Union file system:</h4><p>Described above in the Docker Images section :)</p><p>This is really all there is to a Docker container (of course, the devil is in the implementation details — like how to manage the interactions between the various components).</p><h3>The Future of Docker: Docker and VMs Will Co-exist</h3><p>While Docker is certainly gaining a lot of steam, I don’t believe it will become a real threat to VMs. Containers will continue to gain ground, but there are many use cases where VMs are still better suited.</p><p>For instance, if you need to run multiple applications on multiple servers, it probably makes sense to use VMs. On the other hand, if you need to run many *copies* of a single application, Docker offers some compelling advantages.</p><p>Moreover, while containers allow you to break your application into more functional discrete parts to create a separation of concerns, it also means there’s a growing number of parts to manage, which can get unwieldy.</p><p>Security has also been an area of concern with Docker containers — since containers share the same kernel, the barrier between containers is thinner. While a full VM can only issue hypercalls to the host hypervisor, a Docker container can make syscalls to the host kernel, which creates a larger surface area for attack. When security is particularly important, developers are likely to pick VMs, which are isolated by abstracted hardware — making it much more difficult to interfere with each other.</p><p>Of course, issues like security and management are certain to evolve as containers get more exposure in production and further scrutiny from users. For now, the debate about containers vs. VMs is really best off to dev ops folks who live and breathe them everyday!</p><h3>Conclusion:</h3><p>I hope You would able to grasp some interesting points through</p><p>As a new commit plz help me in droping a line in the comments if I’ve made any mistakes or can be helpful in anyway! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b8fbecce285" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>