teleren/devto huggingface dataset:
Endless Journey: Nevertheless, She Coded
Tags: wecoded, womenintech, career
Published: 2021-03-05 05:15:28

<!-- ✨This template is only meant to get your ideas going, so please change/add/remove these prompts as you wish! We also encourage you to create your own title if you’d like! ✨ -->

*You attract what you look for*

If you look for the opportunity you will attract one! but if you keep on looking at your downfall\failure, soon you will find yourself surrounded by self-doubt and low confidence. 

At a time, you might feel you are losing all the hopes, but trust me it's sign of new beginning!...

I left my first job and it was tough decision with no other way left. It was more than 6 month with no particular project/task assigned. I was the most unproductive member of team.😔 I started losing all the hopes and confidence. After lots of jumbling thoughts, finally I decided to leave my first job.

Now, after a year in my second job, lots of things as changed. I am building things, writing blogs, mentoring and guiding other developers. I took it as a lesson not as my loss and ultimately it became a motivation to do better, to dream bigger. 

## My advice for allies to support underrepresented folks who code is don't give up!....

Everything will come to you, don't lose hope, not now! Take it in a positive way.

Keep glowing!....
Ali Sami Farooq : Develop Web Applications by These platform in UK
Tags: alisamifarooq
Published: 2021-03-05 04:52:08

Before creating a web application, it is imperative to identify the framework on which you will develop it. Frameworks serve as support platforms for creating a web application and can integrate the features you're planning for your web app. If you're partial to a specific programming language, you might choose a framework that works well with that language. Here Ali Sami Farooq suggested some web application frameworks that are currently popular with developers in UK:

1.Codeigniter

Codeigniter is a robust PHP framework that is simple to use and also has a great toolkit for creating web applications. In addition to being extremely lightweight, this framework comes with excellent documentation that is very easy to understand. It has a good collection of libraries, which makes it easy to learn, adopt and deploy. Codeigniter is known for offering flexibility and easy management with the help of an MVC-based framework. Codeigniter lets you use your existing scripts along with your personal top libraries. It is a structure free from complex structures and tedious development procedures. If you're a novice PHP programmer, Codeigniter is a good place to start.

2.Express.js

Before you start with Node.JS, we suggest you take a quick look at Express.js. Express.js is a default Node.js framework that enables you to build web server applications faster, smarter, and more flexibly and scalability. Get, firstly, a level of performance that matches that of a Node framework.js and, secondly, a robust set of features for web and mobile apps. You can create single-page, multipage, or hybrid web applications with Express.js. Express is written in JavaScript, which makes it very easy to program. Some developers argue that working on Express halves programming time. With 5 years of development behind Express, we can say with certainty that it is a mature platform to work with. Error handling can be a bit frustrating as you might get lost in middleware. This framework is recommended for advanced developers.

3.AngularJS

AngularJS might ring a bell if you've been following the development of YouTube and Netflix. It is an open source framework managed by Google and a few other development communities. AngularJS is one of the most popular JavaScript frameworks. This framework allows developers to extend html vocabulary for website development. It has a short loading time and is great for testability. AngularJS is great for video streaming apps, user review apps, travel apps, weather apps, ecommerce, and social media apps (LinkedIn uses AngularJS for its mobile app). AngularJS implements the MVC method, and because it uses HTML as a declarative language, it is quite intuitive. AngularJS is great for quick front-end development as it doesn't need any more plugins or frameworks. AngularJS is run by Google, so there's a big community out there to learn from.

Ali Sami Farooq
Create a unique array using the object params as the identifier.
Tags: tutorial, javascript
Published: 2021-03-05 04:17:39

---
title: Create a unique array using the object params as the identifier.
published: true
description: 
tags: #tutorial #javascript
//cover_image: https://direct_url_to_image.jpg
---

I wrote this as a comment and thought it'd help out a few of the devs that search this quite often. 

```js
const sourceArray = [{id:1},{id:2},{id:3}]
const uniqueArray = []

sourceArray.reduce((acc,item)=>{
    if(!acc.has(item.id)){
        uniqueArray.push(item);
        acc.add(item.id);
    }
        
    return acc;
},new Set());

```

# Explanation

If you need an explanation, here goes.

