teleren/devto huggingface dataset:
InterSystems IRIS - Iterate over dynamic object
Tags: intersystems, intersystemsiris, json
Published: 2020-11-13 13:11:39



Here's a sample code to display JSON or dynamic object.

It shows how to iterate over object, get property values and their paths.
```
Class JSON.Test
{

/// do ##class(JSON.Test).Test()
ClassMethod Test()
{
    set json = "{""a"":1,""b"":2,""c"":{""c1"":3,""c2"":4}, ""d"": [5, {""e_e"":6}, 7]}"
    
    set obj = {}.%FromJSON(json)
    
    do ..Iterate(obj)
}

ClassMethod Iterate(obj As %DynamicAbstractObject, level = 0, path = "obj")
{
    set indent = $j("", level * 4)
    #dim iterator As %Iterator.Array
    set iterator = obj.%GetIterator()
    
    while iterator.%GetNext(.key, .value) {
        set type = obj.%GetTypeOf(key)
        write indent, "Key: ", key, !
        write indent, "Type: ", type, !
        
        if $classname(obj) = "%Library.DynamicArray" {
            set newPath = path _ ".%GetAt(" _ key _ ")"
        } else {
            if $zname(key, 6) = 1 {
                set newPath = path _  "." _ key
            } else {
                set newPath = path _  ".""" _ key _ """"
            }
        }
        
        write indent, "Path: ", newPath, !
        if $isObject(value) {
            write indent, "Value: ", !
            do ..Iterate(value, level + 1, newPath)
        } else {
            write indent, "Value: ", value, !
        }
        write !
    }
}

}
```
Output from running Test method:
```
Key: a
Type: number
Path: obj.a
Value: 1
 
Key: b
Type: number
Path: obj.b
Value: 2
 
Key: c
Type: object
Path: obj.c
Value:
    Key: c1
    Type: number
    Path: obj.c.c1
    Value: 3
 
    Key: c2
    Type: number
    Path: obj.c.c2
    Value: 4
 
 
Key: d
Type: array
Path: obj.d
Value:
    Key: 0
    Type: number
    Path: obj.d.%GetAt(0)
    Value: 5
 
    Key: 1
    Type: object
    Path: obj.d.%GetAt(1)
    Value:
        Key: e_e
        Type: number
        Path: obj.d.%GetAt(1)."e_e"
        Value: 6
 
 
    Key: 2
    Type: number
    Path: obj.d.%GetAt(2)
    Value: 7

```
Frontend checklist
Tags: showdev, discuss, webdev, performance
Published: 2020-11-13 13:09:26


Few years ago I made a checklist for FE development and somehow forgot to let the world know about it. It is time to change it ;)

### Let me introduce to you: [Docket](https://docket.work/)

There are already some FE checklists around here, but none of them worked well for me. They are mostly static and don't persist your choices over time. Also, you cannot share your progress with colleagues. So I made [Docket](https://docket.work/), BTW its meaning, as in Cambridge Dictionary, is: "a list of all the things that someone has to deal with or discuss."

## Docket's features 

* Provides templates with various checklists. 
* You can edit delete/add/modify all items in a checklist.
* Every docket has its own unique URL, which can be shared with others.
* You can register/log in to see all your dockets.
* It is cooperation ready as it use sockets to emit changes. (more people can work on same docket at same time)
* Items can contain description with links to articles, etc.

### Templates

Docket contains following checklist templates:

* HTML head
* HTML
* HTML for public Web
* CSS
* Javascript
* Images
* Webfonts
* Code & Styleguide
* Accessibility
* Speed and performance
* Web launch & SEO
* Security

You can combine more templates in one docket ;)
You can also add your own checklist groups.

### How can you help?

Try it. If you like it, you are encouraged to help me with improvements. 
You can submit Pull Request to [Docket repository](https://github.com/Rezi/docket/blob/master/src/app/checklist-service/default-checklist.ts) on github with changes of templates, or you can come with your own template you would like to add to docket.

Happy coding!
Daily Developer Jokes - Friday, Nov 13, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-11-13 13:00:03

---
title: "Daily Developer Jokes - Friday, Nov 13, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Friday%2C%20Nov%2013%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258884db70.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ What do you call a busy waiter?

___A:___ A server.
 -->
If about 48,493,565 are working on freelancer.com, 1% like but 99% hate!
Tags: resume, discuss
Published: 2020-11-13 12:49:54

I am a person who have a bitter experience on freelancer.com.
When I have known about freelancer.com, it was so interest and the job as if it is dream.
Really, Excited...
Maybe, It was same to your case too.
I have made a proposal to clients job and client had replied to me.
It was a back-end development and I have so excited again because my major skill is the back-end development.
The budget was $250 and it was my first job and it was so cool job.
He had award me and he created milestone... 
So I have accepted his job and said "Thank you"
As you know, if I accept the project, I have lost money as fee about 10% but it was not problem because If I finish project, I would get the money.
He said me, he will contact again tomorrow when he get API doc for task.
So I have waited with my excited mind.
Next day, he has sent message to me. 
!!!
It was nightmare's message!
The message is about he found the solution to finish his job and he will not work with me.
so I decided to contact freelancer.com.
I have opened the live chat.
Someone has accept my request and I could chat with him.
I have reported the project id and I have explained about the my situation but the only thing that I got from live chat is the fee is not refundable and they will message to client but it may not effect anything.
I have so disappointed and I have cried all day.
then, I have realized freelancer.com is not for freelancer and they is serving for clients. 
Name is wrong!!!
It have to be client.com!
$25 is not big money but It is problem of pride.
so I decided I will get refund the money so I have opened the dispute... 
But I have got bad things than support chat from that.
he needs over 15 days to get or not get money.
One day by one day, it has gave me to much stress to work on freelancer.com.
Don't use freelancer.com
You will get stress every second.
I hope your feedback.
Successfully completed Hactoberfest 2020
Tags: hacktoberfest
Published: 2020-11-13 12:45:16

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
Setting Up Working Environment For JavaScript (File & VSCode)
Tags: javascript, career, webdev, beginners
Published: 2020-11-13 11:44:23

---
series: JavaScript For Total Novice or Beginners.
title: Setting Up Working Environment For JavaScript (File & VSCode)
published: true
description: setting up javascript working environment with VSCode and file structure. 
tags: Javascript, career, webdev, beginner
//cover_image: https://direct_url_to_image.jpg
---

Welcome to this lesson, in this lesson, we are going to set up a basic working environment for JavaScript.

And we will: 

1. create a folder (let's name it codebox)
2. download and install Visual Studio Code (VSCode);
3. Install some VSCode extensions.

Hey! You have to create a folder by yourself. Create a folder on your computer and name it codebox.

It is time to talk about Visual Studio Code.

What is Visual Studio Code (VSCode)?

Visual Studio Code, according to Wikipedia, is a free source-code editor made by Microsoft for Windows, Linux and macOS. 

Why why do we use Visual Studio Code (VSCode)?

We use VSCode because it makes code easy to write and visually appealing. Its features include support for debugging, syntax highlighting, intelligent code completion and many more.

How to install Visual Studio Code (VSCode).

[Check here](https://code.visualstudio.com/download)

Stop there! Have you created the folder?

Please do!

We are about to use it, so create it if you have not done that.

- Launch the VSCode installed on your computer. I am doing that by clicking on VSCode icon here. You can also search for it on your computer. Now, It has opened and thenI
-  Click "open folder" by the top left of your screen.
- Then locate the folder on your computer and select it.

The folder is now opened in VSCode.

Let's add two files (index.html and main.js) to it.

By the left side, there is your folder pan. Click on the create file icon and type index.html.
Repeat that to create main.js

Yeah! We are done with the files.

Let's add some useful extensions to VSCode.

Click the extension icon; then search, live server. Once it is displayed, click install.

Repeat the same process to install, "prettier", "Bracket Pair Colorizer" and "beautify".

hooooorayyyyyyyyyyyyyy!

We are done with this part.

I am going to show you how to start using JavaScript on websites in the next lessons.

Stay connected!

# One more thing

Are you having difficulties to learn and understand JavaScript and build projects with it? ***JavaScript for a Total Novice*** teaches JavaScript and Project Making Fundamentals with simple illustrations and examples that make everything so easy. You can now handle any difficult projects without fear.

Don't trust me, get a free previous to judge by yourself: https://bit.ly/3o3TMyg
Pelican-resume with docker-compose and AWS + CDK
Tags: python, docker, aws, cdk
Published: 2020-11-13 12:43:41

**Quick Run** 
`./run.sh`
```
sed -i 's/THEME = .*'/THEME = "theme"/g'
rm -r output
pelican content/ -s pelicanconf.py -p 8000
pelican -l content -o output -s pelicanconf.py -p 8000 -r
```

The theme uses [CDN bootstrap](https://getbootstrap.com/docs/4.3/getting-started/introduction/) to fix the issue of missing background when printing/generate PDF and [Awesome Font](https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css)

##Building static web page
- Run docker-compose in the EC2 instance: Clone the code and run docker-compose
`docker-compose up -d`

###Create AWS Resources Using CDK
**General**
- Create AWS target group which listen to port 8000
- Create domain point to the ALB
- Generate listen rule from the ALB
- Using CDK to deploy AWS resources as cloudformation (Need to install CDK python tool and libs, [AWS CDK First Start](https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html))
```
cp web_stack
cdk deploy '*'
```
[Web stack cdk code] (https://github.com/vumdao/pelican-resume/blob/master/web_stack/web_stack/web_stack_stack.py)

## Demo
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0j37kjhdei9no3lhp1iu.png)
Hacktoberfest
Tags: hacktoberfest
Published: 2020-11-13 12:35:23

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
5% privilege tax for working remotely?
Tags: discuss, career, news, watercooler
Published: 2020-11-13 12:25:44

---
title: 5% privilege tax for working remotely?
published: true
description: Deutsche Bank's (DB) new research suggests that remote workers should be taxed for the "privilege" of working from home!
tags: discuss, career, news, watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/p1mcdu95e6w1s2qhwz06.png
---

Deutsche Bank's (DB) [new research](https://www.usatoday.com/story/money/2020/11/12/deutsche-bank-remote-workers-should-pay-work-home-tax/6262411002/) suggests that remote workers should be taxed for the "privilege" of working from home!

## Why should remote workers be taxed?

According to DB,
- Those who work from home are getting a free ride. They are contributing less to the infrastructure of the economy while still receiving its benefits.
- WFH = savings in terms of travel, lunch, laundry etc. Plus intangible benefits of greater job security, convenience, flexibility, additional safety.
- So even if there's a 5% "privilege" tax, you would be no worse off than if you had chosen to go into the office.

## You are surely joking, DB

The suggestion is so outlandish that it isn't even worth talking about, but humour me.
- Remote workers pay extra for setting up home office, bills for electricity, heater, co-working pass etc.
- Companies save huge costs on office rent, internet & electricity bills among many other things.

So if anyone is paying a "privilege" tax, it should be the employer. However, that would mean discouraging companies from going remote.

## How about incentivising companies for environment-friendly behaviour?

Surprisingly, DB doesn't talk about the positive impact on the climate due to remote work at scale. If we assume huge number of people indeed start working remotely, shouldn't the state incentivise (rather than tax) companies for being environment-friendly?

**I write regularly about remote work, tech & startups on [Twitter](https://twitter.com/hrishiptweets). You can [follow my updates there](https://twitter.com/intent/user?screen_name=hrishiptweets).**
Announcing StrapiConf - Our First Global User Conference
Published: 2020-11-13 12:07:29

---
title: Announcing StrapiConf - Our First Global User Conference
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1p9zdv37e0mrodnv5jko.jpeg)
Today, the Strapi team is very excited to announce [StrapiConf](https://www.strapi.io/strapi-conf-2021), a virtual conference that will take place on **April 22nd, 2021 from 9 am to 3 pm PST**, a time slot that we think is the most inclusive of all timezone and geographical locations.

With this **free and virtual conference**, our intention is to bring together all the Strapi users, contributors, customers, and partners from all over the world for a day filled with Strapi learning, collaboration, and networking opportunities. 

From Strapi basics and Headless CMS best practices to insights into how to quickly build JAMStack websites, Mobile Applications, and modern digital experiences, StrapiConf will include content for everyone. Looking out a little further, we’ll share our vision for making Strapi a key enabler of the next revolution of low-code application development, taking advantage of APIs.

No matter your level of expertise with Strapi, Headless CMS in general, or your job title, attendees will get unique opportunities to learn and collaborate with their peers at other companies using Strapi to build modern, content-driven applications. 

The conference will include **2 tracks**, with  **30m talks** and  **10m lightning talks**. The first track will be geared towards **advanced users** and include **technical** Strapi concepts, customer/user stories, and integrations. The 2nd track will be for **Strapi beginners**, **Product and Content Managers**. 

The official schedule will be published in **January** but you can already [pre-register](https://www.strapi.io/strapi-conf-2021) and [submit proposals](https://docs.google.com/forms/d/e/1FAIpQLScUYkXm67c-yHccRYsskeUMWO4uwoWtFsBBElmVlrFYYfUyow/viewform) today! 

Please share the love on Twitter by following [@strapijs](https://twitter.com/strapijs) with the hashtag #StrapiConf and don’t hesitate to reach out to [conf@strapi.io](mailto:conf@strapi.io) if you have any questions.
Flutter TODO app series! Introduction
Tags: flutter, tutorial, dart
Published: 2020-11-13 11:37:37

## 👋 Everyone

Welcome to the series! I'm Darshan from [CodeVengers](https://linktr.ee/realcodevengers) and in this series, we are going to make a TODO app using [Flutter](https://flutter.dev/), [Firebase](https://firebase.google.com/) and [Riverpod](https://riverpod.dev/).

### About The Project

Let me give you a brief overview of the project. In the project, we are going to make a 3 screen app. For each screen, I will cover how to look at the design and later we are going to build it. Then we will proceed to work on the backend with [Cloud Firestore](https://firebase.google.com/docs/firestore) and [Firebase Auth](https://firebase.google.com/docs/auth) using [Riverpod](https://riverpod.dev/) for state management.

| Login | TODO Screen |
|:-----:|:-----------:|
|![Login Page](https://dev-to-uploads.s3.amazonaws.com/i/l1dgqzojhz520coa7fir.png)              | ![TODO Screen](https://dev-to-uploads.s3.amazonaws.com/i/z3r28xetthvf6ac8n3fv.png) |             
| In this screen, we have login with google or skip login which will register the user as [anonymous](https://firebase.flutter.dev/docs/auth/usage#anonymous-sign-in).                           | The user's tasks are listed over here. The user can see their tasks by specifying the date. |

| Add/Update Task |
| :-------------: |
|![Update remove](https://dev-to-uploads.s3.amazonaws.com/i/aebsnpd9bopum0ppnq87.png) |
| In this screen, the user will add or update their Tasks. |

### Learning Something New Is Good!

For those who don't know what Riverpod is, it is a state management option that has a lot of similarities with Provider (our good old friend) as both are developed by the same person that is Remi Rousselet, so learning it would be a breeze if you already know Provider. You can go through the amazing [documentation](https://riverpod.dev/) and Robert Brunhage has made an awesome [video](https://youtu.be/GVspNESSess) to explain all the different providers in Riverpod.

### Yes, You Can Watch Videos!

These articles are complementary to our YouTube series so if you like to see the videos then you can consider [subscribing](https://www.youtube.com/channel/UCqO_zNx829e6soWLzinFkcA) to our channel as we are planning to not only bring Flutter but also tutorials on other technologies.

Thanks for reading, if you wish you can also join our community on [Discord](https://discord.com/invite/UtTPuzpV).

{% youtube 0lhJfDBeVZg %}

See you soon! 👋 Happy Fluttering.
hi
Tags: hacktoberfest
Published: 2020-11-13 11:25:51

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
Best jobs remorely for today - 13 of November
Tags: ux, design, java, node
Published: 2020-11-13 11:22:31

See more [here](https://t.me/remotely_jobs/203)

1. [Remote Software Development Engineer](https://www.remotely.jobs/remote-software-development-engineer-job-at-amazon) (amazon)

- 3+ years of non-internship professional software development experience.
- 1+ years of Programming experience with at least one modern language such as Java, C++, or C# including object-oriented design.

2. [ELK Stack Developer](https://www.remotely.jobs/remote-elk-stack-developer-job-at-arc) (Arc)

- Solid experience in ELK stack
- Experience in REST APIs

3. [Senior UX Designer](https://www.remotely.jobs/remote-senior-ux-designer-job-at-amazon)(Amazon)

- 7+ years of experience as a UX designer.
- 5+ years if experience in performing user research or gathering quantitative customer data.

4. [Backend Engineer](https://www.remotely.jobs/remote-backend-engineer-job-at-primer) (Primer)

- Experience building high performance, distributed systems
- Experience of driving and using modern development practices such as BDD and TDD would be highly advantageous

5. [Go Developer](https://www.remotely.jobs/remote-go-developer-job-at-kryptos-logic) (Kryptos Logic)

We're looking for a Go Developer to join the growing Platform Development team at Kryptos Logic.
November 13th, 2020: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2020-11-13 11:17:16

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![Information flowing through your brain](https://media.giphy.com/media/qKltgF7Aw515K/giphy.gif)

</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

And remember, if something you learnt was a big win for you, then you know where to drop it as well.👇👇🏻👇🏼👇🏽👇🏾👇🏿

{%link https://dev.to/devteam/what-was-your-win-this-week-391j %}

<center>

![Someone feeling like "Yaaas!"](https://media.giphy.com/media/zBhZiVNNQjfTG/giphy.gif)
</center>

Photo by [Wes Hicks](https://unsplash.com/@sickhews?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](Photo by Wes Hicks on Unsplash)