teleren/devto huggingface dataset:
Another Set Of Eyes: PR Review
Tags: beginners, javascript, opensource
Published: 2022-11-19 07:26:15

Recently, I did some code review([1](https://github.com/Seneca-CDOT/telescope/pull/3760) [2](https://github.com/Seneca-CDOT/telescope/pull/3761)) for the Telescope Project.

I look at the issue and then the PR to understand the context and what the PR description is supposed to do, then I study the code to see what it's doing, and then run the issue branch to see what the result is. From those, I try to spot any error or place to improve.

## Fixing Button Text
The first code review was a PR for fixing incorrect text for buttons, which then turned partially into adjusting the button style. Because I have some experience with the pages from some past PRs I did myself, I thought of the CSS used for the other buttons in the same UI and suggested that the person can adjust the CSS style to conform to other buttons. Because of those experience, I didn't have a hard time understanding what the relevant codes are about, especially that the fix isn't complicated in nature.
Toward end of the review, the assignee seem to have some issue rebasing and squashing commits, so I mention how I would do it and ask how he does it, in hope of helping him figure it out. It seems to have helped him figure some of it out.

## Fixing Button Text
The second code review was about a PR that introduces theme selection to replace the old theme toggle (dark/light mode). This one is a lot more complicated than what I'm used to. There are still many parts of the Telescope Project I'm not very familiar with. This took me a while to understand how the codes work together.
Because I'm less experience with the code, most of my suggestion is focus on the result of the code, such as making sure simple text doesn't appear as clickable and having the colour scheme be friendly to users.

## Learning
I definitely feel about reading code of similar complicity after doing the second code review and getting more used to it. From both, I have more understanding of how code can be written from reading other people's work, especially those above my own skill level. The experiences also got me more into the mind of code reviewers to think of PR from their perspective, like what to look for, how to ask communicate, what to focus on, and so on.
Amyl Guard (Urgent Update) Customers Reviews | Ingredients & Benefits | Shocking Side Effects!
Published: 2022-11-19 07:19:27


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbeww2qk5e39p4v9kwad.jpg)

Amyl Guard It's also factual that eating some fat vital for our overall health. While Weight Loss is the most obviously sought-after benefit within a high protein, low carb diet, lucrative other benefits as well Amyl Guard Many people on a very high protein, low-carb diet report higher energy levels, better moods, increased concentration, clearer skin, less heartburn, and much less compulsive diet.

https://www.outlookindia.com/outlook-spotlight/-alert-2022-amyl-guard-weight-loss-formula-work-or-hype-you-must-know-this-news-238288

https://amylguarddiet.tumblr.com/
https://amylguard.wordpress.com/
https://amyl-guard.jimdosite.com/
http://amylguard.zohosites.com/
https://amylguard.mystrikingly.com/
https://sway.office.com/wJEin1zIyaVxURDc
https://sites.google.com/view/amylguarddiet/
https://groups.google.com/g/amyl-guard/c/INxjT8tVVbg
https://colab.research.google.com/drive/17bPfX21oS0pC-sQylKmLiNO9476GA_vR
https://datastudio.google.com/reporting/50663513-43ac-4e4c-9861-19a1056ebedc/page/SDG8C
https://jemi.so/amyl-guard
https://www.facebook.com/profile.php?id=100088005549395
https://www.crunchbase.com/organization/amyl-guard
https://evvnt.com/events/?_ev_id=1434703_amyl_guard_reviews_supplement_2022_does_it_really_work
https://techplanet.today/post/amyl-guard-worthy-supplement-or-scam-you-need-to-know-everything-about-it
https://twitter.com/amylguarddiet
https://www.pinterest.com/pin/1099582065246480795/
https://issuetracker.google.com/issues/259704721
Quang Đông Furniture: Bàn Ghế Chất Lượng, Giá Tại Xưởng
Tags: quangdongfurniture
Published: 2022-11-19 07:01:40

[Quang Đông Furniture](https://quangdongfurniture.vn/) chuyên sản xuất, cung cấp các sản phẩm bàn ghế chất lượng tốt, giá tại xưởng. Hotline: 0902.07.38.79

Với quy mô khép kín tối ưu chi phí quản lý, sản xuất quy trình làm việc chuyên nghiệp, luôn chú trọng đến nguồn nhân lực, xem con người là nhân tố hàng đầu quyết định sự phát triển bền vững của doanh nghiệp. Quang Đông Furniture luôn tạo điều kiện tốt nhất để nhân viên phát huy hết khả năng lao động, sáng tạo. Trong đó đội ngũ thiết kế, nhân viên văn phòng trẻ, năng động, sáng tạo, trình độ cao đẳng, đại học trở lên. Đội ngũ kỹ thuật, công nhân có tay nghề cao, được tuyển chọn từ những làng nghề truyền thống và những trường đào tạo nghề chất lượng trên cả nước. Hàng tháng công ty luôn tổ chức giao lưu, đào tạo các lớp ngắn hạn, để nâng cao tay nghề tay nghề chuyên môn, nghiệp vụ, cho nhân viên. luôn được trau dồi, tu dưỡng và ý thức được sứ mệnh phục vụ khách hàng của mình. “Chăm sóc khách hàng là để tồn tại và phát triển” để xây dựng uy tín thương hiệu, niềm tin với đối tác, khách hàng.
Moving from problem adder to problem solver
Tags: work
Published: 2022-11-23 07:31:47

---
title: Moving from problem adder to problem solver
published: true
date: 2022-11-19 07:00:00 UTC
tags: work
canonical_url: https://rachsmith.com/moving-from-problem-adder-to-problem-solver/
---

From one of [James Clear's newsletters](https://jamesclear.com/3-2-1/october-13-2022):

> One type of person approaches a situation with the mindset of, “How can I make this work?” Another type seems to approach each circumstance with the mindset of, “What are all the reasons this wouldn’t work?”
> 
> Both people will be forced to deal with reality, but the first person will only have to solve problems that actually occur while the second person will often avoid taking action entirely because of the potential problems they have dreamt up before starting.
> 
> There will always be reasons to not do something. Be a problem solver, not a problem adder."

Of course, sorting all people into two buckets like this is nonsense, that's not how humans work. But I think people fall on a spectrum from "problem adder" to "problem solver".

My natural inclination is to be a problem adder. When someone describes an idea to me my mind immediately goes to the 15 reasons why it wouldn't work. It is just how I'm wired. I'm always willing to give things a try and attempt to solve the problems of course, but I can't help but be aware of them.

Enter my boss: founder of CodePen Alex Vazquez. Alex is at the opposite end of the spectrum. He is an incredibly optimistic and ambitious problem solver. We used to have conversations where he'd describe his ideas to me and I would start listing off the reasons it may not be possible. He'd say: "forget about that, assume all that is solved". _Excuse me? Just assume these problems are solved?!_ This was nonsensical to me.

Over time and many conversations, and us reaching the outlandish goals he'd set, I saw the real value in being a problem solver. I stopped thinking so much about all the reasons why something wouldn't work and instead started assuming we could solve them. Even better, Alex taught me how to look for ways to remove the problems altogether. Instead of thinking "what could go wrong" I am now more likely to think "what if it were easy? how would that work?".
How to Import Custom Module in Node JS
Tags: javascript, http, webdev, node
Published: 2022-11-19 06:59:21

Hi friends, in this tutorial, you will learn how to import a custom module in Node JS. Before getting started with the custom module, you must know what the module means in node js and how to include that module before creating any object. A module is nothing but a javascript function or a library. 

Also, there are built-in modules and you can directly invoke those modules with the help of require() function by assigning them to a javascript variable. As I already discussed one of the built-in modules (http) and how to use it. So, I will explain the custom module in a step-by-step process.

Also read, **[the Node JS HTTP server example](https://pbphpsolutions.com/node-js-http-server-example.html)**

## Three steps to import custom module in Node JS

- Create a javascript file where the main node js file is located.
- Declare a function or more than one function in that javascript file.
- Invoke that external JS file in the main node JS file using the required function as shown below.

**var random = require('./random.js');
**
Please note that random.js is assigned to a variable 'random'. Later on, we will use this random variable to call the functions executed in the random.js file.

**random.js**

```
exports.getRandom = function(){
       return Math.floor((Math.random()*10)+1);
};
```
In the random.js file, there is a function called getRandom() which returns a whole random number between 1 to 10 every time you initiate the main node js file in your browser.

**main.js:-
**

```
var http = require('http');
var random = require('./random.js');

http.createServer(function (req, res){
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.write("This is the random number every time you hit the browser.       "+random.getRandom());
    res.end();
}).listen(8080);
```
In the above file, you have noticed that I have included two modules inside the require() function. One is built-in module (http) and the other is random.js.

- http module is used to transfer data over the hypertext transfer protocol which means over the web browser.
- random.js is used to print random numbers.
- createServer() object is created using the http so that the response is returned from the server.
- When we call the getRandom() function using the random variable inside the server object, we will get the random numbers from the server each time the request is sent from the browser.

If you hit http://localhost:8000 from your browser, you will see the below output

**This is the random number every time you hit the browser. 3
**
Conclusion:- I wish this tutorial will help you to understand the concept of importing a custom module. If there is any doubt then please leave a comment below.
🎁 Get free training by the experts at AWS
Tags: awscommunitybuilders, cloud, training, aws
Published: 2022-11-19 06:31:35

AWS Training and Certification builds your competence, confidence, and credibility with practical cloud skills that help you innovate and advance your professional future.

Learn new skills and reach your goals. 🚀

Register for a free virtual class today. 👇

Exam Readiness: AWS Certified Solutions Architect - Associate 
👉 https://lnkd.in/gcUZxazx

Exam Readiness: AWS Certified Cloud Practitioner 
👉 https://lnkd.in/g3-Majyd

Exam Readiness: AWS Certified Developer - Associate
👉 https://lnkd.in/gz9UGuWz

AWS Cloud Practitioner Essentials Day
👉 https://lnkd.in/g3_J4vZH

Fundamentals of a Modern Data Strategy on AWS
👉 https://lnkd.in/g_iEeume

Data Analytics Fundamentals on AWS
👉 https://lnkd.in/gVviiNQm

Machine Learning Basics
👉 https://lnkd.in/g9p8345U


via: AWS Email


Hi, Lets connect on Linkedin : https://www.linkedin.com/in/bhaveshgohel
Help me with my code I'm trying to delete data from firebase but I'm getting reference error
Tags: webdev, javascript, firebase
Published: 2022-11-19 06:28:47

```
function showNotes(){
    let html = "";
    
    let notesElm = document.getElementById('notes');

    get(child(dbRef,"Notes")).then((snapshot) => {
        var count = 0
        if (snapshot.exists()) {
            const noteData = snapshot.val()
            for (const item in noteData) {
                if (Object.hasOwnProperty.call(noteData, item)) {
                    const element = noteData[item];
                    html+=`
                    <div class="card mx-2 my-2 noteCard" style="width: 18rem;">
                    <div class="card-body">
                    <h5 class="card-title">${element.title}</h5>
                    <p class="card-text">${element.text}</p>
                    <button id=${count} onclick="deleteElement(${element.title})" class="btn btn-primary">Delete Node</button>
                    </div>
                     </div>
                     `;
                    }
                    count++
                }
                notesElm.innerHTML = html;
            } else {
                console.log("No data available");
            }
        }).catch((error) => {
            console.error(error);
        });
} 
function deleteElement(item){
    remove(ref(db,"Notes/"+item))
    .then(()=>{
        console.log("Data has been removed")
    })
    .catch((err)=>{
        console.log(err);
    })
    window.location.reload()
}
```
Migrating in Ruby
Tags: blog, ruby, tutorial, database
Published: 2022-11-19 06:21:26

Things switch up quickly when you get to the back-end of code. Everything that gave you immediate response is no longer, and the puzzle solving begins. I actually felt like I tied everything in a lot better with the back-end (although I can't wait to learn a language outside of Ruby). The creative leaning front-end is something that truly pushes me outside of my comfort zone and still is largely rewarding to pull off; but the back-end just clicks. It is tricky, but direct. It is lengthy, but necessary. Without a back-end, a website is generally forever stagnant. 

So, I'll go over the basic instructions to get through a simple migration on Ruby. Ruby runs entirely through the terminal, and you have to make sure all your steps are taken in correct order or your seeds and migrations will not be correct. 

Go ahead and install your bundles and begin with the following:

`rake db:create_migration NAME _________`
- note: the "NAME" is optional and you can jump direction from create_migration to whatever you want to name that migration.

After creating your migrations, you're going to want to go into those files and create your migration tables inside. This will look something like the following:

```
class CreateStudents < ActiveRecord::Migration[6.1]
   def change
      create_table :table_name do |t|
         t.string :color
         t.integer :length
         t.boolean :finished?
```

Once finished with the creation of your migration tables, go back to your terminal and type:

`rake db:migrate`

This will create a schema folder with all of your migrations and a seed folder that you will need to bring in your database information to. This could look as the following:

```
Model.create(color:"brown", length:7, finished?: FALSE)
```

You will want to do this to pass the migration information to every model that you have passing that information through.

I hope this helps any Ruby novice get through a migration as easily as possible!
This week’s newsletter is out! (19-11-2022) - World is Gonna World
Tags: javascript, tech, webdev
Published: 2022-11-19 06:13:03

---
title: This week’s newsletter is out! (19-11-2022) - World is Gonna World
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

World is Gonna World

https://markjgsmith.substack.com/p/mark-smiths-newsletter-19-11-2022

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
When was Showering Invented?
Published: 2022-11-19 05:42:23

The first recorded shower was in 1767 BC when King Minos of Crete ordered one to be installed in his palace. It was a large room with a floor that sloped towards a central drain. Water was delivered through pipes and sprayed onto the bathers from silver lion’s head spouts.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymebaw9wy3g7kip1yxxk.png)

Showering is one of those things that we all take for granted. We turn on the water, step in, and let the water wash away our dirt and grime. But have you ever wondered when showering was invented?

[Read full article](https://homecontexts.com/when-was-showering-invented/)
Black friday saas deals 2022
Tags: blackfriday, blackfridaysaasdeals2022, blackfridaydeals, saascoupons
Published: 2022-11-19 05:24:38

I know, In November 2022 everyone is looking for black Friday deals. Mostly, technically people are excited about black Friday saas deals.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/coed9nnll61phn4cp457.png)




What is Black Friday?

The term "Black Friday" was first used on Sept. ... In the 1950s, Philadelphia police used the "Black Friday" term to refer to the day between Thanksgiving and the Army-Navy game. Huge crowds of shoppers and tourists went to the city that Friday, and cops had to work long hours to cover the crowds and traffic.
No alt text provided for this image

Black Friday is a shopping day for a combination of reasons. The first day after the last major holiday before Christmas marks the unofficial beginning of the Christmas shopping season. 
Additionally, many employers give their employees the day off as part of the Thanksgiving holiday weekend begins on November 27 this year, sees a significant amount of shoppers head to high street stores and online brands in an attempt to find the best deals.

Where do I find Black Friday Deals?

Whatever the best Black Friday deal you want to find, the number one option to get better results is ‘Google Search Engine’.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3pblq94vqce6ofsz5osm.png)




You can search with relevant queries according to your requirements.
For example, if you want to explore Black Friday discounts for fashion products, you can input on Google search bar with a query like ‘best black Friday saas deals’ or even ‘best black friday deals on _____ products’ or use some similar related keywords.
_____ this is the gap where you can add your own product name.

e.g.
Best Black Friday deals on fashion products
Best Black Friday deals on electronic products

Google will get you some opt results related to your query (most of the time blog posts) and then you can read the top of the results and gather the Best Black Friday deals from the different web results you gained from Google.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4b7om8b51m68rfboaqos.png)



Vadoo

You can use the same process for finding whatever the best Black Friday deals you want to go through. SEO tools black Friday deals, electronics black Friday deals and web hosting black Friday deals are often searched among people globally.
If you do not want to follow the Google search process to find the Best Black Friday deals of the season, I have another quality option.
There are many websites that are exclusively available on the internet that collect Best Black Friday deals on different categories and update the same on their website to offer the users a smooth experience to explore all the best black Friday deals in a single destination.

[Black Friday saas deals 2022](https://www.vadoo.tv/black-friday-deals-saas-2022)
gocthethao.net
Published: 2022-11-19 05:18:42

gocthethao.net là nơi cập nhật tin thể thao mới nhất 24h qua, cung cấp thông tin, hình ảnh liên quan đến các môn thể thao, lợi ích của việc tham gia thể thao,... bao gồm các môn thể thao hấp dẫn nhất như Tennis, võ thuật, quyền anh, F1... #gocthethao #gocthethaonet #tinthethao #thethaotrongnha #thethaongoaitroi
Location: 22 Hà Tông Quyền, Khuê Trung, Cẩm Lệ, Đà Nẵng 550000, Vietnam
Hotline: 0945368492
Email: info.gocthethao.net@gmail.com
Website: https://gocthethao.net/
Creating a twitter bot to automatically post Bitcoin and Ethereum prices.
Tags: twitter, programming, tutorial, api
Published: 2022-11-19 04:51:31

I am currently working on a [crypto-themed website](https://abiu.io) and was looking to market the website on twitter. A lot of guides just tell you that you need to be active on the platform however I don’t want to be sitting liking tweets and commenting all day. I decided there had to be a way to automate this and reminded me of a first-year project I completed university where we used the Twitter API to post tweets on our behalf.


The goal of this project is to automatically tweet price signals combining the knowledge gained from my Twitter API project and the CoinGecko API. Firstly, there are a couple requirements for this project:

· [Python (latest version)](https://www.python.org/downloads/). Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems.


· [Tweepy](https://www.tweepy.org/
). An easy-to-use Python library for accessing the Twitter API.

· [Twitter account](https://twitter.com/home). Twitter is a microblogging and social networking service.

· [Twitter developer account](https://developer.twitter.com/en/products/twitter-api). This account allows you to use the Twitter API to analyze, learn from, and interact with Tweets, Direct Messages, and users.


Once you have set up each of the above requirements you will be ready to commence the project. Please see the source code below:

```
import tweepy
import requests
import json
import time

API_KEY = ""
SECRET_KEY = ""
ACCESS_TOKEN = ""
ACCESS_TOKEN_SECRET = ""

auth_handler = tweepy.OAuthHandler(consumer_key=API_KEY, consumer_secret=SECRET_KEY)
auth_handler.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)

api = tweepy.API(auth_handler, wait_on_rate_limit=True)

print('logged in')

while True:
    bitcoinprice = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd')
    price = bitcoinprice.json()
    btcusd = price['bitcoin']['usd']
    print(btcusd)

    message = "$BTC currently trading at: $" + str(btcusd) + " USD. #BTC"
    api.update_status(message)

    print('Tweet posted.')

    ethereumprice = requests.get('https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd')
    price = ethereumprice.json()
    ethusd = price['ethereum']['usd']
    print(ethusd)

    message = "$ETH currently trading at: $" + str(ethusd) + " USD. #ETH"
    api.update_status(message)

    print('Tweet posted.')

    time.sleep(6000)
```

Feel free to follow me on [github ](https://github.com/tom-boyle/TwitBot/blob/main/bot.py)or [twitter](https://twitter.com/tomboylesays).
Fusion Energy! Looking for talented full stack SWE
Tags: job, aws, nextjs, python
Published: 2022-11-19 04:49:57

Hello fellow developers, the company i am working for currently, [Commonwealth Fusion Systems](https://cfs.energy) is looking for full stack software engineers to fill a role on our scientific software team. 

The current project is to help build data pipelines, visualisations and web UIs for scientists and analysts to view and edit their data from high tech experiments on superconductors.

Fusion is the ultimate clean, renewable resource and CFS has a mission to achieve Q > 1 by 2024 in a full working prototype reactor. There are big name investors into the project such as Bill Gates and Jeff Bezos. The company compensates well and has a great culture.

Here is the link if you wish to apply: [Full Stack Software Role](https://jobs.lever.co/cfsenergy/def5f52f-6dfc-4c08-86d4-2977113a879d?lever-via=QSCc08qols)