teleren/devto huggingface dataset:
Wash Off the Brainwashing
Tags: devdev
Published: 2020-02-09 23:48:13

---
title: Wash Off the Brainwashing
published: true
description: We have a few minds to deprogram. 
tags: #devdev
---

Without a Process
=================

It is a falsity. The story goes that for every goal there is a Process that can be followed to accomplish it. Once you learn it you are good to go and be a success. There are various games and takes on this old lie.

At a meta-level:
- Learn the system.
- Get into the skin of it. 
- Wear it out. 
- Win the game
- Game the system

At a deeper level there is an insight - there maybe goals that have no process ("...Yet!" the proceduralists may baulk)) 

Is there a manual for leadership (social EQ with executive skills) and problem solving skills that one can learn and practice to get good at following a process that would lead one out? Could that be perfected?

The simple answer here is that there is no process for that goal.


No way out
==========
Two reasons explain why that is so. First, problems that require diffuse thinking and insight are not the type that can be perfected. They are mutually exclusive types of problems. One can get good at it but the goal for these is not perfection. When methodless action is required, the proceduralists would fail. Not just that, the world has shown, so far, that method monkeys are actually trying to through every stick and stone in the Work.

*The Second Reason*

There are problems that require new processes and there may be people who can define novel processes and find fluidly intelligent solutions. So you never know which problems are solvable and which ones are not before you have tried and failed a number of times or solved it. While the route to a potential solution exists prior to the solution there is no knowledge of how to get there. 
There is also no godprocess that would solve every problem of any conceivable type. 


Process vs Mindset
==================

Beyond compliance to the process and carrying out the know-how in practice there must be something that makes revolutions in thinking, and emoting and running the world at any scale. 
The answer is a different mindset. 

“The significant problems we have cannot be solved at the same level of thinking with which we created them.”

― Albert Einstein 

The problems of today cannot be solved with the mindset of today.

The mindset that applies metacognition makes it possible to meta learn.
To be open to solving problems with the thought frameworks that do not exist as of yet. To be open to assuming other thinking models. These are the requirements for deprogramming from the thought model of the proceduralist. 

Open the mind.
Open the bridge or take a leap between Process and the Mindset.

Where we go from here is up to you.
Create a D3 Bar Chart with Different Width Bars
Published: 2020-02-08 15:29:51

---
title: Create a D3 Bar Chart with Different Width Bars
published: true
description: 
tags: 
---
Recently, I was asked to develop a bar chart in D3.js. No big deal, right? I have been writing D3 charts for about 6 months and have really enjoyed bringing data to life in applications for end users to consume. D3 has excellent documentation and even better examples that I have used to learn how to build these charts. The problem I ran into with this particular bar chart is the requirements were unlike the past charts. The bars would not be neatly and equally divided amongst the width of the chart and the x axis using scaleBand() function. These particular bars would have varying widths and the total of the bars would equal the max value of the x axis.

I couldn't find any examples that made sense for me, so I tried some things on my own. I used a linear scale for the x axis and set the width of each bar, but the bars were overlapping. After some deep thought and Google-fu, I came across a StackOverflow post that helped get past my mind block. I have to calculate the x attribute of each bar! Aha!

Instead of a lengthy explanation of how and why this works, here is my code example of a bar chart with bars of varying widths https://github.com/amberwebb/d3-charts/blob/master/src/BarChart/index.js

Pay attention to the x attribute. This function takes all of the values (starting from 0) and calculates the x value of each bar. The bars retain their own widths, no overlapping and the total of the bars equals the max value of the x axis. Requirements met!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pf8mlhchob2quk1ejpmz.png)
Difference between for...in and for...of 
Tags: javascript
Published: 2020-02-09 22:58:14

##For...of

For...of loops are used to loop through the values of iterable objects: 
-Arrays
-Strings
-Maps
-Sets
-Generators
-Dome node collections
-The arguments object

