teleren/devto huggingface dataset:
Indian Government says BIG NO to Self Driving Cars
Tags: india, indiangovernment, selfdrivingcars
Published: 2019-06-09 20:53:22

---
title: Indian Government says BIG NO to Self Driving Cars
published: true
tags: india,indian-government,self-driving-cars
canonical_url: 
---

On 25th July 2017 Nitin Gadkari, Union Minister for Roads and Transport said **India will not allow driver-less cars to ply on its roads**.

The reason being that focus of the government is to create more jobs to arrest unemployment.His exact words were “How can we allow such vehicles when we already have huge number of unemployed people?” Gadkari also said there is already annual shortage of about 22,000 trained drivers in India.

These words come from the same government which could not stop selling of BS-III Vehicles (which was for saving environment) and at last Supreme Court had to intervene to settle the issue once and for all.

This is where we are wrong. I know India will be the last country in the world where self driving car will go live on roads but still this is not a cogent reason.

This kind of thinking is not new in India. In the whole world computers were quickly adapted, but in India, they faced opposition and the reason was same (“Unemployment”) and today we see that because of computers many jobs were created.

I don’t know what happens to companies who are developing SDC’s and need to test on roads.

* * *
Top 15 Stats and Figures Regarding Mobile Commerce - Infographic
Tags: mobilecommerce, mcommerce, ecommerce
Published: 2017-07-25 09:16:15

---
title: Top 15 Stats and Figures Regarding Mobile Commerce - Infographic
published: true
description: Infographic - Top 15 Stats and Figures Regarding Mobile Commerce
tags: Mobile Commerce, m-Commerce, m Commerce, eCommerce
---

The Internet has become our basic need to get in touch with our friends and obtain any type of information. Rather than the desktop computer, now people can easily use the internet on their mobile phones. Over 1.2 billion people are now using smartphones to access the internet and they also do online shopping from their phones. It means mobile commerce is becoming a big part of eCommerce because 60% of customers now search products on the internet first before buying them. In addition to it, 76% of mobile users also search the neatest stores by using their smartphones. 
About 33% of total e-commerce comes from smartphones and rest of the people use other devices. If we have a look at the stats of last two years, specifically of Asia, mobile commerce has increased up to 250% which is a remarkable growth. In US, m-commerce brings in about $100 billion per year and is expected to increase in the near future. 
More than 50% of smartphone shoppers rely on the digital wallet for online purchasing like PayPal, Google wallet etc. because it is very easy to pay from digital wallets and takes a few seconds. The total of eCommerce payments, 19 % are done through smartphones and by the year 2018, it is expected to incline up to 27%. 
If we compare different smartphone operating systems, we observe that iPhone generates more conversion value of $117.6 than Android ($111.7) and windows ($100.91). It means most of the mCommerce conversions take place through iPhone and Android. On Cyber Monday, about half a billion in sales comes from m-Commerce and it is expected that in the US, more than $90 billions of sales will be driven by mobile commerce in 2018.
If we have a look at the top eCommerce websites, customers spend the most time on Amazon (100 Min) rather than Target (20 Min) and Walmart (14 Min). Furthermore, customers come back to Amazon 6 times per month which is higher than Target and Walmart. In 2020, 45% of eCommerce will be done through m Commerce. Some more useful insights about <a href="https://www.fmeaddons.com/blog/15-thought-provoking-statistics-mobile-commerce-infographic">mobile commerce</a> are documented in the following infographic that is compiled FME Addons. 

<a href="https://www.fmeaddons.com/fmeaddons_blog/wp-content/uploads/2017/07/15-Thought-Provoking-Statistics-about-Mobile-Commerce.jpg"><img class="aligncenter wp-image-1039" src="https://www.fmeaddons.com/fmeaddons_blog/wp-content/uploads/2017/07/15-Thought-Provoking-Statistics-about-Mobile-Commerce.jpg" alt="15 Thought-Provoking Statistics about Mobile Commerce" width="696" height="2815" /></a><strong>Infographic by – <a href="http://www.fmeaddons.com/">Fme Addons</a></strong>
Hi, I'm Ricardo Pereira
Tags: introductions
Published: 2017-07-25 08:56:50

---
title: Hi, I'm Ricardo Pereira
published: true
description: My introduction post
tags: introductions
---

