teleren/devto huggingface dataset:
How to disable blur in child div
Tags: css, angular, javascript
Published: 2019-07-15 12:49:00

I have one div with background image which is blur and I have create child div with some content. Contents in child div is blur and I don't know how disable this.

html file:
```
<div class="home-div" id="img_container">
    <div class="row container slider">
        <div class="col-4 disable-blur">
            <p>some text</p>
        </div>
    </div>
</div>
```

css file:
```
#img_container {
    width: 100%;
    height: 70%;
    overflow: hidden;
    background: url('/assets/mbtownpanorama.jpg');
    background-size: auto;
    background-position: left;
    animation: back-and-forth 90s infinite;
    -webkit-filter: blur(5px); /* Safari 6.0 - 9.0 */
    filter: blur(5px);
  }

  @keyframes back-and-forth {
    0% {
      background-position: left;
    }
    50% {
      background-position: right;
    }
    100% {
      background-position: left;
    }
  }

  .disable-blur{
    filter: blur(0)!important;
    -webkit-filter: blur(0)!important; /* Safari 6.0 - 9.0 */
  }
```
Could not fine vscode api to create like 'SCM working tree'
Tags: help, vscode, vscodeextentions
Published: 2019-07-15 12:46:16

---
title: Could not fine vscode api to create like 'SCM working tree'
published: true
tags: help, vscode, vscode-extentions
---

I like to create to window like 'SCM working tree' window which appears in git changes

I need help with vscode api because I could not find it

please let me know if you know the vscode api or how to create it 

thanks
Alan Turing to Feature on New £50 Note
Tags: news, lgbt, history, turing
Published: 2019-07-15 12:35:44

