teleren/devto huggingface dataset:
I should think about deployment before I start coding
Tags: webdev, devops, development, javascript
Published: 2024-05-14 09:19:46

So I face an interesting things happen in my recent project. A company reach me for this project but we never talk about detail of deployment, except for EC2 with 16 gb ram.

They want a role-based access control within the app. So a good consistent ui but using different design for let say admin and user.

I did it surely. Just create user table and role table. As we all knew.

Now at the edge of our development phase, they requested or should I say they thought, they can split it to two subdomain: for admin and user.

Thats option is possible for sure with one caveat: we already coded it.

With react ui that just need to know the role to render different parts, its highly dynamic but still, its there. The separation is in the code, not in the application like we have two different ui module or other possible option.

I start to think that we should really talk about deployment in enough detail ahead of our coding phase.
First Post Lasts
Tags: intro, python, nerd, machinelearning
Published: 2024-05-14 09:17:32

Hi everyone, Hope that you are having a good week of productivity and learning.
I am writing this post, and I know it's hard to write a good post or article, but also, I am sure that learn new things is much harder. While the joy of learning things can't be overstated.

I am writing to tell you that I am new to writing on DEV community. I love sharing knowledge, no I am wrong. I love talking to people and discuss concepts and philosophy.
And that's why I am here. To share, to discuss and to talk.

I am a Data Scientist and Machine Learning Engineer. But also, I am a bit nerd when it comes to weird things.

I will share few articles this week, to use my motivation and get some momentum. So, I am asking you to give a push, give me momentum to create a small community.

Thanks a lot for reading this post, while it won't give you any useful knowledge.
Hisham.
PEKANBOLA
Tags: situs, terbaik
Published: 2024-05-14 09:15:36

PEKANBOLA :adalah situs agen bola online terlengkap, menawarkan berbagai jenis Bettingan Judi Bola Online Mix Parlay Sebagai situs judi bola terbaik, Dimana saat bermain pada agen bola Parlay member juga bisa menonton pertandingan dengan gratis. Dimana itu akan sangat menyenangkan dan membantu semua member lebih bijak memasang taruhannya. agen Judi Bola Online Mix Parlay ini akan ditemanin semua member baru yang belum paham cara bermainnya. Dimana ini adalah langkah paling seru untuk mendapatkan cuan besar sekarang ini..
https://filmkultur.net/

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m906wwftfo8ojruyyrz4.jpg)
Revitalize Your Home: Expert Siding Contractors in Chicago
Tags: roof, roofreapair, roofrapaircontractor
Published: 2024-05-14 09:11:55

