teleren/devto huggingface dataset:
When to Consider a Big Data Solution 
Tags: computerscience, database, career
Published: 2020-06-16 19:44:20

The term Big Data can be interpreted in many different ways and that’s why we defined Big Data as conforming to the volume, velocity, and variety (V3) attributes that characterize it. Note that Big Data solutions aren’t a replacement for your existing warehouse solutions, and in our humble opinion, any vendor suggesting otherwise likely doesn’t have the full gambit of experience or understanding of your investments in the traditional side of information management.
We think it’s best to start out this section with a couple of key Big Data principles we want you to keep in mind, before outlining some consider-ations as to when you use Big Data technologies, namely:

• Big Data solutions are ideal for analyzing not only raw structured data, but semistructured and unstructured data from a wide variety of sources.

• Big Data solutions are ideal when all, or most, of the data needs to be analyzed versus a sample of the data; or a sampling of data isn’t nearly as effective as a larger set of data from which to derive analysis.

• Big Data solutions are ideal for iterative and exploratory analysis
when business measures on data are not predetermined.

When it comes to solving information management challenges using Big
Data technologies, we suggest you consider the following:

• Is the reciprocal of the traditional analysis paradigm appropriate for the business task at hand? Better yet, can you see a Big Data platform complementing what you currently have in place for analysis and achieving synergy with existing solutions for better business outcomes?

 For example, typically, data bound for the analytic warehouse has to be cleansed, documented, and trusted before it’s neatly placed into a strict warehouse schema (and, of course, if it can’t fit into a traditional row and column format, it can’t even get to the warehouse in most cases). In contrast, a Big Data solution is not only going to leverage data not typically suitable for a traditional warehouse environment,and in massive amounts of volume, but it’s going to give up some of the formalities and “strictness” of the data. The benefit is that you can preserve the fidelity of data and gain access to mountains of information for exploration and discovery of business insights before running it through the due diligence that you’re accustomed to; the data that can be included as a participant of a cyclic system, enriching the models in the warehouse.

• Big Data is well suited for solving information challenges that don’t natively fit within a traditional relational database approach for handling the problem at hand.

It’s important that you understand that conventional database technologies are an important, and relevant, part of an overall analytic solution. In fact, they become even more vital when used in conjunction with your Big Data platform.
Akhil demonstrating how he converted his phone into a 3D mouse. 
Tags: breakthrough, showcase, 3d, git
Published: 2020-06-16 19:19:50

**Akhil**, a developer from India, demonstrating how he converted his **phone into a 3D mouse**. 
He created an amazing painting using this.

This was recorded at #GitCommitShow #Season01 2019
To watch full recording, Here's the link: https://youtu.be/LRu5v7FeJMg

For more details,
https://twitter.com/Invide_Labs/status/1271163592021168129
"Rapid 3D design and printing plastic enclosures for electronics projects"
Tags: gitcommitshow, developers, git, electronics
Published: 2020-06-16 19:11:30

