teleren/devto huggingface dataset:
Blackbox — Code as fast as you think
Tags: vscode, react, node
Published: 2023-01-13 20:08:28

**Blackbox Code Search**

Blackbox code search is build to make developers find the best code snippets to use while building awesome products!

Blackbox code autocomplete is available in 20+ programming languages including: Python, Java, C and C++, C#, JavaScript, SQL, PHP, Go, TypeScript, Kotlin, MATLAB,R, Swift, Rust, Ruby, Dart, Scala.

Here are 4 simple steps to make sure you have a great experience using Blackbox!

Step1: Start the line with "//"

Step2: Write your question for example: "//how to get the stock data of Tesla in python?"

Step3: Once you press the "?" question mark, Blackbox will return the code snippet

Step4: Press Tab to keep the suggested code snippet


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

**Blackbox Code Autocomplete**
Blackbox code autocomplete is build to make developers faster while writing code.

Blackbox code autocomplete is available in 20+ programming languages including Python, JavaScript, TypeScript, Go, and Ruby

Here are the 3 simple steps to make sure you have a great experience using Blackbox

Step 1: Open command palette (command + shift + p)

Step 2: Click on “Enable Blackbox Autocomplete

Step 3: Start coding and Blackbox will provide code suggestion each time you hit Enter

Note: For improved accuracy of the suggested code, it is recommended to start with a good comment on the function you want to build and Blackbox suggestions will improve.

**Blackbox Code Search on Jupyter Lab & Jupyter Notebooks**
Blackbox code search is now available on Jupyter to enable Developers and Data Scientists to find the best code snippets to use while building awesome products !

Here are 4 simple steps to make sure you have a great experience using Blackbox .