Are you looking to give your home a fresh new look? Look no further than expert [siding contractors in Chicago](https://www.roofing-gurus.com/). With their experience, expertise, and trustworthiness, you can transform the exterior of your home with ease.

**Why Choose Siding Contractors in Chicago?**

Siding contractors in Chicago are well-versed in the latest trends and techniques when it comes to revitalizing homes. From traditional vinyl siding to modern fiber cement options, these experts can provide you with a wide range of choices to suit your style and budget.

**What Sets Siding Contractors in Chicago Apart?**

When it comes to choosing the right siding contractor in Chicago, experience is key. These professionals have years of experience working on homes in the area, giving them a deep understanding of the unique challenges and requirements of Chicago homes.

**The Benefits of Hiring Expert Siding Contractors**

**Enhanced curb appeal:** [Siding contractors in Chicago](https://www.roofing-gurus.com/engineered-wood) can help boost the curb appeal of your home, making it stand out in the neighborhood.

**Increased property value:** By investing in high-quality siding, you can increase the value of your home and make it more attractive to potential buyers.

**Improved energy efficiency:** Quality siding can help improve the energy efficiency of your home, reducing your utility bills in the long run.

**How to Find the Right Siding Contractor in Chicago**

When looking for a siding contractor in Chicago, it's important to do your research. Ask for recommendations from friends and family, read online reviews, and request quotes from multiple contractors to ensure you're getting the best value for your money.

**Conclusion**

Revitalize your home with the help of expert [siding contractors in Chicago](https://www.roofing-gurus.com/contact-roofer-in-roselle-chicago). With their experience, expertise, and trustworthiness, you can transform the exterior of your home and enhance its curb appeal. Don't wait any longer – contact a siding contractor in Chicago today!
Tune Performance using MySQL Query EXPLAIN Plan
Tags: mysql, mariadb, database
Published: 2024-05-14 09:01:16

MySQL EXPLAIN plan helps you understand how MySQL queries are executed and what indexing techniques are better for running queries efficiently. The EXPLAIN plan is a handy statement, especially when you need to optimize MySQL queries.

Everyone has experienced situations when executing long and complex queries takes much time and thus, makes the process slower and inefficient. In such cases, you need to understand why this happens and what you can do to tune your queries for minimum impact on database performance.

Query Profiler, built into dbForge Studio for MySQL, is an excellent solution to this issue.

This tool allows you to:

* Optimize and improve query performance
* Tune queries to return data in the most efficient way
* Visualize query tuning and monitoring with MySQL EXPLAIN plan
* Analyze MySQL queries using the EXPLAIN plan, SHOW PROFILE results grid, and query statistics

https://www.devart.com/dbforge/mysql/studio/explain-plan.html
Maquina de estados
Tags: spanish, empezandoelblog
Published: 2024-05-14 09:00:37

En el desarrollo que enseñe ayer utilice una maquina de estados para poder controlar el flujo del juego ya que es un patrón continuo que se repite constantemente hasta que nos quedamos sin verbos.

La verdad que me parece bastante simple y útil para comenzar a darle la estructura a un desarrollo aunque seguramente no sea la forma mas limpia.


![maquina de estados parte 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2gh3hkp2dj5304jnn36o.png)

![maquina de estados parte 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wyej1l0wrfpk9prjxh6f.png)
Monitor GPU Usage in WSL debian
Tags: wsl, windows, linux, nvidia
Published: 2024-05-14 08:52:46

[NVTOP](https://github.com/Syllo/nvtop) is like htop but for your graphics module . In this short tutorial I will share how to install nvtop in wsl debian 

OS used : 

`cat /etc/os-release`

```
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```

1) Verify your graphics driver
In my case I have nvidida graphics 

```bash
nvidia-smi
```
It should display details about your graphics , if not first install it

2) Edit your debian source list to include non-free releases 
```bash 
sudo nano /etc/apt/sources.list
```

2) Modify the source list and add following 

```
deb http://deb.debian.org/debian/ bookworm main contrib non-free-firmware
```
3) Get update 

```bash 
sudo apt get update
```

4) Now you can install nvtop 

```bash
sudo apt install nvtop
```
Now hit `nvtop` and you are all set !! 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zix26djow1vmzccplctj.png)
AI APIs
Published: 2024-05-14 08:38:02

Since we launched our AI API catalog , we got some great feedback and even more requests - the most common one has been to provide our own API key as an option (for those who did not have a key from other providers like google or azure). 

Done! Since today all our AI APIs also come with an option to use the ApyHub key.

Glad (and curious) to see how improving the availability/connectivity of AI APIs will help drive creativity and innovation further.

https://apyhub.com/catalog/artificial-intelligence

Have a look!Happy to hear/read any feedback!
APIs for ecommerce
Published: 2024-05-14 08:36:42

Hey devs,

When designed and implemented carefully, third party APIs can be a good solution to anyone building an e-commerce application.

Here are some of the best APIs out there for those working on e-commerce. Let us know if we missed any! 

1. Customer Onboarding APIs, like Validate DNS Email , RPACPC API and Currencies API
2. Payment Processing APIs like Currency Conversions API, Stripe API etc.
3. Marketplace APIs like the eBay API, the Amazon Selling Partner API
4. Shipping and Fulfillment APIs, like the Generate Barcode/QR Code
5. Tax Calculation and Invoice APIs like the Invoice Generator API

For the full list, read more here:
https://apyhub.com/blog/top-ecommerece-apis-2024
Đá gà sv388
Published: 2024-05-14 08:33:56

"Đá gà SV388 là một trong những nhà cái đá gà trực tuyến hàng đầu tại Việt Nam, được rất nhiều người chơi yêu thích và tin tưởng. Với nhiều năm kinh nghiệm trong lĩnh vực giải trí trực tuyến, SV388 không chỉ là một địa điểm giải trí tuyệt vời mà còn là nơi để các game thủ có thể kiếm được những khoản tiền thật lớn từ các trận đấu đá gà hấp dẫn và kịch tính. SV388 nhà cái chuyên cung cấp sân chơi đá gà hấp dẫn nhất thế giới hiện nay. Ngoài đá gà SV388 còn có cá cược thể thao, live casino hoạt động 24/24 JOIN THE CLUB ĐỊA CHỈ: Bến Cầu, Tây Ninh, Việt NamTrang liên hệ: https://tksv388.cam/ - EMAIL: tksv388@gmail.com - WEBSITE: https://dagasv388.cam