> Second World War codebreaker Alan Turing will be the face of the new £50 note, the Bank of England announced on Monday.
>
> The renowned mathematician, considered to be the father of the modern computer and credited by Winston Churchill for making “the single biggest contribution to the allied victory” in the Second World War, will adorn the latest version of the UK’s highest-denomination banknote which is expected to enter circulation in 2021.
>
> -- [Independent.co.uk](https://www.independent.co.uk/news/business/news/alan-turing-new-50-pound-note-who-bank-england-release-date-a9005066.html)

In 1952, Turing was infamously accused of -- and convicted for -- "gross indecency" for homosexual acts. He was given a choice between prison or chemical castration and chose the latter. Two years later, at age 41, he committed suicide with cyanide.

Despite repeated petitions, the U.K. for a long while refused to pardon Turing...

> A posthumous pardon was not considered appropriate as Alan Turing was properly convicted of what at the time was a criminal offence. He would have known that his offence was against the law and that he would be prosecuted. It is tragic that Alan Turing was convicted of an offence that now seems both cruel and absurd—particularly poignant given his outstanding contribution to the war effort. However, the law at the time required a prosecution and, as such, long-standing policy has been to accept that such convictions took place and, rather than trying to alter the historical context and to put right what cannot be put right, ensure instead that we never again return to those times.
>
> -- [U.K. Justice Minister Lord McNally](https://en.wikipedia.org/wiki/Alan_Turing#Government_apology_and_pardon)

...though they eventually relented and [Turing was officially pardoned by Queen Elizabeth II on 24 December 2013](https://www.bbc.com/news/technology-25495315).
JavaScript: Creeping into this (Exercise)
Tags: webdev, javascript, es6, beginners
Published: 2019-07-15 12:30:21

---
title: "JavaScript: Creeping into this (Exercise)"
published: true
description: "For each exercise try to guess the output. What this points to, and more important, why? (Assuming the code is running in a browser)."
tags: webdev, javascript, es6, beginners
---

For each exercise try to guess the output. What `this` points to, and more important, why? (Assuming the code is running in a browser).

Ex. #1:

```js
function outer() {
  const arrow = () => console.log(this);
  arrow();
}

outer();
```

Ex. #2:

```js
function outer() {
  const obj = {
    init: () => console.log(this)
  };

  obj.init();
}

outer();
```

Ex. #3:

```js
const obj = {
  nested: {
    init: () => console.log(this)
  }
};

obj.nested.init();
```

Ex. #4:

```js
const object = {
  init: function() {
    (() => console.log(this))();
  }
};

object.init();
```

Ex. #5:

```js
const object = {
  init: function() {
    setTimeout(function() {
      const arrow = () => console.log(this);
      arrow();
    }, 5000);
  }
};

object.init();
```

Ex. #6:

```js
const object = {
  init: function() {
    setTimeout(function() {
      fetch("https://jsonplaceholder.typicode.com/todos/").then(function() {
        const arrow = () => console.log(this);
        arrow();
      });
    }, 5000);
  }
};

object.init();
```

Ex. #7:

```js
const object = {
  init: function() {
    setTimeout(function() {
      const object = {
        whoIsThis: function() {
          console.log(this);
        }
      };
      object.whoIsThis();
    }, 5000);
  }
};

object.init();
```

Put your solutions in the comments below!
Journey to My New Career: Setting Goals
Tags: productivity, webdev, beginners, career
Published: 2019-07-15 12:15:13

##New Week === New Start###

As I am reviewing this post before publishing it, it is a lovely Monday morning and I am more than ready to get this week underway with <a href="https://dev.to/ryan_furrer/journey-to-my-new-career-learning-practicing-29dp">learning & practicing</a> more and more skills. Knowing last week was going to be busy I didn't set too many goals but I <em>did</em> achieve the following:

<ul>
<li>Learned CSS Grid</li>
    This does not mean I am an expert but we'll talk more about that later. What it does mean is that I feel comfortable in writing the code and using it properly.
<li>Wrote My 2nd Blog Post</li>
    This might seem like more of a task than a goal, however, I am trying to learn the habit of writing these blogs. I enjoy them and <em>want</em> to write them, however, finding the time to do so occasionally is a bit tough.
<li>Find A Mentor</li>
    In moving forward in my coding, I wanted to find someone that I could depend on to be there for me. The only time I've had a mentor before was one of my best Viola teachers (I was a musician before exploring code) and I did some of my best growth while under them. Having a mentor is a widely advised thing in this community so I went on <a href="https://codingcoach.io/">Coding Coach</a> and reached out to someone I thought would be a good fit for me and vice-versa. We spoke for about 45 minutes this past Thursday and I am now happily a mentee.
</ul>

I wish I had more time last week but life happens. What're you gonna do?

![](https://thepracticaldev.s3.amazonaws.com/i/en504by2ohl30wqgpehx.jpg)

##This Week's Goals##

I've only set a few for this week. Not because I'm busy, but because one of them is quite broad:

<ul>
<li>Rework <a href="https://www.ryanfurrer.dev/">My Site</a> With CSS Grid</li>
    This is more for practice than anything else. I plan to use CSS Grid & Flexbox moving forward for creating responsive sites as much as possible.
<li>Finish At Least 3 Courses In My Treehouse Track</li>
    I've slacked a bit in the learning department...particularly JavaScript and I want to get back on that. I've got to finish my current course as well as complete the next two. Those, in order are:
    <ul>
    <li>JavaScript Loops, Arrays, and Objects - <em>87 min</em></li>
    <li>JavaScript and the DOM - <em>3 hours</em></li>
    <li>CSS Selectors - <em>2 hours</em></li>
    </ul>
</ul>

##Wrapping Up##

I think it's important to set weekly goals for yourself no matter what you are doing - these are just my coding goals! I've also got weekly life goals such as going to the gym 3 times this week, read at least 4 nights this week, etc. What are some of your goals? I'd love to hear from you down below or on <a href="https://twitter.com/ryanfurrer_dev">Twitter</a>.

Thanks so much for reading and have a great week all!
The Ultimate List of .NET Conferences
Tags: conferences, net, developer
Published: 2019-07-15 11:58:37

---
title: The Ultimate List of .NET Conferences
published: true
description: .NET conferences is where you can meet other developers and learn about .NET tools and best practices from the best developers in the community. Below is my ultimate list of the greatest .NET conferences in Europe and USA.

tags: conferences, .net, developer

---

.NET conferences is where you can meet other developers and learn about .NET tools and best practices from the best developers in the community. Below is my ultimate list of the greatest .NET conferences in Europe and USA.


---

## DevTernity (🏅 Top 3 in Europe)

**Audience**: .net developers, architects ·  **Location:** Riga, Latvia · **Date**: 3–4 December 2020

[![Conference](https://avatars.io/twitter/devternity)](https://devternity.com)

**[DevTernity](https://devternity.com)** is the top 3 international software development conference in Europe. Located in the heart of Europe, in a beautiful city of Riga, this well-organized conference focuses on the core skills paramount to your success – code design, software architecture and leadership. Organizers promise no agile bulsh\*\*t or marketing talks. **This is a must-see event!**


**[See the full list](https://sizovs.net/conferences/dotnet/)**
The Ultimate List of DevOps Conferences
Tags: conferences, devops, developer
Published: 2019-07-15 11:18:46

---
title: The Ultimate List of DevOps Conferences
published: true
description: DevOps conferences is where you can meet other developers and learn about DevOps tools and best practices from the best developers, DevOps and SRE engineers. Below is my ultimate list of the best vendor-independent DevOps conferences in Europe and USA.

tags: conferences, devops, developer
---

DevOps conferences is where you can meet other developers and learn about DevOps tools and best practices from the best developers, DevOps and SRE engineers. Below is my ultimate list of the best vendor-independent DevOps conferences in Europe and USA.


---

## DevTernity (🏅 Top 3 in Europe)

**Audience**: devops engineers, developers, architects ·  **Location:** Riga, Latvia · **Date**: 3-4 December 2020

[![Conference](https://avatars.io/twitter/devternity)](https://devternity.com)

**[DevTernity](https://devternity.com)** is the top 3 international software development conference in Europe. Located in the heart of Europe, in a beautiful city of Riga, this well-organized conference focuses on the core skills paramount to your success – code design, software architecture, and leadership. Organizers promise no agile bulsh\*\*t or marketing talks. **This is a must-see event!**


**[See the full list](https://sizovs.net/conferences/devops/)**
Almost 1 year experienced but feeling like beginner in programming
Tags: career
Published: 2019-07-15 11:12:54

First of all , I work at this company as fresh graduate and all things need to be research by me. And also I work  alone as there is no senior guide to me. But recently there is a new task to be done & I fail to do it.

I dont know whether I am stupid enough not able to think & solve like basic programming. Its like your mind have something that is blocking from thinking.Dont know why.
Stranger Things Intro
Tags: codepen, webdev
Published: 2019-07-15 10:48:55

<p>Source also available on Github, with more information: <a href="https://github.com/wbobeirne/stranger-things" target="_blank">https://github.com/wbobeirne/stranger-things</a></p>

{% codepen https://codepen.io/wbobeirne/pen/pEjqGR %}
Favorites: Advice to junior developers
Tags: career, beginners, codenewbie
Published: 2019-07-15 10:38:33

I've read a lot of articles advising junior developers on how to be successful in this field. When I can I usually write them down or try to keep in my head.

So here are my favourite pieces of advice in no particular order:

1. Questions are good, so is asking for help.

2. Break it down and break it down some more.

3. Communication is key.

4. Think like the end-user.

5. Read books about the career besides learning the tools, language or framework, programming is not about writing code only. 

6. Find a mentor.

7. Take charge of your progression.

8. Keep it simple.

9. Learn how to write clean code.

10. Learn how to read code.

11. Error messages are your friends.

12. Exercise.

13. Focus on the basics.

14. When you go to a meeting, always bring a pen and paper.

15. Stop wondering when you will graduate from being a junior, you'll know it when you're out of it.

16. Embrace change. Nothing is permanent.

17. Interviews are unfair. Don't let them demotivate you.

18. You can become a great developer even if you spend your nights and weekends doing other things. Be focused, make those work hours count, and then leave your office and spend your free time out in the wider world.

19. Contribute to open source.

20. Write a blog.
The Wasteland of Wordpress
Tags: discuss, wordpress
Published: 2019-07-15 10:02:42

---
title: The Wasteland of Wordpress
published: true
description: My experience setting up my sites
tags: discuss, wordpress
---

In our latest episode I go off on a bit of rant about the landscape of Wordpress. There are a lot of great things in Wordpress, but they are hidden in a wasteland of garbage. I promise to create an introduction at some point -- in the meantime, there's a [practical video guide](https://www.youtube.com/watch?v=2cbvZf1jIJM).

We talk about my experience building new sites, including the world of affiliate links.

{% podcast https://dev.to/edaqa-and-stephane-podcast/22-wastelands-of-wordpress-and-the-birth-of-pubops %}

If you've used Wordpress, what is your experience with it?
TypeScript Tutorial - Use "as const" to export colors!
Tags: tutorial, typescript, css, jsx
Published: 2019-07-15 08:39:26

---
title: TypeScript Tutorial - Use "as const" to export colors!
published: true
tags: tutorial, typescript, css, jsx
series: TypeScript Tutorials
description: Advanced typescript tutorial - Use as const to export really const objects
---

Hello, This is the fourth article of the advanced typescript tutorial series. Today I'll cover small usage of 
```typescript
as const
```

Imagine you have some colors defined:

```typescript
const Colors = {
  cherry: "#F9193F",
  mars: "#F19037",
  meteor: "#FFE3C8"
}
```

When you try to use them somewhere else TypeScript will show you type of the `Colors.cherry` is `string`. This is ok if we have 3 colors, but what if we have 50 colors with strange names? We can use new typescript `as const` or `<const>`:

```typescript
const Colors = {
  cherry: "#F9193F",
  mars: "#F19037",
  meteor: "#FFE3C8"
} as const
```

Now if we type `Colors.cherry` typescript will show us the real value of cherry color, which is `#F9193F` !
How not to miss small issues while coding?
Tags: discuss
Published: 2019-07-15 08:31:30

---
title: How not to miss small issues while coding?
published: true
tags: discuss
---

We all have faced it. Bugs are a part of the software development lifecycle. However, we sometimes miss some small things. For example: adding that null check where required or repopulating that cache after clearing it. 

TDD is an answer but I feel that it does not always help. 
Your views?
A fancy quantum gradient technique
Tags: quantumcomputing, machinelearning
Published: 2019-07-15 08:28:36

... and with this the list is finally complete

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

Check out the last video where I go through an intuitive explanation of a fancy gradient technique
freeCodeCamp's Pomodoro Clock project built in Elm
Tags: elm, freecodecamp, webdev, showdev
Published: 2019-07-15 08:22:52

---
title: freeCodeCamp's Pomodoro Clock project built in Elm
published: true
description: 
tags: elm, freecodecamp, webdev, showdev
cover_image: https://thepracticaldev.s3.amazonaws.com/i/lzfeoc6d7m324w07sqau.png
---

Yesterday I completed the [Pomodoro Clock](https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-pomodoro-clock/) project.

**Side note:** *It took me about 26 days to reach this point, i.e. to complete all 5 of the [Front End Libraries Projects](https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/) in Elm.*

Here's my [demo](https://dwayne.github.io/elm-pomodoro-clock/) and you can find the source code [here](https://github.com/dwayne/elm-pomodoro-clock).

I also share some of [my thoughts](https://github.com/dwayne/elm-pomodoro-clock#thoughts) (*about phantom types and application logic*) in the project's README.
Password change authenticate with sudo user.
Tags: bash
Published: 2019-07-15 08:13:59

Bash scripting is one of the commonly used scripting by Linux Admins. I have come across a case where I had to change root password of huge count of server's. Direct root login is disabled and authentication is via sudo user. I wrote a very simple "for" loop and it did the task. I want to share that with you and would be helpful for newbies passionate about shell script.

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

The serverlist contains the list of IP's whose password to be changed. The password was changed to a complex one and not merely PASSWORD. Beware of putting quotes "" and can put wildcards as you wish. The sudouser to be replaced with sudo account. 

With SSH, multiple options need to be provided as per the infra requirment. It can range from passing sudo password (Either with sshpass/expect utility) or custom ssh port or  disable host key checking..etc depends on how secure your infra is.  Here, I provided ssh command line option "-t" as requiretty(Commands execution required a terminal) is mandatory on all serverlist.

But above command was not fully automated. It was prompting for sudo password "[sudo] password for sudouser" and had to provide sudo password manually all the time.  It would have been easy if passwordless sudo was configured, but it is not the case most of the times. I break my head to pass sudo password with multiple options and ended in vain. Just provided "sudo -S", but was not working unfortunately. 

This script not working..

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

Any passionate shell scripters, I would really appreciate if any work around which make script fully automated...
Dependencies Check with Jenkins
Tags: jenkins, automation, updates, breakingchanges
Published: 2019-07-15 08:11:18

The wonderful [OWASP Dependency-Check Jenkins](https://wiki.jenkins.io/display/JENKINS/OWASP+Dependency-Check+Plugin) plugin has recently published an update introducing breaking changes for my pipelines.
So I have written a quick guide on how to upgrade your pipelines to fix those:

Original article here: https://medium.com/@Gr3g0ire/dependencies-check-with-jenkins-4e73c451cb34

After upgrading the plugin, create a new Dependency-Check installation in the Global tools configuration of your Jenkins instance:
new installation of Dependency-Check

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

We have a Jenkins job running every day which sole purpose is to update the NVD database.
As it was not a pipeline job we had to reconfigure it from the UI.

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

This job runs every day at 4 AM

Next we had to change all our pipeline script for checking and publishing results of dependencies checks:

- Checking

Changed from

    dependencyCheckAnalyzer datadir: ‘/home/jenkins/security/owasp-nvd/’, hintsFile: ‘’, includeCsvReports: false, includeHtmlReports: true, includeJsonReports: true, includeVulnReports: true, isAutoupdateDisabled: true, outdir: ‘build/owasp’, scanpath: ‘’, skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: ‘’, zipExtensions: ‘’

to

    sh(‘mkdir -p build/owasp’)
    dependencycheck additionalArguments: ‘ — project [project_name]— scan /home/jenkins/security/owasp-nvd/ — out build/owasp/dependency-check-report.xml — format XML — noupdate’, odcInstallation: ‘Dependency Checker’

- publishing results

Changed from

    dependencyCheckPublisher canComputeNew: false, defaultEncoding: '', healthy: '', pattern: 'build/owasp/dependency-check-report.xml', unHealthy: ''

to

    dependencyCheckPublisher pattern: 'build/owasp/dependency-check-report.xml'
Coworker conflicts
Tags: career, discuss
Published: 2019-07-15 08:06:09

Recently while doing interviews I had a behavioural interview and was asked "tell me about a time you had a conflict with a coworker".

Luckily this is a classic so I had an answer prepared, but it wasn't easy to think of one - is this normal? I think most devs are averse to conflict and are open enough to talk things through - is that right or is it my own personal experience?

If you're interested, the only times I could think of having a "conflict"
(conflict is a stretch here) was when my team were asked to build something quickly but with very vague requirements
Reliable football database Premier League season 2019/2020
Tags: footballdatabase, premierleague, footballapi, footballdata
Published: 2019-07-15 07:45:28

For a project that I am starting this summer, I need a reliable football database for the upcoming 2019/2020 English Premier League season. I have found different databases who can deliver the data I need, but I would like to hear peoples opinions about these sources. The APIs I've found are:

- [Football-Data.org](Football-Data.org)
- [SportMonks.com](SportMonks.com/products/soccer)
- [Football-Data.co.uk](Football-Data.co.uk)
- [API-Football.com](API-Football.com)

If you have any experience with using any of these websites, then I would love to hear your opinion!
Rust async await (1)
Tags: rust, async, await
Published: 2019-07-15 07:08:54

---
title: Rust async await (1)
published: true
description: Rust async await
tags: rust, async, await
---

Rust version:
```
rustc 1.38.0-nightly (69656fa4c 2019-07-13)
```

打开async/await的future:
```rust
#![feature(async_await)]
```

```rust
#![feature(async_await)]

async fn get()->i32 {
    println!("start");
    std::thread::sleep(std::time::Duration::from_millis(1000));
    1
}

async fn p() {
    let n = get().await;
    println!("n = {}", n);
}

fn main() {
    let fut = p();
    println!("called p");
    futures::executor::block_on(fut);
}

```

定义了一个简单的get函数，返回1

p里面调用get并打印1

async和JavaScript的类似，返回的是future(js的是promise)，所以在Rust里面我们还需要一个executor来Run这个future，这里我们future用的版本是: 
```toml
futures-preview = { version = "=0.3.0-alpha.17", features = ["compat"] }
```
主要原因就是async返回的是std::future::Future,而我们大部分三方库还是用的futures这个库，比如tokio，我们用tokio::run来试试会有个报错
```
  --> src/main.rs:21:5
   |
21 |     tokio::run(fut);
   |     ^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `impl std::future::Future`
   |
   = note: required by `tokio::runtime::threadpool::run`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `async-await`.

To learn more, run the command again with --verbose.
```

tokio::run 是给 futures::future::Future,但是我们 async 的是 std::future::Future

现在最大的问题就是三方库还没有支持std future，所以如果要用就得compat一下

```rust
#![feature(async_await)]

use futures::compat::Future01CompatExt;
use futures::future::{FutureExt, TryFutureExt};

async fn get()->i32 {
    println!("start");
    std::thread::sleep(std::time::Duration::from_millis(1000));
    1
}

async fn p() {
    let n = get().await;
    println!("n = {}", n);
}

fn main() {
    let fut = p().unit_error().boxed().compat();
    println!("called p");
    tokio::run(fut);
}

```