teleren/devto huggingface dataset:
Count Child Directories with PowerShell
Tags: powershell
Published: 2019-10-04 15:42:49

---
title: Count Child Directories with PowerShell
published: true
description: A cute little PowerShell one-liner that saved me from manually counting more than a hundred directories at work.
tags: powershell
---

At work, I received a supplier survey from a customer asking how many customers we have.  My first thought was, "Ugh!  I'm going to have to go into our system and figure out where those reports live and make sure I'm getting the right numbers from the right places."  But then I remembered our server.  And I remembered that I'm a programmer and we don't have to stand for things like *manually counting*.

Bada bing, bada boom:

```powershell
gci -dir | measure

# Which is PowerShell auto-aliasing goodness for:
Get-ChildItem -Directory | Measure-Object
```

For good measure, we can get the job done in Bash the same way:

```bash
ls -d */ | wc -l

# I've used ls -d here rather than find because I wanted to skip hidden dirs
```

I love the CLI so much!
What was your win this week?
Tags: discuss, weeklyretro
Published: 2019-10-04 15:01:39

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

👋👋👋👋

Looking back on your week -- what was something you're proud of?

All wins count -- big or small 🎉

Examples of 'wins' include:

- Getting a promotion!
- Starting a new project
- Fixing a tricky bug
- Cleaning your house...or whatever else that may spark joy 😄

