teleren/devto huggingface dataset:
Creating a Niche Blogging Community Website for Free
Tags: wordpress, codenewbie, webdev, opensource
Published: 2022-04-21 07:54:51

Bloggers who want to become successful should focus on building a strong community around themselves. You can do this by creating content that fits within an existing niche or by starting your own blog. This helps you establish yourself as someone who knows what he/she is talking about, and gives people a reason to follow you.

Blogging communities are groups of bloggers who share similar interests. Communities offer networking opportunities as well as ideas for blog content. Writers can collaborate with each other and gain exposure by writing guest posts on their friend's blogs. A blogging community can help you generate ideas for blog content, and help you establish connections with other bloggers like yourself. You may even be invited to guest post on your new friend's blogs.

Blogging tools and services are very helpful for bloggers. These platforms help us to create our own blog, and also share our content with other people. We can easily share our articles, videos, and images with other people.

## Creating a Community Website for Free with WordPress

Here are the thing you will need.

Setup a simple website on [WordPress](https://wordpress.org/download/) and activate the [BuddyX theme](https://wordpress.org/themes/buddyx/) theme. Run the theme setup and import a demo for easy setup. BuddyX is a theme for WordPress community plugin [BuddyPress](https://buddypress.org/) which provide member profiles, activity streams, user groups, messaging, and more.

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

Now once the community is active you can allow members to register and have a profile. Next step is to get the free BuddyPress addon [BuddyPress member blog](https://wbcomdesigns.com/downloads/buddypress-member-blog/) and allow members to create blog posts from profile page in frontend and display their submitted blogs at their BuddyPress Profile. As an admin you will be able to moderate user-submitted posts.

Try it out Today and share your experience.
Big Tech Interview Difficulty
Tags: interview, datastructures, career
Published: 2022-04-21 07:51:40

This tier list was built using data from
* Hackpack Interview Debriefs
* Glassdoor 
* Blind
* Personal experience (and that of my network)
* Surveys on FB, Reddit & LinkedIn

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f05vmaz6m6ylvoj0ak77.png)
 
Here is a list to the tier list if you want to make one for yourself!
https://tiermaker.com/list/technology/best-big-tech-company-to-work-for-ranked-by-hackpack--1657601/2127417
Pseudo-classes and links
Tags: codepen
Published: 2022-04-21 07:41:50

<p>Example from the CSS Essential Training course on LinkedIn Learning (<a href="https://www.linkedin.com/learning/instructors/christina-truong?u=2125562" target="_blank">https://www.linkedin.com/learning/instructors/christina-truong?u=2125562</a>) and Lynda.com (<a href="https://www.lynda.com/Christina-Truong/7842227-1.html" target="_blank">https://www.lynda.com/Christina-Truong/7842227-1.html</a>) </p>

{% codepen https://codepen.io/christinatruong/pen/MxrVOd %}
Journey of becoming Full Stack Web Developer
Tags: developer, python, javascript, newtonschool
Published: 2022-04-21 07:39:17

Since my last post I've been learning python to learn the basics of coding. Some of you may say that to become a web developer or learning programming I should not have choose python. Bla bla bla, I know you have different opinions but my goal was to learn the basics of programing interactively. Somehow I managed to get an essence of that. I am here to share my experience from scratch. So I am sharing my routine about the things I am doing to make coding as a habit which are as follows-

- Coding everyday for at least for 1 to 2 hours.
- Read and watch other programmers blog/vlog.
- Taking notes in every line of codes to remember at a glance what that part of code does.
- Google is a developers and programmers best friend.
- Fingering out my own project and working on it.

I have also taken course in Newton schools Full stack Web Developer course which will start from 25th of April. I am now in a position like "Whatever it takes". Way to go....

That's all for today. Leave a like, comment if you care. I may not be regular here but every now and then I will post here. Bye..
How to Implement a Voice Changer Capability
Tags: java, programming
Published: 2022-04-21 07:38:56

Research has shown that our voice is often an indicator of our personalities, and this is why we're so fascinated with changing our voice to make it sound more fun and uplifting in, for example, videos and live streams.

As a mobile developer, I have implemented the voice changing function into my own app, which you can try out in my demo. This function allows users to mask their voice using seven preset voices: seasoned, cute, male, female, monster, cartoon, and robots.
  
I don't want to brag, but I myself still find this function amazing. Let's move on to how it's developed.

## Making Preparations
Ensure you have completed [these](https://developer.huawei.com/consumer/en/doc/development/Media-Guides/config-agc-0000001154009063?ha_source=hms1) steps first.

## Configuring the Project
Set the app authentication information.
This can be set via an API key or access token.

- Call **setAccessToken** during app initialization to set an access token. This only needs to be set once.

```
HAEApplication.getInstance().setAccessToken("your access token");
```

- Or, use **setApiKey** to set an API key during app initialization. This only needs to be set once.

```
HAEApplication.getInstance().setApiKey("your ApiKey");
```

## Calling the File API
Call the file API for the voice changer function, which is necessary for calling back the file API.

```
private ChangeSoundCallback callBack = new ChangeSoundCallback() {
    @Override
    public void onSuccess(String outAudioPath) {
        // Callback when the processing is successful.
    }
    @Override
    public void onProgress(int progress) {
        // Callback when the processing progress is received.
    }
    @Override
    public void onFail(int errorCode) {
        // Callback when the processing fails.
    }
    @Override
    public void onCancel() {
        // Callback when the processing is canceled.
    }
};
```

## Implementing the Voice Changer Capability
Call **applyAudioFile** to change the voice.

```
// Change the voice.
HAEChangeVoiceFile haeChangeVoiceFile = new HAEChangeVoiceFile();
ChangeVoiceOption changeVoiceOption = new ChangeVoiceOption();
changeVoiceOption.setSpeakerSex(ChangeVoiceOption.SpeakerSex.MALE);
changeVoiceOption.setVoiceType(ChangeVoiceOption.VoiceType.CUTE);
haeChangeVoiceFile.changeVoiceOption(changeVoiceOption);
// Call the API.
haeChangeVoiceFile.applyAudioFile(inAudioPath, outAudioDir, outAudioName, callBack);
// Cancel the task of changing the voice.
haeChangeVoiceFile.cancel();
```
And now it's implemented. Easy, right? I hope this article can help you develop your own voice changer, and feel free to leave a comment if you want to learn more about my development journey.

## References
[Why Your Voice Is Important](https://publicwords.com/2017/10/24/why-your-voice-is-important/)
[Voice - How humans communicate?](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3361774/)
[Voice changer](https://developer.huawei.com/consumer/en/doc/development/Media-Guides/featured_functions-0000001178963356#section079657103416)
Git: Deleting files? Use 'git rm' not just 'rm'
Tags: git
Published: 2022-04-21 07:28:28

I use Git a lot in my everyday life. I love it, for the most part, but it can scare the hell out of me too. Especially around the time, where you want to clean up your repository.

One day, you might rearrange some files, delete a few directories. When you're done, you think to yourself: "Ahh, this is nice, let me commit the changes to my remote repo".

Moments, and a lot of whining later... Your remote repository is a mess of old and new files.

## What happened? 
You did tell Git to move or remove the files, but you didn't tell it to update its internal index - issuing `rm <yourfile>` makes your local repository (origin) nice and tidy, but deleting with `rm` does not inform Git that the change needs to happen in your remote repository as well.

Therefore, make it a habit to use `git rm` when working inside your local repo, if you want your changes to be reflected remotely.

More: [git-rm docs](https://git-scm.com/docs/git-rm)
7 signs you’re growing as a programmer
Tags: programming, grow, signs, webdev
Published: 2022-04-21 07:24:19



**How can you measure your progress as a programmer?**

Here are 7 signs you're growing as a programmer

1. Don’t only write [code](https://blog.canopas.com/automation-php-code-formatting-before-pre-git-commit-ce23c43586b0)
2. Content and knowledge sharing
3. Constantly look for improvements
4. Crave new trends in development besides meeting deadlines
5. Timebox ambiguous task
6. Valuable code reviews
7. Selective about choosing third party [libraries](https://blog.canopas.com/1-min-guide-to-golang-development-best-practices-in-2022-b50d846fd6c)

To discover more, read the full article on [our blog.canopas.com](https://blog.canopas.com/7-signs-youre-growing-as-a-programmer-32727e6c2eff)
Videobug - time travel debugger for Java, Scala and Kotlin
Tags: java, debugging, scala, kotlin
Published: 2022-04-21 07:14:51

Hello All, I am building a time travel debugger tool for Java.

It lets you trace your past code executions line by line in your IntelliJ IDE.

It works on localhost and cloud deployments. 

We are releasing the localhost debugger - it works completely offline.

You can install Videobug from your [IntelliJ Marketplace](https://plugins.jetbrains.com/plugin/18529-videobug/).

[I am sharing a demo here.
](https://youtu.be/U53IQifMt54)
Please let me know your feedback - DM me or [join our discord channel here.](https://discord.gg/Hhwvay8uTa)

Website: https://bug.video 
Twitter: https://twitter.com/SocialVideobug


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/whpc5m7iv1ka8khpqstq.png)
🖥️✔️ A NEW UPDATE OF CORTEZA IS RELEASED – 2022.3.1
Tags: release, update, lowcode
Published: 2022-04-21 07:12:11

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xif5z4izyo2zpmdo5mj2.png)Corteza's new #release includes #features, such as additional Geometry field options and persistent storage on record filters. Additionally, an extensive list of fixes, such as a memory leak fix, have been included. With this release, the stability, speed and user experience of Corteza have improved significantly.

Learn more about [CORTEZA's new features and updates](https://cortezaproject.org/corteza-2022-3-1-released-new-features-and-important-fixes/
)
5 different ways to use an else block in python
Tags: python, programming, beginners, tutorial
Published: 2022-04-21 07:05:13

There are several ways to use an else block in python. Lets look at each method and its usecase.

## 1. if else 
This is commonly used if else block. if block is executed if the condition is true otherwise else block will be executed.

```python

x = True

if x:
    print 'x is true'
else:
    print 'x is not true'

```


## 2. if else shorthand
This if else shorthand method is a <code>ternary operator</code> equivalent in pythom if else statement. If you loot at the code, boolean value True will assigned to the variable is_pass if the expression mark >= 50 is true, otherwise False will be assigned.

```python

mark = 40
is_pass = True if mark >= 50 else False
print "Pass? " + str(is_pass)

```


## 3. for-else loop
We can use an else block on a for loop too. The else block is executed only when the for loop completes its iteration without breaking out of the loop. 

for loop below, will print from 0 to 10 and then 'For loop completed the execution' as it doesn't break out of the for loop.

```python

for i in range(10):
    print i
else:
    print 'For loop completed the execution'

```


for loop below, will print from 0 to 5 and then breaks out of the for loop, so else block will not be executed.

```python
for i in range(10):
    print i
    if i == 5:
        break
else:
    print 'For loop completed the execution'

```


## 4. while-else loop
We can also use an else block with while loop, The else block is executed only when the while loop completes its execution without breaking out of the loop. 

```python
a = 0
loop = 0
while a <= 10:
    print a
    loop += 1
    a += 1
else:
    print "While loop execution completed"
```


```python
a = 50
loop = 0
while a > 10:
    print a
    if loop == 5:
        break
    a += 1
    loop += 1
else:
    print "While loop execution completed"
```


## 5. else on try-except

We can use an else block on a try except block too. This is type of not required in most cases. The else block is only executed if the try block doesn't throw any exeception. 

In this code, else block will be executed if the file open operation doesn't throw i/o exception.

```python
file_name = "result.txt"
try:
    f = open(file_name, 'r')
except IOError:
    print 'cannot open', file_name
else:
    # Executes only if file opened properly
    print file_name, 'has', len(f.readlines()), 'lines'
    f.close()
```


> follow me on  [twitter](https://twitter.com/sureshdsk) to get more content and connect with me.
Hoisting with var
Tags: javascript, hoisting, var
Published: 2022-04-21 06:20:51

I came across a lot of articles describing hoisting in Javascript.. where in a nutshell, most of them indicating it as a feature where variable declarations are moved to the top of their scope, and few of them even illustrating with appropriate examples with var, let and const.

With const and let having block level scope, it becomes easy to describe.. but I find var a bit tricky to crack hoisting with. Specially when I came across a problem faced by one of my colleague in one of the interviews.

So the problem is as follows whose output was asked to explain:

```
var num = 4;
function test() {
    var newNum = num;
    console.log('num outside loop:', num);
    for (var num = 0; num < newNum; num++) {
        console.log('num inside loop:', num);
    }
}
test();
```

From first look, one can say it will be printing following:

```
num outside loop: 4
num inside loop: 0
num inside loop: 1
num inside loop: 2
num inside loop: 3
```

But actually it prints:

```
num outside loop: undefined

```
And thats it.. it doesn't even enters the loop.
Why so? Javascript hoisting kicks in and moves the **num** declaration at the top of the function **test**, so effectively it becomes:

```
var num; // hoisting
num = 4;
function test() {
    var num; // hoisting - redefines num as undefined
    var newNum;
    newNum = num; // undefined is assigned to newNum
    console.log('num outside loop:', num); // prints message followed by undefined
    for (num = 0; num < newNum; num++) { // var num declaration moved to top as a part of hoisting
        console.log('num inside loop:', num);
    }
}
test();
```
It's clear that it will never execute the loop with new value of num i.e. 0 being compared to undefined value for newNum.

Thanks for reading through. Feel free to suggest corrections / additions if any.
Anibot.exe using Appwrite
Tags: appwritehack
Published: 2022-04-21 06:14:23

[Instructions]: # (To submit to the Appwrite Hackathon on DEV, please fill out all sections.)


### Overview of My Submission

I built a Telegram bot that handles anime watch lists made to highlight basic CRUD operations using Appwrite's Database API features.
I used JikanPy wrapper to bind and serve APIs
Searching for the anime involves list features, Fuzzy search and Detailed search


### Submission Category: 

Web2 Wizards, Wacky Wildcards


### Link to Code

(https://github.com/Gokul-Ks/AniBot)


### Additional Resources / Info

#### Screenshots


![List Feature](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u87ii6a8d12awnhwub88.png)


![Fuzzy Search](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dlrxgy92q37a0w3j1cef.png)


![Detailed Search](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yr14ev8d5mna6pmcr12d.png)


![Adding shows](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9naykxaa8dwms17y8jm.png)


![Updating shows](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6wq3qn5p464xj8zoi9uz.png)


![Deleting shows](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rggewglietrz8c378xfd.png)
View data from run log in a Log Viewer - Web app
Tags: help
Published: 2022-04-21 06:14:02

I am designing a web application. I want to be able to view data from run logs(xml file) in a logviewer(like as a graph). So that I can have a visual overview of the recorded data. I am thinking of using ReactJS for frontend.

So, is there any React/JavaScript package or ready to use tool available for viewing run logs in a logviewer? Or any relevant suggestions would be appreciated (even if with a different frontend language). 

We already have this Log Viewer as desktop app but not web version. May I know the feasibility or basic idea of how I go about creating this Log Viewer as web app. Thank you.
Length of Last Word
Published: 2022-04-21 06:11:15

Given a string s consisting of some words separated by some number of spaces, return the length of the last word in the string.

A word is a maximal substring consisting of non-space characters only.

 

Example 1:

```

Input: s = "Hello World"
Output: 5
Explanation: The last word is "World" with length 5.
```
Example 2:

```
Input: s = "   fly me   to   the moon  "
Output: 4
Explanation: The last word is "moon" with length 4.
```
Example 3:

```
Input: s = "luffy is still joyboy"
Output: 6
Explanation: The last word is "joyboy" with length 6.
```
 

Constraints:

```
1 <= s.length <= 104
s consists of only English letters and spaces ' '.
There will be at least one word in s.
```

Python solution

```
class Solution:
    def lengthOfLastWord(self, s: str) -> int:
        
        length = 0
        
        new_str = s.strip()
        
        for i in range(len(new_str)):
            if new_str[i] == " ":
                length = 0
            else:
                length +=1
        return length
    
        
```
Top site to help in payroll management
Tags: services, management, payrol
Published: 2022-04-21 06:09:59

**MM Enterprises** the leading PEO/ EOR, [Payroll Outsource Company in Delhi India](https://www.mmepayrollindia.com/payroll-outsourcing-payroll-service-providers-india/), they been best professional employer organization have providing our services since 1994. Their strength lies in our learned personnel and years of experience in a repertoire of Employer of Record Services, EOR Company in India, from monthly salary assessment, taxation & payroll compliance to reimbursements’ validation. 

MME, let you focus your time & energy on business growth, while take hold of your employment processes. Over the years, our team has diligently handled thousands of clients from start-up businesses to well-established 500+ fortune companies globally. They are compliant with innovative HRM Systems and are capable of offering precise payroll outsource & employee management services to organizations, regardless of their size.

**[Know More](https://www.mmepayrollindia.com/)**
Don’t Join the Great Resignation. Find Meaningful Work Instead
Tags: programming, work, learning, resignation
Published: 2022-04-21 06:05:16

According to Willis Towers Watson’s 2022 Global Benefits Attitudes Survey, 44% of employees are seeking a change. The other aspect of the situation is there are enough lucrative opportunities in the market for all kinds of professionals.
I have been trying to hire in the last few months. Most candidates have many offers with good salaries and are trying to negotiate to get an even higher pay raise.
Lately quitting a job has become a fashion. A friend of mine is looking out just for the reason that he has been with his current employer now for a couple of years.
I don’t agree with such an attitude. My focus is to find meaningful work, no matter where you find it.

> “It is very difficult to have a meaningful life without meaningful work.” — Jim Collins

## Finding meaningful work
I have been in the software industry for many years. I see a lot of professionals jumping jobs without clearly knowing what they are going to work on. That is not wise, if you don’t know exactly what you are going to do, you might feel the same suffocation in the new place as well.
**_If you have freedom at your workplace and you can’t find meaningful work, the problem is you. You might not be looking at the big picture and missing out on new opportunities and places where you can add value._**
Adding value in your current workplace or the new one should be your goal. I don’t deny the importance of compensation. Sometimes if you need to switch jobs, be sure what value you are going to add in the new place.

### Is it easy to find meaningful work?
It depends on your organization’s work culture, on you, and your definition of meaningful work. If you have an open culture, there are always dozens of places where you can help. Find problems people or you are facing and find a solution, involve others in the process and then move on to the next problem.
To me, any problem that my organization faces is an opportunity to add value. Solving problems, and automating stuff are a few on my list when it comes to meaningful work.

## Meaningful work brings you the satisfaction that resignation might not
Growing up I always felt a good designation and a great salary are the only things you need in your work life. After working a few years in the industry, I realized the most important part of work-life is to do great work.
Routine work is tiring whereas exciting work is refreshing. I always felt energetic, when there is great work on my plate. So I am always looking for new problems to solve at my workplace.