teleren/devto huggingface dataset:
What are your favorite resources for getting started with Data Science?
Tags: discuss, datascience
Published: 2022-10-10 17:18:01

---
title: What are your favorite resources for getting started with Data Science?
published: true
description: 
tags: discuss, datascience
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

## :mega: New discussion alert :mega: 

**What are your favorite resources for newbies learning Data Science?**

We've started a list of good resources for getting started with Data Science on [our discussion post](https://github.com/orgs/deepgram/discussions/41). 

If you'd like to contribute to the list, you can head over to the discussion or drop them here.
Skipping GitHub Actions jobs without breaking branch protection
Tags: devops, cicd, build, githubactions
Published: 2022-10-10 17:17:30

GitHub Actions is a wonderful service, but configuring it can be a bit of a challenge. This is especially true when it comes to conditional logic, such as skipping jobs that aren't needed for a specific pull request.

We recently moved our project's documentation [into the repo](https://github.com/pantsbuild/pants/tree/main/docs), so that docs changes now undergo review (which is great!) and trigger a full CI run (which is not so great...)

It took a few iterations to figure out how to configure GitHub Actions to skip the heavyweight CI jobs, like running tests, when a PR only affects documentation. This was especially tricky because we have [branch protection rules](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches) in place to prevent merges into main of PRs whose CI has not passed.