[![Image from Gyazo](https://i.gyazo.com/c68b6742d72bf3fd94c1e0a51b372c7a.png)](https://gyazo.com/c68b6742d72bf3fd94c1e0a51b372c7a)

##For...in

For...in loops are used to loop over the properties of an object, such as object keys or array indexes.

[![Image from Gyazo](https://i.gyazo.com/6f703fe34d71ee1e126c19dd9689f1dd.png)](https://gyazo.com/6f703fe34d71ee1e126c19dd9689f1dd)
Flask Buddy - simple Flask App management.
Tags: python, webdev, opensource, management
Published: 2020-02-09 22:54:49

fluddy is an effective, lightweight and dependency-free command-line utility for managing, launching, updating and creating Flask Apps.



Flask is fast becoming the most popular web development framework for Python. Developers will typically manage multiple Flask apps individually where each app will rely on its own virtual environment - this can become time consuming when launching and updating multiple Flask Apps in development.

Flask Buddy (fluddy) allows developers to launch and update their individual Flask Apps through a simple Command-Line Interface. CLI functionality also allows developers to create a launchable 'Hello from Fluddy' Flask App and to add previously created Flask Apps to fluddy for painless launches and updates.

https://github.com/jakedent/fluddy

https://pypi.org/project/fluddy/
Web Accessibility Conf coming in April!
Tags: a11y, web
Published: 2020-02-09 22:05:27

Web Accessibility focuses on designing, architecting and building digital assets for those that require a11y standards to get the most out of their web or mobile experience. Learn from experts in the field how best practices, methods, and tools can make sure your website is ready to serve visitors of all abilities. [Web Accessibility Conf](https://webaccessibilityconf.com/) takes place on April 1, 2020 in New Orleans, and is part of a three day event around UI Architecture - [UI Architecture Conf](https://uiarchconf.com/).

Come join community experts such as:
[Scott Hansleman](https://twitter.com/shanselman)
[Homer Gaines](https://twitter.com/imAtTheEvent)
[Lindsey Wild](https://twitter.com/stananick)

speak on topics ranging from accessibility fundamentals, tools for a11y, and practices to ensure accessibility in your products. Check out full details on the website: [Web Accessibility Conf](https://webaccessibilityconf.com/)
Quick Python: List Files Recursively
Tags: python
Published: 2023-01-06 01:39:46

---
title: Quick Python: List Files Recursively
published: true
date: 2020-02-09 22:31:44 UTC
tags: Python
canonical_url: https://brandonrozek.com/blog/recursivelisting/
---

In order to add website files into a Flask application using setuptools, I needed to recurse down several directories and grab HTML and CSS files.

This Python tip will show you how to get a list of files recursively.

First in order to solve this problem, we’re going to recursively get a list of directories.

```
from glob import glob
directories = glob('/path/to/directory/**/', recursive=True)

```

Now we will go in each directory and grab the files,

```
data_files = []
for directory in directories:
    data_files += list(filter(lambda x: x + '/' not in directories, glob(directory + '*')))

```

For setuptools, you would want the `data_files` variable to be a list of tuples with module names and the files associated with them.

Complete script:

```
data_files = []
directories = glob('path/to/files/**/', recursive=True)
for directory in directories:
    files = list(filter(lambda x: x + '/' not in directories, glob(directory + "*")))
    data_files.append((directory, files))

```

For setuptools don’t forget to `include_package_data`!
How to Find a Work From Home Job
Tags: career, productivity, whoishiring
Published: 2020-02-09 22:26:38

**Subscribe to my email list now at http://jauyeung.net/subscribe/**

**Follow me on Twitter at https://twitter.com/AuMayeung**

**Many more articles at https://medium.com/@hohanga**

**Even more articles at http://thewebdev.info/**

With the Internet being as fast and ubiquitous as it is, work from home jobs is becoming more and more common.

Finding work from home jobs is hard because of all the competition. However, there're ways to increase the chance of getting one.

# Companies That Hire

Many work from home jobs start from the office and aren't advertised. Work from home jobs take lots of trusts. Therefore, since you're producing results at your company, it's worth a try to ask your boss if work from home is possible.

If that's not possible, then you need new leads. You can browse job listings at job boards. Also, it's a good idea to network online. A website like this one has lots of people so it's easy to network here by blogging and replying to comments.

You can also do the same thing on any social media network.

# Be Flexible

It's worth considering any type of job including full time, part-time, freelance or contract when looking for work from home jobs.

You may consider building a business around contracting and freelancing instead of looking at remote full-time opportunities. Your presence online especially helps when it comes to building an online business.

# Job Sites

Jobs sites have some jobs, but they have lots of competition, so applying a lot is a must. Good keywords to search for include "work at home", "telecommute", and "freelance".

# Applying

Applying takes time. Full time and part-time jobs require cover letter and resume. If you want to contract or freelance, you may need a send a sales pitch to your prospects.

# Interviews

Like on-site jobs, you'll have to interview for the person that you'll work for to get the job.

But it's like done online with videoconferencing instead.

# Avoiding Scams

If it's too good to be true, then it probably is. No experience and lots of money are probably not a possible combination.

Also, never send money to anyone. Whoever is hiring you should send money to you after you're hired.

Be careful and research online for the reputations of the companies on Glassdoor to get a clearer idea.

# Conclusion

As long as you're flexible, the opportunities are there. It's time to think out of the box and get the work from home job you wanted. Because the alternative is traffic, rush hour, and waking up early in the morning.
Cohort 3 Recap
Tags: collablab, juniordevelopers, earlycareerdevelopers, webdev
Published: 2020-02-09 22:24:30

---
title: Cohort 3 Recap
published: true
description: Collab Lab’s 3rd cohort wrapped up today. They’re awesome and you should hire them! 🙂
tags: collablab, juniordevelopers, earlycareerdevelopers, webdev
---

Something we’re quickly learning at The Collab Lab is that every cohort we run is different. It makes sense! Each is a unique collection of participants and mentors with different strengths and weaknesses. The _other_ thing we’re quickly learning is that every cohort is amazing in their own way!

TCL-3 got off to a somewhat rocky start. We had 2 participants drop out after the first week and had to scramble to fill the spots. Luckily, we found 2 amazing people to make the group complete again!

[This cohort](https://the-collab-lab.codes/about-us/#cohort-3) ended up composed of the following lovely people: Amber Jiles, Mike Ramirez, Monica Johnson, and Nikema Prophet. The mentors were Lars Brekken, Stacie Taylor-Cima, & Steve Gardner.

![TCL-3 on our weekly sync call](https://the-collab-lab.codes/assets/img/devto/tcl-3.jpg)

What made _this_ cohort stand apart was their tenacity.

The Collab Lab is structured such that the 4 developers pair off each week to take on 1 story from the backlog over the course of the 8 weeks. A couple of weeks in, we fell behind on keeping that pace. We talked as a group about the situation and decided not to extend the project, but rather chose what scope was highest priority and focused on getting that done within the original 8-week plan.

The group decided to [mob program](https://en.wikipedia.org/wiki/Mob_programming) the last week, assigning leads for the 2 tasks they wanted to accomplish. Monica and Nikema stepped up into those leadership roles and did great jobs at it!

Other examples of overcoming adversity and going above and beyond from this group include the following:

- Monica working from a shared laptop (not even sure how she managed that!)
- [Nikema blogging](https://dev.to/nikema) consistently throughout the project about what she was learning
- Mike sharing his experience as a tech recruiter with Nikema and others
- Hitting the Firebase query limit (which, to be fair, has happened to every cohort so far!)
- Nikema and others proactively finding bugs in the app and filing issues
- Nikema, in particular, submitting refactor PRs a couple of times during the course of the project
- Working around a fair bit of travel from the group; Mike went to Germany over the Christmas holiday; Steve, Stacie, and Andrew all had a work retreat smack in the middle of it all
- At least 1 participant and 1 of the mentors were almost brand new to React, so they had to learn doubly fast!

One of the things I love on our weekly calls is when our kids “disrupt” the call. Several of us in this group are parents, which occasionally leads to adorable moments like the following (skip ahead to the 11 minute mark)…

{% youtube zkMbD8i4znI %}
Azure: Passing status messages and results back from Databricks to ADF
Tags: databricks, azure, etl
Published: 2020-02-09 22:01:49


When we use ADF to call Databricks we can pass parameters, nice. When we finish running the Databricks notebook we often want to return something back to ADF so ADF can do something with it. Think that Databricks might create a file with 100 rows in (actually big data 1,000 rows) and we then might want to move that file or write a log entry to say that 1,000 rows have been written.

So, in the Notebook we can exit using `dbutils.notebook.exit('plain boring old string')` and in ADF we can retrieve that string using `@activity('RunNotebookActivityName').output.runOutput`, that is runOutput, in this case, will be "plain boring old string".

Now, sometimes we want to do more exciting things like return a few pieces of information like a file name and a row count and while you could do something yucky like: `dbutils.notebook.exit('plain boring old string, some other value, yuck, yuck, and yuck')` and then do a string split somewhere else down the line. Now, we can do better than this - there is a quirk of ADF, I won't say feature because if it was intentional then it is the only feature of ADF that isn't completly underwhelming. If we return JSON data in our string, ADF thinks that it is an object that we can query:

```
dbutils.notebook.exit('{"an_object": {"name": {"value": "exciting"}}}')
```

In ADF we can retrieve "exciting" using:

```
@activity('Run Notebook - JSON Response').output.runOutput.an_object.name.value
```

Now that is exciting, imagine if we had a dataset we wanted to return, we could use:

```
dbutils.notebook.exit(spark.sql('select id from range(100)').toJSON().collect())
```

** NOTE there is a 2 MB limit here so don't go over that **

This got me wondering what else we can do, how about returning a list?

```
dbutils.notebook.exit(['first', 'second', 3])
```

Wouldn't you believe that works like a charm?

```
@activity('Run Notebook - String List Response').output.runOutput[2]
```

I then wondered what would happen with a dict, now at this point I was beyond excited for what might happen:

```
dbutils.notebook.exit({'a_value': 'yo yo'})
```

However, ADF didn't like that, not one bit so returning a dict failed - however all is not lost, if you need to return a dict then you can use `json.dumps()` and we already know we can access a JSON string as an object in the output of a notebook.

Hope it helps, this part `.output.runOutput.` alone took me a little while to find out so hopefully no one else has to waste their time fiddling with ADF and notebooks.
AWS Heroes united!
Tags: aws, lambda, serverless
Published: 2020-02-09 23:45:10

---
title: AWS Heroes united!
published: true
date: 2020-02-09 22:01:26 UTC
tags: AWS,Lambda,Serverless
canonical_url: https://theburningmonk.com/2020/02/aws-heroes-united/
---

So I have some exciting news for you!

I have teamed up with my good friend and fellow AWS Serverless Hero, [Ant Stanley](https://twitter.com/IamStan), to launch my **Production-Ready Serverless workshop** on his brand spanking new training platform [Senzo](https://www.senzo.io/).

We’re running a 2-day workshop in London on March 16th & 17th, you can learn more about the workshop [**here**](https://www.senzo.io/class/production-ready-serverless-yan-20200318-ldn?source=monkblog). Early bird tickets are available until the end of February. The word on the street is that other AWS Heroes have already signed up to produce workshops through Senzo, so keep an eye out for updates!

[![](https://theburningmonk.com/wp-content/uploads/2020/02/img_5e407d2652f03.png)](https://www.senzo.io/)

If you’re not able to travel to London on those dates, then fear not. I’m running a series of workshops throughout Europe this year – Amsterdam, Stockholm, Helsinki, Dublin and Berlin, so hopefully I’ll be coming to a city near you. For the latest workshop dates and locations, please check out my [**full list of public workshops**](https://theburningmonk.com/workshops/).

Oh, and before I go, I have finished filming the last lesson on [**Learn you some Lambda best practice for great good!**](https://theburningmonk.thinkific.com/courses/learn-you-some-lambda?src=heroes-united) The course would officially go live (along with this final batch of 14 lessons) on the 13th of February to coincide with ServerlessDays Cardiff. So, just a few more days left to take advantage of the special pre-order price, don’t say I didn’t warn you! ;-)

The post [AWS Heroes united!](https://theburningmonk.com/2020/02/aws-heroes-united/) appeared first on [theburningmonk.com](https://theburningmonk.com).

 ![](http://feeds.feedburner.com/~r/theburningmonk/~4/j6MsV5Ss5oQ)
UI Architecture Conf coming in April!
Tags: web, javascript, architecture, mobile
Published: 2020-02-09 21:49:02



[UIArchConf](https://uiarchconf.com/) is a unique conference and training event for those who work as UI Architects, or are looking to become a UI Architect. What's a UI Architect? Come to the event and learn from other UI Architects! The event is on April 1-3, in New Orleans.

The conference will explore the various aspects of UI Architecture and the role of the UI Architect, and the massive role a UI architect plays in an organization. From traditional "architect" tasks such as defining coding standards, to UX standardization, ensuring accessibility as a forethought and not an afterthought, the UI Architect wears many hats, and is a leader within their company championing the user interface.

If you are a Design, UX, User Experience, or Front-End developer/engineer, you can benefit both your company and your career by attending UIArchConf. You might already spend some of your time doing the things a UI Architect does! You will learn from your community experts who are currently in this role, or are playing a similar role.

We'll have two keynotes to start and end the day:

[Scott Hanselman](https://twitter.com/shanselman) is no stranger to front-end development. He will bring his experience and share his thoughts on UI Architecture.

[Scott Davis](https://twitter.com/scottdavis99) Is the Chief UI Architect at Thoughtworks. He will share how how Thoughtworks approaches UI Architecture as a company.

Still trying to figure out what UI Architecture means? Check out these videos:
[Laurie Barth on UI Architecture](https://www.youtube.com/watch?v=kOzbjhhE6Rc)
[Scott Davis on the origin of UI Architecture](https://www.youtube.com/watch?v=_OjN_IoKNgo)
[Jonathan Creamer talks about DivOps at EventBrite Engineering ](https://www.youtube.com/watch?v=dU9mFIqg8tA)

Check out the rest of the presentations at the website [https://uiarchconf.com/](https://uiarchconf.com/), and see you in the Big Easy in the first week of April!

Also, a mini-event before UIArchConf starts, [Web Accessibility Conf](https://webaccessibilityconf.com/), focuses on the fundamentals  that Web developers need to know to build accessible websites. If you're interested in this topic, we encourage you to check out the website.
Web App Monitoring with Application Insights
Tags: azure, applicationinsights, monitoring
Published: 2020-02-09 21:42:54



Portuguese Reference: [Monitorando Web Apps com o Application Insights - 4º Summit Jornada Colaborativa - São Paulo by Renato Groffe](https://medium.com/@renato.groffe/monitorando-web-apps-com-o-application-insights-4%C2%BA-summit-jornada-colaborativa-s%C3%A3o-paulo-edfca3479b66)
Favourited GitHub Repositories of 2019 
Tags: github, cli, linux
Published: 2020-02-09 21:29:59

Freedom of source, Freedom of usage, Freedom of enhancement.
Let's thank back those that provide these helpful tools.

![Love back](https://media.giphy.com/media/HJmz8M2YsimLm/giphy.gif)

---

* cli :: [bat](https://github.com/sharkdp/bat)

Why use cat when you can use bat

> A cat(1) clone with wings.
> Supports syntax highlight, git integration and has paging like less 

---

* cli :: [fzf](https://github.com/junegunn/fzf)

Still have to benefit from all the nice things it provides, but for the moment, I massively use it as a history-search (cntrl+r) boost on the terminal.

---

* certs :: [lego](https://github.com/go-acme/lego)

One of the easiest clients for managing Let's Encrypt certificates

> Let's Encrypt client and ACME library written in Go

---

* mocks :: [mockserver](https://github.com/mock-server/mockserver)

Really useful for testing mocks or in my case, in order to provide intranet-available resources for a cloud to journey PoC where connectivity to these resources was not made available yet.

> MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. Includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying or SOCKS

---

* agile :: [fusuma](https://github.com/iberianpig/fusuma)

Just started extensively using the touchtrack and this library made me agile with it.

> Multitouch gestures with libinput driver on X11, Linux.


---

* kubernetes :: [kubefwd](https://github.com/txn2/kubefwd)

> Bulk port forwarding Kubernetes services for local development.

---

* cicd :: [jenkins configuration as code plugin](https://github.com/jenkinsci/configuration-as-code-plugin)

gotta love this :D
learning curve its bit hard though, but nothing comes easy with Jenkins, right?