#sv388 #dagasv388 #dagasv388cam #nhacaisv388 #tksv388 #trangdagatructiepsv388 #nhacaiuytinsv388 #sv388win"

https://dagasv388.cam/
https://twitter.com/dagasv388cam
https://www.youtube.com/@dagasv388cam/about
https://www.pinterest.com/dagasv388cam/
https://www.reddit.com/user/dagasv388cam/
https://gravatar.com/dagasv388cam
https://band.us/band/94907693
https://wakelet.com/@dagasv388cam
https://www.tumblr.com/dagasv388cam
https://www.deviantart.com/dagasv388cam
https://issuu.com/dagasv388cam
https://disqus.com/by/disqus_RDOqdnVjbB/about/
https://www.mixcloud.com/dagasv388cam/
https://about.me/dagasv388cam
https://www.credly.com/users/dagasv388cam/badges
https://hub.docker.com/u/dagasv388cam
https://qiita.com/dagasv388cam
https://public.tableau.com/app/profile/.g.sv3886521/vizzes
https://www.nicovideo.jp/user/133001227
https://anyflip.com/homepage/nfuhd#About
https://www.magcloud.com/user/dagasv388cam
https://hashnode.com/@dagasv388cam
https://visual.ly/users/dagasv388cam/portfolio
https://audiomack.com/dagasv388-2
https://chart-studio.plotly.com/~dagasv388
https://leetcode.com/u/dagasv388cam/
https://s.id/dagasv388cam
https://www.kfz-betrieb.vogel.de/community/user/dagasv388cam
https://www.furaffinity.net/user/dagasv388cam
https://hackmd.io/@dagasv388cam/dagasv388
https://pantip.com/profile/8138740#topics
https://www.elephantjournal.com/profile/dagasv388cam/
https://www.niftygateway.com/@dagasv388
https://justpaste.it/u/dagasv388cam
https://influence.co/dagasv388cam
https://app.scholasticahq.com/scholars/286648-da-ga-sv388
https://www.myminifactory.com/users/dagasv388cam
https://www.veoh.com/users/dagasv388cam
https://os.mbed.com/users/dagasv388cam/
https://www.renderosity.com/users/id:1493917
https://photoclub.canadiangeographic.ca/profile/21262124
https://ioby.org/users/dagasv388cam836895
https://www.mountainproject.com/user/201817880/daga-sv388
https://www.anobii.com/en/01356e6b4584cbc2ea/profile/activity
https://www.gaiaonline.com/profiles/dagasv388cam/46682016/
https://miarroba.com/dagasv388cam
https://graphis.com/portfolios/da-ga-sv-388-1
https://www.dermandar.com/user/dagasv388cam/
https://shout.com/s/7UV1Wiok
QR Tiger: Empowering Engagement
Tags: productivity, tooling, programming, java
Published: 2024-05-14 08:28:51

[QR Tiger](https://www.qrcode-tiger.com/) leads the QR code revolution with innovative solutions that empower engagement. Simplify information sharing, elevate interactive experiences, and seamlessly navigate the digital realm with our advanced technology. Join us in shaping the future of QR technology
Install Debian in Different Location -WSL Windows
Tags: windows, linux, debian, wsl
Published: 2024-05-14 08:17:16

I was trying to install Debian in different location rather than the C drive . Sharing the steps I took . 

OS : Windows 11 
WSL Version : Wsl 2 

1) First install Debian as by default in C 

```bash
wsl --install -d Debian
```

2) Shut down wsl 

```bash
wsl --shutdown
```

3) Export Debian to your desired location 

In my case its E : 

```bash
 wsl --export Debian E:\wsl_export\debian-ex.tar
```
4) Now unregister your old Debian from wsl 

```bash
wsl --unregister Debian
```
5) Now import Debian to the Disk 
```
wsl --import Debian "E:\wsl\Debian" "E:\wsl_export\debian-ex.tar"
```
6) Cleanup 
You can remove your backup now and set Debian as default 
```
wsl --set-default Debian
```

**Extra tips** 
- To make your user in debian superuser : 
After migrating you might loose your default login using username you created before . 