![cool-dog](https://media.giphy.com/media/YRPVlInmP08agsbXQR/giphy.gif)
Xamarin 101: Part 3 - Solution Architecture
Published: 2019-10-04 14:56:28

---
title: Xamarin 101: Part 3 - Solution Architecture
published: true
description: Find out the best way to structure you Xamarin projects to allow for maximum code reuse across the native platforms
series: xamarin101
---

# Solution Architecture

There are always a hundred ways to do something. And cross-platform mobile development with Xamarin is no different.

In this short video, we explain the way that Xamarin projects are structured out of the box (or what happens after File->New), and how that best enables you to create applications maximized for code reuse.

{% youtube ESubeu0081U %}

## Learn More!

* [Walk-thru of the Xamarin.Forms new project setup](https://docs.microsoft.com/xamarin/get-started/first-app?WT.mc_id=xamarin101-c9-masoucou)

Happy mobile coding! And as always, if you have any questions - please ping me on Twitter at [@codemillmatt](https://twitter.com/codemillmatt).
What do you want to accomplish, unrelated to development?
Tags: watercooler, discuss
Published: 2019-10-04 14:37:51

I've always found it enjoyable to hear what dreams, hobbies, interests, etc. other devs have. More often than not, there are similar interests that come up where you wouldn't expect. For instance, it always surprises me how many developers talk about their background in music performance when I share stories from high school/college marching band.

To get the ball rolling, my current life goal is to obtain a private pilot license. There are many reasons, and I'll likely do more research on ways to help the community such as the Civil Air Patrol, but the biggest draw is how much travel freedom that would provide. Imagine being able to fly from Orlando to Atlanta in the same time it takes to drive from Orlando to Tallahassee. (This is a random estimate, but I think my point still stands).

So what do you want to accomplish in life, outside of what you'd normally share on DEV?
How to fix "Always open in <Container>" not working in Firefox Multi-Account Containers
Tags: firefox, tips
Published: 2019-10-04 14:36:24

---
title: How to fix "Always open in <Container>" not working in Firefox Multi-Account Containers
published: true
description: How to quickly fix Firefox if a website is refusing to work with the Multi-Acc
tags: firefox,tips
---

If, like me, you just decided to explore all the goodness that Mozilla has been developing for Firefox, you might have come across their Tab Container concept:
```"Multi-Account Containers is a Firefox add-on that lets you separate your work, shopping or personal browsing without having to clear your history, log in and out, or use multiple browsers. It's an improved version of the Containers feature built into Firefox Nightly and the completed Firefox Containers Test Pilot experiment."```
["Multi-Account Containers | Firefox Help"](https://support.mozilla.org/en-US/kb/containers)

This is a great feature if you want to keep your work tabs and personal tabs separate from each other, but manage them from the same window. Each container will remember its own sessions, will have its own local and session storage, and allow for certain domains to be marked to *"Always open using <container_name>"*.

What was my surprise when I tried to mark DEV to always open using my Personal container only to find out that when I tried to open it in a new Default tab it would ignore my settings for the website!

After some digging I came across the solution on a Github post:
[" Websites using ServiceWorkers can't be assigned #822"](https://github.com/mozilla/multi-account-containers/issues/822#issuecomment-452068677)

They offer a quick workaround for this that involves essentially un-registering the service worker for DEV, and next time you try to open the website again it will open in its correct container.

This is a helpful workaround to know as with more and more PWAs around and create-react-app and other CLIs automatically generating serviceworkers for us, this bug will probably come up again and again until and if a fix is ever found.
Daily Challenge #83 - Deodorant Evaporator
Tags: challenge
Published: 2019-10-04 14:03:36

---
title: Daily Challenge #83 - Deodorant Evaporator
published: true
series: Daily Challenge
description: This program tests the life of an evaporator containing a gas.
tags: challenge
---

This program tests the life of an evaporator containing a gas.

We know the content of the evaporator (content in ml), the percentage of foam or gas lost every day (evap_per_day) and the threshold (threshold) in percentage beyond which the evaporator is no longer useful. All numbers are strictly positive.

The program reports the nth day (as an integer) on which the evaporator will be out of use.

*Note: Content is in fact not necessary in the body of the function "evaporator", you can use it or not use it, as you wish. Some people might prefer to reason with content, some other with percentages only. It's up to you but you must keep it as a parameter because the tests have it as an argument.*

***
_This challenge comes from g964 from [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 idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
9 New pre-made templates & 7 new plugins for no-code apps on Bubble.
Published: 2019-10-04 13:51:15

---
title: 9 New pre-made templates & 7 new plugins for no-code apps on Bubble.
published: true
description:
tags: templates, plugins, apps, no-code
---

Instead of getting back to school we got back to work and oh boy did we build a number of awesome templates and plugins for you guys 🔥

NEW READY-MADE TEMPLATES
Our bestseller template just got a complete redesign and more functions. Of course, that’s the Headstart. This template, packed with new features is a gem for both newbies and pro Bubblers. It has all the components and functions one might need for building a web app quick and easy. [Read more...](https://blog.zeroqode.com/9-new-pre-made-templates-7-new-plugins-for-no-code-apps-on-bubble-a2363a7c1052)
If you want to run Docker on local Linux box
Tags: docker, linux
Published: 2019-10-04 12:37:27

---
title: If you want to run Docker on local Linux box
published: true
date: 2019-10-04 11:47:16 UTC
tags: docker,linux
canonical_url: https://ofdigitalwater.postach.io/post/if-you-want-to-run-docker-on-local-linux-box
---

If you would like to run [Docker](https://www.docker.com/) on a Linux box in your LAN, and you already configured the Linux box hostname as _computer1_ and a user account there as _me_, and your current Docker environment is [Docker Toolbox on Windows](https://docs.docker.com/toolbox/toolbox_install_windows/) together with [docker-machine](https://docs.docker.com/machine/), perform the following steps:

1. Add user _me_ to the group _sudo_ on your future Docker host: `usermod -a -G sudo me`
2. Remove password prompt when running `sudo` (as described [here](https://kofler.info/sudo-ohne-passwort/)):  
Replace `%sudo ALL=(ALL) ALL` with `%sudo ALL=(ALL) NOPASSWD: ALL`
3. Run this command in your current Docker environment to install Docker on your future Docker host: `docker-machine create --driver generic --generic-ip-address computer1 --generic-engine-port 2375 --generic-ssh-user me computer1`. The last part is the name of the configuration in your current Docker environment.
4. Activate the configuration in your current Docker environment: `eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env computer1)`
5. Reverse step 2 and, if needed, also step 1

Then you are ready to use Docker on your _computer1_ box.

Perform step 4 to activate this configuration again.
Build a CICD pipeline for WSO2 EI with Jenkins
Tags: devops, tutorial, github
Published: 2019-10-04 13:18:35

WSO2 Enterprise Integrator is an open-source, light-weight, battle-tested, hybrid integration platform which comes with Apache 2.0 license. In this post, I’m going to discuss how you can build a CICD pipeline with WSO2 EI and Jenkins to automate the development and deployment process.

The full medium post can be found in the below link.
https://medium.com/@chanakaudaya/build-a-cicd-pipeline-for-wso2-ei-with-jenkins-73227ebf104f
THE HACKTOBERFEST GAME! 🎮⌨🚀
Tags: hacktoberfest, contributorswanted
Published: 2019-10-04 13:16:36

# Introduction

I've come up with a brilliant idea to get more people involved in Hacktoberfest. Let's be honest, we all want to contribute somehow to an opensource project but finding a project that actually excites &mdash; or we give a shit about &mdash;  is a rare thing.

# LETS MAKE A GAME

Let's make a multiplayer game **about** and **for** Hacktoberfest. The game will be themed around Hacktoberfest with the aim of getting even more people excited in the event and hopefully to have fun doing it. 


## Hacktoberfest Racer 
Name still in the works &mdash; someone make a pull request 😁
The idea is that *racers* compete in an event where they are tasked to type out some code as fast as they can. The winner &mdash; the person who types out the code the fastest &mdash; will be the one who makes the merge to master and receives the sought after Hacktoberfest badge. The bigger the number of Hacktoberfest badges a racer has, the bigger the flex 💪.

Firstly head over to the repo [hacktober-racer](https://github.com/LukeGarrigan/hacktober-race) and giving it a star ⭐ to hopefully spread the word even further. 

## Get it running 🏃‍♂️
1. npm install in the root directory
2. npm start to get it running!
3. Navigate to localhost:4000

The game so far is a cut from an old repo I made a blog about to quickly develop multiplayer games in the browser "[Code a BRILLIANT multiplayer game 🚀 in 2 MINUTES!](https://dev.to/lukegarrigan/code-a-brilliant-multiplayer-game-in-2-minutes-2gdd)" &mdash; reading this may help you in understanding what's going on under the covers!




## Make a pull request!
All features that are going to be added will be placed in the [issues](https://github.com/LukeGarrigan/hacktober-race/issues) section of the repo. Go ahead and find an issue you want to work on and get stuck in!


# Open to suggestions!
Feel free to raise issues for features you think would be awesome in the game. Also don't hesitate to ask me questions on the repo in the issues section, if you'd like any advice on a PR or a ticket I am happy to help.

People are already making pull requests prior to releasing this blog which is amazing! Get involved people, be apart of this will-be brilliant game!


Thank you, if you like my rambling check out my personal blogging site at https://codeheir.com/

## This blog is sponsored by <a href="https://www.codecanvases.com">Code Canvases</a>

Make your room come alive  with the coolest programming/coding canvases on the market.<a href="https://www.w3schools.com"> codecanvases.com</a> is the number 1 seller for programming prints with 100% exclusively designed canvases. Get them now whilst they're **20% off!!**
![[https://codecanvases.com/](https://codecanvases.com/)](https://cdn.shopify.com/s/files/1/0311/0151/7955/products/jqbr8djyof6ktl8qopmkpvy4_480x480.png?v=1585483987)
New Feature Request
Tags: feature
Published: 2019-10-04 12:37:06

---
title: New Feature Request
published: true
description: 
tags: feature,discuss
---

Recently I came across a good blog post,after that I bookmarked(browser) to some folder , like I being a unorganized guy I don't follow a pattern,now I can't able to remember which folder I saved to .I find it hard to browse my fav url among my home-pc,office-pc and mobile.

Just like Pintrest may be devs also can share and pin urls.
   

{%github https://github.com/thepracticaldev/dev.to/issues/4231 %}
Latest Trends in Opencart Multivendor marketplace
Tags: opencartmultivendor, opencartmultiseller
Published: 2019-10-04 12:26:10

Opencart Multivendor Module & Extension adds comprehensive Marketplace capability into your existing eCommerce opencart store. Opencart Multivendor allows store admin to manage each product associated with a third-party vendor. Opencart MultiVendor Marketplace from Purpletree It supports Opencart version 3.x and 2.3.x.

Sellers can manage products
Add/edit/delete products by sellers and admin
The seller has full control over own products
All the fields available in opencart admin are available for sellers too
Bulk import of products is also possible
The seller can do a bulk import using an excel sheet
Admin can also do the bulk import on behalf of a seller
The product entered by seller becomes a standard opencart product
Admin has the option to approve a product before it appears on the website

Advanced shipping rules for sellers
Sellers can have fixed shipping fee or flexible tiers
Tiers can be defined based on parameters
Based on zip code, weight, country
Option to define shipping per order or per product
Admin can set commission on shipping fees also
Shipping fee is paid out by admin with sales payouts

Advanced Vendor Panel
Vendors can manage all products and orders
Dashboard for a summary of orders, commission, payouts
Shows summary view as well as a detailed view
Filters available for easy filtering on every page
Sales report
Commission report
Payouts report
The vendor can manage the whole lifecycle for any order

Multi-Language Support
Comes with 18 languages in-built
All text from the extension appears in 18 languages
No need for any language pack
Easy to add any new language in the future

Multi-Vendor API for Opencart
API for Multi-Vendor integration
All features and data from the Multi-Vendor application is available via the API
Useful for creating mobile applications
It provides easy integration with external systems like CRM, ERP, etc.
Detailed documentation available for API specification
Data available in a standard format like JSON

Users can become Sellers
Any user can opt to become a seller/vendor
Admin can choose if approval is required for becoming a vendor
Seller options available in separate menu in user dashboard
Convenient single view for all user data
Set registration approval

Store ratings and reviews
Users can rate the sellers they buy from
Users can also write reviews for sellers
Seller rating is visible on the store page
Admin can manage all reviews
This is in addition to the opencart feature of product reviews/ratings

Access all stores
The “Browse Sellers” page shows the listing of all sellers
Users can browse sellers and/or send inquiry to them
Recent products from all sellers are also displayed
Sorting and pagination options are available


https://www.purpletreesoftware.com/multi-vendor-marketplace-opencart.html
New Inside Rust blog
Tags: rust, news
Published: 2019-10-04 12:04:54

As announced on the [main Rust Blog](https://blog.rust-lang.org/): [Inside Rust](https://blog.rust-lang.org/inside-rust/index.html)

> This blog is aimed at those who wish to follow along with Rust development. The various Rust teams and working groups use this blog to post status updates, calls for help, and other similar announcements.
IoT Home Automation and Use Cases
Tags: homeautomationappdevelopment, iotsolutions, iotappdevelopment
Published: 2019-10-04 12:01:04

The Internet of Things has opened new opportunities to reduce mechanical and operational failures. IoT solutions enable automation, remote operation, and monitoring of devices and machines. Smart IoT devices are now available for use in offices, homes, and public spaces for entertainment, security, and automation.  McKinsey Global Institute predicts that the Internet of Things market will reach the U.S. $11.1 trillion annually by 2025.
20 VS Code shortcuts to speed up your flow ⚡️
Tags: beginners, productivity, codenewbie, vscode
Published: 2019-10-04 11:54:19

---
title: 20 VS Code shortcuts to speed up your flow ⚡️
published: true
description: Sharing some of my most used shortcuts that help me save time and stay in my developer flow every single day.
tags: beginners, productivity, codenewbie, vscode
---

In this article I want to share some of my favorite and most used VS Code shortcuts that help me save time, make my life a little easier and, as a heavy keyboard user, also allow me to stay in my developer flow. 

You may be familiar with some of them already but hopefully you will discover a new shortcut that you can introduce into your workflow starting right now. 🤞🏻

> _I jotted down the key combinations for Mac users. If you’re a Windows or Linux user, you can find the key bindings for your OS [here](https://code.visualstudio.com/docs/getstarted/keybindings)._

Alright then, so without needing to select the entire line first...
* `⌘X` - cut a line
* `⌘C`- copy a line 
* `⇧⌘K` - delete a line
* `⌘L` - select the line 

And while your cursor is on a specific line..
* `⌘Enter` - insert a new line below it
* `⇧⌘Enter` - insert a new line above it
* `⌥↑` and `⌥↓` - move the line up/down
* `⇧⌥↑` and `⇧⌥↓` - duplicate line on the line above/below it
* `⌘]` and `⌘[` - indent and outdent the line
* `⌘/` - (un)comment out the line

Or within a specific file..
* `⌘D` - find other instances of selected code
* `⌥Z` - toggle word wrap

Lastly, for some editor/window management..
* `⌘P` - find and go to file (quick open)
* `⌘N` - new editor
* `⌘W` - close editor
* `⌘B` - toggle visibility of the side panel
* `⌃`` - toggle visibility of the integrated terminal
* `⌘2` - split screen into two editor groups
* `⇧⌘T` - reopen recently closed editor
* `⌥⌘←` and `⌥⌘→` - view editor tab on the left/right

**Happy coding!**

---

If you enjoyed reading this post or if it was helpful to you, you can support me by [buying me a coffee](https://www.buymeacoffee.com/httpspauline) — I'd really appreciate it! 🙏
How to effectively make tech choices, debug & start with CI/CD
Tags: devops, debugging, programming, todayilearned
Published: 2019-10-04 11:00:10

*My TL;DR style notes from articles I read today.*

### [Technical Decision Making](http://bit.ly/334H08i)

Tips for effective technical decision making:
 
- Define the problem first. Then look at tooling options to solve it. 
- Prioritize solving real problems over the most visible problems. 
- Be cognizant of the present context while pattern matching solutions from the past. 
- Choose a tool that doesn’t add too much collateral complexity to your  system 
- Ensure you define what an impactful project looks like for your company. 
- Plan projects in a way that no subproblem can become the single point of failure for the entire project. 

*[Full post here](http://bit.ly/334H08i), 8 mins read* 

----

### [Why we always start with CI/CD](http://bit.ly/30DVhYc)

- CI/CD leads to the adoption of best practices & standardization (feature branches, code reviews, etc.)
- the deployment process is automated, reproducible and documented
- anyone can deploy the software at any time
- can ship smaller chunks in production more often
- can fix bugs introduced in production more rapidly

*[Full post here](http://bit.ly/30DVhYc), 6 mins read*

---- 

### [What does debugging a program look like?](http://bit.ly/2oPkfXr)

- reproduce your bug, and reproduce it quickly
- accept that it’s probably your code’s fault
- start doing experiments, change one thing at a time
- check your assumptions
- throw error messages, don’t just silently fail
- print out a stack of errors, not just one error to get to the root issue quickly 
- develop a true understanding of what the error messages mean

[Twitter thread](http://bit.ly/debug-twitter-thread) that got the author started with writing this detailed post on debugging 

*[Full post here](http://bit.ly/2oPkfXr), 10 mins read* 

---- 

*I share these TL;DR versions of articles on software engineering that I read every weekday through my newsletter - [in.snippets(). Sign up here](https://mailchi.mp/appsmith/insnippets?utm_source=devto&utm_medium=post08&utm_campaign=is) if you liked what you just read.*