teleren/devto huggingface dataset:
ECS Fargate secrets management with AWS Parameter Store
Tags: devops, docker, aws
Published: 2019-07-11 15:55:34

I've got a node.js application which obviously has some secrets/configurations to be managed in a config file. I am considering the AWS Parameter Store option for passing the configuration to my Fargate Task Definitions as very nicely explained by @sagarjauhari in his third method of secret management in this post: https://dev.to/sagarjauhari/3-ways-to-handle-secrets-in-aws-ecs-tasks-2olb

I am just not able to grasp the idea that how would my application running inside the container would get these secrets like db passwords etc.

Does passing the SSM secrets to the Task Definition automatically makes these secrets available inside the container? If yes, where are these and how to access them within my application?
International experience: where do I start?
Tags: discuss, career
Published: 2019-07-11 15:36:30

---
title: International experience: where do I start?
published: true
description: 
tags: discuss, career
---

Hi! Please note that, despite what the title may suggest, this is not a post to advertize myself nor a “Please hire me!”-cry for help 😅 
Also, this may be a little off topic, but I am pretty sure that many of the community fellow devs are in my same situation and could use a piece of advice to point in the right direction!

I am currently working in Milan as a full-stack developer in a software develoment firm for Financial Services. The stack of technologies I deal with everyday is, in my opinion, pretty cool (we work with Spring and Angular 7) and I’ve had the chance to learn a lot since I started with them (about 6 months ago).
However, I have always looked at foreign countries with special consideration (at least, some of them!).
Even though I love my country, I feel like an overseas experience could significantly boost my career and enrich me from a cultural point of view, at the same time.

In this respect, I must say I feel a bit disoriented on where to start. I’ve narrowed the list of countries down to a few (UK/US/Canada/Spain, preference for big cities), but what is the next step?
Do I start networking (and how?)? Do I randomly send my resume to random companies? Should I give up everything and go for the adventure without thinking any further? :D

Feel free to share your advice or, even better, your experience :)
Issue building Vue app
Tags: vue, typescript
Published: 2019-07-11 15:21:44

Hi,

I have an application that I’ve been working on and have gotten to the point I want to deploy it somewhere rather than running it locally.

Locally, this runs fine `vue-cli-service serve` however, when I run `vue-cli-service` build I get build errors saying that it can’t find modules, basically every import to my own modules fails, for example…

```
<script lang="ts">
    import {Component, Vue} from 'vue-property-decorator';
    import MarketOpeningTimeBadge from "@/components/MarketOpeningTimeBadge";

    @Component({
        components: {MarketOpeningTimeBadge}
    })
    export default class MarketOpeningTimes extends Vue {

    }
</script>
```
Example Error…

```
 error  in C:/projects/Research and Development/daleellis/sentiment-investment/client/src/components/MarketOpeningTimes.vue

ERROR in C:/projects/Research and Development/daleellis/sentiment-investment/client/src/components/MarketOpeningTimes.vue
12:36 Cannot find module '@/components/MarketOpeningTimeBadge'.
    10 | <script lang="ts">
    11 |     import {Component, Vue} from 'vue-property-decorator';
  > 12 |     import MarketOpeningTimeBadge from "@/components/MarketOpeningTimeBadge";
       |                                    ^
    13 | 
    14 |     @Component({
    15 |         components: {MarketOpeningTimeBadge}
There are no issues when I run serve locally in regards to the application working, but I notice that also displays the errors in the console.
```

What do I need to do to resolve the build?

Thanks
```
"vue": "^2.6.10",
"vue-class-component": "^7.0.2",
"vue-property-decorator": "^8.1.0",
"vue-router": "^3.0.3",
"vue-socket.io": "^3.0.7",
"vuetify": "^1.5.5",
"vuex": "^3.0.1",
"vuex-class": "^0.3.2"
```
Best Practices for Using GitHub?
Tags: beginners, help, discuss
Published: 2019-07-11 15:10:57

Hello, Developer Friends! I have another newbie question. I am hoping to take on small coding jobs soon, fixing broken links, basic maintenance stuff, and I was wondering if it is ok to use gitHub for work projects. My initial feeling is that I should not use gitHub because it is an open source community, and I can see where that might be an issue for clients. I know that there is a private option where I can choose who sees and contributes to a project, but I still would like to know what best practices are. GitHub is a powerful tool and I am using it for all my personal projects.  I would like to use it on collaborative projects I might do for a start-up of freelance work. But if using it isn't considered ethical, or isn't done, what is useful and acceptabe for project management and integration?

