teleren/devto huggingface dataset:
log-pilot以容器的方式启动并且通过参数的方式登录ES失败
Published: 2023-08-17 10:06:25

### 产生问题的启动方式
- 启动方式一:
```
docker run --name mypilot --rm -it \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /:/host \
    --privileged  \
    -e PILOT_LOG_PREFIX=bitget \
    -e FLUENTD_OUTPUT=elasticsearch \
    -e LOGGING_OUTPUT=elasticsearch \
    -e ELASTICSEARCH_HOSTS=108.182.1.238:9200 \
    -e ELASTICSEARCH_USER="elastic" \
    -e ELASTICSEARCH_PASSWORD="#x@xxxxxxxx" \
    registry.cn-hangzhou.aliyuncs.com/acs-sample/log-pilot:latest
```
- 启动方式二：
```
 docker run --name mypilot --rm -it \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /:/host \
    -v /etc/localtime:/etc/localtime \
    --privileged  \
    -e PILOT_LOG_PREFIX=bitget \
    -e LOGGING_OUTPUT=elasticsearch \
    -e ELASTICSEARCH_HOSTS=http://108.182.1.238:9200 \
    -e ELASTICSEARCH_USER=elastic \
    -e ELASTICSEARCH_PASSWORD=#x@xxxxxxxx \
    registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-filebeat
```

---

### 问题背景

基于上面的容器启动方式是无法连接需要鉴权的ES的，尝试了各种方案，排查了各种可能得问题，搞了2-3天，没搞出来就是连不上ES；
且容器日志没有任何可供参考的报错信息，官方文档，已经其他可供搜索的资料和案例非常少，基本等于盲猜bug；
于是乎各种search, re search 各种尝试，无果；
最后今天傍晚没招了；我实在找不到可以尝试的方案了；
只能当阿里云（该工具是阿里云开源的日志只能收集工具）是傻逼了，我账号密码没错，但是密码含有特殊字符可能会导致程序异常；

---

### 问题解决
- 上面说了尝试了各种方案无果，其实遗漏了一个很关键的方案，就是我密码的格式log-pilot不支持，为什么遗漏？因为我们很多时候都会带着有色眼镜看人，就像遇到个清华毕业生你根本不会怀疑他不会做小学数学题；
- 这种有色眼镜会先入为主，直接忽略这种优秀团队不会犯得sb错误；于是针对这种sb错误的尝试方案就忽略了；
- 这个sb错误就是 工具无法解析含有特殊字符的密码；
- 我实在没辙了，只能尝试下不大可能的方案，会不会是我的密码含有特殊字符`#x@` 导致 log-pilot 无法解析
- 于是我删除了特殊字符；将参数`-e ELASTICSEARCH_PASSWORD=#x@xxxxxxxx \` 改为 `    -e ELASTICSEARCH_PASSWORD=xxxxxxxx \`  就成了！！！！！
- 完整的启动命令：
```
 docker run --name mypilot --rm -it \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /:/host \
    -v /etc/localtime:/etc/localtime \
    --privileged  \
    -e PILOT_LOG_PREFIX=bitget \
    -e LOGGING_OUTPUT=elasticsearch \
    -e ELASTICSEARCH_HOSTS=http://108.182.1.238:9200 \
    -e ELASTICSEARCH_USER=elastic \
    -e ELASTICSEARCH_PASSWORD=xxxxxxxx \
    registry.cn-hangzhou.aliyuncs.com/acs/log-pilot:0.9.7-filebeat
```
How to Speed up video with moviepy [Speed effect on Video]
Tags: python, coding, moviepy, tutorial
Published: 2023-08-17 10:05:35

{% embed https://www.youtube.com/watch?v=9QoKXBJWcB0 %}

## step 1

install moviepy `pip install moviepy`

## step 2
use any video to test

```python

import moviepy.editor as mp
from moviepy.editor import vfx

video_path = 'test.mp4'
video = mp.VideoFileClip(video_path)
video = video.fx(vfx.speedx, 2.5)
video.write_videofile(f'edit {video_path}')

