teleren/devto huggingface dataset:
Focusing Tests in Quick. A Tip for iOS Developers
Tags: ios, mobile, testing, coding
Published: 2023-10-16 13:00:26

**When writing unit tests in Quick, you can easily change it to `fit` to have a focused test – then only this one will execute. It is great for debugging. Check it out!**
﻿
In Quick you can focus on specific test with use of `fit`. Just change `it` to `fit` and only this test will run. It’s especially useful when we want to ensure that another test does not activate our breakpoint.
﻿
Similarly to fit you can focus groups of tests with use of `fcontext` and `fdescribe`. Then only tests within such group will run.
﻿
## Focusing test use case example
﻿
Let's say we are currently working only on the context where a user doesn't have available funds then instead of context we can write `fcontext` which means – focused context and only test cases from this context will be performed. 
﻿
```swift
 describe("Credit Card") {
            context("User has available funds to transfer") {
                beforeEach {
                    ...
                }
                it("Should show enabled button") { @MainActor in
                    ...
                }
                
                it("Should show transaction options") { @MainActor in
                    ...
                }
            }
            
            fcontext("User doesn't have available funds to transfer") {
                beforeEach {
                    ...
                }
                
                it("should show disabled button") { @MainActor in
                    ...
                }
                
                it("should show transactions history") { @MainActor in
                    ...
                }
            }
        }
```
﻿
Now only tests under the context of the user without any funds will be performed. You need to admit it's rather quick. I'll let myself out… 
﻿

---

