teleren/devto huggingface dataset:
Episode #7: Building in Public with Lola Ojabowale
Tags: programming, productivity, codenewbie, watercooler
Published: 2022-05-02 13:10:58

_An excerpt from [RenderATL](https://www.renderatl.com/)'s Culture & Code podcast Episode #7: Building in Public with Lola Ojabowale ([@ojabowalola](https://twitter.com/ojabowalola)). This was a special Render Vault episode with Taylor McNeil ([@ThatDevTaylor](https://twitter.com/ThatDevTaylor)) as host:_

**Taylor:**
Yes, for sure. I think a lot of people love that startup founder story and traditionally that's not something that you really get to see until it's, oh, 10 years later they're being acquired. And now there's a biopic about everything that happened. And we all know that's not how companies are built. That's not how things run. I think the whole build in public movement is super duper interesting. And so, I would love to know your take on it and like how you're doing it at Lunch Pail Labs.

**Lola:**
Oh yeah, for sure. So I completely agree with that. Yeah. **I think for me, build in public kind of serves three, I'd say, main purposes. First, it's really helpful. Just for the person building to have this kind of record of, "Hey, we look back, this is what the company was doing. This is how I was thinking about things. This is the sort of products I was shipping. And these are how all of that has evolved."**

Second piece, I think **people have found that just by consistently sharing your story, sharing what you're working on, especially if you're building in public in an area where your potential customers live, is a natural and seamless way for lead generation. Finding new opportunities.** Even with Lunch Pail Labs. All of the work that we do right now has been inbound, and a lot of it has been because somebody read a blog post or heard something on a podcast, or saw a tweet. By build in public, I think of is you are taking daily or whatever, cadence shots, you're putting shots into the universe. And you only need to couple baskets for you to really start kicking something off the ground.

And then when people know what you're working on and what you're trying to do, it's a natural way to get help as well. If you're stuck on something. If you're looking at hiring somebody down the road or growing the team. I think build in public also helps with that as well. Because folks can see, this is what it's like to be here and having that transparency out there.

And then **I think that the third sort of bucket and reason that build in public is helpful is just that by you, sharing your story, and sharing what you're doing and being honest about it and authentic. Not just the "Hey, everything is awesome all day."**

_This was an excerpt from [Culture & Code](https://www.renderatl.com/culture-and-code), a podcast brought to you by [RenderATL](https://www.renderatl.com/) that is focused on leveling up your tech career and exploring new technologies._ 

_You can listen to the full episode and read the complete transcript on our website [here](https://www.renderatl.com/culture-and-code/episode-7)._
Use Git Aliases to Improve Your Productivity
Tags: git, productivity
Published: 2022-05-02 13:01:47

Copy/past those lines at the end of your `~/.bashrc`. Your kinesthetic memory will be grateful.

```bash
alias gf='git fetch'
alias gch='git checkout'
alias grh='git reset --hard'
alias gri='git rebase -i'
alias gcp='git cherry-pick'
```
Web Developers, which is your favorite open source Dashboard template?
Tags: webdev, javascript, productivity, opensource
Published: 2022-05-02 12:45:37

There is no dearth of mind-blowing open source stuff available for web developers in this world. However, this is mostly limited to "raw material" stuff like CSS Templates (Bootstrap), JS Frameworks (React/Vue/Angular), Images (Pexels) and Icons (Font-Awesome/Google Fonts).

![AdminLTE](https://camo.githubusercontent.com/ac4c92d1401fedc477913ae8e79bccca036079a5ffabab9366b2d285a105f436/68747470733a2f2f61646d696e6c74652e696f2f41646d696e4c5445332e706e67)

But when it comes to "ready made" stuff like dashboard templates (with seamless integration of charts, calendars, grids, tables, etc.), even there you have a few options. Three such open source projects I know about are:

1. [AdminLTE](https://adminlte.io/) - This is by far my favorite because their [open source version](https://github.com/ColorlibHQ/AdminLTE/) is "truly" open source, they don't hold back stuff like calendar and chart plugins to lure you to the pro version. While they do have some premium templates, it's mostly custom styling on top of the base version, not any extra features.
2. [Material Dashboard](https://github.com/creativetimofficial/material-dashboard) - This is also a good one (in fact, most people prefer this to the above looks wise!) but I don't consider it true open source (as they have plugins for charts, etc. only in the "pro" license). The interesting thing though is that their older version based on Bootstrap-4 is still fully FOSS even with the bells and whistles, wonder why that is!
3. [SB Admin 2](https://startbootstrap.com/theme/sb-admin-2) - This is yet another popular dashboard template in the open source world. Like above, there are some restrictions in this one too as things like "extended components" and "custom CSS utilities" are pro only! They also won't provide a fixed sidebar in the free version which is almost the bread-butter in a dashboard template.

These three are the ones which are quite popular and I happen to know of. Please comment and let me know if you know of others.
Watch a Candidate pass a VR Mock Coding Interview
Tags: programming, career, beginners, tutorial
Published: 2022-05-02 12:41:54

This candidate passed the interview because of their ability to work through the problem. There may have been a few hiccups but nothing that would sink the interview.

Watch [HERE](https://www.youtube.com/watch?v=05lZOCN292I) and below review


What they did well

- Wrote out the input, output and example
- asked intelligent questions
- Thinking Greedy to start, challenges his own thinking and gets to the crux of the problem
- identified the greedy approach, and challenged his assumptions and showed that he couldn't prove it
- Feels like a conversation,
- Very good communicator
- Knew every individual coin was a base case
- Writes great psuedo code
- Great inspection, Good strategy, coding section
- Index selection optimization
- Caught his mistake and added 1 after being prodded

What could be better

- diagram isn’t clear how he is progressing through the problem
- started to fall apart when pushed on the runtime
- Realized the history of the coins didn’t matter after being prodded 
- Got a little lost when he was strategized the coin change solution. Tied up in managing the index
- Didn’t know to reference the call stack when asked about top down vs bottom up
- Kept switching between top down and bottom up without bringing the interviewer along
- Psuedo code , didn’t really have time to code
- No need to do binary search on the coin, a premature optimzation
- First iteration of code wasn’t functional
- Had issues defining the output runtime never asked about the size of the coins
- Didn’t review his code too thoroughly

## Join the Community
[Hackpack.io](https://www.hackpack.io/) is the most active community of developers studying for programming interviews. You can apply on the site!
ToDo App using Flutter and Appwrite - Part 1
Tags: appwritehack, flutter
Published: 2022-05-02 12:30:05

### Overview of My Submission

ToDo App is just a basic app that will help you to list your "todo" activities. Why I built this app? I just want to have fun and learn about Flutter and especially Appwrite. I think ToDo App is comparable with "Hello World" for beginners in Flutter like me. 

### Submission Category: 

Wacky Wildcards

### Link to Code

{% github bervProject/todo-app-flutter-appwrite %}

### Additional Resources / Info

Anyway, this is still the first post and introduction. I will continue my post with my progress update. I've setup Appwrite Backend to AWS EC2 and the Backend is ready to use!

![EC2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbi7u0wk3sj3ehmo77a0.png)

![Appwrite Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29c4rl9nuzas9mfbm3pt.png)

My Github Repository is still empty or still initial project. I'm going to post about my integration with the Backend this week. So, stay tuned!
Copy to clipboard using javascript.
Tags: javascript, webdev, beginners, programming
Published: 2022-05-02 12:12:13

Here is the code for copy to clipboard using pure javascript you can use this code on your project for copy something.

Code
```JS
function Copy(){
        var copyText=document.getElementById("textbox");
        copyText.select();
        copyText.setSelectionRange(0, 999);
        document.execCommand("copy");
        alert("Copied");
    }
```
Using this code you can copy the content of textbox in webpage.
What Are Datacenter Proxies?
Tags: webscraping, scraping, proxy, oxylabs
Published: 2022-05-02 12:11:00

{% youtube 0LhUA5nChZk %}

If you’re into web scraping, you most probably are familiar with proxies and the main reasons for using them.

Here at Oxylabs, we created a video covering all the basic info about datacenter proxies – one of the two most popular proxy services that gives users an opportunity to gather publicly available information without encountering unwanted blocks. Watch the video or dig right in by reading the post below!

## Datacenter proxies explained

[Datacenter proxies](https://oxy.yt/Jo1s) are proxies that are not affiliated with an Internet Service Provider (ISP). They present users with completely private IP authentication and anonymity and allow them to scrape public data in large quantities. 

As mentioned by our Account Manager Nedas, these proxies are hosted in redundant data centers all around the world. In Oxylabs, for example, we have a datacenter proxy pool which covers more than 100 locations worldwide. Our datacenter proxies are premium and dedicated for every client individually, so the proxies could not be abused by other individuals. 


![Datacenter proxies for web scraping](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyo1bsntnfvcd5b4y0ym.jpg)

## Why do you need datacenter proxies?

The video states that when it comes to web scraping, using a single IP will lead to a failure. This is because certain targets employ bot protection that limits the number of requests that can be sent. So, when the limit is reached, your IP simply gets blocked.

In order to gather public data successfully, you need to use a bigger pool of datacenter proxies and try to evenly distribute your requests to the target. This way you can be sure that your scraping processes will run smoothly and you won’t have to deal with any complications.

## Things you should know about datacenter proxies

1. Datacenter proxies are cheaper compared to other proxy types, so they are an excellent choice for those on a budget
2. They are fast, which allows you to accomplish your scraping goals in a shorter period of time
3. They are easier to detect compared to, for instance, residential proxies since specific targets can block IPs based on their type by checking IP databases. However, this is not the case with Oxylabs’ Datacenter Proxies that ensure little to no IP blacklisting.

## Conclusion

In this YouTube video, we talk about datacenter proxies as an ultimate solution for those wishing to bring their scraping activities to a new level. They are fast, cost-efficient, allow large scale data collection, and, most importantly, keep your identity protected throughout the whole web scraping process.

However, it is important to remember that datacenter proxies can sometimes be detected by anti-scraping technologies. That’s why you have to be cautious and perform your public data collection responsibly at all times.
FAKE NEWS DETECTION.
Tags: programming, python, devops, github
Published: 2022-05-01 20:43:20

**Fake News Detection**
Fake news is one of the biggest problems in the world because it leads to a lot of misinformation. Most of these false news may be about about a community’s political and religious beliefs and can lead to riots and violence as you must have seen in the country where you live. So, to detect fake news, we can find relationships between the fake news headlines so that we can train a machine learning model that can tell us whether a particular piece of information is fake or real by simply observing the headline.

**Fake News Detection using Python**
My dataset for the fake news detection task has data about the news title, news content, and a column known as label that shows whether the news is fake or real. So we can use this dataset to find relationships between fake and real news headlines to understand what type of headlines are in most fake news. Below is my dataset.


**DATASET**

```
> #we're loading data into our notebook
> import numpy as np
> import pandas as pd
> import matplotlib.pyplot as plt
> import warnings
```

```
#importing our data through pandas
#importing our data through pandas
data=pd.read_csv('/content/drive/MyDrive/news.csv')
```

```
#we check how our data looks like
data
```


```
#we do data analysis and preprocessing
data.describe()

```
```

#To check the total number of rows in our data
data.count()
```


```
#To check whether our data have missing values
data.isnull().sum()
```


```
#we convert label into 1 and 0
data['label'] = data['label'].apply(lambda x: 1 if x == 'REAL' else 0)
```


```
#we convert our data from categorigal to numerical
dummies=pd.get_dummies(data[['title','text']])
```



```
#we split our data into x and y
x=data.drop('label',axis=1)
y=data['label']
```


```
#lets import the model
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
```

```
np.random.seed(42)
model=RandomForestClassifier()
x_train,x_test,y_train,y_test=train_test_split(dummies,
                                              y,
                                              test_size=0.2)
model.fit(x_train,y_train)
```


```
model.score(x_test,y_test).
```
[K8s學習筆記] 透過depolyment操控pod
Tags: kubernetes, k8s, deployment
Published: 2022-05-02 12:05:02

- 訂閱patreon即可看到更多文章 https://www.patreon.com/wade3c
- Youtube頻道 https://www.youtube.com/c/增廣建文

---

## Deployment

### Create a Simple Deployment

最簡單的deployment就是啟動某個image，然後不帶其他設定

```shell
kubectl create deployment <name-of-depl> --image=<image-name>
```

可以透過 `kubectl get deployment` 檢查deploy的狀態

等到狀態變成ready後就可以用 `kubectl get pod` 看到所有running的pod

> pod name是由replicaset id + pod id組成

> 通常也不會去動replicaset，他會在deployment時由K8s自動設定

#### Pod info

要看pod的更詳細訊息可以用

```shell
kubectl describe pod <pod_name>
```

會分別列出到pod成功running前的各步驟花了多久時間

#### Debug a Pod

如果deploy失敗或是要查看log，可以使用

```shell
kubectl logs <pod-name>
```

要連進某個pod的terminal可以透過

```shell
kubectl exec -it <pod_name> -- bin/bash
```

用法和在docker要連進contianer的terminal非常類似

### Edit the Deployment

```shell
kubectl edit deployment <name-of-depl>
```

當你修改並儲存deployment的設定後，pod就會自動重建 (舊的被刪掉，直接創新的)

> 但是舊的replicaset並不會被刪掉，只會把剛剛那個Pod從中移除

### Delete the Deployment

要連帶pod + replicaset 一併刪除的話

```shell
kubectl delete deployment <depl-name>
```

可以透過`kubectl get replicaset`去確認

### Create Deployment with YAML File

比較常見的做法還是先寫好YAML檔再去deploy

```shell
kubectl apply -f <filename>
```

deployment這種型態會根據kind還有apiVersion來決定

```plaintext
apiVersion: apps/v1
kind: Deployment
```

如果以這種方式deploy的，往後只要修改檔案，pod就會自動重建了

----

## Reference

[Kubectl Basic Commands - Create and Debug Pod in a Minikube cluster | Kubernetes Tutorial 18](https://www.youtube.com/watch?v=azuwXALfyRg)
Guide to Selecting Good Health Check-up Packages
Published: 2022-05-02 11:48:57

There are a variety of health check-up packages to choose from. It is very difficult to choose which one will be suitable for us. Let us look at some of the factors which will help us in choosing a relevant health check-up package.

[https://www.postingstation.com/guide-to-selecting-good-health-check-up-packages/](https://www.postingstation.com/guide-to-selecting-good-health-check-up-packages/)
First impression using Ubuntu 22.04 LTS
Tags: linux, ubuntu
Published: 2022-05-02 11:40:38

![Ubuntu 22.04 LTS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a6piejdhzf2nhsfixe09.png)

I think the old logo is better than the new one, but it doesn't matter I still like innovation
![Ubuntu Logo](https://149366088.v2.pressablecdn.com/wp-content/uploads/2022/03/wordmark.jpg)

> If you dislike the default orange theme, the accent color choices should help you personalize the desktop experience.

Looks like Gnome Tweak's role is getting smaller now haha, I like this new feature
![accent color](https://itsfoss.com/wp-content/uploads/2022/03/ubuntu-22-04-appearance-settings.png)

Now that I have a builtin video recorder, I don't need OBS anymore haha. But it doesn't support window record yet
![builtin video recorder](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhk0hpjx7es7bkn7ca0f.png)

I don't know why some of what itsfoss.com says I can't find on my device, yeah maybe that's me, what's your favorite feature of Ubuntu 22.04? haha

---
## Reference
- [discourse.ubuntu.com](https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668?_ga=2.184779946.2025590915.1651480766-854807090.1651480766)
- [www.omgubuntu.co.uk](https://www.omgubuntu.co.uk/2022/03/ubuntu-22-04-lts-default-wallpaper-revealed)
- [www.omgubuntu.co.uk](https://www.omgubuntu.co.uk/2022/03/ubuntu-has-a-brand-new-logo)
- [itsfoss.com](https://itsfoss.com/ubuntu-22-04-release-features/#:~:text=Thanks%20to%20GNOME%2042%2C%20Ubuntu,screen%20or%20current%20application%20window.)
I made a game in two days
Tags: showdev, gamedev, unity3d
Published: 2022-05-02 11:34:50

So for "The Linux Game Jam" I made a short horror game in 2 days but unfortunately was too late to submit it.
You can play it on linux and windows here: 

https://tawhidzip.itch.io/grammas-house

[Buy me a coffee](https://www.buymeacoffee.com/tawhid)
Book Review
Tags: cpp, developers, software
Published: 2022-05-02 11:14:20

Hi,

We are planning to come up with a second edition of one of our successful books titled, Software Architecture with C++. This software architecture C++ programming book is for experienced C++ developers looking to become software architects or develop enterprise-grade applications.

We are gathering feedback from C++ developers to understand what are the challenges they are facing and how this book can help them. It would be worth to hear your insights which will help us to develop a better second edition. 

In case you are interested, share your email address and we will share a ebook copy with you.

Regards,
Denim
Automating code review on commit
Tags: codacy, git, devops
Published: 2022-05-02 10:20:33

# HOW TO AUTOMATE CODE REVIEWS ON COMMITS

Imagine the hustle of spending hours on code review every day. Code review automation may save countless wasted efforts.

This Article may walk you through steps on how to add automated code reviews that may be executed during every code commit.

Codacy is one of the tools that may be used to achieve this.

Codacy is an automated code review tool that helps developers ship better software, faster. With Codacy, you get static analysis, cyclomatic complexity, duplication, and code unit test coverage changes in every commit and pull request. 

## Steps to integrate your project with Codacy

## 1. Sign up

You may use your Git provider such as GitHub, GitLab, or Bitbucket to sign up to Codacy. This links your Codacy user with your Git provider user, making it easier to add repositories to Codacy and invite your teammates.

![sign up](http://res.cloudinary.com/clickpesa/image/upload/v1650444797/engineering-blog/images/f47nkua8llyolvnmeqdu.png)


## 2. Grant access

Codacy will request access to your Git provider and will require you to provide a few details regarding your organization. (this helps them on use case evaluation).


![grant access](http://res.cloudinary.com/clickpesa/image/upload/v1650444920/engineering-blog/images/vtxfeitocdow3fw4uqqa.png)

## 3.  Choose organization

Now you will be required to join the organizations that contain your repositories

`	`Note:	

codacy name the organizations similar to your git repository user name. 

Example If your repository is “github.com/Fruitsandvegies”. Then the name of your organization will be “Fruitsandvegies”.

![choose organization](http://res.cloudinary.com/clickpesa/image/upload/v1650444969/engineering-blog/images/zc6idpiadlinetgvui8i.png)

## 4. Adding repository

By selecting the organization on step 3, codency will list all related repositories available. Select the “add” option to add the repository for review. Codancy will immediately set up everything so as to be ready to analyze on the next commit.

Note:

You can add the repository to Codancy only if you have permission to that repository.

![adding repository](http://res.cloudinary.com/clickpesa/image/upload/v1650445009/engineering-blog/images/eiwpirbmddgpnq1mwt8d.png)


## 5.  Review result of the analysis

`	`Select “Go to repository” once the analysis has completed reviewing the results.


Detailed analysis result

![review result of the analysis](http://res.cloudinary.com/clickpesa/image/upload/v1650445048/engineering-blog/images/yxdypvp8vbvhpsyav2kx.png)


The initial analysis from Codancy will be based on the default configuration. Codacy provides tweaks to allow you to set up a custom configuration such as files to ignore, code pattern, and adjust quality settings.
django
Published: 2022-05-02 10:41:07

`Django7learn at$ source venv/bin/activate`

[structure ](https://drive.google.com/file/d/1xVTh_SKsRaS0NU9E0zTHZUdkPvaMy6OQ/view?usp=sharing)

blog-urls.py
```py
    path('list/', post_list),
    path('archive/<int:year>', post_list),
    path('archive/<int:year>/<int:month>', post_list),
```

blog-views.py
_if month_ should come before _if year_
```py
def post_list(request, year=None, month=None):

    if month is not None:
        return HttpResponse(f"post list archive for {year} and {month}")
    if year is not None:
        return HttpResponse(f"post list archive for {year}")

    return HttpResponse("Posts list page")
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z3t9rrgu7fau2s40qa2d.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/drjd7hwbskhyw3dobspj.png)

create utils.py in blog app 
```py
class FourDigitYear:
    regex = '[0-9]{4}'

    def to_python(self, value):
        return int(value)

    def to_url(self, value):
        return '%04d' % value
```
```py
from django.urls import path, register_converter

from blog.utils import FourDigitYear
from blog.views import post_list, categories_list, post_detail

register_converter(FourDigitYear, 'fourdigit')

urlpatterns = [
    path('list/', post_list),
    path('archive/<int:year>', post_list),
    path('archive/<fourdigit:year>/<int:month>', post_list),
    path('detail/<slug:post_slug>/', post_detail),
    path('categories/list', categories_list),
]
```
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uk5lw0hukjtrwzt59tl8.png)
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gmxypgclqac0b6hpekte.png)

another way:
blog-urls.py
```py
from django.urls import path, re_path

re_path(r"archive/(?P<year>[0,9]{4})/", post_list),

```