teleren/devto huggingface dataset:
My team is hiring 2 more Developer Educators! ️
Tags: jobhunting, career, newjob
Published: 2020-12-15 00:39:22

### 🚨 Are you job hunting? 🚨


Then search no more, cause my org is hiring! 🥳


We need 2 more **Developer Educators** for the [Expedia Group](https://lifeatexpediagroup.com/) **Conversation Platform** org's *Developer Experience* team.


Do you love maintaining API documentation and/or training content? 📄📑 We need folks dedicated to each in our team, and this is such a fun role to be in!


👉🏼 Also... least you be concerned this is yet ANOTHER Senior role, I am here to give you some good news! This role is not another Senior role! 


The Director for this org is trying to hire 50/50 of women/men in his org, and so far I've seen this team loves nurturing and mentoring anyone with a curiosity to learn and grow.


Please apply! We need you!❤️❤️❤️


### 👩🏻‍💻 APPLY HERE
https://lifeatexpediagroup.com/jobs/job?jobid=R-57647

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


### Where can I send you questions about the role?
📑 Comment below
📑 DM me on [Twitter](https://twitter.com/QuetzalliAle) or [LinkedIN](https://www.linkedin.com/in/alejandra-quetzalli/)
2 hr Workshop: Spring Boot, Spring Data and Cassandra
Tags: java, database, productivity, tutorial
Published: 2020-12-15 00:08:07

Santa has a *short* virtual workshop for the holidays from Datastax and the Spring Team:
Get hands-on, building a Todo App on Apache Cassandra with #springboot and #springdata on Dec 16th 5pm-7pm UTC or Dec 17th 8am-10am UTC.
Hosted by Cedric Lunven with special guest Mark Paluch from the Spring Data team -- Register now!
https://www.eventbrite.co.uk/e/workshop-build-a-todo-app-on-cassandra-with-spring-boot-and-spring-data-tickets-131363243999
Advent of Code 2020 and Ruby
Tags: adventofcode, ruby, challenge
Published: 2020-12-18 17:49:50

---
title: Advent of Code 2020 and Ruby
published: true
date: 2020-12-15 00:00:00 UTC
tags: adventofcode,ruby,challenge
canonical_url: http://blog.gnclmorais.com/advent-of-code-2020-and-ruby
---

After a year filled with so much [_sameness_](https://www.merriam-webster.com/dictionary/sameness) and spending way too much time at home for our own sake (and others), I’m surprised that tackling the daily challenges of [Advent of Code](https://adventofcode.com/2020/) have been keeping me happy and entertained.

As a break from my daily work with JavaScript and to keep my skills sharp, I’ve picked Ruby for it. Its performance shouldn’t be a problem for this kind of brain teasers and its syntactic sugar is always welcomed.

While trying to solve the second part of [day 14](https://adventofcode.com/2020/day/14), I found myself hogging my computer over and over again, trying to validate my algorithm. I was forced to fire up Activity Monitor and kill one of my `ruby` processes over and over again, which would be consuming several gigabytes of RAM! What was happening??

Even after finding a possible solution I was happy with, this kept happening — which meant I couldn’t get the answer to the puzzle. After stopping, reflecting a bit, and probing a few parts of the code, I had an idea — and it worked!

The challenge is about reading an input file and, with the values you get, write certain numbers in memory so you can sum them all up in the end. In my case, I was using an array to emulate the program’s memory and its indexes as the memory addresses.

This worked out well for a while… until I tried to write a value to the index `14694662143`! 💥 **This** was the culprit and, while I can’t find the maximum number of an array’s index in Ruby, I found a [few places](https://stackoverflow.com/a/6865199) that seem to point out that I was _way_ above the realm of possibility.

The fix was actually quite simple:

- instead of using an array (`[]`) to keep the addresses and `arr.compact.reduce(:+)` to sum all the numbers hold,
- I just changed it to a hash (`{}`) which still allows me to keep the values and use `arr.values.reduce(:+)` to sum them.

I guess Ruby tries to allocate an array as big as your index whenever you do something like this. If the index is _quite big_, Ruby will obey you but create some headaches. A hash won’t, you’ll only allocate what you assign, nothing in between.
How to turn off telemetry in Next.js
Tags: nextjs, blogvent
Published: 2020-12-15 23:24:50

---
title: How to turn off telemetry in Next.js
published: true
date: 2020-12-15 00:00:00 UTC
tags: nextjs, blogvent
canonical_url: https://www.netlify.com/blog/2020/12/15/how-to-turn-off-telemetry-in-next.js/
---

Welcome to Blogvent, day 15!

Next.js, through its CLI, collects anonymous telemetry data about general usage by default. The data collected includes:

- CLI command invoked (`next build`, `next dev`, or `next export`)
- The version of Next.js you’re using
- Your operating system
- Next.js plugins used in your project
- Duration of `next build` and size of application

This information doesn’t identify you in any way, but you might not want it to be collected. To disable this data collection, run this command at the root of your project:

```bash
npx next telemetry disable
# to re-enable, turn "disable" into "enable"
```

Similarly, you can check the status of telemetry data collection with this command:

```bash
npx next telemetry status
```

If you want to ensure this is a change in your codebase, you can also set an environment variable ([here’s more details how!](https://www.netlify.com/blog/2020/12/10/environment-variables-in-next.js-and-netlify/?utm_source=blog&utm_medium=envvartelemetry-cs&utm_campaign=devex)) in your project:

```bash
NEXT_TELEMETRY_DISABLED=1
```

## I want to start a new project!

Who doesn’t? Here’s a starter application to to try this out:

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/cassidoo/next-netlify-starter&utm_source=blog&utm_medium=nextstarterlogging-cs&utm_campaign=devex)

(Clicking this button will deploy a Next.js starter project to Netlify, and clone it to your chosen Git provider)
TOP 30 Mac Useful Tools
Tags: mac, webdev, productivity, tools
Published: 2020-12-14 23:30:09

## Dev

### Package manager

* [Homebrew](https://brew.sh/index_fr)

### Docker / K8S

* [Docker For Mac](https://docs.docker.com/docker-for-mac/install/)

* [Kitematic](https://kitematic.com/)

* [Kubernetic](https://www.kubernetic.com/)

### Database

* [DBeaver](https://dbeaver.io/download/)

* [TablePlus](https://tableplus.com/)

* [Studio3T](https://studio3t.com/download/)

### Text Editor

* [BoostNote](https://boostnote.io/#download)

* [MacDown](https://macdown.uranusjr.com/)

* [Sublime Text](https://www.sublimetext.com/)

### IDE

* [Atom](https://atom.io/)

* [VS Code](https://code.visualstudio.com/)

### Git / Terminal

* [iTerm](https://iterm2.com/) - [ZSH](https://ohmyz.sh/)

* [GitKraken](https://www.gitkraken.com/)

* [Termius](https://termius.com/)

### Docs

* [Dash](https://kapeli.com/dash)

## Utils

### Cleaner App

* [CleanMyMac](https://macpaw.com/fr/cleanmymac)

### Desktop / View

* [CopyClip 2](https://apps.apple.com/fr/app/copyclip-2-clipboard-manager/id1020812363?mt=12)

* [NTFS For Mac](https://www.paragon-software.com/fr/home/ntfs-mac/)

* [Amphetamine](https://apps.apple.com/fr/app/amphetamine/id937984704?mt=12)

* [Slow Quit Apps](https://github.com/dteoh/SlowQuitApps)

* [Rectangle](https://rectangleapp.com/)

* [Horo](https://matthewpalmer.net/horo-free-timer-mac/)

* [BetterTouchTool](https://folivora.ai/)

### Software

* [MacPass](https://macpassapp.org/)

* [VLC](https://www.videolan.org/vlc/index.fr.html)

* [FontBase](https://fontba.se/)

* [Google Chrome](https://www.google.com/intl/fr_fr/chrome/)

* [Insomnia](https://insomnia.rest/) - [Postman](https://www.postman.com/)

* [The Unarchiver](https://apps.apple.com/fr/app/the-unarchiver/id425424353?mt=12)

* [Mirror for Chromecast](https://apps.apple.com/fr/app/mirror-pour-chromecast/id1249397331)
Happy Birthday JavaScript!
Tags: codepen
Published: 2020-12-14 23:16:55

<p>A birthday card to JavaScript!</p>

<p>Heavily inspired by: <a href="https://dribbble.com/shots/11491933-Happy-Birthday-to-Me" target="_blank">https://dribbble.com/shots/11491933-Happy-Birthday-to-Me</a></p>

<p>Using: </p>

<p>Mo.js: <a href="https://mojs.github.io/" target="_blank">https://mojs.github.io/</a>
Splitting.js: <a href="https://splitting.js.org/" target="_blank">https://splitting.js.org/</a></p>

{% codepen https://codepen.io/cassidoo/pen/yLaVYbK %}
Day 276 : All Good
Tags: hiphop, code, coding, lifelongdev
Published: 2020-12-14 23:16:34

_liner notes_:
- Saturday : This weekend was a blur! All I remember is that I did the radio show from the park. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of Time's Person of the Year cover with Joe Biden and Kamala Harris with the words Dec 12th 2020, RIP Tommy "Tiny" Lister, Jr](https://dev-to-uploads.s3.amazonaws.com/i/3myjz7an30i1hnpoj6k4.jpg)

- Sunday : Pretty hectic day. I was asked to take part in a project and submit something. I had the option to do a video or write up answers to a set of questions. I wanted to take the opportunity to try out the new video and microphone equipment I got over Black Friday / Cyber Monday. Of course I had huge aspirations for the video! Considering it was my first time using the equipment, I ran into some issues but I worked through it. The video files were HUGE so that took some time to transfer, edit, process and render. I left it rendering overnight. Even with all that happening, the video came out pretty close to what I had envisioned. So it's all good.

- Professional : Got up early to see how the video rendered. Came out pretty good. Just needed to apply a couple of tweaks and add captions. Took a while to add the captions because my video editor was messing up. Then it was time to take part in a live stream. Always have fun with that. After, I went back to captioning the video because I wanted to get it turned in by today. Spoke with my manager about a project I'll be working on for our internal Hackathon happening this week. Asked some questions so I would have a clearer view of the outcome. Pretty good day.

- Personal : The final edit of the video is uploading. Got like 5 minutes left. I recorded the video in 5K, exported the footage in 4K. Looks pretty clean.

![A view into a valley in The Coromandel, New Zealand at sunset](https://dev-to-uploads.s3.amazonaws.com/i/q8mnlghpzynaygsdktzp.jpg)

Going to work on the YouTube upload functionality of my side project. Didn't get a chance this weekend because of the radio show and recording/editing the video. Left the project trying to get a file uploaded to Firebase storage. See how far I get.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube zSCU9SCUF84 %}
Why do I get "Invalid Switch *.class" when compiling Class to Jar files?
Tags: java, help, watercooler
Published: 2020-12-14 23:15:47

So I'm compiling, and I wrote `compile.bat` as I usually would:
```bat
@echo off
cls
cd .
javac resources/*.java
jar cmf program.jar manifest.txt resources/*.class
```
but it says:
```
resources\*.class : no such file or directory
Invalid switch - "*.class".
```
What am I doing wrong this time? I've never had this error.
What's New with Static Web Apps and Durable Functions
Tags: serverless, webdev, azure, github
Published: 2020-12-14 22:59:13

In this episode, Senior Program Manager, (and Former Azure Cloud Advocate) Anthony Chu talks to us about a variety of topics in including Azure Static Web Apps and shows off a couple of fresh demos around Durable Functions, Codespaces, and Custom Handlers.

We'll Also take a peak a Learn module introducing us to Azure Durable Functions and see if we can uncover an even better understanding of the topic covered in the show.
 
To get things started, Anthony gives us a real quick overview of what Azure Static Web Apps are followed by what the process looks like to deploy them.
 
Before we wrap up, Anthony and I take a look at a Learn module about Durable Functions. This is a great place to start if you'd like to learn more on the subject.

{% youtube Kf1qp6mh3CU %}
 
### 📺 All Around Azure no.045 - Anthony Chu & Jason Hand
 
#### Useful Links
 
💡 Related Docs: [Azure Static Web Apps documentation](https://07f.ca/45-doc) 
💡 Learn Module: [Create a long-running serverless workflow with Durable Functions](https://07f.ca/45-learn)

🔗 [What is Azure Static Web Apps?](https://07f.ca/45-url1)
🔗 Quickstart: [Building your first static web app](https://07f.ca/45-url2) 
🔗 [Fan-out/fan-in scenario in Durable Functions - Cloud backup example](https://07f.ca/45-url3) 
🔗 [What are Durable Functions?](https://07f.ca/45-url4)
🔗 [Azure Durable Functions documentation](https://07f.ca/45-url5)
🔗 [Durable Orchestrations](https://07f.ca/45-url6
🔗 [Azure Functions custom handlers (preview)](https://07f.ca/45-url7)
 
#### All Video segment of the Episode 
 
📺 [Episode Summary](https://youtu.be/Kf1qp6mh3CU)
📺 [Episode Demo](https://youtu.be/ASl2bJqAeW4)
📺 [Learn Module Overview](https://youtu.be/FKuGkF5CgzQ)
📺 [Full length unedited video](https://youtu.be/6TMWaCjKgsk)
 
#### Learn more about Anthony Chu
 
🔗 Twitter: [@nthychu](https://twitter.com/nthychu)
 
#### Find Us On
 
📺 [Channel 9](https://07f.ca/ch9) 
📺 [Twitch](https://07f.ca/twitch) 
🔗 [Twitter](https://07f.ca/twitter) 
🔗 [YouTube](https://07f.ca/youtube)
Adding Custom fonts to Rails6 using webpacker
Tags: webpack, font, rails, ruby
Published: 2020-12-14 22:50:45

Adding custom fonts to you application stands out and makes a statement. In this article I would like to tell how to import custom fonts into your Rails 6 Application with Webpacker.

1. Download the font from remote location.
2. Create a `fonts` folder in the path app/javascript/ folder. 
3. Create a SASS file fonts.scss and specify location of your font, add import from external urls as well. - I prefer using seperate file for importing all my fonts

###### app/javascript/stylesheets/fonts/fonts.scss
```sass
  @import url('../fonts/harringt.ttf')
```
Specify the font family in your application.css or specific views of a controller.

###### app/javascript/stylesheets/pages.css
```css
.page-titles {
  font-family: 'Harrington', cursive;
}
```
Finally, add CSS class to to sections you want to display in particular font or whole body.

###### app/views/pages/index.html.erb
```html
<!-- pages/index.html.erb -->

<h1 class="page-titles">Custom Font</h1>
```

Thats it! You have embedded custom fonts into your Rails application.




_Thanks to [Font Meme](https://fontmeme.com/) for [Harrington](https://fontmeme.com/fonts/harrington-font/#previewtool) font._
Searching on GitHub
Tags: webdev, programming, beginners, github
Published: 2020-12-14 22:38:33

GitHub repos in general are a great resource for developers, especially those repos with thousands of stars! :star:

That's why posts about amazing GitHub repos are among the most popular blog posts. In fact, I wrote [one myself!](https://chrisko.io/posts/amazing-github-repos-for-every-web-developer) :wink:

Finding the most popular GitHub repos is no rocket science :rocket:

Everybody can use the GitHub search and this post will help you [understanding the search syntax on GitHub](https://docs.github.com/en/free-pro-team@latest/github/searching-for-information-on-github/understanding-the-search-syntax).

We will start in the upper left corner on GitHub, where the search bar is located.

![GitHub Search Bar](https://dev-to-uploads.s3.amazonaws.com/i/lnjs4vmq78wh8gn9fcr0.png)

## Searching for repos with more than 100k stars
```
stars:>=100000
```

This query will show you all repositories having more than or equal to 100k stars :star:

## GitHub search syntax

Here's a list of useful query operators

|operator | meaning | example
| ----- | ----- | ----- |
| **`>n`** | more than | **`books stars:100`** will search for repositories with the word **`books`** that have more than 100 stars |
| `a..b` | range between `a` and `b` | **`kitties stars:500..10000`>** will search for repositories with the word **`kitties`** that have more than 500 but less than 10000 stars |

These are the most suitable operators for finding the _most starred GitHub repositories_! :cat:

With that knowledge everybody can dig deeper into GitHub as they like. :rainbow:

Additionally, I highly recommend checking out [what's trending on GitHub](https://github.com/trending) to see what the community is most excited about _today!_

> P.S. I have switched the domain name of my blog to [chrisko.io](https://chrisko.io), recently. Feel free to check it out, if you like to find some more posts about my journey :heart:
JavaScript String length Property
Tags: javascript, youtube, webdev, codenewbie
Published: 2020-12-14 21:58:35

Hey there! 
In this post and video, I'm going to explain how to use JavaScript ` length property`  with strings to find/count the number of characters in a string

When you use the `length property ` with JavaScript strings it counts the number of characters you have in that string and returns a/an positive/integer number. That includes empty string, empty space.

Let's create 2 variables:

```javascript
let firstName = 'Ada';
let myData = firstName.length; // returns 3
console.log(myData);
```
The way it's used is after or at the end of a variable with a `.length` like so `firstName.length`

If you check the `typeof` both variables the `firstName` is a string.
And `myData` is a number.
```javascript
console.log(typeof firstName); // string
console.log(typeof myData);    // number
```
If you are a `visual person` here's a `video tutorial` with code editor and whiteboard example.
{% youtube 92MHMhSR06E %}

Thanks for reading this.
Django operational error
Tags: django, python, 100daysofcode
Published: 2020-12-14 21:42:40

<head>

<title>Django operational error</title>

</head>
<h3>What is operational error in Django? </h3>


Hello (🤔was about to type "world" thinking I'm writing a program) reader, yes!, Operational error is an error you will definitely encounter if you are new to Django and you might not be able to solve that issue easily. Let me first share you my experience.

When I started learning Django I came across so many exeptions which I found very difficult to deal with, one of them was the ModelDoesNotExist exeption which can be easily corrected (catched let's speak in python😀). When I came across OperationalError I Google searched, I was just seeing so many complex codes that even worsened my case. Not until...

...I noticed that I made changes to my <code>models.py</code> file which I was yet to migrate. After
<code>python manage.py makemigrations</code>
and
<code>python manage.py migrate</code>, the error disappeared!!!
How to handle a new api version?
Tags: node, javascript
Published: 2020-12-14 21:42:33

Im curious on what is the best way,
I have a new endpoint on v2 but needed to support some legacy users on v1 on 2-3 endpoints. Authentication is on v1, Is it normal to keep all endpoints active and only a handful on v2? Or do I re write everything on v2 and keep only a handful on v1?

Would love the communities opinion
DAY 14 - Advent of Code 2020 w/ GoLang
Tags: adventofcode
Published: 2020-12-14 21:39:12

---
title: DAY 14 - Advent of Code 2020 w/ GoLang
published: true
description: AoC 2020 Day14 solutions in GoLang
tags: AdventOfCode
series: Advent of Code 2020
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/gb6jnhz1didpnth3pbsw.jpeg
---
**DAY14:** 

Well, crew. I think we found my probable stopping point. I hate bitwise. I'll admit. I'm not great at it. Definitely a sore point in my former CS courses as well 😅

![stop](https://media.giphy.com/media/5BWuMhn9xf6XTvjpJU/giphy.gif)

I know there are other ways of solving this through string parsing, but I'm at the point where I'm spending less time solving these for fun and more time just trying to finish.

If I happen to sneak in a few more of these later problems, I'll keep the series updated. 

Until then, 
✨🍻 Happy Holidays! 🍾✨
Happy-Job: foundation
Tags: dohackathon
Published: 2020-12-14 21:20:01

First time writing a post on the web! 🚀 (if my Skyrock blog doesn't count)

**I like short posts, so I'll make it short.**

My project is called *Happy-Job* 
* **purpose**: to inspire people to find a job that will make them happy
* **why**: fame and money are worthless if you don't enjoy your days
* **how**: guide people towards job options
* **what**: website gathering lots of jobs, filtered by tags

*(cfr Simon's Sinek Golden Circle for this Why/How/What approach)*

I have created my Digital Ocean account, created a Github repo, created a new creat-react-app and spent the last 30 minutes trying to understand how to make a DevTo post series.

## Why this project?

12 months ago, I was an unhappy accountant working for a 1000-people corporation.

Now, I am a super happy web developer in a 5-people social impact startup.


This project was sitting in a corner of my mind for long and I would love it to become something really helpful.

Something that I could have used many years ago to be quickly and easily exposed to alternatives ways of making a living, so that I wouldn't have lost 2 years of my life finding a new path.

I hope you will enjoy this ride with me! And please give me your inputs on this project!

Thanks!

🐐
Aggregation in java
Tags: java
Published: 2020-12-14 21:18:58

```java
import java.io.*; 
import java.util.*; 
  
// student class 
class Student  
{ 
    String name; 
    int id ; 
    String dept; 
      
    Student(String name, int id, String dept)  
    { 
          
        this.name = name; 
        this.id = id; 
        this.dept = dept; 
          
    } 
} 
  
/* Department class contains list of student 
Objects. It is associated with student 
class through its Object(s). */
class Department  
{ 
      
    String name; 
    private List<Student> students; 
    Department(String name, List<Student> students)  
    { 
          
        this.name = name; 
        this.students = students; 
          
    } 
      
    public List<Student> getStudents()  
    { 
        return students; 
    } 
} 
  
/* Institute class contains list of Department 
Objects. It is asoociated with Department 
class through its Object(s).*/
class Institute  
{ 
      
    String instituteName; 
    private List<Department> departments; 
      
    Institute(String instituteName, List<Department> departments) 
    { 
        this.instituteName = instituteName; 
        this.departments = departments; 
    } 
      
    // count total students of all departments 
    // in a given institute  
    public int getTotalStudentsInInstitute() 
    { 
        int noOfStudents = 0; 
        List<Student> students;  
        for(Department dept : departments) 
        { 
            students = dept.getStudents(); 
            for(Student s : students) 
            { 
                noOfStudents++; 
            } 
        } 
        return noOfStudents; 
    } 
      
}  
  
// main method 
class Agg 
{ 
    public static void main (String[] args)  
    { 
        Student s1 = new Student("Mia", 1, "CSE"); 
        Student s2 = new Student("Priya", 2, "CSE"); 
        Student s3 = new Student("John", 1, "EE"); 
        Student s4 = new Student("Rahul", 2, "EE"); 
      
        // making a List of  
        // CSE Students. 
        List <Student> cse_students = new ArrayList<Student>(); 
        cse_students.add(s1); 
        cse_students.add(s2); 
          
        // making a List of  
        // EE Students 
        List <Student> ee_students = new ArrayList<Student>(); 
        ee_students.add(s3); 
        ee_students.add(s4); 
          
        Department CSE = new Department("CSE", cse_students); 
        Department EE = new Department("EE", ee_students); 
          
        List <Department> departments = new ArrayList<Department>(); 
        departments.add(CSE); 
        departments.add(EE); 
          
        // creating an instance of Institute. 
        Institute institute = new Institute("BITS", departments); 
          
        System.out.print("Total students in institute: "); 
        System.out.print(institute.getTotalStudentsInInstitute()); 
    } 
} 
```