teleren/devto huggingface dataset:
How to use older Xcode version under macOS Ventura
Published: 2022-11-04 13:17:34

I faced with a problem trying to run iOS simulator under older version that Xcode 14 supports. Currently the latest version of Xcode supports iOS simulator runtime from 13.7 version.

So in order to achieve this you need to downgrade your version of Xcode but unfortunately, macOS Ventura supports only Xcode > 14 version.

I’ve found a non-elegant but working solution.

1. Go to apple’s official download page and download the right version for you: https://developer.apple.com/download/all.

2. Unpack the xcode and put it in Applications. If you have already installed Xcode on your system, rename the unpacked Xcode to, e.g. “Xcode13.4” before putting in Applications folder. Trying to open it right away will show you an error message (_The version of Xcode installed on this Mac is not compatible with macOS Ventura. Download the latest version for free from the App Store._), and so we go to the next point.

3. Thankfully to this [guy](https://stackoverflow.com/questions/74192400/how-to-use-xcode-13-in-mac-os-ventura/74192401#74192401) we know how to actually open it.

- Using finder navigate to **Applications** folder, find your version of xcode and right click on it, choose **Show package contents**, open **Contents → MacOS → Xcode**
- Or using terminal `open /Applications/Xcode13.4.app/Contents/MacOS/Xcode`

Now we can use older xcode and older versions of simulator runtimes.

**P.S.**
Worth to note. New projects must be started in the lowest xcode “supposed to be” version.

If you create project under xcode version higher then you won’t be able to open it. You’ll get an error **“cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.”**.
How to pass an argument to a pytest fixture?
Tags: pytest, fixture, arguments, help
Published: 2022-11-04 13:12:45

---
title: How to pass an argument to a pytest fixture?
published: true
description: Passing an argument to a pytest fixture.
tags: pytest, fixture, arguments, help
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2022-11-04 13:11 +0000
---
Update: *_It is not possible._*

I know this question has been asked several times. Yet here I'm seeking help because the existing answers are not addressing this specific question:

Here is what is working:
I've a fixture called indexer (example use case), it simply returns an number starting from 0 to 9

```
import pytest

# Parametrized fixture
@pytest.fixture(params=range(10))
def indexer(request):
    return request.param

@pytest.mark.parametrize("a", [pytest.lazy_fixture("indexer")])
def test_indexer(a):
    assert isinstance(a, int)
```
I want to pass an argument for the range function in the fixture like: `@pytest.fixture(params=range(max_range))`. How can I do it? 

I also know that there is a plugin called [pytest-repeat](https://pypi.org/project/pytest-repeat/). But that is not what I'm looking for.
How to Print Staircase Using Loops - Problem Solving JavaScript NodeJS
Tags: javascript, beginners, node, programming
Published: 2022-11-04 13:12:07

Do you ever want to print a staircase using code? In this article, we are going to print a staircase into the terminal using loops in NodeJS.

Article: [How to Print Staircase Using Loops - Problem Solving JavaScript NodeJS](https://mkdaycode.blogspot.com/2022/11/how-to-print-staircase-using-loops.html)


[![ko-fi](https://cdn.ko-fi.com/cdn/kofi2.png?v=3)](https://ko-fi.com/mkdaycode)
Follow Friday: IoT Edition (4 November 2022)
Tags: meta, writing, iot, raspberrypi
Published: 2022-11-04 13:00:00

_Happy Friday, friends! 🎉 Follow Friday is your weekly opportunity to shout out fellow DEV Community members doing awesome work. Check out the comments and follow someone new!_

I spent an awful lot of time online this week. I usually do — it's a function of the Social Media Manager profession — but due to high-profile news and developments in the social media space this week, my brain is feeling pretty fried. 🍳

So I wanted to take this week's Follow Friday out of the browser view...and into the Internet of Things!

The [Internet of Things (IoT)](https://en.wikipedia.org/wiki/Internet_of_things) refers to the concept of connecting things (typically physical objects with sensors and processing abilities) to the internet or other communications networks. Many IoT developers are building cool things with [Raspberry Pi](https://dev.to/t/raspberrypi), but there are certainly other tools and frameworks for making things talk to each other via the internet.

So, devs! Who are your favorite community members writing about their IoT adventures?

_**Formatting tip**: to populate a card with a follow button, use the liquid tag syntax `{% embed https://... %}` and insert the URL of your favorite author's profile._

Join in on the #FollowFriday fun by @mentioning your favorite author to follow on the topic of IoT (and letting us know why you love their posts!) ⤵️
More Detections integrated into cameras, these days to improve Observability
Tags: machinelearning, drift, oneapi, licensing
Published: 2022-11-04 12:57:35

**## Introduction**

Well, recently I have found that anomaly detection is used in airports using cameras, and it is also related to theft detection using cameras. I guess these anomaly detection techniques are quite close to drift detection techniques. Since there is novelty detection (involving human workflow) and anomaly detection (involving ML workflow), these cameras need such code, especially oneAPI is the necessary route.

**## Licensing**

I have observed that OpenVINO removed its licensing in 2020 - 2021. oneAPI takes a similar approach, and it will be accessible to developers who can actually install these cameras in sites. This is quite Open. I would like to tag this article, {% embed https://dev.to/sramkrishna/oneapi-and-importance-of-open-platforms-l70 %} 

**## Some concerns**

The stakeholders are concerned about privacy issues whenever a camera is installed on site. They tend to follow their human workflows and prioritize that if AI is not available. A closed solution that works with the industries is not only expensive, but also faces issues with usage of GPUs just because their licensing is not following Open standards. 

**## What do companies think?**

The companies think they can just carry on with monitoring instead of integrating Observability into the sectors, which is essential in this age where AI chips and Quantum computing are popular. The MoD has recently entered into a contract with Orca Computing to buy Quantum Computer. The advancement is huge as of now, and there are opportunities in AI to integrate observability into industries and to employ Data Scientists in various fields.
Remote jobs paying $120K+ - RevampedCP
Tags: career, job, productivity
Published: 2022-11-04 12:45:35

####   Original Tweet From  [@RevampedCP](https://twitter.com/RevampedCP)
{% embed https://twitter.com/RevampedCP/status/1588193804800200706 %}

###1|. Global Immigration Manager at Affirm
{% embed https://t.co/VxHJ00jbha %}

###2|. Staff Product Manager, Appeals and Reporting Experiences
{% embed https://careers.twitter.com/en/work-for-twitter/202210/d3ffecd2-b3ed-427d-a4bb-b3c6f6b19e42/aa2c810e-8458-4f4b-b4c3-9c241fde8cfd.html/staff-product-manager-appeals-and-reporting-experiences.html?trid=2d92f286-613b-4daf-9dfa-6340ffbecf73 %}


###3|. Senior Manager, Analyst Relations
https://www.okta.com/company/careers/marketing/senior-manager-analyst-relations-4617346/?gh_src=7j0um41 

###4|. Block Mobile Engineering Manager, Client Engineering
{% embed https://jobs.smartrecruiters.com/Square/743999862298724-mobile-engineering-manager-client-engineering %}
 AdSpace Here!!

###5|. Consulting Manager, Insurance Digital Transformation
{% embed  https://bakertilly.jibeapply.com/jobs/16836?lang=en-us %}

###6|. Block Finance & Strategy Manager
{% embed https://jobs.smartrecruiters.com/Square/743999860205131-finance-strategy-manager-marketing %}

###7|.Senior Manager, Strategic Finance at Toast
{% embed https://boards.greenhouse.io/embed/job_app?token=4669941&gh_src=dbd19ebc1 %}
 
###8|. Program Manager III, Corp Eng at Google
{% embed https://t.co/nI7NrO93Ku %}
  AdSpace Here!!

###9|.Customer Experience Program Manager 
{% embed https://t.co/dLbPMXIiDX  %}

###10|.  Partner Success Manager at Angi
{% embed https://t.co/40rJBcXkTC  %}

###11|. Etsy Staff Product Manager
{% embed https://jobs.smartrecruiters.com/Etsy2/743999859895491-staff-product-manager-recommendations-retrieval %}
 
###12|. Senior Product Manager, Data & Analytics
{% embed https://apply.workable.com/athletic-greens-hiring/j/46E4E3EA47 %}
 AdSpace Here!!

###13|.  Lead Product Analytics at Okta
 https://www.okta.com/company/careers/business-technology/lead-product-analytics-4101072/?gh_src=7j0um41

###14|. Senior Data Analyst, Business Insights
{% embed https://t.co/sLCSw50zHD  %}

###15|. Block Finance and Strategy Senior Analyst 
{% embed https://jobs.smartrecruiters.com/Square/743999861695281-finance-and-strategy-senior-analyst-people-counsel %}

###16|. Senior Analyst at Transcarent
{% embed https://t.co/7LjGUPm36W  %}
 
###17|. Product Strategist At Oracle
https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1/job/185567

AdSpace Here!!



Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
Getting Started on Elixir and Ecto Part 5
Tags: elixir, database, programming, orm
Published: 2022-11-04 12:32:17

## Querying Data

Querying a database requires two steps in Ecto. First, we must **construct the query**, and then we must **execute that query against the database** by passing the query to the repository.

The `Ecto.Repo.one` function will only **return a struct if there is one record** in the result from the database and an **error if there exists more than one record**. Let’s start off with fetching just one record from our tasks table.

{% embed https://gist.github.com/itskenzylimon/a48e1ed669c30e4a53f82dbb8950a1eb %}

To fetch all records from the schema, Ecto provides the `all` function:

```
Taskers.Tasks |> Taskers.Repo.all
```

To fetch a record based on its **ID**, you use the `get` function:

```
Taskers.Tasks |> Taskers.Repo.get(1)
#=> %Taskers.Tasks{__meta__: #Ecto.Schema.Metadata<:loaded, "tasks">, id: 1, title: "Hello World", ...}
```

If we want to get a record based on something other than the `id` attribute, we can use `get_by`:

```
Taskers.Tasks |> Taskers.Repo.get_by(title: "Hello World")
#=> %Taskers.Tasks{__meta__: #Ecto.Schema.Metadata<:loaded, "tasks">, id: 1, title: "Hello World", ...}
```

If we want to get multiple records matching a specific attribute, we can use `where`:

```
Taskers.Tasks |> Ecto.Query.where(title: "Hello World") |> Taskers.Repo.all
```

> NOTE: One important thing to note with Ecto query syntaxes is that they require variables to be pinned, using the pin operator (^). The pin operator instructs the query builder to use parameterized SQL queries to protect against SQL injection.

```
title = "Hello World"
Taskers.Tasks |> Ecto.Query.where(title: ^title) |> Taskers.Repo.all
```

Ecto queries can be built up by calling [Ecto.Query](https://hexdocs.pm/ecto/Ecto.Query.html) functions on existing queries.

{% embed https://gist.github.com/itskenzylimon/1ffbc4954f88ec3575cec7cb69d734dd %}
Centralised Content Management System
Tags: startup, webdev, programming, writing
Published: 2022-11-04 12:28:43

We have 3/4 Tech platforms to write blogs such as
- Dev.to
- Medium
- Hashnode
- HackerNoon

Now consider being a technical writer you want to share the same article on all the platforms as each and every platform has some or other kind of audience you want to definitely cater to.

Since we don't have a centralised system so we have to copy-paste and post the articles on each of the platforms adhering to manual work that is time-consuming.

**Replacement**
- We can have a centralised editor just like Notion to write blogs.
- Followed by posting them on each of the platforms on the Editor

All we need is the APIs of all these third-party platforms to post the blogs on their database. We do have API for dev.to, hashnode and medium not sure about hackernoon.

Looking forward to such kind of products, it would be very helpful for tech writers to manage diverse platforms via a centralised system.

**Keep developing
Shrey
[iHateReading](ihatereading.in)**
Xem Thể Thao 789
Published: 2022-11-04 12:25:55

Xem Thể Thao 789 - Trang tin tức vể Thể thao bóng đá trong và ngoài nước.
Cập nhật thông tin mới nhất về các giải đấu quốc tế: Ngoại hạng Anh, Bundesliga, World Cup 2022...https://sites.google.com/view/xemthethao789/trang-ch%E1%BB%A7/
Python command line tool to listen to your favourite book
Published: 2022-11-04 12:21:25


There are already a few apps available on market for audiobooks for android and other platforms. For some time there are no library for audiobooks in python. So I decided to create one. I have created a library for audiobooks. It's very easy to use. You can use it for your project. It's under development. I will add more features in the future. 

Listening to audiobooks is really helpful for person developement, learning. you can listen to audiobooks while doing other work like cooking, cleaning, driving, etc. 

it saves your time and you can learn more. with the help of `AudioBook` you can also create your library of audiobook.



## Features

we are using `pyttsx3` engine to convert text to speech and different file reader libraries to read different file formats.

it's available on PyPI. You can install it using pip.

```bash
pip install audiobook
```

Currently, it supports 6 document formats. You can listen to pdf, Docx, epub, txt, HTML, and Mobi files.
you can use it as a command line tool. It's very easy to use. also you can use it as a library in your project.
few basic features are implemented in the CLI tool. There will be more features in the future.


![Command line tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/laeufwxeh9g42vom3jn1.png)


### Check the AudioBook version

```bash
audiobook --version
```

### To listen your favorite book

```bash
audiobook -p <file_path> -r
```

### Save the audio file

```bash
audiobook -p <file_path> -s
```

we will be implementing a few features soon in a short time, like speed control, pause, resume, voice selection, saving audio file page wise and many more. 

Hit the star button if you like it. Expecting your feedback.

The source code is available on GitHub. you can contribute to it. you can also create issues if you find any bugs.

Here is the [Github](https://github.com/Py-Contributors/audiobook) link.
Full documentation is available on [ReadTheDocs](https://pycontributors.readthedocs.io/projects/Audiobook/en/latest/index.html)


This project is developed by the [Py-Contributors](https://github.com/py-contributors/) team. which is an open-source community.
we are working on many open-source projects. you can also contribute to our project. 

Thanks for reading.
Woocommerce 404 errors
Published: 2022-11-04 12:18:07

Every time I update or install a plugin on my WordPress website it gives a 404 error
But even if I don’t update anything every day or every 2/3 days it is giving an error
I deactivate and then activate the woocommerce plugin, and the website starts working fine
I tried saving the permalinks, which didn’t help, and deleting and recovering htaccess file, which didn’t help as well
What can cause the problem? And how I can solve it?`
C++ 1-Dars
Tags: javascript, beginners, python, cpp
Published: 2022-11-04 12:08:51

Bugun biz C++ dasturlash tili haqida gaplashamiz:
***1-dars*** 

```Cpp
1.#include <iostream>
2.
3.int main() {
4. std::cout << "Hello World!\n";
5.
6.
7.  return 0;
}
```
birinchi qator **#include** ***iostream*** hamma dasturlash tillarida harxil kutubxonalar mavjud bu kutubxonalarni ichida malum bir usha tilga taluqli buyruqlar saqlanadi ***iostream*** bu kutubxonaning nomi kutubxonani chaqirishdan maqsad birinchi qatordan pastdagi codlarimizda shu(***iostream***) kutubxonani ichida saqlanadigan buyruqlardan foydalanamiz biz shu kutubxonadan foydalanganimiz tufayli qatorni boshida elon qilib quyishimiz kerag buladi aks xolda platforma codlarni tanimay qoladi....
What are your tips for developing ecommerce stores?
Tags: discuss, webdev, programming, opensource
Published: 2022-11-04 12:00:00

Ecommerce development can be tricky as there are many different frameworks out there that you can use. Along with those frameworks, you'll need to integrate other services or custom features based on the business this ecommerce store is for.

What are your tips for developing ecommerce stores? These can be tips about choosing frameworks, what services to integrate, something to keep in mind while developing, or any other general tips you can think of.

P.S: If you're still not familiar with Medusa, a Node.js Ecommerce platform, make sure to check out the [GitHub repository](https://github.com/medusajs/medusa)!
How to Compile a Quarkus Project Natively using Docker Builder
Tags: quarkus, java
Published: 2022-11-04 11:45:36

It's a pain to build the same Quarkus project natively on different OSs. For instance, I'm working on both macOS and Windows. In Windows, I have to install a different set of dependencies plus the Visual studio redistributable library, which is a pain to set up as well, as it may cause multiple missing libraries if not configured correctly.

The solution is to build the project using a dockerized GraalVM image.

Here are the steps to follow:

1. Create a new Dockerfile with the following content. Make sure that the GraalVM version that you use matches the Java version in your project.

```
FROM ghcr.io/graalvm/graalvm-ce:latest AS build
RUN gu install native-image
WORKDIR /project
VOLUME ["/project"]
ENTRYPOINT ["native-image"]
```

Build the image. In the folder where you create the Dockerfile, execute.

```
docker build -t graalvm-base . 
```

Use the local image from #2 to build your Quarkus project.

```
mvn clean package -DskipTests -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=graalvm-base
 
OR
 
quarkus build --native --no-tests -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=graalvm-base
```

If you encounter an out-of-memory exception, just add the "quarkus.native.native-image-xmx" parameter when running the build.
Experience Continuity in Hybrid Events Platforms
Tags: auctions, hybridevent, realtimeweb, userinterface
Published: 2022-11-04 11:39:46

You are building a hybrid events platform, such as the Auction Events Platform for Creators I am making. Users will be on and off the website during the event. How do you achieve continuity of the experience for your users?

# Define Meaningful Moments

Choose moments when there is some phase change, such as the start of a session or lecture. In my auction platform, this is when an item (lot) comes up for auction during a live auction. 

Broadcast these meaningful events to users via email, SMS, etc., so that users that are off the website know about it. 

# Define Sub Moments

In many event platforms, such moments are spread in time for an hour or more, during which time meaningful things happen. 

In my auction events platform, we have **timed auctions** that run automatically from start time to end time. In a timed auction, all items come up for auction at the start time. An auction can last for days. So a user might bid and then go off to his/her life. You need to tell the user when a competing bid comes up and is on top. So the user can come back and bid again at a higher price. 

In a conference session, such sub-moments could be the switch to Q&A at the end of a presentation. In a concert platform, a sub-moment is when the band starts to play a new song. The way Apple Music on a Mac shows a notification when a new song start. 

# Detect In-Person Presence

In a hybrid event, you want to turn off notifications for users that present IRL (in real life), as these notifications will distract them from what is happening IRL.

In the auction events platform, users present in person will be given a sign with their user number with which to bid. We will use the opportunity to record their presence on the platform and avoid sending notifications to them.

# Distinguish Pre-Event and Post-Event Phases

In many event platforms and webinars, there will be interaction before and after the event. Such as chatting with organizers or speakers. In our auction events platform, users can chat with creators before, during, and after the live auction. 

In the pre-event and post-event phases, you can expect users to be off the website for extended periods. And messages may come at any time. So we need to forward any message to users with a high probability of not being online in the platform via email or SMS. 

During a live auction, such forwarding is not needed and is distracting from the attention on the bidding. 

# Conculsion

By now, most of us have participated in some virtual or hybrid conference and received a barrage of email messages around it. The snowball effect is jarring and counter-productive.

Micro-designing notifications and messaging from the standpoint of experience continuity promises a much more pleasant user experience and will lead to higher engagement.
Proxycurl: Learn how alternative data can be obtained with their products
Published: 2022-11-04 11:21:45

Hi there developers.
I’ve recently discovered and found useful a product of Proxycurl from which you can get alternative data. It might be useful to you as well.


## Alternative Data — What does it mean?

It is possible to predict the future performance of a company or asset using non-traditional data.

Traditionally, companies (cash flow, financial statements, press releases) and macroeconomics (GDP, inflation rate) have provided traditional data sources.

Alternative data is becoming increasingly popular as it provides timely and unique insights that were previously difficult to come by. As hedge funds and investment companies utilize it to generate investment alpha, it has become a game changer in the investment and financial world.

In the data-driven financial market, there is already an abundance of alternative data available, most of which comes from devices. What is the most effective way to harvest and package them into meaningful data that can provide actionable insights?

## Where does the alternative data actually use?
Investment firms and hedge funds are very common users of alternative data.

Gut feelings are less relevant to professional investors today. Hedging funds even predict REIT values and the economy using location data pulled from mobile devices, according to Rob Matheson on MIT News.

Investing analysts, quant traders, and fund managers use alternative data to guide their algorithms, generating consistently better returns than the broad market.

## Where can we obtain these Alternative Data?

This is where **Proxycurl** products come in!


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


## Proxycurl- People & Company alternative data
Proxycurl’s data handling capabilities are impressive, and unstructured data is no exception. The company specializes in enriching the data of people and companies — offering insights into people profiles, company profiles, work, and personal email addresses, jobs, and more.

APIs offered by Proxycurl can drive and power data-driven applications for hedge funds and investment firms. In addition to being extremely user-friendly, these APIs are also very cost-effective. Users are not tied to bulky, heavy subscriptions or contracts with their services since they are credit-based for as little as $0.01 per profile enrichment.

To learn more, please check out the official blog about [Alternative Data](https://nubela.co/blog/the-ultimate-guide-to-alternative-data-what-is-it-really/).