Please let me know your thoughts!

Thanks!

Angie
How to write optional filters in SQL
Tags: postgres, sql, mysql
Published: 2019-07-11 15:05:35

---
title: How to write optional filters in SQL
published: true
description: A simple way to filter by optional values in SQL
tags: postgres, sql, mysql
---

## The problem

Let's say you have a rest API with the following endpoint that returns all of the books in your database:

```rest
GET /book/
```

Your SQL query might look like something like this

```sql
SELECT * 
FROM books
```

Sometimes you want to only list books, for example, from a specific author. How do we do this in SQL?

## Naive solution: String concatenation ✂

One way would be to concatenate your sql query something like this:

```js
const arguments = [];
const queryString = 'SELECT * FROM books WHERE true';
if ( authorFilter != null) {
  queryString  += 'AND author = ?';
  arguments.push(authorFilter);
}
db.query(queryString, arguments); 
```
I'm not much of a fan of manually concatenating strings.

## The coalesce function 🌟

Most Databases have the function `coalesce` which accepts a variable amount of arguments and returns the first argument that is not null.

```sql
-- Examle
SELECT coalesce(null, null, 'dev.to', null, '@TiimB') as example;

-- Will return 

example
---------
dev.to
```

But how will this function help us?

## Optional filters with the coalesce function

```sql
SELECT * 
FROM books
WHERE 
  author = coalesce(?, author);
```

If the filter value is null the coalesce expression will resolve to `author`
and the comparison `author = author` will be true.

If on the other hand the value is set for example to Shakespeare then the author will be compared to Shakespeare.


I came across this way to implement optional filters only recently. If you have a more idiomatic way to do this let me know please ✨

