teleren/devto huggingface dataset:
Share your MongoDB Atlas Hackathon Updates!
Tags: atlashackathon, mongodb, discuss
Published: 2021-12-13 19:22:11

---
title: Share your MongoDB Atlas Hackathon Updates!
published: true
description: Use this thread to share progress updates on your GitHub Actions hack!
tags: atlashackathon, mongodb, discuss
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5ep903yqooczu2vy63x.png
---

We’d love to know what you’re working on for the [MongoDB Atlas Hackathon](https://dev.to/devteam/announcing-the-mongodb-atlas-hackathon-on-dev-4b6m) here on DEV! Fill us in on your project and how things are going below. and how things are going with this exciting challenge. 

> **Use this thread to share ideas, gather feedback, and get to know other MongoDB Atlas Hackathon contestants!** 

If you've just reached a new milestone with your project or if you've just solved a tough problem, we encourage you to publish a standalone post. Just be sure to add the [#atlashackathon](https://dev.to/t/atlashackathon) tag so all of us can find it on the tag page. 

If you need help with a specific problem, head over to the [help thread](https://dev.to/devteam/mongodb-atlas-hackathon-help-thread-3g3a) where members of the DEV and MongoDB teams are standing by to assist you.

Have a great time! We can't wait to meet you and hear all about your submission.
Is AI responsible for the stock market volatility?
Tags: ai, javascript, machinelearning
Published: 2021-12-21 12:35:09

Along with programming, I have developed an interest in the stock market over the past few years. Over the last few days, all the stock markets all over the world including India, the US, the UK, Germany, Japan, and almost every other country are volatile.

Many experts believe this volatility is because of these reasons:

- Rise in inflation rate
- Interest rate hike from Banks
- Increasing fear of Omicron variant
- Might be a few regional reasons

But, according to me, this might be a reason:

Many stockbrokers and operators have started using Artificial Intelligence that reads all charts and once a stock hits a certain number, the AI model buys or sells stokes. I feel an Artificial Intelligence robot does not have emotions or human intelligence and when trades, it becomes harsh for the market.

Do share your thoughts, I would like to read what you think ? Does this make a difference?
What is Object Oriented Programming Language
Tags: oop, cpp, beginners, programming
Published: 2021-12-10 02:42:41

Basically older Programming language like COBOLT and C followed the Procedural Programming approach.in this type of programming language only focus on the logic rather than data abstraction.
Modern programming language like C#,python, Cpp and java etc. follow the Object oriented approach.
Object Oriented programming is main focus on the data rather than just write the instruction to perform the task.

**the class are user define data types
and in simple word object is variable of that data type that can store the desire things.**
- class is blue print for the creating the object, and A class can define the attribute and behavior.
for example:--
if we are design the car in our application then we could define attributes of the car like model ,fuel, and behavior like start ,break , accelerate etc..
this attribute and behavior not specific for a one model.

## **Abstraction**
**Abstraction is focus on the what object can do in stead of how object can done.**
In the abstraction we can only know essential features without knowing the detail background implementation
abstraction is important when we do any modification in one module than no other module can be affected_
example 
break in car we only use this functionality and not know mechanism behind this functionality
or we also say same as accelerator


## **Encapsulation**
encapsulation is closely related to abstraction.
  **encapsulation bind the data and behaviors together in a single unit** 

Abstraction is implementation hiding.
Encapsulation is information hiding.
Abstraction provide generalization and hiding their implementation.
Encapsulation is hiding of internal data from outsider.

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


## **Inheritance**
inherence is powerful features of the oops
inheritance help to organizing the class in hierarchy and enabling these class to inherit attribute and behavior from class above in the hierarchy

**Inheritance is concept that allow us to create new class from from existing  class by inheriting the properties of that class**

## Some Advantage of inheritance:
Reusability ,Flexibility ,Redundancy ,Data hiding

- Single inheritance
- Multi-level inheritance
- Multiple inheritance
- Multipath inheritance
- Hierarchical Inheritance
- Hybrid Inheritance


## **Polymorphism**
Learning Experience Platform | Skillqore
Tags: tutorial
Published: 2021-12-10 03:39:12

**Skillqore** is an Artificial Intelligence (AI) based Learning Experience Platform for individuals and organizations with a mission to enable lifelong learning.

Using Skillqore, individuals or employees can discover learning opportunities that includes thousands of free online courses from hundreds of universities, videos, books, articles and podcasts.

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

Skillqore aggregates learning content from different sources on the web. For Corporations, internal Learning Management Systems and other learning content can also be aggregated.

In a few simple steps, a profile can be created. Skillqore's AI-based recommendation engine will curate and deliver the most relevant, high quality and personalized learning content to your Inbox. You can add any content to your profile to manage and track your progress and completion. **Read more [click here](https://www.skillqore.com)**
HTML tags | param
Tags: html, tags, param
Published: 2021-12-10 07:13:46

It **defines parameters** for an `<object>` element.

It has two attributes: `name` to declare the name of the parameter and `value` to specify its value.

- Type: *-*
- Self-closing: *Yes*
- Semantic value: *No*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param) | [Support](https://caniuse.com/mdn-html_elements_param)
Append a file into a zip file in Python
Tags: python, showdev
Published: 2021-12-10 09:27:14

I was trying to find a way to append a file into a zip file in python, but I could not find an easy way to do it.

When using zipfile built into python, using the 'a' append method doesn't overwrite files the way I expected it to. So this python module will overwrite the existing file when appending a file (which to me is the obvious solution).

There's no lack of StackOverflow posts and answers, but all of those were too specific to the specific post/issue.

So I decided to scratch my own itch, and make a library to handle it for myself and others.

https://pypi.org/project/appendzip/0.0.4/

{% github barakplasma/append-zip %}

MIT licensed

example of how to use it:

install (on Mac)
`$ python3 -m pip install appendzip`

```py
from appendzip.appendzip import appendzip
# before appendzip calendar.txt in the zip archive test.zip contains 2021-01-02
# before appendzip calendar.txt outside the zip contains 2022-02-03
appendzip(
            pathlib.Path('test.zip'),
            pathlib.Path('calendar.txt'),
            'calendar.txt'
)
# after appendzip calendar.txt inside the zip contains 2022-02-03
# after, there is still only one file in the zip archive test.zip
```
Collaborating with Uploadcare to support software developers
Tags: ruby, python, opensource, programming
Published: 2021-12-10 13:31:05

Uploadcare provides companies with simple, powerful, developer-friendly building blocks to handle file uploading, processing, and delivery. With Uploadcare, developers can cover the entire file cycle fast, eliminating months of manual work.

You can receive files from your users with an uploading widget or upload them via API call. Process them on the fly with dozens of CDN features, or REST API. And then deliver them directly from multi-vendor CDN. Everything is simple for the smallest project and compliant for the largest enterprise.

[Evrone partnered with Uploadcare to improve their Ruby and Python libraries, making the solutions up to date and more accessible and useful for software developers.](https://evrone.com/uploadcare)
Squashing and Merging  - Telescope
Tags: opensource, typescript
Published: 2021-12-10 22:33:15

This week I completed by pull request with some squashing and the changes were [merged](https://github.com/Seneca-CDOT/telescope/commit/cf03b25a6d26f3f7a590e491a855ea6feaf3dccf) by my professor.  I found that the [problem](https://github.com/Seneca-CDOT/telescope/issues/2554) of page re-rendering and losing focus could be solved without using <code>autoFocus</code> and sacrificing accessibility.  

As pointed out by @dukemanh, the problem can be solved by simply returning a JSX expression in <code>searchInput.tsx</code>. By doing so, it prevents a new component being returned every time and therefore stops the page from re-rendering unnecessarily. I also removed some fields and attributes that were [unnecessary](https://github.com/Seneca-CDOT/telescope/commit/cf03b25a6d26f3f7a590e491a855ea6feaf3dccf) while in <code>AuthorSearchInput.tsx</code>. 

It was a rather messy pull request in the end. I had to squash and rebase my two changes, but had some trouble doing so. I hadn't done much of either in previous pull requests. I am getting better at learning how to squash and rebase with this experience. 

It was fun interacting with so many students from Seneca that were interested in solving the same issue. I hope to contribute more to Telescope soon and hopefully not make such a mess with my pull requests in the future!
Was ist LiteSpeed Hosting
Tags: wordpress, hosting, litespeed
Published: 2021-12-10 15:32:42

---
title: Was ist LiteSpeed Hosting
published: true
date: 2021-12-10 13:56:06 UTC
tags: WordPress,hosting,litespeed
canonical_url: https://bloggerpilot.com/litespeed-hosting/
---

![Was ist LiteSpeed Hosting?](https://bloggerpilot.com/wp-content/uploads/2021/11/was-ist-litespeed-hosting.png)

Wenn es um das Thema WordPress Hosting geht, sind viele...

Der Original-Artikel erschien auf [Was ist LiteSpeed Hosting](https://bloggerpilot.com/litespeed-hosting/).
Visual Studio Code / PHPStorm sync code between multiple devices
Tags: javascript
Published: 2021-12-10 16:13:08

At home I work on my standing PC with multiple Monitors and on a Windows System. When I'm not at home, I want to work on a MacBook. So here comes the question: How do I sync code-changes between these devices? I googled it up, but the only solution that I have found was using Git. But it is ugly not to finish something before committing and pushing, so I need another solution. Is anyone facing the same problem?
⚙️ ❮ Zsh Diff-so-Fancy ❯
Tags: zsh, github, git, tooling
Published: 2022-02-10 23:02:30

<div align="center">
  <a href="https://github.com/z-shell/zi">
  <img src="https://raw.githubusercontent.com/z-shell/zi/main/docs/images/logo.png" alt="Logo" width="60" height="60"></a><h2>
❮ ZI ❯ Plugin - zsh-diff-so-fancy
</h2>

<div align="center">
  <img src="https://github.com/z-shell/zsh-diff-so-fancy/raw/main/docs/img/zsh-diff-so-fancy.gif" alt="zsh-diff-so-fancy" width="70%" height="70%" />
</div>

---

The project [so-fancy/diff-so-fancy](https://github.com/so-fancy/diff-so-fancy) integration with ZI.


With this [ZI](https://github.com/z-shell/zi) plugin, you simply add two lines to `.zshrc`:



```shell
zi ice as"program" pick"bin/git-dsf"
zi light z-shell/zsh-diff-so-fancy
```



This will install `diff-so-fancy` on every account where you use Zshell, and automatically equip `git` with subcommand `dsf`. No need to use system package manager and to configure `git`. Of course, if you have the following standard line in your `.gitconfig`, it will still work normally:


```shell
[core]
pager = diff-so-fancy | less -FXRi
```

(because this plugin adds `diff-so-fancy` to `$PATH`).


Think about Puppet or Chef, i.e. about declarative approach to system configuration.


In this case `.zshrc` is like a declarative setup guarding you will have `diff-so-fancy`
on your accounts.



### A Few Details



[so-fancy/diff-so-fancy](https://github.com/so-fancy/diff-so-fancy) is cloned from
Github as submodule. The plugin has `bin/git-dsf` script which adds subcommand `dsf`
to git. That's basically everything needed: convenient way of installing (single Zsh
plugin manager invocation), updating (Zsh plugin managers can easily update) and
integrating with `git`.



### Other plugin managers



#### Zplug

```shell
zplug "z-shell/zsh-diff-so-fancy", as:command, use:"bin/"
```

#### Zgen

```shell
zgen load z-shell/zsh-diff-so-fancy
```

Without `as"program"`-like functionality the `.plugin.zsh` file picks up setup and simulates adding a command to system, so `Zgen` and other can work.

---

[@zshell_zi](https://twitter.com/zshell_zi), [z.digitalclouds.dev](https://z.digitalclouds.dev)
CI/CD (Front End)
Tags: aws, github, devops, automation
Published: 2021-12-11 06:48:21

With steps 2-6 complete, I decided to go out of order and complete step 15 now rather than later. Step 15 is creating a GitHub action to automatically push code changes in the repo to the S3 bucket, thus creating a CI/CD process to automate updating the front end.

I decided to set this up now because I hate manual processes that can (should) be automated. My next task is adding the Javascript counter and DynamoDB table. That could involve a lot of changes and testing with the HTML in the S3 bucket and I'd rather not copy the files to S3 manually after every change.

The setup for this automation wasn't too hard:
- Create an IAM policy to allow updating the files in the S3 bucket:
```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "SyncToS3",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:ListBucket",
                "s3:DeleteObject",
                "s3:GetBucketLocation"
            ],
            "Resource": [
                "arn:aws:s3:::BUCKET-NAME",
                "arn:aws:s3:::BUCKET-NAME/*"
            ]
        }
    ]
}
```
- Create an IAM user with only programmatic access and assign the policy.
- Add the IAM user's access key and secret access key to the GitHub repo's secrets.
- Create the GitHub Action:
```
name: Upload to S3

on:
  push:
    branches:
    - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v1

    - name: Configure AWS Credentials
      uses: aws-actions/configure-aws-credentials@v1
      with:
        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws-region: us-west-1

    - name: Deploy static site to S3 bucket
      run: aws s3 sync FOLDER-NAME s3://BUCKET-NAME --delete
```
Now when a change is pushed to the GitHub repo the file is automatically uploaded to the S3 bucket.

**UPDATE**
To have the action only run when files are changed in a certain folder, use the `paths` option. This enables different actions to be run for things like syncing the front_end folder to S3 and the back_end folder to API Gateway.

```
on:
  push:
    branches:
    - master
    paths:
    - 'FOLDER-NAME/**'
```
How to Embed Google Drive Video to Website
Tags: webdev, web3, tutorial, programming
Published: 2021-12-11 07:42:01

Google Drive is one of the best cloud storage. It is developed by Google, which allows users to store files, synchronize across devices. In which, videos are stored on Google Drive the most, because it is easy to upload and use later. Embed Google Drive Video to WebPage is easy to work for web developers, you don’t need to upload to Youtube and use its feature. You can embed video directly to your website. Following this guide, you can know how to Embed Google Drive to Website.

Read more: [Embed Google Drive Video to Website](https://linuxtus.com/embed-google-drive-video-to-website/)
Facebook ChatBot Using Flask
Tags: programming, python, webdev, javascript
Published: 2021-12-19 05:32:44

first of all go here and  login with your fb account
Also Install ngrok   zip file

```
https://developers.facebook.com/
```

```
https://ngrok.com/download
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yoa4iwuo5qhu1wkv8ee5.png)
Fill the instructions According to you
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dmwujwvzodm5c0phh2ad.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/78e5kzh0oo4pgc2vaxm3.png)
That's it Now We Do Some code
create a folder and using pip install  these  Modules

```
pip install pymessenger

pip install requests

pip install flask
```
Open your Folder And make  a file name 
fbBot.py

```
from flask import Flask,request
import requests
from pymessenger import Bot

app =  Flask(__name__)

VERIFY_TOKEN = ''
PAGE_ACCESS_TOKEN =''
bot = Bot(PAGE_ACCESS_TOKEN)


def handling_message(text):
    adjusted_msg = text
    if adjusted_msg == 'hi' or adjusted_msg == 'Hi':
        response = 'hey'
    elif adjusted_msg == "what's up" or adjusted_msg == "what's up":
        response = "i'm Great"
    else:
        response = "it's pleasure to talk with you,Thank you."
    return response

@app.route('/', methods = ["POST","GET"])

def web_hook():
    if request.method == "GET":
        if request.args.get('hub.verify.token') == VERIFY_TOKEN:
            return request.args.get('hub.challenge')

        else:
                return 'Unable To Connect Meta'
    elif request.method == 'POST':
        data = request.json
        process = data['entry'][0]['messaging']
        for msg in process:
            text = msg['message']['text']
            sender_id = msg['sender']['id']
            response = handling_message(text)
            bot.send_text_message(sender_id,response)
        return 'Message Delivered'

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


if  __name__ == '__main__':
    app.run()

```
name anything about verify token
Generate page access token and paste above
 
Now Extract ngrok and paste it in your Workspace 

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

run fbBot.py 
and ngrok As An Administrator
put this cmd
and Hit Enter

```
ngrok.exe http 5000
```

now you are connected with it 
from here copy https that end with .io
and paste it here with token name and save

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ad0o2ecnn279vfvqaufj.png)
Restart your app Build again And You Are Good To Go
Lista de ingresos de cripto
Tags: cripto, ingresos, criptomonedas
Published: 2021-12-19 18:16:14

Aquí les dejo una primera parte de una lista de plataformas que pagan y generan ingresos en conjunto:

[Stormgain](https://app-stormgain.com/friend/BNS63509693) Mineria en la nube
[LBRY](https://odysee.com/%24/invite/@pronet:c) Ver videos desentralizados
[THETHA.TV](https://www.theta.tv/invite/udtg9c) Ver Directos descentralizados
[Binance](https://www.binance.com/es/register?ref=53372403) Para que creen su cuenta en binance y comiencen a acumular sus ganancias y ganar intereses en staking
[LEDGER](https://shop.ledger.com/pages/back-to-school?r=b4cf2d3b206e) Para comprar tu wallet ledger con descuento
[Gana Bitcoins](https://freebitco.in/?r=38749528) Una página faucet que te regala pequeñas partes de bitcoin.
[CoinMarketCap](https://coinmarketcap.com/invite?ref=4MJ2ECM8) Para ganar en los airdrops y los programas que tienen.
[BingBon](https://invite.bingbon.com/SAKNN0) Un exchange donde incluye el servicio de copytrading

Los ingresos pueden variar según su desempeño y tiempo dedicado. Pueden ir con inversión o sin inversión, si deciden invertir dependerá de la cantidad que introduzcan. Pero todas te pueden generar ingresos.
tldr: Remember your commands
Tags: bash, productivity, opensource, todayilearned
Published: 2021-12-19 18:35:38

## What is `tldr`?

`tldr` is an open-source command line tool distributed both via `npm` and `pip3` that lets you easily look up common use cases for various commands.

Have you ever been in the position where you:

- Forgot how to use the `tar` command?
- Forgot how to open an `ssh` tunnel?
- Forgot how `git rebase` works?
- Forgot how to `…` in the terminal?

Well, I have. `tldr` lets you easily look up common uses cases for commands and subcommands. All the `tldr` pages are open-source and community driven, and if a command you are trying to use `tldr` for is not available, you can always add it yourself to help out both yourself and others.

---

## How do I install it?

To get your hands on `tldr`, all you have to do is install it in one of the following ways:

- `npm install -g tldr`
- `pip3 install tldr`

After that, provided the package location is in your path, all you need to do is run `tldr git rebase` for example.

Here's an example of what that might look like:

![tldr_img](https://newcurrent.se/images/tldr.png)

---

## More information

If you have further interest in this, please visit [https://tldr.sh/](https://tldr.sh/)
What is Collaborative IoT?
Tags: rust, react, algorithms, nextjs
Published: 2021-12-19 19:20:12

## The problem
After building the platform "House-Of-Iot"(HOI) that required users to have direct authentication credentials for the HOI general server, I realized there is no easy way to collaborate with others with less of a risk.

HOI isn't the only platform that lacks built in minimal risk collaboration. The platform "Home Assistant"(HA) suffers from the same issue as HOI and requires direct access for collaboration.

## The solution
The solution was to build a system that allows owners of an IoT server to temporarily and safely give others access, with the ability to easily revoke access. Users will join "Rooms", communicate in a clubhouse like environment and yield temporary control over their IoT server. 

## What makes this safer than giving direct access?
Direct access means users could directly communicate with a server with no restrictions, possibly even modify settings of the server and mess up the underlying functionality.

### Revoking/Giving access
Users have permission levels when they join a room, each room has an "IoT Board" which is the panel for concurrently controlling multiple IoT servers at once. Once a user with mod permissions spawns a connection to their IoT server, they can give permission to anyone in the room to control it.

When this user disconnects from collaborative or anything goes wrong with its communication, the user's spawned connection to the IoT server is destroyed along with everyone who had access. 

When this user decides they don't want a specific user to have control anymore, they can revoke access. Revoking access just removes the ability to control a specific spawned IoT server connection.