teleren/devto huggingface dataset:
Monthly Amazon Location Service Updates - 2022.04
Tags: amazonlocationservice, amplifyge, amplify, amazonlocationserviceupdates
Published: 2022-05-01 11:32:42

![img](https://day-journal.com/memo/images/logo/aws/location-service.png)

### Monthly Amazon Location Service Updates - 2022.04

<br>

This is a summary of the April updates for Amazon Location Service.

<br>

## 2022.04 Updates

[Announcing General Availability of Amplify Geo for Android](https://aws.amazon.com/about-aws/whats-new/2022/04/general-availability-amplify-geo-android)
"Amplify Geo for Android" was officially released to the public in April 2022.

[Amplify Geo Launches React Component for Maps, powered by Amazon Location Service](https://aws.amazon.com/about-aws/whats-new/2022/04/amazon-amplify-geo-react-maps-location-service)
UI components for React of Amplify Geo, which can be easily built, are now available.

[Announcing General Availability of Amplify Geo for iOS](https://aws.amazon.com/about-aws/whats-new/2022/04/amplify-geo-available-ios)
"Amplify Geo for iOS" was officially released to the public in April 2022.

<br>

## Other Info

[Amazon Location Service Developer Guide](https://docs.aws.amazon.com/location/latest/developerguide)
Official Amazon Location Service Documentation.

[Amplify Geo Docs](https://docs.amplify.aws/lib/geo/getting-started/q/platform/js)
Official Amplify Geo Docs.

[Amazon Location Service Samples](https://github.com/aws-samples/amazon-location-samples)
Official Amazon Location Service samples.

[amazon-location-service-starter](https://github.com/dayjournal/amazon-location-service-starter)
Build environment to get started with Amazon Location Service.

[A Summary of How to Build Amplify Geo and Amazon Location Service](https://dev.to/aws-builders/a-summary-of-how-to-build-amplify-geo-and-amazon-location-service-5hal)
Summary of Amazon Location Service and Amplify Geo. (as of December 2021)  

[dev.to](https://dev.to/dayjournal)
Articles on Amazon Location Service.

[tags - Amazon Location Service](https://day-journal.com/memo/tags/Amazon-Location-Service)
[tags - Try](https://day-journal.com/memo/tags/Try)
Notes on Amazon Location Service. (Japanese)

<br>

## Related Articles

{% link https://dev.to/aws-builders/monthly-amazon-location-service-updates-202203-2n1e %}
Import your GitHub or GitLab repository directly into Deno
Tags: javascript, deno
Published: 2022-05-01 11:13:30

Denopkg.dev is a open source Deno package proxy operating on the Cloudflare Edge Network.

You can use it to import your private/public GitHub/GitLab repositories into Deno 😎.

## URL Helper
You can use the [interactive form](https://denopkg.dev) on our homepage to generate a valid link to your package in seconds.

Just drop the URL of your repo and let the magic happen ✨.

![Denopkg.dev Homepage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxh7kc43mv2ocxgdj5t8.png) 

## How to use it with private repositories

For private repositories simply generate a private access token and proceed like stated out [here](https://deno.land/manual/linking_to_external_code/private#private-modules-and-repositories).

## Share a URL to your package

![Install Instructions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fliaige7lfn6cfsm5yr4.png) 

If you want to share your package with some friends, it could be helpful to also send them some basic usage instructions. Just add `/import/` after the `denopkg.dev` domain and you're good to go.

```
https://denopkg.dev/import/gh/alexanderschau/access_token@1.0.0/mod.ts
```

## Contribute, it's open source

If you love denopkg.dev as much as I do, you can help me making it better and implementing new features by contributing on GitHub.

[Denopkg.dev's GitHub Repo](https://github.com/alexanderschau/denopkg.dev)
The Weekly Dev - 202218
Published: 2022-05-01 11:05:42

---
title: The Weekly Dev - 202218
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
canonical_url: 'https://kevwe.com/weekly/202218'
---
The Weekly Dev - 202218


Avoid being overloaded by the Internet


Everyone wants traffic, everyone wants to be on the front page, but put it in another way, it seems like everyone is glad to get into trouble with traffic.


You can't just provide the best content unless you are capable an willing to support that...

https://kevwe.com/weekly/202218
MVC টা আসলে কি?
Tags: mvc, designpattern
Published: 2022-05-01 09:21:08

এটা খুব কঠিন একটা জিনিস। আপনি কিছুতেই এটা বুঝবেন না। এমনকি বুঝার চেষ্টাও করবেন না। না আসলে বিষয়টা এমন কিছু নয় 😀 । ইঞ্জিনিয়ারিং এ যেকোনো জটিল বিষয় সমাধানের জন্য আমাদের অনেক ভাবতে হয়। একবার যদি আমরা সমস্যাটা সমাধান করেই ফেলি, তাহলে পুনরায় এটা ভাবার দরকার আছে কি? যেমন নতুন করে চাকা আবিষ্কারের আর প্রয়োজন নাই।

সফটওয়্যার ইঞ্জিনিয়ারিং এও সফটওয়্যার তৈরির অনেক গুলো প্রমানিত কৌশল এর মধ্যে MVC একটা ওয়ে। এটা খুবই সিম্পল একটা ডিজাইন প্যাটার্ন। ছোটো বা মিডিয়াম সাইজের প্রজেক্ট এর জন্য খুব জনপ্রিয় একটা ডিজাইন প্যাটার্ন।

M দিয়ে বুঝানো হয় মডেল। মডেল টা আবার কি? আপনার যে ডাটাবেস আছে না? ওইখানে আপনি কিভাবে কোন স্টাইলে ডাটা রাখবেন বা তুলে আনবেন তা ওই মডেল এ লেখা হয়। ধরেন আপনার একটা ওষুধের ডাটাবেস আছে। এক বুক জালাপোড়ার জন্য অনেক কোম্পানির ওষুধ আছে। তো আপনি একটা সার্চ কুয়েরি লিখে রাখলেন Medicine মডেলের ভিতরে যে ওষুধের নাম এই কয়েকটা লেটার দিয়ে শুরু হলেই আপনাকে ওইটা রিটার্ন করা হবে। কিংবা সব ব্যথার ওষুধ কম দামি থেকে বেশি দামি এই অর্ডারে দেখান দরকার। আপনি একটা স্কোপসর্ট লিখতে পারবেন মডেল এর মধ্যে।

C দিয়ে বুঝানো হয় Controller। বুঝতেই পারছেন কিছু একটা control করা হয়। কিন্তু কি control করা হয়? বিজনেস লজিক। ধরেন বাজারে হুট করে ক্যাপসুল জাতীয় ওষুধের দাম ৫% বেড়ে গেল। কিন্তু আপনার আগের দামের উপর রিপোর্ট জেনারেট করতে হবে। আপনি কিন্তু created_at কলাম টা চেক করেই controller এর ভিতর ডিসিশন নিতে পারবেন।

ফাইনালি V. এটা দিয়ে বুঝানো হয় ভিউ। সিম্পল। যা ইউজার দেখতে পাবে ওইটাই ভিউ। সাধারণত html, css, js, static content এইসব ভিউতে থাকে।
Understand "this" in JavaScript
Tags: javascript, beginners, webdev, react
Published: 2022-05-01 10:42:35

_"**This** keyword refers to the object it belongs to."_

You must have heard this line almost everywhere, but never fully understood what it actually means? Let's understand **_this_**.

_**this**_ is nothing more than a reserved keyword in JavaScript that points to the object it is present inside.

## Global Context: 

Alone, this refers to the global object. Global object is nothing but the window object created by the JavaScript engine in the browser.

![Console with "this" keyword referring to window object](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z498rhifpx2t88alup7q.png)
 

I learn better when I visualise concepts. That's why I've created few illustrations to simplify **_this_**.


![this inside window object](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/amqmoof2vdprx0uge6eb.png)
                   _**this** in a global context._



## Functional context:

Now what happens if **_this_** is used inside a function?

![this inside a function](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2l1swkj7hr9ruizv24s5.png)
                     _**this** inside a function._


 
 It still point to window object! But why?

Because that function is present globally, so technically it is present inside window object. So, this refers to the global object, i.e. window.

So far this has been pointing to window object only. Nothing has changed. So when does it return a different value that we all have been reading about? 

## Custom Object Context:

Let's see what happens if **_this_** is used inside an object that we create?

![this inside a custom object](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ehk7ojhjw22kdh4jq5b.png)

In a method, this refers to the person object. It means that this will point to the object inside which we are using "this" keyword.


 

## To summarise:

Globally, **_this_** will point to window object because **_this_** is being used inside window object. But if we create an object of our own and use **_this_** inside that object, then it will point to that particular object. 

## Additional Info:

- We will talk about the behaviour of **_this_** inside an arrow function in another blog.
- [Tricky questions around this keyword](https://dmitripavlutin.com/javascript-this-interview-questions/)
Amazing Python Programs
Tags: python, programming, machinelearning, datascience
Published: 2022-05-01 10:38:21

## **Internet Speed Test using Python :**

```
# Python program to test internet speed

import speedtest
st = speedtest.Speedtest()
option = int(input('''What speed do you want to test:
1) Download Speed
2) Upload Speed
3) Ping
Your Choice: '''))

if option == 1:
   print(st.download())
elif option == 2:
   print (st.upload())
elif option == 3:
   servernames = []
   st.get_servers(servernames)
   print (st.results.ping)
else:
   print("Please enter the correct choice !")
```

## **Block any website using Python :**

```
import time
from datetime import datetime as dt
hosts_path = "/etc/hosts"
redirect="127.0.0.1"
website_list =
["www.facebook.com", "facebook.com",
    "dub119.mail.live.com", "www.dub119.mail.live.com",
    "www.gmail.com", "gmail.com"]
while True:
    if dt(dt.now().year, dt.now().month, dt.now().day, 8)
    <dt.now() < dt(dt.now().year, dt.now().month, 
     dt.now().day, 16):
       print("Working hours...")
       with open(hosts_path, 'r+') as file:
           content=file.read()
           for website in website_list:
               if website in content:
                  pass
               else:
                   file.write(redirect website + "\n")
else:
    with open(hosts_path, 'r+') as file:
         content=file.readlines()
         file.seek (0)
         for line in content:
             if not any(website in line for website in 
website_list):
                file.write(line)
         file.truncate()
  print("Fun hours...")
time.sleep (5)
```

## **Get IP address of your system using Python :**

```
# Python Program to Get IP Address

import socket
hostname = socket.gethostname()
IPAddr = socket.gethostbyname (hostname)
print("Your Computer Name is:" + hostname)
print("Your Computer IP Address is:" + IPAddr)
```
Working with Docker
Published: 2022-05-01 10:21:04

# Introduction

Although it's possible to create web containers without tools like Docker, utilizing Docker makes it a **lot** easier to build, deploy, and manage containers. To use an analogy, Docker is like the container development toolbox -- it keeps everything nice and tidy for the developer, with all the mainstay tools located conveniently where the developer wants them within a single API.

And with how great it is, it's pretty easy to get started! Just head over to [this link](https://www.docker.com/play-with-docker) to start playing around with Docker!

# Creating Docker Files for NASA Image Search
A pretty common use case of Docker would be to access and work with API services. Here, we'll describe how to hook up to the NASA web search API through the lens of NewsAPI services.

First, you'll want to press `ADD NEW INSTANCE` within the Docker Playground. Then you can clone a git server which contains the relevant API information, and then change your directory over.

Next, we'll want to set up our file structure accordingly.

Run `cp dot.env.example dot.env`, which should create a dot.env file for you. Your file structure should look something like this:

![File structure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwjqsmhqm0c3y3d9nmly.PNG)

Then, go back to the main Docker screen and press the Editor button. Now, we need two pieces of information. First, the API key from NASA. And secondly, the public URL of the microservice. (This can be found by opening port 4000, or the equivalent, and then copying the link.) Once we have that information, we can switch back to the file structure tab and copy that info in.

![Next Steps](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y6yuwpi4okt7bafcmi12.PNG)

Having done so, we can run `docker-compose up` and view our results through both our front-end and back-end ports. Great job!

# Back End Work

Feel free to delve into the back-end as well! You can add /graphql to the end of the link when you click your back-end link, and you'll be taken to the GraphQL sandbox where you can do things like run manual queries!
Laravel: Use Increment IDs , UUIDs, ULIDs as primary key or optional field for the Eloquent model
Tags: laravel, webdev, beginners, writing
Published: 2022-05-01 10:11:13

I think out there are too many posts that talk about this but If you see this post. Thank you for reading. I just want to share my journey and experience with it 🧐.

In the beginning, I have no idea about the pros and cons of the UUIDs and ULIDs. I know it is an idea that helps us hide the increment IDs from the end-user who can not guest it 🐣.

So, I finish all the steps on the tutorial through the internet. Or maybe my English is not good enough to understand deeply the idea 🤯.

After I use it for a few projects and practice it. I will tell you about it and I want to challenge myself to write a blog like 
a habit.

## Use Increment IDs , UUIDs, ULIDs

I think for the beginner you should not use it except that you must need it in the project for some reasons like hiding increment IDs, distributing database, big data...

Because I saw that it makes your DB bigger for the space, slower query, and inconvenience when we use other libraries.

👉 The answer is which one you feel happy when you work with and keep it simple that use Increment IDs

## Use UUIDs, ULIDs as Primary key or Optional field

I will write down my experience and my suggestion when I use it then you guys can decide 🤓 on your project.

In the beginning, I use it as the primary key of the table. Everything is good except I need to custom the migration of the lib when I use third-party libs. But I think we will deal with some issues like slow query because I used to query chunk the table so we need to keep one field in order like the increment IDs. The disk space will be bigger compared with the Increment IDs.

Now, I think I will use the UUIDs, ULIDs like the optional field. Because we can keep the default structure of the eloquent model and we can have another unique field to adapt to the small requirement of the project.

In the end, We should use the thing in the project scope.
Can't connect Bluetooth neckband in Ubuntu 22.04.
Tags: discuss, help, ubuntu, linux
Published: 2022-05-01 10:08:16

I've been using the Neckband ZEB Evolve -  A wireless Neckband earphone by Zebronics. I've bought it through Amazon. It worked fine with my Phone and my Windows operating system. But when it comes to Linux, It didn't connect. I tried many times but I failed. I am using Ubuntu 22.04. I can't come up with a solution. I am stuck spending ₹829 ( 10.83 United States Dollar ) on a Neckband and.. Well I am trapped!

_Please help me if you know how to solve this issue, I beg your pardon *crying*_
Python Project Ideas 2022
Tags: python, programming, tutorial, github
Published: 2022-05-01 10:05:24

Below is the list you can follow to build python projects that we change the way you code.

Follow all the project idea to be a better programmer.

##[Dice Rolling Simulator in Python](https://pythonscholar.com/python-projects/dice-rolling-simulator-in-python/) 
.
.
##[How to Make a Rule based Chatbot in Python using Flask](https://pythonscholar.com/python-projects/rule-based-chatbot-in-python-using-flask/)
.
.
##[How to Create Mad Libs game in Python](https://pythonscholar.com/python-projects/mad-libs-game-in-python/)
.
.
##[How to Extract Images from pdf in Python](https://pythonscholar.com/blog/extract-images-from-pdf-in-python/)
.
.
##[Mouse and Keyboard automation using Python](https://pythonscholar.com/blog/mouse-and-keyboard-automation-using-python/)
published >= 24 articles about food tech on Hackernoon
Published: 2022-05-01 03:54:19

Time flies and during last few years i was able to build cool collection of articles. While I didn't finish and I have much more to say, probably I'll try to use more systematic approach for building articles. instead of doing some long piece that exploring a few different things inside - I'll prepare a quick version and publish it. It makes me happy and motivate to move forward. I think I still have a content for another 10 articles that can be published without killing myself.


If you interested to explore this topic, here is a list:
- https://hackernoon.com/introducing-a-simple-npm-module-for-food-measurements
- https://hackernoon.com/7-companies-with-recipe-apis-in-2022
- https://hackernoon.com/food-tech-stories-how-an-indian-ghost-kitchen-received-dollar5m-from-an-indonesian-investor-9s1l31ij
- https://hackernoon.com/food-tech-stories-why-meal-kit-delivery-business-has-great-potential-a91q313s
- https://hackernoon.com/food-tech-stories-the-secret-of-the-sustainable-food-system-4k1y3198
- https://hackernoon.com/food-tech-stories-how-sugarmate-helps-people-with-diabetes-b51g3111
- https://hackernoon.com/food-tech-stories-solving-food-waste-problem-with-the-help-of-ai-yn1j3wbw
- https://hackernoon.com/food-tech-stories-how-these-guys-built-a-multi-billion-dollar-family-business-vfp3tg5
- https://hackernoon.com/food-tech-stories-food-on-wheels-can-solve-last-mile-problem-xo4f3udd
- https://hackernoon.com/food-tech-stories-amazing-dahmakan-part-1-342c3u57
- https://hackernoon.com/food-tech-stories-amazing-dahmakan-part-2-0s1q3uit
- https://hackernoon.com/food-tech-stories-how-food-can-fix-your-depression-tg4w3y9t
- https://hackernoon.com/food-tech-stories-will-you-marry-me-cooking-robot-ey5v3y2z
- https://hackernoon.com/food-tech-stories-how-to-fail-food-delivery-startup-ymk3yvi
- https://hackernoon.com/food-tech-stories-yummy-trends-in-2020-887f3ysr
- https://hackernoon.com/food-tech-stories-how-walmart-is-growing-food-subscription-business-ko193y7z
- https://hackernoon.com/food-tech-stories-how-italy-fighting-with-food-waste-jvw3ytk
- https://hackernoon.com/food-tech-stories-will-amazon-go-grocery-improve-our-shopping-n2403ygn
- https://hackernoon.com/food-tech-stories-digital-transformation-of-restaurant-industry-fwk3yvj
- https://hackernoon.com/traditional-ukrainian-food-beginners-guide-6w27329i
- https://hackernoon.com/what-is-meal-planning-uw1i3y8f
- https://hackernoon.com/junk-food-why-its-still-a-problem-ny36630mv
- https://hackernoon.com/junk-food-whats-inside-it-107ar30zv
- https://hackernoon.com/machine-learning-food-datasets-collection-fz5i130w0
What Skills Makes a Great Software Engineer?
Tags: discuss, programming, career
Published: 2022-05-01 09:50:37

Being a software engineer requires you to have many skills. In my career, I've had the pleasure of working with people from different parts of the world. They've all had diverse backgrounds and experiences 🌎. Some of them I've enjoyed working with, and some of them I have not.

## Skills That Make a Great Software Engineer

Recently I've been thinking about _why_ I like working with some more than others. I enjoy working with engineers who have these skills:

* 🙂 Friendly and easy to communicate with
* 👂 Listen to others and try to see things from other perspectives
* ✍️ Thorough in their work
* 👫 Team player, striving to put the team first
* 💪🤙 [Strong opinions, loosely held](https://www.google.com/search?q=strong+opinions+loosely+held&rlz=1C5CHFA_enSE1001SE1001&oq=strong+opin&aqs=chrome.1.0i512l2j69i57j69i59j0i512l2j69i60l2.2540j0j7&sourceid=chrome&ie=UTF-8)
* 👩‍🏫 Wants to learn
* 🙋 Asks a lot of questions

As you can see these are all **soft skills**. Who would you rather work with? Someone who's not that great of a programmer, but working to be, and is a team player. Or someone who's a "rockstar programmer" and doesn't listen to others?

There's an overflow of articles and blog posts about how to improve your technical skills. They are useful and you should read them, but the soft skills are _at least_ as important, if not more! Technical skills are easy to learn. Soft skills take time and might not come naturally (speaking from personal experience).

So now I'm curious, what skills do you think makes a great software engineer? 😊

Want to learn my 5 favorite habits for a software engineer? See [this post](https://dev.to/simeg/5-good-habits-of-a-software-engineer-3ocp).

---

_Connect with me on [Twitter](https://twitter.com/prplcode), [LinkedIn](https://linkedin.com/in/simeg), or [GitHub](https://github.com/simeg)_

_Originally published at [prplcode.dev](https://prplcode.dev)_
Day 1 - What is hoisting and how to prevent it in javascript?
Tags: javascript, interview, beginners
Published: 2022-05-01 09:47:41

## What is hoisting?

The default behavior of the javascript interpreter is to move variable and function declarations to the top. This behavior is called Hoisting. 

Take a look at the below code snippet!

```
console.log(x);
console.log(announce());
var x = 100;
function announce() {
  console.log('Hello World');
}

// Output :
// undefined
// Hello World
``` 

Note that, we are calling the variable 'x' and function 'announce' even before we are declaring it. In most languages, this would result in an error! 
But it works in javascript due to hoisting!
Now coming to the output itself, we see that the value of the variable is not printed but the function is executed properly. This is because, for variables, only the declarations are hoisted not the initialization. So we don't get an error while calling the variable before its declaration statement. But at the same time, we won't get the initialized value either. 

As you can see, clearly hoisting makes our code unpredictable because, even if a variable is assigned a value only once, its value is not the same throughout. Hence many developers don't prefer hoisting.

## How to prevent hoisting?

Javascript interpreter will hoist lines starting with ```var```  and ```function``` 
We can prevent hoisting by using ```let``` or ```const``` keywords instead like below.
```
let x = 100;
let announce=function() {
  console.log('Hello World');
}
```
 Hoisting will not take place for the above code since they don't start with ```var```  or ```function```. So if we try to access the variable 'x' or the function 'announce' before the declaration, we will get a ```not defined``` error.