```

**Now we're done 🤗**

**Don't forget to like and follow 🙂**
Power Your Web Applications: Top 10 Modern CSS Frameworks for Backend Engineers
Tags: webdev, css, backend, beginners
Published: 2023-08-17 09:53:19

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


As a backend developer, you are extremely weak in handling the UIUX of a web application, especially for beginners. Therefore, to quickly build a full-featured web application, you can refer to the following CSS frameworks to bring simplicity, flexibility and smooth integration with backend technologies.

1. Bootstrap: One of the most popular and widely used CSS frameworks, Bootstrap provides a robust set of pre-designed components and a responsive grid system. It's well-documented and offers a great starting point for building responsive websites.

2. Tailwind CSS: Tailwind CSS focuses on utility classes, allowing you to quickly apply styling without writing custom CSS. It's highly customizable and plays well with JavaScript frameworks.

3. Bulma: Bulma is a modern CSS framework that emphasizes simplicity and clean code. It's built on Flexbox and provides a responsive grid, making it easy to create attractive layouts.

4. Foundation: Foundation offers a responsive grid system, UI components, and a set of tools for building responsive and customizable websites. It's popular among developers who want more control over the design.

5. Semantic UI: This framework uses human-friendly HTML to create responsive and visually appealing interfaces. It provides a variety of components and theming options.

6. Materialize CSS: Based on Google's Material Design guidelines, Materialize CSS offers a set of responsive components and animations that follow a consistent visual language.

7. UIKit: UIKit is a lightweight and modular front-end framework that provides a range of components and utilities. It's designed to work well with a variety of backend technologies.

8. Pure.css: Pure.css is a minimalistic framework that focuses on small size and fast loading. It provides basic styling for common elements without imposing too much design.

9. Spectre.css: Another lightweight framework, Spectre.css, offers a set of modern and responsive CSS components that can be easily integrated into your projects.

10. Milligram: Milligram is a minimalist CSS framework that focuses on a clean and minimal design. It's great for projects where you want a simple starting point and plan to customize extensively.

Remember that the choice of CSS framework should depend on your specific project requirements, your familiarity with the framework, and how well it integrates with your backend stack. It's also a good idea to keep an eye on the latest updates and community support for each framework.
One minute quick application for iOS certificate and description file tool
Tags: apple
Published: 2023-08-17 09:49:31

Can't change screenshots while the application is waiting for review?
I have submitted the application on iTunes Connect. It is currently awaiting review status, and I would like to change the screenshot of my application.
Based on my Google search, we can change the screenshot of the application while waiting for review.
But didn't I see the edit image option?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xx0dys2q030qvyc1xxbk.png)
One click online generation of Android certificate keystore file
Tags: apple
Published: 2023-08-17 09:41:12

General packaging tools will have default Android certificates provided, but if you need to go online, you need to apply for your own Android certificate keystore file to package APK
There are convenient tools available, and you can apply for an Android certificate directly on the webpage, which is done in seconds.
First, open this webpage
http://www.applicationloader.net/appuploader/keystore.php
Enter the alias, certificate password, and organization name, click on Generate Certificate to automatically generate and download the Android certificate keystore file
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/udqfc94227gkm5sj2opz.png)
Web3 backend and smart contract development for Python developers: Musical NFTs part 1
Tags: python, ethereum, backend, django
Published: 2023-08-17 09:39:02

In following set of posts I will be focused on `Python` based web3 backend development. This subject by itself is quite immense. It is `Python` web2 backend plus peculiarities of web3 world. This will include smart contract writing, testing and deployment to `Polygon` test-net `Mumbai` or similar with Brownie (later on 
 with Ape). Ones we have this in place we will move to `DjangoREST` backend and full integration with `Google cloud` platform services like `Firestore` (NoSQL database), `Firebase storage` and `Google authentication`. Also on the way we will integrate our web3 app with `IPFS` (via `Pinata`) for NFT metadata, `Stripe` (for potential NFT credit card buyers) and few other services. Finally ones all this is done we will deploy our app to `Google App engine` from where our APIs will be available.

Also we will have few alternative implementations of this project: full-stack Django with PostgreSQL. Then Django REST with React and Postgres. And finally Django REST, React and Google cloud services'.  

###What we will build?

We will make interface that can be used by client and through them provide interaction with smart contracts and normal backend functionalities like sign-up, login etc. Smart contracts will be coded in Solidity and main idea behind will be idea of musical NFTs. User can go and buy one or more NFT songs (ERC721) with credit card or with crypto and see some information about ownership in dashboard. 

###But first things first: diving equipment!

Let's talk shortly about equipment we plan to use for this deep dive and environment in which we will build. I'm working on `Ubuntu 20.04.6` over `Windows WSL` and Im using `Python 3.8.10`. Then we will need to PIP install few packages and to create Python virtual environment. I'm using `venv` but you are free to use what ever you find most suitable for you. Then we will build our APIs with `Django REST` framework version 3.14.0 and develop smart contracts with `Brownie`. Backend interaction with deployed smart contract will be done through web3.py. For testing `Pytest` + few SDKs to manage our relation to Google cloud services and Stripe. As you can see  our tech stack is quite conventional. Maybe in context when we work over Google cloud with NoSql database and Google authentication Django REST can be seen as overkill (because we don't use his ORM layer at all in first phase of project). And maybe from this point of view is logical to opt for some more light Python framework like FastAPI. But we will stick to Django because at certain point we will develop also this alternative versions of our app that use SQL database and have Django native authentication mechanism in place. For version control we will use Git and then project code will be available over Github.
Install MediaWiki on Ubuntu using the terminal
Tags: linux, devops, ubuntu
Published: 2023-08-17 09:16:04

To install MediaWiki on Ubuntu using the terminal, you can follow these steps:

1. **Update System Packages:**
   Open a terminal and update your system's package list to ensure you have the latest information about available packages.

   ```bash
   sudo apt update
   ```

2. **Install Required Packages:**
   MediaWiki requires a web server (typically Apache), a database (usually MySQL or MariaDB), and PHP. Install these packages:

   ```bash
   sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-cli php-gd php-xml php-mbstring php-xmlrpc
   ```

   During the installation of MySQL server, you will be prompted to set a root password for MySQL.

3. **Create MySQL Database and User:**
   Log in to MySQL and create a new database and user for MediaWiki.

   ```bash
   sudo mysql -u root -p
   ```

   Once inside the MySQL console:

   ```sql
   CREATE DATABASE mediawiki;
   CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'your_password_here';
   GRANT ALL PRIVILEGES ON mediawiki.* TO 'mediawikiuser'@'localhost';
   FLUSH PRIVILEGES;
   EXIT;
   ```

   Replace `'your_password_here'` with a strong password of your choice.

4. **Download and Extract MediaWiki:**
   Navigate to the `/var/www/html` directory and download the latest version of MediaWiki. You can find the link to the latest version on the [MediaWiki website](https://www.mediawiki.org/wiki/Download).

   ```bash
   cd /var/www/html
   sudo wget https://releases.wikimedia.org/mediawiki/1.37/mediawiki-1.37.0.tar.gz
   sudo tar -xzvf mediawiki-1.37.0.tar.gz
   sudo mv mediawiki-1.37.0 mediawiki
   sudo chown -R www-data:www-data mediawiki
   ```

   Adjust the version number as needed.

5. **Configure Apache:**
   Create a virtual host configuration file for MediaWiki.

   ```bash
   sudo nano /etc/apache2/sites-available/mediawiki.conf
   ```

   Add the following configuration:

   ```apache
   <VirtualHost *:80>
       ServerAdmin webmaster@localhost
       DocumentRoot /var/www/html/mediawiki
       ServerName your_domain_or_ip
       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>
   ```

   Replace `your_domain_or_ip` with your server's domain name or IP address.

   Enable the virtual host and reload Apache:

   ```bash
   sudo a2ensite mediawiki.conf
   sudo systemctl reload apache2
   ```

6. **Complete Installation via Web Browser:**
   Open a web browser and navigate to `http://your_domain_or_ip`. Follow the on-screen instructions to complete the MediaWiki installation. You'll need to enter the database details and set up an admin account.

