teleren/devto huggingface dataset:
Collections
Tags: beginners, programming, codenewbie, java
Published: 2021-11-10 03:15:55

> General idea without bloat of additional coding methods 

## Structures of Data 
Ways to store information in an ordered manner so the data can be called upon when needed. The values can be referenced by index or iterated over where additional processing could be performed.

### Common Sequences 
#### Arrays 
```java
int[] wholeNumbers = new int[5]; // [item, item, item, item, item]            
String[] words = new String[5];  // [item, item, item, item, item]            
``` 
#### Lists 
```java
import java.util.List;
import java.util.ArrayList;

List<String> listOfideas = new ArrayList<>();
listOfideas.add("serendipity");
listOfideas.add("synchronicity");
listOfideas.add("determinism");
System.out.println(listOfideas);

List<Integer> listOfWholeNumbers = new ArrayList<>(); 
listOfWholeNumbers.add(5);
listOfWholeNumbers.add(15);
listOfWholeNumbers.add(51);
System.out.println(listOfWholeNumbers);
``` 
##### Documentation 
> [List Interface]("https://docs.oracle.com/javase/8/docs/api/java/util/List.html")
> [ArrayList Class]("https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html")

#### Associative Arrays
Using key:value pairs. Values can be accessed by calling the key of the associated value. Versus where you could need to loop over the entire collection to find the desired value. 
```java
import java.util.Map;
import java.util.HashMap;

Map<String, Boolean> animals = new HashMap<String, Boolean>();

animals.put("dog", true);
animals.put("libera", false);
animals.put("girazelle", false);
animals.put("cat", true);

System.out.println(animals);
``` 
##### Documentation 
> [Map Interface]("https://docs.oracle.com/javase/8/docs/api/java/util/Map.html")


### Others 
#### Beyond the scope of my journal 
`Stack<T>`, `Queue<T>`, `Set<T>`
Learning Workflows: How to Test and Review Flow Execution History
Tags: nocode, workflows
Published: 2022-02-10 17:46:20

---
title: Learning Workflows: How to Test and Review Flow Execution History
published: true
date: 2021-11-10 03:09:00 UTC
tags: NoCode,Workflows
canonical_url: https://maxkatz.org/2021/11/09/learning-workflows-how-to-test-and-review-flow-execution-history/
---

In this short video you will learn how to test a flow, review flow history and check how data flows from card to card during flow execution.

