teleren/devto huggingface dataset:
Great Things - Laravel 9.37 - 9.38 Released
Tags: php, laravel, webdev, beginners
Published: 2022-10-28 09:47:03

It has a couple of new features that I've found that can help you on your next projects - Laravel 9.37 Released

- Verbose view caching

the ability to pass -v to the view:cache artisan command to output the directories the command is looking in and -vv to see every file the command caches.
```php
php artisan view:cache -vv
```

- Query builder raw value method

rawValue() method to get a value from a SQL expression. Here are some examples from the pull request
```php
$first = TripModel::orderBy('date_at', 'ASC')
    ->rawValue('YEAR(`date_at`)');
$last = TripModel::orderBy('date_at', 'DESC')
    ->rawValue('YEAR(`date_at`)');
 
$fullname = UserModel::where('id', $id)
    ->rawValue('CONCAT(`first_name`, " ", `last_name`)');
```

- Slug helper dictionary

https://github.com/laravel/framework/pull/44730
customizable dictionary for special characters when calling Str::slug()
```php
$ php artisan tinker
 
>>> Str::slug('500$ bill');
=> "500-bill"
 
>>> Str::slug(
...     title: '500$ bill',
...     dictionary: ['@' => 'at', '$' => 'dollar']
... );
=> "500-dollar-bill"
```

- Add a touchQuietly model convenience method

https://github.com/laravel/framework/pull/44722
touchQuietly() convenience method to touch a model's update timestamp without raising any events
```php
$model->touchQuietly();
```

- Isolated Artisan commands

The first artisan command to include the Isolatable interface is the artisan migrate command. Using the --isolated flag you can limit the migrate to one active process and ensures that two servers cannot run the migrate command at the same time
```php
php artisan migrate --isolated
```
Note: isolated migrations is not the default and was released behind the --isolated flag to reduce the chance of breaking changes.


I hope you enjoyed with me and to learn more about this release visit the sources and search more. I adore you who search for everything new.
Source :- https://laravel-news.com/laravel-9-37-0
Source :- https://laravel-news.com/laravel-9-38-0
Source :- https://www.youtube.com/watch?v=SlYECnom3UI
information to SaaS that Translate design into code for front developers
Tags: flutter, function12, figma
Published: 2022-10-28 09:45:18


To save your time, here is the list and comparison of some of the Figma to code products. We have a total of five services including FUNCTION12 with an explanation of how each service is similar or different from the other. All five SaaS offer conversions in design to code, Figma to code, and design to languages or frameworks such as HTML, React, Flutter, and more.

**TOP 5 Design-to-Code Tools**
Below are short descriptions of: FUNCTION12, Anima, Locofy, Teleport HQ, Monday Hero

Although we would love to provide full details, we also know the beauty of a short and sweet explanation. Please visit the website link attached to each description to learn more.

If you are looking for a design to developer-level code, then think no more and sign up on FUNCTION12. We can assure you that you will not regret it.

## **Design-to-Code Description**

**FUNCTION12**

FUNCTION12 presents powerful performance through dock UI, unique interface in multi-window, native rendering engine with the developer-friendly process, and production-ready codes. All features and tools in FUNCTION12 are built for the developer to have full control when producing codes.

https://function12.io/

## Anima
Design to code - anima
Anima is a Figma, Sketch, and XD’s plugin tool with a control feature within the tool.

It is a designer-based service where the designer’s control will mostly affect the outcome. Although the developer can also do edits, it requires knowledge of design-based tools. It is optimized for exporting codes by components rather than a page or project base.

https://www.animaapp.com/

## Locofy
Design to code - Locofy
Locofy is similar to Anima, a design-based plug-in tool with a control feature. There are some slight details between Locofy and Anima, but the overall features, processes, and interfaces are extremely similar to each other.

https://www.locofy.ai/

## Teleport HQ
Design to code - teleportHQ
Teleport HQ’s interface and process are concentrated on producing codes by the developer’s control, rather than the designer. The developer can adjust the final codes as they want and it allows a wide range of design components to edit compared to other products. It would be appropriate to view Teleport HQ as a design-to-code product with few editing features.

https://teleporthq.io/

## Monday Hero
design to code - monday hero
Monday Hero is also mainly concentrated developer side’s control and handling. Currently, the product beta is provided in mobile support. Monday Hero provides conversion in SWIFT, unlike other services.


https://mondayhero.io/

If you know any other services or products that you would like to recommend, please let us know anytime. We will check it out and update it to this list.

Thank you.
EEL! and more stuff
Tags: devjournal, programming, python, opensource
Published: 2022-10-28 09:25:58