I have been coding for [number] years.

You can find me on GitHub as [ricardopereira](https://github.com/ricardopereira)

I live in Lisbon.

I work for Whitesmith.co

I mostly program in these languages: Swift, Objective-C and Go.

I am currently learning more about AR and VR.

Nice to meet you.
Trigger Webview function from Native View in iOS
Tags: discuss
Published: 2017-07-25 04:35:50

---
title: Trigger Webview function from Native View in iOS
published: true
tags: discuss
---

I have a ClassA in which webView is opened. Another ClassB is Opened on top of previous ClassA. Now, in ClassB, I want to call the function of JavaScript of webView which is in ClassA.

I've tried [self.commandDelegate evalJs:@"jsFunction('Hello');"]; which works when I call from ClassA but when I call from ClassB which is opened on top of ClassA then it does not work.

So, how can I call webview function from iOS SECOND VIEW. I'm using CORDOVA in this if that can help in anyway.?
Hi, I'm Kseniia.
Tags: introductions
Published: 2017-07-25 03:41:33

---
title: Hi, I'm Kseniia.
published: true
description: My introduction post
tags: introductions
---

I have been coding for about 7 years.

You can find me on Twitter as [@_Kcexa](https://twitter.com/_Kcexa)

I live in Novosibirsk, Russia.

I work for BestToolbars.

Now, I mostly program in these languages: JavaScript, CSS, HTML.

I am currently learning more about React.

Nice to meet you.
Hi, I'm Bjoern
Tags: introductions
Published: 2017-07-25 03:30:37

---
title: Hi, I'm Bjoern
published: true
description: My introduction post
tags: introductions
---

I have been coding for 15 years.

You can find me on Twitter as [@zinssmeister](https://twitter.com/zinssmeister)

I live in San Francisco, CA.

I am the founder of Templarbit (a YC backed startup in the security space)

I mostly program in these languages: Ruby, JavaScript, Go.

I am currently learning more about ML and Go.

Nice to meet you.
Hi, I'm Daiane Assen
Tags: introductions
Published: 2017-07-24 23:05:15

---
title: Hi, I'm Daiane Assen
published: true
description: "[code] + â™« + â˜• = â¤"
tags: introductions
---

I have been coding for 10 years.

You can find me on Twitter as [@INapta](https://twitter.com/INapta)

I live in Curitiba - Brazil.

I work as Freelancer Front End.

I mostly program in these languages: HTML, JS, PHP.

I am currently learning more about PHP Yii and ReactJs.

Nice to meet you.
Kotlin Coroutines Guide
Tags: kotlin, java, coroutines, nonblocking
Published: 2017-07-24 21:32:26

---
title: Kotlin Coroutines Guide
published: true
description: This is a deep dive into Kotlin Coroutines and non-blocking concurrent programming 
tags: kotlin, Java,  Coroutines, non-blocking
---


This is a deep dive into Kotlin Coroutines and non-blocking concurrent programming 

https://kotlinexpertise.com/kotlin-coroutines-guide/
Never underestimate the power of best practice
Tags: lessonslearned, messaging, infiniteloop
Published: 2017-07-24 21:02:50

---
title: Never underestimate the power of best practice
published: true
description: 
tags: lessonslearned, messaging, infiniteloop
---

I see best practices as special recipes created after doing the same thing over and over again by mixing various ingredients in various ways until you get an outcome easily reproducible (standard) and of superior quality.   

Let’s look at the following scenario of an endless loop and options to solve it by applying the right ingredients: 

![](https://thepracticaldev.s3.amazonaws.com/i/b6s7tw4kas798rfspdf3.jpg)

Use case prerequisite

- The message published on the queue is invalid
- The exception thrown by the receiver that picked up the message for processing, is not caught in the catch block  

Use case description

1. A requestor publishes an invalid message to a message channel (queue). 
2. There is one listener / receiver to this queue, that will get the message.
    
    a) In case of a valid message, an acknowledgement (ACK) is sent back saying that it is now in safe hands. 
    b) In our case the invalid message with incorrect error handling leads to an uncaught exception and a message locked “in-flight (a message awaiting ACK or NACK) until the Default Lock TTL (time-to-live) expires (for example: 2 min)

3. After the 2 minutes (Lock TTL), the invalid message is made visible to other receivers. In our case, the same receiver will pick up the message and resume from 2.b) 
4. The poisonous message will be kept on the queue for 7 days (TTL = 7 days) which gives us a nicely hidden infinite loop. 

What do you do when you see that the message keeps being released on the queue and the receiver logic gets executed at a speed that only makes you happy when you are looking for fast performing systems?  You of course try to solve the puzzle...

As you probably noticed from the above prerequisites there were already two major issues: 

- Message validation was not applied before publish to the queue
- Always catch ALL exceptions, no matter what! 

To err is human, hence you should always design your solution for failure. 

Several suggestions: 

- Always use a Dead Letter Queue assigned to your processing queue so that the invalid messages are moved out to the Dead Letter Queue after a given number of retries. This way you at least shorten the life of the infinite loop. 
- Setup monitoring for your application / services in relation to the non-functional requirements: do you expect a load on your queue of approx. 10 messages per minute and you end up processing 2000, then most probably this requires your attention 
- Review your configuration settings, default is good, but custom case by case might be even better 
- Unit test your code, including error handling


Technology used: Anypoint MQ (MuleSoft’s cloud messaging service) and MuleESB
Did You Know There Are Different Types of Certs for HTTPS?
Tags: security
Published: 2017-07-24 20:43:17

---
title: Did You Know There Are Different Types of Certs for HTTPS?
published: true
description: I didn't and a lot of others didn't either until Troy Hunt schooled us
tags: security
---

Can you tell the difference between the two images below (beyond the fact that they're different websites)? 

![](https://thepracticaldev.s3.amazonaws.com/i/gqj8ccp4o6o1jfxvj9kw.PNG)
![](https://thepracticaldev.s3.amazonaws.com/i/6cs6x8nh3kb96ma6b9m2.PNG)

Do you see where Twitter has 'Twitter, Inc [US]' next to the green padlock and Google only has 'Secure'? That means Twitter is using an EV or Extended Validation certificate, whereas Google is only using a DV or Domain Validation certificate. I've only vaguely noticed that certain HTTPS sites have worded other than 'Secure' next to the green padlock and it wasn't until I read Troy Hunt's blog, *[On The (Perceived) Value of EV Certs, Commercial CAs, Phishing and Let's Encrypt](https://www.troyhunt.com/on-the-perceived-value-ev-certs-cas-phishing-lets-encrypt/)*, that I knew what that meant. 

I won't rehash everything he said because he covered everything really well. You should read it if you have the time. However, there's a quote from his blog posts that sums everything up perfectly.

>"Whilst DV certs give us assurance that we're communicating with the domain we think we are, it's EV certs which give us confidence we're communicating with the organisation we think we are." 

Domain Validation certificates require the certificate requester to prove that they own the site they're acquiring the certificate for, which isn't difficult to do. The purpose of an EV cert is to provide an extra layer of confidence. Someone could easily acquire a DV cert for a phishing site, but an EV certificate requires proof that they are the organization they're claiming to be.In fact, a human auditor has to perform an independent review of a site before an EV cert can be issued. I cannot just buy a domain, run a Paypal phishing site, and acquire an EV cert that says I'm Paypal.

What does this mean to you? Maybe nothing. It was mentioned that we, security professionals, should begin to change the way we condition our users. So that instead of inherently trusting the green padlock, we train users to recognize the difference between EV and DV certificates and change behaviors based on that. That isn't necessarily plausible at the moment since many top 100 Alexa sites forego EV certs (i.e. Google). But it is possible to begin to pay attention when we see an EV cert for a HTTPS site and change behaviors when we no longer see that cert. 

For example, Bank of America has an EV cert and I've always subconsciously known that because it was the first time I wondered why the organization name was next to the green padlock. If that were to suddenly change one day, I'd immediately become suspicious. 

So, will you begin to look out for these two types of certs now? Did you know about EV and DV certs before or is this your first time hearing about it too?
Hi, I'm no
Tags: introductions
Published: 2017-07-24 20:28:16

---
title: Hi, I'm no
published: true
description: My introduction post
tags: introductions
---

I have been coding for [number] years.

You can find me on Twitter as [@noriver_](https://twitter.com/noriver_)

I live in Mexico city.

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
Hi, I'm Christian Graff
Tags: introductions
Published: 2017-07-24 19:40:36

---
title: Hi, I'm Christian Graff
published: true
description: My introduction post
tags: introductions
---

I have been coding for lots of years.

You can find me on Twitter as [@c_g_r_a_f_f](https://twitter.com/c_g_r_a_f_f)

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
Hi, I'm Raymond Tukpe
Tags: introductions
Published: 2017-07-24 19:23:53

---
title: Hi, I'm Raymond Tukpe
published: true
description: My introduction post
tags: introductions
---

I have been coding for 3 years.

You can find me on Twitter as [@rtukpe](https://twitter.com/rtukpe)

I live in Lagos, Nigeria.

I work for Pacent Technologies, here in Nigeria

I mostly program in these languages: Javascript, Java and C#.

I am currently learning more about Game Development, NodeJs architecture and GraphQL.

Nice to meet you :D
Simple way to write JSON to file
Tags: javascript, json, node, file
Published: 2017-07-24 19:15:27

---
title: Simple way to write JSON to file
published: true
description: Write objects to JSON files without using any external library
tags: javascript, json, nodejs, file
canonical_url: https://gyandeeps.com/json-file-write/
---

[Simple way to write JSON to file](http://gyandeeps.com/json-file-write/)
Hi, I'm Chris Raser
Tags: introductions
Published: 2017-07-24 18:37:58

---
title: Hi, I'm Chris Raser
published: true
description: My introduction post
tags: introductions
---

I have been coding for 15 years doing back end Java and front-end JavaScript/HTML/CSS. I recently moved to Orange County, in southern California, USA.

You can find me on GitHub as [craser](https://github.com/craser) or find my personal blog (mostly mountain biking related) at [DreadedMonkeyGod](http://dreadedmonkeygod.net).

I'm currently interested in ways of attacking what I've started calling the Nightmare Scenario: a revenue-impacting bug in 100k lines of horrible code (1k-line methods, no tests, no docs, piles of global variables, long if/else chains with short-circuit returns, etc).

I'm looking to find (or build!) tools to let developers carve out major chunks of horrible code and refactor with confidence that no behavior has been changed unintentionally.
DEV Welcome Thread - v0
Tags: welcome
Published: 2017-07-24 18:12:29

---
title: DEV Welcome Thread - v0
published: true
description: 
tags: welcome 
---

Welcome to dev.to! ðŸ‘‹

![WELCOME FROM A BEAR](https://media.giphy.com/media/dzaUX7CAG0Ihi/giphy.gif)

Please introduce yourself to the community! You can start by sharing your favorite programming languages, what you're interested in learning next, or your latest and greatest side project. No rules, just make yourself at home! ðŸ˜€

Leave a comment below to introduce yourself! âœŒï¸
Hi, I'm #JASON
Tags: introductions
Published: 2017-07-24 17:51:09

---
title: Hi, I'm #JASON
published: true
description: My introduction post
tags: introductions
---

I have been coding for 16 years.

You can find me on Twitter as [@gegere](https://twitter.com/gegere)

I live in Boulder, CO.

I work for HTMLgraphic

I mostly program in these languages: PHP.

I am currently learning more about Real Estate.

Nice to meet you.
Hi, I'm Priansh Shah
Tags: introductions
Published: 2017-07-24 17:39:29

---
title: Hi, I'm Priansh Shah
published: true
description: My introduction post
tags: introductions
---

I have been coding for [number] years.

You can find me on GitHub as [pshah123](https://github.com/pshah123)

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
Hi, I'm Cam
Tags: introductions
Published: 2017-07-24 17:14:54

---
title: Hi, I'm Cam
published: true
description: My introduction post
tags: introductions
---

I have been coding for 18 years.

You can find me on GitHub as [cwardzala](https://github.com/cwardzala)

I live in Cleveland.

I work for [Findaway](http://findaway.com)

I mostly program in these languages: HTML, CSS, Javascript, Python.

I am currently learning more about being a better person.

Nice to meet you.
Hi, I'm Trilok Chand
Tags: introductions
Published: 2017-07-24 16:46:45

---
title: Hi, I'm Trilok Chand
published: true
description: My introduction post
tags: introductions
---

I have been coding for 10 years.

You can find me on GitHub as [tchand](https://github.com/tchand)

I live in Palwal.

I work for India

I mostly program in these languages: Java.

I am currently learning more about using Cucumber with Spring.

Nice to meet you.
Hi, I'm Arjun Mittal
Tags: introductions
Published: 2017-07-24 16:46:23

---
title: Hi, I'm Arjun Mittal
published: true
description: My introduction post
tags: introductions
---

I have been coding for 1 year.

You can find me on GitHub as [ArjunM98](https://github.com/ArjunM98)

I live in Toronto

I am a student!!

I mostly program in these languages: C/C++ and JavaScript.

I am currently learning more about web development.

Nice to meet you.
Hi, I'm Shaun Kollannur
Tags: introductions
Published: 2017-07-24 16:12:25

---
title: Hi, I'm Shaun Kollannur
published: true
description: My introduction post
tags: introductions
---

I have been coding for 4 years.

You can find me on Twitter as [@CricAnon](https://twitter.com/CricAnon)

I live in Mumbai.

I am a student

I mostly program in these languages: [Python, Java].

I am currently learning more about [Machine Learning].

Nice to meet you.
How should I package my Django app?
Tags: discuss, python, django, packaging
Published: 2017-07-24 15:54:12

---
title: How should I package my Django app?
published: true
description: 
tags: discuss, python, django, packaging
---

I have a Django application that serves media (in the vein of Plex or Kodi) that I want to make easy to distribute for others to use. It requires three services:

1. Web server (WSGI)
2. Database (MySQL)
3. Task Queue (Celery)

Essentially I'm looking to make a one-click application that installs these services, and let's the user host their own version of this application on Windows, Mac and Linux.

My background is web, so I'm fairly new to the software distribution game. I've learned that you can package Django applications somewhat using cx_Freeze, or pyInstaller, but it's been quite a hassle getting this to work, and documentation is sparse and/or lacking. Also Django does some fancy magic that doesn't always package well. 

![So many options](https://thepracticaldev.s3.amazonaws.com/i/pehpywva2talp54e1j5c.gif)

I've also thought of using Docker, but I don't want to complicate installation for users that aren't as technically inclined. It would be great if I could "shadow" Docker's installation and a user could install it and my projects containers via a Windows installer.

What are some options?
Hi, I'm CaroBee31
Tags: introductions
Published: 2017-07-24 15:41:36

---
title: Hi, I'm CaroBee31
published: true
description: My introduction post
tags: introductions
---

I have been coding for 6 years.

You can find me on Twitter as [@CaroBee31](https://twitter.com/CaroBee31)

I live in Toulouse.

I mostly program in Java.

Nice to meet you.
I won't be rolling out my own CMS 
Tags: juniordev, bootstrap, create
Published: 2017-07-17 13:18:13

---
title: I won't be rolling out my own CMS 
published: true
description: 
tags: junior-dev, bootstrap, create
---

In the past I've started blogging about my dev work a few times but haven't had much success getting to actually writing posts. In most attempts I've gotten lost in building my blogging platform because I wanted to be a "real dev". 

I'd start by wanting to build my own CMS! Not by using any framework or any too-easy-to-use library. I wanted it to be hardcore and from scratch from database to the styling of the buttons. Even the thought of an IDE doing all the work for me was unacceptable! Syntax highlighting was the only luxury I could afford without becoming a fraud!

Safe to say I never built a CMS. 

This is just an example of a flawed mindset that has stopped me from focusing on what I actually want to make. The idea that I have to be in the detail of everything that surrounds what I'm building is a crippling feeling.

A couple of years ago I got some advice from a senior developer that stuck with me: if you constantly teach others then you free yourself to learn more. This benefits you because you can expand, experiment and create new and more interesting projects. But it also benefits the team/community because that knowledge is not centralised and because they don't have to reinvent the wheel and can build on top of your work.

I'm not proud to say it took me a while to see this advice from the perspective of the person getting the knowledge. Even more importantly that this knowledge can come in the form of tools that abstract away complex processes. I started realising that using what others have built gives me the opportunity to be creative and build on that knowledge and hopefully then contribute back.

I've recently started playing around with React and I've happily used create-react-app to skip the project setup steps! I don't miss out on googling "best atom plugins for \<Language I'm using now\>"! Also, I'm a massive fan of code formatters!

There's so much cool stuff out there that is impossible to learn about everything in detail. On the other hand there's so much cool stuff out there that this is a great time to be a developer!