teleren/devto huggingface dataset:
Contribute to BotKube during Hacktoberfest
Tags: hacktoberfest, showdev, opensource, kubernetes
Published: 2020-09-30 13:20:24

BotKube is an open-source super bot for your Kubernetes cluster.

It can be integrated with multiple messaging platforms like - Slack, Mattermost, Microsoft Teams to help you monitor your Kubernetes cluster(s), debug critical deployments, and gives recommendations for standard practices by running checks on the Kubernetes resources.

Learn more at [botkube.io](https://botkube.io)

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

Hacktoberfest is just around the corner and BotKube is all set with the preparations this Preptember ;)

_Learn more about the fest and swag here: https://www.infracloud.io/blogs/infracloud-joins-hacktoberfest-2020/_

### Not sure how to start? Here are some steps:

1. Try to understand what we are trying to solve and how BotKube works. Documentation is published here https://www.botkube.io

2. Go through the [CONTRIBUTING](https://github.com/infracloudio/botkube/blob/develop/CONTRIBUTING.md) guide: 
Try to build BotKube from the source and run it.

3. Find an interesting issue to solve.
Go through the open issues listed [here](https://github.com/infracloudio/botkube/issues). You can choose anyone from an existing open issue or propose/create a new issue if you feel something is missing and want to improve. The first-timer issues are tagged with `good-first-issue` or `hacktoberfest` labels. Such issues are simpler and comparatively easy to fix. So you can start with that.
Feel free to join BotKube Slack workspace at [join.botkube.io](https://join.botkube.io) and raise questions, discuss anything.

Happy hacking :rocket:
Frontend Masters review
Tags: beginners, tutorial, codenewbie, learning
Published: 2020-09-30 12:28:50

Have you ever found yourself in the middle of a 10-hour lecture about [JavaScript Foundations](https://frontendmasters.com/courses/deep-javascript-v3/) and wonder what happened with your life, why are you here, and why are you enjoying learning this soo much? Not yet? Then here is your chance: Frontend Masters can give you that!

When I first checked out this site, I only saw that they don't have as many teachings as other big sites, and they are not even the cheapest. I decided to try it out just one course... oh my! How much my perception changed instantly!

Excellent lecturers, very detailed courses. After finishing any one of them, you will feel more. You know more, understand the topic deeply, and can't wait to use the freshly acquired knowledge in action!

The name is tricky since there are many other topics here, not just frontend. Go, Python, Machine Learning, Node, Data Structures, and many other topics are covered here. They also have regular workshops with various subjects.

Where to start if you decide? For web developers, I suggest anything from [Kyle Simpson](https://frontendmasters.com/teachers/kyle-simpson/) or [Will Sentance](https://frontendmasters.com/teachers/will-sentance/). They are one of the best lecturers I've ever seen in any of the tutorial sites.
Is 2021 the end of AngularJS?
Tags: angular, angularcli
Published: 2020-09-30 12:59:48

AngularJS is a JavaScript-based open-source front-end web framework mainly maintained by Google and by a community of people and corporations to deal with many of the challenges encountered in developing single-page applications. Angular is its successor and uses equivalent philosophies like declarative templates and dependency injection.

To develop web applications AngularJS is the stable framework and utilized by number of developer around the globe. The usage of Angular is also expanding faster than Angular JS and new releases have been introduced and are planned to release in upcoming years.
Currently there are number of developers are out there using AngularJS and it’s been complex task for everyone to perform immediate migration process.

In 2018, they announced that the major releases will be ceased after the release of AngularJS version 1.7. Currently it’s under LONG TERM SUPPORT (LTS) period so, there will not be any kind of new major releases. The team of Angular JS totally focus on publishing patch releases, 1.7.1, 1.7.2 etc. These release only include non-breaking change features and fixes to the framework. So their existing users do not have to face any security concern or other bug issues.

That means that there’ll be no more releases of AngularJS: so no more features. This does not denote that you must cease utilizing AngularJS: it will resume to work for you as it does now.
All AngularJS applications that work now will resume work in the future. AngularJS has not received many new features within the last year approximately. It is a very sophisticated and consistent product. As a consequence of that and the many projects using it in production, the vast majority of bugs have been identified and fixed. Therefore it’s unlikely that new bugs are going to be discovered during and after the LTS period. Nor does it mean that you simply must upgrade to Angular: indeed many projects will never upgrade; they simply work as they are and do not need to be modified to use Angular. If you’re actively developing your application, and you identify that AngularJS won’t support your current or future requirements then that might be a honest time to consider upgrading to Angular.

If you’re planning to migrate from AngularJS, kindly contact Vibidsoft as they have in-house team of expertise who can help you to do so. You can shoot an email to inquiry@vibidsoft.com
Functions - Arguments vs Parameters
Tags: javascript, functions, todayilearned
Published: 2020-09-30 12:54:56

I have been doing some deep dive reading in my pursuit of learning JavaScript better.  Today's learning is about functions and specifically the difference between **arguments** and **parameters**.

> *Arguments* are the values you pass in, and *parameters* are the named variables inside the function that receive those passed-in values.

The example:
```javascript
function foo(x,y) {
// ..
}

var a = 3;

foo(a, a * 2);
```
> `a` and `a * 2` (actually, the result of `a * 2`, which is `6`) are the *arguments* to the `foo(..)` call. `x` and `y` are the *parameters* that receive the argument values (`3` and `6`, respectively).

from *Functional-Light JavaScript* by Kyle Simpson
Which LaTeX dialect do you use?
Tags: discuss, latex, help, writing
Published: 2020-09-30 12:49:14

Recently, I found that I can beautifully convert Markdown to PDF, with not only `<pre><code>` syntax highlighting, but also LaTeX syntaxes for page break, and PDF includes.

![Markdown with LaTeX](https://dev-to-uploads.s3.amazonaws.com/i/zt3caqk4wt53a67te9ym.png)

However, some important markdown features are missing, including

- Cannot style with CSS (I tried using `color: blue;` for text color), or JS async (e.g. for extended syntax highlighter, like Prism.js or highlight.js)
- Cannot include online images
- Local images are relative to present working directory `$PWD`, rather than file location

This follows the fact that there are multiple markdown implementations, as well as one may write plugins for markdown compilers.

{% post https://dev.to/patarapolw/which-markdown-implementation-would-you-choose-and-why-2gj4 %}

There seems to be multiple LaTeX implementations as well, and what is included by default (by `pdflatex`, `texlive`, [VSCode extension](https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop)) might not be exactly what you want.

Also, RMarkdown in RStudio seem to be working well, both for PDF printing and HTML for web.

So, what do you suggest? (especially for printed pages authoring)
Microsoft Reactor Pop-Up Event! DevOpsDays Buffalo AMA with Jay Gordon

Tags: devops, qanda, azure
Published: 2020-09-30 12:36:37

We invite you to a pop-up Ask Me Anything (AMA) virtual session with me Jay Gordon, Cloud Advocate at Microsoft. 

Whether you're attending DevOpsDays Buffalo or not, I'd love to speak with you and find out all your thoughts on DevOps.  We'll talk about your concerns, your interests, and hopefully, teach you something useful!

![showcase](https://d33wubrfki0l68.cloudfront.net/80f02c6720bf138634484f61f724efd608b270fb/d03d3/events/2020-buffalo/showcase.png)

Get all your burning DevOps questions answered from me, and earn some swag! I am not only speaking at Devopsdays Buffalo, but I am also an organizer for DevOpsDays NYC.

Prior to Microsoft, I was part of teams at DigitalOcean, BuzzFeed and MongoDB. If you really want to make the most of this AMA, ask me about Linux, System Administration, or Databases too! 

Mark your calendar for Oct 1st at 4pm Eastern, and join directly at: 

https://aka.ms/PopUpAMA-DevOpsDay
[Devopsdays Buffalo](https://devopsdays.org/events/2020-buffalo/welcome/)
Matz talks mRuby at Barcelona Ruby Conf 2014
Tags: ruby, rails, todayilearned
Published: 2020-09-30 11:21:54

 
_Past Rubies is a tiny weekly newsletter that shares curated historical content from the Ruby community. Consider it Ruby&#39;s version of &#39;on this day in history&#39;. New issues every Wednesday. [Subscribe to get this to your inbox](http://pastrubies.com)_

* * *

## [Yukihiro Matsumoto - mruby: AltRuby](https://www.youtube.com/watch?v=5FLrKg-b6o8)
  

 ![B5fxqzb](https://i.imgur.com/B5fxQzB.png)
  

_Ruby is in satellites. Ruby is being used in hardware. A lot of this work is built off of mruby (embedded ruby) and affiliated projects. Here&#39;s a great talk Matz gave six years ago this week about a fair few things including mruby. :)_

## [Using Rust with Ruby, pair programming with Yehuda Katz in 2015](https://www.youtube.com/watch?v=IqrwPVtSHZI)
  

 ![Jj21mym](https://i.imgur.com/JJ21myM.png)
  

_Book out some time to sit down and watch this. We get to see \*two hours\* of pair programming with Yehuda Katz this week five years ago using Rust with Ruby_

## [Ruby with BetaBrite in 2007 with Aaron Patterson](https://web.archive.org/web/20070210111025/http://tenderlovemaking.com/2006/09/28/new-ruby-betabrite-002/)
  

 ![Emkiabd](https://i.imgur.com/emKIaBd.png)
  

_This week THIRTEEN YEARS AGO Ruby hero tenderlove released a new version of the ruby BetaBrite sign library, allowing you to compose ruby to control betabrite signs. This was ruby in the IoT space many years before the phrase IoT existed! Write in if you get the code up and running. :)_

## [Making Javascript more Ruby-esque with JsClass in 2008](https://i.imgur.com/emKIaBd.png)
  

 ![Dlbmgzc](https://i.imgur.com/dlBMGzc.png)
  

_Twelve years ago this week people were turning their heads towards JsClass; which takes a lot of elements we love about ruby and implements them in Javascript. Note here in the screenshot that yes, that includes an Enumerable implementation! I would love to see if we could get this running on today&#39;s javascript._
Write API tests for HTTP GET method
Tags: testing, javascript, beginners, tutorial
Published: 2020-09-30 12:06:21

Let's take a look at how to write API tests using JavaScript for HTTP GET method.

So in the [previous post](https://dev.to/automationbro/writing-your-first-api-test-using-javascript-15l2), we wrote a basic GET test to get us started, and now we'll take a step further and write a couple more of GET tests to get a good understanding of them. 

### Accessing an individual resource
In this test, we'll try to access data for an individual user.

```javascript
 // access the user data based on the id provided
 it('GET /users/:id', () => {
    return request.get(`users/1?access-token=${TOKEN}`).then((res) => {
// validate the data being returned is of the expected user
      expect(res.body.data.id).to.be.eq(1);
    });
  });
```

### Working with query parameters
Sometimes, you need to provide query params to filter out the data being requested.

```javascript
// Filtering data based on page, gender and status
 it('GET /users with query params', () => {
    const url = `users?access-token=${TOKEN}&page=5&gender=Female&status=Active`;

    return request.get(url).then((res) => {
      expect(res.body.data).to.not.be.empty;
// validate all the data being returned are as per the query params provided
      res.body.data.forEach((data) => {
        expect(data.gender).to.eq('Female');
        expect(data.status).to.eq('Active');
      });
    });
  });
```
Alright, so this covers pretty much the majority of the scenarios that you will work with when writing API tests for HTTP GET methods. 🙌

#### Check out this video to see a detailed explanation on how to work with HTTP GET method:

{% youtube VrsMlnX6pUY%}

You can also clone the [GitHub repo](https://github.com/automationbro/JavaScript-API-Automation-Tests) to access this code

***

#### To learn more about API testing, check out my free tutorial series here - 
https://www.youtube.com/watch?v=ZSVw3TyZur4&list=PL6AdzyjjD5HDR2kNRU2dA1C8ydXRAaaBV&ab_channel=AutomationBro
***

I hope this post helped you out, let me know in the comments below! 

Happy testing! 😄 

...

Subscribe to my [YouTube](https://www.youtube.com/channel/UCjugV5pnY6WjvTGYm7U1ucg?sub_confirmation=1) channel
Support my work - https://www.buymeacoffee.com/automationbro
Follow [@automationbro](https://twitter.com/automationbro) on Twitter
Magento 2 B2B Themes: convenient, time-saving, growing sales and effective marketing
Published: 2020-09-30 12:02:13

Ecommerce has already become popular in the retail business sector. And it continues rapidly growing. The wholesale also keeps this pace to enjoy the great benefits that eCommerce can offer. 

But many businessmen wonder how to build a perfect website that the customers will enjoy using. The right Magento theme will help you with this. Choosing the Magento 2 B2B theme you will enjoy the following benefits:

* The website will be convenient and quick
* It will save the working time of your employees
* Improved quality of services you provide to your customers that will result in higher loyalty
* Your sales will grow thanks to providing your customers with the opportunity to describe and show your products in detail
* Better marketing thanks to receiving more personalized data about the customers.

Our experience enabled us to collect all the information regarding B2B themes necessary to create the eCommerce solution that your customers will love. 

Check our [list of the best ready-made Magento 2 B2B themes](https://dinarys.com/blog/magento-2-b2b-theme) as well as discover how you can benefit from the development of the custom solution.
Benefits of data modernization
Published: 2020-09-30 12:00:26

In spite of the difficulties they face with legacy modernization, industries like banking and financial administrations, life sciences, retail, and transport and logistics perceive the need of a legacy system – and information modernization specifically – as methods for staying reasonable in the present competitive markets. Subsequently, information modernization will be a key focus zone for these endeavors going ahead. This point of view is expected to enable those enterprises to change from the legacy world to the digital world by addressing the challenges related with information modernization.

The benefits of data modernization include:

1. Smoothing out existing tasks to reduce expenses and boost edges

Here, the quick advantage is the investment funds from moving your information from in-house server farms to more financially savvy, effectively versatile cloud stages. But, the greater enhancements come utilizing artificial intelligence and AI to create experiences.

2. Business Agility

Legacy systems limit a business’ capacity to make new features and services. Rather, most assign a group to break-fix & keep up without an arrangement for the future. You can undoubtedly beat these restrictions by carrying your legacy programming to the cloud by turning out microservices and containerization, which additionally enable your association to include new highlights and usefulness.

3. Staff Productivity
It’s with getting developers and authoritative groups to be more productive. The thought is to move the workforce to the cloud and influence existing services to turn out to be more gainful in everyday activities. There are many techniques can help streamline your <a href="https://nuvento.com/dedicated-software-development-teams/">software development team</a> for higher efficiency and better outcomes.

4. Client Experience 

You hurt the client experience when you attach your business activities to a legacy system. By modernizing, you empower new administrations and procedures. Your business can change its front-end UIs, make new highlights, automate previously manual procedures, and even launch new service contributions.
Daily Developer Jokes - Wednesday, Sep 30, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-09-30 12:00:02

---
title: "Daily Developer Jokes - Wednesday, Sep 30, 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=Wednesday%2C%20Sep%2030%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/5e1258b057385.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:___ Why did the functions stop calling each other?

___A:___ Because they had constant arguments.
 -->
SOLVED - SameSite Issue With Rails in Chrome
Tags: samesite, chrome, cookies, rails
Published: 2020-09-30 11:58:10

---
title: SOLVED - SameSite Issue With Rails in Chrome
published: true
description: Chrome launched a new update on February 4, 2020, with a new default setting for the SameSite cookie attribute. This affects the way the third party cookie access applications. In this blog, let’s dig deeper into the SameSite update and see what changes are needed for Rails applications.
tags: samesite, chrome, cookies, rails
cover_image: https://skcript.com/svrmedia/heroes/samesite-issue-with-rails-in-chrome.png
canonical_url: https://www.skcript.com/svr/samesite-issue-with-rails-in-chrome/
---
**What is SameSite?**

The SameSite attribute tells the browser when and how to use the cookie with first or third party applications. SameSite is used by most of the browsers to identify whether or not to allow cookies to be accessed.

The Values for SameSite attributes include

- **Lax -** enables only the first-party cookies to be accessed.
- **Strict -** enables only the first-party cookies and also does not allow request from an external site to access the cookies.
- **None -** enables the cookies to be accessed by third parties/external sites.

**Update In Chrome:**

Previously, if the SameSite attribute is not set, it was defaulted to ‘none’ - which allows the third-party to access the cookies. Now, if the SameSite attribute is not set, Chrome defaults to ‘lax’ which allows only the first party to access the cookies.

So, if you need your application cookies to be accessed by a third party then we need to explicitly specify SameSite as ‘none’. In this case, we also need to specify **Secure.** Only if we explicitly specify ‘**SameSite: None; Secure**’, the cookies are shared to the third party.

**How do we resolve this issue in Rails?**

To resolve this issue in Rails, we need to explicitly set the cookies with SameSite=None and Secure. To set the SameSite and Secure we need to modify the **session_store.rb.**

```rb
config/initializers/session_store.rb

Rails.application.config.session_store :cookie_store, {
  :key => '_application_session',
  :domain => :all,
  :same_site => :none,
  :secure => :true,
  :tld_length => 2
}
```

The only catch is since we have specified the Secure attribute, the cookies will be shared only with the secured connection(HTTPS). In order to test this in your development environment, use [ngrok](https://ngrok.com/).

That’s it! Your application will work perfectly in Chrome. Cheers!
Azure Storage Explorer and Multi-Factor Authentication
Tags: azure, authentication
Published: 2020-10-08 14:27:14

---
title: Azure Storage Explorer and Multi-Factor Authentication
published: true
date: 2020-09-30 11:49:17 UTC
tags: Azure,Authentication
canonical_url: https://SimonReynolds.ie/azure-storage-explorer-and-multi-factor-authentication/
---

 ![Azure Storage Explorer and Multi-Factor Authentication](https://images.unsplash.com/photo-1509822929063-6b6cfc9b42f2?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=2000&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ)

We use multi-factor authentication for all azure accounts and access at $EMPLOYER, because of course we do (and you should too). Being hacked isn't fun at the best of times, having your azure account being hacked is a quick route to a whole (and expensive) world of pain.

This is great and provides a lot of extra security. But it's also a massive pain in the ass when you have multiple subscriptions and need to do the whole username, password, MFA challenge on _every_ subscription when you open Azure Storage Explorer.

To get around this, click Edit -> Settings and select the following option:

> Microsoft Authentication Library (Preview)

![Azure Storage Explorer and Multi-Factor Authentication](https://simontaite.com/content/images/2020/09/AzureStorageExplorer.png)

Then restart Azure Storage Explorer and authenticate one last time. Now your subscriptions will remain signed in across restarts and when you open Storage Explorer you can get straight to what you want to do instead of yet another round of approving multiple sign in requests.
3 interesting APIs to build with this week
Tags: api, webdev, beginners
Published: 2020-09-30 11:48:52

---
title: 3 interesting APIs to build with this week
published: true
description: A summary of three interesting APIs that you can start using today
tags: API, webdev, beginners
---

APIs are fun to tinker with while learning and can also save you huge amounts of time while building new products or features.

Here are some I found last week, with some ideas of how you could use them

[Bannerbear](https://www.bannerbear.com/) - This API lets you generate unlimited variations of images & videos based on templates you designed ahead of time. There are so many ways you could use this to streamline design processes, such as automating OG images on a blog or e-commerce site, but what’s more interesting to me is that there are whole products that can be built with this.

For example, it could be used to create a Chrome extension that lets people easily generate quote images to share on Instagram while they browse the web. The new video API is also super interesting and I’m sure there are loads of use cases I haven’t even thought of.

[Waitlist API](https://getwaitlist.com/) - This simple API does what it says on the tin. It makes it easy to create a waitlist with a referral system, so you can create some buzz about a product or feature before launching. It handles the leaderboard/referral link type stuff so you can get your waiting list up and running without having to re-invent the wheel.

[Oil Price API](https://www.oilpriceapi.com/)  - Another API that does what it says on the tin - it gives you live & historical oil prices. You can use this to set Oil price alerts or look for patterns between oil price fluctuations and changes in other data sets (Crypto, Flight prices, etc).

I'm not affiliated with any of these APIs, but I have started [a newsletter where I share new & interesting APIs I come across](https://metapine.com). If you've recently come across an API that other developers would find interesting, please let me know