You can read more about the hackery we employed to get this working [here](https://blog.pantsbuild.org/skipping-github-actions-jobs-without-breaking-branch-protection/).

PS Feel free to [reach out on Slack](https://www.pantsbuild.org/docs/getting-help) if you want to learn more about Pants and its support for Python, Go, JVM, Shell and more.
SCRUM
Published: 2022-10-10 16:58:48

**Stories: INVEST**
I:Independent
N:Negotiable
V:Valuable
E:Estimable
S:Small
T:Testable

**User stories Tasks: SMART**
S:Specific
M:Measurable
A:Achievable
R:Relevent
T:Time-Bound

Scrum Master checklist: https://scrummasterchecklist.org

User story estimation Technique: Planing Pocker

**Burndown Charts: Linear/Bar.**
It shows how much work is done and how much needs to be done.

Mark story points on Y-axis and individual working days on x-axis

Team Velocity: Avg number of points/sprint
pessimistic velocity: Low value
Optimistic velocity: High value
Days 1-5 of 100 Days of Code
Tags: 100daysofcode, nextjs, fullstack
Published: 2022-10-10 16:57:41

## A Summary of the first 4 days

I have used ReactJS before so I knew the basics of NextJS. I spent the first 3 days practicing how to get data from various API. I spent day 4 making a cocktail project that involved me getting data from a [cocktail API](https://www.thecocktaildb.com/api.php). In this project, I used dynamic routes and simply fetched data. I am currently trying to fix any bugs before I deploy the final product.

## Day 5

After I complete my homework, I plan to work on the light mode UI and fix any bugs. See you tomorrow!
Conda Removing Packages or Environments
Published: 2022-10-10 16:53:47

`conda remove --name bunnies beautiful-soup`	Remove one package from any named environment

`conda remove beautiful-soup`	Remove one package from the active environment

`conda remove --name bunnies beautiful-soup astroid`	Remove multiple packages from any environment

`conda remove --name snakes --all`	Remove an environment (remove all packages)

`conda uninstall packagename` Remove one package. Alias for conda remove

`conda clean --all` Delete unused packages and caches

[Get full Conda Cheat Sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/)
Conda Managing Packages, Including Python
Tags: python, conda
Published: 2022-10-10 16:53:10

`conda list`	View list of packages and versions installed in active environment

`conda list | grep pandas` Search package in the list

`conda list --show-channel-urls` List all installed packages along its channels

`conda list --export > env.txt` Save to a Requirements file all packages in an environment

`conda list > env.txt` Save a package list an a file

`conda search beautiful-soup`	Search for a package to see if it is available to conda install

`conda search -c conda-forge black` Search Alternate Channels specify different channels as well, with the use of the -c flag

`conda search conda-forge::black` Search Alternate Channels

`conda install -n bunnies beautiful-soup`	Install a new package NOTE: If you do not include the name of the environment, it will install in the current active environment.

`conda update beautiful-soup`	Update a package in the current environment

`conda search --override-channels -c pandas bottleneck`	Search for a package in a specific location (the pandas channel on Anaconda.org)

`conda install -c conda-forge black`  Installing black from the conda-forge channel

`conda install -c pandas bottleneck`	Install a package from a specific channel

`conda install scipy --channel conda-forge --channel bioconda` Specifying multiple channels when installing a package

`conda search --override-channels -c defaults beautiful-soup`	Search for a package to see if it is available from the Anaconda repository

`conda install iopro accelerate`	Install commercial Continuum packages

`conda install black isort flake8`	install python linter

`conda install conda-build` Install conda-build

`conda install matplotlib=1.4.3` Install a certain package version

`conda install m2-patch posix`	Windows only

`conda install --use-local click`	

`conda skeleton pypi pyinstrument`

`conda build pyinstrument`	Build a package from a Python Package Index (PyPi) Package

[Conda Cheat Sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/) by [simplecheatsheet.com](https://simplecheatsheet.com)
Managing .condarc Configuration
Tags: conda
Published: 2022-10-10 16:52:02

`conda config --get`	Get all keys and values from my .condarc file

`conda config --get channels`	Get value of the key channels from .condarc file

`conda config --show channels` Knowing the active channels

`conda config --add channels pandas`	Add a new value to channels so conda looks for packages in this location

`conda config --add channels defaults` Adding a default channel

`conda config --add channels conda-forge` Adding a channel

`conda config --add channels bioconda` Adding a channel

`conda config --set anaconda_upload yes` Enable uploading to Anaconda Cloud

`conda config --set anaconda_upload no` Disable uploading to Anaconda Cloud

`conda config --set auto_activate_base false` Deactivating the activation of the base environment in Python

[Conda Cheat Sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/) by [SimpleCheatSheet.com](https://simplecheatsheet.com)
Conda Managing Python
Published: 2022-10-10 16:51:01

`conda search --full-name python`

`conda search -f python`	Check versions of Python available to install

`conda search ipython=8.3.0 --info | sed '/file name/,/timestamp/d'` For quick checking package dependencies (for example, for all python versions)

`conda create -n snakes python=3.4`	Install different version of Python in new environment

[Conda Cheat Sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/) by [cheat sheet manager](https://simplecheatsheet.com)
Conda Managing Environments
Tags: conda, package
Published: 2022-10-10 16:49:58

`conda info --envs` Verify environment you are right now

`conda info -e`	Get a list of all my environmentsActive environment shown with *

`conda create --name snowflakes biopython`

`conda create -n snowflakes biopython`	Create an environment and install program(s)

`conda activate snowflakes`	Activate the new environment to use it

`conda deactivate`	Deactivate the environment

`conda create -n bunnies python=3.9 astroid`	Create a new environment, specify Python version

`conda create -n foo instrain awscli samtools python=3.8` Create a new environment with a set of packages and specific version of Python

`conda create -n flowers --clone snowflakes`	Make exact copy of an environment

`conda remove -n flowers --all`	Delete an environment

`conda env list` List all envs

`conda env export > env.yml`	Save the current Package-specific environment to a file

`conda env export --file env.yml` Saving an entire environment to a file

`conda env export --from-history > env.yml`	Save the current Cross-platform compitible environment to a file

`conda env create -f env.yml`	Load the Package-specific environment from a file

`conda env update -n coolbase --file environment.yml`	install and/or update packages from environment.yml

`conda env remove --name bamqc` Remove Virtual Environment

`CONDA_SUBDIR=osx-arm64 conda create -n test_env --dry-run python=3.8 llvm-openmp cython numpy pip "matplotlib-base>=3.0.3" "protobuf >=3.11.2,<4.0.0" "scipy >=1.3.2,<2.0.0"`	Conda dry run environment on a specific platform

`for py in 3.8 3.9 3.10; do echo -e "\n*****  python $py  *****"; conda create --dry-run --quiet -n __test__ python=$py pandas=1.4.2; done`	Conda dry run creating an environment and installing packages (pandas 1.4.2) for different python versions

[Conda Cheat Sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/) by [Simple Cheat Sheet](https://simplecheatsheet.com)
Symbl.ai - the best audio transcribing API
Tags: symbl, buildwithsymbl
Published: 2022-10-10 16:47:50

I recently used Symbl.ai's API in BracketHacks, a hackathon, to build a discord bot that transcribed audio files into text. The documentation for the API was very easy to understand and go through, which allowed me to make the backend part of the bot within 2 hours, something which I had not expected.

We ended up winning the 3rd prize and also the sponsor prize from Symbl.ai. I would highly recommend anyone to use Symbl.ai for anything audio-related, as their services cover a wide variety of needs.
Reflect on Lab 5
Published: 2022-10-10 16:43:04

## What is lab5 about? Why do I like Lab5?
In this week's lab, we are expected to improve the quality of our code by refactoring them, and also; we are going to use lab5 as a chance to understand and practice the git features of ` --amend ` and ` rebase -i `, so that we know how to add something to the previous commit without creating a new one. I think this week's content is especially useful, because sometimes I don't want to get my commit log littered with commits all over the place, rebase and amend are exactly the features I've been looking for in Git.
## What have I fixed and how did I fix them?
In this lab5, I was focusing on the code redundancies to eliminate them, as well as fixing some logic to make them more readable. The first thing I started off was making each class do their own jobs（called "Single Responsibility Principle"), to make this happen, the class I fixed first was ArugmentQueue, because this class is supposed to read arguments and call functions to parse the files accordingly, however, it was mixed with the code that for file reading in my previous implementation, to fix that, I extracted the file reading code into some public functions in a class named ` FileProcessor `, also the code that print error messages, version, and help, was moved into a class named ` MeesagePrinter `. ArgumentQueue holds these 2 classes as member variables and initializes them in the constructor, whenever the print functions or file reading functions are needed, just call functions on these 2 member variables accordingly.
## How did I commit my code and what git command did I use?
I made several commits in refactoring my code and each commit I made was pretty small. To combine different commits into one single commit, I used ` git rebase -i ` which allows me to squash(Git actually calls it this name) commits into 1 commit and with -i(means interact) it will give me a chance to edit the final commit before forging it. In the process of the base, I removed all previous commits by putting squash in front of them, after exiting the editor, the rebase was completed. Soon after that, I checked if the unwanted commits were actually removed by using ` git log `, luckily, the rebase command worked as I expected since only one commit was shown up. However, when I tried to push it to the remote by using ` git push origin main `, git showed me that the origin repository did not exist, but it works when I use ` git push `, I googled it a little bit trying to fix it, as the result shows that I didn't add the upstream to the origin, I realized I initialized the local git repository in a wrong way, however, this was fixable simply by using command ` git remote add https://my_repo_addr.git `, after using this command ` git push origin main ` seemed worked fine.
What are Active Model Serializers?
Tags: beginners, programming, rails, ruby
Published: 2022-10-09 20:47:42


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8w59l9dp68pszuu0f4s4.jpeg)
## Introduction

When creating a Rails API data structure, the process consists of setting up routes and controllers to take care of different requests and return the requested JSON. When returning this JSON, we can customize it to only display what we specifically want it to. There are various ways to show the information we want but the **Rails' Active Model Serializer** provides a simple way to customize JSON data while also following the "convention over configuration" technique.

## Using the Active Model Serializer 

In order to use the Active Model Serializer, you, first, need to install the gem in the Gemfile and activate it by running the command, '_bundle install_', in your terminal. 

```
# Gemfile
...
gem 'active_model_serializers'
```

Next, you need to create the **ActiveModel::Serializer** by running the command, '_rails g serializer <name-of-model>_', in the terminal. Below is what the generated serializer would look like for a particular model, Restaurant. 

```
# app/serializers/restaurant_serializer.rb
class RestaurantSerializer < ActiveModel::Serializer
  attributes :id
end
```

Currently, the serializer is only allowing us to display the id of the specific restaurants in our data. If we want to customize the attributes being shown to the user, we can modify the serializer file by adding 'name, the year it started, cuisine, and a popular dish to the attributes. 

```
class RestaurantSerializer < ActiveModel::Serializer
  attributes :id, :name, :year_started, :cuisine, :popular_dish
end
```
Restaurants Controller 

```
# app/controllers/restaurants_controller.rb
def show
  restaurant = Restaurant.find(params[:id])
  render json: restaurant
end
```

Now, if we navigate to the localhost:3000/restaurants browser, we should we see all the restaurants listed including the attributes listed above. 

## Conclusion 

You just learned how to create a serializer to display specific information for the user. With this knowledge, you can try creating a serializer on your own!
Managing Conda, Miniconda, and Anaconda
Published: 2022-10-10 16:40:59

`conda --version` Check conda version

`conda info` Verify conda is installed, check version

`conda update conda` Update conda package and environment manager

`conda update anaconda` Update the anaconda meta package

`conda update --all` Update all packages in the environment

`conda update --all -y` Update all packages in the environment

Visit [conda cheat sheet](https://simplecheatsheet.com/tag/conda-cheat-sheet/) to get full
Need urgent answer ...Return function output to component in react js
Tags: react, javascript, node, express
Published: 2022-10-10 16:40:14



I'm new to react so help me out a bit. I want to return the output of useAuth .the output will be returned to ProtectedRoute component and as it is will be returned to layout.js. let me know if you need more info

Private Route.js
`   


    const ProtectedRoute = ({ component: Component, ...rest }) => {
    useEffect(() => {
    async function useAuth () {
    let as=null;
    const cookies = new Cookies();
    //const user = localStorage.getItem("authToken")
    //const user = cookies.get("authToken");
    const _id="633e9ed97968510b2689851b";


    if (user) {

        const config = {
      
            headers: {
                "Content-Type": "application/json",
            },
        };
        try{
            
        const {data}=await axios.post(
            `http://localhost:5000/api/auth/Veri`,
        {
            _id
        },
        config
          );

       console.log("data" +data.email);
       if(data.email){
       
        return (<Outlet />)
       }
       else{
        console.log(<Outlet />);
        return <Navigate to="authentication/card/login" />;
       }
        }
        catch(error){
            console.log("Error   ");
            ast=false;
            return <Navigate to="authentication/card/login" />;
        }
          
       } 
    
    else {
        ast=false;
        return <Navigate to="authentication/card/login" />
    }
     }



      useAuth() ; 

       }, []);`
`
layout.js


     `<Route element={<PrivateRoutes/>}>
      <Route element={<MainLayout />}>
      {/*Dashboard*/}
      <Route path="/" element={<Dashboard />} />
      <Route path="dashboard/analytics" element={<Analytics />} />
      <Route path="dashboard/crm" element={<Crm />} />
      <Route path="dashboard/saas" element={<Saas />} />
      <Route path="dashboard/e-commerce" element={<Ecommerce />} 
      />
      </Route>
       </Route>`