## YEAAA
Today,  I found out this cool python dependency called, Eel! I am loving this. Electron is to make a website come to life on a server-side app. Eel is to make a website come to life using python. open source: https://github.com/python-eel/Eel
<br>
### So, what is this gotta do with my internet challenge?
Well, it means that my GUI can now be programmed in beautiful HTML! Instead of Tkinter, I can do this :). The following few weeks, I would try to learn this module. It might work, it might not. So, let's go!
<br>
### OOh
I created a branding! It is called Hot Web 🥵. 
![IHot Web](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2i3bhoyj6yrhdr0ltfd.png)
pls don't copy this :| and also, see you again later, like, very later L.
Being a Developer Advocate: Week 8
Tags: devrel, learninpublic
Published: 2022-10-28 09:17:50

Building more demos, giving talks, and moderating a meetup for the first time!

What a week it was 🤯

## Google Tag Manager in Docusaurus
It all started with success as I figured out why we couldn't get Google Tag Manager to work on our docs. It turned out our Tag-configuration was somehow faulty.

And we used the wrong Plugin _gtag_ which is for Google Analytics.

But here comes the twist: Google Analytics also uses Tags and it nearly looks the same when you embed the script into your _<head>_ 🤦🏼‍♂️

The main takeaway was that we tried to solve a problem, which was two problems at once:

1. Faulty Tag-configuration
2. Faulty Docusaurus configuration

So next time when you can not figure out a problem. Maybe you are trying to solve two problems 🤓

