My Hive Posts

    Written by Coding Defined who lives and works in India building useful things. You should follow him on Twitter

    Does it Right to be Wrong?

    September 21, 2018
    does-it-right-to-be-wrong

    In this world, no one (or say very few percentages of people) wants to admit or say that they have done something wrong. Is it so hard to say these sentences now-a-days I did wrong or I made a mistake? Why today being perfect is so important where no one wants to accept their mistakes. One thing people do not understand that if you are not admitting the mistake you are increasing the stress in your life which is really bad for the healthy life. Since everyone is on social media now-a-days they are showing their perfect vacation, perfect home, perfect everything to the whole world even though the reality might not be the same, which is also making you stressed out. ![](https://cdn.steemitimages.com/DQmSuK3FTV4PNYvGLkcjfHtBASTRDcQ33ZTqNQrWtmzQGY2/image.png) PC : https://www.flickr.com/photos/quoteseverlasting/8640869656 When you realize that its OK to make a mistake, it will give you the strength to rectify that mistake. Otherwise, you will try to find ways to find out the middle way to run from your mistake which will eventually create a problem for you. It's on your hand if you want to stress out from your mistake or rectify it to live a better life. Everyone does mistakes, mistakes are part of life. But the best part of it is that it gives you tons of lessons on the life which will eventually make you a better person or you grow as a person. The beauty of mistakes is that it teaches you something or the other and these are the best teachers in your life. Though one will argue that what will happen to that person who does the same mistake again and again, does he not learning. Those people are leaning too, might be slow. Rectifying your mistakes might take time, but you should not worry, just that you have to analyze it and fix with the best of your capability. You can take help from your family members or friends too because they can help you to improve your thought process and thus make you the better person after all.

    Sunset in Ramnagaram

    September 20, 2018
    sunset-in-ramnagaram

    This photo was taken above the hill in Ramnagaram. ![IMG_20180908_172432-01.jpeg](https://ipfs.busy.org/ipfs/QmU7UcjFV3GPRngai7sMq6ucU22XFHSmStL4TFc755AVDE) Camera : Nokia 6

    A beautiful Sunset

    September 17, 2018
    a-beautiful-sunset-1d99ce4ca3c06

    You get a lot of time being in hospital, I too got some time to click some photos. ![image](https://img.esteem.ws/vqbsr2zapb.jpg) ![image](https://img.esteem.ws/xmephwuuad.jpg) Camera : Nokia 6

    Happy Ganesh Chaturthi

    September 15, 2018
    happy-ganesh-chaturthi-02449c8fd4433

    In India 2 days back we have celebrated Ganesh Chaturthi, as I was busy I could not post about it. Ganesh Chaturthi which is also known as Vinayaka Chaturthi is our festival where we celebrate the birth of Lord Ganesha. It is usually a 10 day festival, and normally falls on the month od August or September. On the tenth day, the Ganesha idol is carried in a public procession and then immersed in a nearby water body. Though we do not keep the idol in the home, but we do celebrate in our nearby temple. Few glimpses ![image](https://img.esteem.ws/2x9m513yv4.jpg) ![image](https://img.esteem.ws/kz8mzlftc7.jpg) ![image](https://img.esteem.ws/gtuceq9tq8.jpg) ![image](https://img.esteem.ws/324ymxsf2b.jpg)

    How I added Swagger in LetsDisc Repo

    September 14, 2018
    how-i-added-swagger-in-letsdisc-repo

    Swagger UI allows the development team to visualize and interact with the API without actually implementing logic in place. Its automatically generated from the specification, which makes it really easy for back end implementation and client side consumption. I have created a LetsDisc which will be a Clone of StackOverflow on Steem Blockchain. LetsDisc can solve the problem to keep everything on one place. Though you will have an option to Post on Steem, if you do not have the Steem Account, you can use it without posting it. As of now you can Login, Register, Create/Edit Question, Upvote other users questions. I tried to change the normal JavaScript code to AngularJS, so for that I try to use SwaggerUI for consuming in my frontend. To do it I have done like below, At first Install the Swashbuckle.AspNetCore NuGet package(https://www.nuget.org/packages/Swashbuckle.AspNetCore/) to your Web project. Then added the below code in ConfigureServices function of Startup.cs ``` services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new Info{Title="LetsDisc API",Version="v1"}); options.DocInclusionPredicate((docName, description) => true); }); ``` Then added the below code in Configure function of Startup.cs ``` // Enable middleware to serve generated Swagger as a JSON endpoint app.UseSwagger(); // Enable middleware to serve swagger-ui assets (HTML, JS, CSS etc.) app.UseSwaggerUI(options => { options.SwaggerEndpoint(_appConfiguration["App:ServerRootAddress"] + "/swagger/v1/swagger.json", "LetsDisc API V1"); options.IndexStream = () => Assembly.GetExecutingAssembly() .GetManifestResourceStream ("LetsDisc.Web.Host.wwwroot.swagger.ui.index.html"); }); // URL: /swagger ``` That's it, when you run your application and go to /swagger/index.html you will see all the API's are documented. ![swagger.png](https://cdn.steemitimages.com/DQmUvb3mL517ncH6Z4CyvjdCHhi6NwCJgmFec1vMtJqewR2/swagger.png) Also Posted : http://www.codingdefined.com/2018/09/how-i-added-swagger-in-letsdisc-repo.html

    Do you often provide Constructive Criticism?

    September 12, 2018
    do-you-often-provide-constructive-criticism-579e814d0eb0e

    Once in your lifetime you might have to provide feedback for others work, how do you do that. Do you just bring out negative and ask the person to change it, or you just point out the positive and leave the negative. Or do you point out both equally. Though pointing out both is good, as you need to bring out best from that person and you want him to improve. This is where Constructive Criticism can play its role where you have a set of instructions that aims to improve the overall quality by bringing out the negative aspect without upsetting the other person. Constrictive Criticism often contains helpful and specific suggestions for positive change you would like to see rather than providing the general feedback what is good and what is bad. One way of writing constructive criticism comments is making a sandwich of positive improvement and then again positive. In that way you are pointing out the positive along with some improvement which will not make the person receiving feedback upset. You also need to provide recommendations on how to improve. Now recommendations are personal preference, it doesn't applies always but it's good to give.

    Do you Invest your Fiat Money?

    September 10, 2018
    do-you-invest-your-fiat-money

    I came across a very interesting article on Howmuch.net, that what if you have invested $1000 dollars in various stock 10 years ago. That means if you would have invested in NETFLIX, you would have got more than 5000% returns whereas if you would have invested on Amazon you would have got more than 1200% returns. ![image.png](https://ipfs.busy.org/ipfs/Qmau3aUgvBf1fTxQFhRg2BTUZNe2pW1b7QnAcNgVbRZB6h) PC: [HowMuch.net](HowMuch.net) Link of Article: https://howmuch.net/articles/1000-dollars-investment-in-stocks So my question is do you invest your money in stocks? Have you ever considered that if you would have invested 10 years ago, you might be getting an exceptional return of your investment? The stock market is very risky just like Cryptocurrency market, so have you found an alternative method. How about Investing in Recurring Deposit where you invest $10 every month to a bank to get a fixed return or investing in a mutual fund. You might be thinking, I have not started earning 10 years ago so what should I do now. Then there is a famous line for you that >The best time to invest was 10 years ago. The second best time is now. That is you should not think of past but start at the very moment i.e. now. Start investing as small as possible. Though along with the other investment, there is always an investment on yourself, start investing on yourself to gain knowledge which will help you to earn more in future.

    A Beautiful Flower Clicked on Beautiful Sunday

    September 09, 2018
    a-beautiful-flower-clicked-on-beautiful-sunday-e577f8ff81484

    I went to get my groceries, just outside of the store there was few pots kept. Some of the pots had flowers blooming. I tried to click the macro photo of the flower. When you tried to capture macro, the only thing you need to keep in mind is that your hand is very still, I tried to do that but was not fully done. Though the Colors of the flower came out really well. ![image](https://img.esteem.ws/f8lv70woi5.jpg) In Black And White ![image](https://img.esteem.ws/nul8fzym79.jpg) Which one among the above two you liked the most and why? 📷 Camera: Nokia 6

    Do Not Miss Fountain Show in Dubai

    September 07, 2018
    do-not-miss-fountain-show-in-dubai

    Dubai fountains is one of the lovely and gorgeous attractions worth waiting if you have some time. It is right after the right outside Dubai Mall and in front of Burj Khalifa. The water goes as high as 500 feet i.e. around 50 feet. It happens every half an hour and you will see a lot of rush to capture photos and videos. Few glimpses with an awesome view. ![IMG-20160213-WA0027.jpg](https://cdn.steemitimages.com/DQmaudqWDZgRWNufAVrAj1ZBmjMvfN8CzgxPeBBA7gkWLPC/IMG-20160213-WA0027.jpg) ![IMG-20160213-WA0028.jpg](https://cdn.steemitimages.com/DQmZ6LDJgBhySyXQZhgUkonvSbN4rek3bxT3jrprU74H6in/IMG-20160213-WA0028.jpg) ![IMG-20160213-WA0029.jpg](https://cdn.steemitimages.com/DQmf1KnTFUkPJ5pef3x7b1ZYATddPFXrpErni3qGiGhoYXf/IMG-20160213-WA0029.jpg) ![IMG-20160213-WA0032.jpg](https://cdn.steemitimages.com/DQmZRGDDqUhcS9jUECmZQB8xzGuiUzCKYtwK5DxChEgJJTp/IMG-20160213-WA0032.jpg)

    Let's Discuss - Do you like to Travel to the same place again

    September 07, 2018
    let-s-discuss-do-you-like-to-travel-to-the-same-place-again

    As the Question says, do you like to Travel to the same place again, what I meant is you might have traveled in a place, city or country, would you like to travel there again to explore more. My answer to this question is yes, and I will list out my reasons for it. 1. On any visit due to time constraint, you might not be able to travel to all the places, so I would like to travel to that place again so that I will visit the previously missed places. 2. Adding to the above point I will also try to visit the place which I liked the most. For example, I really like a spot in Coorg where the sunrise is awesome so I would also like to go to that place again if I am traveling to Coorg again. 3. The next time to travel to that place gives me that extra time to just relax and enjoy the place rather than hurrying to see all the places. 4. Now I will also consider the different season to travel to that place to get the different flavor of the different season.