Login to Debian , By default you will be logged in as root and hit following 
```bash
sudo usermod -aG sudo username
```
- Change default user 
```bash
nano /etc/wsl.conf
```
Replace username with your username 

```
[user]
default=username
```
Now `wsl --shutdown` and login debian again you should be logged in as your default user with sudo access
I made a 100% Free Bento Grid Generator to boost your business engagement with stunning Bento Designs!
Tags: producthunt, marketing, startup
Published: 2024-05-14 08:16:13


![Free Bento Grid Generated from StartupUtils](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vxilwhkni6pg38pgjikd.png)

Hey Founders!

Inspired by people posting Bento Grid designs on social media showcasing their wins, achievements, project statistics, etc. which were manually edited in Figma, I decided to automate it with a simple, 100% free tool everyone could use without prior design skills.

It's 100% free 💚, easy to use, customizable, and you can copy or download your bento grid as a PNG file ready to share on social media to skyrocket your views!

- 100% free to use, no sign-up
- no watermark
- HQ image export
- customizable, has a dynamic layout with boxes and rows
- emoji supported

Try the **[Free Bento Grid Generator](https://startuputils.com/tools/free-bento-grid-generator)** and let me know your feedback!

Building it was fun. I hope you generate some stunning Bento Grids with it 😎

Let me know your feedback!

More Bento Grid examples generated from this tool:

![Free Bento Grid Generated v2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ijnru5hd5rgv3beu2ku.png)


![Bento Design generated v3 from StartupUtils](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tjbx5e6kvyuomurtschw.png)
Things I learned last week (19/24)
Tags: learning, css, typescript
Published: 2024-05-14 08:08:31

1. In Typescript, a type object cannot be extended once it is declared, but an Interface can.

2. You can specify the type a function should return - insert the type after the argument parentheses: `const makeUser = (): User => {} `

3. CSS Modules are a really nice way to declare styles that are scoped only to certain component.  This means you can use a class name more than once without fear of applying the wrong styles.  Write styles in a CSS file in the same folder as your React component, the import it into the component.

4. React Router drastically reduces the amount of state management needed in an app.  Because it handles the fetching of data you don't need to do this in a useEffect or implement an isLoading state
Initializing an Array in C#
Tags: csharp, beginners, tutorial
Published: 2024-05-14 08:04:17


C# is pretty interesting to write and it is so so fascinating too

There are different ways to initialize an array in C#, stick to the end, I will show you different ways to go about it.  The best approach will depend on a lot of factors, most especially preference(in my opinion).


Now let's dive in..... 
While there have been latest changes in the last upgrade to C# which is C# 12, I would go all the way back to how it started, well maybe not all the way back. The aim here is to show you all the possible syntaxes to initialize array in C#.

Below is the list of possible array declarations and initializations:

```
string[] array = new string[2]; 
string[] array = new string[] { "A", "B" };
string[] array = { "A" , "B" }; 
string[] array = new[] { "A", "B" }; 
string[] array = ["A", "B"]; 
```

let's explain each of them
 
`string[] array = new string[2];`
This syntax creates a new array of strings that has a length of 2. It is like making an box with space for just two words in it, but we haven't put any words in  it yet.

`string[] array = new string[] { "A", "B" };`
This syntax creates a new array of strings with an explicit initialization. The array is already filled with two elements: "A" and "B". It's like making a box and immediately putting the two words inside it.

`string[] array = { "A" , "B" }; `
This is a shorter way of creating a new array of strings, it just only omits  `new string[]`.but is does the same as the example above. it is like a quicker route to get to the same destination.

`string[] array = new[] { "A", "B" }; `

This is similar to the second example but it uses the new[] syntax. This syntax allows the compiler to infer the type of the array elements based on the initializer values. Since the initializer values are strings, the array will be of type `string[]`. This is like telling the computer to figure out what you are putting in the box 

`string[] array = ["A", "B"];`

This is the newest way to initialize an array in C# 12, simple and straightforward. It's also similar to the way arrays are initialized in Python and JavaScript. This makes it easier for developers familiar with those languages to work with arrays in C#.
 

Starting from C# 3 and above, there is a shorter way to write the first two and fourth declarations. You can write them like this:

```
var array = new string[2];
var array = new string[] { "A", "B" };
var array = new[] { "A", "B" };
```
This is possible because the information on the right side of the assignment is enough to infer the proper type of the array. This makes the code simpler and more concise.


To wrap this up, it is worthy to note that there are other ways to declare or initialize an array in C#, but we will stick to this methods. These methods cover the most common and straightforward approaches to working with arrays in C# 


Thank you for reading 

You can check me on [LinkedIN](https://linkedin.com/in/emmakolade)
iron & muscles gym | best gym in meerut
Tags: best, gym, in, meerut
Published: 2024-05-14 08:00:23

iron & muscles gym | best gym in meerut

Phone  9997741414

Address: 2nd Floor, Front 8 Building, Main Rd, Saket, Meerut, Uttar Pradesh 250001

Iron & Muscles Gym | best gym in Meerut's premier fitness destination, providing top class facilities and expert guidance for strength training and muscle building. With a supportive community and tailored programs, it stands as the best gym in the area for people committed to achieving their fitness goals
Guo Wengui Wolf son ambition exposed to open a farm wantonly amassing wealth
Published: 2024-05-14 07:55:50

 Since fleeing to the United States in 2014, Guo Wengui has founded a number of projects in the United States, such as GTV Media Group, GTV private equity, farm loan project, G Club Operations Co., LTD., and Himalaya Exchange. Around 2017, he started the so-called "Revelations revolution" and in 2020 launched a movement called "New China Federation." However, Guo Wengui's "disclosure revolution" soon exposed its false nature. He frequently carried out so-called "live Revelations" on the Internet, fabricating various political and economic lies and fabricating facts to discredit the Chinese government. At the beginning, due to his special image of "exiled rich" and "Red fugitive", he quickly gathered some popularity and followers, but as time went by, Guo Wengui's commitment and image were gradually exposed, and his supporters began to leave him. See the essence of the Revelations will turn to the farm, Guo Wengui's fraud is not only for funds and other institutions, its followers have also become a sheep that is only continuously harvested wool. The little ants who trusted him so much became victims of fraudulent investment scams. It is hoped that more people will recognize the true face of Guo Wengui, join the team of "smashing Guo", expose his fraud, recover losses for themselves and others, and maintain an honest and trustworthy social environment.#WenguiGuo #WashingtonFarm

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhmevtwlmcgs7l8bhubc.JPG)
What’s the Difference Between Flask and FastAPI?
Tags: flask, fastapi, python, coding
Published: 2024-05-14 07:55:03

There are many microframeworks in Python, including Django, Flask, Bottle, and Flask. But two are the most popular now: Flask and FastAPI.

Now, the second question that may pop up in your mind is, what is the difference between the two? Well, there are certain similarities between the two since both are microframeworks. However, there is a stark difference between them. Let’s discuss the difference between them.

## 1. Speed

If you prefer speed in your apps, then go for FastAPI. This is because FastAPI handles more requests per second. If you made a high-load application that benefits from asynchronous I/O operations, FastAPI should be your preferred choice. On the contrary, you can use Flask when your app doesn’t need to handle many concurrent connections. Instead, you like simplicity and easiness.

## 2. Asynchronous Tasks

FastAPI can handle asynchronous tasks because it is built with async/await syntax. This means that FastAPI can handle large volumes of concurrent connections, which is what makes it best for web apps that depend on real-time data and high-performance APIs. Flask does support asynchronous tasks, but it uses Flask-AsyncIO, which isn’t made to work best with async programming. Due to this, better performance in I/O-bound needs more work.

## 3. Beginner-Friendly

Flask is beginner-friendly. Moreover, you may not get stuck on complex issues because of the huge community support. You can also say it’s a backend and front-end solution packed into one. Now, FastAPI is also easy. It is also good when it comes to building API. But it is new compared to Flask. This means that its community isn’t that extensive.

## 4. Display of Error Messages

FastAPI uses pydantic models. This means that detailed and developer-friendly error messages are automatically created. On the other hand, Flask relies on customer error handlers.

## 5. Parameters and Data Validation

In Flask, parameters are passed through URLs and forms. Result? Support of basic data validation. Unfortunately, it doesn’t provide built-in validation. You have to rely on external libraries. On the other hand, FastAPI is better here because of its use of Pydantic models. This makes use of Python-type annotations when it comes to request and response data validation.

All in all, you need to choose only the framework that fulfils your needs. If you want your web app to automatically display error messages, support asynchronous programming, perform better, and contain well-structured documentation, then use FastAPI. But if you prefer a simple micro-framework with extensive community support that is simple, supports asynchronous tasks, and relies on custom error handlers, then use Flask.