teleren/devto huggingface dataset:
How reading too much almost made me give up of starting a business
Tags: career, motivation
Published: 2019-09-27 20:47:44

I will skip all the things why I love programming and why I want to create my own business. But I want to share with you, who also pretends to have your own business (or not), how reading too much almost made me give up of starting a business.


<strong><h3>The unicorn problem</h3></strong>

After a lot of reading (about business, startup, entrepreneurship etc), I assumed that my first idea of a startup should be a unicorn! I mean... Why would I spend hours, days, months in a project that will not be a U$ 1 billion company? Accordingly, to the startup universe, all I should do is create something that is:

<ul>
<li>highly scalable;</li>
<li>the market needs it;</li>
<li>with good entrance barriers (investors always complain about this);</li>
<li>and I would need an investor as early as possible!</li>
</ul>

It seemed pretty easy to me. I'll just focus on creating the best product in the world with these characteristics.

What happened? For 4 years I was <strong>completely stuck</strong> trying to think about how to create a product that does not exist, that is highly scalable, the market needs it, has good entrance barriers and the most important: I am fully capable to develop alone or with a small team (because I only had some few savings).

Until one day, reading some guys discussing on some website about our topic said:

<q><strong>but do you HAVE to build a unicorn?</strong> A million company isn't enough? Or even less?</q>