I ended up coding a hacky solution that embeds the correct script (See [the docusaurus.config.js](https://github.com/askui/askui/blob/d7e7f7266a3f6bc6c0d1c284c45ef2e52160a942/docs/docusaurus.config.js#L8)

## Conferences
I was at a conference in-Person which is always nice and exciting (International PHP conference in Munich). As strange as that may seem I am not too good at approaching people and this community is unfamiliar to me. Luckily I meet some fellow speakers I know and some people from Social Media.

I also was able to make some new contacts and have interesting conversations.

Also, my English is coming along better and better. It is like training a muscle 🤩

## Moderating Meetup
Wednesday was my first time moderating a Meetup. Promptly we had some technical issues while sharing slides. Only the presenter mode was available for share.

My key takeaways here:

1. Do a quick call with the speaker and get the tools sorted out. Makes for a much smoother experience.
2. We have to figure out a way to let the speaker know something does not work without interrupting. It feels bad to do that.
3. If you want to promote anything like the next meetup, do it before the talk. Afterward, the participants will leave quickly.

## Getting in some Onboarding Improvement
We are still working on improving our Onboarding workflow for new users.

What we are currently designing is a _Getting Started Guide_ in our User Portal. While talking about it we realized that we could solve a whole lot if we improve our command line tool for initializing a new project.

I ended up improving it right away, eliminating several steps in the guide.

It is fascinating how thinking about possibilities and acting on them can make the onboarding process faster and less tedious!
DEV team, pls
Tags: meta, discuss, agile
Published: 2022-10-28 09:09:35


![Image descriptio](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/231j4xdpeazqrvu283u5.png)

## Erm
Well<br>
I mean<Br>

![Image descripion](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2l4q4cu9pk5ipfvznqer.png)

So... why doesn't DEV just auto set the theme to dark? 🤔. Could DEV.to team let me know and you all just speculate in the meantime? Really strange. It might be that people who don't game or develop cannot use dark mode and that is like 40% of human population. Still, don't understand why DEV keeps on pushing the dark mode message :|. (not a complaint.) Also, I'm using dark mode and the message above appears all the time (a complaint.)
Best way to create Aesthetic Screenshots
Tags: javascript, webdev, beginners, programming
Published: 2022-10-28 08:48:59

From beautifying screenshots with simple tricks to making their text searchable, this free tool will help you take better screenshots, then manage and edit them.

Taking a screenshot is almost second nature to content creators, social media managers, designers, marketers, product managers, and developers. It serves many uses, such as simple annotations, quick demonstrations, and saving something for posterity. Given how useful the humble screenshot is, these free apps unlock its true potential.

# What is Spiffy?
Spiffy converts your boring screenshots into aesthetic and beautiful screenshots. Upto 8K download, Custom & AI Background, Shadows, Corners & more.

Website: [spiffy.itsvg.in](https://spiffy.itsvg.in)

## Screenshots
![](https://user-images.githubusercontent.com/81325730/197831040-12cad0c4-3eec-4170-a350-7233a1c3ab77.png)


## Our Social Links
[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=normal&logo=linkedin&logoColor=white)](https://linkedin.com/in/VishwaGauravIn)
[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.svg?style=normal&logo=Twitter&logoColor=white)](https://twitter.com/VishwaGauravIn)

## PageSpeed Insights
![](https://raw.githubusercontent.com/VishwaGauravIn/Images/f13849bc9989d66c67085313dd606ea978eff0f8/psi-gprm.svg)
Updating Adminer in Laragon for PHP 8
Tags: php, laragon, webdev, windows
Published: 2022-10-28 08:43:49

In Laragon, when you switching to PHP 8 and accessing adminer at http://localhost/adminer, you will find this error:

![adminer error in php 8 laragon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wvjflnb5z4d1g50eqo33.png)

the errors are because of the existing adminer app only supported in PHP 7. If you're currently using PHP 8 for now and the future, We need to update the adminer.

## Downloading the latest Adminer app

Go to https://www.adminer.org/#download, and find the download link for the latest adminer app. Adminer is a single-file php application, so you will find a single php file like `adminer-4.8.1.php` downloaded for example.

## Updating the existing Adminer to the latest

Go to `C:\laragon\etc\apps\adminer` (or adjust to your laragon directory path) and you will find a single php file `index.php`. You may want to delete or backup this file and replace it with `adminer-4.8.1.php` and rename it into `index.php`

## Accessing the new Adminer

With PHP 8 running, now the new adminer app will be accessible in the same url and you can start to login into a database.

![adminer 4.8.1 login page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f324k1x43jk3tfn44vmu.png)

> as per adminer 4.6.3 or newer, you cannot login into a database with a blank password ([ref](https://www.adminer.org/en/password/)), unlike the phpMyAdmin. So to use adminer, maybe you need to create a new database admin user with a password through mysql cli or phpmyadmin.

Good thing when you switch back to PHP 7.4, the latest adminer 4.8.1 still supported.
Free Cloud & DevOps Courses In 2022
Published: 2022-10-28 08:27:59


1. Introduction to Cloud Computing 
https://www.coursera.org/learn/introduction-to-cloud

2. Intro to DevOps
https://www.udacity.com/course/intro-to-devops--ud611

3. Cloud Native Fundamentals
https://www.udacity.com/course/cloud-native-fundamentals--ud064

4. DevOps Culture and Mindset
https://www.coursera.org/learn/devops-culture-and-mindset

5. Introduction to DevSecOps
https://www.coursera.org/learn/introduction-to-devsecops

6. Developing Cloud Native Applications
https://www.edx.org/course/developing-cloud-native-applications

7. Continuous Delivery & DevOps
https://www.coursera.org/learn/uva-darden-continous-delivery-devops

8. Introduction to DevOps and Site Reliability Engineering
https://www.edx.org/course/introduction-to-devops-and-site-reliability-engineering

9. Developing Cloud Application with Node.js and React
https://www.edx.org/course/developing-cloud-applications-with-nodejs-and-react

10. Continuous Integration
https://www.coursera.org/learn/continuous-integration

11. Docker for Beginners
https://www.eduonix.com/courses/Software-Development/docker-for-beginners

12. Introduction to Kubernetes
https://www.edx.org/course/introduction-to-kubernetes

13. Introduction to Cloud Infrastructure Technologies
https://www.edx.org/course/introduction-to-cloud-infrastructure-technologies

14. DevOps basics for everyone
https://www.edx.org/course/devops-basics-for-everyone

15. Continuous Integration and Continuous Delivery (CI/CD)
https://www.coursera.org/learn/continuous-integration-and-continuous-delivery-ci-cd



[Follow @ileriayooo](https://twitter.com/ileriayooo) on Twitter for more on Cloud and DevOps
Don't be over-creative
Tags: beginners, programming, javascript, python
Published: 2022-10-28 08:25:32

This is the most important programmers (I mean beginners 😃) problem I have ever seen. I can tell a story. There is a man who wants to be a programmer. He started from PYTHON, then he thought it will be an advantage if he study JAVASCRIPT also, then he started studying JAVASCRIPT. He saw a video that explains the power of the GO language and he also began to watch tutorials about it and what finally happens, he learnt nothing! (Actually, he learnt something from many languages but it won't be useful). He can indeed do a project in many languages, but the project name is "HELLO WORLD".

![A funny gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mr6jx2wc81zpe5zh5u84.gif)
How do you manage not used images in website like cms?
Tags: images, database, help, webdev
Published: 2022-10-28 08:04:16

---
title: How do you manage not used images in website like cms?
published: true
description: 
tags: images, database, help, webdev
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-10-28 07:51 +0000
---

I'm making website and I have different entities: users, comments, forum threads. It's something like wordpress with simple forum but  I built it myself with laravel.

I use storage like s3.

Everything is great but users can upload images in posts, comments, forum threads and have avatar.

With avatar everything is fine: 
Event: user uploads avatar
Action: system (cms) will upload image to s3 storage and on success delete previous avatar and change user row in database to use new avatar. Perfecto!

The hardest part is for forum comments, threads.
Event: user uploads image on comment form or thread form.
Action: system (cms) will upload image to s3 storage, add bbcode to textarea in form and add to images table row for uploaded image.

User can after leave page without posting.
User can remove markdown code if he doesn't like image.

So there are some zombie images. Every week I have a cron job to remove zombie images.
System will foreach images in my images table will search that image in comments, threads using lame 

``SELECT COUNT(*) FROM posts WHERE body LIKE %{image}%
SELECT COUNT(*) FROM comments WHERE body LIKE %{image}%``

And if it doesn't find it will delete it.


I'm considering to improve it - to loop through posts and comments updated after NOW() and parse with preg_match_all all images used, add to array and then foreach images in my images table will check if image in_array, otherwise delete image.

I'm not sure but this still feels not perfecto.

How do yall manage this kind of things?
It is 2022 - Why are businesses still using Passwords?
Tags: passwordless, authentication
Published: 2022-11-01 06:29:29

---
title: It is 2022 - Why are businesses still using Passwords?
published: true
date: 2022-10-28 08:03:58 UTC
tags: passwordless,authentication
canonical_url: https://mojoauth.com/blog/why-are-businesses-still-using-passwords/
---

Ever since its development, passwords have been the most often used type of authentication to access an online account, computer system, data, or protected space. And here are a few possible answers to why businesses are still using passwords-based authentication: Easy to implement, and a great amount of resources and help are available on the internet No compatibility or software issues with using password-based authentication No extra hardware is needed to run password-based authentication Users are well-educated on how to use password-based authentication Or maybe password-based authentication has been working for businesses for so long that some businesses never thought of switching to better options.

<a href="https://mojoauth.com/blog/why-are-businesses-still-using-passwords/">Read On</a>
Today's Fun Joke For Developers - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-10-28 08:00:10

---
title: "Today's Fun Joke For Developers - Daily Developer Jokes"
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/5e1259033bf63.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 many developers does it take to change a light bulb?

___A:___ None. It's a hardware issue
 -->
OpenAI's Whisper is Insane!
Tags: machinelearning, deeplearning, news, python
Published: 2022-10-28 07:40:09

OpenAI, the company behind GPT-3 and DALLE-2 have done it again. This time they've build a state-of-the-art transcription and translation model and it's *open source*!

Check out [this article explaining *why* OpenAI's Whisper](https://www.pinecone.io/learn/openai-whisper/) is so important, how it works, and how to apply to a real world use-case (making YT search better).
5-Nodejs Course 2023: Create Fastify Server
Tags: node, typescript, mongodb, fastify
Published: 2022-10-28 07:29:02

---
title: 5-Nodejs Course 2023: Create Fastify Server
published: true
description: 
series: Nodejs Course 2023
tags: nodejs, typescript, mongodb, fastify
#cover_image: 
# Use a ratio of 100:42 for best results.
---

## Recap

On our last time in the project, we navigated through the project files and the future structure of the files, now let's create our server handler using [fastify](https://www.fastify.io/).

## Create Fastify Server

First, we need to install fastify.

```bash
yarn add fastify
```

### Project Entry Point

The project starts from the `src/index.ts` file, which is created automatically for you now, let's create the server handler in this file.

### Create Server Handler

```ts
// src/index.ts
import fastify from 'fastify';

const server = Fastify();

server.get('/', async (request, reply) => {
  return { hello: 'world' };
});
```

Nothing fancy here, we just created a server handler and added a simple route to it.

### Start Server

Now, let's start the server.

```ts
// src/index.ts
import fastify from 'fastify';

const server = Fastify();

server.get('/', async (request, reply) => {
  return { hello: 'world' };
});


async function start() {
  await server.listen({ port: 3000 });

  console.log("Start browsing using http://localhost:3000");
}

start();
```

We created a `start` function so we can start the server by calling `.listen`, which receives an object of properties, in our case, we only need to specify the port.

### Run Server

Now, we're done, let's run the server.

```bash
yarn start
```

Open your browser and navigate to `http://localhost:3000`, you should see the following output.

```json
{
  "hello": "world"
}
```

## Conclusion

In this lesson, we created our server handler using fastify, and we started the server, in the next lesson, we'll create our first route.

## 🎨 Project Repository

You can find the latest updates of this project on [Github](https://github.com/hassanzohdy/nodejs-2023)

## 😍 Join our community

Join our community on [Discord](https://discord.gg/vtZE9YzaFz) to get help and support (Node Js 2023 Channel).
Show local current hour:minute with js
Tags: date, javascript
Published: 2022-10-28 07:14:14

---
title: Show local current hour:minute with js
published: true
description: 
tags: date, javascript
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-10-28 07:11 +0000
---


```js
new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit', hour12: false});
```


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


> SOURCE: https://stackoverflow.com/a/20430558/10694425