teleren/devto huggingface dataset:
A Brief 10-Point Guide to AWS Lambda
Tags: aws, lambda, serverless, devops
Published: 2020-08-12 14:09:35

<!-- wp:paragraph -->
<p>When I'm learning new about new technologies, one of the first things, I'll do is write a numbered list 1-10 and then fill that numbered list in with points about that particular technology. I realised that these lists might be useful to others so I'm going to start posting them. This week I looked AWS Lambda. </p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true} -->
<ol><li>AWS Lambda lets you run an application without rigging or managing servers. It is an event-driven computing platform. The code is executed in Lambda upon configured event trigger.</li><li>AWS Lambda uses a Function as a Service (FaaS) model of cloud computing.</li><li>With AWS Lambda you don't need an application that is running 24/7, as a consequence, you only pay for the time your functions were executing which can lead to a significant cost-reduction against traditional server-based architectures.</li><li>Due to the nature of AWS Lambda's FaaS model of cloud computing, development times for applications can be greatly increased, because the problems of managing an application stack within a server-based context are eliminated.</li><li>Planning and management of resources are efforts, which are nearly completely removed with AWS Lambda, because of its auto-scaling when more computing power is needed it will scale up the resources seamlessly, and conversely, when fewer resources are required it will scale down seamlessly too.</li><li>A greater proportion of developer time is available for working on the problems and challenges of the business logic with AWS Lambda.</li><li>One of the drawbacks of using AWS Lambda is that is is not necessarily faster than traditional architectures, this is because when a new instance of a function is invoked it needs to start up the process with the code to be executed. This start up time is not present in traditional server-based architectures the process or processes are running all the time.</li><li>A further drawback of using AWS Lambda is the issue of concurrent executions of functions. The default <em>account</em> limit for concurrent execution of functions is 1000, although depending on region this can go up to 3000, but this has to be specifically requested. Few applications will have to worry about this problem however. One additional thing of note about concurrent executions is that AWS Lambda does allow you to specifically limit the concurrent executions of specific functions.</li><li>The current maximum execution time for a AWS Lambda function is 15 minutes, which can be problem if the function is running a task which will take longer. Although this would be a sign that the function should be decomposed where possible.</li><li>A further drawback AWS Lambda is that individual functions are somewhat constrained in there access to computational resources. For example the current RAM limit of an AWS Lambda function is 3GB.</li></ol>
<!-- /wp:list -->
How Google is competing against Facebook, Twitter, and Linkedin in marketing space? #PeopleCard
Tags: database
Published: 2020-08-12 14:08:22

In social media advertising, some big giants are Facebook, Twitter, and Linkedin because of their way to collect the user's information.


Facebook and Twitter being somewhat gathering informal data about people and Linkedin on the other hand collecting formal aspects of data about people.



In this whole scenario, Google was missing out somewhere. It tried to do the same with Google+, but failed miserably.


But now it has used the biggest weapon it has i.e 🔥 SEARCH ENGINE 🔥 .


By the announcement of 🔥 People's Card 🔥 , Google is also getting into a social media advertising club.


Who all have made one for themselves or going to make? Do share it in comments. !!!


☺☺☺☺☺
iex not recognized - 
Tags: notabletoinvokeiexinwindows
Published: 2020-08-12 14:06:56

Hi, I am trying to invoke get.shoop.sh using iex (new-object net.webclient).downloadstring('https://get.scoop.sh') on powershell and windows.

'iex' is not recognized as in internal or external command -windows
Powershell - iex : Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."

Please help fix this issue. I disabled norton antivirus still the same error.

Please help fix this issue,

Thanks,
Joy
Thanks DEV community for 1k followers 🎉🎉
Tags: watercooler
Published: 2020-08-12 13:42:02

Hello everyone,
Finally I have reached the milestone of **1k** followers on DEV. After joining this community I have received a lot of encouragement to share more views and content. It's been a pretty satisfying 140 days on this platform.

This an appreciation post for all the awesome people on DEV. And also for the creators of the community. 

