teleren/devto huggingface dataset:
Config ffmjpeg for video manipulation on any Laravel project
Tags: programming, laravel, ffmjpeg, webdev
Published: 2023-05-11 16:04:00

Before you start reading post i highly encourage you to checkout this installation part of ffmjpeg on windows below.

[https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce](https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce)

before working with ffmjpeg in your project you need to install the binary package on your system or server.

Here are the steps to follow and configure ffmjpeg on new or old laravel project. 

Here is the official Github package link for laravel-ffmpeg
[https://github.com/protonemedia/laravel-ffmpeg](https://github.com/protonemedia/laravel-ffmpeg)

Here is the official Github package link php-ffmpeg
[https://github.com/PHP-FFMpeg/PHP-FFMpeg](https://github.com/PHP-FFMpeg/PHP-FFMpeg
)

You can also follow the above link to setup.

=> open your laravel and require the package
`composer require pbmedia/laravel-ffmpeg`

=> Add the Service Provider and Facade to your **app.php** config file if you're not using Package Discovery.

// config/app.php
'providers' => [
    ...
    ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider::class,
    ...
];

'aliases' => [
    ...
    'FFMpeg' => ProtoneMedia\LaravelFFMpeg\Support\FFMpeg::class
    ...
];

=> Add the folder path to your ffmjpeg binary to your env like this below


![ffmpeg env path](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zzpyabqhuqhqesueg69a.png)

we can test by creating single route file, try to Convert an audio or video file:

Route::get('/', function(){

FFMpeg::fromDisk('songs')
    ->open('sample.mp4')
    ->export()
    ->toDisk('converted_songs')
    ->inFormat(new \FFMpeg\Format\Audio\Aac)
    ->save('audio_output.mp4');
});

**make sure you import the class use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;
**

**NOTE YOU HAVE TO INSTALL FFMJPEG ON YOUR SYSTEM OR SERVER**
[check out this post on how to setup one](https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce)
THANK YOU FOR READING IF YOU HAVE ANY QUESTION OR ISSUES YOU CAN DROP COMMENT BELOW
Connect Github to Slack and stay updated!
Tags: github, frontend, programming, beginners
Published: 2023-05-11 16:02:51

Use `/github subscribe [repository name]` in Slack in the channel where you would like the notifications to be received.

You will  start receiving updates about activities like:


New commits
New pull requests
New issues
Code reviews

In the channel, you will firstly receive something like what is below soon after  `/github subscribe [repository name]`

In my case, l want to connect Slack to the repo [https://github.com/respect17/react-tailwind](url) in channel #general.

I open #general in my Slack then

`/github subscribe [https://github.com/respect17/react-tailwind](url)`

Soon after, l will receive:

:white_check_mark: Subscribed to [https://github.com/respect17/react-tailwind](url). This channel will receive notifications for
issues, pulls, commits, releases, deployments
[Learn More](url)
Best Open Source Game Engines
Tags: gamedev, opensource, programming, beginners
Published: 2023-05-11 16:00:00

We’ve discussed popular game engines, including Gamemaker, Unity, RPG Maker, and Unreal, along with highlighting a variety of titles developed using these engines. We’re looking at the best open-source game engines on the market today.

These are the Top 8 Open Source Game Engines

You may ask yourself, “What is an open-source game engine?”

We all understand that [Game engines](https://dev.to/albyabraham/best-game-engines-for-beginners-cfh) are tools for game developers to code and develop a game quickly and conveniently. What makes open-source engines unique, then? The simple fact is that the original engine source code is made freely available and may be redistributed and modified.

## 1. CoronaSDK
A free cross-platform framework that is ideal for creating 2D titles and apps for Android, iOS, and PC platforms, including Windows and Mac. Corona even supports TV platforms such as Apple TV, Fire TV, and Android TV. Corona Labs has recently decided to make CoronaSDK open source, making the engine development process more transparent while empowering the community to directly impact future growth and potential.

## 2. GDevelop
Second, on our open-source game engine list is the 2D game engine GDevelop, a cross-platform engine designed to be used by everyone – programming skills are not required.

## 3. Spring Engine
A 3D RTS open-source engine. Using Lua and C++, developers can customize every aspect of this engine, including the user interface, AI, and pathfinding modules.

## 4. Panda3D
Initially developed by Disney Interactive, Panda3D was implemented to create various 3D attractions for Disney theme parks, including Aladdin’s Magic Carpet.

## 5. Cocos2d-x

---

Continue Reading......

This Blog is Originally Published at The Last Words

Read More from Here: [Best Open Source Game Engines](https://thelastwords.wiki/open-source-game-engines/)
5 Ways How to Short Bitcoin: Your Ultimate Guide
Published: 2023-05-11 15:35:46

Cryptocurrency is a digital currency designed to work as a medium of exchange over the Internet; [Short Bitcoin ](https://americanmadellc.net/how-to-short-bitcoin/)is a type of cryptocurrency, and short selling refers to borrowing shares from a broker and immediately selling them to another investor with the expectation that their price will fall soon after. This way, you’re eligible to make a profit. And in crypto long positions, traders assume that the market rate of Bitcoin will increase.
Mastering Java Class Loaders : Dynamic Class Loading & Custom Class Loaders
Tags: programming, tutorial, java, interview
Published: 2023-05-11 15:31:59


Ever thought about how JVM runs your code? Yes, it runs the class that has the main() method but how does it load and run it?
>  JVM uses a class loader to load the class.
>  There is a two part series where I have covered this topic in detail:
>  [Mastering Java Class Loaders: Dynamic Class Loading and Custom Class Loaders | Part-1](https://www.youtube.com/watch?v=RKARkwRjhuc)
>  [Mastering Java Class Loaders: Dynamic Class Loading and Custom Class Loaders | Part-2](https://www.youtube.com/watch?v=VFO1ulWnLtk)

## What is a Class Loader?

Java Class Loader is a subsystem of the Java Virtual Machine that is responsible for dynamically loading Java classes into the JVM at runtime. The Java Class Loader loads the class files from the file system, network or other sources and creates a class object in the memory that can be used by the JVM.

## Types of Class Loader

 1. **Bootstrap Class Loader**

This class loader is responsible for loading the core Java classes and libraries from the JDK/JRE. When a Java application starts up, the Bootstrap Class Loader is the first class loader to be invoked

2. **Extension/Platform Class Loader**

It is responsible for loading the classes from the extension directories. Extensions are optional packages that can be added to the JDK/JRE to provide additional functionality, extension directories are specified by java.ext.dirs system property.

**3. Application Class Loader**

It is responsible for loading the application classes(developed by us) from the classpath. This is what we provide using -cp either explicitly to javac command or indirectly via a build tool like maven, gradle.

**4. Custom class loader**

We can create our own class loader which we will cover later.

## But, how?

The class loaders in the JVM are organised into a tree hierarchy, in which every class loader has a parent. Prior to locating and loading a class, a good practice for a class loader is to check whether the class’s parent can load — or already has loaded — the required class.

If even the bootstrap loader can’t find the class, it will ask the child(which requested the loading) to load the class. So, now it’s the responsibility of the child loader to load the class.

![Class loaders loading a class file](https://cdn-images-1.medium.com/max/2000/1*3kTCE5kxe4u8RFBZf9aHIQ.png)

## What if a class loader can’t a file?

Well, it will throw a ClassNotFoundException in that case.

## Class Loading mechanism

Class loading is a three step process:

- Loading
- Linking
- Verification
-    Preparation
-    Resolution
- Initialization

## What about the Custom Class Loader?

Sorry, I got lazy. I have covered custom class loaders in detail here [Mastering Java Class Loaders: Dynamic Class Loading and Custom Class Loaders | Part-2](https://www.youtube.com/watch?v=VFO1ulWnLtk)

Happy learning!
Work With Us🚀
Tags: nlp, opensource, hiring, community
Published: 2023-05-11 15:25:40

Hi 👋🏼, 

At WITH we want to launch our open source project to the whole community and therefore we will need the help of a Community Manager specialised in Chatbot and NLP.

We are in a key moment of the project and we need a person to help us share and publicize all these developments.

Here is the position details, in case anyone might be interested or knows someone who might fit in.
we are waiting for you!!

-------------

Hola 👋🏼

Desde WITH queremos lanzar nuestro proyecto open source a toda la comunidad y por ello necesitaremos la ayuda de un Community Manager especializado en Chatbot y NLP.

Nos encontramos en un momento clave del proyecto y necesitamos contar con una persona que nos ayude compartir y dar a conocer todos estos avances.

Os dejo todos los detalles de la posición, por si alguien pudiese interesarse o conoce alguien que le pueda encajar.

https://with-madrid.com/contact/work-with-us

Os esperamos!

#community #nlp #opensource #discord #hiring #chatbots
The Benefits of Outsourcing Your Android Development Needs
Tags: hire, android, developers, webdev
Published: 2023-05-11 14:45:08

In today's fast-paced and competitive business landscape, staying ahead of the curve is crucial for success. One way to gain a competitive edge is by developing innovative and user-friendly mobile applications. Android, being the most popular mobile operating system, offers a vast market for businesses to tap into. However, developing an Android app requires specialized skills and expertise, which is why outsourcing your Android development needs can be a game-changer.

When you hire Android developers through outsourcing, you gain access to a pool of talented professionals who have extensive knowledge and experience in building Android applications. These developers are well-versed in the latest trends and technologies, ensuring that your app is up-to-date and meets the expectations of modern users. They can provide valuable insights and suggestions to enhance your app's functionality and user experience, ultimately leading to higher customer satisfaction and increased downloads.

Outsourcing Android development also offers significant cost savings. Instead of hiring an in-house team of developers, which comes with expenses such as salaries, benefits, office space, and equipment, outsourcing allows you to pay for the development services on a project basis. This means you can allocate your budget more efficiently and invest in other areas of your business that require attention. Additionally, outsourcing eliminates the need for lengthy recruitment processes and training, saving you valuable time and resources.

Another benefit of outsourcing Android development is the flexibility and scalability it offers. As your business grows, you may need to add new features or update existing ones in your app. With an outsourced team, you can easily scale up or down your development requirements based on your needs. This flexibility ensures that your app remains adaptable to changing market demands and user preferences, keeping you ahead of your competitors.

Furthermore, outsourcing Android development allows you to focus on your core business functions. By entrusting the development process to professionals, you can concentrate on strategic planning, marketing, and other crucial aspects of your business. This division of labor enables you to streamline your operations and maximize overall productivity.

In conclusion, outsourcing your Android development needs can bring numerous benefits to your business. From accessing top-notch expertise and cost savings to flexibility and increased focus, the advantages are undeniable. So, if you're looking to develop an Android app, consider to [hire android developers](https://www.aspired.io/android-developer) through outsourcing to unlock the full potential of your mobile application and stay ahead in the dynamic world of mobile technology.
Which is better MariaDB AND Mysql?
Tags: database, backend, beginners
Published: 2023-05-11 14:11:19

MariaDB is a fork of MySQL, which means that it is based on the same codebase as MySQL and includes many of the same features. However, MariaDB also includes some additional features and improvements that are not available in MySQL, such as support for more storage engines, better performance optimizations, and improved security features.

Whether MariaDB or MySQL is better depends on your specific needs and requirements. If you need compatibility with existing MySQL applications and tools, then MySQL may be the better choice. On the other hand, if you need some of the additional features and improvements offered by MariaDB, then MariaDB may be the better choice.

In general, both MariaDB and MySQL are robust and reliable relational database management systems, and both are widely used in production environments. It's worth noting that many web hosting companies and cloud service providers offer both MariaDB and MySQL as options, so you may be able to try both and see which one works best for you.
How can I optimize my HUGE enterprise application? - React JS
Tags: webdev, javascript, react, architecture
Published: 2023-05-11 14:02:11

Have you ever experienced slow app loading as the code base grows? Do you wonder that for your SPA, you can chunk code into different files? Is this even possible? React does have a solution.

## Lazy Loading

Components are loaded using the lazy loading technique only when they are required. By decreasing the amount of JavaScript that needs to be downloaded and the initial load time, this can help your React app perform better.

There are two main ways to lazy load components in React:

* Using the `react.lazy()` function
* Using the `Suspense` component

### Using `react.lazy()`

The `react.lazy()` function allows you to load a component in chunks by providing the path to the component's file. For example:

```js
const MyComponent = react.lazy(() => import('./MyComponent'));
```

Once the component has been loaded, it can be used like any other component.

### Using `Suspense`

The `Suspense` component is a higher-order component that allows you to wrap lazy loaded components. It takes a fallback prop that is rendered while the component is loading. For example:

```js
const MyComponent = () => {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <MyLazyComponent />
    </Suspense>
  );
};
```

## Why should `lazy()` not be called inside a component?

It is important to note that the `react.lazy()` function should not be called inside a component. This is because the component will not be able to be loaded until the parent component has finished loading. If the parent component is slow to load, the child component will not be able to load either.

To avoid this, you should call the `react.lazy()` function in the top-level component of your app.

Also, this component will rerender multiple time, which is not good for performance.

## Benefits of lazy loading

There are several benefits to lazy loading components in React:

* **Improved performance**: By decreasing the amount of JavaScript that needs to be downloaded and the initial load time, lazy loading can help your React app perform better.
* **Reduced bundle size**: Lazy loading can help to reduce the size of your app's bundle by only loading the components that are needed. This can make your programme load faster and use less memory.
* **Better user experience**: Lazy loading can improve the user experience of your app by only loading the content that the user is actually seeing. Users may have to wait less time for content to load as a result of this.

## Conclusion

Your React app's performance and user experience can be enhanced by using the potent technique of lazy loading. 

### Here's a Code example

```js
import React, { lazy, Suspense } from "react";

const MyLazyComponent = lazy(() => import("./MyComponent"));

const App = () => {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <MyLazyComponent />
    </Suspense>
  );
};

export default App;
```
How to fix "Unknown at rule @tailwindcss css(unknownAtRules)" in VS Code
Tags: tailwindcss, vscode, webdev
Published: 2023-05-11 13:56:50

Have you ever included Tailwind CSS in your project just to be spammed by multiple warnings like `Unknown at rule @tailwind css(unknownAtRules)` ?
![Screenshot of VS Code with warnings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxfa4ufudavuebzjjj3z.png)
A quick fix for this is to ignore them from the VS Code settings. Here is how to do it:
Open VS Code settings using your favorite way (I like to use the shortcut `Ctrl + ,`) and search for `css lint unknown at rules`
![VS Code screenshot for the css linting settings set to warning](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a84rvnyr1s8sn5fesc7j.png)
The first (and only) option is `CSS > Lint: Unknown At Rules` and the default for this is `warning`.
Set this option to `ignore`.
![VS Code screenshot for the css linting settings set to ignore](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lalnxdmwnkdvpys463ar.png)
And we are done! No more warnings distracting us from coding.
![Screenshot of VS Code without the warnings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fq0etpof3sfutzgw5pdc.png)
Developer Tools That Shouldn't Be Secrets - Video
Tags: developertools, presentations
Published: 2023-05-11 13:56:00

---
title: Developer Tools That Shouldn't Be Secrets - Video
published: true
description: The video of my Goto Copenhagen conference talk.
tags: developertools, presentations
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-11 13:50 +0000
---

Hooray, Goto conferences just released the video of my talk on Developer Tools. 

{% youtube lz-nUdotdx4 %}

If you want to play along with the examples, [they are available on GitHub](https://codepo8.github.io/more-developer-tools-tricks/).
Lightning-fast API development with Neon and WunderGraph
Published: 2023-05-11 13:55:00

We're super excited to share that the Neon integration for WunderGraph is now available.

You can now seamlessly link your Neon Postgres database with a WunderGraph project, enabling you to build apps quicker and easier.

For detailed instructions on how to begin using this new integration, check out the documentation .

## Develop APIs at lightning-fast speed by leveraging the combined power of Neon and WunderGraph

Neon is Serverless Postgres. They offer a multi-cloud, fully-managed Postgres with a generous free tier. Neon has also separated storage and compute to offer auto-scaling, branching, and bottomless storage.

Paired with WunderGraph Cloud, this integration allows you to sync your WunderGraph Project with a Neon database for a fully serverless experience.

With an easy-to-deploy database, we can provide a 100% serverless stack. You can build your own stateful app now. Build your serverless app on the edge.

It's so easy to connect your database and turn it into an API with WunderGraph. Then use either TypeScript or GraphQL to write the operations you wish to expose to your users.

## 1 minute video on how to integrate Neon into your WunderGraph project

{% embed https://youtu.be/cu5vwql5q0A %}

## Full Video announcement

{% embed https://youtu.be/JqOADpG5q-s %}

## Final thoughts
We are so excited about this integration with Neon, and we would really love to hear your feedback.

And remember, if you need any help, feel free to post in our friendly and active Discord community  or on our public forum .

We can't wait to show you what else we have in store, so watch this space! 🚀
Manage multiple versions of Python in same machine
Tags: python, windows, versions
Published: 2023-05-11 13:54:02

# Timeline of Python releases
Release timeline of Python

![image.png](https://images.viblo.asia/43974560-bf76-4d70-abcd-d5daf701a7b6.png)

Source https://devguide.python.org/versions/


# Install Python 3.11.3
Download latest version of Python (3.11.3) at https://www.python.org/downloads/  (25 MB)

Python launcher in Windows operating system.

![image.png](https://images.viblo.asia/4914f9a9-3ae4-4ecd-83c1-f100f082546b.png)

Type

```bash
>>> exit()
```

for existing.

# Install Python 3.10.10 in the same machine
Download Python 3.10.10 at https://www.python.org/downloads/windows/ , https://www.python.org/ftp/python/3.10.10/python-3.10.10-amd64.exe , then install in the same machine with existing Python 3.11.3 .

![image.png](https://images.viblo.asia/305888e5-bab4-4df3-a321-28742074ff37.png)

![image.png](https://images.viblo.asia/e08b3455-9911-4743-af3e-d7171f6e3e0a.png)

![image.png](https://images.viblo.asia/42e9a2d0-baf0-42fa-8f09-30f96beabdea.png)

Run Python 3.10.10 from Python 3.11.3 launcher

```bash
py -V 3.10
```

# Install Python 3.9.13 and so on (3.8, 3.7)

Link download https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe

![image.png](https://images.viblo.asia/6de08ea9-8362-4920-a22f-dbe993396e51.png)

![image.png](https://images.viblo.asia/c7f0350f-584f-4f43-9974-dc76cf17e69e.png)

![image.png](https://images.viblo.asia/604ff62e-1dd6-40a9-84ee-89e5c588663c.png)

![image.png](https://images.viblo.asia/2b3effab-b739-4a8f-a281-7a256b5beb8b.png)

Active Python 3.9.13

```bash
py -3.9
```

Few helpful commands

![image.png](https://images.viblo.asia/491ee59f-6ecc-47f8-b367-5dc7a2665727.png)

```bash
py -3.9 -V
```

# Run Python file/project with a specific version of Python
Create folder `D:\temp_2023_05_11` , inside this folder, create file `get_version.py` has content

```python
print(__import__('sys').version)
```

![image.png](https://images.viblo.asia/0953e094-5128-4e7d-9003-fdc2907a5ddb.png)

Then run

```
cd /d D:\temp_2023_05_11
dir
py -3.9 get_version.py
py -3.10 get_version.py
py -3.11 get_version.py
```

![image.png](https://images.viblo.asia/02bba521-05b0-4c28-8923-7331627a259e.png)