7. **Finalize Configuration:**
   After the installation, you may need to adjust some permissions and settings. Refer to the [MediaWiki Installation Guide](https://www.mediawiki.org/wiki/Manual:Installation_guide) for further information.

Remember that software versions and URLs may change over time, so make sure to refer to the official MediaWiki documentation for the most up-to-date instructions.


## Try it YourSelf:
[NEWS] MARKOVATE - AI DEVELOPMENT SERVICES
Tags: machinelearning, ai, computervision
Published: 2023-08-17 09:14:46

[[AI Development Services](https://markovate.com/ai-development-services/)] Unlock the data value and solve complex problems with artificial intelligence. Revolutionize your operational workflows and conquer intricate challenges with our AI development services. Through the skillful crafting of AI algorithms, our team is poised to liberate you from monotonous tasks, instilling a swifter, more enlightened decision-making process.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9f41kkezshxyb0pvylk5.png)
WANT TO BE A PROMPT ENGINEER ?
Tags: promptengineering, webdev, programming, devops
Published: 2023-08-17 09:12:52

**WANT TO learn Prompt engineering?**

THESE FREE PREMIUM CONTENT WAITING FOR YOU.

1. AI Applications and Prompt Engineering
[LINK](https://shorturl.at/bqyQZ)

2. Prompt Engineering for ChatGPT
[link](https://shorturl.at/bmEMT)

3. ChatGPT Prompt Engineering for Developers
[link](https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/)
The Important Role of Application Security in Cybersecurity
Tags: application, security, cybersecurity, sql
Published: 2023-08-17 08:45:11

Application security plays a vital role in modern cybersecurity strategies. As more businesses move to the cloud and adopt software-as-a-service models, applications have become one of the biggest attack vectors for cybercriminals. Some key ways application security contributes to overall cybersecurity are:

Preventing Vulnerabilities
One of the primary goals of application security is to identify and fix vulnerabilities in software before they can be exploited by attackers. This includes vulnerabilities like:

Injection flaws (SQL injection, command injection, etc.)
Cross-site scripting (XSS)
Broken authentication and session management
Insecure direct object references
Security misconfigurations
Tools like static application security testing (SAST), dynamic application security testing (DAST), and interactive application security testing (IAST) can help identify these issues in development and production environments.

Protecting Applications at Runtime
Web application firewalls (WAFs), runtime application self-protection (RASP), and API protection tools provide security for applications once they are deployed. They monitor application traffic in real time and block attacks targeting vulnerabilities, SQL injection attempts, anomalous behavior, and other threats.

Managing Third-Party Components
Many applications incorporate third-party libraries and open source components. Software composition analysis (SCA) helps identify which components are being used and detect vulnerabilities within them. An accurate software bill of materials (SBOM) also provides transparency into an application's dependencies.

Hardening the Software Development Lifecycle
A secure SDLC incorporates security practices and testing at all stages - from design to deployment. This "shift left" approach helps catch issues earlier when they are cheaper and easier to fix. It also produces more secure software over time.

Limiting Privileges
Application security best practices like the principle of least privilege and role-based access control limit the damage a compromised account could cause. Restricting what data different users and applications have access to reduces the attack surface.

In summary, application security is crucial for a comprehensive cybersecurity posture. Identifying and fixing vulnerabilities, protecting applications at runtime, managing dependencies, securing the SDLC, and limiting privileges all contribute to a more resilient security architecture. As applications continue to proliferate, effective application security will remain a top priority for organizations.
AWS Security Survival Kit
Published: 2023-08-17 08:41:10

## 🚑 AWS Security Survival Kit

### 🧠 Rationale

This AWS Security Survival Kit (ASSK) sets up a basic proactive monitoring and alerting environment on common suspicious activities in your AWS Account.

We know that [CloudTrail](https://aws.amazon.com/cloudtrail/) is the bare minimum service to activate on a newly created AWS Account to track all activities on your AWS account. It helps, but this will not alert you to suspicious activities by itself. You still have to check periodically if something has gone wrong in multiple services and the console.

With these CloudFormation templates, you will bring proactive security monitoring and alerting to your AWS account. It's complementary to the GuardDuty service as there are no built-in alerts on GuardDuty.

### 💾 Suspicious Activities

Using this kit, you will deploy EventBridge (CloudWatch Event) Rules and CloudWatch Metric Filters and Alarms on select suspicious activities. It comes with a CloudWatch Dashboard to give you more insights about what is ringing 🔔

The following suspicious activities are currently supported:

1. Root User activities
2. CloudTrail changes (`StopLogging`, `DeleteTrail`, `UpdateTrail`)
3. AWS Personal Health Dashboard Events
4. IAM Users Changes (`Create`, `Delete`, `Update`, `CreateAccessKey`, etc..)
5. MFA Monitoring (`CreateVirtualMFADevice` `DeactivateMFADevice` `DeleteVirtualMFADevice`, etc..)
6. Unauthorized Operations (`Access Denied`, `UnauthorizedOperation`)
7. Failed AWS Console login authentication (`ConsoleLoginFailures`)
8. EBS Snapshots Exfiltration (`ModifySnapshotAttribute`, `SharedSnapshotCopyInitiated` `SharedSnapshotVolumeCreated`)
9. AMI Exfiltration (`ModifyImageAttribute`)
10. Who Am I Calls (`GetCallerIdentity`)
11. IMDSv1 RunInstances (`RunInstances` && `optional` http tokens)


#### 🤖 ChatOps

Setup [AWS Chatbot](https://aws.amazon.com/chatbot/) for best experience to get notified directly on Slack and MS Teams.


![Slack Notification](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gc3s2ltnwv1hvvs5ycr3.png)



#### 📈 Dashboard

ASSK comes with a CloudWatch Dashboard, please don't hesitate to adjust to your needs.

## 🎖️ Credits

- AWS Security Boutique: [zoph.io](https://zoph.io)
- 💌 [AWS Security Digest Newsletter](https://awssecuritydigest.com)
- Twitter: [zoph](https://twitter.com/zoph)
Good79 là nhà cái nổi tiếng với sân chơi đá gà trực tiếp cực kỳ uy tín
Published: 2023-08-17 08:34:46

Good79 là nhà cái nổi tiếng với sân chơi đá gà trực tiếp cực kỳ uy tín, bên cạnh còn có các trò chơi cá cược casino, thể thao, xổ số… vô cùng hấp dẫn.
Website :     https://good79.team/
Địa Chỉ : 98 Ung Văn Khiêm, Phường 25, Bình Thạnh, Thành phố Hồ Chí Minh, Việt Nam
Điện thoại : 0369680188
Hastags : #good79 #good79team #nhacaigood79

https://twitter.com/good79teamm

https://www.linkedin.com/in/good79team/

https://about.me/good79team

https://www.pinterest.com/good79team/

https://www.youtube.com/@good79team/about

https://www.reddit.com/user/good79team

https://www.tumblr.com/good79team

https://www.flickr.com/people/good79team/

https://dribbble.com/good79team/about

https://www.twitch.tv/good79team/about

https://tapas.io/good79team

https://replit.com/@good79team

https://www.instapaper.com/read/1627101778

https://sketchfab.com/good79team

https://www.diigo.com/profile/good79team

https://hub.docker.com/u/good79team

https://linkhay.com/u/good79team

https://en.gravatar.com/good79team

https://folkd.com/user/good79team

https://gab.com/good79team

https://www.openstreetmap.org/user/good79team
Windows Talker (Part 4)
Tags: github, program, tutorial, python
Published: 2023-08-17 08:32:40

Hello to my 4th part of the series "Windows Talker"
This is now a shorter article because it's only 3 new commands I added. But you can still help me by writing your opinion in the comments or by registering in my [course ](https://learn.xn--schchner-2za.de/mod/page/view.php?id=19&forceview=1)and starting a new discussion.
But now we come to the new terms:
- `edge`: Microsoft Edge opens
- `chrome`: Microsoft Chrome will be opened
- `teams`: Microsoft Teams will be opened.
{% embed https://github.com/SchBenedikt/WinTalker/ %}
Feel free to write your thoughts on this project in the comments and leave a like!
Best regards,
schBenedikt
bypass normal captcha using python and 2captcha API
Tags: python, automation, security
Published: 2023-08-17 08:25:53

{% embed https://www.youtube.com/watch?v=fsSvtNoQcUA %}


## step 1

create account in **2captcha API** from here :[create account](https://bit.ly/3MkkuPJ)
you need to make deposit at least **2$** to run the api

## step 2
select "Developer" as account type 
go to your dashboard and copy your api key


## step 3
install 2cpatha module : `pip install 2captcha-python`

## step 4

Go to this link for more details on how to use **2captcha API** with this type

https://2captcha.com/demo/normal


**Now we're done 🤗**

**Don't forget to like and follow 🙂**