teleren/devto huggingface dataset:
Microsoft Flow For Expiration Dates
Tags: development, flow, organizationalskills, powerautomate
Published: 2022-06-15 17:25:28

---
title: Microsoft Flow For Expiration Dates
published: true
date: 2019-01-21 14:57:00 UTC
tags: Development,flow,organizationalskills,PowerAutomate
canonical_url: https://barretblake.dev/2019/01/microsoft-flow-for-expiration-dates/?utm_source=rss&utm_medium=rss&utm_campaign=microsoft-flow-for-expiration-dates
---

We all have a near endless list of expiration and reminder dates to keep track of: software renewals, contracts, driver's license, certifications, warranties, and on and on. Or maybe we want a better way of seeing when that pesky doctor or vet appointment is without scrolling endlessly through our calendar.

The post [Microsoft Flow For Expiration Dates](https://barretblake.dev/2019/01/microsoft-flow-for-expiration-dates/) first appeared on [Barret Codes](https://barretblake.dev).
What is JavaScript event delegation? 
Tags: javascript
Published: 2019-01-21 14:33:28

---
title: What is JavaScript event delegation? 
published: true
description: What is JavaScript event delegation and how can you start using it today?
tags: JavaScript
---
{% youtube KMm2pIgAy1E %}

If you enjoyed this screencast, consider subscribing to my [YouTube channel](https://www.youtube.com/channel/UC2jJoQlzvLPvnYfowAEVaOg) for more screencasts about HTML, CSS, and JavaScript.
Kivy tutorial
Tags: python, programming, kivy, tutorial
Published: 2019-01-21 14:31:59

---
title: Kivy tutorial
published: true
description: 
tags: #python #programming #kivy #tutorial
---


1 Installation
2 Kivy GUI
3 Kivy Button
3.1 Change color of Kivy button
3.2 Disable Kivy Button
3.3 Change the size and position
3.4 Image in Kivy Button
3.5 Load Kv string or file
4 Kivy Label
4.1 Change the font size
4.2 Adding Style to text in Label
5 Kivy RecycleView
6 Kivy ScrollView
7 Kivy Clear text input
8 Kivy Clock
9 Kivy Canvas
10 Canvas Image
11 Kivy vs PyQt


[Kivy tutorial](https://likegeeks.com/kivy-tutorial/)

Hope you like it.
Regards,
Anyone still using Emacs?
Tags: discuss, emacs
Published: 2019-01-21 14:28:13

---
title: Anyone still using Emacs?
published: true
description: Discussing Emacs
tags: discuss, emacs
---

I’ve been through a few code editors & IDEs. Been using VSCode on and off for the last couple years. A few others I have used over the years include DEV-C++, Eclipse, Atom, Code Blocks, Notepad++, Visual Studio, and some others I can’t remember 🤔. Lately I have developed a renewed interest in Emacs. I tried it before but didn’t really invest any serious time in learning how to use it. For some reason I woke up yesterday morning and decided to hop on the Emacs 🚂. I know people choose up sides and are very dedicated to their code editors or IDEs. Just really wondering how many devs use Emacs consistently in their workflow?
Restaurant Finder App
Tags: react, showdev, javascript, webdev
Published: 2019-01-21 14:18:23

---
title: Restaurant Finder App
published: true
description: 
tags: React,showdev,javascript,webdev
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sjj2b7nz7vipj27opfmj.JPG
---

Hi Dev.to devs,
    I recently had appeared on an online coding challenge and was given a task to do a restaurant finder webapp.I stole look and feel of my site from dev.to because I loved it.

You can find the web site live @ https://restafind.surge.sh/
 


### Front-end github repo 

{% github  yashwanth2804/Restaurant  %}

### Hosting provider

http://Surge.sh

### Backend github-repo


{% github yashwanth2804/RestaurantBackend %}
### Hosting provider

https://Zeit.co

### Database

Mongodb

### Hosting provider

https://mlab.com/

{% user yashwanth2804 %}
<a href="https://www.buymeacoffee.com/nQTRvte" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>
Cross-platform Node.js guide
Tags: windows, node, linux, mac
Published: 2019-01-21 14:15:57

---
title: Cross-platform Node.js guide
published: true
description: Cross-platform Node.js guide
tags: [windows, nodejs, linux, mac]
---

Writing Node.js code that works on Windows, Mac and Linux can be tricky. There are only few guides that cover this topic thoroughly so I decided to share my own experience gathered over the years: https://github.com/ehmicky/cross-platform-node-guide
The Pro's and Pro's of Javascript String Templates
Tags: javascript, coding, programming, webdev
Published: 2019-01-21 13:08:44

---
title: The Pro's and Pro's of Javascript String Templates
published: true
description: 
tags: javascript, coding, programming, webdev
---

Yep, you read it right, the Pro's and *Pro's* (not Con's).  This morning I committed code containing a string template as follows:

    alert(`You've found the solution (${solution}) !!`);

Actually I started with double-quoted segments and concatenation, so the apostrophe in "You've" didn't cause an issue.  But had I started with single quotes, I'd have had to escape that apostrophe.

I knew I shouldn't be doing the string concatenation and so changed to the string template as above.  But it dawned on me, that by using a string literal, you don't have to escape *either* single or double quotes inside the string.

That's just one Pro. I decided to write a JSPerf to be sure there weren't any performance ramifications.  But on Chrome anyway, [the differences are infinitesimal](https://jsperf.com/string-quoted-vs-template/).  YMMV (your mileage may vary) but until then I'm sticking to my guns: Pro's and Pro's ;)
Which project helped you the most in improving your skills as a developer?
Tags: discuss, webdev, development
Published: 2019-01-21 11:45:21

---
title: Which project helped you the most in improving your skills as a developer?
published: true
description: WHat project helped you gain a better understanding of JS and other languages?
cover_image: https://thepracticaldev.s3.amazonaws.com/i/0ebhvky77sp8icp1cm1k.jpg
tags: #discuss, #webdev, #development 
---
I'm starting my first collaboration project with someone from this community which I'm really excited about. We are looking into creating various web apps using *React*, *Redux*, and *ExpressJS*.

I was interested in which side projects everyone has completed that really helped them improve their skills in various areas of development?

I think it would be helpful for other users to get some inspiration and to have an idea of what projects they should pursue to get a well-rounded understanding of their desired framework/language? 

Whether it be a back-end or a front end language...

Please leave your thoughts if you have any advice? :)

##Cheers guys!
A New Theme For Dev.to 
Tags: devto, meta, theme
Published: 2019-01-21 11:01:30

---
title: A New Theme For Dev.to 
published: true
description: Simple Without Sticky Profile on Sidebar
tags: dev.to, meta, theme
cover_image: https://thepracticaldev.s3.amazonaws.com/i/i1b2sbxowqk4d3h1xbp4.png
---

 I have Created a Theme for Dev.to 

For Dev to I Have changed the Some dev.to display like

* Font - Comic Sans MS
* Primary Sticky Nav Disabled
* Header Color Changed
* Post View Middle 
* Comments Color Changed

I hope this Theme Will Like 
I have Published This theme here [Userstyles](https://userstyles.org/styles/167974/dev-to-plain-background)

Please Comment Below
What do you use for template inheritance when developing UI in HTML?
Tags: discuss, help, templateinheritance, html
Published: 2019-01-21 10:44:34

---
title: What do you use for template inheritance when developing UI in HTML?
published: true
description: Recommendation needed to use a template inheritance feature while developing UI in HTML
tags: discuss, help, template-inheritance, HTML
---
I do mostly back-end development, but this time I have to create UI using some UI Kit. I want to remain DRY and for this reason I want to use template inheritance, preferably in JavaScript. 
What do you use in this situation? Do you use any build tool like webpack or task runner like gulp ? If yes, what do you recommend? 
**Note:**  I am not developing Node/Express application.
How to get Android resource ID by name
Tags: android, kotlin, resources
Published: 2019-01-21 09:41:53

---
title: How to get Android resource ID by name
published: true
description: How to get Android resource ID by name
series: Android Development
tags: Android,Kotlin,Resources
---


You may want to do this if you want to write a framework that relies on the name of the resources and not the actual ID, in order to remove references to the R class. For example if you use *R.layout.activity_todo_list* in your class, and you want to move your class in a separate library… you can’t. **R is a generated class** and is project specific. An easy solution would be to somehow load the *R.layout.activity_todo_list* value dynamically at runtime. Luckily, you can do this easily like this:

_context.resources.getIdentifier("activity_todo_list", "layout", context.packageName)_

As you can see we have no reference to the R class so this piece of code is project agnostic but: **it’s not safe!** If the resource is missing from the project this code won’t give you a compilation error so your application may fail at runtime. In my case, the benefits of moving the common code for all my apps in a single library was more important than the fact that for some resources I lose the compilation errors so I’m happy with the trade-off but I don’t advise using this technique if you don’t have a really good reason for it.

Share this:
Merge Multiple Observables using combineLatest Operator in RxJS
Tags: rxjstutorials, softwaredevelopment, combinelatestoperatorinrxjs, rxjs
Published: 2019-01-30 03:32:06

---
title: Merge Multiple Observables using combineLatest Operator in RxJS
published: true
tags: RxJS Tutorials,Software Development,combineLatest Operator in RxJS, RxJS
canonical_url: https://www.positronx.io/merge-multiple-observables-using-combinelatest-operator-rxjs/
---

The post [Merge Multiple Observables using combineLatest Operator in RxJS](https://www.positronx.io/merge-multiple-observables-using-combinelatest-operator-rxjs/) appeared first on [positronX.io](https://www.positronx.io).


I am going to talk about **combineLatest operator in RxJS** or ReactiveX. I will be telling you what is combineLatest operator then show you how to connect the multiple data streams by using the simplest and easiest way possible. At the end of this article, you’ll be able to understand what combineLatest operator is and how to use this powerful operator in functional reactive programming.

[Click here to read more](https://www.positronx.io/merge-multiple-observables-using-combinelatest-operator-rxjs/)
Mirinae Development
Tags: opensource, blockchain, algorithms, cryptography
Published: 2019-01-21 08:05:45

---
title: Mirinae Development
published: true
description: Developers of the MicroBitcoin 'Opensource' Project seek the assistance for the deployment of the new Mirinae ASIC-Resistant algorithm.
tags: opensource, blockchain, algorithm, cryptography
---

Hello Developers, the developers at MicroBitcoin Opensource Project would like to get as much help as possible to prepare the deployment of the new Mirinae ASIC-Resistant algorithm.

The community behind supports for the decentralization of mining whereby the development of a new hashing function is needed.

So far Mirinae support has been added to:

- Core daemon
- CPU miner
- ElectrumX (python3 module)
- Yiimp pool

They're looking for someone who can assist to implement Mirinae for Nvidia and AMD miners like ccminer and sgminer.

Specific details and discussions can be found in their [Developer Forum](https://mbc.wiki/)
The reference implementation of Mirinae can be found in their [Main Repository]
(https://github.com/MicroBitcoinOrg/Mirinae)
Hve Notes - A static blog writing client
Tags: electron, vue, javascript, typescript
Published: 2019-01-21 07:58:12

---
title: Hve Notes - A static blog writing client
published: true
description: This is a client developed based on eelectron + vue.js. You can use it to record your life, mood, knowledge, notes and ideas...
tags: electron,vue,javascript,typescript
---

<div align="center">
  <img src="https://thepracticaldev.s3.amazonaws.com/i/w1ad7vgeuz2ou57u0x8i.png" width="100%" />
</div>

Perhaps you have used static blog building tools such as **Hexo**, **Jekyll**, **Hugo**, etc.I have to admit, they are very good.I have used **Hexo** in the past, but I personally feel that it is not convenient enough and the experience is not good enough.So I wrote such a tool, and hope you like it too.

This application was developed by **Vue.js** and **electron**.

Github: [Hve Notes](https://github.com/hve-notes/hve-notes)
Homepage:[Hve Notes(homepage is Chinese only, but the application is support English and Chinese)](http://hvenotes.fehey.com)
Authoer: [EryouHao](https://github.com/EryouHao)

✍️  **Hve Notes** A static blog writing client. You can use it to record your life, mood, knowledge, notes and ideas...

<div align="center">
  <img src="https://thepracticaldev.s3.amazonaws.com/i/qd0349dblbbh8veupnps.png" width="100%" />
</div>

## Features👇
📝  You can use the coolest  **Markdown** grammar to create quickly  

🌉  You can insert pictures and article cover charts anywhere in the article  

🏷️  You can label and group articles  

📋  You can customize menus and even create external link menus  

💻  You can use this client on **Windows** or **MacOS**  

🌎  You can use **Github Pages** or **Coding Pages** to show the world that more platforms will be supported in the future  

💬  You can simply configure and access the [Gitalk](https://github.com/gitalk/gitalk) or [DisqusJS](https://github.com/SukkaW/DisqusJS) comment system  

🇬🇧  You can use simplified **Chinese** or **English**  

🌁  You can use any default theme within the application or any third-party theme


🌱  Of course **Hve Notes** is still very young and has many shortcomings, but please believe it will keep moving forward 🏃

In the future, it will surely become your inseparable partner

Give full play to your talents！

😘  Enjoy~
Help with Code
Tags: javascript, programminghelp
Published: 2019-01-21 07:43:59

---
title: Help with Code
published: true
description: Need to understand why my code is not working
tags: #JavaScript #programminghelp
---
I am trying to make a function which could return a string in to Camelcase. 
so For example if i enter "Adamsmith", it should return "aDaMsMiTh".

The below code has some error but can't figure out. 

function crazyCaps (string1) {
  const lower_string = string1.toLowerCase();
  let crazystring = ''; 
  for (let i=0; i<lower_string.length; i++) {
     const Crazy = lower_string[i];
     if (i%2 ===1) crazystring +=Crazy[i].toUpperCase();
     else crazyString +=Crazy[i];
  
  }
return crazystring; 
}
Cool CLIs in Elixir with IO.write/2
Tags: elixir, cli
Published: 2019-01-21 07:00:23

---
title: Cool CLIs in Elixir with IO.write/2
published: true
description: 
tags: elixir, cli
---

Today I read [this](https://dennisbeatty.com/2019/01/09/cool-clis-in-elixir-with-io-write-2.html), it told us with 3 simple and fun samples: clock, counter and progress bar. 

![](https://dennisbeatty.com/content/2019-01-09-cool-clis-in-elixir-with-io-write-2/progress.gif)

```elixir
defmodule Progress do
  @rounding_precision 2
  @progress_bar_size 50
  @complete_character "█"
  @incomplete_character "░"

  def bar(count, total) do
    percent = percent_complete(count, total)
    divisor = 100 / @progress_bar_size

    complete_count = round(percent / divisor)
    incomplete_count = @progress_bar_size - complete_count

    complete = String.duplicate(@complete_character, complete_count)
    incomplete = String.duplicate(@incomplete_character, incomplete_count)

    "#{complete}#{incomplete}  (#{percent}%)"
  end

  defp percent_complete(count, total) do
    Float.round(100.0 * count / total, @rounding_precision)
  end
end

total = 50

Enum.each(1..total, fn task ->
  IO.write("\r#{Progress.bar(task, total)}")
  Process.sleep(50)
end)

IO.write("\n")

```
Getting started with Spring
Tags: java, spring, beginners, designpatterns
Published: 2019-01-21 06:14:02

---
title: Getting started with Spring
published: true
description: 
tags: java, spring, beginner, designpatterns
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gygv76gvdezkclvfzkfb.png
---
This is my first post to Dev 😊
I'm a junior developer (back-end developer using JavaScript) and I want to learn Spring.

So I already asked around and got some reasonable advice. As Spring helps remove boilerplate code, to be able to understand what Spring does I should first learn what that boilerplate code does.

I've already started list of things I should learn (some of them I already know, like the java OOP and a few of the design patterns)

##Pre-Spring brush up: 👨🏼‍💻

**1. Java OOP**

**2. Design Patterns:**

* Singleton
* Factory
* Adapter
* Inversion of control

**3. The ORM Concept**

**4. Java Web Apps**

* JSP
* Servlet
* Security
* Web Container

###Do you have any more pre-Spring suggestions? 🧐###
###I would also appreciate online resources suggestions. 🙏###


##ℹ️##
I'm thinking that I could create another post in the future with a complete pre-Spring guide including online resources together with my personal experience going from Java to Spring.

Thank you for reading!
Building containers with Singularity
Tags: docker, java, container, image
Published: 2019-01-21 04:52:11

---
title: Building containers with Singularity
published: true
description: We use singularity to create containers both in an interactive mode and also using definition files to build them automatically.
tags: docker, Java, container, image
---

{% youtube nrgO3Q8-6hQ %}
Database models and ERDs for Newbs Part: 2
Tags: beginners, database, sql
Published: 2019-01-21 04:23:18

---
title: Database models and ERDs for Newbs Part: 2
published: true
description: A digest-size breakdown of database modeling and entity-relationship models/diagrams.
tags: beginner, databases, SQL
---

## Recap from Last Time

So far we covered database models as a way to create abstractions that represent entities, or things with quantifiable attributes. Next, I'll explain some points on relationships and how we go about figuring them out.

## What's Crow's Foot Notation?

Crow's Foot Notation can be traced back to the mid-1970s and something called structured systems analysis and design method if you want to do a little more reading after this. Essentially it's a way of diagramming entities as boxes and their relationships as lines with markings that roughly resemble a crow's foot. It also goes by the name of Barker's notation. With that bit of historical errata out of the way, let's get to the main point.

Why use it?

While we as developers are more than capable of creating amazing databases programmatically, writing code first leads to a lot of mistakes. Mistakes lead to greater cost and cost leads to things that can result in the failure of a venture or product. So just like carpenters, we need to measure twice and cut once. And by the way, you **don't** have to use this specific notation. Use any system that works to design your models and their relationships before you start programming. I'm personally interested in systems design and such, which is why I'm writing this.

What does it look like?

![Crow's Foot Notation Chart](https://i.ibb.co/qjw6dMn/Crow-Notation-Chart.png)

In action?

![Crow's Foot Notation in Action](https://i.ibb.co/XsFLvn2/Crow-Example.png)

Let's unpack this.
The professors can have students but don't necessarily need to have students. Students need to have at least one professor. So imagine a small school that only documents their registered students. The professors may or may not teach a course but all students need to take at least one course to be counted at all for any kind of course credit. However, many-to-many relationships when implemented this way cause low cardinality, or having a lot of duplicated information. See the next figure.

![Many to messy](https://i.ibb.co/mGzVt3m/Many-To-Messy.png)

Join tables to the rescue!

A join table is what it sounds like. It joins related tables and creates rows of matching entities. But, it would only contain references to them not copies to avoid low cardinality. In our case, we use course registrations to join our many students and professors.

![has many through](https://i.ibb.co/N2dmN9n/has-many-through.jpg)

Mind you we could still refine this to make an even better entity relationship diagram but that will have to wait for next week. 

In part 3, we're gonna break this down even more to build a better system. If I'm able to, I'll be adding some code this time around.
Adding a New Feature
Tags: idea, coding, helpful
Published: 2019-01-21 04:05:35

---
title: Adding a New Feature
published: true
description: 
tags: idea, coding, helpful
---

(I'm new to this community, but I thought I'd dive right in.) 

I love to code but when you have a project that spans many functions across multiple files, I have a hard time isolating what I need to code up a new feature. 

The way I do it now is to make a new file, determine the input I'm getting and the output I want.

Once I have the code that I want I cut/paste the function back into into my codebase. 

I want to build something that will automate this process. Maybe an extension for a code editor?? 

I'm not sure where to even start. So I'm asking for help, or even just suggestions.

Thanks!
Deleting files that start with a hyphen in Bash
Tags: bash, linux, shell, cli
Published: 2019-01-22 22:20:31

---
title: Deleting files that start with a hyphen in Bash
published: true
tags: Bash,Linux,Shell,cli
canonical_url: https://morgandadams.com/deleting-files-that-start-with-a-hyphen-in-bash/
---

## The Stage

I ran a script that takes a file path as an argument and it writes to that file. First, I ran it with the -h flag to see if I could get a help message. No error message printed to stdout. However, the script then did something unexpected…

After pressing enter, the script continued execution and prompted for additional input. I didn’t notice and hit “enter” a couple of times to get a clean prompt. This inadvertently allowed the script to finish. As a result, I ended up with a brand new file call “-h”. Oops.

## Deleting a file is hard…

No big deal right?

```bash
$> ls
-h
```

We can just delete that with a simple “rm” command

```bash
$> rm -h
rm: invalid option -- 'h'
Try 'rm ./-h' to remove the file '-h'.
Try 'rm --help' for more information.
```

What…?

```bash
$> rm \-h
rm: invalid option -- 'h'
Try 'rm ./-h' to remove the file '-h'.
Try 'rm --help' for more information.
$>
$> rm "-h"
rm: invalid option -- 'h'
Try 'rm ./-h' to remove the file '-h'.
Try 'rm --help' for more information.
$>
$> rm '-h'
rm: invalid option -- 'h'
Try 'rm ./-h' to remove the file '-h'.
Try 'rm --help' for more information.
$>
$> rm '\-h'
rm: cannot remove '\-h': No such file or directory
```

At this point, I scratched my head in confusion. However, after some Googling I found a couple of simple solutions

```bash
$>rm ./-h
# or
$>rm -- -h
```

Either of these solutions works. The first works because we’re using the current directory as part of the path. This tells bash not to process the hyphen as an option.  
  
Finally, the second option works because the double hyphen is a bash built-in. It tells the command that there are no more options to process and that anything else is a positional argument.

## Wrap-up

In conclusion, I have a few lessons learned:

1. Actually look at your prompt before pressing enter
2. Shells have a lot of nuances. It’s worth taking the time to learn about them when you encounter them because you’ll likely run into them again.
3. Use “set -e” in your scripts. If there is an error, the script will exit rather than continue execution.