There's a `sourceArray` which may or maynot contain objects and if it does contain objects, let's assume it has a `id` key that I need to consider for the uniqueness. 

Now, `reduce` provides a way for us to accumulate over a temporary variable that looses scope as soon as the reduce function completes execution so we are going to use that to create a set that holds the property that we are to consider for the uniqueness.

Observe the last line of the snippet, we have a `new Set()` , sets are basically a collection of unique symbols, in our case it's going to be an `id`. 

**The Algo**

We are going over each item of the array, checking if the id of it already exists in the set, if it does then we just continue and if it doesn't then we add it to a new array name `uniqueArray`. 

It's simple, works on more than just a simple array of numbers and is faster than using a `Map` or a `[]` in the reduce function.
La mejor en todos los modos de servicios de hacking.
Published: 2021-03-04 19:20:34

Me sentí muy entusiasmado de recomendar a este grupo de hackers autorizados y peculiares al mundo en general. Las palabras no son suficientes para expresar el nivel de inteligencia y profesionalidad de estos legendarios grupos de piratas informáticos, "legendwizardhackers". Son un grupo excepcional y bien establecido de piratas informáticos éticos. contáctelos a través de: email=LEGENDWIZARDHACKERS@GMAIL.COM o Whatsapp: +15757378483
Hicieron que todos los problemas de piratería fueran fáciles de resolver con sus conjuntos de brillantes piratas informáticos que poseen todo el software necesario para llevar a cabo cualquier problema de piratería. Son un verdadero mago del mundo de la piratería. Son excepcionales en los siguientes servicios;
* Hack de cambios de grado escolar
* Hackear calificaciones y expedientes académicos universitarios
* Hack de títulos universitarios
* Hack de borrar antecedentes penales
* penetración del sitio web y la base de datos
* Venta de tarjetas Dumps de todo tipo
* Hackeo de computadoras individuales
* Controlar dispositivos de forma remota piratear
* Hack de números de quemador
* Hack de cuentas de Paypal verificadas
* Cualquier pirateo de cuenta de redes sociales
* Hack de Android y iPhone
* aumentar su puntaje de crédito
* Hack de interceptación de mensajes de texto
* Hack de interceptación de correo electrónico
* Desbloqueo de billetera criptográfica congelada
* Aumentar el tráfico del blog
* Hack de Skype
* Hack de cuentas bancarias
* préstamo gratuito
* pirateo de cuentas de correo electrónico
* Sitio web bloqueado hack
* ayuda Regístrate en ILLUMINATI y hazte famoso más rápido
* eliminar videos de YouTube o aumentar las vistas
* transferencia de escuela y falsificación de certificados
* servidor fallido hack
* Recuperación de archivos o documentos perdidos
* Hacker de tarjetas de crédito
* carga de bitcoin
Para más consultas, comuníquese con su equipo de servicios en
correo electrónico: LEGENDWIZARDHACKERS@GMAIL.COM
Whatsapp: +15757378483
para que usted también pueda testificar sobre sus buenas obras y resolver satisfactoriamente todo su problema de piratería con la máxima seguridad y protección
March 4th, 2021: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2021-03-05 04:06:27

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![Information flowing through your brain](https://media.giphy.com/media/qKltgF7Aw515K/giphy.gif)
</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{% link https://dev.to/devteam/what-was-your-win-this-week-1bop %}

![A show host dancing a winning in their seat](https://media.giphy.com/media/l3q2Z6S6n38zjPswo/giphy.gif)
How Try/catch works?
Tags: javascript
Published: 2021-03-05 03:42:50

Look this following image
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z2q0etuet6brzbd6bp70.png)

According to the image, it will first try the try block, if it finds an error, it will go to the catch block, passing an argument (error or err or even e) are the parameters most often used by developers, where it passes the error's StackTrace.
You can pass a different stacktrace, if you notice in the else statement there is a "throw new Error()"; this is the one that will be responsible for giving a custom stacktrace.

Anyway, I hope I clarified your questions about Try/Catch statements, and this is my first post here ;)

See you
Razones por las que Aman o Odian Tailwindcss
Tags: codenewbie, css, webdev, tailwindcss
Published: 2021-03-05 03:32:42

Tailwindcss es una librería de utilidades que nos provee de clases Css predefinidas para la creación de componentes según las preferencias y necesidades del desarrollador, de un tiempo para acá ha ganado espacio dentro de la comunidad y cada día son mas los que se aventuran a su uso y exploración.  Es por ello que hoy me animo a compartir contigo un par de infografías donde puedes ver las razones por las que es amado o odiado Tailwindcss.

![](https://miriali.github.io/css/img/Infografias/tailwind-1.jpg)
![](https://miriali.github.io/css/img/Infografias/tailwind-2.jpg)
Weatherify: A Simple Weather App using Flutter.
Tags: showdev, opensource, flutter, webdev
Published: 2021-03-05 03:27:23

Hey there everyone! I hope you're all doing good. It's been a while since I've posted anything. Today I'm announcing a simple Weather App built using FLutter & Open Weather API. It is called Weatherify and it gives the current weather info of all most all the cities in the world as soon as you enter the city name. I just started working with APIs & I decided to make an app to understand the concepts better. So I came up with this. And also I decided to go Open Source with this one because I thought it's a good idea unless I'm not revealing my API key.😛 

I'm also distributing the APK with this one so that people can try it out and let me know if it's working as intended.

**Here's the link to repo:**

{% github zxcodes/Weatherify %}

**Here's the link to APK release**
https://github.com/zxcodes/Weatherify/releases/tag/v1.1
**Thank you!😄**
What am I expecting to get from blogging every day?
Tags: codenewbie, career
Published: 2021-03-05 02:39:11

Link to original article (recommended): https://gabriellazcano.com/blog/what-am-i-expecting-to-get-from-blogging-every-day/

As you might have already figured out if you’ve seen my posts in the last 4 consecutive days, I started blogging. My goal is to post every single day. With this in mind you might think, why? And I would tell you I don’t really know for sure. I have the idea that this is going to bring me good things in the future but I’m unsure on what they will be, if they do. The aspects I’ve considered for this decision are the following:

## Organization
I’m the worst at organizing, I lose track of things pretty regularly, forget homeworks, start doing totally unrelated things when I should be doing other things and so on. For this posts I have to give myself at least 2-3 hours to write it, not counting the time doing the projects which can vary depending on the complexity.

And I’m not complaining, I like this, just that I have to plan my schedule MUCH better than before. I hope that this will stick to my work ethics and other projects I might do in the future.

## Practicing Coding
I’m not into the labour force, I have no need of having a job at the moment, so every line of code I write I do it for entertainment purposes only. Sometimes this can lead to me prioritizing other things, such as playing videogames, instead of programming. I mean everyone needs a rest, but I end up not coding for like 2 weeks. So yes, basically, I need this to be consistent with my programming skills.

## Money?
As I said before I don’t work in tech nor any other industry. I’ve tried making money with programming before but the conditions weren’t the best and I really have no idea of how to get clients. Maybe if I keep blogging someone will eventually contact me and offer me something? I don’t know. I hope so.

Giving back to the community
I really love the programming community, it’s always so charming even when I started. I’ve never had a formal way of really engaging with the community other than just answering questions at StackOverflow or on Discord servers. And now I have a platform to give back to the community :)

Thanks for reading! You might also want to check out my other posts if you are interested :))
Quick Fix: AWS SAM Error: NodejsNpmBuilder:NpmPack
Published: 2021-03-05 02:03:41

