Category: Tips & Tricks

  • Anatomy of A Coronavirus-Proof Business[Infographic]

    Anatomy of A Coronavirus-Proof Business[Infographic]

    Ever since its onset last December, the coronavirus has soon gained momentum to affect all walks of life within months, taking a heavy toll on all industries and sectors worldwide. Does your company happen to be in the high-risk sector? Is your business struggling amid huge talent loss and office bills that still need to be paid? Regardless of sector or size, the covid-19 influence must have been felt everywhere around you.

    The Impact of Covid-19

    As suggested by the International Labour Organization, the covid-19 is arguably the greatest crisis faced by human beings ever since WWII. The world trade volume has been estimated to fall by 11%, and the oil price down by 42%. An estimated 1.5 billion children have been denied physical access to school. Industries like retail, manufacturing,education as well as shipments have taken the brunt.
    Image credit: economics.rabobank.com

    The Lockdown Generation

    More than that, as the Organization reveals, the Coronavirus outbreak has also cut down global working hours by 10.7% in the first quarter of 2020. 1 of 6 young people globally has stopped working. 94% of the global workforce is now under certain containment owing to government lockdown measures. The coronavirus outbreak is worryingly turning young workers into the “Lockdown Generation”.
    Image credit: GGTV
    With so many young people unable to work in the office, the first and most important question for businesses is: how to build up enough immunity to get through this difficult time?

    The Workstyle Reform

    True, governments have acted fast by initiating the workstyle reform, pushing businesses to adapt towards telecommuting against covid-19 impact, but are we fully ready to go virtual and remote? In another word, what it takes for us to benefit from telecommuting? In consideration of that, we’ve compiled a list of remote tools for businesses to go remote, covering areas from information security, project management, collaboration to individual mental health enhancement. Take a quick look!
    Image credit: CocoFax
    Needless to say, telecommuting is likely to continue for a longer term, even after the coronavirus pandemic. As research from FlexJobs and Global Workplace Analytics (GWA) shows, there has been an increase of 159% in remote work in the U.S.A since from 2005 to 2017. Furthermore, a study of 1001 by Amerisleep showed remote workers were 57% more likely than the average American to be satisfied with their jobs.
    Image credit: pairin.com
    The pandemic is likely to accelerate this workstyle transformation as people are focusing a lot more on work-life balance than ever before. An FlexJobs survey shows 84% of working parents in America identify work flexibility as the single most important factor in a job.
    Image credit: knowablemagazine.org
    Going virtual is especially beneficial to companies in the tech industry, saving office budget on renting office space as well as costs in retaining employees. Businesses need to weigh the pros and cons of telecommuting before going virtual though. Make sure you have a reliable tele-workforce, and employ the right online working tools!
  • AWS EC2 alternative

    AWS EC2 alternative

    Want to host websites? But don’t want to go with AWS and Shared Hosting? Here is the alternative of Shared hosting and AWS.

    The problem with AWS Cost, Yes, you read right AWS is costly even if you are using very minimal it will cost you minimum $8. Because they are charging multiple things such as EC2, Elastic IP, and bandwidth based on region wise and Inbound and Outbound data transfer.
    If you are going to use just for Hosting of your website then AWS is not the right choice.

    We know that AWS provides many services at single place. That is good if your application requires those service. But what if you don’t need those service? It will cost you too much.

    Problem with shared hosting, The problem with shared hosting is limited resources and shareable resources. Many hosting companies host 1000’s websites on the single server. Which slows down your site performance. Also, there are few hosting company which suspends your account if your website/application using too many resources. And if you are a developer and want to customize your server then on shared hosting you can’t do this. Because you don’t have root access.

    Go to Cloud Hosting

    After several of research, I found 2 organization which provides Cloud server with SSD which means 10x more performance compared to traditional storage devices. Laravel Hosting is one such example of better hosting.

    Linode & vultr is an organization which provides you 1 GB of RAM, 1CPU core and 1 TB bandwidth at just $5.

    Linode provides you 20 GB storage and but Vultr provide you 25GB storage but Vultr’s billing cycle is 28 Days based.

    Here is the pricing comparison:

    Linode Lightsail Vultr
    Memory 1GB 512MB 1024MB
    Processor 1 Core 1 Core 1 Core
    Storage 20GB SSD 20GB SSD 25GB SSD
    Transfer 1TB 1TB 1000GB
    Overage $0.02/GB $0.09/GB $0.02+/GB
    Network In 40Gbps ??? ???
    Network Out 1000Mbps ??? ???
    Price $5/month $5/month $5/month
    $0.0075/hour $0.007/hour $0.007/hour
  • 10 reasons why choose BackdropCMS instead of Drupal

    10 reasons why choose BackdropCMS instead of Drupal

    What is Backdrop CMS?
    Backdrop CMS is a free and open-source content management system written in PHP and distributed under the GNU General Public License. Backdrop CMS is a fork of the Drupal project. The directory structure is like Drupal 8 but the code is similar to Drupal 7.
    10 reasons why choose BackdropCMS instead of Drupal.

    1. Why spend a lot of time managing configuration using Features module. Backdrop includes built-in Configuration Management tools that allow us to deploy configuration across environments using JSON files, which should save a lot of time compared to Features.
    2. The backdrop is slightly faster than Drupal 7 out of the box because of it’s lighter core. Generally, it’s about the same speed as D7 but since D8 is slower than D7, Backdrop is faster than D8.
    3. The backdrop has a built-in Panels-like module (Layout) that replaces the old Block system. Blocks are given new powers like contextual information, advanced conditional selection, multiple instances, control over markup, and config-based settings.
    4. Responsive, HTML5 elements, and better mobile support out of the box.
    5. Updated libraries (e.g. new jQuery versions).
    6. Browse and install add-ons directly from your Backdrop site. No need to scour the internet for available modules, themes, and layouts.
    7. Basic module out of the box no need to install manually.
    8. More stable compared to Drupal 8.
    9. Major features from Drupal 8
    10. Advance Caching and memory optimization.

    Here you can see the performance:

  • Best Bike Polish, Scratch remover, Car Polish, Vehicle Wax

    Hello Guys,
    If you love your bike/car and want to keep it shiny, I mean not only shiny a shin like a mirror. Then here is my recommendation for you.
    I have my Bajaj Avenger 220 – 2014 model and I love it when it shines like a mirror. And after 3 years it still shines like a brand new bike. “Formula 1 Scratch Out Heavy Duty Paste” will help you to glow your vehicle’s color and hide scratches and “Formula 1 Carnauba Paste Wax” will give it a mirror polish. And especially in the raining season, it will help to avoid rusting on the bike/vehicle, water spots on your vehicle. Here is the procedure to apply it

    1. Clean your vehicle with fresh water and keep it for dry
    2. Once it dry then apply “Formula 1 Scratch Out Heavy Duty Paste”
      1. Use a fresh and clean cloth to apply it. Do remember always apply and spread it in one direction so if you are comfortable in up and down direction then use that direction or if you want are comfortable with left and right direction then apply it in the left-right
    3. Once you are done with then wait for 5-10 minute
    4. Now apply “Formula 1 Carnauba Paste Wax” and apply it with its own sponge and don’t spread it to clean it. Remember you only need to spread it. And then wait for 10 minutes.
    5. After 10-minute use a clean cloth and rub it on the part where you apply that wax. And use one direction only. And after few minute you will note the shining like a mirror. Remember the much time you rub the more glow and shine.

    Here is the video for more detail

  • Six Commandments of Good Code: Write Code that Stands the Test of Time

    Six Commandments of Good Code: Write Code that Stands the Test of Time

    Humans have only been grappling with the art and science of computer programming for roughly half a century. Compared to most arts and sciences, computer science is in many ways still just a toddler, walking into walls, tripping over its own feet, and occasionally throwing food across the table. As a consequence of its relative youth, I don’t believe we have a consensus yet on what a proper definition of “good code” is, as that definition continues to evolve. Some will say “good code” is code with 100% test coverage. Others will say it’s super fast and has a killer performance and will run acceptably on 10 year old hardware. While these are all laudable goals for software developers, however I venture to throw another target into the mix: maintainability. Specifically, “good code” is code that is easily and readily maintainable by an organization (not just by its author!) and will live for longer than just the sprint it was written in. The following are some things I’ve discovered in my career as an engineer at big companies and small, in the USA and abroad, that seem to correlate with maintainable, “good” software.

    Never settle for code that just “works.” Write superior code.

    Commandment #1: Treat Your Code the Way You Want Other’s Code to Treat You

    I’m far from the first person to write that the primary audience for your code is not the compiler/computer, but whomever next has to read, understand, maintain, and enhance the code (which will not necessarily be you 6 months from now). Any engineer worth their pay can produce code that “works”; what distinguishes a superb engineer is that they can write maintainable code efficiently that supports a business long term, and have the skill to solve problems simply and in a clear and maintainable way.
    In any programming language, it is possible to write good code or bad code. Assuming we judge a programming language by how well it facilitates writing good code (it should at least be one of the top criteria, anyway), any programming language can be “good” or “bad” depending on how it is used (or abused).
    An example of a language that by many is considered ‘clean’ and readable is Python. The language itself enforces some level of white space discipline and the built in APIs are plentiful and fairly consistent. That said, it’s possible to create unspeakable monsters. For example, one can define a class and define/redefine/undefine any and every method on that class during runtime (often referred to as monkey patching). This technique naturally leads to at best an inconsistent API and at worst an impossible to debug monster. One might naively think,”sure, but nobody does that!” Unfortunately they do, and it doesn’t take long browsing pypi before you run into substantial (and popular!) libraries that (ab)use monkey patching extensively as the core of their APIs. I recently used a networking library whose entire API changes depending on the network state of an object. Imagine, for example, calling client.connect() and sometimes getting a MethodDoesNotExist error instead of HostNotFound or NetworkUnavailable.

    Commandment #2: Good Code Is Easily Read and Understood, in Part and in Whole

    Good code is easily read and understood, in part and in whole, by others (as well as by the author in the future, trying to avoid the “Did I really write that?” syndrome).
    By “in part” I mean that, if I open up some module or function in the code, I should be able to understand what it does without having to also read the entire rest of the codebase. It should be as intuitive and self-documenting as possible.
    Code that constantly references minute details that affect behavior from other (seemingly irrelevant) portions of the codebase is like reading a book where you have to reference the footnotes or an appendix at the end of every sentence. You’d never get through the first page!
    Some other thoughts on “local” readability:

    • Well encapsulated code tends to be more readable, separating concerns at every level.
    • Names matter. Activate Thinking Fast and Slow’ssystem 2 way in which the brain forms thoughts and put some actual, careful thought into variable and method names. The few extra seconds can pay significant dividends. A well-named variable can make the code much more intuitive, whereas a poorly-named variable can lead to headfakes and confusion.
    • Cleverness is the enemy. When using fancy techniques, paradigms, or operations (such as list comprehensions or ternary operators), be careful to use them in a way that makes your code morereadable, not just shorter.
    • Consistency is a good thing. Consistency in style, both in terms of how you place braces but also in terms of operations, improves readability greatly.
    • Separation of concerns. A given project manages an innumerable number of locally important assumptions at various points in the codebase. Expose each part of the codebase to as few of those concerns as possible. Say you had a people management system where a person object may sometimes have a null last name. To somebody writing code in a page that displays person objects, that could be really awkward! And unless you maintain a handbook of “Awkward and non obvious assumptions our codebase has” (I know I don’t) your display page programmer is not going to know last names can be null and is probably going to write code with a null pointer exception in it when the last name-being null case shows up. Instead handle these cases with well thought out APIs and contracts that different pieces of your codebase use to interact with each other.

    Commandment #3: Good Code Has a Well Thought-out Layout and Architecture to Make Managing State Obvious

    State is the enemy. Why? Because it is the single most complex part of any application and needs to be dealt with very deliberately and thoughtfully. Common problems include database inconsistencies, partial UI updates where new data isn’t reflected everywhere, out of order operations, or just mind numbingly complex code with if statements and branches everywhere leading to difficult to read and even harder to maintain code. Putting state on a pedestal to be treated with great care, and being extremely consistent and deliberate with regard to how state is accessed and modified, dramatically simplifies your codebase. Some languages (Haskell for example) enforce this at a programmatic and syntactic level. You’d be amazed how much the clarity of your codebase can improve if you have libraries of pure functions that access no external state, and then a small surface area of stateful code which references the outside pure functionality.

    Commandment #4: Good Code Doesn’t Reinvent the Wheel, it Stands on the Shoulders of Giants

    Before potentially reinventing a wheel, think about how common the problem is you’re trying to solve or the function is you’re trying to perform. Somebody may have already implemented a solution you can leverage. Take the time to think about and research any such options, if appropriate and available.

    That said, a completely reasonable counter-argument is that dependencies don’t come for “free” without any downside. By using a 3rd party or open source library that adds some interesting functionality, you are making the commitment to, and becoming dependent upon, that library. That’s a big commitment; if it’s a giant library and you only need a small bit of functionality do you really want the burden of updating the whole library if you upgrade, for example, to Python 3.x? And moreover, if you encounter a bug or want to enhance the functionality, you’re either dependent on the author (or vendor) to supply the fix or enhancement, or, if it’s open source, find yourself in the position of exploring a (potentially substantial) codebase you’re completely unfamiliar with trying to fix or modify an obscure bit of functionality.
    Certainly the more well used the code you’re dependent upon is, the less likely you’ll have to invest time yourself into maintenance. The bottom line is that it’s worthwhile for you to do your own research and make your own evaluation of whether or not to include outside technology and how much maintenance that particular technology will add to your stack.
    Below are some of the more common examples of things you should probably not be reinventing in the modern age in your project (unless these ARE your projects).

    Databases

    Figure out which of CAP you need for your project, then chose the database with the right properties. Database doesn’t just mean MySQL anymore, you can chose from:

    • “Traditional” Schema’ed SQL: Postgres / MySQL / MariaDB / MemSQL / Amazon RDS, etc.
    • Key Value Stores: Redis / Memcache / Riak
    • NoSQL: MongoDB/Cassandra
    • Hosted DBs: AWS RDS / DynamoDB / AppEngine Datastore
    • Heavy lifting: Amazon MR / Hadoop (Hive/Pig) / Cloudera / Google Big Query
    • Crazy stuff: Erlang’s Mnesia, iOS’s Core Data

    Data Abstraction Layers

    You should, in most circumstances, not be writing raw queries to whatever database you happen to chose to use. More likely than not, there exists a library to sit in between the DB and your application code, separating the concerns of managing concurrent database sessions and details of the schema from your main code. At the very least, you should never have raw queries or SQL inline in the middle of your application code. Rather, wrap it in a function and centralize all the functions in a file called something really obvious (e.g., “queries.py”). A line like users = load_users(), for example, is infinitely easier to read than users = db.query(“SELECT username, foo, bar from users LIMIT 10 ORDER BY ID”). This type of centralization also makes it much easier to have consistent style in your queries, and limits the number of places to go to change the queries should the schema change.

    Other Common Libraries and Tools to Consider Leveraging

    • Queuing or Pub/Sub Services. Take your pick of AMQP providers, ZeroMQ, RabbitMQ, Amazon SQS
    • Storage. Amazon S3, Google Cloud Storage
    • Monitoring: Graphite/Hosted Graphite, AWS Cloud Watch, New Relic
    • Log Collection / Aggregation. Loggly, Splunk

    Auto Scaling

    • Auto Scaling. Heroku, AWS Beanstalk, AppEngine, AWS Opsworks, Digital Ocean

    Commandment #5: Don’t Cross the Streams!

    There are many good models for programming design, pub/sub, actors, MVC etc. Choose whichever you like best, and stick to it. Different kinds of logic dealing with different kinds of data should be physically isolated in the codebase (again, this separation of concerns concept and reducing cognitive load on the future-reader). The code which updates your UI should be physically distinct from the code that calculates what goes into the UI, for example.

    Commandment #6: When Possible, Let the Computer Do the Work

    If the compiler can catch logical errors in your code and prevent either bad behavior, bugs, or outright crashes, we absolutely should take advantage of that. Of course, some languages have compilers that make this easier than others. Haskell, for example, has a famously strict compiler that results in programmers spending most of their effort just getting code to compile. Once it compiles though, “it just works”. For those of you who’ve either never written in a strongly typed functional language this may seem ridiculous or impossible, but don’t take my word for it. Seriously, click on some of these links, it’s absolutely possible to live in a world without runtime errors. And it really is that magical.
    Admittedly, not every language has a compiler or a syntax that lends itself to much (or in some cases any!) compile-time checking. For those that don’t, take a few minutes to research what optional strictness checks you can enable in your project and evaluate if they make sense for you. A short, non-comprehensive list of some common ones I’ve used lately for languages with lenient runtimes include:

    Conclusion

    This is by no means an exhaustive or the perfect list of commandments for producing “good” (i.e., easily maintainable) code. That said, if every codebase I ever had to pick up in the future followed even half of the concepts in this list, I will have many fewer gray hairs and might even be able to add an extra 5 years on the end of my life. And I’ll certainly find work more enjoyable and less stressful.
    This article is from Toptal.

  • Responsive / screen size wise font-size using CSS

    Since there are lots of improvements is happening in CSS3 and still most of developer and designer are unaware of it.
    So, Now let me present the new tag they introduce in CSS3 for Responsive font-size is : vw, vh, vmin, vmax
    With this font size type, it will increase and decrease font size according to screen or browser size. This is very helpful as generally we use px but with px there is an issue when user opens it on large screen then they are not able to see proper font size so to fix this issue we increase that font in px and then the main issue occur for small screen devices because they see very big font on their tiny screen. to prevent this issue we add media query but my question is that how many media query you will write. so to save this extra effort we can use new font size type.
    With the help of vw, vh, vmin, vmax we define font size and with this, we don’t have to write media queries for each screen.
    Example:
    vw:
    Divs with color shade:

    <div class="grid">
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
      <div class="grid__item"></div>
    </div>
    .grid::before,
    .grid::after {
      clear: both;
      content: '';
      display: block;
    }
    .grid__item {
      box-sizing: border-box;
      float: left;
      height: 50vw;
      padding: 2em;
      width: 50vw;
    }
    .grid__item:nth-child(1) {
      background-color: #ff4433;
    }
    .grid__item:nth-child(2) {
      background-color: #ff5533;
    }
    .grid__item:nth-child(3) {
      background-color: #ff6633;
    }
    .grid__item:nth-child(4) {
      background-color: #ff7733;
    }
    .grid__item:nth-child(5) {
      background-color: #ff8833;
    }
    .grid__item:nth-child(6) {
      background-color: #ff9933;
    }
    .grid__item:nth-child(7) {
      background-color: #ffaa33;
    }
    .grid__item:nth-child(8) {
      background-color: #ffbb33;
    }
    

    Output: https://codepen.io/timseverien/pen/uhzgo
     
    Screen wise font size:

    <div class="container">
      <h1>My special headline</h1>
      <p>Re-size the viewport and see the headline magically resize!</p>
    </div>
    .container { text-align: center; }
    h1 { font-size: 5vw; }
    

    Output: https://codepen.io/timseverien/pen/rkhgo
    In this, you can also use vmax instead of vw.
    This is very helpful but the major drawback is that it is supported by only modern web browsers.

  • Best Safety Apps for Women

    Best Safety Apps for Women

    [pt_text]
    [/pt_text][pt_text]SOS – Stay Safe:
    sos
    This is a free Android App. No needs to type in the phone unlock code, just keep this app activated and shaking it a couple of times (custom metres will trigger alert along with your geographical location to the emergency contact.
    If shaking is confusing, it also features home button tapping, which will also send a message, location, even battery status of phone and an audio recording.

    VithU:
    VithU
    A V Gumrah Initiative this is a real time interactive safety application for women. All you need to do is press the power button of your phone twice and the alert message will be sent to pre-set contacts along with your location.
    This App continues to send the location to contacts every two minutes.

    Raksha – Women Safety Alert:
    Raksha - Women Safety Alert
    The Raksha app is designed to ensure that women stay safe always. The app comes equipped with a button, which will send alerts to your loved ones with your location in a situation of distress. You can select the contacts, which will be able to see your location. Moreover, if the app is switched off and is not working then also you will be able to send alerts by simply pressing the volume key for three seconds.
    The app also has SOS functionality and can also send SMS if stuck in a non-internet area.

    Smart24x7 – Personal Safety App:
    Smart24x7-Personal-Safety-App
    The Smart24x7 app is supported by the various states’ police just to ensure the safety of women and senior citizens. The app sends panic alerts to emergency contacts in a problematic situation. It also records voices and also takes photographs during the panic situation and transfers these to the police as well.
    It also has call centre support, which will track down the primary movements of the user. Users just need to press the panic button and select the type of service required and then finally click on submit.

    Nirbhaya – Be Fearless:
    Nirbhaya Be Fearless
    The app sends an alert to pre-added contacts with the user’s location. The user can choose to send the alert in the form of an SOS message, phone call or a Facebook post.
    The app also provides the user with the option of sending an alert by just shaking their phone in a situation of emergency. It also sends user’s location to chosen contacts every two hours and after 300-meter change in position.

    bSafe – Personal Safety:
    bSafe - Personal Safety
    Let emergency contacts follow you through a live GPS trail; set a timed alarm that goes off if you haven’t ‘checked in’; make your phone ring with a fake call; the alert notifies emergency contacts with location, video, even siren.

    Scream Alarm:
    Scream Alarm
    The application can be used to generate a very high volume scream in times of distress when your own lungs may fail you. The generated scream is in a woman’s voice which is extremely helpful in deterring potential trouble makers
    It screams in a woman’s voice — no more, no less.

    Safetipin:
    Safetipin
    This safety app provides users with features like GPS tracking, directions to safe locations and pins showing safe and unsafe areas on the map.
    Apart from the basic SOS feature of contacting the user’s friends and family in emergency situations and letting them track the users, the app has a number of other features.
    Safetipin is also available in Hindi, Bahasa and Spanish, besides English.

    Shake2Safety:
    Shake2Safety
    The Shake2Safety app is the easiest to use. The user just needs to shake their smartphone or just press the power button four times to send an SOS text or call to the registered numbers. It works with the locked screen on and even without an internet connection.
    Moreover, the users will also have the ability to activate or deactivate the option of shaking the device to send an alert.The app can also be used in case of an accident, harassment, robbery or any natural calamities.

    Women Safety Secured:
    Women-Safety-Secured
    The app recognizes shouting and crying as distress signals and sends text messages to emergency contacts with location.
    [/pt_text]

  • Auto Screen Rotate/G-Sensor Issue in Windows 10 Tablet

    Auto Screen Rotate/G-Sensor Issue in Windows 10 Tablet

    So you just update your windows tablet from Windows 8/8.1 to windows 10. And you didn’t find Auto Screen Rotate option in Windows 10.

    The same issue I was facing from once I update Windows 10. first I thought Windows 10 doesn’t support Auto Rotate Screen. So, I use it around 4 month. But one day I found a Video of Unboxing windows tablet and it has the Auto Screen Rotate feature. So I start finding solution for my tablet “iBall Slide WQ32”. I tried many drivers but some drivers work and some not. and the working drivers work weird It work like I hold tablet horizontal but screen rotate to vertical. I was completely shocked by its behavior. So I start my R&D in registry and the final solution I found is described here.

    Follow this steps but let me clear one thing I AM NOT RESPONSIBLE FOR ANY KIND OF SYSTEM DAMAGE.

    1. Download KIONIXdriver from this URL: https://www.kionix.com/downloads

      (select KXTJ9-KXCJ9-KXTJ2 Driver for Windows 7/8/10)

    2. Extract it and install. if you are on 64bit then install x64 driver else x86.
    3. Restart your tablet.
    4. Now go to Setting > System > Display > you will see a new option there “Lock Auto Rotate Screen” so turn it off.

    Now you have 3 conditions there

    1. Your screen rotation will work fine on all Degree.
    2. Your screen will rotate upside down
    3. Your screen will rotate 1 Step next. E.g. You hold your tablet at Horizontal but it rotate vertical.

    To prevent this issue you have to got Registry.

    How to go to Registry?

    Tap and hold on Start icon at bottom left you will see menu. In that menu you will see option “Run” tap on that.

    A box will appear now type on that box “regedit”. Hit enter or tap on OK.

    Now a register editor will open. Now go to

    HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Enum > ROOT > SENSOR > 0000 > Device Parameters > kxfusion

    So the path will be :

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetEnumROOTSENSOR000Device Parameterskxfusion
    

    if you are tech geek and know about HEX value then hit and try Orientation value

    00,00,00,00,01,01,02
    01,01,00,00,00,00,02
    00,01,00,01,00,01,02
    01,00,01,00,01,00,02

    Or just download my registry from:

    [wpdm_package id=’2550′]

    But always remember after modifying anything in registry you have to RESTART your system.

    in my zip there is already driver attached. but if you want to download latest version then please go to https://www.kionix.com/downloads.

    About my Tablet:

    iBall Slide WQ32

    • 16 GB internal
    • 2 GB Ram
    • Wi-Fi + 3G (Without Calling Facility)
    • 8 inch Screen
    • Screen Resolution 1280 x 800 pixels
    • 8 cm (18) Screen Size
    • IPS Screen
    • 2 Megapixel front camera
    • 5 Megapixel primary camera
    • 83 GHz Intel Atom Processor Z3735D
    • Storage expand upto 64 GB

    Also you can connect external Hard Drive, Keyboard Mouse and all other peripherals which supported by windows 10.

    You can purchase it from This link.

  • Boost Your Productivity With Amazon Web Services

    During the last few years, the hottest word on everyone’s lip has been “productivity.” In the rapidly evolving Internet world, getting something done fast always gets an upvote. Despite needing to implement real business logic quickly and accurately, as an experienced PHP developer I still spent hundreds of hours on other tasks, such as setting up database or caches, deploying projects, monitoring online statistics, and so on. Many developers have struggled with these so called miscellaneous tasks for years, wasting time instead concentrating on the project logic.
    My life changed when a friend mentioned Amazon Web Services (AWS) four years ago. It opened a new door, and led to a tremendous boost in productivity and project quality. For anyone who has not used AWS, please read this article, which I am sure you will find worth your time.
    Boosting your productivity

    Amazon Web Services (AWS) can boost your productivity, literally, in minutes.

    AWS Background

    Amazon Web Services was officially launched in 2006. Many people will have heard of it, but probably don’t know what it can offer. So, the first question is: What is AWS?

    Amazon Web Services (AWS), is a collection of cloud computing services, also called web services, that make up a cloud-computing platform offered by Amazon.com.

    Wikipedia
    From this definition, we know two things: AWS is based in the cloud, and AWS is a collection of services, instead of a single service. Since this does not tell you much, in my opinion, it is better for a beginner to understand AWS as:

    • AWS is a collection of services in the cloud, as the definition says.
    • AWS provides fast computing resources online (for example, you need 10 minutes to set up a Linux server).
    • AWS offers affordable fees.
    • AWS provides easy-to-use services out of the box, which is saves lots of time manually setting up a database, cache, storage, network and other infrastructure services.
    • AWS is always available and is highly scalable.

    There are, of course, many more advantages to using AWS, so, let’s have a quick overview of how it can boost your productivity.

    Create an AWS account for free

    To begin using any service, you need to have an account. Creating an account for AWS should take you no more than five minutes. Make sure you have the following information at hand:

    • An Email address, which is used to receive a confirmation email.
    • A credit card, which will not be billed since the setup process is always free.
    • A phone number, which will receive an automated system call to identify user

    That’s it. Once you have the info listed above ready, visit AWS web page, and create an account following the easy-to-follow instructions.
    Note the following:

    • Most AWS services offer an abundance of free tier resources on a monthly basis. That is, testing AWS typically costs you little or nothing.
    • The phone number and other personal information has not been abused, according to my experience

    Get your first EC2 server setup

    One of the benefits of a cloud service is the ability to get shared resources on demand. Amazon has provided four tiers of service for the user to access its services, listed in the order of easiness:

    • Management Console,
    • Command-Line-Tool,
    • SDK,
    • RESTful API.

    In this article, we will be using the Management Console. So, after you log in to the console, you will see a screen like below:
    Setting up your first EC2 server in the AWS
    There are two areas to note:

    • On the top-right corner, you will find the region selector. AWS provides services in 11 different regions across the world, and it is still growing. Choose a region as your choice, or leave it to US East (N. Virginia) as default. Different regions may vary in pricing, which you should bear in mind as your usage grows.
    • Most of the screen is filled with a list of services. We will cover EC2 in this section. Take a quick look at what AWS provides. Don’t worry if they don’t make sense, all of the services will work on their own. However, you will get greater productivity by using a combination of them.

    The most fundamental need of a cloud resource is the virtual server. EC2, or Elastic Compute Cloud, is the name chosen by Amazon for its virtual server service. Let’s have a look at how easy it is to get a Linux server online.

    • In the EC2 management console, start the launching process like below:

    Setting up your first EC2 server in the AWS

    • Choose a machine image (AMI for short) to begin. This is the operating system that will run your machine. Pick any system of your preference. I recommend you start with Amazon Linux, which uses yum to manage packages:

    Setting up your first EC2 server in the AWS

    • Next, select an instance type. You can understand this as your hardware specification for your virtual server. You can start with t2.micro, because you will get 750 hours of free usage every month with this instance for the first year. Note this is valid only the first year from the date you sign up, and only for the t2.micro instance. It’s a good deal if you only want to have a taste of AWS.

    Setting up your first EC2 server in the AWS

    • With the ability to configure the server in more detail, you can launch the server. The first time you use EC2, you will see a screen similar to the one below. The warning about security tells us how much Amazon emphasizes the security aspect. However, we can ignore this warning until we visit the section about managed services.

    Setting up your first EC2 server in the AWS

    • Finally, to access a remote server, we need an identity. AWS will prompt us to choose an SSH key pair, as in the image below. Download the privacy key file and click the launch button. And yes, we are done; a new virtual server is being configured and will be ready in a few minutes.

    Setting up your first EC2 server in the AWS

    • Once the instance is ready, you may log into the system as default user ec2-user, with your privacy key. ec2-user is the AWS default that also has sudo ability. Although it is not possible to change the default username, you may create any user and assign the appropriate privileges according to your preferences. The address of your server can be found here:

    Setting up your first EC2 server in the AWS
    The process above should take less than five minutes, and that is how easily we get a virtual server up and running. In the next section, we will learn how AWS helps us manage the instance we just created.

    On-demand billing

    Most AWS resources are billed in hours, which provides good flexibility. For example, taking the EC2 instance we just created, there are two ways to put it out of service: stop and terminate. Both actions will stop the billing. The difference is that by stopping an instance, we can re-start it later with all our work saved. In contrast, by terminating an instance, we give the instance back to AWS for recycling and there is no way to recover the information. The need to terminate an instance results from AWS setting a limit of 20 instances per region per account by default, and a stopped instance still counts until it is terminated.
    We can stop an instance quickly by:
    Setting up your first EC2 server in the AWS
    When you stop your EC2 instance, your bill stops growing, as well. It’s especially useful in the following scenarios:

    • When you want to try something new, it is more cost friendly if you only need to pay for a couple of hours, and you probably won’t exceed the free tier for some services.
    • When your computing need is in production environment scales. For example, in the past, I needed to reserve computing resources which are usually 30-50 percent more than the peak usage. With AWS, I could provision resources in a more flexible way:

    Setting up your first EC2 server in the AWS
    Pricing information for AWS is available online. After making some calculations, you may raise the question: Is AWS actually cheaper? By multiplying the hourly rate for a month’s time, it looks like it’s not competitive at all. The answer is yes and no.
    AWS is not cheaper if you simply calculate the hourly rate for the on-demand resource over a month. However, we still have the reserved instances billing choices as illustrated below:
    Setting up your first EC2 server in the AWS
    For the minimum resource requirements, we can achieve a 30 to70 percent discount using the reserved instance, along with other varying resources billed as an on-demand instance. In practice, this will be 30 to 40 percent cheaper with the one-year commitment, and even more with a three-year commitment using reserved instances. That is why I’ll vote “Yes” on the above question. And AWS is even cheaper if you include the security and monitoring benefits.

    Managed services

    One aim of AWS is to eliminate as much of the operational cost as possible. Traditionally, we need a large team of system engineers to maintain the security and health of our infrastructure, either online on onsite. Experienced teams will write and deploy their automated tools to simplify the process. However, managing services becomes a complicated project in practice, as well. AWS acts as a lifesaver in helping us manage our resources. Below, I have listed some of the services provided by AWS that are most used:

    • AWS Security Group,
    • IAM, Identity Access Management,
    • CloudWatch,
    • And a list of auto deployment services such as OpsWorks (which will not be covered in this article).

    AWS Security Group

    How AWS handles access control of services is done in two separate layers. On the network level, it is achieved by using an idea known as “security groups.” All AWS services are in security groups. And the security group determines who is allowed to pass through. Taking our EC2 instance, AWS has automatically created a security group for us:
    Setting up your first EC2 server in the AWS
    We can decide what can comes in and what can go out by configuring inbound/outbound rules. TCP, UDP, and ICMP rules are supported by the EC2 service. The security group acts like an external hardware level firewall, and we never need think about patching it.
    One more advantage of using security group is that it is reusable. One security group can be shared among many resources. In practice, it greatly improves maintenance efficiency by removing the hassle of setting security policy one by one for each resource. Also, the shareable nature of a security group enables us to configure it in a single place, and apply that security policy to any other resources, without the hassle of setting it manually, one by one for each resource.

    Identity and Access Management

    AWS provides another method to handle access control by using IAM. This is an application level security control for when you need to access the RESTful interfaces. Each REST request must be signed so that AWS knows about who is accessing the service. Also, by checking against a preconfigured list of policies, AWS will determine if the action should be denied or allowed through.
    We will not cover IAM in detail in this article. However, note that AWS puts a lot of thought into security so you can be sure no unauthorized visitors can access your confidential data.

    CloudWatch

    CloudWatch is a service provided by AWS to collect and track all kinds of metrics from your AWS resources. It is more powerful because of its ability to react to certain events (or alarms). With the help of CloudWatch, we can monitor the health of our newly created EC2 instance.

    • We can add alarms to our EC2 instance quickly:

    Setting up your first EC2 server in the AWS

    • Alarms may be created by specifying criteria for many different purposes:

    Setting up your first EC2 server in the AWS
    NOTE: SNS is a topic based service provided by AWS to send notifications. Notifications can be sent by email, SMS, iOS/Android push notification and many other formats.
    From monitoring to notifying, CloudWatch attempts to automate monitoring needs in a few clicks. There are tons of metrics predefined for various AWS services. For the advanced user, you can even create custom metrics for your application.
    Regarding cost, the free tier service provided by CloudWatch is usually plenty for start-up projects. However, even when your business grows, the added costs are usually less than 1 percent of the service cost. Check detailed pricing for further information. Considering how easy it is to set up a monitoring system using CloudWatch, it has become the most used monitoring tool.

    Hassle free application services

    As developers, we have likely experienced the following scenarios:

    • Our application needs a database component, which means that we have to:
      • Get a server for the database.
      • Install the database software.
      • Configure monitors for the server and the database.
      • Plan backup schemes.
      • Patch the software as needed.
      • And many other not listed here.
    • Our application needs distributed file storage, which means that we have to:
      • Find existing open source (or commercial) solutions for distributed file storage.
      • Prepare the needed servers.
      • Install and configure the chosen solution, which is usually not straightforward.
      • Configure monitors for the server and the database
      • And many other not listed here
    • Our application needs a cache.
    • Our application needs a message queue.
    • And many other problems to be solved, plus, we need to do pre-configuration and post-monitoring work.

    And, as you may have already guessed, this is another significant area where AWS helps. There are a lot of application level services available, so you won’t need to consider anything else.
    Let’s cover some of them to give you a quick picture.

    RDS, database managed for you but not by you

    Relational databases (RDBMS) have been widely adopted by a lot of applications. In the production environment, special attention is always needed when deploying applications using RDBMS, beginning with how to setup and configure the database, followed by when and how backups are made and restored.
    In our team, our Database Administrator (DBA) used to spend at least 30 percent of his time writing setup and maintenance scripts. With the introduction of AWS RDS, our DBA got more time to do SQL performance tuning, which is the preferred area to invest your DBA in.
    So, what does RDS offer you? In short:

    • RDS provides support for most of the popular database engines, including MySQL, SQLServer, PostgreSQL.
    • A database, either a node or a cluster, can be created in a few clicks.
    • RDS offers built-in support for shared database parameters, under the service named “Parameter Group”.
    • RDS provides built-in support for access management with the help of Security Group , which is quite similar to the one we covered for EC2.
    • RDS offers additional services by enabling Multi-AZ in a single click. All monitoring, standby and failover switching are done automatically.
    • Maintenance and backup of RDS are automated.

    To conclude, RDS saves a considerable amount of time when it comes to setup and maintenance of the database services. In exchange, you will pay about 40 percent more than the corresponding EC2 server. So, it is a business decision whether to opt for RDS or deploy the corresponding server on your own. However, it does allow you to invest more time in work that’s related to real business rather than infrastructure stability and scalability. Plus, you will soon notice that this is the way of business AWS advocates.

    Dynamo DB, a key-value storage scales to billions of records

    NoSQL has become a favorite topic in recent years. Since many real life projects do not need the support of various relational DBMS, a list of NoSQL databases has been introduced to the market. Amazon is not falling behind in this. DynamoDB (https://aws.amazon.com/dynamodb) is the key-value store announced by Amazon in 2012, and the core contributor to this service is Werner Vogels, CTO of Amazon, one of the world’s top experts on ultra-scalable systems.
    It is no secret that Amazon handles massive traffic. DynamoDB is derived from Dynamo, which has been the internal storage engine for many Amazon’s businesses, including its shopping cart service that serves billions of requests every Christmas. DynamoDB has no limitation in scaling up.
    Further, when compared to other NoSQL solutions, such as Cassandra or MongoDB, there is an enormous economic advantage to DynamoDB; it is billed in the unit of reserved throughput (how many write/read per second is allowed), which can be increased or decreased in real time. Below is a cost comparison table between DynamoDB and other standalone NoSQL solution:

    Business Need DynamoDB service DynamoDB cost Using another service Cost when using another service
    Small Business
    (less than 1000 DAU, 16GB data)
    10 write unit
    10 read unit
    $9.07/month • t1.micro ••
    16GB EBS •••
    $14.64/month
    Medium Business
    (less than 100k DAU, 160GB data)
    100 write unit
    100 read unit
    $101.62/month m4.xlarge
    160GB EBS
    $190.95/month
    Large Business
    (up to 1m DAU, 1TB data)
    1000 write unit
    1000 read unit
    $852.58/month Clustered c4.4xlarge • 512GB EBS • $1329.24/month

    • to be fair, price is calculated using on-demand pricing in US-EAST region
    •• AWS EC2 instances are selected to host other NoSQL services
    ••• EBS is the persistent storage service provided by AWS
    As we can read from the table, DynamoDB provides its service out of the box, and usually at a lower price compared to building your own key-value storage. This is because unless you hit the maximum capacity of your MongoDB/Cassandra cluster, you are paying more for something you never use.
    Amazon offers its service in a fully-managed manner. This means that you don’t have to worry how to setup, scale or monitor your DynamoDB; they are all done by AWS. In fact, reading and writing DynamoDB items are always measured in constant time complexity, regardless of the size of data being manipulated. Therefore, some applications have chosen to discard cache layers after they switched to DynamoDB. Amazing, indeed.

    SQS, distributed queue service

    When working with large volumes of data, we often distribute calculations to many computing nodes. When doing business globally, we are often in need of a pipeline to process data collected from nodes distributed in a geographically wide range. To help meet the requirements for such events, AWS introduces SQS, Simple Queue Service. Like many acknowledged queue services, SQS offers a way to pass messages/jobs between different logical components, in a persistent manner.
    As its name indicates, SQS is a basic service that is available at the beginning of AWS. However, Amazon has steadily been developing SQS, and depending on the need, SQS maybe as simple or as powerful as you need with many customizable parameters. Some of the advanced features of SQS are:

    • Retaining messages for up to 14 days.
    • Visibility mechanism for avoiding message loss in a failure event.
    • Delivery delay per message.
    • Redrive policy to handle failed messages (so-called dead letter).

    Queue services shouldn’t be too complicated. You may wonder why it is worth using a whole section just to introduce SQS. Perhaps you have already guessed the reason; like other AWS service, SQS is a fully managed service, which means:

    • The queue is highly scalable; it can be tens of messages you are passing through or millions per second, so SQS scales on the fly.
    • The queue is persistent and distributed, which means critical data will not be lost unless they expire.
    • You do not need to setup a server to deploy your queue software. And of course, you do not need to setup complex monitoring for the service, either

    S3, a file storage, but not only a file storage

    S3 stands for Simple Storage Service andis like Dropbox as a service for the end-user, but this is for applications. By definition, S3 is an object-based storage with a simple web interface.
    S3 is simple for the user, but also comes with lots of advanced features. I S3 has become an industry standard, especially for applications using other AWS services. This is mainly because S3 is so easy to integrate that it has become a popular external storage destination for most AWS services. Also, many services, such as DynamoDB, SQS and so on, make heavy use of S3 internally.
    Understanding S3 should amplify the benefits of using other AWS managed services. This is because most of the services store their backups on S3. Also, S3 is the common export/import destination for services including, but not limited to, DynamoDB, RDS, and Redshift.
    Finally, S3 is like other AWS services; it’s fully managed so we can simply start using the service without setting up any server or failover mechanisms. Economy wise, S3 is also a pay as you use service, so, you can always try it out without much cost.

    More advanced services and SDK

    There are many other AWS services also worth noting. Due to limited space, we are just listing some interesting ones here:

    • Redshift: A column based database which can be used to process trillions of data in a very fast manner. You must try it if you are responsible for the ETL of a large amount of data.
    • Data Pipeline: IAllows you to quickly transfer data between AWS services, and further enables periodical processing of data in a smaller shard.
    • ElastiCache: Managed Memcache server, simple but does the job perfectly.
    • Lambda: Next generation of cloud computing. Lambda runs an uploaded piece of code in an event-driven fashion that opens a new door for designing distributed applications.
    • Route53: Powerful DNS solution with the support of weighted response, geolocation based response on top of other industrial standard DNS solutions.
    • SNS: Easy-to-use notification service, designed in subscriber/publisher pattern.
    • Many more.

    I think it is a good habit to check AWS whenever you are introducing some new component to your application. Most often, AWS will give you a sweet surprise as it will have a ready a SaaS alternative to offer.
    Furthermore, to make it easier to access RESTful interfaces, Amazon has provided SDKs in almost all popular programming languages. You should have no problem finding your favorite SDK.

    Summary

    We have covered some of the most widely used services of AWS in this article. For sure there are some areas that AWS will help your business. You might choose to migrate an existing service component to its AWS equivalent, such as MySQL database to RDS, for instance. You may well find yourself asking if there are any AWS services for this component of my software? So, get an AWS account today, and get your productivity boost in minutes.
    This post originally appeared in Toptal Engineering blog

  • Guide: Software Release Management For Small Teams

    ormalizing The Release Management Process (If There’s Any)

    In some team configurations, especially ones that are found in startups, there are no DevOps, nor infrastructure engineers, to provide support when releasing a new version of the product.
    Moreover, unlike large bureaucratic companies with defined formal processes, the CTO or Head of Software Development team in a startup is often not aware of the complexities of the software release management process; a few developers in the company may be aware of the complex details of the process, but not everyone. If this knowledge is not documented thoroughly, I believe it could result in confusion.
    In this article, I’ll try to provide some tips about how to formalize the release process, particularly from the developer’s point of view.

    Enter The Software Release Checklist

    You may be familiar with the idea of a checklist for some operations, as per the Checklist Manifesto, a book by Atul Gawande. I believe a formal release process (like many other tasks in the software development world) provides developers with an opportunity to implement this protocol. A release process checklist should be kept in a shared document, preferably in the form of a collaborative wiki, or a spreadsheet on Google Drive.
    By sharing this vital document with the team, and by granting editing permissions, every member has access to the formally defined release process. This allows them to understand how the process works. Moreover, following discussions with other team members, it empowers the team to improve upon it every now and then. This should bring transparency and allow the entire team to have real-time access to what’s going on during the release, what steps have been completed, and by whom.
    By looking at this spreadsheet, the stakeholders can decide on a ‘GO’ vs ‘NO GO,’ based on the outcome of the steps. For example, if a stress test goes wrong in a test environment, based on the event the project manager might decide to call off the production release.
    A simple, well thought out spreadsheet checklist can make a big difference in your software release management process.

    A simple, well-thought-out spreadsheet checklist can make a big difference in your software release management process.

    Suggested Steps To Use As A Foundation

    In this section, I’ll propose some steps you can use to build your own checklist for your release process. Some of these steps are by no means mandatory. Each app is different and each organization works in a different way, so feel free to adapt and make changes that will fit better into your workflow.

    1. Create A Release Branch

    It’s likely that you are familiar with the concept of Git Workflow, or with the idea of release branches, a topic that has been explained in a previous blog post.
    Ideally, you should have at least three branches:

    • master: this should reflect the current state of what is in the production environment. Every new commit on master should comprise a new release only.
    • develop: this branch should contain the completed (and tested) upcoming features. It is common to create a separate branch for each feature and then merge it to develop when the feature is ready.
    • release: release branches are a collection of commits that are ready to be sent to production, plus some additional minor bug fixes related to the release.

    Notice the release branches should be removed once the release is completed, therefore these branches are created and destroyed all the time, unlike master or develop, which are always the same.
    In order to create a new release branch, from the develop branch in your git terminal, type:
    $ git checkout -b release/x.y.z
    It is convenient to use a naming convention, such as the one defined above, replacing x.y.z by the major.minor.patch version number according to your needs (it is a policy that you should define within your team and stick to it).
    It is important to say, as well, that if you code some bug fixes into the release branch, you should not forget to merge them back to develop. The main purpose of the release branch is to have a preview snapshot of how the app should behave after it goes into production.
    Organizing and keeping track of different release branches is a crucial aspect of release management.

    Organizing and keeping track of different release branches is a crucial aspect of release management.

    2. Bump Version

    The next step would be to bump (modify or increase) the version number on the release branch.
    You should open the AndroidManifest.xml / package.json / pom.xml / or wherever the app’s version is stored in your project (YMMV), update the version number, and then commit the changes to the current releasebranch.
    It is important to update the version number for two reasons.
    First, you can track and map the features that were introduced in each version, and second, you will be aware of the version they are using should they need to do some troubleshooting or to contact you for support. If you are building a mobile app, the version number you are updating in this step is usually displayed on the user end, in the About section or in Google Play or Apple App Store.This step is also a good opportunity to update environment-dependent-configuration files (although I’d suggest keeping those in a separate repository), such as making the branch point to the production database, or any other tweaks needed on the build process.
    Finally, it is recommended that you push the release branch to origin, so it is available for your other developers:
    $ git push -u origin release/x.y.z

    3a. Merge release branch to master and tag it

    Only the master branch should be deployed for production, thus in this step, we need to merge the releasebranch into master.

    $ git checkout master
    $ git merge --no-ff release/x.y.z
    $ git push
    

    The --no-ff flag is optional, however, its use is recommended in order to force the creation of a new commit object, even though the merge can be completed using the fast-forward technique.
    Next, it is time to tag the release on master branch:
    $ git tag -a x.y.z -m 'description of new version, features or fixes included'
    Tags are useful because you are persisting this specific point in history in the git repository, and you can come back later to recreate a separate branch off a particular tag.

    3b. Use a pull request to merge the release branch

    Another alternative used often, is to use a pull request to merge the release branch into master.
    There are numerous advantages to this approach. A new space is created for collaboration, which the team can use to discuss various release-related issues. This point is a good time to add an extra gate for incorporating a code review process, while having more eyeballs to monitor the code that will be introduced, and to discuss potential modifications.
    Some tools that allow you to implement pull requests into your workflows are GitHub,  Bitbucket and GitLab(merge request as they call it on the latter). With these tools, you don’t type the git commands manually, instead, you use a web interface to set the source branch (release) and the destination branch (master), and then you add one or more reviewers, all of whom will be able to write inline comments on these new changes, suggest improvements, and so on.
    After all the reviewers approve the pull request, you can automatically merge the changes into master by pressing a button on the UI.

    4. Deploy Master To Production Environment

    It is good practice, at this stage, to have a tester on your team do a smoke test (this could be defined on a separate checklist) before deploying the app. A good suggestion is to deploy the master branch into a separate testing environment as done by professional automation testing companies. The tester can then perform some basic actions to make sure nothing went wrong after the merge on the latest build. How to conduct a smoke test is beyond the scope of this article, but you can find a lot of material on the web about it. The result of the smoke test can be integrated into the release checklist/spreadsheet, documenting anything that went wrong.
    At this point, you are ready to deploy the changes and make them live. Go ahead and deploy master branch. This step will depend on the infrastructure stack you are using. It might involve connecting to your Amazon EC2 instance to upload your app, or pushing to a Heroku remote, or connecting via ssh to your VPS to copy the new version, or any other process.
    Do a smoke test, deploy the master branch into a separate testing environment, make sure the deployment was successful.

    Do a smoke test, deploy the master branch into a separate testing environment, make sure the deployment was successful.

    After the app is uploaded, make sure it was deployed successfully and that it works as expected.

    5. Merge Back Into Develop And Delete Release Branch

    Now the release is almost completed, you’ll want to merge the release branch into develop, to update the version number on the latter and to transfer all the bug fixes made to the main development branch:

    $ git checkout develop
    $ git merge release/x.y.z
    

    Now it is time to remove the release branch:
    $ git branch -d release/x.y.z

    6. Changelog Generation

    There should be a file at the root of your project named CHANGELOG.md (or an equivalent) where you should add a new entry whenever there is a new release in order to document everything that’s included in it, like bug fixes, new features, known issues, and any other relevant information in the form of release notes. This is really useful for users and contributors to see what changes have been made between each release (or version) of the project.
    The changelog entry includes the date, version number and some notes about the release. The entries should be kept in reverse chronological order. Here’s a simple template I’ve been using that you can adapt to your project:

    <app's name or component released> <version x.y.z> | <date>
    <developer's name in charge of release> | <developer's email>
    Features:
    * <ticket/issue number>: <ticket/issue summary> (<link to issue tracker>)
    * ...
    Bugs fixed:
    * <ticket/issue number>: <ticket/issue summary> (<link to issue tracker>)
    * ...
    Enhancements:
    * <ticket/issue number>: <ticket/issue summary> (<link to issue tracker>)
    * ...
    Optional: known issues plus other release notes.
    

    In addition, this step can be completely automated by either coding a basic script that traverses the git log and automatically generates the changelog entry, or by using a tool that does the same, such as:

    Keep in mind though, that the degree of automation you get is directly proportional to the strictness of your commit message format. I believe it is always good practice to agree on a specific format for commit messages with the team. By following guidelines on the style of the commit messages, they will be easier to parse and hence more likely that you will be able to automate the generation of the changelog.

    7. Communicate With Stakeholders

    This is where you would usually do some of the following:

    • Let the team know via an internal messaging tool (e.g.: Slack) that a new release has been completed. I recommend creating a new channel (i.e.: #releases) for the sole purpose of communicating release related events. It is easy to add hooks in a Slack channel to post a message after an action has been taken.
    • Alternatively, send an email to the stakeholders with a link to the changelog, or the changelog file attached.
    • Write a blogpost (if you have a blog for your app or product) or a tweet.

    More actions can be taken depending on the nature of your organization. The important thing is not forgetting to communicate that a new version of your product is available.

    8. Grooming The Issue Tracker

    After a release is executed, you will probably need to update the status of some of your tickets to keep track of the bug fixes, or features, currently in production. Generally, this involves changing some tags (for small projects I use a release-pending tag, which I remove after the release is completed).
    If you use milestones for each new version you’ll probably need to update their status or mark them as completed. Some issue trackers even let you plan the release and align it with sprints, track whether a bug is blocking a release, and other useful information.
    It all depends on how you use the tool. I simply want to point out that the task of updating the information in the issue tracker should be included in your release checklist.

    About Automating The Release Process

    The reader might have noticed that, apart from the changelog step outlined above, many of the aforementioned steps can be automated, too.
    The ability to automate some parts of the release process is a huge win and saves a lot of time. I suggest creating scripts, or figuring out how to automate individual steps and then work towards a continuous deliverygoal. Continuous delivery can reduce risk, reduce costs, and reduce the time developers need to spend in managing the release. Consequently, you’ll be able to release more often and be more productive in terms of the hours allocated for development.
    The holy grail of DevOps is to be able to launch a new version by pressing a button (or running a command) that would trigger the release process automatically, or even better, a system that would release a new version of your software at a designated time. Of course, this is difficult to achieve because you also need to automate a lot of the testing process, but it is not impossible.
    A fully automated software release? It’s not as farfetched as some believe.

    A fully automated software release? It’s not as farfetched as some believe.

    Embracing Best Practices

    In this section I’ll describe a couple of recommended practices that I’ve found convenient, either to make the release process smoother or for taking safety measures in case something goes wrong.

    Find the most suitable day to carry out the release

    I usually release apps I am working on on Thursdays, between noon and close of business.
    If you work Monday to Friday, it is not a good idea to launch on a Friday. If something breaks down after the release, you won’t have time to fix it until Monday (unless you want to work during the weekend). That’s why it is more convenient to do releases on Thursday, because you have Friday to monitor the new version after being deployed, fix any problems, or do a rollback.
    Another important thing to mention if you are managing a web app, is to know the time zone the majority of your users are located. You should time the release during a low traffic period to minimize the potential damage if something fails. Sometimes, this can be tricky when your user-base is spread across the whole world, but anyway, you should do some research and decide on the best time.

    Backup Your Database Before A New Release

    If you don’t have periodical backups of your DB scheduled, I strongly suggest you add a step into your release process to perform a backup before starting the release.

    Staged Rollouts

    Ever wonder why, when a publisher announces they’ve launched a new feature, it takes days, or even weeks, for that feature to be available on your phone? That’s because many companies use staged rollouts.
    Facebook has been doing this for a long time. It tests a new feature on five or 10 percent of its users, gradually increasing it until they reach 100 percent of the user-base. During the staged rollout phase, you’ll need to look closely at user feedback and crash reports. With this information, you can then postpone the release, or fix errors, before they affect every user.
    There’s a nice tool on the Android’s Developer Console that implements staged rollouts for your Android apps.
    In a staged rollout, propagation is incremental. As time goes by, the number of users with the latest version goes up.

    In a staged rollout, propagation is incremental. As time goes by, the number of users with the latest version goes up.

    Continuous Integration

    Continuous Integration is a practice worth embracing for many reasons. Firstly, it allows you to detect mistakes early, increasing the rate of successful releases. Secondly, it is the first logical step before implementing Continuous Delivery and full automation as previously described.
    Martin Fowler is a big advocate of Continuous Integration. He describes a huge amount of benefits that can be added to your release process when using this practice. This is a large topic and there are many books and blog posts about it, and I am mentioning it here because I believe it will give you much more confidence in your operations. Amongst the many advantages of using CI, you will find: reduced risk, increased visibility to be aware what is working and what not, earlier detection of bugs, increased frequency of deployments, and many more.
    The starting point to implementing CI is to set up a “continuous integration server;” some nice tools to try are: CruiseControl, Bamboo, Jenkins and Travis.

    Exitlude: It Will All Work Out

    Aggressively, we all defend the role we play Regrettably, times come to send you on your way We’ve seen it all, bonfires of trust, flash floods of pain It doesn’t really matter, don’t you worry, it’ll all work out
    Exitlude, The Killers
    To wrap up, I would say that it’s very important to have a well-defined release process for your app, regardless of its complexity, userbase, or how small your organization is.
    If you don’t, I suggest you start thinking about some basic steps, using this guide and others like it, and brainstorming with your team to come up with a first draft. Try it out on your next release, then iterate. Eventually, you’ll end up building your own release process.
    After that, start thinking about how to automate parts of the process. Think about areas that can be improved. Explore ways of reducing the release time by incorporating small optimizations. Automation should be your ultimate goal; however, don’t plan that from the start, or you will fail by attempting such a big leap. As with with every process, it is better to improve it gradually.
    Do you have any other tricks or guidelines you use for launching new versions of your app? If so, let me know. I don’t come from the DevOps world, I am just a developer who happens to be quite organized and structured, but compared to many veterans, I am still a novice in this respect, so feel free to comment or contact me if you have something to add.
    This post originally appeared in the Toptal Engineering blog