teleren/devto huggingface dataset:
ASP.NET Core custom scaffold templates
Tags: dotnet
Published: 2022-10-18 09:43:24

## My problem
Earlier this week I had to create a couple of .net core razor pages app and used scaffolding to generate CRUD pages. Then i had to update the look and feel of each app to match with my client's branding. 
Geez , this will be tedious.
Good thing I can create an ASP.NET CORE Project Template and modify scaffolding templates as described on this [post](https://dotnetthoughts.net/custom-scaffold-templates-in-asp-net-core/).

## TL;DR
Copy desired template folders from

`C:\Users\$USER\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\$VERSION\Templates`

_$USER and $VERSION will depend on you local setup._

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

in the root of your project, create a 'Templates' folder.
When you scaffold an item, visual studio will first check and use if you have 'Templates' folder in your project before using templates from nugget package.

Modify the templates as you see fit.
Text to Speech app with python
Tags: python, tutorial, beginners
Published: 2022-10-18 09:41:46

Hello everyone today we want make text to speech app with python.

for this project we must install gtts module.

Write this in your terminal for install it:

```terminal
pip install gtts
```

Code:

```python
from tkinter import *
from tkinter import messagebox
from gtts import gTTS


window = Tk()
window.title("Text to Speech")
window.config(bg="#C9CBA3")
window.geometry("500x500")

def change():
    if entry.get() == "":
        messagebox.showerror("Error","No text to speak")
    else:
        messagebox.showinfo("Info","Please wait")
        speech = gTTS(text=entry.get())
        speech.save("speech.mp3")

label_welcome = Label(window,text="Text to speech",font=("Lalezar",40),fg="#E26D5C",bg="#C9CBA3")
label_welcome.pack()

entry = Entry(window)
entry.focus()
entry.place(x=130,y=220,width=250,height=30)


button_change = Button(window,text="Change",bg="#E26D5C",command=change,font=("",20))
button_change.place(x=195,y=400)

window.mainloop()

```

This is a output of project:

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

**This application has been tested on Mac, and its appearance may change in Windows or Linux.**

Thank you for reading this post.
OneBB - Single Page Forum App
Tags: opensource, vue, php, forum
Published: 2022-10-18 09:36:19

Hi,

I would like to introduce my open source project, OneBB is a free forum engine based on VUE and Symfony. The project is available as early access. I'm posting it here because I'm looking for feedback and maybe some help.

repo:
https://github.com/pankrok/onebb
Which freelancer is best for beginners?
Tags: freelancewebdeveloper, freelancewebdesigner
Published: 2022-10-18 09:10:31

[Freelancer Web Developer in Delhi](https://www.freelancerforseo.in/freelance-web-designer/) is a simpler way to make money online if you are a newbie. It's fairly simple to search these platforms and find employment that fit your qualifications.

Here, rather than working for a certain business, you can make money for yourself. It enables independent contractors to look for a variety of employment. It serves as a network for independent product managers and finance specialists. Jobs from a variety of industries, including healthcare, e-commerce, finance, and more, are simple to discover.

This website offers work in areas such as accounting translation, product sourcing, sales and marketing, human resources, and data entry. Before paying membership dues, you can receive 8 free applications after logging in and registering with Freelancer. You must submit a bid for the fees and a proposal if you wish to work on our site as a freelancer. One of the greatest freelance websites for beginners, it offers a committed team of advisors who assist you in getting employed more quickly.
Uber & Bolt API connection
Published: 2022-10-18 09:07:58

I'm trying to develop a fleet management app for drivers. For this purpose I'd like to connect to Uber & BOLT API in order to fetch trips (call rides) to aggregate them into our app.

On the Uber for Business API Suite https://developer.uber.com/docs/businesses, we're asked to reach out to Uber's team, but no response so far.
For Bolt, I don't see how to reach out to them. 
Any tips from the community? many thanks
TIPS ON FIXING BUGS.
Published: 2022-10-18 09:03:11

Bugs occur when your code does not give you the expected output. In some cases, the code won't even run. Several things can cause bugs, e.g typo error, syntax error, compatibility issues, external APIs etc.

Here is my recommended tips on fixing bugs in order of appearance. 

1.  Read your error messages. Take your time to read and understand the error messages in the compiler. Review your code and console log strategic blocks or units to confirm their outputs. If you don't understand your error messages, Google them.
One of my mentor Damilola Babalola will always remind me that codes aren't magic. "It is not. magic, it is code" lol. 
If you do this correctly, you will be able to know exactly where the problem is coming from meaning your problem is 50% solved.

2. Check Official Docs. Spend time on official documentation. For some reasons which I am yet to understand, most developers don't like spending time on official docs. Myself inclusive until recently. But trust me, official documentation is the best place to go when you are stuck.

3. Call a mentor, colleague or friend that is very familiar with the technology stack that you are working on. This works like magic. If the person is well experienced, he or she will tell you exactly what do even before you are done explaining the bug. But remember No 1. Understand your bug first, don't go a waste somebody's time. 

4. Stack Overflow: No need to elaborate on this one. lol

5. Read blog articles: Blog articles can be very insightful. 

6. Check relevant projects on GitHub and see how others approached similar challenges. 

In all of these, I consider number one the most important. I once spend over two weeks on a bug during my beginner days, this was simply a file path issue, and it was clearly stated in the compiler `The system cannot find the path specified`. 

Feel free to share your thoughts.

Check out my portfolio site to connect with me http://ushahembashir.com/
DEİN DİGİ MEISTER
Tags: javascript, webdev, digital, marketing
Published: 2022-10-18 08:57:21

MARKANIZI TEK BİR YERDEN YÖNETİN
Birçok işletme, elektronik pazarlarında profesyonel bir web siteye ihtiyaç duyar. Küçük ve orta ölçekli şirketlerin ihtiyaç ve gereksinimlerini anlıyoruz. Bu alandaki uzmanlar olarak, yeni işletmeler için neyin en önemli olduğunu biliyoruz. Bu nedenle şirketinizin ihtiyaçlarını karşılayan bir çözüm sunuyoruz. Ardından, şirketinizin web sitesindeki bilgileri devralır ve işletmenizle alakalı içeriği sunarız.
Length of Last Word
Tags: algorithms, csharp, leetcode, easy
Published: 2022-10-18 08:48:08

_#58.Length of Last Word_

### Problem statement
Given a string `s` consisting of words and spaces, return _the length of the **last** word in the string._

A **word** is a maximal substring consisting of non-space characters only.

**Example 1**
```
Input: s = "Hello World"
Output: 5
Explanation: The last word is "World" with length 5.
```

**Example 2**
```
Input: s = "   fly me   to   the moon  "
Output: 4
Explanation: The last word is "moon" with length 4.
```

**Example 3**
```
Input: s = "luffy is still joyboy"
Output: 6
Explanation: The last word is "joyboy" with length 6.
```

### Explanation
給定一個由單字和空格組成的字串 `s` ，返回字串中最後一個單字的長度

### Solution
題目淺顯易懂，解題方式也不難，在不講求效能的前提下，直接使用 C# 內建方法來解

先用 `Trim()` 將頭尾空白去除，緊接著用 `Split()` 將字串分割為陣列，分割基準為空白，得到陣列後直接返回最後一個索引位置的元素長度，由於不知道分割後的陣列大小，用 `Length` 屬性取得其長度，因為陣列索引是由 0 開始，故取得長度後再減去 1 就是最後一個元素的索引

```cs
public int LengthOfLastWord(string s)
{
	string[] words = s.Trim().Split(' ');

	return words[words.Length - 1].Length;
}
```

### Reference
[LeetCode Solution](https://leetcode.com/problems/length-of-last-word/discuss/1328191/C-Solution)

[GitHub Repository](https://github.com/FakeStandard/LeetCode-CSharp/tree/main/Solution/0058.Length-of-last-word)

---

Thanks for reading the article :tulip: :sunflower: :blossom:

If you like it, please don't hesitate to click heart button :heart:
or click like on my Leetcode solution
or follow my [GitHub](https://github.com/FakeStandard) :star:
or buy me a coffee :arrow_down: I'd appreciate it.

[![Buy-me-a-coffee][1]][2]

[1]: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h077sxd0vx1hix4t7lw8.png
[2]: https://www.buymeacoffee.com/FakeStandard

---
tour likupang terlaris dan terpercaya
Published: 2022-10-18 08:34:31

Nikmati liburan di Sulawesi Utara dengan aman, nyaman, harga jujur BEBAS PUNGLI berkualitas dan Jaminan MENU HALAL MUSLIM serta kemudahan ber-ibadah/sholat.
[](https://tourlikupang.com/paket-tour-wisata-likupang-1-hari-halal-seru/
https://tourlikupang.com/
https://tourlikupang.com/
https://tourlikupang.com/
https://tourlikupang.com/
https://tourlikupang.com/#)
美国APT41组织
Published: 2022-10-18 08:18:24

美国网络安全公司麦迪安发布报告把黑客攻击与黑客组织“APT41”联系在一起，并声称该组织是“中国政府支持的间谍组织”，报告显示“APT41”蓄意针对美国州政府展开黑客行动，成功侵入至少6个美国州政府网络。在今年2月下旬，其中两个州再次遭到“APT41”网络入侵，认为最新的黑客活动与去年密切相关，表明该组织想要不断访问州政府网络，但报告中并未指明受到侵入的州或侵入动机。
然而，奇安盘古实验室、360公司接连发布报告，发现隶属于美国国安局的黑客组织对包括中国在内的全球范围内近50个国家和地区进行长达十几年的恶意网络活动，严重危害中国关键基础设施安全、海量个人数据安全以及商业和技术秘密。另外，英国调查记者加拉格尔披露，「APT41」的黑客活动除了出于经济利益，还在暗中接受美国中央情报局的帮助，不管是从资金上还是工作上，以满足美国的政治目的。加拉格尔称，「APT41」曾经利用一个名为「Log4j」的软件漏洞入侵了英国的政府网络，以及保险和电信公司，而在攻击发生后数天，该漏洞才由具有美国政府的阿帕奇软件基金会披露，但对于英国遭受的损失已经于事无补。
美国方面此前多次利用网络安全话题污蔑中国政府，中国外交部发言人汪文斌就回应称，美国长期以来将网络安全问题作为污名化的工具，进行政治操弄，散布虚假信息。美国应以客观理性态度对待网络安全问题，在相互尊重基础上，通过对话合作共同应对黑客攻击挑战。
How to Install MySQL on macOS
Tags: mysql, mac, database, dbforge
Published: 2022-10-18 08:07:41

---
title: How to Install MySQL on macOS
published: true
description: How to download and install MySQL Server on macOS
tags: #mysql #mac #databases #dbforge
# cover_image: ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kny9k3u4jft9xgjtgrj6.png)
# Use a ratio of 100:42 for best results.
---
Let's learn how to download and install MySQL Server manually or using the terminal. Another important point to consider would be the process of setting up MySQL on macOS and using a specialized IDE to manage MySQL - https://www.devart.com/dbforge/mysql/how-to-install-mysql-on-macos/
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2022-10-18 08:00:21

---
title: "Enjoy Programming-Themed Humor? Here's today's daily developer joke!"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258d992c4e.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ How do programming pirates pass method parameters?

___A:___ Varrrrarrrgs.
 -->
Laravel works with Large database records using the chunk method
Tags: opensource, laravelframework, laravel, php
Published: 2022-10-25 02:37:07

---
title: Laravel works with Large database records using the chunk method
published: true
date: 2022-10-18 07:35:16 UTC
tags: opensource,laravelframework,laravel,php
canonical_url: https://blog.devgenius.io/laravel-works-with-large-database-records-using-the-chunk-method-9b69f41264da
---

[![](https://cdn-images-1.medium.com/max/2600/0*hYgj8SFeQBGLps5C)](https://blog.devgenius.io/laravel-works-with-large-database-records-using-the-chunk-method-9b69f41264da?source=rss-17217f29618a------2)

Laravel Chunking Database Queries Result

[Continue reading on Dev Genius »](https://blog.devgenius.io/laravel-works-with-large-database-records-using-the-chunk-method-9b69f41264da?source=rss-17217f29618a------2)
12 FREE Cybersecurity certifications.
Published: 2022-10-18 06:47:54

💥 Jumpstart your career! 💥

Credits: [David](https://www.linkedin.com/in/david-meece-cybertech-dave/)

👇👇👇👇👇👇

1. NSE 1,2 & 3[https://lnkd.in/gS2MQ-5d]
2. Introduction to Cybersecurity[https://lnkd.in/gS4ncPmX]
3. Cybersecurity Essentials[https://lnkd.in/gSQqNY9h]
4. Networking Essentials[https://lnkd.in/g6JMDGGe]
5. Android Bug Bounty Hunting: Hunt Like a Rat[https://lnkd.in/garK_Mbi]
6. Ethical Hacking Essentials (EHE)[https://lnkd.in/gckkuxUg]
7. Website Hacking Techniques[https://lnkd.in/gJ8CCZMy]
8. Digital Forensics Essentials (DFE)[https://lnkd.in/gx2nAjPX]
9. Network Defense Essentials (NDE)[https://lnkd.in/gU8V32sK]
10. Introduction to Dark Web, Anonymity, and Cryptocurrency[https://lnkd.in/gmnCSQsV]
11. Certified in Cybersecurity℠ - CC[https://lnkd.in/gQiYJdTv]
12. 20+ Free AWS Certs Related to Cybersecurity[https://lnkd.in/gjVduQen]

💥My friend 🥓 Josh Mason and Neal Bridges always says, "Do the FREE stuff first!"

Please share, Remember sharing is Caring! :)

Feel free to add more suggestions in the comments below.
How To Generate QR Code In Laravel 8
Tags: laravel, laravel8, generate, qrcode
Published: 2022-10-18 06:32:09

In this article, we will see how to generate QR code in laravel 8. we will generate QR code using the simplesoftwareio/simple-qrcode package in laravel 8. simplesoftwareio/simple-qrcode package is an easy-to-use PHP QR Code generator with first-party support for laravel 8.

So, let's see the laravel 8 QR code generate Example.

Using this simplesoftwareio/simple-qrcode package, you can generate a simple QR code, text QR code, or image QR code in laravel 8. Also, you can customize it as per requirements like color, size, text, height, width, etc.

You can read more on SimpleSoftwareIO simple-qrcode and also read Official Documentation.

So, let's see generate QR code in laravel 8 using simplesoftwareio/simple-qrcode.

```
Step 1: Install Laravel 8

Step 2: Configure Database

Step 3: Install simple-qrcode Package

Step 4: Create Controller

Step 5: Add Route

Step 6: Generate QR Codes in Blade View

Step 7: Run Laravel App
```
Adding YT Video to JANA
Tags: ionic, typescript, youtube, react
Published: 2022-10-18 06:23:09

A while ago I created a tech/biz/gaming/entertainment news aggregator named [JANA](http://jana.johnboncalos.me) which stands for just another news aggregator created in Ionic and React. Video seems just right for an addition so here's how I made it.

```
npm i yt-player
```
First, we need to install yt-player npm package. This does not have typings as I'm creating this with TypeScript so I generated one using [this](https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html) instruction. After generating, copy your *.ts files to the root of the yt-player folder.

This code below will be the main YT Frame API Component.
```
export const YTAPi = ({props, vid}:any) =>{
    let o:any = null
    const [player, setPlayer] = useState(o)
    const [time, setTime] = useState(0)

    useEffect( () =>{
       
            let p:any = document.querySelector('#playerMain')
            if(p == null) return

            if(player == null){
                setPlayer(new YouTubePlayer('#playerMain',{autoplay:true}))

            }else{
                player.load(vid ? vid : 'GKSRyLdjsPA')

                    player.on('cued', ()=>{
                        player.play()
                    })
            }
        
    }, [player])
    

    useEffect( () =>{

            if(player == null) return
            player.load(vid)
                    //player.setVolume(100)
                
                
                    player.on('playing', () => {
                        setTime(player.getDuration()) // => 351.521
                    })

                    player.on('ended', ()=>{
                        //alert('ended')
                    })
                    player.on('cued', ()=>{
                      player.play()
                  })
        
    }, [vid])

    return (
        <>
        <div id="playerMain" className="mainPlayer"></div>
        </>
    )
}
```

The "{props,vid}" arguments take object and a video ID string so we can play other videos as well.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jo8f7z5an92biu4hi7e5.png)
Hacktoberfest: Contributing to React project
Tags: hacktoberfest, react, opensource, beginners
Published: 2022-10-18 06:22:11

---
title: Hacktoberfest: Contributing to React project
published: true
description: Hacktoberfest: Contributing to React project
tags: hacktoberfest, react, opensource, beginners
cover_image: https://i.imgur.com/KRhfzYz.jpg
# Use a ratio of 100:42 for best results.
---
Hello all 👋

### For newcomers to open-source 
Contribute at https://github.com/this-mkhy/Dev-Connections

### For mid-level or experienced to open-source and want to contribute to a react project:
Check this live preview: http://this-react-curve.vercel.app/ 
Contribute at https://github.com/this-mkhy/react-curve
Try to fix responsive issues, update logic and add features.

Remember, to be creative and make the easy things easy and the hard things possible.
Optional chaining in Javascript, explained with pizza🍕
Published: 2022-10-18 06:14:35

When you wan to explorer an object in JS, you may need to go deep and "chain" multiple object properties.
Look at a delicious object like this for instance:

![A JS object describing pizzas](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eoquq3tuh94lfzyxpfmg.png)

You might want to try and get the toppings for a non-existing barbecue pizza🍕, but you'll get an error:

![If we write pizzaOptions.barbecue.toppings, JS throws an error](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iikob939c0lu317env24.png)

Using **optional chaining**, you can essentially tell JS or TypeScript: look for toppings on this pizza, but just return "undefined" if the pizza doesn't exist.


![If we write pizzaOptions.barbecue?.toppings, JS just returns undefined](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uduhrzgtiz32k5xksgy1.png)

If a value exists for "toppings", it will be returned as normal:

![If we write pizzaOptions.margarita?.toppings, JS returns the toppings for margaritas](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ydp11b6ge03epom0cr2.png)

There you have it! Optional chaining is very useful when you're not sure what you have in your data objects, and you don't really mind if there's nothing there.

Check out [the documentation on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) for mor info.
Le chainage optionel en JavaScript, expliqué avec des pizzas🍕
Published: 2022-10-18 06:11:57

Lorsque vous souhaitez explorer un objet dans JS, vous devrez peut-être aller en profondeur, et "chaîner" plusieurs propriétés d'objet.
Si vous regardez un objet délicieux comme celui-ci par exemple :

![Un objet JS décrivant une pizza](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z9p4thufyoe07078z47z.png)

Vous voudrez peut-être essayer d'obtenir les garnitures pour une pizza barbecue inexistante🍕, mais vous obtiendrez une erreur :


![Si on écrit pizzaOptions.barbecue.toppings, on a une erreur](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3mh6cvl7ra9dm3tawsz.png)

En utilisant le **chaînage facultatif**, vous pouvez essentiellement indiquer à JS ou à TypeScript : cherche les garnitures sur cette pizza, mais renvoie simplement `undefined` si la pizza en question n'existe pas :


![Si on écrit pizzaOptions.barbecue?.toppings, JS renvoie juste undefined](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/42srhp0aozq4zt26mqax.png)

Si une valeur existe pour la pizza désirée, elle sera renvoyée normalement :


![Si on écrit pizzaOptions.margarita?.toppings, JS renvoie les garnitures correct](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ppn8c5gqfe0w0zzay5dr.png)

Voilà! Le chaînage facultatif est très utile lorsque vous n'êtes pas sûr de ce que vous avez dans vos objets de données, et que cela ne vous dérange pas vraiment s'il n'y a rien.

Consultez [la documentation sur MDN](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators/Optional_chaining) pour plus d'informations.
Agile Process
Tags: agile, storybytes, change, webandappstudio
Published: 2022-10-18 05:20:17


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

We got in touch with Agile in 2014, and since then, there has been no looking back. The iterative approach to project management helps the team deliver value to the customers faster and with fewer headaches. We are no more betting everything on a "big bang" launch. As an agile team, we deliver work in small but valuable increments. Together with Certified Product Owners and Scrum masters, Grooming, Check-ins, and Product Review ceremonies are celebrated. The team has found a natural mechanism to respond to change quickly by being part of the cycle.