By Kamil Buczel, Senior iOS Developer @ [Bright Inventions](https://brightinventions.pl/)
Music Monday — What are you listening to? (Movie Soundtrack Edition 🍿)
Tags: watercooler, discuss, music
Published: 2023-10-16 13:00:00

_cover image source: [Giphy](https://giphy.com/gifs/thegoodfilms-film-cinemagraph-wes-anderson-9GorY4OMKv6PC)_

**Wait a minute, haven't we been down this street before? That's right, [we have](https://dev.to/devteam/music-monday-what-are-you-listening-to-soundtrack-edition-49e1). But, this time around I've decided to lazer our focus on _movie_ soundtracks. Don't worry video gamers, you're time is coming soon... perhaps even next week, hint hint. 😉 But as for movie soundtracks, I'm looking forward to learning who you're favorite film score composers are, which movies you think have the greatest soundtrack, and what scenes were made more memorable because of their excellent soundtrack. Anything to do with movies and music works for me... really any music works for me, so feel free to step outside the rules.**

![John Williams smiles, laughs, and points while sitting in the crowd at the Oscars.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j9lyaykqv09bw53evgi1.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Alright, let's hear y'all's favorite soundtracks. _Note: you can embed a link to your song using the following syntax `{% embed https://... %}`. This should work for most common platforms!_

Looking forward to listening to y'all's suggestions! 🎶
CSS Tips - Where()
Tags: css, csstips, webdev, tutorial
Published: 2023-10-16 12:57:35

Fala galera, Rodrigo Zan na área.

Hoje iniciaremos o quadro CSS Tips. A ideia é trazer todos os dias algumas dicas de CSS para aprimorar suas habilidades de design e tornar suas web pages ainda mais incríveis. 

## Dica do Dia: a pseudoclasse `:where()`

Hoje, vamos explorar a função de pseudoclasse where no CSS. Essa função é uma ferramenta incrivelmente útil quando se trata de selecionar elementos com base em uma lista de seletores. O que torna o where especial é sua capacidade de aplicar estilos a elementos que correspondem a qualquer um dos seletores em sua lista. Vamos dar uma olhada em como usá-lo.

Suponha que você deseje aplicar um estilo a todos os elementos `<span>` dentro da tag `<p>` da sua aplicação. Normalmente você escreveria:

```css
p span { /* estilo */ }
```

Uma forma de declarar que o `span` é um elemento filho direto do `p`, é utilizando o sinal de maior.

```css
p > span { /* estilo */ }
```

Porém, se eu tiver três parágrafos, cada um com uma classe que adiciona estilos diferentes, mas tiver algum estilo que queira passar para todos eles, posso trabalhar da seguinte forma:

```css
p.first > span,
p.second > span,
p.third > span {
   /*  estilo para os spans dentro de todos os parágrafos */
}

p.first span { 
    /* estilo o span dentro de p.first */ 
}

p.second span { 
    /* estilo o span dentro de p.second */ 
}

p.third span { 
    /* estilo o span dentro de p.third */ 
}
```

Para tornar o `CSS` menos verboso, podemos utilizar a pseudoclasse `:where()`:

```css
:where(p.first, p.second, p.third) > span { 
    /*  estilo para os spans dentro de todos os parágrafos */ 
}

p.first span { 
    /* estilo o span dentro de p.first */ 
}

p.second span { 
    /* estilo o span dentro de p.second */ 
}

p.third span { 
    /* estilo o span dentro de p.third */ 
}
```

Curtiu essa dica? Se gostou desse quadro, me dá um toque nos comentários.

Abração e até amanhã!
How to send email in Django
Published: 2023-10-16 12:54:59

To send an email in **Django**, we need to simple steps

Step 1:

Open settings.py and put the code below somewhere in your file

```
# Email sending configuration
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'your-smtp-server.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "email_sender@gmail.com"
EMAIL_HOST_PASSWORD = "email_password"
```

Step 2:

Once you done those configurations, now you we can perform sending email

```
// Import those packages
from django.core.mail import send_mail
from django.conf import settings
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import os
import smtplib
import ssl


// function that handles sending your email
def SendEmail(email_subject, email_message, email_reciever):
    sender_email = settings.EMAIL_HOST_USER  # Set the sender's email address
    receiver_email = email_reciever  # Set the recipient's email address
    password = settings.EMAIL_HOST_PASSWORD  # Set the password for the sender's email account

    message = MIMEMultipart("alternative")  # Create a MIME multipart message
    message["Subject"] = email_subject  # Set the email subject
    message["From"] = sender_email  # Set the sender of the email
    message["To"] = receiver_email  # Set the recipient of the email

    # Create the plain-text and HTML version of the email message
    text = email_message

    # Turn the plain-text version into a plain MIMEText object
    part1 = MIMEText(text, "plain")

    # Add the plain-text part to the MIMEMultipart message
    # The email client will try to render the last part first
    message.attach(part1)

    try:
        # Create a secure connection with the email server and send the email
        context = ssl.create_default_context()
        with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
            server.login(sender_email, password)  # Log in to the email server
            server.sendmail(
                sender_email, receiver_email, message.as_string()
            )  # Send the email
    except Exception as error:
        print('Exception Occurred', error)  # Print any exceptions that occur during the process
```

Step 3:

This is how we can use it

```
subject = "Hello from Assistant"
message = "This is a test email sent using the SendEmail function."
receiver = "example@example.com"

SendEmail(subject, message, receiver)
```

This is how we can send an email using **Django**
Best Cloud Drive migrator tool to migrate Google Drive files to OneDrive
Published: 2023-10-16 12:34:50

Migration is difficult to handle, so if users want to finish the task, they are asked to begin it with a trustworthy tool. Google Drive is a hosting file service where users store their essential data, and everyone is used to storing their data in it. There is a 15 GB free storage facility for the users and users can even extend the storage capacity by opting for the subscription plan. Since OneDrive was launched, every user has been willing to migrate Google Drive to OneDrive quickly.

There are a lot of tools available for the users, but we refer users to try the Shoviv [Cloud drive migrator](https://www.shoviv.com/cloud-drive-migrator.html) tool. A top-notch utility will complete the whole process successfully without taking much time. Now that users want to transfer Google Drive to OneDrive, the software we have shared is perfect for the process. The tool is available worldwide, and users can run the task whenever they want. A few features that this utility offers help the users to finish the task successfully.

The software easily migrates all the files available in Google Drive/ local drive/ OneDrive. The tool can migrate from Google Drive to OneDrive/Google Drive/Local Drive. The users can filter the data based on date range/ folder/ file extension/ file extension and size. There is copy and paste facility available in the tool so that users can migrate the particular item. Users can even schedule the migration task as per their requirements. The software will prepare a live report of the entire task so that users can go through every step in detail.

To [migrate Google Drive to OneDrive](https://www.shoviv.com/blog/migrate-google-drive-to-onedrive/), it is the finest tool for users. Apart from that, users can also download the free trial version of the tool and experience the features of the tool in detail.
I'm going back to school, Live
Tags: go, webdev, backend, backenddevelopment
Published: 2023-10-16 12:31:50

I’m going back to school. And you’re invited along.

Specifically, I’m preparing to go through [boot.dev](https://www.boot.dev/)’s online course, “Learn Web Servers”.


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

Boot.dev is building the smartest way to master backend development by tackling the hardest problem with e-learning: boredom. The platform uses tactics learned from modern game design to push ambitious students toward their goal: a career in backend development. Through hands-on lessons that balance theory with practice, and an active Discord community, students are prepared to tackle technical interviews and forge a successful programming career.

It offers courses in Python, a wee bit of JavaScript, and most important, obviously… _Go!_

If you’re new to Go or web servers, this will be an easy introduction to the concepts, and a chance to ask questions as you watch me make mistakes.

Save the link, and be sure to subscribe to the [Boldly Go youtube channel](https://www.youtube.com/@boldlygo). I'll be going live in just a half an hour!

Or if you're reading this in the future, of course you can still watch the replay.

{% youtube kwQ5npugi8Y %}

I hope to see you there!
Self Drive Car Rental Goa
Tags: selfdrivecarrentalgoa
Published: 2023-10-16 07:12:57

Introduction

Goa is a tourist haven that is just waiting to be discovered, with its sun-kissed beaches, energetic culture, and varied scenery. **[Self Drive Car Rental Goa](https://www.car4hires.com/Article/Self-Drive-Car-Hire-Goa.aspx)** with Car4Hires offer simplicity and flexibility and are a great option if you're looking for the best way to explore this seaside treasure. Car4Hires makes it simple for you to start an adventure in Goa at your own speed by providing a large selection of vehicles.


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

A Wide Range of Vehicles

We are proud to provide a wide variety of rental automobiles in Goa at Car4Hires. Car4Hires offers a variety of vehicles to suit your needs, including luxury models to enhance your trip, roomy SUVs for family outings, and tiny cars for commuting inside the city. They make sure you locate the ideal vehicle for your trip by offering a variety of well-maintained cars to suit different traveler tastes.

Release Your Inner Self-Driven Freedom

The unrivaled independence that comes with self-drive car rentals is one of the main benefits of choosing this option. You can set your own itinerary, making impromptu stops and finding hidden treasures along the road, without having to rely on public transit or strict deadlines. When you rent a car from Car4Hires, the trip becomes just as memorable as the final destinations.

Easy Accessibility and Convenience

Car4Hires is dedicated to providing a trouble-free rental encounter. Your rental car is easily pick-up and drop-off accessible at a number of locations, including the airport and well-known tourist destinations. You can concentrate on Goa's beauty because of how easy and stress-free your journey will be thanks to this degree of accessibility.

Affordable Travel

Do you worry about how much a rental automobile will cost? When you're traveling in a group, self-drive automobile rentals can prove to be an exceptionally economical option. You can choose a car that fits your budget and divide costs with your fellow travelers thanks to Car4Hires' array of pricing alternatives.

Discover Goa in Your Own Way

It's fun to discover all of Goa's nuances, especially in a place this diversified. Goa can be experienced on your terms with a self-drive vehicle hire from Car4Hires, whether your goals are to explore its rich cultural legacy, travel through picturesque countryside, or soak up the sun on its renowned beaches.

Conclusion

With Car4Hires, you can take charge of your own itinerary and speed for an incredible Goan adventure. Car4Hires is the ideal option for your Goa adventure because it offers a wide selection of vehicles, convenience, cost, and the assurance of self-drive independence. When you're organizing your next trip to Goa, keep in mind that Car4Hires is prepared to make your stay even more enjoyable and let you fully enjoy this captivating coastal haven.
1 hour features
Tags: javascript, webdev, programming, startup
Published: 2023-10-16 12:28:57

At [AlertPix](alertpix.live) we allow streamers to receive donations from their audience via Pix Instant Payment and show an alert on the live stream.

The whole product deals with real time, which means we need to ship features as fast as possible.

## 1 hour max
As engineers we are used to long development and deployment processes:
- create feature branch
- code
- write tests
- push code
- open PR
- wait for automated tests
- wait for review
- wait deploy to beta/stating env
- wait validation
- create PR to prod
- wait for automated tests
- wait for review
- wait deploy to production

We are used to something like this. Having a separate development environment and a production one (some companies has more environments than this). Also needing to follow git flow and wait for peers and CI to do their job.

But I think all these can be not only reduced but take 1 hour max.
Anything after that, means you are stuck into a problem or your feature is too big.

## Research First: 20 minutes
The first 20 minutes should be dedicated solely for research. But if you already have some knowledge of what you're building, you can do it in less time.

The ideia here is to give some time to understand what you need to build, how to do it and the most important: how to code it in the next 40 minutes.

This step can't be skipped, even if you know the concepts. Because we should understand things before doing.

## Now Code: 20 minutes
After the research process, its time to code the solution.

**Don't over engineer.**

Your solution should be simple and each piece of code should do one thing and one thing only.

Don't write tests or docs, just code the first version. It won't be perfect the first time, so do what works and move on to the next step.

## Now Test: 20 minutes
Finally, you've reached the test phase. If you are a startup in the MVP or pre PMF phase you can skip this step and earn more 20 mins to code another feature.

But if you want to write tests, now is the time to do it.
We know that TDD tells us to write the tests before we write the code. But lets be real:

> You only know what you will code while you are coding.

Tests come in last because you can test while you code. This phase is more if you need to have them to pass CI or a code review.
Also if you add tests, you garantee that you coded something that works.

At AlertPix this framework has been applied since day one, and every day we improve the product without having to wait. 

---
[AlertPix](alertpix.live)
Global Autonomous Ships Market Size was USD 29.00 Million in 2022
Tags: market, automation, ships, marketresearchreport
Published: 2023-10-16 12:25:38

The [Autonomous Ships Market ](https://www.reportprime.com/autonomous-ships-r20)is expected to grow from USD 29.00 Million in 2022 to USD 91.00 Million by 2030, at a CAGR of 17.83% during the forecast period.

Autonomous ships are vessels that are capable of operating without a crew onboard. They use advanced technologies such as AI, sensors, and GPS to navigate and perform various tasks. The market for autonomous ships is segmented based on type into maritime autonomous ships and small autonomous ships, and application into commercial and scientific, and military and security. Geographically, the market is segmented into North America, Asia Pacific, Middle East, Africa, Australia, and Europe. The key players in this market are Kongsberg, Rolls-Royce, ASV, DARPA, NYK Line, Mitsui O.S.K. Lines, and HNA Group. The regulatory and legal factors specific to this market vary based on regional conditions. For instance, the International Maritime Organization (IMO) has developed guidelines on the safe operation and deployment of autonomous ships, while the European Commission has developed a policy and legal framework to support the introduction of these vessels into EU waters.
Software Testing
Tags: testing, sdlc, stlc
Published: 2023-10-16 12:15:37

Software testing is a critical and important process in the software development. It involves evaluating a software/product to identity the defects in them and fixing those. 

The main goals of software testing are verifying the software/product to meet the clients expectation and to try for the Zero error (no software/product is 100% error free). There are different types of software testing --> Functional testing as Unit testing, integration testing, System testing, Regression testing, UI testing and User acceptance testing and Non-functional testing --> security testing, performance testing, usability testing and scalability testing.

These are handled with process flow as Requirement analysis, Test planning, Test cases, Test environment creation, Bug tracking and Documentation.

The relevance of testing are in development and maintenance of software with the following reasons,

Quality assurance - identifying the defects and fixing them to ensure the software performs as expected.

User expectation fulfilment - Satisfying the user with software as friendly and good to use with no errors.

Risk based testing - to identify the risks in the product and cover them with a plan.

Cost effective - to find the defects in early stages and fix before it reaches the user and affect the cost/failure.

Process improvement - It improves the process in the company and improves the developers with performance

Maintenance & Documentation - The maintenance of the software mainly relays on the documentation by the developers and testers. It makes the people to refer and resolve things early and good.
Automate Form Submission: ChatGPT-Powered Bot with Google Sheet Integration via Automatio 🤖
Tags: webscraping, automation, chatgpt, googlesheets
Published: 2023-10-16 12:09:59


## Automate Form Submission: ChatGPT-Powered Bot with Google Sheet Integration via Automatio 🤖

![](https://cdn-images-1.medium.com/max/2116/1*XywGuWeogeEcIeeGl7yTag.png)

## What is up, Automators?!

Stefan here, founder of Automatio 👋.

Here’s a quick peek at what’s in this newsletter:

* ChatGPT-Powered Bot for Effortless Form Filling **(📼 video tutorial )**

* Early Adopter Program

* Automatio roadmap and future goals

* **BONUS**: Web Highlights: 5 Recommended Reads

## ✨ ChatGPT-Powered Bot for Effortless Form Filling

Discover how to streamline your form submission process with ease using the power of ChatGPT, Google Sheets, and Automatio. Learn how this workflow simplifies data entry and enhances your productivity.

 https://www.youtube.com/watch?v=r_ytFbIYyvA

Let me know if you have any questions, and don’t forget to subscribe to the Automatio YouTube channel.

## 💎Join Automatio’s Early Adopter Program Now!

We’ve got a game-changer alert! Automatio’s Early Adopter Program is live, and we’re extending an exclusive invitation to you. Experience our incredible features and lock in an extraordinary 50% lifetime discount!

**Key Benefits:**

* Get early access to AI integration (2024)

* An amazing 50% lifetime discount

* 2x more credits

* Free NFT Airdrop

* Custom Onboarding

* Be part of a dynamic community

* Shape the future of Automatio with your feedback

* And more exciting perks

## 🗺 Automatio Roadmap and Future Plans

* Secure the **next round of funding** through **community-raising** (aka crowd-funding/NFT collection).

* Release **free trials**, better **onboarding**, and more **educational content**.

* Integrate **ChatGPT** directly inside Automatio, but also our version of AI. It will be a huge improvement.

Build and improve other features from the roadmap like **conditional logic**, **multi-thread**, **selector engine**, etc.

## 📜 Web Highlights: 5 Recommended Reads

In this collection, we’ve scoured the internet to bring you five captivating online treasures, each a delightful and thought-provoking read handpicked just for you.

 1. [Microsoft is going nuclear to power its AI ambitions](https://www.theverge.com/2023/9/26/23889956/microsoft-next-generation-nuclear-energy-smr-job-hiring)

 2. [Google is making big changes to prevent Gmail spam](https://www.cnbc.com/2023/10/03/googles-making-big-changes-to-prevent-gmail-spam.html)

 3. [9 Ultimate Growth Hacking Strategies + Examples](https://www.semrush.com/blog/growth-hacking-strategies/)

 4. [26% of the top 100 websites are now blocking GPTBot](https://searchengineland.com/more-popular-websites-blocking-gptbot-432531)

 5. [Life in an AI entrepreneurs’ houseshare](https://archive.ph/lAAty)