An insight into Cloud Migration Story
Tags: aws, migration, devops, awscommunity
Published: 2022-10-10 16:15:01

I was pretty excited to present at my first in-person tech event in #coimbatore!!
It's definitely something special because I am glad to be back in the city where I spent around 7 years in education and early career.

I had a great time presenting one of Infor's cloud migration stories at the AWS User Group Coimbatore meetup.

Wonderful delegates and engaging conversation made my day.

The 2nd talk from Ragavendran Chandrasekaran on the Purpose Built Databases covered the breadth of AWS Cloud DBs and was very well received.

Thank you, Vanathi Thangavel, Karthik, Ishwarya and AppViewX team for hosting us!


![cbe-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/inyzcx9qt2webl5t8tks.png)


![cbe-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ai8hf9tcqm0v1h71j2l.png)


![cbe-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tsww47x2g0icvy4ulupy.png)

Special thanks to Ragav for the great event!!

Here is the [SlideDeck](https://www.slideshare.net/BhuvaneswariSubraman1/an-insight-into-cloud-migration-story) !!
Setting up iSCSI in Ceph
Published: 2022-10-10 16:09:35

---
title: Setting up iSCSI in Ceph
published: true
description: We look into how iSCSI works inside of Ceph. How to set it up and configure windows to connect to a drive.
tags:
cover_image: https://i.ytimg.com/vi/Qx6lxotzI0k/maxresdefault.jpg
---

{% youtube Qx6lxotzI0k %}

We look into how iSCSI works inside of Ceph. How to set it up and configure windows to connect to a drive.
Future of AI (artificial intelligence)
Tags: ai, javascript, programming, python
Published: 2022-10-10 15:55:07

**In the past few years, AI has become one of the most popular and talked-about technologies. From self-driving cars to Siri, AI is slowly but surely becoming a part of our everyday lives.**


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

Despite all the hype, there is still a lot of confusion about what AI actually is. In simple terms, AI is a branch of computer science that deals with creating intelligent machines that can think and work like humans.

The main goal of AI is to create machines that can reason, learn, and solve problems on their own. This is done by programming computers to mimic the way the human brain works.

One of the most important features of AI is its ability to learn and improve over time. This is what makes AI so powerful and dangerous at the same time.

AI has the ability to revolutionize nearly every industry. Here are just a few examples of how AI is being used today:

1. Health care: AI is being used to diagnose diseases, plan treatments, and even predict patient outcomes.

2. Education: AI is being used to personalize learning experiences and create adaptive learning systems.

3. Retail: AI is being used to recommend products, customize shopping experiences, and even provide customer service.

4. Finance: AI is being used to identify fraud, make investment decisions, and even trade stocks.

5. Transportation: AI is being used to plan routes, optimize traffic flow, and even driverless cars.

AI is still in its early stages, but its potential is already huge. As AI continues to evolve, its impact on our lives will only grow.
Which book helped you understand how to design good programs?
Tags: discuss
Published: 2022-10-10 15:53:57

I've written plenty of programs in Java, Python and Bash. I've read language-specific books and books about best coding practices, etc.

But I still don't have a solid understanding of what's right or wrong when writing code, in terms of design (or something of that nature)

Brief example, I know what an interface and abstract class is in Java, I know their differences like the palm of my hand, but when I'm writting code I'm still not certain which one to use or when to use them.

I want to be better, please help me with book suggestions <3
Flatten Multidimensional array with Javascript
Tags: javascript, beginners, tutorial
Published: 2022-10-10 15:52:39

## Problem

You have a multidimensional array and you want to flatten it into a single array.

```js
const arr = [[1, 2], [3, 4], [5, 6, [7, 8, [9, 10]]]];
```

## Solution

Here, we use the `Array.prototype.reduce()` method to flatten the array. We use the `Array.isArray()` method to check if the current element is an array. If it is, we recursively call the `flatten()` function on it and concatenate the result to the accumulator. If it is not, we simply concatenate the element to the accumulator.

```js
const flatten = arr => arr.reduce((acc, val) => Array.isArray(val) ? acc.concat(flatten(val)) : acc.concat(val), []);
```

## Usage

```js
flatten(arr); // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
```

## References

  * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce)
  * [Array.prototype.concat()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat)