teleren/devto huggingface dataset:
Scraping California, Part 3. Mostly final polish
Tags: webscraping, axios, javascript, lambda
Published: 2021-01-29 12:48:32

---
title: Scraping California, Part 3. Mostly final polish
published: true
date: 2020-11-23 14:32:00 UTC
tags: WebScraping,Axios,Javascript,lambda
canonical_url: https://javascriptwebscrapingguy.com/scraping-california-part-3-mostly-final-polish/?utm_source=rss&utm_medium=rss&utm_campaign=scraping-california-part-3-mostly-final-polish
---

<iframe title="California Part 3. Finished it up!" width="640" height="360" src="https://www.youtube.com/embed/TKW7m0QjNmk?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

This post is really the final polish on the code I’ve been working on to scrape the California Secretary of State. Here is the [first](https://javascriptwebscrapingguy.com/jordan-scrapes-california-soon-to-be-in-aws-lambda/) and [second](https://javascriptwebscrapingguy.com/jordan-finishes-california-in-aws-lambda-and-dynamodb) post before it.

I’ll probably still have a bit more digging to figure out why sometimes I’m getting an agent name and other times I’m not but these three posts/videos pretty much handle it from end to end.

## Looking for business leads?

Using the techniques talked about here at [javascriptwebscrapingguy.com](https://javascriptwebscrapingguy.com), we’ve been able to launch a way to access awesome web data. Learn more at [Cobalt Intelligence](https://cobaltintelligence.com)!

The post [Scraping California, Part 3. Mostly final polish](https://javascriptwebscrapingguy.com/scraping-california-part-3-mostly-final-polish/) appeared first on [Javascript Web Scraping Guy](https://javascriptwebscrapingguy.com).
Sinatra Project
Published: 2020-11-23 05:36:47

 Going through this project was totally different from creating the first CLI project. Although Ruby was still being used there were many more factors that had to present for this application to work. Learning the different components of the app, what each section did, and how everything should flow made bringing those pieces together to function simultaneously that much simpler. Being that most of our methods were built in the gems and macros that wrote some of our code for us I found that when I started off there was somewhat of a relief.
I did my project with the trips I can’t wait to take once traveling is safe again on my mind. Once a user is signed up the can begin to start a list of their dream post pandemic travel places they plan on going to. They then have the options to delete that place maybe if they no longer wish to visit, or edit it if they had a city they’d wish to visit more.
The different HTTP request and what each of the restful routes were to produce seemed to be more of a challenge that I initially thought I could handle. Each time I read through the material or watched a video on how to build a Sinatra app I learned something I hadn’t yet known. Seeing how many things went into it was pretty nerve wracking until my memory of what something was for and why it’s there. When going through it and being able to explain it out loud was when I could finally breathe easy and tell myself I GOT THIS.
Certified Microsoft exam for $15 only
Tags: powerplatform, azure, microsoftteams, microsoft365
Published: 2020-11-23 14:04:34

[For those who are looking for a job. #Microsoft helps by certifying 1 @Azure @MSPowerPlat @MicrosoftTeams exam for $15 only. That's a great chance.](https://docs.microsoft.com/en-us/learn/certifications/skillingoffer)

#PowerPlatform #MicrosoftTeams #Azure #Microsoft365

Happy Learning and Certified!
The Product Goal is a commitment for the Product Backlog
Tags: newsandreviews
Published: 2021-02-07 17:26:37

---
title: The Product Goal is a commitment for the Product Backlog
published: true
date: 2020-11-23 14:01:00 UTC
tags: NewsandReviews
canonical_url: https://nkdagility.com/blog/the-product-goal-is-a-commitment-for-the-product-backlog/
---

In [the 2020 Scrum Guide](https://nkdagility.com/the-2020-scrum-guide/) Ken and Jeff introduces the idea of the [Product Goal](https://nkdagility.com/the-2020-scrum-guide/#commitment-product-goal). The [Product Goal](https://nkdagility.com/the-2020-scrum-guide/#commitment-product-goal) is a commitment to ensure transparency and focus against progress.

> The Product Goal describes a future state of the product which can serve as a target for the Scrum Team to plan against. The Product Goal is in the Product Backlog. The rest of the Product Backlog emerges to define “what” will fulfil the Product Goal.  
> A product is a vehicle to deliver value. It has a clear boundary, known stakeholders, well-defined users or customers. A product could be a service, a physical product, or something more abstract.  
> The Product Goal is the long-term objective for the Scrum Team. They must fulfil (or abandon) one objective before taking on the next.
> 
> <cite><a href="https://nkdagility.com/the-2020-scrum-guide/#commitment-product-goal">The 2020 Scrum Guide</a></cite>

The Product Goal is an objective to try and meet rather than a guarantee. We may start on the journey towards the Product Goal and discover that there is a better place to go. While the Product Goal is there to give the Scrum Team focus towards an overall objective, it is also important to realise that it is not immutable. If the Scrum Team realise that the Goal is no longer valuable, or that some other goal becomes more valuable then they should change it.

Some Good Examples of a Product Goal:

- “Reach 10,000 new users in 6 months”
- “Improve the customer experience by improving the NPS over the next year”

The [Product Goal](https://nkdagility.com/the-2020-scrum-guide/#commitment-product-goal) should be a singular Goal that each Sprint Goal can be crafted towards. It should be short, measurable, and easy to understand. Everyone on the Scrum Team and the wider organisation should understand it and how the work that they are doing contributes to it. It is similar to the Visionary Goal that a Business Doctor I engaged helped me create for my business. Every product, every project, and every business should have a Visionary Goal. In Scrum, we call it the [Product Goal](https://nkdagility.com/the-2020-scrum-guide/#commitment-product-goal).

Do you have a Product Goal?

The post [The Product Goal is a commitment for the Product Backlog](https://nkdagility.com/blog/the-product-goal-is-a-commitment-for-the-product-backlog/) appeared first on [naked Agility with Martin Hinshelwood](https://nkdagility.com).
Pitfalls of static code analysis: class, function, or method length rules
Tags: cleancode, staticcodeanalysis, refactoring
Published: 2020-11-23 13:50:54

Lack of code quality is a re-occurring problem in many software projects, teams, and organizations. [Static code analysis](https://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis) with a set of simple rules seems like a good solution to the problem.

There are some pitfalls of static code analysis, and I wanted to share my thoughts about one of the rules: **class, function, or method length restrictions**.

### The rule

Whenever there's a lengthy fragment of code, there's a problem with it. Most certainly it violates the [single-responsibility principle](https://en.wikipedia.org/wiki/Single-responsibility_principle), it is hard to understand and troublesome to update.

A rule that enforces a hard limit of X lines per code block is a seemingly simple and effective solution. However, it introduces behavior that I would call **mechanical refactoring**. 

### Mechanical vs. insightful

Mechanical refactorings are happening when something external is enforcing it: e.g., when a certain number of lines is reached and the commit or merge is blocked. They are happening not when talking to domain experts, or when there are new insights arising from working with the code, or when new abstractions are being discovered. To contrast the two types of refactoring, I'd call the latter **insightful refactorings**. 

Mechanical refactorings require the answer here and now, insightful ones can grow and ripen in people's heads for days or even weeks. The quality of a mechanical refactoring is thus often less than of an insightful one. A quick low-quality mechanical refactoring today might also obstruct the view or make an insightful refactoring harder next time.

### What to do?

If you think there's a problem with the software quality of your product, I'd advise focusing on the people, not on the tools like ones for static code analysis.

Get your team members excited about clean code, give them time and space to think about the code and the domain, give them time and space to practice writing cleaner code, to experiment with it.

That's it, happy coding!
My Expedition With JavaScript: Interpretation of JS Scopes
Tags: javascript, 100daysofcode, beginners, codenewbie
Published: 2020-11-23 13:41:31

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/o2rdgve4sbvioffq5pk5.png)

#<h1> Hello Dev World </h1>
I hope you all are keeping safe and getting adapted to the new normal. I am reinitiating my journey into the world of JavaScript after a break and I thought there is no better way to commit myself to this new endeavor than documenting my up’s and down’s with the most popular programming language out there.

###Today, I tried to learn about **“Scopes”** in JavaScript. Here’s what I understood in most condensed form:

* Scopes in JavaScript can be understood as 
> “A set of rules that defines where you can access a particular value”.

* Scopes can be divided into two categories:
    Global Scope
    Local Scope

* **Local Scope:** Whenever you define a variable inside a function its scope gets limited to the function itself i.e. You can’t access that variable outside that function.

* **Global Scope:** When a variable is declared outside any function and can be accessed by any function whatsoever. Then its scope can be considered as Global Scope.

* Scopes are determined “Lexically”. It means that function can use a variable defined outside its code block only when the variable is declared beforehand.

* Nested Functions creates a *_Scope Chain_* that ends at the Global Scope level.

###Let’s See This In Action

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/486x1ksi2oziyog0cvhi.png)

In the example above, I have declared a variable *“a”* under the carnage of *_“Global Scope”_* and another variable *“b”* under the code block of the function named *“add5”*  and the scope of the variable is *_“Local Scope”_*.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ojbzom20f4xs4b2nqyyl.png)

Due to the method of the declaration mentioned above *“variable a”* can be used whenever and wherever the user required independent of the code block while *“variable b”* can be used inside the function *“add5”* only.

That’s what I have learned today. I will try my best to keep this streak up and running all I need from you guys is support and motivation. Will catch up with you guys in the next post till then *“Keep Learning, Keep Growing”*.

*Namaste*
Siddhant Jha
🆙 How to Improve Customer Experience in Your Mixed Environment
Tags: ux, iam, security
Published: 2020-11-23 13:40:52

👤 A customizable Identity and Access Management (IAM) solution is key to improving CX in mixed environments.
[Read more...](https://auth0.com/blog/how-to-improve-customer-experience-in-your-mixed-environment/?utm_source=content_synd&utm_medium=sc&utm_campaign=custom_xp)
You don't have to be a web developer to be a programmer
Tags: watercooler, beginners
Published: 2020-11-23 13:25:55

When I first started out coding, I was sickened with impostor syndrome. All these great web developers with their fancy portfolios. But I'm not them. I can't design anything at all. I can't make things look beautiful or elegant.
But, the world is rifled with "learn to program by becoming a web developer".

I felt like I was destined to be a bad programmer as I couldn't do web development no matter how much I tried.

As I grew up, I realised that I don't have to be a web developer. Backend developers are just as cool, and even cooler to me personally. 

I feel like this is because:
* Web developers have more to show off
* The vast majority of people becoming programmers go into web development (likely due to the fact that the web developers know how to build a well designed course / website)
* Websites like Dev.to are predominantly about web development (sort by top posts of all time, it's all web dev 😎)

Soo if you're a beginner programmer, I wanted to let you know that you don't have to be a web developer to be a good programmer. You don't even have to touch HTML if you like!

There are thousands of programmers not involved in web development. You don't even have to be a backend developer (that develops server-side applications). There are thousands of jobs where you develop internal tooling, databases, security and more.

Remember. Web development is not the only goal. You can become a great programmer without touching HTML or CSS. 

While I'm not the best example, my projects have around ~9k GitHub stars. Hopefully you can see that people love non-web projects just as much as they do web projects. And you can use GitHub as your portfolio instead of some fancy Vue / React / Whatever JS framework is popular portfolio.


{% github bee-san/bee-san%}

One last time.

**You don't have to be a web developer to become a programmer 💖**

Feel free to follow me on Twitter:
https://twitter.com/bee_sec_san
Question on Shortest Job First | Operating System - M02 P06
Tags: linux, codenewbie, beginners, devops
Published: 2020-11-23 13:17:22

**This is a multipart blog article series, and in this series I am going to explain you the concepts of operating system. This article series is divided into multiple modules and this is the second module which consists of 11 articles.**

_In this article we will see a question on shortest job first and try to understand the concepts of SJF operation in an operating system._

***Question:*** The gantt chart for pre-emptive shortest job first scheduling algorithm will be?

Process No. | Arrival time | Burst time |
--- | --- | --- |
P1 | 0 | 7 |
P2 | 1 | 4 |
P3 | 2 | 8 |

i.) 
![Untitled Diagram.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606137184947/6dbL8q45-.png)
<!-- First image will come here -->

ii.) 
![Untitled Diagram (1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606137201141/FQWZRpps_.png)
<!-- Second image will come here -->

iii.) 
![Untitled Diagram (2).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606137210242/McC7DdqgS.png)
<!-- Third image will come here -->

iv.) 
![Untitled Diagram (3).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606137224563/mNYxCz6MH.png)
<!-- Forth image will come here -->

***Answer:*** (iv.) ![Untitled Diagram (3).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1606137224563/mNYxCz6MH.png)
<!-- Forth image will come here -->

***Explanation:***
- Pre-emptive shortest job first (SJF) is also known as _shortest remaining time first_.
- Gantt chart always starts from zero.
- The process `P1` arrives at CPU at time unit `0` with burst time of `7` units, it get executed for `1` unit of time. Now the remaining burst time of process `P1` is `6`.
- At time unit `2` process `P2` also arrives at the CPU with burst time of `4` units less than the burst time of `P1`, so `P1` will be preempt and `P2` will start executing, it will get executed completely and terminated because no other process have less burst time then it.
- Process `P3` has already arrived to CPU at time unit `2`.
- If we check the time units of the both the processes present in the ready queue, we see that `P1` have burst time of `6` unit left and `P3` have `8` units of burst time. So, `P1` will again start its execution till it ends.
- `P1` ends at time unit `11` and then `P3` start its execution and get terminate at time unit `19`.

_So, this was all about pre-emptive shortest job first CPU scheduling algorithm in an operating system. Hope you liked it and learned something from it._

If you have any doubt, question, queries related to this topic or just want to share something with me, then please feel free to contact me.

### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)
Black Friday Deals for React Developers
Tags: discuss, react, javascript, webdev
Published: 2020-11-23 13:17:14

I was looking for **React.js** learning resources which are on sale this Black Friday ( 2020 ) and the only resources I found on sale are **Udemy** courses in the beginning 🤷🏻‍♂️

So, I am creating this discussion where everyone can share if they know any **React.js Learning Resource on SALE** in comments.

I will keep updating the list below by taking information from comments.

Here goes:

# LEARNING

### 1- Udemy - 9.99$
[React courses on SALE](https://www.udemy.com/courses/search/?q=reactjs&src=sac&kw=reactjs)

### 2- Pluralsight - 40% off
Check out their [React courses](https://www.pluralsight.com/paths/building-web-applications-with-react)

### 3- React for Beginners - 50% off
[React for beginners](https://reactforbeginners.com/) by **Wes Bos** . Also [Advanced React](https://advancedreact.com/) and [Mastering Gatsby](https://mastergatsby.com/) by Wes Bos have same discounts.

### 4- Dave Ceddia - Pure React - Coming Soon
Keep an eye on his [Twitter account](https://twitter.com/dceddia) and [Website](https://daveceddia.com/)


### 5- Learnetto - Coming Soon
Sale page [link](https://learnetto.com/blackfriday)

--------------------------------------------------------------


Please help grow this list.
Renderless Dialogs (Alert, Confirm, and Prompt) in Vue
Tags: javascript, vue
Published: 2020-11-23 13:17:11

Javascript has a few handy functions used to interrupt the users workflow and warn them of something or get feedback from them. Those functions are alert(), prompt(), and confirm(). While these functions are very easy to use they come with a few drawbacks:

1. They cannot be styled
2. They look different across different browsers
3. They can only contain plain text
4. The prompt can only accept text input (no checkbox, selects, etc)
5. You can't customize the button text

While I really like the ease of use these functions provide, I don't like working within the restraints put on them. Therefore, today we're going to build a "renderless dialog" object that will mimic the behavior of alert(), prompt(), and confirm().

Read the rest at https://danielkelly.io/blog/renderless-vue-dialog
40% OFF for 4 months - Cloudways Black Friday 2020 Offer
Tags: webdev, promocode, discount, coupon
Published: 2020-11-23 13:16:19

---
title: 40% OFF for 4 months - Cloudways Black Friday 2020 Offer
published: true
description: This BLACK FRIDAY, Cloudways is offering 40% off for 4 months on all managed cloud hosting plans. Just use the coupon code while signing up, and enjoy hassle free hosting.
Offered Deal: 40% OFF for 4 months
Coupon Code: BFCM2020
Deal Duration: 23rd November to 2nd December

tags: #webdev, #promocode, #discount #coupon
---

This BLACK FRIDAY, Cloudways is offering 40% off for 4 months on all managed cloud hosting plans. Just use the coupon code while signing up, and enjoy hassle free hosting.

Offered Deal: **40% OFF for 4 months**
Coupon Code: **BFCM2020**
Deal Duration: 23rd November to 2nd December

<a href="https://www.cloudways.com/en/">**40% OFF for 4 months - Cloudways Black Friday 2020 Offer**</a>


---
Regex: finding repetitions
Tags: regex
Published: 2020-11-23 13:09:00

Finding repeating characters in a string - whether it's a [Run-length encoding](https://en.wikipedia.org/wiki/Run-length_encoding) exercise on [exercism.io](https://exercism.io), a task during a technical interview, or even a production feature like validating created users passwords - is easily implemented using a simple regular expression.

The regex feature that we'll need is called "backreference". While the examples below are in JavaScript, this feature is defined as part of the [POSIX standard](https://en.wikipedia.org/wiki/Regular_expression#POSIX_basic_and_extended), so it supported in various other languages.

Let's get started:
```javascript
const repetitions = input => input.match(/(.)\1+/g)
```

Let's test it out:
```javascript
console.log(repetitions('bookkeeper')) 
// expected output: Array ["oo", "kk", "ee"]
console.log(repetitions('длинношеее'))
// expected output: Array ["нн", "еее"]
```

That's it. Happy coding and regexing!
Daily Developer Jokes - Monday, Nov 23, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-11-23 13:00:21

---
title: "Daily Developer Jokes - Monday, Nov 23, 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=Monday%2C%20Nov%2023%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/5e1259316ab83.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 are the three hardest problems in computer science?

___A:___ Naming things and off-by-one errors
 -->
🧩 Why Aren’t More Businesses Using SaaS Components?
Tags: identity, values, security
Published: 2020-11-23 13:00:01

💡 Auth0 report reveals that despite budget barrier removal, adoption remains immature.
[Read more...](https://auth0.com/blog/why-arent-more-businesses-using-saas-components/?utm_source=content_synd&utm_medium=sc&utm_campaign=saas_comp)
Getting Started with CSS Art... :)
Tags: codepen, css
Published: 2020-11-23 12:55:31

---
title: Getting Started with CSS Art... :)
published: true
tags: codepen, css
---

<p>First attempt at CSS art. Mostly from following a tutorial post on <a href="https://www.creativebloq.com/features/get-started-with-css-art">Creative Bloq</a> with some tweaks for my own artistic choices and incorporating CSS variables to make my life easier when tweaking colours, values.</p>

{% codepen https://codepen.io/kopijunkie/pen/mdENOQd %}