---
title: Quick Fix: AWS SAM Error: NodejsNpmBuilder:NpmPack
published: true
description: 
tags: 
cover_image: https://d2908q01vomqb2.cloudfront.net/da4b9237bacccdf19c0760cab7aec4a8359010b0/2017/08/09/aws_sam_introduction-1024x286.png
---

I was running my lambda functions locally using AWS SAM framework, Everything was working fine until I did some change to YAML file. After that, I couldn't build the project! It will show this  error message 

> Error: NodejsNpmBuilder:NpmPack - NPM Failed: npm ERR! code ENOLOCAL

My change was that I used CodeUri in Resources of type AWS::Serverless::Function.

QUICK FIX: just use Handler and remove CodeUri !..your Handler key should point to the location of exported function that you want to run, such as, src/folder-name/file-name.lambdaHandler

you can read a detailed explanation [here](https://github.com/aws/aws-sam-cli/issues/1906)
Rename WiFi Interface on Ubuntu 20.04
Tags: wifi, ubuntu, raspberrypi
Published: 2021-03-05 01:43:47

> This post is originally published on yoursunny.com blog https://yoursunny.com/t/2021/WiFi-rename/

During an experiment, I need to use three WiFi interfaces on a Raspberry Pi running Ubuntu 20.04.
In addition to Raspberry Pi's internal WiFi interface, I added two USB WiFi adapters.
Three network interfaces showed up in the system (`ip link` command), and they are named wlan0, wlan1, and wlan2 by default.

I often need to capture packets with `tcpdump`, and I often have to be type these interface names manually.
It isn't easy to remember the purpose of each network interface, so I wanted to rename the interfaces to reflect their role in my application.
However, this isn't as easy as it sounds.

## 🚫 Netplan

Ubuntu 20.04 configures network interfaces using [Netplan](https://netplan.io), so my first thought was: I can write a Netplan configuration that matches network interfaces with their MAC addresses, and assigns the desired name to each network interface.

The config file would look like this:

```yaml
network:
  version: 2
  wifis:
    uplink:
      optional: true
      match:
        macaddress: ba:fe:de:f0:b9:e4
      set-name: uplink
      access-points:
        home:
          password: rP8jKHJ64
      dhcp4: true
      dhcp6: true
      accept-ra: true
```

However, this method would not work:

```shell
$ sudo netplan apply
ERROR: uplink: networkd backend does not support wifi with match:, only by interface name
```

## 🚫 70-persistent-net.rules

Many online guides refer to a file `/etc/udev/rules.d/70-persistent-net.rules`, which is processed by udev during boot.
The file should have been created automatically by the system upon discovery of the network interfaces, and I just need to modify the interface names to the desired names.

However, this file does not exist in Ubuntu 20.04, so it's another dead end.

## ✔️ systemd.link

After carefully reading [Debian's NetworkInterfaceNames guide](https://wiki.debian.org/NetworkInterfaceNames), I found the correct way: [systemd.link](https://www.freedesktop.org/software/systemd/man/systemd.link.html).

To rename WiFi interfaces, I can create a systemd configuration file for each network interface:

```bash
echo '[Match]
MACAddress=ba:fe:de:f0:b9:e4
[Link]
Name=uplink' | sudo tee /etc/systemd/network/10-uplink.link
```

After rebooting, the network interface is renamed to what I wanted.
White-List AWS Lambda functions
Tags: aws, awslambda, whitelist
Published: 2021-03-05 00:26:43

So you have a situation where you need to white-list your Lambda functions. For example, you could have Lambda function that is used to query a Database but due to security concerns, all requests made to the Database need to come from IP address that have been whitelisted.

The issue here is that by default, Lambda functions run in an AWS managed VPC. Although request may appear to be coming from certain range of IP addresses, the IP address are not static — meaning that the IP address that the requests are sent from _will not be the same_. So attempting to white-list may prove to be anywhere between difficult and impossible.

However, there is a workaround for this.

With AWS Lambda, you have the option of place your function into a custom VPC. By doing this, you can then attach a NAT (Network Address Translator) Gateway, so that all requests coming from your Lambda functions will go through the NAT Gateway. This NAT will have a fixed IP address that you can use for white-listing.

###Placing your Lambda into a custom VPC
If you are unfamiliar with how to place your Lambda into a custom VPC, below are the steps to do so:

1. Setup a new VPC in your AWS account, or use an existing VPC if you already have one.
2. Setup your VPC components — these include:
  - At least 3 subnets, 1 will be _“public”_ and two will be _“private”_. (You will place you Lambda in the _private subnets_, and NAT in the _public subnet_.)
  - Your NAT Gateway
  - Internet Gateway
3. Create two route tables, one will be for your public subnet, and the other will be for your private subnets.
4. Configure the Public Route Table by first associating the public route table with the public subnet. Then create a new route with the following information:
  - **Destination**, should be `“0.0.0.0/0”`
  - For **Target** choose `Internet Gateway`, and then choose the ID (_igw-123abc456def_) of the internet gateway that you created.
Choose Save routes. The associated subnet is now a public subnet.
5. Configure the Private Route Table by associating it with the private subnet. Then create a new route with the following information:
  - **Destination**, should be `“0.0.0.0/0”`
  - For **Target** choose `NAT Gateway`, and then choose the ID (_nat-123abc456def_) of the NAT gateway that you created.
Choose Save routes. The associated subnet is now a private subnet.
6. Create a new Elastic IP address, and attach it to the NAT Gateway and Public subnets you have created.


Once you have completed setting up your VPC, your Lambda function can now be setup inside your custom VPC to make a request to the Internet, and make use of the static IP at the NAT gateway.

To make sure everything is working as it should, you can do a quick test by making a request in your function code to www.google.com.

If the request is successful then we know the request is being successfully using the NAT Gateway and the Elastic IP address that we created. This is the IP address that you will place into your white-list.
[Road to Job] #4 Change of Plans
Tags: beginners, career, webdev, flutter
Published: 2021-03-05 00:16:46

__I want to start with 2 sayings...
1) Necessity is the mother of invention.
2) Be water my friends.__

I have changed my focus slightly after realizing what I wanted to use coding for. I didn't get into coding because I wanted to get a job...it was to create my ideas and getting a job is just an added benefit;)

If you look at earlier posts in this series, you will see that I was quite focused on Java. Well...I started going down Java and realized that it simply wasn't the best for what I wanted to do. Thus, I have put a pause on Java once I started learning _Spring._

#Why I am putting Java on pause#

Java was a good language that really teaches you the fundamentals of __Object Oriented Programming__. However, no one ever uses it in hackathons and Java is mostly used on large and old code bases like at banks. I think it is important to learn the fundamentals of it and I do not regret starting with it as I will still need to use it when I get into the Data Structures and Algorithms part of my learning plan. __However, there is simply better options for someone like me who wants to build things in 2021.__

#So what am I learning?#

Let me save you the reading.

__1) HTML, CSS
2) JavaScript
3) Python
4) Flutter__