If you liked this post please follow me on here or on Twitter under [@TiimB](https://twitter.com/TiimB) 😎
Five things you didn't know you could do with Python
Tags: python, iot
Published: 2019-07-11 15:00:20

---
title: Five things you didn't know you could do with Python
published: true
description: Python: a large and terrifying snake OR the third most popular programming language. This week, Python (the language, not the snek) aficionado Nina Zakharenko joins us for Five Things that you didn’t know that Python can do
tags: python, iot
---

**What do you call a 3.14 inch long snake?**

A π-thon

You're welcome.

According to the [2019 Stack Overflow developer survey](https://insights.stackoverflow.com/survey/2019#most-popular-technologies), Python is now the third most popular language, edging out both Java and C#. It ain't JavaScript, but it's darn close.

I sat down with Nina Zakharenko to talk about five things that you probably did not know that Python could do. It's pretty much everywhere, you just don't realize it. Which would be terrifying if it was an actual snake.

{% youtube HNrMjH9Yuv4 %}

Links from the show...

* [Nina Zakharenko on Twitter](https://twitter.com/nnja)
* [Concordia Station](https://en.wikipedia.org/wiki/Concordia_Station)
* [Jupyter Notebooks](https://jupyter.org/about)
* [Super Potato Bruh](https://store.steampowered.com/app/951360/Super_Potato_Bruh/)
* [Home Assistant](https://www.home-assistant.io/)
* [Adafruit Circuit Playground Express](https://www.adafruit.com/product/3333)

Learn more at [https://aka.ms/5things-azure](https://aka.ms/5things-azure)

To watch more episodes go to [https://aka.ms/FiveThingsPlaylist](https://aka.ms/FiveThingsPlaylist)

Follow Hosts [https://twitter.com/burkeholland](https://twitter.com/burkeholland) and [https://twitter.com/John_Papa](https://twitter.com/John_Papa) on Twitter
Design Critique: Corey Alexander's Blog and logo
Tags: design, beginners, webdev, ux
Published: 2019-07-11 14:31:09

{% youtube PoQADLg6cSU %}

In this design critique, we'll take a look at [https://coreyja.com](https://coreyja.com) and talk a little more about contrast, spacing and minute details to really polish your design.

@CoreyJA's blog is a great design and I offer up suggestions to polish a few areas to take it from great to amazing!

More info on Corey:

{% user coreyja %}


Originally published here: [https://peerreviews.dev/videos/corey-alexanders-blog-and-logo-design/](https://peerreviews.dev/videos/corey-alexanders-blog-and-logo-design/)

If you're interested in getting your design, code or resumé reviewed, head on over to [PeerReviews.dev](PeerReviews.dev) to sign up for a review!


### Stay up to date with Bryan

If you want to stay up to date with all the content I'm producing, be sure to follow me here, but also on other platforms as well.

* [Twitter: @brob](https://twitter.com/brob)
* [YouTube for my videos](https://goo.gl/wCeu5C)
* [My Patreon for early updates](https://patreon.com/brob)
* [Watch or request a Design or Code Review at peerreviews.dev](https://peerreviews.dev)
A Brief Introduction To Me
Tags: introduction
Published: 2019-07-11 14:19:50

---
title: A Brief Introduction To Me
published: true
description: A little about who I am, what I do, and why I am starting to write
tags: introduction
cover_image: https://vignette.wikia.nocookie.net/camprock/images/6/63/Camp_Rock_2_-_Introducing_Me_%28HD%29/revision/latest/scale-to-width-down/300?cb=20170604004614
---


Hello! I just wanted to give you a brief introduction to who I am, what I do, and my purpose for starting to blog. 

My name is Dexter St Pierre. I am a web developer based in St Paul, MN. I currently do some freelance as well as I work as a contractor for a construction company working on various internal tools used for tracking work orders, income, hours worked, equipment, and various other things. I build full stack web apps using Javascript and have recently become very interested in the JAM (JavaScript, APIs, Markup) stack and wanting to learn more and build more websites for various companies using it. Coming from a background of physical labor (I learned coding at a bootcamp) I am excited to bring the great possibilities of web apps and great websites into the worlds of construction, landscaping, and real estate, industries that are still largely running on manual processes

I am starting to blog for a few different reasons. I want to remember the things I have learned. I have recently come to the realization that over the last couple of years I have been learning so much that I forget a good portion of it shortly after learning it, and I don't remember how I learned much of what I know. So I want to have a record of when and how I learned things for my own reference in the future. I also want to add to the collective pool of information that is the internet. I can't count how many times I have struggled with something for hours and had a hard time finding the answer readily available on Google. I want to help people coming after me to be able to more easily solve the problems that I have also struggled with.

I have never been a blogger before, so my posts on here may be fairly irregular, I might write three times in one week and then not write again for 3 months. But when I struggle through something or learning something new and exciting I will make a point to write about it and share it for the world. Thank you for joining me on this journey.
Google home devices listing in on you without permission, by third party contractors.
Tags: discus, google, tech
Published: 2019-07-11 14:09:15

---
title: Google home devices listing in on you without permission, by third party contractors. 
published: true
description: an article about a whistle blower at google that says google home devices are being listened in on by 3rd party contractors
tags: discus, google, tech
---
We’ve all been paranoid that our devices were listening to us when they shouldn’t be. 

But we surely didn’t think it was by 3rd party contractors. We may trust big companies like Google, Apple and Amazon to handle our personal data but no way would you trust your data with a 3rd party contractor you don’t even know. 

No one can prove what the 3rd party contractors are really doing with our data. On the google handshake they could look legit and google would never know but on the back side they would be selling off our info. 

What’s your thoughts on this. Check out the article and make a comment. 

https://thenextweb.com/google/2019/07/10/google-contractors-are-secretly-listening-to-your-assistant-recordings/
What should I do if an operation depends on another first variable
Tags: react, reacthooks
Published: 2019-07-11 14:04:40

What should I do if an operation depends on another first variable that is set by a setVariable (in the react hooks regard) in a `useEffect`.

This operation may set another second variable with the first variable.

I currently use another effect and check if the first variable is not `undefined` like

```
useEffect(() => {
	if (firstVariable) {
	    let secondVariable = f(firstVariable)
	}
}, [firstVariable])
```

Is it a bad pattern?
Is there a better way doing this?

Note: `f` is a hypothetical function defined somewhere else. It is jsut to show I am just not renaming the `firstVariable` but making arbitrary operations on it. What is the operations are out of purpose of this topic.
Alfred and Dash: improving your workflow
Tags: workflow, javascript, python
Published: 2019-07-11 13:49:46


![](https://thepracticaldev.s3.amazonaws.com/i/df3ag6nh960p09mgspc4.png)

## Alfred
> Alfred is an award-winning app for Mac OS X which boosts your efficiency with hotkeys, keywords, text expansion and more.

The above statement is taken directly from the [Alfred website](https://www.alfredapp.com/), but it only scratches the surface of what Alfred can do. Besides the search functionality, the ability to integrate with other applications is a real game changer for increasing your efficiency.
On it's own, Alfred is a Spotlight search replacement but it really shines when you add in the [Powerpack](https://www.alfredapp.com/powerpack/) allowing you to write your own workflows and integrate fully with other applications.

## Dash
>Dash is an API Documentation Browser and Code Snippet Manager.

Using Dash has been one of the biggest optimisations in my programming career. Being able to search through local copies of documentation and "cheat sheets" rather than opening a web browser and searching for what I'm looking for.
Not only does Dash store doc sets, it has the ability to store code snippets, which can be tagged to aid searchability. These code snippets can then be used in other applications thanks to it's autocomplete feature. This is really handy for storing code templates, letting you think about writing feature code and not boiler plate.

![](https://thepracticaldev.s3.amazonaws.com/i/r3iznozik729s35amodj.gif)

<figcaption>Example text expansion from Dash in VS Code</figcaption>

## Workflows
Workflows allow you to add cross application functionality to Alfred, enabling more complex tasks and allowing you to automate a number of repetitive tasks. There are a number of these available through the Alfred website but I'm going to be focusing on the [Dash integration](https://www.alfredapp.com/blog/productivity/dash-quicker-api-documentation-search/) as that's what I have found most useful.

![](https://thepracticaldev.s3.amazonaws.com/i/sa8vuvxvjc3g6hhtyf86.png)
<figcaption>The available Alfred Workflows</figcaption>

Provided you have the Alfred powerpack and Dash installed, the workflow is available in the preferences section of Dash.

After double clicking the Alfred icon, the workflow should install it's self.

## Customising your docsets

Under the Downloads section of the Dash preference pane, there are a number of both official and user contributed doc sets available for download. There is a handy search bar that allows you to search across all of the docsets for any particular set you're looking for.
Once installed, the keyword for searching a docset can be customised using the Docsets prefenence pane. The shorter the search term, the faster Alfred will recognise you're searching for a keyword within Dash.


![](https://thepracticaldev.s3.amazonaws.com/i/q2ineumdip1vjvp6qe2t.gif)
<figcaption>Quick Access React Documentation</figcaption>
component #2 - Card
Tags: react
Published: 2019-07-11 13:42:39

---
title: component #2 - Card
published: true
description: This is a part of *30 components / month* challenge.
tags: #react
---
{% codesandbox 7os51 %}

## What I have learned?

- CSS can be simply complex.
- How to make a wave effect.
- Using the *:not(:last-child) selector.
  
I feel like I'm a CSS pro here! LOL

## What are the main challenges?

  Different way of styling to the same element. I've tried to put a background as an inline style to the element so I can make the background dynamic since I have to pass a url link to that background rule and after that I create a class called `.card` and put it into that element and I've added some more rules such as background-size, background-cover and background-position to maintain the aspect ratio of the image regardless of the container width and height. And this is what happens when I try to inspect the problem using Chrome Devtools.

![Bug](https://thepracticaldev.s3.amazonaws.com/i/w7snq7ntuj5fckwqof63.png)


## Why am I doing this anyway?

- To learn.
- To have fun.
- To future Joimee (for reference).

Resources:
[React Today and Tomorrow and 90% Cleaner React With Hooks](https://www.youtube.com/watch?v=dpw9EHDh2bM&t=4520s)
[Hooks Reference](https://reactjs.org/docs/hooks-reference.html)



Salamat.
Just Keep Swimming
Tags: beginners, codenewbie
Published: 2019-07-11 13:31:26

In my desire to commit to 100 days of code, it was more a desire to actually do something for 100 days in a row that contributed to my skill building, and 100 days of code, seemed like a noble goal. It was not to build, or spend 'X' amount of time doing a particular task, just to be consistent. 

I'm not consistent, but I know that when I am, I am more successful. However, this desire for commitment, more specifically setting this goal of 100 days of code, has caused me to stall and stall early. I missed one day, two days, wrote about it, but didn't do anything else... here I am a week plus and no further progress. It's self defeating.  Do I mark day one... do I throw in the whole dang towel... do I just keep pushing on, ignoring the lack of progress?

Today... I'll move on. No need to concede failure. I'll make some progress. 
![GIF from Little Nemo - Dory telling Nemo, "Just Keep Swimming"](https://media.giphy.com/media/1sSWWMNnaZLlm/giphy.gif)
Daily Challenge #13 - Twice Linear
Tags: challenge
Published: 2019-07-11 13:21:08

---
title: Daily Challenge #13 - Twice Linear
published: true
series: Daily Challenge
description: Some more math programming to get prepared for the end of our second week of challenges, medium difficulty. 
tags: challenge
---

Hey, everyone. If yesterday was our rest day, today is the warm-up. 

We have another great challenge from [user g964 on CodeWars](https://www.codewars.com/kata/5672682212c8ecf83e000050):

>Consider a sequence `u`, where u is defined as follows:
1. The number `u(0) = 1` is the first one in `u`.
2. For each `x` in `u`, `y = 2 * x + 1` and `z = 3 * x + 1` must also be in `u`. 
3. There are no other numbers in `u`. 

>Ex: `u = [1, 3, 4, 7, 9, 10, 13, 15, 19, 21, 22, 27, ...]`

>1 gives 3 and 4. 3 gives 7 and 10 while 4 gives 9 and 13. This pattern continues as far you as allow it to.

>Your task is to create a function `dbl_linear` with a parameter of `n` that returns the element `u(n)` in an ordered sequence (excluding duplicates). 

Good luck! Let us know if you like these mathematical challenges and we'll stick with the trend.
***
_Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Come work on what matters, so you matter too.
Tags: bitcoin, tmsr, eulora, ada
Published: 2019-07-11 13:11:43

I'm part of TMSR - the place where well-thought Bitcoin innovation happens steadily, publicly, unfashionably and with inescapable, far-reaching consequences. From a new model of software development to a MMORPG and building up a working market for computer artists plus everything software and hardware in between, the focus is at all points on owning what you do and growing your knowledge and ability at a sustainable pace.

The programming language of choice is Ada (with a fully-documented rationale as to why Ada) but work with legacy code includes C, C++, Python, Lisp and potentially anything else really. 

Come work with me on things that matter, if you want to matter too. I write (and have been writing for a while) at http://ossasepia.com

Or come first for a chat on irc (freenode) in #ossasepia as I'm usually around!
Building a Quantum GAN
Tags: quantumcomputing, machinelearning
Published: 2019-07-11 12:59:00

Check out this playlist that walks you through my experience in learning how to build a Quantum GAN.

https://www.youtube.com/playlist?list=PLsedzcQz4wyVYICPQ8PLzfyrVi0xMpw4E

I'm only missing to understand how to build the Quantum Gradients part and I'll be done! I'ts been bit bumpy and almost gave up in my last video but I'm going to push till the end ;)
You Lot Are Great
Tags: appreciation, meta, fluff
Published: 2019-07-11 12:26:21

I've been looking through some older posts on my page, and am am just blown away by the volume and quality of discussion on this website, especially looking at it all at once.  Every time I throw up a simple question y'all come through with nuanced discussion, and I've learned something every single time.  Try that on Reddit.  (No, don't.)

These are some of my personal highlights:

{% link deciduously/typescript-before-javascript-4m13 %}
{% link deciduously/what-are-your-favorite-books-knk %}
{% link deciduously/how-do-you-use-github-4j56 %}
{% link deciduously/the-compile-to-js-zoo-3n90 %}
{% link deciduously/what-planning-tools-do-you-use-10dp %}
{% link deciduously/eli5-useful-unit-testing-1gon %}
{% link deciduously/jquery-footguns-65f %}
{% link deciduously/eli5-why-self-host-a-compiler-hll%}

Seriously, ask DEV something.  It works, and nobody bites.  Have any of your posts generated some surprisingly good discussion?  Show me, I'd like to take a look!

Photo by Antenna on Unsplash
I need a friend  => We can work together on a project in Laravel and vue js in my GitHub repo
Tags: laravel, vue, javascript, es6
Published: 2019-07-11 12:22:49

---
title: I need a friend  => We can work together on a project in Laravel and vue js in my GitHub repo
published: true
description: 
tags: #laravel #vuejs #javascript #es6
---

I need a friend developer