[![Flow history](https://katzmax.files.wordpress.com/2021/11/learningworkflows-flowhistory.png?w=1024)](https://katzmax.files.wordpress.com/2021/11/learningworkflows-flowhistory.png)

{% youtube nwLsiij1JZI %}


Looking for more educational content on Okta Workflows? [Check out these videos](https://www.youtube.com/watch?v=SEUOQlmRb_U&list=PLSAWywyhniCMgo-IPIR-tleTPgNYiJwZn).
Hactoberfest 2021
Tags: hacktoberfest, opensource
Published: 2021-11-10 02:59:27

I'm happy to share that I have successfully completed the Hacktoberfest '21.

An interest to learn Git and GitHub led me to this exciting month-long event.
It was my first pull request towards open-source and I'm looking forward to contributing more to the open-source community.

If you're unfamiliar with Hacktoberfest, it's a month-long celebration of open-source software hosted by DigitalOcean.
Hacktoberfest is a great way to kick off the open-source journey and I highly encourage you to participate.
How to Create a Workflow for HUGO Website hosted on GitHub Pages
Tags: actionshackathon21
Published: 2021-11-10 02:34:30

Creating websites should be an easy task that takes a little effort. I used to build my own website from scratch using HTML, CSS, and JS. Though I have learned a lot from that, it was a time-consuming process; so, I was looking for a better approach to save time.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0u8om0j580df3e0t6hrl.jpg)

Then I came across [**HUGO**](https://gohugo.io/), it's basically a framework to create websites, and it works fantastically. We can just write content on **Markdown** files and run Hugo command to generate a website automatically. Moreover, there are a great selection of themes available.

Now, I had a website ready to be deployed. Where should I host it? Of course, I did not want to spend a dime and keep paying for hosting. Eventually I decided to use [**GitHub Pages**](https://pages.github.com/) where you can host your content directly from your repository.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h3nuiopmzsy79p8xtwhw.jpg)

I had a website in a repository ready to go. However, my website was not generated automatically when I commit changes to the repository. That's when [**GitHub Actions**](https://github.com/features/actions) came into play.

### My Workflow

My purpose was to re-generate the website every time I commit changes to the repository; by this way, my content will be up-to-date.

Luckily, there is a workflow for it. By implementing [peaceiris/actions-hugo@v2](https://github.com/peaceiris/actions-hugo) on my GitHub workflow, I was able to achieve what I wanted to do. Simple as that.

This workflow saves me a great deal of time, and helps me focus more on actual development.

### Submission Category: 

Wacky Wildcards

### Yaml File or Link to Code

https://github.com/nat236919/nat236919.github.io


```yml
name: github pages

on:
  push:
    branches:
      - main  # Set a branch to deploy

jobs:
  deploy:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true  # Fetch Hugo themes (true OR recursive)
          fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: 'latest'
          extended: true

      - name: Build
        run: hugo --minify

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public
```
Rosey the Robot
Tags: actionshackathon21
Published: 2021-11-10 02:29:40

### My Workflow
Workflow was built for the [PheKnowLator](https://github.com/callahantiff/PheKnowLator) Project


### Submission Category: 
Wacky Wildcards


### Yaml File or Link to Code
[build-qa.yml](https://github.com/callahantiff/PheKnowLator/blob/master/.github/workflows/build-qa.yml)


### Additional Resources / Info
A similar workflow is used in the [OMOP2OBO](https://github.com/callahantiff/OMOP2OBO) project
Keyboard only accessibility test: MoMA
Tags: a11y, testing, keyboard, html
Published: 2021-11-10 02:29:40

**Accessibility test series
MoMA's homepage

#Failed
[2.4.1 Bypass Blocks](https://www.w3.org/WAI/WCAG21/quickref/#bypass-blocks)
A 'skip to main content' button is missing.


#Passed
[2.1.2 No Keyboard Trap Level A](https://www.w3.org/WAI/WCAG21/quickref/#no-keyboard-trap)
Simple, I was not trapped.

[2.1.3 Keyboard (No Exception) Level AAA](https://www.w3.org/WAI/WCAG21/quickref/#keyboard-no-exception)
Yup, everything including signing up for their newsletter was possible with just my keyboard!

[2.4.7 Focus Visible Level AA](https://www.w3.org/WAI/WCAG21/quickref/#focus-visible)
I appreciate MoMA's thick focus indicator which varies in colour depending on the background. It is integrated well into the design of their website.

*An element out of focus*
![A banner highlighting an exhibit on architecture from China.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qh6h3g3nyaxdpz1kms8z.PNG)

*An element in focus*
![A banner highlighting an exhibit on architecture from China. The element is in focus so it has a thick black border around the text.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lr97aj12ijeco9sdywnp.PNG)
How to uninstall the contrib module multiversion on Drupal 8.7 or later
Tags: drupal8, multiversion, uninstall, drupal9
Published: 2021-11-10 01:55:50

If you are planning an upgrade from Drupal 8 to Drupal 9, I strongly recommend that you uninstall the contrib module [multiversion](https://www.drupal.org/project/multiversion) before you update the core to the latest 9.x version.

Some of the contrib modules that require the multiversion module are: [Deploy](https://www.drupal.org/project/deploy), [Workspace](https://www.drupal.org/project/workspace), [Replication](https://www.drupal.org/project/replication). These modules will be automatically uninstalled as part of this process too.

**1. Install the Multiversion Remover.**

The module [Multiversion Remover](https://www.drupal.org/project/multiversion_remover) plays an important role on this process, so we need to install it: 
```
composer require 'drupal/multiversion_remover:1.0.x-dev@dev'
drush en multiversion_remover -y
```
**2. Delete replication, replication_log and workspace entities.**
Go to the following URLs and delete all the entities:
https://YOUR-SITE_URL/admin/modules/uninstall/entity/replication
https://YOUR-SITE-URL/admin/modules/uninstall/entity/replication_log
https://YOUR-SITE-URL/admin/modules/uninstall/entity/workspace

**3.-Implement a hook update.**
Copy the code from this [repo](https://github.com/davo20019/multiversion-remover-hook-updates/blob/main/module.install)  and paste it in a hook update in one of your custom modules.

Clear caches from the backend https://YOUR-SITE-URL/admin/config/development/performance or using the terminal `drush cr`

**4.- Run the Drupal updates**
We need to execute the hook update that we implemented in the previous step, so we have to run the drupal updates from the browser https://YOUR-SITE-URL/update.php or using the terminal `drush updb -y`

**Important:** While the updates are running, we need to check if the entities that we deleted in a previous step are not recreated, otherwise, we will have to re-delete them.

Remember, it has to be done before the updates process ends.
URLs to check if the entities were not re-created while running the updates:
https://YOUR-SITE_URL/admin/modules/uninstall/entity/replication
https://YOUR-SITE-URL/admin/modules/uninstall/entity/replication_log
https://YOUR-SITE-URL/admin/modules/uninstall/entity/workspace

Most likely, you will get an error, that is ok.

**5.- Execute multiversion remover functions.** 
You need to execute the following commands, to complete the removal process:
```
drush php-eval "multiversion_remover_uninstall_multiversion_suite()"
drush php-eval "_multiversion_remover_purge_multiversion_kvp()"
```

**6.- Uninstall the Multiversion Remover module.**
At this point, the Multiversion Remover module did its job and we can remove it from the project.

```
drush pmu multiversion_remover -y
composer remove drupal/multiversion_remover
```
code every day with me
Tags: javascript, programming, 100daysofcode, algorithms
Published: 2021-11-10 01:36:51

## --DAY 16--
Hi, I am going to make #100DaysOfCode Challenge. Everyday I will try solve 1 problem from leetcode or hackerrank. Hope you can go with me until end.
**Now let's solve problem today:**
- Problem: Pascal's Triangle II (read more about it [here](https://en.wikipedia.org/wiki/Pascal%27s_triangle))
- Detail: [here](https://leetcode.com/problems/pascals-triangle-ii/)
- My solution (javascript):
```
var getRow = function(index) {
    if(index==0) return [1];
    if(index==1) return [1,1];
    let ans=[[1],[1,1]];
    for(let i=2;i<=index;i++){
        let tmp=[];
        tmp[0]=1;
        for(let j=1;j<i+1;j++){
            tmp[j]=ans[i-1][j-1]+ans[i-1][j];
        }
        tmp[i]=1;
        ans.push(tmp);
    }
    return ans[index];
};
```
-->*If you have better solution or any question, please comment below. I will appreciate.*
Diffrence of Library and Framework in Computer Programming
Tags: softwaredevelopment, computerscience, framework, library
Published: 2021-11-10 01:33:16

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jndx1petro01mo9q62ow.jpg)

What is Library?

Libraries in programming languages are collections of prewritten code that users can use to optimize tasks.

Below are some library examples..

** Next.js  (programming language ==> JavaScript)
** NumPy (programming language ==>  Python)
** Apache Xerces (Java , C++ and  Perl programming languages)
** Pillow (programming language ==>  Python)
** SFML (programming language ==>  C++)
** p5  (programming language ==> JavaScript)

What is Framework?

A framework is a real or conceptual structure created to serve as a support or guide for the building of something that expands the structure into something useful.
Frameworks can include various tools, code libraries, compilers and also application programming interfaces (APIs) bound together to enable development of a project or solution too a specific problem. 

Below are some library examples..

** Angular ==> TypeScript-based free and open-source web application framework led by the Angular Team at Google and by a community of individuals and corporations.

** Vue.js ==> open-source model–view–viewmodel front end JavaScript framework for building user interfaces and single-page applications.

** Bootstrap ==> free and open-source CSS framework directed at responsive, mobile-first front-end web development.

** ASP.NET ==> open-source, server-side web-application framework designed for web development to produce dynamic web pages.

** Spring ==> application framework and inversion of control container for the Java platform.The framework's core features can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform.

Thank you....
닷넷 Hot Reload 삭제 사건
Tags: dotnet, korean, discuss, issue
Published: 2021-11-10 01:30:32

처음엔 나도 착각했던 사건이다.
닷넷 6.0이 출시됐다.
닷넷 6.0 에 Hot Reload 기능이 다시 부활하다니 기쁜 일이었다.
사실 기쁜 일은 맞다.

하지만 출시 막판에 엄청난 사건의 전말을 보고 경악했다.
이걸 이제 알았던 내 자신이 왕년에 닷넷 개발자로서 한심했다.
한국인을 위해 대충 짧게 요약해 주겠다. 한국 시각 기준이다.

1. 10월 22일, [한 소스 병합 요청](https://github.com/dotnet/sdk/pull/22217)이 조용히 통과됨. 제목은 `Remove Hot Reload support from dotnet watch`
2. 이를 눈치챈 해외 닷넷 개발자들 단체 맨붕
3. 하루 뒤, 한 개발자가 [이슈](https://github.com/dotnet/sdk/issues/22247) 제기
4. 닷넷 컨트리뷰터조차 '삭제됨'만 인지했지 '왜'인지조차 인지 못 함
5. [두 MS 개발자의 트윗](https://isdotnetopen.com/)이 공개됨.
6. 이와 함께 [MS 사내 지침](https://pastebin.com/RF6015kv)까지 유출됨
7. 대충 내용은 Hot Reload 기능을 Visual Studio 기능에 넣기 위한 물밑 작업임이 밝혀짐. 심지어 Visual Studio Code도 아니고 Visual Studio 전용 기능으로. 즉, 오픈소스였던 기능을 슬쩍 삭제해 그걸 그대로 상용 기능에 넣으려는 상술.
8. 닷넷 커뮤니티와 개발자들 대극노, 부활하라 요구증
9. 사흘 뒤, 한 개발자가 [복구용 병합 요청](https://github.com/dotnet/sdk/pull/22262)을 올리고 상당수의 지지를 받음
10. 심지어 MS 소속 개발자까지 지지 의사를 밟힘
11. 결국 병합 요청이 승인되어 Hot Reload 기능은 유지됨
12. 이렇게 Hot Reload 기능을 유지한 채, 11월 9일 닷넷 6.0 출시
13. 그러나 한국은 없었던 Hot Reload 기능이 부활했다고 알림
14. 나도 낚임.
15. 전말 확인해 보니, 국내 닷넷 개발자들 통수 지린다.

한국의 닷넷 개발자, 특히 에반젤리스트들. 반성하길 바란다.
Tuesday’s Tip – Twitter Accounts to Follow
Tags: tuesdaystip, conversation, twitter
Published: 2021-11-12 16:14:58

---
title: Tuesday’s Tip – Twitter Accounts to Follow
published: true
date: 2021-11-09 22:25:47 UTC
tags: TuesdaysTip,conversation,twitter
canonical_url: https://www.30minuteproject.com/2021/11/09/tuesdays-tip-twitter-accounts-to-follow/?utm_source=rss&utm_medium=rss&utm_campaign=tuesdays-tip-twitter-accounts-to-follow
---

Not knowing where to join in the conversation can be hard, here are some developer-related Twitter accounts that might help you get started.

@[noopkat](https://twitter.com/noopkat)

I first met Suz Hinton when I was working at Zappos and then I got to see her present. Hands down she is one of the best presenters I've seen. Currently she's working at Stripe on the developer tools but she also does some cool stuff with IoT.

@[ashleymcnamara](https://twitter.com/ashleymcnamara)

Ashley Willis is Lead of Developer Relations at Microsoft Azure and really into Golang too.

@[ASpittel](https://twitter.com/ASpittel)

Ali Spittel is Lead Developer Advocacy for AWS Amplify.

@[EmmaBostian](https://twitter.com/EmmaBostian)

Emma Bostian is a software engineer at Spotify and creator of a course on tech interviews.

@[Whykay](https://twitter.com/whykay)

Whykay is a community organizer focused on diversity in tech.

@[shanselman](https://twitter.com/shanselman)

Former full-time software developer, now program manager at Microsoft.

@[codinghorror](https://twitter.com/codinghorror)

Jeff Atwood is co-founder of StackOverflow and Discourse.org.

@[spolsky](https://twitter.com/spolsky)

Joel Spolsky is founder of Fog Creek Software, Trello, Stack Overflow, Glitch, and HASH.ai.

@[dan\_abramov](https://twitter.com/dan_abramov)

Dan AbramDan Abramov is a software engineer at Facebook and co-creator of Redux.

@[cdixon](https://twitter.com/cdixon)

Chris Dixon former entrepreneur and now tech advisor and investor.

Sign up for my mailing list and get your free ebook

"The 30-Minute Project: How to improve Your Side Project Game to Become a Better Developer"
at [30-Minute Project](https://www.30minuteproject.com/contact/)
How to check the type of a variable or constant in TypeScript?
Tags: typescript
Published: 2021-11-10 00:00:00

---
  title: How to check the type of a variable or constant in TypeScript?
  published: true
  tags: TypeScript
  date: Wed Nov 10 2021 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/check-type-of-variable-or-constant-typescript
  cover_image: https://melvingeorge.me/_next/static/images/main-715235a63396633935a13d4c7e50c987.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/check-type-of-variable-or-constant-typescript)
  
To check the type of a variable or a constant, you can use the `typeof` operator followed by the variable name in TypeScript. This is the same method used in the case of vanilla JavaScript code.

For example, let's say we have a variable called `name` with the value of `John Doe` like this,

```ts
// a simple variable
let name = "John Doe";
```

Now to check if the type of the `name` variable is a `string`, we can use an `if` conditional statement and use the `typeof` operator to check if the `name` variable's type matches with `string`.

It can be done like this,

```ts
// a simple variable
let name = "John Doe";

// check if the "name" variable type is of "string"
if (typeof name === "string") {
  console.log("It is of 'string' type");
} else {
  console.log("It is not of 'string' type");
}

/* OUTPUT: */

// It is of 'string' type
```

Just like we checked for the `string` type using the `typeof` operator, we can also check for the following types too in TypeScript:

- `number`
- `bigint`
- `boolean`
- `symbol`
- `undefined`
- `object`
- `function`

See the above code live in [codesandbox](https://codesandbox.io/s/check-type-of-variable-typescript-jnddc?file=/src/index.ts).

That's all 😃!

### Feel free to share if you found this useful 😃.

---
Readability is paramount
Tags: perl, readability, codereadability
Published: 2021-11-10 11:20:47

---
title: Readability is paramount
published: true
date: 2021-11-10 00:00:00 UTC
tags: perl,readability,codereadability
canonical_url: https://jhall.io/archive/2021/11/10/readability-is-paramount/
---

I grew up, as a software developer, in the world of Perl. Perl’s motto is [There’s more than one way to do it](https://en.wikipedia.org/wiki/There%27s_more_than_one_way_to_do_it), (abbreviated to **TIMTOWTDI** and pronounced: _Tim Toady_).

As the thinking goes, this flexibility allows the programmer to write more concise statements, as well as choose a style that fits the context, or their whims.

But is this a good idea?

I distinctly remember the day I was trying to explain some Perl code to a colleague. The beautiful one-liner ellegantly iterated a list through a map function, and utilized the a subtle side effect to trigger an update to a variable, which was later read for its state.

After stepping him through everything it did, and him still shaking his head, I re-wrote it into a 3-line form that anyone could understand.

I’ve come a long way since then.

I once felt that writing short, clever code was the proof of my superior coding ability.

![](https://jhall.io/images/picard-facepalm_huc7cb7d5266187c7cbea3ecc7bfaf6a34_40505_300x0_resize_q85_box.jpg)

But what value is short, clever code that nobody understands?

People are usually the most expensive part of any IT system, so we should [optimize](https://jhall.io/archive/2021/11/03/the-best-tools-money-can-buy/) for people’s time.

This means writing readable code, rather than clever code.

This usually means writing readable code rather than efficient code.

The same principle applies, of course, to non-code artifacts as well. Config files, diagrams, documentation. Optimize for readability.

Readability should usually be the first priority in any technical artifact you write. Of course there _are_ exceptions, and I’ll talk about some of those in the coming days.

> It’s harder to read code than to write it.  
> — Joel Spolsky

> Indeed, the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code. …[Therefore,] making it easy to read makes it easier to write.  
> — Robert C. Martin

> Any fool can write code that a computer can understand. Good programmers write code that humans can understand.  
> — Martin Fowler

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
Homer Dashboard
Published: 2021-11-19 17:26:09

---
title: Homer Dashboard
published: true
date: 2021-11-10 00:00:00 UTC
tags: 
canonical_url: https://www.weckmann.me/posts/homer-dashboard/
---

Self-hosting is becoming more and more popular, with that comes hosting for fun not just for function. I cannot begin to count the number of projects I've spun up just to play with. This doesn't mean you have to keep them forever though. It does mean, however, that organization is a must!

I've used bookmarks, notes, and default dashboards to keep track of my day-to-day services, as well as my random projects. With the dashboard becoming more popular I've tried a lot of pre-built ones like DashMachine, Flame, Dashy, and so many more! I finally landed on one that I will be keeping for awhile - Homer.

Special thanks to [WalkxCode](https://github.com/walkxcode) on GitHub ([u/Walker\_21390](https://www.reddit.com/user/Walker_21390/) on Reddit) for their amazing Homer theme, without this I wouldn't have chosen Homer as my day-to-day dashbaord.

With that out of the way, let's get started!

To begin let's install homer with Docker.

```
docker run -d \
  -p 8080:8080 \
  -v </your/local/assets/>:/www/assets \
  --restart=always \
  b4bz/homer:latest

```

**Don't forget to configure the port and set your volume.**

Homer has a configuration file located at `./assets/config.yml` . This is where we'll be configuring Homer. If you navigate to `http://localhost:8080` you'll see your Homer Dashboard.

The dashboard game is all about how functional and how _fancy_ your dashboard is. [WalkxCode](https://github.com/walkxcode) made this incredibly easy for us. They have the easy to follow instruction over on Github. Check out their write-up [here](https://github.com/WalkxCode/Homer-Theme).

![](https://www.weckmann.me/assets/images/preview-1024x581.png)

Credit: https://github.com/WalkxCode/Homer-Theme

* * *
 

[Reply via email](mailto:arpitbatra123@gmail.com?subject=Reply:%20Homer%20Dashboard)