teleren/devto huggingface dataset:
Appwrite Community Report #3
Published: 2022-04-23 13:10:57

Hello and welcome to yet another community report from team Appwrite 👋.

This report is a weekly reminder for us, about how fortunate we are to have such a supportive community and all the great things that we have been able to build so far because of all of you! 
🙏🏻

---

## 📢  What’s new 

- Do you know about this really cool r/place app? {% embed https://almost-reddit-place.vercel.app/ %}
- It’s the second week of our hackathon, we have some amazing entries already and we're looking forward to some more cool solutions from you! 🤩
{% embed https://dev.to/devteam/announcing-the-appwrite-hackathon-on-dev-1oc0 %}

P.S - Did you know that we have limited edition goodies for every hackathon participant? 🤫

---
## ✅ Issues solved

Our quest to become the ideal solution for all your backend needs continues, as we work to fix as many issues and bugs we can every week.

This week, we have:
- Removes unused usage queue references
🔗[Link to PR](https://github.com/appwrite/appwrite/pull/3116)

- Fixed array enums dropdown
🔗[Link to PR](https://github.com/appwrite/appwrite/pull/3126)
- Avatars API docs improvement
🔗[Link to PR](https://github.com/appwrite/appwrite/pull/3087)
- Wildcard hostname support
🔗[Link to PR](https://github.com/appwrite/appwrite/pull/3124)

---

## ⚒️ What we’re currently working on

- Fixing chunked upload with Deno SDK. Currently, it doesn't work with some specific sizes.
- CLI endpoint validation - The CLI will now let you know if you’ve entered an incorrect endpoint! 
- Fixing Appwrite CLI installation on some versions of Powershell
- Adding an Activity Screen to the Teams UI in the console
- Improving how we auto-generate and renew SSL certificates

---

## 🗣 Discussions

Community member Andrey Litvinenko suggested, creating users only with `$id`, what are your thoughts on this? 🔗[Join the discussion here] (https://github.com/appwrite/appwrite/discussions/3123)

---

## 📘 Resources

- 30 days of Appwrite is now updated, have you checked them out already? 
{%embed https://30days.appwrite.io/ %}

We are awaiting to see what you build, be sure to drop them [here] (https://github.com/appwrite/awesome-appwrite).

See you again next week! 👋
Materials technology wood Project 2022
Tags: wood, projectbenatar, tutorial, react
Published: 2022-04-23 12:28:15

Materials Technology Wood (MTW) is one of the innovation subjects presented at junior cycle. In MTW you will figure out how to configuration little tasks also, the skillsrequired to utilize devices and gear to make our wood designs and guide at [woodyman](https://woodymanreviews.com/).You will work chiefly with wood yet in addition with different materials. You will find out about wood as a material and the way things are delivered.

What will I realize in MTW?
A portion of the things you will learn include:
• step by step instructions to plan a venture given a brief
portrayal of what you are to make
• step by step instructions to involve the web for research
purposes
• the most effective method to utilize freehand portraying to
convey your thoughts
• step by step instructions to set up a plan drawing/plan
of an undertaking you plan
• the most effective method to peruse plan drawings and make
little tasks from these drawings
• the most effective method to securely utilize a scope of hand and
power devices in delivering your plan.

How might I learn MTW in school?
A portion of the things you might do with your
instructor and your cohorts are:
• analyze trees,their leaves and seeds and be
ready to perceive their changing qualities
• explore what trees mean for the climate
around us
• figure out how to draw freehand
• figure out how to issue address and utilize a plan
cycle to configuration projects
• foster your specialty abilities to permit you to
make projects
• set up a plan organizer to go with
your task.

Is learning MTW anything like what I
did in elementary school?
You will expand upon the drawing work
you did in Visual Arts. You may as of now have
gleaned some significant knowledge about wood as a material as part
of your work in Science.You may likewise have
found out about trees as a component of the normal
climate and as a territory in both
Geology and Science.The abilities you
created while planning and making
things in Science will likewise be extremely useful in
MTW.You will likewise utilize your numerical
abilities a considerable amount.

Will MTW have a say in
different subjects I will study?
Indeed. Materials Technology Wood will be
helpful to you in the investigation of any of the other
three innovation subjects,Technical
Illustrations, Metalwork and Technology. Numerous
of the abilities engaged with this subject are too
utilized in different subjects. MTW is moreover
connected with a portion of the points canvassed in
Science and Art,Craft,Design.
Spring - @RequestMapping
Tags: spring, java, programming, http
Published: 2022-04-23 12:21:54

## TL;DR
It is used to **map** web requests to Spring Controller methods.

In Spring Web applications, @RequestMapping is one of the most used annotations. HTTP requests are mapped to MVC and REST controller handler methods with this annotation. 

URL handler using @RequestMapping annotation as it follows here:

```java
@RequestMapping(value = "/get/{id}", method = RequestMethod.GET)
```

The alternative approach in other words possible short version is:

```java
@GetMapping("/get/{id}")
```

We can also implement other mappings mentioned below: 


![RequestMapping Spring Annotation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xga5dsnsk65nkfs193ep.png)

To sum up, it is a better approach to use RequestMapping or alternative mapping in class level controllers since all your requests and responses will be handled in controller. Here is a full code example:

```java
@Controller
@RequestMapping(value = "/orders", method = RequestMethod.GET)
public class DemoController {

   
  @RequestMapping(value = "/{orderId}", method = RequestMethod.GET)
  @ResponseBody
  public String getOrder(@PathVariable final String orderId) {
    return "Order ID: " + orderId;
  }

  @RequestMapping(value = "/addProduct", method = RequestMethod.POST)
  public String addProductPost(@ModelAttribute("product") 
Product product) {
    // some code
}

 // other mappings
 // ...
}
```
Captions Complications, Causes, Solved
Tags: captions, solved, probl, beginners
Published: 2022-04-23 12:00:11

A great many Americans use shut captions consistently. As well as giving equivalent admittance to the Deaf and Hard of Hearing, they're utilized in open foundations like air terminals, eateries, bars, and rec centers. Realtime captions are made by gifted steno captiones on live occasions, like the news, or games.

As indicated by the FCC Caption Quality Best Practices at [Good Captions](https://dislyke.com/instagram-captions/), any prerecorded programming more likely than not prerecorded captions, and these captions are made well ahead of the program's most memorable transmission on TV.

VITAC conforms to all FCC Caption Quality Best Practices for exactness, synchronicity, fulfillment, and position.

Yet, how would it be a good idea for you to respond on the off chance that you see blunders in your shut subtitling preventing your experience and comprehension of the program?

>> I WALKED DOWN THE STREET.

becomes:

>> I WALK DO THE STREET.

But with others, it’s nearly impossible:

>> I WALKED DOWN THE STREET.

becomes:

>> I WKED DOWTH STRT.

Assuming you're seeing no captions (and you realize you've turned them on), confused captions (unusual characters and incorrect spellings), deferred captions, or captions dropping off in the center of sentences, this could possibly be a transmission mistake. Another sort and most normal transmission-related blunder is known as a matched mistake. This happens when two letters or characters are exited in rehashed stretches.

An extraordinary illustration of this was in the new GOP Presidential discussion, where to the vast majority of the country, the captions seemed blunder free, as they were composed. In any case, any place the writer of this article was watching, they showed up with matching and transmission issues: specialized blunders, not errors of the captioner, on who the mix-ups were mistakenly accused.

Assuming one of these issues is happening, contact your Video Programming Distributor (VPD) - link supplier, telecaster, or satellite supplier right away, as it is their obligation to guarantee that captions go through accurately. Their inscribing contact will be found some place on your link bill.

For any non-quick shut subtitling issue, you may likewise document a composed grievance with your VPD, or straightforwardly with the FCC.

While full-length IP-conveyed content should be subtitled in the event that it circulated on TV, content on Subscription VIdeo-On-Demand administrations like Netflix, Amazon, iTunes, and Hulu are not yet needed by the FCC to incorporate shut captions. Notwithstanding, Netflix and iTunes content should be subtitled to be on that SVOD's library.

Assuming that you're encountering any issues with inscribing on this sort of programming, if it's not too much trouble and we'll absolutely love to help you!

We are likewise eager to assist with or guide you in the correct bearing toward tackle some other inscription inconveniences! Click here to get to the contact information you can report a watcher worry to.
Spring - @RequestBody and @ResponseBody
Tags: spring, java, programming, http
Published: 2022-04-23 11:50:17

## @RequestBody

Annotation indicating a method parameter should be bound to the body of the HTTP request. With the @RequestBody annotation, POST or PUT requests are handled. It is generally used to convert a request into an object in JSON or XML format.


![RequestBody Spring Annotation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/126ognvh9fzjvh2d8bz5.jpg)

For example:

```java
@RequestMapping(value = "/isConverted", method = RequestMethod.POST)
@ResponseBody
public String isConvertedFromJson(@RequestBody User user) {
    return user.getUserName();
}
```

## @ResponseBody

It can be put on a method and indicates that the return type should be written straight to the HTTP response body. Not placed in a Modal or View name. With the @ResponseBody annotation, we can return values ​​of multiple types such as String, application/json or application/xml.


![ResponseBody Spring Annotation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lzy58q7ef9rdrwvhubh8.png)

For example:

```java
@RequestMapping(value = "/produceString", method = RequestMethod.GET)
@ResponseBody
public String produceString() {
     return "Hello World";
}
```
Github New : View your contributions in 3D, VR and IRL!
Tags: github, git, productivity, discuss
Published: 2022-04-23 11:40:16


![New Feature Skyline](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wfwi5n0bdm3g9oxmqsi4.png)

There is a new option that I noticed today in Github.
When we navigate to our contribution count field, there is a new option showing on the bottom left part.

**NEW! View your contributions in 3D, VR and IRL!**


![New option](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ngn1ql9c0m0p9n36ngsz.png)

When we click on it, we will be directed to the `https://skyline.github.com/` which help us to show our GitHub story in 3D.
Just provide your github handle to see your story in 3D.

## Inside the 3D View

It opens up with a 3D view of our contribution history which rotates in a clockwise direction and also with a background music.
We can turn of the music if needed.
There is also an option to download the file which is present at the bottom left corner.

![Download option](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3cuqmyqss9ksaq9006fj.png)


We can also add annotations to the graph and also easily share the data to twitter.


![Cool View](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03sc2hjai934uur5lcxq.gif)

So how cool is this 3D view? Please share your thoughts and valuable information.
30. Substring with Concatenation of All Words
Tags: cpp, algorithms, 100daysofcode, programming
Published: 2022-04-23 11:38:09

# Description

You are given a string `s` and an array of strings `words` of **the same length**. Return all starting indices of substring(s) in `s` that is a concatenation of each word in `words` **exactly once**, **in any order**, and **without any intervening characters**.

You can return the answer in **any order**.

## Example 1:

```
Input: s = "barfoothefoobarman", words = ["foo","bar"]
Output: [0,9]
Explanation: Substrings starting at index 0 and 9 are "barfoo" and "foobar" respectively.
The output order does not matter, returning [9,0] is fine too.
```

## Example 2:

```
Input: s = "wordgoodgoodgoodbestword", words = ["word","good","best","word"]
Output: []
```

## Example 3:

```
Input: s = "barfoofoobarthefoobarman", words = ["bar","foo","the"]
Output: [6,9,12]
```

## Constraints:

- `1 <= s.length <= 104`
- `s` consists of lower-case English letters.
- `1 <= words.length <= 5000`
- `1 <= words[i].length <= 30`
- `words[i]` consists of lower-case English letters.

---

# 解题

## 方法一

### 思路

两个滑动窗口

### 代码

```java
public List<Integer> findSubstring(String s, String[] words) {
    ArrayList<Integer> res = new ArrayList<>();
    HashMap<String, Integer> map = new HashMap<>();
    int one_word = words[0].length();
    int word_num = words.length;
    int all_len = one_word * word_num;
    for (String word : words) {
        map.put(word, map.getOrDefault(word, 0) + 1);
    }
    
    for (int i = 0; i < s.length() - all_len + 1; i++) {
        HashMap<String, Integer> tmp_map = new HashMap<>();
        for (int j = 0; j < all_len; j += one_word) {
            String w = s.substring(i + j, i + j + one_word);
            if (!map.containsKey(w)) {
                break;
            }
            tmp_map.put(w, tmp_map.getOrDefault(w, 0) + 1);
        }
        if (map.equals(tmp_map))
            res.add(i);
    }
    return res;
}
```

### 复杂度分析

- 时间复杂度:  O(nm)
- 空间复杂度:  O(m)

---

## 方法二

### 思路

### 代码

```cpp
class Solution {
public:
    vector<int> findSubstring(string s, vector<string>& words) {
        vector<int> res;
        if (words.empty()) return res;
        int m = words.size(), w = words[0].size(), mw = m * w, cnt = 0;
        unordered_map<string, int> wf, wd;
        for (auto& word : words) wf[word]++;
        for (int i = 0; i < w; i++) {
            for (int j = i; j + w <= s.size(); j += w) {
                if (j >= i + mw) {
                    string word = s.substr(j - mw, w);
                    wd[word]--;
                    if (wd[word] < wf[word]) cnt--;
                }
                string word = s.substr(j, w);
                wd[word]++;
                if (wd[word] <= wf[word]) cnt++;
                if (cnt == m) res.push_back(j - (m - 1) * w);
            }
            wd.clear();
            cnt = 0;
        }

        return res;
    }
};
```

### 复杂度分析

- 时间复杂度: O(n*w)
- 空间复杂度: O(n)
Multiprocessed twitch downloader📺
Tags: python, twitch, dowloader
Published: 2022-04-23 11:33:05


https://github.com/iampickle/twitchbot

🧑‍🏫**<u>Explanation</u>**
I created a twitch downloader with checks a list of streamers (all simultaneously). if the event occurs that one of them should go online the stream is automatically downloaded.

🏁**<u>Plans</u>**
Chat visual recording. Interesting especially for cutters

Currently code is a bit messy and more on the hacky side not very beautiful and fluent. That’s why help is appreciated.🙏
How a Vlocity Acquisition helps Customers
Published: 2022-04-23 11:29:10


Let’s analyze by looking at a use circumstance how Vlocity has helped Telus, a communications organization.

Telus is a To the north American telecommunications company that provides companies services, such as wireless, data, Net protocol (IP), speech, television, entertainment and video.

In order to gauge customer loyalty, Telus chose to chase it is most important metric, Likelihood to Advise (L2R). L2R is part of the NPS (Net Marketer Score) including Telus it determines customer satisfaction and is linked to earnings and profitability expansion. As a consequence, an initiative to improve service quality seeking 4 aims was launched:

 

- Boost “Time to Market” (TTM) for new solutions
-  Reduce “Average Handling Time” (AHT)
-  Reduce “Quote to Order” cycle time
-  Give you a regular experience across assisted and unassisted channels
Telus started by implementing Salesforce’s Service Fog up and CPQ (Configure, Price, Quote) system. When Service Fog up restructured account, contact, lead and opportunity management thereby adding to to higher L2R scores, the CPQ software wasn’t kbvkj enough and weren't getting overall flexibility to build prices and capture orders placed for communication services. It would sometimes take agents way up to 20 min to have a quote for a buyer.

It was at that point when Telus was added to Vlocity at a Dreamforce event. Telus realized that Vlocity had already built the genuine had been investment millions and many months to formulate themselves: Devices Industry Cloud.

**Like a result:**

- 10% increase in customer L2R
-  24% increase in order exactness
-  54% faster citing and getting
Many of these faster product establish time
Here, we can evidently see how [Vlocity salesforce training](https://www.igmguru.com/salesforce/salesforce-vlocity-training-certification/) can help customers who belong to specific industries by keeping them millions of dollars and permitting them with a lot faster development launch time.
How to dual-boot Ubuntu alongside Windows
Tags: ubuntu, opensource, beginners
Published: 2022-04-23 10:55:05

Linux is a paradise for all the developer gods out there, and is something every beginner should be having hands-on. In this article we are going to see how to install Ubuntu alongside windows. This is suggested to most of the beginners because in case if something goes wrong, we can revert back to how the PC was before installation.

1. First download Latest version of Ubuntu from here
source: [click here](https://ubuntu.com/#download)

2. Create a live USB using [rufus](https://rufus.ie/en/)

3. Burn the ISO file of ubuntu into an empty pen drive using rufus(you can refer to rufus [official website](https://rufus.ie/en/) if you have any doubt).

4. Now go to **MyPc** and right click -> manage -> disk management. Now create partitions according to your own convenience(you can use this [article](https://support.microsoft.com/en-us/windows/create-and-format-a-hard-disk-partition-bbb8e185-1bda-ecd1-3465-c9728f7d7d2e) for reference).
![The partition that I made](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bppkf9ig8767urxztwuh.png)
I have created two disks with 25 GB SSD disk for root(so that booting is faster) and 200 GB HDD disk for file storage.

5. Go to start menu search bar and search "Change advanced startup options".
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d798v571sya5slx3v3a3.png)  
click **Restart Now**.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdrcpw5rkyyhykyp8evv.png) 
Now select **Use a USB Drive**.
Now it will reboot into the live USB

6. Click **Install Ubuntu** and from now select options according to your convenience.

**Troubles that I faced:** 

- When I installed ubuntu two years ago on dual boot mode, my pc was very slow.

**How to Overcome:**
The reason why it is slow is, the bootstrap of Ubuntu is saved in HDD part of the disk. So to overcome that, create a separate partition in SSD(you can use this [article](https://support.microsoft.com/en-us/windows/create-and-format-a-hard-disk-partition-bbb8e185-1bda-ecd1-3465-c9728f7d7d2e) for reference) and use it for root folder of your Ubuntu OS.
Terminal komandalar | Part 1
Published: 2022-04-23 10:54:06

# `pwd ` ( print working directory )
- joriy papka manzilini chop etish.
```
/ home/runner/terminal/foundation
```

## `clear`
-terminaldagi hamma textni tozalash .

## `Ls `
```
main.cpp Makefile replit.nix
```
Implement Reading Progress Bar using Flutter
Tags: flutter, uiweekly, flutterui
Published: 2022-04-23 10:32:57

Have you seen the progress bar that fills up as we scroll down the article we are reading? If not, then [check now](https://www.cssscript.com/demo/top-progress-bar-reading/).

[Read Here](https://tushar-asodariya.medium.com/implement-reading-progress-bar-using-flutter-c5125dc1d3b6)
Docker crash notes..
Published: 2022-04-23 10:27:14


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5rabhdi581f1o36xr19.jpg)
_I am sharing you the notes that i have taken while learning about docker.._

**Container** - isolated environment for running an application.

**Docker Architecture**
          (Rest Api)
client-------------------->Server 
                       (Docker Engin)
All Container share the kernal of the host.
Kernal-It is like the engin of the car.
Diff os has diff kernal and the diff types of containers are used in each of that kernal.

**Docker installation**
https://docs.docker.com/engine/install/ubuntu/

**Developement workflow**
>Take an application/project
>We add docker file to it.
>Dockerfile is a plain text file that includes information that docker uses to package up this application into an image.
>image contain everything our application needs to run.(like.. cut-down os, a runtime environment, application files, third party libraries, environment variable)
>once we have an image, we tell docker to start a container using that image.
>So our app gets loaded inside a container.

>>Docker to Docker hub(like git to github)
We can push image from docker to docker hub.

**Docker in action**
>Add Dockerfile.
>inside dockerfile addd:
FROM node:alpine -//base image. here we are taking an image called node and adding some changes to it.alpine-its a linux distribution.
COPY . /app -//coping the current directory into the app directory in that image.
WORKING /app -//mentioning the current working directory.
CMD node app.js -//command to execute.

>Creating image to package up the appli...
 `docker build -t hello-docker .` (docker|build|-t|#image-name#|#where we can find the Dockerfile#.)

>To list all the created image:
 `docker image ls`

>To run the image:
 `docker run image-name`

>To rename docker image -
 `docker image tag server:latest myname/server:latest`(latest- tag name)

>To push
 `docker login`
 `docker push my-name/image-name`

>To pull
` docker pull my-name/image-name`
 Then run .....