#Why those 4?#

As I get more and more into coding and do more and more hackathons...1,2,and 3 is what I see to be the most used and relevant. __Mainly, it is what I need to learn if I want to be able to build full stack applications.__

__I am also learning Flutter because I believe it is the future of cross platform development__. As of writing, Flutter 2.0 just came out and it just confirms my belief. I'll make a post about Flutter another time.

#Conclusion#

Necessity is the mother of invention and it truly is the case for me. I had some things I wanted to make and to do it, I had to shift focus and learn the things I need to make it.

I say be like water because tech is always changing. New languages and frameworks will come out and as developers we need to be able to adapt much like water can adapt to any container it goes into.

Happy coding gang!
-Dev of Myth
You're ORMing wrong
Tags: orm, oop, database, sql
Published: 2021-03-10 09:34:46

---
title: You're ORMing wrong
published: true
date: 2021-03-05 00:00:00 UTC
tags: orm, oop, database, sql
canonical_url: https://jhall.io/archive/2021/03/05/youre-orming-wrong/
---

Object-Relational Mapping (ORM) is pretty ubiquitous these days. Many people take for granted that you’ll be using an ORM in your app. The question is usually “Which ORM should we use?” not “Should we use an ORM?”

This mindset leads to many misuses and abuses of ORMs. Today I’ll talk about one of them.

Imagine you’re selling widgets in a web store. You store the widget data in a table in your relational database.

When it comes time to display the widgets to your web site vistor, you use your favorite ORM to query the relational table, then row-by-row map each query result into an object. Remember, that’s the core of what an an ORM does: it maps relations to objects, and vice versa.

In the next step, you loop through your list of resulting objects, and one by one, convert them into relational data, to be displayed in a grid or table.

Wait… what?

That’s right. You used your fancy, general-purpose ORM library to automagically convert the relational data in your database, into an object. Then you wrote a manual, one-off ORM to map that object data back into relational data.

What a waste, right?

The only thing the ORM did was get in your way. And you probably didn’t even notice. You may have even said “thank you”!

Without an ORM in there, the translation from relational database rows to relational grid data is much simpler, faster, and less error/bug-prone. In fact, it may be as simple as appropriately naming the resulting columns in your SQL query (i.e. `SELECT price_usd AS price`).