I wish the creators good luck for the [forem](https://www.forem.com/). Thanks everyone for your support.
Why we stop ! Keep moving
Tags: motivation, learning, money
Published: 2020-08-12 13:41:04

One of the Most irritating questions that we faced in our daily lives O man you were learning and working hard. So what's your earning. It's a type of shitty questions that sometimes dumb our mind. Learning and earning are two different things. It's another shit to measure success by money.

Imam Shafi said: "Success comes after a time"
So, keep going.
WebdriverIO Tests Integration with Jenkins
Tags: tutorial, testing, javascript, webdev
Published: 2020-08-12 13:33:32

In this post, we'll take a look at how to get local Jenkins job setup and integrate it with WebdriverIO tests.

### **Prerequisite**
- Install Jenkins locally - you can watch this [video](https://youtu.be/ID0YM8iVL5M) to learn how to do that.
- Publish your code to Github (or any other source code management tool)

### **Setup a new Job**
Once Jenkins is installed, do the following to set up a new job:
1. Click on 'Create a job'
2. Create a new 'Freestyle' project
3. Source Code Management:
  * Add your test repository URL under the 'Source Code Management' section
  * You will also need to add in your credentials to authorize Jenkins to pull changes
4. Build:
  * Select 'Execute Windows Batch Command' (or 'Execute Shell' for mac users) under the 'Add build step' dropdown
     * In the command section add - `npm install` 
  * Select `Execute Windows Batch Command` again and add in the next step to run tests - `npx wdio`
5. Save changes

### **Run Build**
Click on 'Build now' to execute the build and you will see a new build is triggered. Jenkins will pull all your test changes and will begin to execute the tests. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/edzmg4agc4fdwu8evghc.png)

This was a quick intro on how to get your first build working in Jenkins. 

---


**Check out the video below to see a detailed explanation on how to get your Jenkins job setup as well as integrate JUnit reporting to see the test results.** 
{% youtube TpJ0Mh_cfRw %}

***

#### To learn more about WebdriverIO, check out my free tutorial series here - 
https://www.youtube.com/watch?v=e8goAKb6CC0&list=PL6AdzyjjD5HBbt9amjf3wIVMaobb28ZYN.

***

I hope this post helped you out, let me know in the comments below! 

Happy testing! 😄 

...

Follow [@automationbro](https://twitter.com/automationbro) on Twitter for latest updates
Subscribe to my [YouTube](https://www.youtube.com/channel/UCjugV5pnY6WjvTGYm7U1ucg?sub_confirmation=1) channel to see more content like this
How to use service accounts for Kubernetes imagePullSecrets
Tags: kubernetes, registry
Published: 2020-08-12 13:16:38

## What are Service Accounts in Kubernetes?
As per [Kubernetes.io](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) - A service account provides an identity for processes that run in a Pod.

One can think of service accounts as service users for pods. They help pods authenticate with the api-server and interact with it.

## 

Many times, we come across a situation where our organization uses a private Docker registry to store the Docker images and to make this available we need to create a `docker-registry` kubernetes secret and pass as `imagePullSecrets` in the deployment manifest. 

```
kubectl create secret docker-registry registry-cred \
 --docker-server=my.private-registry.com \
 --docker-username=my_username \
 --docker-password="my_superr_strong_password" \
 --docker-email=my.email@mycompany.com -n my-namespace
```

Then, we pass this secret in the deployment manifest as below.
```
...
      imagePullSecrets:
      - name: registry-cred
...

```


## The problem with this approach?
Not many that I can think of, except below ones:
* The deployment yaml are generally developed by Developers who doesn't need to know about this credentials
* If there are a large number of pods in the namespace, then each manifest needs to be updated, whenever the password is rotated


## The solution
`serviceAccounts` - your Kubernetes administrator can just patch serviceAccounts with the registry credential secret and you don't need to worry about replacing or adding it in your manifest yaml each time. 

```
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "registry-cred"}]}' -n my-namespace
```
The programming language that runs the world
Published: 2020-08-12 13:12:13

When you think of a programming language that runs the world people think of C and C++, sure they run the world but that is not what I am talking about. I am talking about Cobol. Cobol is a language that was created in 1959. Cobol is used for data analyse and that kind's of stuff, but it's mainly used by business most commonly banks. Cobl handles just around 3 trillion dollars every day.
How to get started with quantum computing
Tags: quantumcomputing
Published: 2020-08-12 13:05:31

Quantum computing is super amazing and it's amazing to code quantum computers, but it can be hard to get started. So I will help you how to get started with coding quantum computers.

#What is a quantum computer?
A quantum computer is a new type of computing that works off of atoms and uses the rules of quantum mechanics. Now don't get intimidated, you don't need to understand quantum mechanics to program and quantum computers. And for help, you can go to the slack group.

#What makes a quantum computer different?
Most if not everybody using a computer, know's that their device works with 1's and 0's, these are called bits. Whereas a quantum computer works with quantum bits or qubits. Like a normal computer, qubits can be in a state of 1 or 0 or 1 and 0 at the same time. This makes computing a whole lot faster.

#What is the use of a quantum computer?
Quantum Supremacy, is when a quantum computer archives a task, that the most powerful supercomputer can't achieve. Google had claimed quantum supremacy, but of course, IBM was like well our computers could run finish your test's in 30 days, whereas google said it would take the world's fastest supercomputer 10,000 years. One very big use case quantum computers are ML as a much more powerful computer it allows people to do more complex ML.

#How to get started with Quantum Computing?
There are many ways to get started some of the most promising would be cirq by google and qiskit by IBM both of which run with python. I personally use IBM as their website is more user friendly uses Jupiter notebook and if you want to you can use there drag and drop feature to make a circuit, which needs no coding. Although going to google's quantum computing website can be somewhat use full.

#How to code a quantum computer?
Coding a quantum computer is not something like coding a normal computer you need to apply gates and make a circuit that will return an output. There is one algorithm that guesses the number in a variable without looking at the variable in one go.

#Resources
- https://www.ibm.com/quantum-computing/learn/what-is-quantum-computing/
- https://medium.com/qiskit
- https://research.google/philosophy/
- https://qiskit.org/textbook/ch-prerequisites/linear_algebra.html

#Down side to a Quantum computer?
With good comes bad, with the sheer power of quantum computing comes with dows side's, the biggest one being that hackers can guess your password in a go and that will change the whole cryptography standards. And quantum computer's are not that very reliable they can output different things at 50 50.

#Conclusion
Quantum computers are super powerful, and everyone should start learning how to code them if not master them but just touch on them. But they will not replace your current computer.
Commander.js no meu YouTube
Tags: javascript, node, typescript, bash
Published: 2020-08-12 13:02:14

Essa semana lancei uma [playlist](https://www.youtube.com/playlist?list=PL6BILknK4BoUCevg7kGeGGXo4K9GgWEEp) sobre Commander.js no meu canal do YouTube.

Com essa biblioteca, a gente consegue construir CLIs muito poderosas e publicar no NPM pra todo mundo usar.

Te espero lá: [Link da playlist](https://www.youtube.com/playlist?list=PL6BILknK4BoUCevg7kGeGGXo4K9GgWEEp)
Best ZIP Code Lookup By Address/City (Manually)
Tags: zipcode, postalcode, zip, postal
Published: 2020-08-12 12:57:50

ZIP which also means Zonal Improvement Plan codes began as a method for productively arranging and conveying the expansive volume of posts.

With regards to postal codes and ZIP codes, the year's journal or the ever supportive web crawler is called up. We are basically seeing ZIP code and zone code data for the accompanying ZIP code discoverer and territory code discoverer locales.

<b>There is a list of the Best ZIP Code lookup given below you can choose the best from here:</b>

<h3>1. ZIPMaps</h3>
ZIPMaps has a Google Map based interface that demonstrates the limits of each ZIP code. The ZIP code discoverer can pinpoint any of the ZIP code areas ordered by it. You can enter in the ZIP or the location. You can likewise tap on a spot on the guide to get the comparing ZIP code. You likewise get the zone codes for the area with its help. 

<h3>2. Zone code locator</h3>
You have a couple of related zip code discoverer administrations packaged here. You can complete a straightforward ZIP code query; discover the distance between two ZIP codes; query numerous ZIP codes without a moment's delay; complete a range seek around a ZIP code; and discover the majority of the ZIP codes related with a specific city.

<h3>3. MapsZipcode</h3>
MapsZipcode is a basic free invert ZIP code seek instrument that gives you the area in addition to the view on a Google map. You can likewise scan for the ZIP code on the off chance that you know the city or the state. At that point there is the map based inquiry which gives you a chance to tap on the state and after that drill down to the city. 

<h3>4. free ZIP code finder</h3>
This free ZIP code look incorporates a great deal of helpful hunt devices and puts them advantageously on one page. It is essentially a front end which sources the data from different databases. Comprehensively, the hunt devices gives us the – ZIP Code, postal Code, and Surrounding Zips.

<h3>5. Zip-codes - free zip code discoverer</h3>
The site has a free zip code and region/postal code discoverer and a couple of different instruments situated on the sidebar. The administration is really a blend of free and business contributions. What separates this site is the sheer detail of the data it gives which are taken from evaluation information. 

<h3>6. <a href="https://azipcode.com">AZIPCode</a></h3>
AZIPCode gives both state as well as country outlook code. So, in case if you are just confuses about the postal codes then you can easily depend on the app in order to locate.

Above given are some of the best area/postal code finder that are surely going to help you to locate the area for the city or the country you are residing in it.

In case if you are in some other city or country you can just open the above given websites or apps and just then put the name of the city or the country for which you wish to know the postal code of the area using the ZIP code finder.
Render bare-bones React app as HTML in Tino
Tags: react, deno, html, tino
Published: 2020-08-12 12:47:38

Recently I've published [Tino](https://github.com/Vertrical/tino) functional HTTP server for Deno, and you can read a short overview about it [here](https://dev.to/mk0y8/introduction-to-tino-tiny-and-functional-http-server-for-deno-154a).

This time I would like to show how you can easily render HTML content using middlewares. 

Middlewares in Tino are composition of functions which whatever they return is passed through until your controller receives it.

Using Deno's `TextDecoder` and `readFile` top level APIs and Tino's `withMiddlewares` helper for composing middlewares you can write a simple endpoint definition in the following manner: (for example `app.js` file)
```js
// app.js
const htmlReader = async () => {
  const decoder = new TextDecoder("utf-8");
  const html = await Deno.readFile("./react.html");
  return { html: decoder.decode(html) };
}

const composedReact = withMiddlewares(htmlReader);
const useHTML = composedReact(({ html }) => ({ resp: html, type: "text/html" }));

app.get(() => ({ path: "/react", use: useHTML }));
```

Now you need to create your React app as a website somewhere. I won't be using JSX here for simplicity but only React's `createElement`. Let's say you have your boilerplate saved in `./react.html` file (same directory as your `app.js` file). Have a look at sample content below. All it does is handling "Inc" button and logging incremented value to the console:
```html
<html>

<head>
  <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
  <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
</head>

<body>
  <div id="root"></div>
  <script>
    const e = React.createElement;
    const domContainer = document.querySelector('#root');
    const IncButton = () => {
      const [incrementedValue, inc] = React.useState(0);
      return e(
        'button',
        {
          onClick: () => {
            inc(incrementedValue + 1);
            console.log(incrementedValue);
          }
        },
        'Inc'
      );
    };
    ReactDOM.render(e(IncButton), domContainer);
  </script>
</body>

</html>
```

Now when you target http://localhost:8000/react you should see your React app running in the browser.

Hope you liked this post and how using middlewares you can process pretty much anything in Tino and write your own.

Cheers! 🍻
Share files on React Native
Tags: react, reactnative, javascript, typescript
Published: 2020-08-12 12:33:59

File sharing is a very common feature in many apps. For this purpose on React Native, we can use the lib `React Native Share`.

### Install React Native Share

```bash
$ npm install react-native-share --save
```

#### One more step for iOS

```bash
$ npx pod-install
# or
$ cd ios && pod install
```

### Share a file

```jsx
import React, {useCallback} from 'react';
import {View, Button} from 'react-native';
import Share from 'react-native-share';

export default function ShareAudio () {
  const onShareAudio = useCallback(function () {
    Share.open({
      url: `file:///data/data/com.yourapp/files/audio.mp3`,
      type: 'audio/mp3',
    });
  }, []);

  return (
    <View>
      <Button
        title="Share audio"
        onPress={onShareAudio}
      />
    </View>
  );
};
```
#help Render a component React using Picture-in-Picture
Tags: react, jitsi, help
Published: 2020-08-12 12:32:53

Hello everyone, i have a doubt about, how to render a component in a new window in React, like a component Picture-in-Picture of Youtube. For example, i need that component stay on front of the page, because it is a videoconference, while the user write information on system, this window will show the videoconference without loose focus. This componente that shows the videoconference it's react-jitsi component. Anyone have some idea to help me?

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2te2gfnkkhjb4025qmem.png)
AzureFunBytes Episode 10 - Azure and Visual Studio Code with @chris_noring Reminder - Thursday 8/13/2020 2PM EDT
Tags: code, beginners, tutorial, azure
Published: 2020-08-12 12:29:10

New #AzureFunBytes - Visual Studio Code and Azure.

This time we'll look at how we can integrate VS Code with Azure!

My guest, [Christopher Norig](https://twitter.com/chris_noring), joins me to solve three problems with Azure.

1. How do we integrate VS Code into Azure?
2. How do we deploy an application to Azure from VS Code?
3. How can we troubleshoot our code with VS Code?

{% youtube 81OMzEyBmIQ %}

------

AzureFunBytes! - Byte-sized content with a live Twitch show!

Learn about Azure fundamentals with me!

Live stream is available on Twitch at 2 pm EDT Thursday. You can also find the recordings there as well.

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes
[Download Visual Studio Code](https://cda.ms/1wX) 
[Deploying Applications to Azure](https://cda.ms/1wY)
[Azure Extensions](https://cda.ms/1wZ) 

Join me, ask questions and learn about Azure!
My First Web Project
Tags: python, postgres
Published: 2020-08-12 12:06:13

Enterprise for warehouseing and basic accounting.
Enterprise provides a web platform for running basic warehouseing and accounting for middle sized organizations that require remote and multi-user access to warehousing, accounting and invoicing records. Enterprise enables middle-sized organizations to run their businesses with ease and efficiency, anywhere, anytime. Check it out on https://github.com/abbddos/Enterprise_1

Now, this is my first web project ever. I have been working with python for data processing for years, but all my projects were designed to deal with specific problems related directly to my work. Web development is a whole new experience to me. I am sure there is a huge room for improvement and scalability. 

Great thanks to Sm0ke for his help in solving some deployment issues that I had. 

It is still a work in progress, there is plenty of room for improvement, like any project; and I hope I can get some insight.   

Thank you all.
Vim - add string to end of each line
Tags: vim
Published: 2020-08-12 12:05:50

---
title: Vim - add string to end of each line
published: true
description: 
tags: vim
//cover_image: https://direct_url_to_image.jpg
---

Use this command to append `,` to end of every line - 
```
:%norm A,
```
Hi There World!
Published: 2020-08-12 12:05:13

I am Ashfaqe Ahmed from India awaiting a beautiful journey here with all you guys. I Hope to make a lot of friends and 100x my productivity from now on with all your help. 
It's been three months since I started to code and I'm the javascript guy. So, anyone wanted some help from my side, I'm Happy to Help

!!! cheers guys !!!!