![Alt Image from https://images.app.goo.gl/1w7smQkvhixXE2f99](https://thepracticaldev.s3.amazonaws.com/i/nem6qbybv5c46trfohl4.jpg)

That questioning hit me like a bullet. After that day, I started building a simple product: just a client scheduler for barbershops and beauty salons. It is an existing product, with many competitors, with no barrier entrance. And you know what? I presented the prototype to some barbershop owners and they loved it and wanted to buy my solution!

<h4>Conclusions</h4>

You don't need to be the next Bill Gates. You don't need to build the next Airbnb. You don't need an investor. It's OK to have small products. They also make money. And the most important thing: they will inspire you to not give up and keep trying to build nice products!

If you liked this article, I guess you will like this one too: <a href="https://dev.to/csallen/three-tips-for-building-profitable-side-projects-3lmf">three tips for building profitable side projects</a>

Before I go, I will leave a question for you: <strong>Is the startup industry, somehow, killing the traditional product development? Have you ever felt stuck when you tried to start a new idea/business?</strong> I'd like to know your opinion. :)
Unfixable iOS Vulnerability Affects 7 Generations of Devices
Tags: apple, security, news, ios
Published: 2019-09-27 20:23:52

_Photo by [Maria Teneva](https://unsplash.com/@miteneva?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/rotten-apple?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)_

---

Security researcher axi0mX [recently discovered a vulnerability](https://github.com/axi0mX/ipwndfu) (which they've called "checkm8") in the A5 through A11 chipsets, used by nearly every iOS device released between 2011 and 2017.

> _"The jailbreak hinges on flaws in Apple's 'bootrom,' memory in the processor that contains the fundamental code that runs first when a device powers on. Axi0mX found the bootrom vulnerability by reverse-engineering and examining a patch Apple released in summer 2018 for the iOS 12 beta."_

This is Read-Only Memory (ROM) that's written when the processor is manufactured. It cannot be edited by any software. This means that this vulnerability is __permanently unfixable__ for hundreds of millions of Apple devices. Although there isn't yet a jailbreak (or any malware) that uses this vulnerability, these things are surely in the works.

> _"This is probably the biggest thing to cross most iOS security researchers’ desks in their entire careers to date."_
> -- Thomas Reed, Malwarebytes

This is breaking news (committed to GitHub around 10:30am London time, 27 Sep) so the documentation is still being updated from Axi0mX's previous exploit of the 3GS chipset. But that exploit uses an error in the way the heap is implemented (the C function `malloc`):

> _"In C programming language, function malloc should return NULL if it is unable to allocate memory of the requested size. Caller should check if returned pointer is NULL and handle the error... In S5L8920 bootrom (and some very old versions of iBoot) function malloc is not implemented correctly. When it is unable to allocate memory, instead of NULL it returns a pointer to memory address 0x8. Callers check if returned pointer is NULL and then treat that pointer as valid."_
> -- [axi0mX](https://github.com/axi0mX/alloc8)

[Read the full story here](https://www.wired.com/story/ios-exploit-jailbreak-iphone-ipad/)
Sweet & Sour mongoose.js methods – 3
Tags: javascript, node, mongodb, webdev
Published: 2019-09-27 20:21:48

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/j9ry5ld6x4sxspt5d5hx.png)

A short snippet to assist in linking of social media accounts in a userschema when using mongoDB & mongoose.js 

```
async function generateOrFindUser(accessToken, refreshToken, profile, done) {
    const email = profile.emails[0].value;
    const name = profile.displayName || profile.username;
    const facebookId = profile.id;
    if (email) {
      let updatedUser = await User.findOneAndUpdate({facebookId},{email,name,facebookId}, {'upsert': true, 'new': true}, done);
    } else {
        var emailError = new Error("Your email privacy settings prevent you from signing in.");
        done(emailError, null);
    }
}

```

User schema:

```
const UserSchema = new mongoose.Schema({
  email: {
    type: String,
    unique: true,
    required: true,
    lowercase: true
  },
  password: {
    type: String,
    required: true,
    trim: true,
    validate: validatePass
  },
  name: {
    type: String,
    unique: true,
    required: true,
    lowercase: true,
    trim: true,
    minlength: 4
  },
  phone: {
    type: Number,
    trim: true
  },
  question: {
    type: String,
    select: true
  },
  answer: {
    type: String,
    required: true,
    trim: true
  },
  status: {
    type: Boolean,
    required: true
  },
  date: {
    type: Date,
    default: Date.now
  },
  facebookId: {
      type : String
  }
});
```
We Don't Need No Steenking Comments
Tags: discuss
Published: 2019-09-27 20:13:01

---
title: We Don't Need No Steenking Comments
published: true
tags: discuss
---

Do you document or comment your code. Other day, as I was finishing up writing an automated system-restore tool for one of my customers, I looked at my editor's line-count and noticed a higher-than-expected number. I quickly ran the file through a filter to squash out all the blank and comment-lines and found that the resultant file was 71.2% the line-count size of the commented/formatted file. Just wondering if that's "normal", high or low.
6-10PM challenge problem #003
Tags: challenge, problem, algorithms, graphs
Published: 2019-09-27 20:04:48

Taking the difficulty level little higher. Today I am sharing a graph problem. 

<b> Island Count </b>

A binaryMatrix which is 2D array of 0s and 1s. You need to find the number of island of 1s in this matrix. 
Example input:  

    binaryMatrix =     [ [0,    1,    0,    1,    0],
                         [0,    0,    1,    1,    1],
                         [1,    0,    0,    1,    0],
                         [0,    1,    1,    0,    0],
                         [1,    0,    1,    0,    1] ]


An island can be defined as a group of adjacent values of all 1s. 

Two cells, which have same value and next to each other in a single row or column are adjacent. (Diagonal two cells which have same value can't be considered as adjacent cells) 


Explain and code the most efficient solution possible and analyze its time and space complexities.

[time limit] 5000ms

[input] array.integer arr

0 ≤ arr.length ≤ 20
[output] array.integer


Input : Above matrix

output 6 # since this is the number of islands in binaryMatrix.


<a href="https://dev.to/akbhairwal/6-10pm-challenge-problem-003-solution-22j5">Solution</a>
Ageism in Tech
Tags: discuss, career
Published: 2019-09-27 19:50:39

---
title: Ageism in Tech
published: true
description: 
tags: discuss,career
---

_Last nights CodeNewbie Twitter chat struck a chord._
{% twitter 1177025678845386752 %}
<hr>

Any kind of discrimination is bad and no one should have to go through that.  I missed the CodeNewbie Twitter chat last night, but I was able to catch up this morning.  I was discouraged by the negative experience my fellow devs have gone through.


## My Experience with Ageism

I've had the privilege to run my own dev team for some time now. When going through hiring process to build my team I witnessed what ageism had done to some candidates.  These folks were skilled in their trade, had excellent work history and strong work ethics.  However, they were coming in with salary requirements $15-20k lower than some of the less experienced and "younger" candidates.

When I asked if they were interviewing elsewhere, some would state they were rejected from great opportunities.  I followed up with _why_?  A few had a blank stare and would not know why, but deep in my gut I knew it was because of their _"old"_ age.

How is this fair?  It isn't, the sad truth is this happens in reverse too.


I've been around since the '80s and I've seen my fair share of discrimination, with _racism primarily_.  Now that I'm in my mid-30s I'm wondering if my next run in with discrimination will be about "old" age.

Let me know your thoughts.
Mock Interview With TARGET SDE
Tags: codinginterview, mockinterview, javainterview, codinginterviewpreparation
Published: 2019-09-27 18:51:25

---
title: Mock Interview With TARGET SDE
published: true
description: Coding Mocking Interview with TARGET Software developer.
tags: Coding Interview, MockInterview , JAVA Interview, Coding interview preparation.
---

Please check out my new video about the the Mock Interview with Target Software Engineer.

{% youtube UiZYifFTUTc%}
About Michelle Bungo
Tags: michellebungo
Published: 2019-09-27 18:20:19

Michelle Bungo is a licensed health insurance agent in Coral Springs, FL with years of experience working with all major insurance carriers. Physical fitness is important to Michelle Bungo, which is why she works out regularly. You can catch her at the gym every week. When she's not at the gym or office, Michelle Bungo spends her free time socializing with friends and neighbors or hanging out with her kids. She also has an avid love for music and frequently attends local concerts.
Capture Visitors in HTML/JS to your website 
Tags: html, javascript, geolocation, visitors
Published: 2019-09-27 18:04:29

We can capture visitor's IP,geo-location and page URLs visited in a website. We can also capture from which device, platform and browser user as visited the webpage.

## Why we should capture visitor's details

To know the from which location traffic comes into our website. From this visitor's history, we can also analyze the user's behaviour. As per the user's behaviour we can target our potential customer.


Let's capture the visitor's geo-location

To gather the geo-location(longitude and latitude) of the visitor,We have HTML Geolocation API.we can access geolocation by calling method getCurrentPosition of <i>navigator.geolocation</i> object.

first we have check that browser or device support  <i>navigator.geolocation</i> object or not 

    if(navigator.geolocation){
        navigator.geolocation.getCurrentPosition(function(position){
            console.log("longitude:"position.coords.longitude)
            console.log("latitude:"position.coords.latitude)
        })
    }else{
        console.log("Geolocation is not supported by this device/browser")
    }

NOTE: This API is strictly privacy-based means the browser will prompt for visitor's permission, when the user accepts to share location then only we can get the geolocation.

## Page URLs and referrer URL

To know from which website/webpage visitors came to your webpage/website we will use document.referrer.

        console.log(document.referrer)

To get current page URL 

        console.log(location.href) 

## Browser/Platform Details

We have navigator.userAgent to get the visitor's browser/platform details.

    console.log(navigator.userAgent)

    //Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.100 Chrome/76.0.3809.100 Safari/537.36

## IP Address and location

There are various web services to get IP address, city, region and country name. We may not get accurate details, But we can still rely on these services.

    fetch("https://ipapi.co/json/")
    .then(response=>response.json())
    .then((responseJson=>{
        console.log(responseJson)
    }))

    {
    "ip": "2409:4062:115:954b:211e:e74:5180:15ae",
    "city": "Bhubaneswar",
    "region": "Odisha",
    "region_code": "OR",
    "country": "IN",
    "country_name": "India",
    "continent_code": "AS",
    "in_eu": false,
    "postal": "751030",
    "latitude": 20.2724,
    "longitude": 85.8339,
    "timezone": "Asia/Kolkata",
    "utc_offset": "+0530",
    "country_calling_code": "+91",
    "currency": "INR",
    "languages": "en-IN,hi,bn,te,mr,ta,ur,gu,kn,ml,or,pa,as,bh,sat,ks,ne,sd,kok,doi,mni,sit,sa,fr,lus,inc",
    }

Limitations:
1,000 requests per day
Requires SSL (https)

Note:- We can use various analytics services to track visitors to our website. To track website traffic by your own way then you can use the above hack.
VueJS Watchers Issue
Tags: vue
Published: 2019-09-27 18:01:55

So, I am working my way through the Vue Official Guide. However, I am using Single File Components instead of the Vue Components that the examples use and have run into a snag on the Watchers section that I have been beating my head against my desk about--fatigue may be a contributing factor here. The issue is that I keep getting an error that says this.debouncedGetAnswer() is not a function. The result is that the watcher never actually finishes. Any help would be greatly appreciated.


https://codesandbox.io/embed/vueguideofficial-9ciyc
I need a better code journaling app than Evernote.
Tags: productivity, coding
Published: 2019-09-27 18:00:45

Thanks to a series here [Why you should keep a Code Journal | Code Journaling pt 1 of 4 - DEV Community 👩‍💻👨‍💻](https://dev.to/jacquibo/why-you-should-keep-a-code-journal-code-journaling-pt-1-of-4-k35) I've been seriously reconsidering how I work.

I start the day with a new note in Evernote. As the day progresses, I enter little tidbits of knowledge I took me way to long to google (ex. Netlify, the build command for a nuxt project has to be `nuxt generate`).

But Evernote is a **horrible** notetaking/journaling environment for a developer.

So, any recommendations for a good digital notetaking Saas?
creating a sublist from a deep element in Ansible
Tags: ansible, jmespath, lists
Published: 2019-09-27 17:58:36

---
title: creating a sublist from a deep element in Ansible
published: true
description: how to extract items from a list buried in an element using jmespath
tags: ansible, jmespath, lists
---

[ansible docs]( https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#json-query-filter)
requirements: `pip install jmespath`

```
---
- hosts: localhost
  gather_facts: false
  vars:
    parent_var:
      child_list: [{name: 'test'},{ name: 'test2'}]

  tasks:
    - debug:
        msg:  "{{ parent_var | json_query('child_list[].name') }}"
```

```
ansible-playbook list_test.yml
 [WARNING]: No inventory was parsed, only implicit localhost is available

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'


PLAY [localhost] *****************************************

TASK [debug] ****************************************
ok: [localhost] =>
  msg:
  - test
  - test2

```
Special thanks to https://github.com/derekmwright
Where Can I Find Crypto Exchange Script With High-End Features?
Tags: crypto, blockchain, dex, idex
Published: 2019-09-27 17:05:21

---
title: Where Can I Find Crypto Exchange Script With High-End Features?
published: True
description:  cryptocurrency exchange script, will have full code to build a bitcoin/crypto exchange platform
tags: #crypto #blockchain #dex #idex
---

Business investors and entrepreneur will always search for a secure and cost-effective software solution for their investment. For those, the expectation should be satisfied with the best script providers. A best cryptocurrency exchange script will have full code to build a bitcoin/crypto exchange platform, which will be easy to deploy and can be custom-built to adopt with changing business trends. As a multifaceted cryptocurrency development company, ALWIN Technologies prides itself on delivering ace, fully custom-built crypto software for our clients. We create Optimal cryptocurrency development solutions that help to boost your business. Fully scalable and economically viable cryptocurrency application. Create robust, versatile architecture for enhanced usability and reduced costs.

Our Cryptocurrency Exchange Script can Contains:

Proven methodology
User-friendly interface
Reasonable & reliable service
Enables buying & selling in a secure environment
Helps investors save their preferences
Fine-tuning and refinements for improved conversions

ALWIN Technologies-<a href="https://www.alwin.io/crypto-exchange-software">Cryptocurrency Exchange development company</a> offer complete crypto-related services and solutions for your needs. We provide 360-degree cryptocurrency development solutions that will help you to create a unique crypto solutions that truly suits your business. It's easy - no tech skills needed. Our certified cryptocurrency development support team are always a click away.
Automating Lambda Deployment With Travis-CI
Tags: aws, webdev
Published: 2019-09-27 17:02:41

## This is a post from my old blog. Info in here may be out of date or useless.

### January 11, 2017 

I really hate doing things myself when I can have a computer do it for me.

So In this post I will describe how I automate lambda deployment with travis-ci.

Create a AWS role that has these permissions.

```json
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lambda:*"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}
```
I wanted to lock down the permissions more but you basically need them all.

Get an access key for this role.

Second add your repo to travis. It's easy I won't tell you how to do it.

Now we create a `.travis.yml` file.
```yaml
language: node_js
node_js:
- '4.3'
env:
  global:
  - AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID
  - AWS_DEFAULT_REGION=us-east-1
branches:
  only:
  - master
before_install:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
script: make build
```

Here we add our AWS key id to the file. We'll also want to add our secret key but we want to encrypt it. Using the travis CLI

`travis encrypt AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY --add env.global`

We should be set on the travis side.

Now onto building and uploading

Here is my make file for building

```make
.PHONY: build clean upload
build:
	npm install --only=production
	zip -r code.zip . -x *.git*

clean:
	if [ -a code.zip ]; then rm code.zip; fi

upload: build
	./upload.sh
```

here is my upload.sh
```bash
#!/bin/bash
aws lambda update-function-code \
--zip-file=fileb://code.zip \
--region=us-east-1 \
--function-name=NAME_OF_YOUR_LAMBDA
```

Now everytime you push to master it should update your lambda to the newest code!
What you need to know about Flutterwave
Tags: flutterwave, onlinepaymentplatform, business
Published: 2019-09-27 17:01:02

Africa, the second largest continent with over 1 billion people, has no unified system of payment


Yes, there was none before the advent of Flutterwave in 2016 which brought Africa payment systems together, connecting them with other continental payment technologies

About the Company


A financial technology startup started 2016 by a league of entrepreneurs, engineers, and ex-bankers to enable Africans to build businesses beyond the continent by being able to receive funds and pay for services all around the globe across multiple channels (web, mobile, ATM).

The Head Quarters located in San Francisco, 1323 Columbus Avenue United States.

Having offices in Nigeria (Lagos) Kenya (Nairobi), Ghana (Accra) and South Africa (Johannesburg) Currently employed over 100 staff altogether.

The current Chief executive officer Olugbenga Agboola (also a co-founder). A Financial Technology engineer with experience with many reputable companies globally

What is the Flutterwave Payment Platform?


An integrated global platform aimed at the payment and management of business funds (small and large scales).

They offer two main products namely

o Rave

o Barter

Rave


Aimed at helping global merchants to connect with customers around the world.

It supports up to 150 currencies in more than 154 countries

Things you need to know about Rave flutterwave
Multi-currency support
easy documentation of transactions
The similar payment method approach
Multiple payments with ease
It’s not rocket science technology
Zero set up fees and low transaction fees of about 3.5%
Barter


Aimed at the management of finances of individual monitoring every transaction an individual makes.

What you need to know about barter flutterwave
A free virtual card can be used for any form of online payment.
Yes, virtual but don’t worry, on your first use, you’ll be guided with image illustration to get it done

Easy short-term loans available
Can help you spend less by scheduling payments (such as Utility bills, internet subscription)

Limitation of flutterwave
The main one discovered; the platform does not allow you to use your form unlike others (such as stripe).



In recent news, Flutterwave has partnered with the Alibaba’s payment Platform Alipay fostering Africa-China trade

Also integrated with some online tools such as Shopify, WooCommerce and QuickBooks.

A Unified payment platform for Africa

And in case you don’t know this platform is not in competition with other indigenous platforms, it is here to link locals to the world together.

Thanks for reading, tell me what you think in the comment section below.