Step0: [Download](https://www.useblackbox.io/vscode) the Blackbox Chrome Extension

Step1 : Start the line with the comment symbol depending on which programming language you are using // , # , etc ....

Step2 : Write your question for example : " #connect to mongodb in python?”

Step3 : Once you press the " ? " question mark , Blackbox will return the code snippet

Step4: Press on the “Right Key” to accept the suggested code
Hadoop hdfs
Tags: hadoop, command, example, hive
Published: 2023-01-13 20:03:12

The File System (FS) shell includes various shell-like commands that directly interact with the Hadoop Distributed File System (HDFS) as well as other file systems that Hadoop supports, such as Local FS, WebHDFS, S3 FS, and others. The FS shell is invoked by:

**Hadoop HDFS Commands
**Most of the commands in FS shell behave like corresponding Unix commands. Differences are described with each of the commands. Error information is sent to stderr and the output is sent to stdout.

If HDFS is being used, hdfs dfs is a synonym. Relative paths can be used. For HDFS, the current working directory is the HDFS home directory /user/ that often has to be created manually. The HDFS home directory can also be implicitly accessed, e.g., when using the HDFS trash folder, the .Trash directory in the home directory.

We will start with some very basic help commands and go into more detail as we go through this lesson.

- **fsck**
- **ls**
- **mkdir**
- **touchz**
- **du**
- **cat**
- **text**
- **copyFromLocal**
- **copyToLocal**
- **put**
- **get**
- **count**
- **rm**
- **rm -r**
- **cp**
- **mv**
- **expunge**
- **rmdir**
- **usage**
- **help**
Nueva Zona Local en Latam
Tags: aws, spanish, architecture, cloud
Published: 2023-01-13 19:51:42

La innovación y la tecnología siguen avanzando para impulsar la transformación digital tras el anuncio de nueva infraestructura en Latam del servicio en la nube conocida como **AWS Local Zones** anunciadas el año pasado 2022, dentro de este anuncio se encuentra  Santiago de Chile y hoy 2023 ya está disponible.

![ nuevas zonas locales de AWS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/637xd3feace86756sj38.PNG)

Con esto podremos aprovechar el poder de cómputo de la nube para crear y renderizar modelos y animaciones en 3D. Las instituciones educativas pueden ofrecer mejores experiencias para los estudiantes con laboratorios en línea.

Te dejamos acá un video en el link para que visites y puedas ver como puedes activar esta **[nueva Local Zone](https://www.linkedin.com/posts/aws-girls-cl_amazon-web-services-aws-anunci%C3%B3-local-zones-activity-7019681119545511936-RyvK?utm_source=share&utm_medium=member_ios)**.

[Link oficial de anuncio](https://aws.amazon.com/es/about-aws/whats-new/2023/01/general-availability-aws-local-zones-perth-santiago/?fbclid=PAAaZx8R-OTcrO70PiVv8cwyq2tmehDwPQw7m_QULulGPOyhtjzqDIGNTgOKk)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2sjbmonf43hupmraxvda.PNG)

Puedes seguirme para mas noticias en mis redes....
Follow me [Instagram](https://www.instagram.com/jossy.samhatech/) 
Follow me [DEV.TO](https://dev.to/jossy_samhatech) 
Follow me [LinkedIn](https://www.linkedin.com/in/jocelynhs/)
Brainwash yourself everyday to success!🧠😍
Tags: webdev, javascript, beginners, programming
Published: 2023-01-13 19:35:39

Hey folks!
Here is a tip on how to brainwash yourself to success 😀😂👌❤️😍

- Alter your reality to become a developer,
- If you don’t have enough hours to sit down and code, find other ways to learn.
- Some of you don’t have the time to code because you have a family, you have school, and you have work.
- Whatever your reason is, there are still ways for you to learn.

I wouldn’t tell you to stop coding I still need you to code every day as much as you can, but here's how you can double, triple, or even quadruple your learning.

If you’re at your computer while you’re taking a break from coding there are YouTube videos that talk about code and maybe it'll even give you ideas to implement once you get back to work.

- Anytime you’re stepping away from your computer to take care of life, immerse yourself in anything that has to do with coding.
- If you drive for one to two hours a day, you can listen to coding podcasts.

There are some good ones out there where that just talk about coding and that can help while you’re away from your computer.

- If you’re a parent that has to take care of housework like washing dishes or cleaning the house, you can also watch Youtube videos or listen to podcasts while you’re doing that.
No matter what you do, in your winding down time try watching shows like Silicon Valley or Mr. Robot.

- You may not learn coding through those like you would with podcasts or Youtube videos, but it’ll keep you entertained while being pumped up to continue learning to code.

When it’s time to sleep your brain will finish processing all the information you took in throughout the day and it will all help you for your coding session the next day.

- Do that every day and you’ll start to connect more with the reality of being a software developer, making you want to do things right.

- Keep going on your journey and immerse yourself into being a software developer and you’ll get there.
- If you want to get immersed with help along the way, get help from me and my team.

### Conclusion

Get more of this articles on www.melbite.com
If this was helpful leave a comment and a like 👍

```
Happy coding
```
Methods, Symbols, Strings Pt 2
Published: 2023-01-13 19:09:01

In building out a data model for users in a hypothetical "photogram" web app, the syntax is quite tricky!
Why, in the code below, do we use symbols, strings, and methods at different points?

```
class User < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :validatable

  has_many :own_photos, class_name: "Photo", foreign_key: "owner_id"
  has_many :comments, class_name: "Comment", foreign_key: "author_id"
  has_many :follow_requests_received, class_name: "FollowRequest", foreign_key: "recipient_id"
  has_many :follow_requests_sent, class_name: "FollowRequest", foreign_key: "sender_id"
  has_many :likes, class_name: "Like", foreign_key: "fan_id"
end
```
📺 Live Example: Dream Customer Research A-Z
Published: 2023-01-13 18:58:28

<br><br>
---
{% embed https://www.youtube.com/watch?v=4GaY9TFYjYg&ab_channel=devinschumacher %}

---

👉 [Grab the (free) course workflow & resources here](https://www.process.st/checklist/course-dream-customers-buyer-persona-customer-avatar-research/)

<br><br>
📺 Attracting Your Dream Customers
Published: 2023-01-13 18:55:43

<br><br>

---

{% embed https://www.youtube.com/watch?v=NQZVgnfkJSI&ab_channel=devinschumacher %}

---

👉 [Grab the (free) course workflow & resources here](https://www.process.st/checklist/course-dream-customers-buyer-persona-customer-avatar-research/)

<br><br>
🧑‍🏫 Dream Customers: A Course on Crafting the Perfect Customer Avatar
Tags: marketing, seo, tutorial, beginners
Published: 2023-01-13 18:48:47

Welcome to this course on identifying & attracting your Dream Customers.

You are about to learn how to do the most important part of marketing: How to get a psychic-like understanding of your customer's true wants, needs, pains, fears, desires, roadblocks, objections, etc.

And I break down for your step-by-step how to do it better than 99.99% of businesses, advertisers and marketing agencies out there.

Most business owners skip this, half-ass this, or just do it wrong - but not you.

Get this right and everything you do from here on out will be exponentially easier to execute, and much more lethally effective when implemented.

When dont properly, this research can single-handedly:

lower your ad costs

increase your leads

skyrocket your sales

give you an enormous competitive advantage

make your messaging un-ignorable, and your offers irrefusable.

It's not hard. It's not complicated. It's not expensive.

It just takes a little bit of time & a desire to be great. And once you do it, the work is timeless.

Do it and succeed.

Follow along in here:

👉 [Grab the (free) course workflow & resources here](https://www.process.st/checklist/course-dream-customers-buyer-persona-customer-avatar-research/)

<br><br>
Prefect in Azure Container Instances
Tags: prefect, python, azure, arm
Published: 2023-01-13 18:39:24

With Prefect 2, prefect agents can run in Azure Container Instances. This has a number of benefits:

- Less infrastructure to manage. No VMs, no AKS clusters, just your flow. Running.
- Request the resources you need for each job. Up to 6 Cores, 56 Gb RAM and 4 GPUs if you need. 1 CPU and 1 Gb RAM is fine too.
- Better security - because everything other than the container is managed by Azure, there is less for you to keep safe.
- In many cases cheaper than the alternatives.

There are a few drawbacks though, that you need to keep in mind:
- Running a flow requires you to create a new Azure Container group, which takes longer than starting a job either on a VM or on AKS.
- If you are used to AKS, you might have many systems running and communicating seamlessly using k8s services. ACI has no such feature. Every instance gets an IP address, but no service name that can be used.

Because ACIs are ephemeral, you might need to think about authentication differently. If you are used to VMs in Azure, and you use RBAC, you might be familiar with how the VM gets assigned a managed identity which makes it easy for it to authenticate with other resources. But first, it needs to be given that access, which isn't that big of a problem.

But with an ACI that lives just a few seconds, you need the container to have its access rights right from the start. This is where user-managed identities help. They are explicitly designed identities, that are given the permissions it needs, and can be attached to VMs, containers and more.

All of this can be set up with ARM template, plus a few scripts to create the necessary Prefect blocks. A full example deployment (both in the Azure ARM sense and the Prefect sense) is located at https://github.com/radbrt/prefect_aci.
How to Create a Dynamic Routing using the Params() in ReactJS?
Tags: javascript, react, param, webdev
Published: 2023-01-13 18:38:39

## Use React Router Dom @6 Version to Route the Pages 

# Create One Page as Coin and use page in APP.js 

```
import { Routes, Route } from "react-router-dom";
import "./App.css";
import Home from "../src/Page/Home";
import User from "./Component/User";
import About from "./Page/About";
import Navbar from "./Component/Navbar";
import Coin from "../src/Page/Coin";

function App() {
  return (
    <>
      <Navbar />
      <Routes>
        <Route path="/" element={<Home />} exact />
        <Route path="/coin/:d" element={<Coin />}  />
        <Route path="/about" element={<About />}  />
        <Route path="/user/:id" element={<User />} />
      </Routes>
    </>
  );
}

export default App;

```

## In the Coin Page

```
import React, { useEffect, useState } from "react";
import { Link, useParams } from "react-router-dom";
import Loading from "../Component/Loading";

const Coin = () => {
  const paramsData = useParams();
  const { d } = paramsData;
  const [u, sUser] = useState([]);
  const [check, setCheck] = useState(true);
  useEffect(() => {
    fetch(`https://jsonplaceholder.typicode.com/users/${d}`)
      .then((res) => res.json())
      .then((data) => {
        sUser(data);
        //console.log(data);
        setCheck(false);
      });
  }, []);
  return (
    <>
      <center>
        {check ? (
          <Loading />
        ) : (
          <>
            <p>
              <b>Name:</b> {u.name}
            </p>
            <p>
              <b>User Name:</b> {u.username}
            </p>
            <p>
              <b>Email: </b>
              {u.email}
            </p>
            <p>
              <b>Website:</b> {u.website}
            </p>
            <Link to="/">Go the Home</Link>
          </>
        )}
      </center>
    </>
  );
};

export default Coin;

```
"Remembering Aaron Swartz" from Endless Thread 🎧
Tags: podcast
Published: 2023-01-13 18:24:15

**Content Warning:** this post and the podcast episode contain mentions of suicide. Please take care while listening.

---

I wanted to share this episode for anyone who's interested in reflecting on the life and legacy of [Aaron Swartz](https://en.wikipedia.org/wiki/Aaron_Swartz), who passed 10 years ago this week. Swartz is credited with assisting in the development of [RSS](https://en.wikipedia.org/wiki/RSS), [Creative Commons licensing](https://en.wikipedia.org/wiki/Creative_Commons_license), [Markdown](https://en.wikipedia.org/wiki/Markdown), the [web.py](https://webpy.org/) framework, and [Reddit](https://en.wikipedia.org/wiki/Reddit). 

I found the episode insightful, emotional, and powerful to hear. Would love to hear your thoughts after listening.

---

> In this episode of [Endless Thread](https://www.wbur.org/podcasts/endlessthread), co-hosts Amory Sivertson and Ben Brock Johnson honor the legacy of internet activist Aaron Swartz with two people familiar with his life and work: documentary filmmaker [Brian Knappenberger](https://en.wikipedia.org/wiki/Brian_Knappenberger) and [Cindy Cohn](https://www.eff.org/about/staff/cindy-cohn) of the [Electronic Frontier Foundation](https://www.eff.org/).

> Swartz died by suicide ten years ago this week, on January 11, 2013, at the age of 26. 

{% spotify https://open.spotify.com/episode/5FIJHAsyX7Qf4JPyY2XMVM?si=ee7a15b33c3c4cad %}
Best aesthetic pc build colors for developers
Published: 2023-01-13 18:22:39

The color of the components may not seem to be a major factor when constructing a PC for development work. The design of their workstation, however, can have a significant impact on many developers' overall productivity and happiness. We'll look at some of the greatest PC build colors for developers in this blog post, including [black and white setups](https://zeebapc.com/black-and-white-pc-build/).

We start with the traditional black and white color palette. Many developers choose this classic combo since it is slick, refined, and simple to match with other elements. The versatility of black and white builds also makes them appropriate for a variety of locations, including the home or the workplace.

The traditional black and red color combination is yet another fantastic choice for developers. For individuals looking to stand out with their build, this daring combo is ideal. For developers who want to remain concentrated and productive for extended periods of time, the red accents give a hint of aggression and intensity.

Developers also frequently use the black and blue color combo. For individuals who want to foster a quiet and serene atmosphere at work, this color palette is ideal. The blue accents give the design a sense of coolness and can ease eye strain, which is especially useful for developers who spend a lot of time in front of their screens.

The black and green color combo is yet another excellent one for developers. If you want to infuse your workspace with a sense of harmony and balance, this color palette is fantastic. For developers who operate in a fast-paced, high-pressure atmosphere, the green accents add a touch of nature and can assist to decrease tension and anxiety.

A gray and white PC design is also a fantastic choice for developers, to sum up. For people who prefer a simple, eye-pleasing style that is clean and minimalist, this color combination is ideal. For developers who must remain concentrated and creative for extended periods of time, the gray accents provide a touch of refinement and can aid in fostering a sense of focus.

In conclusion, the color of the components can have a significant impact on overall productivity and enjoyment when creating a PC for development work. Developers who wish to instill a sense of concentration, equilibrium, and harmony at their workspace have a lot of wonderful possibilities, including black and white, black and red, black and blue, black and green, and gray and white. Select the shade that most closely matches your personal style, then relish your brand-new developer-friendly PC setup!
Beyond the Basics: 10 Uncommon Features That Make Java a Powerful Language
Tags: java, programming, productivity, codenewbie
Published: 2023-01-13 18:17:08

When anyone talks about java and its features, why choose java,
what makes Java different from others etc.
For the above type of questions mostly you'll listen to the predefined answers - like 

Platform independence
Object-oriented programming
Large developer community
Robustness
Security
etc.

Although these are obviously correct, these points play a major role, but apart from that we have lots of other reasons why java is the most powerful language.

**Here are Some Beyond the Basics**

**Dynamic proxies:** Java's support for dynamic proxies makes it easy to create objects that can mimic the behavior of other objects, making it useful for tasks such as mocking and testing.

**Native XML support:** Java's built-in support for XML through libraries such as JAXB and DOM makes it easy to work with XML data in a Java application.

**Reflection:** Java's built-in reflection API makes it possible to inspect and manipulate classes and objects at runtime, making it useful for tasks such as debugging and code generation.

**Built-in regular expressions:** Java's built-in support for regular expressions makes it easy to search and manipulate text data in a Java application.

**Built-in cryptography:** Java's built-in support for cryptography makes it easy to add security features to a Java application, such as encryption and digital signing.

**Dynamic scripting support:** Java's built-in support for dynamic scripting languages, such as JavaScript, through libraries like Rhino, makes it easy to add scripting functionality to a Java application.

Follow the below link to read the complete post.

[10 Uncommon Features That Make Java a Powerful Language](https://www.javaoneworld.com/2023/01/why-java-is-most-powerful-language.html)

Follow @amymishra11 for more.
how to add zendesk chat widget in react js
Tags: javascript, webdev, react
Published: 2023-01-13 18:16:14

{% youtube xIsgcg9Ieak%}

Save this as ZendexConfig.js in your `src` folder
```js
import { Component } from "react";
import PropTypes from "prop-types";

const canUseDOM = () => {
  if (
    typeof window === "undefined" ||
    !window.document ||
    !window.document.createElement
  ) {
    return false;
  }
  return true;
};

export const ZendeskAPI = (...args) => {
  if (canUseDOM && window.zE) {
    window.zE.apply(null, args);
  } else {
    console.warn("Zendesk is not initialized yet");
  }
};

export default class Zendesk extends Component {
  constructor(props) {
    super(props);
    this.insertScript = this.insertScript.bind(this);
    this.onScriptLoaded = this.onScriptLoaded.bind(this);
  }

  onScriptLoaded() {
    if (typeof this.props.onLoaded === "function") {
      this.props.onLoaded();
    }
  }

  insertScript(zendeskKey, defer) {
    const script = document.createElement("script");
    if (defer) {
      script.defer = true;
    } else {
      script.async = true;
    }
    script.id = "ze-snippet";
    script.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskKey}`;
    script.addEventListener("load", this.onScriptLoaded);
    document.body.appendChild(script);
  }

  componentDidMount() {
    if (canUseDOM && !window.zE) {
      const { defer, zendeskKey, ...other } = this.props;
      this.insertScript(zendeskKey, defer);
      window.zESettings = other;
    }
  }

  componentWillUnmount() {
    if (!canUseDOM || !window.zE) {
      return;
    }
    delete window.zE;
    delete window.zESettings;
  }

  render() {
    return null;
  }
}

Zendesk.propTypes = {
  zendeskKey: PropTypes.string.isRequired,
  defer: PropTypes.bool,
};

```

and in your `App.js` paste this code
```js
import React from "react";
import ReactDOM from "react-dom";
const ZENDESK_KEY = "##########################";
import Zendesk, { ZendeskAPI } from "./ZendexConfig";
const App = () => {
  const handleLoaded = () => {
    ZendeskAPI("messenger", "open");
  };
  return (
    <div>
      <Zendesk defer zendeskKey={ZENDESK_KEY} onLoaded={handleLoaded} />
    </div>
  );
};

export default App;

```

Follow this docs to add anything in your handleLoadedFunction
https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/web/sdk_api_reference/#custom-launcher
Uncovering the Hidden Powers of Java: 10 Uncommon Reasons Why it's a Must-Have Language
Tags: java, programming, codenewbie, computerscience
Published: 2023-01-13 18:11:11

When anyone talks about java and its features, why choose java,
what makes Java different from others etc.
For the above type of questions mostly you'll listen to the predefined answers - like 

Platform independence
Object-oriented programming
Large developer community
Robustness
Security
etc.

Although these are obviously correct, these points play a major role, but apart from that we have lots of other reasons why java is the most powerful language.

**Uncovering the Hidden Powers of Java**

**Automatic memory management:** Java's automatic memory management, also known as garbage collection, makes it easy for developers to write code without worrying about freeing up memory.

**Concurrency support:** Java's built-in support for concurrency, through the use of threads, makes it easy to write code that can perform multiple tasks at the same time.

**Dynamic class loading:** Java's ability to dynamically load classes at runtime makes it possible to add new functionality to an application without having to restart it.

**Built-in annotations:** Java's built-in annotations, such as @Override and @Deprecated, make it easy to add metadata to code and improve code readability.

**Dynamic proxies:** Java's support for dynamic proxies makes it easy to create objects that can mimic the behavior of other objects, making it useful for tasks such as mocking and testing.

Read the complete blog post here.

[10 Uncommon Reasons Why it's a Must-Have Languag](https://www.javaoneworld.com/2023/01/why-java-is-most-powerful-language.html)

Follow me @javaoneworld for more tech content like this.