teleren/devto huggingface dataset:
The Backrooms - a terrifying video game that features an endless
Tags: webdev, javascript, react, devops
Published: 2022-10-13 03:49:33

Welcome to The Backrooms game, which is a scary video game with an endless maze of random office rooms that smell like wet carpet and are painted yellow all over. The lights are kept low, and the smell of wet carpet is always present.

Survival horror game [the backrooms](https://thebackrooms.onl/) lets you explore different rooms, hallways, levels, and just about anything else you can think of. The game is based on a story that is told all over the Internet. Every room or level has its own set of monsters, entities, or both that are out to get you. You will need to remember what each level looks like in order to get through the maze without getting lost or hurt.


In this upcoming game, players will be herded into a room for reasons that aren't clear yet. The whole room is dominated by yellowish wallpaper that looks old, a wet carpet, and fluorescent lighting. The goal for the player is to keep moving forward so that he or she can find the exit within the time limit and win the game. 

Players have to move very carefully through the "maze beyond reality" because each room is made to look exactly the same and contains "things" that can't be named. Your nerves will be stressed out even more by the sounds you can't quite make out and the strange laughter you hear. If "it" finds you, there's nowhere to hide, so your only choice is to run away as fast as you can. Don't get caught!
A dataset of LinkedIn users and businesses
Tags: webdev, news, community, watercooler
Published: 2022-10-13 03:35:37

Hello there, developers. 
I'd like to tell you about LinkDB, which I recently discovered and found useful. Perhaps you'll find it useful as well.

## What exactly is LinkDB?
LinkDB is a comprehensive database of LinkedIn members and businesses from around the world. The information also includes job titles, company names, employees, and executives, and it can be used to identify key business connections. The LinkDB database is updated daily with profiles from LinkedIn and available sources, ensuring that your information is up to date. This database is an excellent resource for businesses looking to expand their networks, find new customers and partners, or simply stay ahead of the competition. Individuals looking to connect with professionals in their field or industry can also use it.

## What does it have to offer?
The database contains profiles of over 17 million companies worldwide, as well as profiles of individuals organized by region, industry, and job function. It also contains information on over 5 million industry-specific companies and their executives, such as the company name, location, and website address. When you buy the LinkDB database, you get access to a searchable online portal where you can do more in-depth research on your data. The database includes information on over 5 million industry-specific companies and their executives, such as the company name, location, and website address. When you buy the LinkDB database, you get access to a searchable online portal where you can do more in-depth research on your data. Researchers all over the world use this database for business intelligence purposes such as market segmentation and competitive analysis.

## Who was LinkDB originally developed for?
LinkDB is ideal for sales and marketing automation, candidate recruitment, investment analysis, and other applications. It is ideal for you if you are a middle-market company based in the United States or Europe or a startup with at least $1 million in funding.

Finally, the purpose of this post is to inform you about a available LinkedIn Database, so that we can now provide quality developers, sales executives, and other professionals to companies by building a platform around LinkDB and writing some advanced fancy algorithms also termed as "business logic". 

The detailed blog can be found [here](https://nubela.co/blog/linkdb-an-exhaustive-dataset-of-linkedin-members-and-companies/).

I hope you find this useful; please leave feedback in the comments:)
Học ngành gì ở Nhật
Published: 2022-10-13 03:25:55

Tìm hiểu về các ngành học tại Nhật Bản tại trung tâm dịch vụ du học Nhật Bản VLE

Website: [https://www.vle.com.vn/bai-viet/nen-hoc-nganh-gi-tai-nhat-ban-top-cac-nganh-du-hoc-nhat-2022.html
](https://www.vle.com.vn/bai-viet/nen-hoc-nganh-gi-tai-nhat-ban-top-cac-nganh-du-hoc-nhat-2022.html
)
[http://86x.org/home.php?mod=space&uid=1650671](http://86x.org/home.php?mod=space&uid=1650671)
[http://atlas.dustforce.com/user/HocnganhgioNhat](http://atlas.dustforce.com/user/HocnganhgioNhat)
[http://forum.yealink.com/forum/member.php?](http://forum.yealink.com/forum/member.php?)action=profile&uid=216714
[http://sonicsquirrel.net/detail/user/HocnganhgioNhat/](http://sonicsquirrel.net/detail/user/HocnganhgioNhat/)
[http://qooh.me/HocnganhgioNhat](http://qooh.me/HocnganhgioNhat)
[http://www.cameronhighlandsinfo.com/forum/member.php?](http://www.cameronhighlandsinfo.com/forum/member.php?)action=profile&uid=219134
[http://www.kab3.com/home.php?mod=space&uid=2000579](http://www.kab3.com/home.php?mod=space&uid=2000579)
[http://www.ksjy88.com/home.php?mod=space&uid=2611791](http://www.ksjy88.com/home.php?mod=space&uid=2611791)
[http://www.stwx.net/space-uid-4389118.html](http://www.stwx.net/space-uid-4389118.html)
[https://appsliced.co/u/hocnganhgionhat](https://appsliced.co/u/hocnganhgionhat)
[https://bittube.video/a/hoc_nganh_gi_o_nhat/video-channels](https://bittube.video/a/hoc_nganh_gi_o_nhat/video-channels)
Email: trungtamvle.hp@gmail.com
Hotline: 0915 815 907
Address : Đường Hải Triều (Quốc lộ 10), P. Quán Toan, Q. Hồng Bàng, Tp. Hải Phòng

Hastag : #duhocnhatban #tiengNhat #hoctiengnhat #trungtamdichvuduhoc #du_hoc_nhat_ban #tieng_nhat #hoc_tieng_nhat #/m/0mbfk #nganhhocnhat #duhocnhathocnganhgi
Search Insert Position
Tags: algorithms, csharp, leetcode, easy
Published: 2022-10-13 03:25:49

_#35.Search Insert Position_

### Problem statement
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.

You must write an algorithm with `O(log n)` runtime complexity.

**Example 1**
```
Input: nums = [1,3,5,6], target = 5
Output: 2
```

**Example 2**
```
Input: nums = [1,3,5,6], target = 2
Output: 1
```

**Example 3**
```
Input: nums = [1,3,5,6], target = 7
Output: 4
```

### Explanation
給定一個排序陣列和一個目標值，其中陣列內的元素不重複，如果在陣列中找到目標值則返回其索引，若陣列內不存在目標值，則返回應當插入位置的索引

限制解法的時間複雜度為 O(log n)

### Solution
由題目給的是已排序陣列，沒有太多想法，直接使用二分搜尋法來解

```cs
public int SearchInsert(int[] nums, int target)
{
    int left = 0, right = nums.Length - 1, mid;

    while (left <= right)
    {
        mid = (left + right) / 2;

        if (nums[mid] == target) return mid;
        else if (target > nums[mid]) left = mid + 1;
        else right = mid - 1;
    }

    return left;
}
```

### Reference
[LeetCode Solution](https://leetcode.com/problems/search-insert-position/discuss/1326112/C-Solution)

[GitHub Repository](https://github.com/FakeStandard/LeetCode-CSharp/tree/main/Solution/0035.Search-insert-position)

---

Thanks for reading the article :tulip: :sunflower: :blossom:

If you like it, please don't hesitate to click heart button :heart:
or click like on my Leetcode solution
or follow my [GitHub](https://github.com/FakeStandard) :star:
or buy me a coffee :arrow_down: I'd appreciate it.

[![Buy-me-a-coffee][1]][2]

[1]: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h077sxd0vx1hix4t7lw8.png
[2]: https://www.buymeacoffee.com/FakeStandard

---
How would I go about creating a programming language?
Published: 2022-10-13 03:09:50

The title of this article reflects a question I hear over and over in forums or in emails I receive.

I think all curious developers asked it at least once. It is normal to be fascinated by how programming languages work. Unfortunately, most answers we read are very academic or theoretical. Some others contain too much implementation details. After reading them we still wonder how things work in practice.

So someone help me understand better!
𝘼 𝙛𝙪𝙣𝙙𝙖𝙢𝙚𝙣𝙩𝙖𝙡 𝙡𝙚𝙨𝙨𝙤𝙣 𝙩𝙝𝙚𝙮 𝙩𝙚𝙖𝙘𝙝 𝙖𝙩 𝙩𝙝𝙚 𝘿𝙚𝙡𝙤𝙞𝙩𝙩𝙚 𝘾𝙤𝙣𝙨𝙪𝙡𝙩𝙞𝙣𝙜 🟢 𝙤𝙧𝙞𝙚𝙣𝙩𝙖𝙩𝙞𝙤𝙣 𝙩𝙝𝙖𝙩 𝙝𝙖𝙨 𝙨𝙩𝙖𝙮𝙚𝙙 𝙬𝙞𝙩𝙝 𝙢𝙚.
Tags: career
Published: 2022-10-13 02:54:27


👉🏽Always tell my story and share my personal value proposition!

Back then my story was something on the lines of "I am Durgesh from the University of Maryland, and have completed a stint in healthcare tech building SaaS products for physicians and patients. I have a keen interest in learning cloud tech. I also ... "

It was neither perfect nor the most elaborate story in the orientation room. But it was "my" story and the process to hone it began right from day one. I personalized it, contextualized it as needed in the conversations and humbly repeated it to every person I met. Many times these people did not fully understand the scope of my abilities - but I narrated anyway. 

⚡️⚡️⚡️However, the next time these people heard about healthcare tech or met someone working with cloud, they remembered my story.⚡️⚡️⚡️

Some even looped me in with their connections and helped me network. I found my first client engagement as the manager on that project liked my story. A colleague with a similar story and interests became one of my best friends at the firm and we participated in multiple events together.

Here are 3 reasons why I still* (continuously) try to improve my personal value prop narration:

1️⃣ Telling my story is how I build credibility for my ideas.
2️⃣ This is one of the fastest ways for me to connect with people.
3️⃣ If I do not champion my own professional journey, who will?
2nd Day at Flatiron School
Tags: javascript, beginners, programming, flatiron
Published: 2022-10-13 01:40:48

I missed the first day but it's better to start now than never. Well, today we went over manipulating the DOM and different things that we can do with the DOM. I've gotta say, I understood why the instructor was doing what he was doing but not how he was doing it. I felt overwhelmed in a way but it's okay. I plan on studying the topics from yesterday and today on the weekend and just getting on pace with where we're supposed to be for now. I just plan on aligning everything up eventually. It's gonna be hard but it'll all be worth it in the end. Right now I'm working ahead and learning about events and I've gotta say, I understand it pretty well. I see a bright future ahead and I'm gonna work hard to keep that future bright.
Beginners’ crash course to build apps for Teams
Tags: react, vscode, javascript, beginners
Published: 2022-10-13 00:51:25

Teams Toolkit is an extension for Visual Studio Code and Visual Studio 2022, that you can use to build and deliver apps faster for Microsoft Teams. Developers can focus on building amazing applications instead of solving problems like tunnelling, identity, deployment, distribution of app and more.

## How does Teams Toolkit help a new developer?

⚒️The toolkit comes with the Get Started page that has a checklist of everything you, as a developer, need to build an application.

- Get your development environment ready
- Create the base project
- Create a sandbox development environment for you (If you don’t already have one) to test your application
- Preview your application locally
- Provision Azure resource instances your app needs and deploy your application logic to host them.

📽️Watch how we build a bot for Microsoft Teams using the VS Code extension.
{% embed https://www.youtube.com/embed/aCfZcYCPz4I %}

📖Read step by step tutorial [here](https://devblogs.microsoft.com/microsoft365dev/beginners-crash-course-to-build-apps-for-teams-using-teams-toolkit-for-visual-studio-code/)
Vector problem
Tags: c
Published: 2022-10-13 00:40:00

Hello, I tried to print the first and the last numbers of a vector, but for some reason only the last number is saved in it. What is exactly wrong with this code?

int main()
{
    int n[10],i;
    
    for(i=0;i<10;++i){
        printf("Input 10 numbers: ");
        scanf("%d",&n[i]);
    }
    printf("First: %d\nLast %d",n[0],n[9]);

    return 0;
}
Animated Tab Bar
Tags: codepen, fork
Published: 2022-10-12 23:31:56

<p>Designed by:  Mauricio Bucardo</p>

<p>Original image:
<a href="https://dribbble.com/shots/5619509-Animated-Tab-Bar" target="_blank">https://dribbble.com/shots/5619509-Animated-Tab-Bar</a></p>

<p>You can use this menu in your projects.
It also works with 100% width and reacts to changing the size of the window :)</p>

{% codepen https://codepen.io/abxlfazl/pen/VwKzaEm %}
The HTML 5 <Dialog /> Tag: The easiest way to create modal.
Tags: javascript, webdev, beginners, programming
Published: 2022-10-12 23:25:38





!["Fancisco Inoque from SavanaPoint"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jfzkuppcctt9hk69g99g.png)


The HTML5 dialog tag is the easiest way to create a modal. All you need to do is add the tag to your page and you're done. You can then style the dialog with CSS and add behaviors to it with JavaScript.

## What is dialog tag in html?

A dialog tag in HTML is used to create a pop-up dialog box on a web page.
The **dialog** tag defines a dialog box or window. This element can be used to display an alert message, a confirmation message, or anything that requires the user to respond.

## Let's see some quick example

* First let's create 3 files: **index.html**, **main.js** and **style.css**.

* **In index.html write this code:**

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Francisco Inoque">
    <title>The easiest way to do modal.</title>

    <link rel="stylesheet" href="style.css">
</head>
<body>

    <button class="btn-open" id="btn-open">Open modal</button>
   <dialog id="modal">
    <h1>Dialog Tag</h1>
    <p>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto voluptatibus accusantium enim provident distinctio fugiat, ex cumque pariatur consequatur repellat, aliquid voluptatem possimus. Inventore a quia consequatur fuga maxime exercitationem.
    </p>

    <button id="btn-close" class="btn-close">Close modal</button>
   </dialog>

   <script src="./main.js"></script>
</body>
</html>
```
* **In main.js write this code:**

```js
const btnOpen = document.querySelector("#btn-open");
const btnClose = document.querySelector("#btn-close")
const modal = document.querySelector("#modal");

btnOpen.onclick = () => {
  modal.showModal()
}


btnClose.onclick = () => {
    modal.close()
  }
```

* **In style.css write this code:**

```css

dialog::backdrop {
    background-color: rgba(0 0 0 / .3);
}

dialog {
    width: 20%;
    border: none;
    border-radius: 14px;
    box-shadow: 0 0 0 .6em rgb( 0 0 0 / .3)
}

.btn-open {
    position:absolute;
    margin: 25% auto 0;
    left:45%;
    background-color: #8e2ddd;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 1.5em;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer
}

.btn-close {
    
    
    background-color: #ff0099;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .8em;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer
}
```

### So folks, that's all for today. Please like, comment and follow me.
My first refactoring!
Tags: opensource, beginners, github, git
Published: 2022-10-12 21:48:14

## Hello everyone!

Today, I have practiced refactoring which is basically reworking your code for a better quality of it. It also means that to alteration are done to the logic itself but to the structure. It can include renaming the variables for better readability or extracting functions for better maintainability. 

As always, I have pulled the latest repo version and created a new branch to work on this. Shortly, I:

- removed repetition by requiring specific functions instead of whole modules
- standardized error logging styling by creating a logErr() function
- re-used my functions inside other helper functions
- separated HTML files creation logic from input logic
- renamed file names for better readability
- removed unnecessary variables creations.

I did everything as a separate commit but then I squashed them together using interactive rebase. So, I could merge only one nice commit that holds all the changes. 

Unfortunately, at the end, after I have already pushed the changes to GitHub, I found a bug in my code which I had created while refactoring. I decided that it was better to make the changes and somehow add them to the previous commit as it does not make sense if it creates a major bug. Plus, thus no one would know that I created something that I had to fix later. It would look nicer in history, almost if everything worked like magic right away. For that I added my changes and committed them with amend option. However, I had to push with force later as the git would complain about me making dangerous changes to the history. 

Overall, it was great to go back and pay my tech debt.
Refactoring my SSG repo
Published: 2022-10-12 22:25:06

Hi everyone,

This week, I refactored my [SSG repo](https://github.com/NeilAn99/nan1-ssg) to clean up my repo. Here is the [commit](https://github.com/NeilAn99/nan1-ssg/commit/26c866e7c365f322faec5860c079d6c732dd12d2).

I fixed a few things in my repo. First, I extracted a function that dealt with reading a file line by line. There were two places were this code was repeating, so I created a new function to handle this logic. Another thing I cleaned up was the file names. For example, I changed the file name from `generateHTML.js` to `generate-html.js`. Finally, I created separate folders for all my files containing logic and test files. All the logic files were placed into a src folder and all the test files were places into a test folder.

The interactive rebase went well and there were no bugs that I found when doing it. Luckily my program didn't break when I did my changes, so everything went smoothly.
Learn & contribute to all things Encryption - we'd love you to join us online or in person!
Tags: encryption, security
Published: 2022-10-12 21:44:20

⚡️ LIGHTNING TALKS

⚡️Solving Global Optimization Problems Using Genetic Algorithms and Swarm Intelligence - Sasha Sergeevich, PhD

⚡️Format Preserving Encryption: what, why and how - Dan Draper

https://www.meetup.com/en-AU/encrypt-syd/events/dwnrssydcnbrb/
Building Psychological Safety from the ground up
Tags: psychologicalsafety, teams, culture
Published: 2022-10-12 21:00:53


Over the last year our teams have been learning about psychological safety, the belief that on teams, it’s okay to speak up with concerns, questions, ideas, and mistakes. This concept has been studied for decades and has been shown to correlate with more effective teams, an improved likelihood of successful process innovation, and a boost in employee engagement and team innovation. 

While understanding this concept is crucial, we know that to be successful at creating truly psychologically safe teams, we have to create intentional practices and spaces to discuss team health. Over the last year, we’ve introduced and iterated on frequent retrospective meetings, working agreements, and team health assessments. 

Retrospectives are an integral part of our organization - they encourage participation and provide a space for team members to share their interests and views. Because we are unabashedly agile advocates who practice extreme programming, each team holds retros weekly so that these practices become ingrained into every team’s working cadence.   

In addition to weekly retros, over the last few months, our teams have gone through project-specific ‘working agreements’ where everyone aligns on their preferred core hours, times for stand-up, communication tools, meeting attendance, etc. This is typically an event that happens when teams are initially formed. We will also revisit conducting this meeting periodically as people join the team or changes occur on the team throughout the project. Working agreements have a third-party facilitator who ensures that everyone has a voice and that their opinions and preferences are heard and mutually agreed upon by everyone. We’ve found working agreements as a great way to allow teams to hold themselves accountable to the standards that they align on and help to foster healthy boundaries between work and personal time. 

While working agreements and retrospectives both allow teams to come together and discuss their working conditions and collaboration, the best way to truly understand a team’s cohesion is through a team health check. These meetings are conducted quarterly and are an intentional space to analyze the team’s product development and identify areas for improvement. Compared to retrospectives, team health checks tend to be more summative and long-term, allowing teams to reflect on their team’s trends around their teamwork, support, learning, and more specific product categories like their ability to deliver value and the health of the codebase. 

Inevitably, building psychological safety on teams is a continually moving target, but we hope that these efforts will give all of our employees the tools to understand and recognize the behaviors of healthy teams and the space to voice their opinions and concerns.
100 DAYS OF CODE CHALLENGE
Tags: react
Published: 2022-10-12 20:52:22

**Day 5**

- What I did today
      Today, I continued my Alt school second semester first assignment.
       After several attempt of using Replit, I gave up and switched to Stackblitz, and this was after trying 3 different templates on Replit and was still having errors
      I had to start all over again and it was a success, I finished my assignment and now waiting for the submission link
Rails Validation
Published: 2022-10-12 20:43:13

```
validates :name, presence: true
validates :name, length: { minimum: 2 }
validates :email, uniqueness: true
validates :not_a_robot, acceptance: true, message: "Humans only!"
validates :year, numericality: {
    greater_than_or_equal_to: 1888,
    less_than_or_equal_to: Date.today.year
  }
```

```
def create
  person = Person.create!(person_params)
  render json: person, status: :created
rescue ActiveRecord::RecordInvalid => invalid
  render json: { errors: invalid.record.errors.full_messages }, status: :unprocessable_entity
end
```

Database activity triggers validation. An Active Record model instantiated with #new will not be validated, because no attempt to write to the database was made. Validations won't run unless you call a method that actually hits the DB, like #save.

The only way to trigger validation without touching the database is to call the #valid? method.

Custom Validation

```
class Person
  validate :must_have_flatiron_email

  def must_have_flatiron_email
    unless email.match?(/flatironschool.com/)
      errors.add(:email, "We're only allowed to have people who work for the company in the database!")
    end
  end
end
```

```
validate :clickbait?

  CLICKBAIT_PATTERNS = [
    /Won't Believe/i,
    /Secret/i,
    /Top \d/i,
    /Guess/i
  ]

  def clickbait?
    if CLICKBAIT_PATTERNS.none? { |pat| pat.match title }
      errors.add(:title, "must be clickbait")
    end
  end

```
We can clean up this controller action by handling the ActiveRecord::RecordInvalid exception class along with create! or update!:

```
def create
  bird = Bird.create!(bird_params)
  render json: bird, status: :created
rescue ActiveRecord::RecordInvalid => invalid
  render json: { errors: invalid.record.errors }, status: :unprocessable_entity
end
```
In the rescue block, the invalid variable is an instance of the exception itself. From that invalid variable, we can access the actual Active Record instance with the record method, where we can retrieve its errors.

def render_not_found_response(exception)
    render json: { error: "#{exception.model} not found" }, status: :not_found
  end