Updated schedule and registration at [https://gitcommit.show](https://gitcommit.show/)

Join this live interactive masterclass session on Jun 27(weekend)
**"Rapid 3D design and printing plastic enclosures for electronics projects"**
by **Anupam Varghese**, Founder of Tinkerbee Innovations, an IOT startup on the topic. 

Anupam was one of the two co-founders of Tinfo Mobile. Tinfo Mobile was an early startup from Kerala which developed awesome mobile games and applications.
Deploy React app to Heroku using Gitlab CI/CD Pipeline - test in the pipeline with WebdriverIO
Tags: react, testing, gitlab, webdriverio
Published: 2020-06-16 19:08:04

View [original article](https://juliapottinger.com/deploy-react-app-to-heroku-with-gitlab-ci-test-with-webdriverio/)

In this tutorial you will learn the following:

1. Create React app
1. Set up WebdriverIO Tests
1. Set up Gitlab repository
1. Create Heroku environments and add them to the pipeline
1. Connect Heroku and Gitlab
1. Create Gitlab yml file
1. Add Gitlab variables
1. See pipeline run and deploy to Heroku

>Check out the [Youtube Tutorial](https://www.youtube.com/watch?v=aKCqbSnOQWI) for this blog.

{% youtube aKCqbSnOQWI %}
How to run Spring Boot with a dev profile and Gradle
Tags: kotlin, springboot, gradle
Published: 2020-06-16 18:53:34

I like to use the dev profile in my Spring Boot projects to store the application configuration for development. Spring Boot will conviniently load the configuration dedicated to the profile we've selected when starting the app (i.e. *application-dev.yaml*).

To use the dev profile, all I need to do with maven is to pass *-Dspring.profiles.active=dev* property to my *spring-boot:run* target.

Gradle's *bootRun* task supports passing *--args='--spring.profiles.active=dev'* with the Spring Boot Gradle plugin.

There's an alternative too. All we need is a task that would set the property, before spring boot app starts.

Here's an example from *build.gradle.kts*:

```gradle
tasks.register("bootRunDev") {
    group = "application"
    description = "Runs the Spring Boot application with the dev profile"
    doFirst {
        tasks.bootRun.configure {
            systemProperty("spring.profiles.active", "dev")
        }
    }
    finalizedBy("bootRun")
}
```

Usage:

```bash
$ ./gradlew bootRunDev

> Task :bootRun
  ,---.    ,-----. ,--.   ,--. ,------. 
 /  O  \  '  .--./ |   `.'   | |  .---' 
|  .-.  | |  |     |  |'.'|  | |  `--,  
|  | |  | '  '--'\ |  |   |  | |  `---. 
`--' `--'  `-----' `--'   `--' `------'
:: Spring Boot ::  (v2.2.5.RELEASE)

2020-06-11 09:52:53.382  INFO 25367 --- [  restartedMain] c.k.demo.ApplicationKt       : Starting ApplicationKt on MacBook-Pro.local with PID 25367 (/demo/build/classes/kotlin/main started by kuba in /demo)
2020-06-11 09:52:53.385  INFO 25367 --- [  restartedMain] c.h.demo.ApplicationKt       : The following profiles are active: dev
```
How to Load json form in html page and after user submission data display in json raw form?

Tags: javascript, html, json, ajax
Published: 2020-06-16 18:53:26


I hv this code link below:

https://github.com/iamevenstronger/quiz

In this case after user submission the count all user answer and display correct answer, i want to display data like this in end:

{"name":"test name","check":"yes","select":"angularjs","message":"Message text","email":"abc@gmail.com","password":"ABC"}

What changes i should made in index.js to display the required result?
3 Chrome's Built-in URLs that you would like to know
Tags: webdev, showdev
Published: 2020-06-16 18:51:31

---
title: 3 Chrome's Built-in URLs that you would like to know
published: true
description: Chrome browser has some hidden little tricks that you may not know about
tags: #webdev #showdev
cover_image: https://images.unsplash.com/photo-1560574188-6a6774965120?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80
---

Chrome has a lot of "hidden" tricks and treats, and one of them is the Chrome's Built-in URLs. A bunch of internal URLs designed to provide advanced information, debugging and detailed info about you and the browser. Yes, information about you, since you are using the browser. A built-in URL follows this schema `chrome://{address}`. Here i will list 3 of them that i consider very cool to take a peek. My Current Google Chrome version is 80.0.3987.132 (Official Build) (64-bit), under a Linux Ubuntu.

*Cover Image by Bill Oxford on Unsplash*

## chrome://site-engagement/

Displays a table containing your engagement score for the sites you most visit.

## chrome://user-actions/

When opened, log the user events (activity) on the browser, but do not seem to store any data about it.

## chrome://prefs-internals/

Your Chrome's internal preferences. Its cool to see how the information is organized (and how many information there is to see)

## Bonus

You can check the complete Chrome's Built-In URLs list visiting `chrome://about` or `chrome://chrome-urls/`
Local Git Branch Prune/Delete Against Remote in Python
Tags: git, automation, python, github
Published: 2020-06-16 18:46:48

Automation is a programmer's best friend.  Its an investment of time and skill in order to make your life and job easier.  Hey, we have all been there.  You are working on a project and you are attempting a major change.  So you create a new branch off of the master and make your changes.  Publish/Commit/Push.  Now you have to look into a bug but you don't want to merge your changes in without testing yet.  You create a new branch off of the master and resolve your bug there.  Tested and merged into master.  After weeks of doing this, you realize that your local branches have piled up and are most likely dead (assuming that you delete your branches in remote once they are merged).  So you will need to run a command to prune, then run a command to get branches including remote, then run another command to delete old branches...bleh.

So I wrote a python script that will automatically do this for you.  You can either setup a task to run every so often or just run it straight from the terminal.  I know that this is nothing fancy, but I hope this is useful to someone like me who just got sick of cleaning their local git repo.

###Note:  
This will **DELETE** branches that are not in remote.  Make sure you publish them if they are not old or marked for clean-up.  Also, this will skip over the branch you are sitting on along with the master branch.  You can manipulate the script to skip over any other branches you want (development/staging).

###Prerequisites:
- Directory must have git initialized.  You can pass the directory in as an argument.  See read me in github repo.
- Must have Python 2.7+ installed.


{% github TonyMezzolesta/Clean_Local_Branches_Python %}
📷 I created an infinite photo grid using only HTML & CSS
Tags: codepen, html, webdev, css
Published: 2020-06-16 18:32:34

Recently, I decided to create an infinite photo grid.

There were 2 options to go with: creating an actual CSS grid with `img` tags all around or using a "collage" with photos (which is easier but doesn't really change the implementation).

I can't remember which option I decided to choose though...

![Monkey Puppet Meme](https://github.com/s1mpson/-/blob/master/dev.to/infinite-photo-grid/monkey-puppet.jpg?raw=true)
So, anyway, here's the result:
{% codepen https://codepen.io/s1mpson/pen/BajjYmp %}

## **Implementation**

The implementation is pretty much simple.

We have a single HTML element:
```html
<main class="infinite-photo-grid"></main>
```

And a bit of CSS:
```css
.infinite-photo-grid {
  width: 100%;
  height: 100%;
  max-height: 750px;
  background-image: url(https://raw.githubusercontent.com/s1mpson/-/master/codepen/infinite-photo-grid/photo-grid.jpg);
  background-size: calc(4.84 * min(100vh, 750px)) min(100vh, 750px);
  background-repeat: repeat-x;
  animation: scroll 50s linear infinite;
}

@keyframes scroll {
  from {
    background-position: left calc(4.84 * min(100vh, 750px)) top 0px;
  }
  to {
    background-position: left 0px top 0px;
  }
}
```

So, the basic idea - is having a repeated background image on the X-axis that is being scrolled by our `@keyframe` function. In order not to trim the top and bottom sides of the picture, we need to know image resolution so we could calculate the ratio (in our case it's `3630×750`px = `4.84` ratio).

Then, we lock our `background-size` to window/image height and calculate the unknown parameter (width) by using a pre-calculated ratio.

For the scroll animation, we change the `background-position` property from the *image width* to *0px*, so it would create a motion effect. 

I hope you enjoyed this article. Feel free to check me on:
- [Codepen (s1mpson)](https://codepen.io/s1mpson)
- [Twitter (s1mpson4real)](https://twitter.com/s1mpson4real)
Golang net.http routing with mux
Tags: go, http, tcp, webdev
Published: 2020-06-16 18:19:41

<h4>How to Route Requests?</h4>

In order to route, we need a mux.  We also use the <i>Handle</i> and <i>HandleFunc</i> functions to setup a mux and allow routing URL paths to custom functions for data processing and responding.

<i>Handle</i> vs <i>HandleFunc</i>

<ul>
<li>
<i>Handle</i> takes in a path string and any type that is a <i>Handler</i>.  A <i>Handler</i> is anything that implements <i>ServeHTTP</i> with a <i>ResponseWriter</i> and a pointer to a <i>Request</i>.
</li>
<li>
<i>HandleFunc</i> takes in a path string and a function of any name with a <i>ResponseWriter</i> and a pointer to a <i>Request</i>.
</li>
</ul>

Both functions are available in the <code>http</code> package and any custom mux created. Ideally we want to use <i>HandleFunc</i> as it is the more elegant solution.

Create a custom mux:

The following creates a new mux and calls the mux's <i>HandleFunc</i> function that takes in a string for the URL path and a custom function named <i>myFunc</i> with <i>ResponseWriter</i> and a pointer to a <i>Request</i> as arguments.  It then uses the newly created <i>mux</i> to listen on port 8080.

<pre>
<code>
func myFunc(res http.ResponseWriter, req *http.Request) {
  fmt.Fprintln(res, "Response from myFunc")
}

func main() {
  mux := http.NewServeMux()
  mux.HandleFunc("/path", myFunc)
  http.ListenAndServe(":8080", mux)
}
</code>
</pre>

Using the default mux:

The following uses <i>HandleFunc</i> from the <code>net.http</code> package and takes in a string for the URL path and a custom function named <i>myFunc</i> with <i>ResponseWriter</i> and a pointer to a <i>Request</i> as arguments.  It then uses the <i>DefaultServeMux</i> to listen on port 8080.

<pre>
<code>
func myFunc(res http.ResponseWriter, req *http.Request) {
  fmt.Fprintln(res, "Response from myFunc")
}

func main() {
  http.HandleFunc("/path", myFunc)
  http.ListenAndServe(":8080", nil)
}
</code>
</pre>

In general it is advised to use the <i>DefaultServeMux</i> unless you really need to create your own mux.

<h4>HandleFunc vs HandlerFunc?</h4>

One thing that can be confusing in the <code>net.http</code> package is that there is a function called <i>HandleFunc</i> which we previously talked about and <i>HandlerFunc</i> (notice the "er") which hasn't been talked about yet.

<ul>
<li>
<i>HandleFunc</i> takes a path and function that with a <i>ResponseWriter</i> and a pointer to a <i>Request</i>.
</li>
<li>
<i>HandlerFunc</i> takes a path and a function and converts that function into a <i>Handler</i>.
</li>
</ul>

 Feel free to leave any comments and feedback.
Ohms calculator using python
Tags: beginners, python, productivity, todayilearned
Published: 2020-06-16 18:04:01

Today I written a calculator program to calculate the ohms formula by python programming language...
If you found better way to write it again please let me know directly message me or comment me.

#here program starts.
print ("""ohms calculator v1.0
	""")
print("""Please enter only numbers unless it will show you an error
	""")
print("""Enter minimum 2 values
	""")
v=input(str('[Enter value of V]: '))
i=input(str('[Enter value of I]: '))
r=input(str('[Enter value of R]: '))
op=input(str("""[Enter 1 to calculate voltage] 
	
[Enter 2 to calculate Ampere]
	
[Enter 3 to calculate Resistance]
"""))
if op=='1':
	print(int(i)*int(r))
elif op=='2':
	print(int(v)/int(r))
elif op=='3':
	print(int(v)/int(i))
JSByte: How to check falsy values with null or undefined in JavaScript
Tags: javascript, webdev, programming, beginners
Published: 2020-06-16 18:00:19

*I will be sharing bite sized learnings about JavaScript regularly in this series. Follow along with me as I re-learn JavaScript. This series will cover JS fundamentals, browsers, DOM, system design, domain architecture and frameworks.*




``` 
console.log( null === undefined )
```


## Rule ##
An important rule of checking type with `null` or `undefined` is that in the equality equation above, the result will be true **only** if both sides are either `null` or `undefined`. 

This is helpful in checking against falsy values such as following -

``` 
let c;
console.log(c == null);
// true

console.log(c == undefined);
// true

console.log(0 == null);
// false

console.log("" == null);
// false

```

One caveat: `==` should be rarely used. This is a good use case for when `==` can be used. If you are unsure whether to use `==` or `===`, use `===`. 
___

### Interested in more JSBytes? [ Sign up for the newsletter] (https://tinyletter.com/shrutikapoor )
My Python Journey So Far
Tags: python, codenewbie, learning, 100daysofcode
Published: 2020-06-16 17:59:26

From
```python
print(Hello, World!)
```
To computational thinking, solving problems and designing projects. I'll be taking you on my journey on learning python programming.

*So please take a seat and let's explore*
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/sh5njklvabxkz0zntnxa.gif)
##THE DISCOVERY
  I discovered python roughly two years ago when I met someone who designed a countdown timer and calculator using python. 

I became curious, ask a couple of questions and did my research on ``Python`` and ``Data Science``. **Boom!** here I am. 

 According to [Statistics](https://coderdojo.com/2015/03/20/top-5-programming-languages-for-beginners), Python is one of the top 5 easiest programming languages to learn. It is my first programming language and so far, it has been extremely exciting and quite challenging.

### My 100DaysofPython Challenge  

I already embarked on my *#100daysofpython* journey. Currently, I am on *Day 18* you can check it out on my [Twitter page] (https://twitter.com/Clareuche/status/1270822937797550086).

 My *Day 1* of *#100daysofpython* was actually based on installing [Anaconda]( https://www.anaconda.com/products/individual#Downloads)(``Jupyter Notebook``), which was my first workspace editor before switching  to the    ``VSCode`` which is highly recommendable. 

So, I'll be dropping a couple of materials and links that I am using as a guide to learning python.

**1.Automate The Boring Stuff With Python by Al Asweigart (My Favorite)**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ab4coojh1v1eev9snenw.jpg)
Download Link:
https://1.droppdf.com/files/5iHzx/automate-the-boring-stuff-with-python-2015-.pdf

**2. Fluent Python by Luciano Ramalho**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ne8h6swq3ib40ithr377.jpg)
Download Link:
http://1.droppdf.com/files/X06AR/fluent-python-2015-.pdf

**3. Learn Python The Hard Way by Zed Shaw**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wtcrwyxzy7dkggv4eqle.jpg)
Download Link:
https://drive.google.com/file/d/0B-hV1HrMP8j1OWpEWXBXbUJsNms/view

**4. w3schools**
Download Link:
https://www.w3schools.com/python/default.asp

###Here are three important things, I've learnt so far:
1. Don't be afraid of Google and Youtube. Browse!Browse!! Browse!!! your life out if you're stuck.
2. Practice little tasks every day.
3. Be patient.

I hope you find this useful🙂.
How to change the root folder of your Git repo
Tags: todayilearned, git, codenewbie
Published: 2020-06-16 17:48:51

*Spoiler alert: this is not as daunting as it sounds* 🙌 

So today, I decided to change the root folder of my GitHub repository from the parent folder I had initially initialised the repository in, to a child folder in the same directory. 

I almost didn't bother as I had flashbacks of past nightmare experiences changing things on git but I decided to give it a go and luckily it was much easier than I thought wooo! 

I thought I would record this for my future benefit and yours.

## The process 

Essentially what you need to do is move the .git folder to the folder you want to be the root folder. 

These are the steps I took in the command line (remember I am moving my .git one folder inwards - you will need to adjust the commands to your needs). 

In the below example, $ represents a command line prompt which may look slightly different to yours. 

### Now without further ado, here are the steps:

1. Start by moving your .git file to the folder that you want to go to.
 * $ mv .git <path to the new root folder>

2. Then navigate to that folder.
   * $ cd <path to the new root folder>

3. Then add all the changes to the staging area. Git will detect these files as renamed versions of old files that were 'lost' and so no history will be lost.
   * $ git add . 

4. Commit all the changes with the -a command. The -a command stands for all. It tells the commit command to automatically stage files that have been modified and deleted whilst new files that you have not told Git about are not affected.
   * $ git commit -a

5. Finally, push the changes to your repo. You might see a prompt that asks for a merge message and in this case you will need to follow the additional steps below.
   * $ git push


### Additional steps to add a merge message:

You may receive the following git merge error message: 

*Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch*

To solve this:

1. Press “i”
2. Write your merge message
3. Press the “esc” key.
4. Type “:wq”
5. Then press enter

You will then to git push again and you're done!