teleren/devto huggingface dataset:
shirates-core 2.3.1 released
Published: 2023-02-28 17:05:15

## Shirates (shirates-core)
**Shirates** is an **Integration Testing Framework** that makes it easy and fun to write test code for mobile apps.
shirates-core is core library.

[shirates-core 2.3.1](https://github.com/ldi-github/shirates-core/releases)

### Quality Improvement
- Stability improvement on launching app
- Resetting SpringBoard automatically (iOS)
- Rebooging Android Emulator automatically (Android)

### New Properties
- enableWarnOnRetryError
- enableGetSourceLog

### New Config
- waitSecondsForLaunchAppComplete

### New Feature
- Test Report Index(Irregular section, WARN column)

### Obsolete
- swipeOffsetY
GraphQL Mesh Readiness & Health Check
Tags: graphql, mesh, container, kubernetes
Published: 2023-02-28 17:02:00

---
title: GraphQL Mesh Readiness & Health Check
published: true
description: 
tags: graphql, mesh, container, kubernetes
published_at: 2023-02-28 18:02 +0100
---

In container orchestration platforms like Kubernetes, health checks and readiness checks are probes that help to ensure the reliability and availability of containerized applications.

When [deploying GraphQL Mesh with `mesh start` on Node.js](https://the-guild.dev/graphql/mesh/docs/getting-started/deploy-mesh-gateway#deploy-mesh-with-mesh-start-on-nodejs), the built-in Yoga Server provides the endpoints `/healthcheck` and `/readiness` out of the box.


## Health Check

Health check probes periodically check the container's internal state to ensure it's healthy.

Endpoint `/healthcheck` returns `HTTP 200` when successful:

```
curl "http://localhost:4000/healthcheck" -v

> GET /healthcheck HTTP/1.1
> Host: localhost:4000
> User-Agent: curl/7.86.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 28 Feb 2023 10:56:42 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
< Content-Length: 0
<
```


## Readiness Check

Readiness probes check whether the container is ready to handle traffic:

Endpoint `/readiness` returns `HTTP 204` when ready or `HTTP 503` when not.

```
curl "http://localhost:4000/readiness" -v

> GET /readiness HTTP/1.1
> Host: localhost:4000
> User-Agent: curl/7.86.0
> Accept: */*
>
< HTTP/1.1 204 No Content
< Date: Tue, 28 Feb 2023 10:56:44 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
```


## Kubernetes Example

The Kubernetes `livenessProbe` and `readinessProbe` configuration would look like this:

```yaml
livenessProbe:
  httpGet:
    path: /healthcheck
    port: http
  initialDelaySeconds: 5
  periodSeconds: 10
readinessProbe:
  httpGet:
    path: /readiness
    port: http
  initialDelaySeconds: 5
  periodSeconds: 5
```
Linode + DEV Hackathon
Tags: linodehackathon
Published: 2023-02-28 17:01:25

## What I built


### Category Submission:


### App Link


### Screenshots


### Description
 

### Link to Source Code


### Permissive License


## Background
(What made you decide to build this particular app? What inspired you?)


### How I built it
(How did you utilize Linode? Did you learn something new along the way? Pick up a new skill?)


### Additional Resources/Info
Sync Obsidian with iCloud
Tags: obsidian, icloud, backup, productivity
Published: 2023-03-02 02:53:24

---
title: Sync Obsidian with iCloud
published: true
date: 2023-02-28 17:00:00 UTC
tags: #obsidian #icloud #backup #productivity
canonical_url: https://conormeagher.com/posts/2023/01/sync-obsidian-with-icloud/
---

[https://twitter.com/bencodezen/status/1458484105331585028](https://twitter.com/bencodezen/status/1458484105331585028)

Being a Obsidian Power-User, I always wanted to update my notes from any of my devices from the beginning but didn't have a great use case to host my notes with the paid version of [Obsidian Sync](https://obsidian.md/sync). iCloud Drive would be the best option and it's free! These steps are not the only way to sync with iCloud but I found this order easiest way to setup.

### Requirements [#](#requirements "Anchor link for easy sharing.")

- [Obsidian for macOS](https://obsidian.md/download)
- [Obsidian for iOS or iPadOS](https://apps.apple.com/us/app/obsidian-connected-notes/id1557175442)
- [Apple ID account](https://appleid.apple.com/)

### Setup [#](#setup "Anchor link for easy sharing.")

1. Setup and enable iCloud Drive on all devices you want to sync.<sup><a href="#fn1" id="fnref1">[1]</a></sup>

2. Open the Obsidian iOS or iPadOS app and select "Create new vault".

3. Type a vault name and check "Store in iCloud" then tap "Create".

![iOS Obsidian - Store in iCloud](https://res.cloudinary.com/conrmahr/image/upload/q_auto,f_auto,w_400/conormeagher.com/ios-store-in-icloud.webp)
_iOS Obsidian - Store in iCloud_

1. Move to your macOS device and open the Obsidian app.

2. Open the newly create vault with File > Open Vault...

3. Browse to iCloud Drive > Obsidian > `vault name` and click "Open".

4. Create a new note for testing with File > New Note

![macOS Obisidan - Hello World](https://res.cloudinary.com/conrmahr/image/upload/q_auto,f_auto,w_400/conormeagher.com/macos-hello-world.webp)
_macOS Obisidan - Hello World_

1. Return to your Obsidian app on iOS and see if your file synced.

![iOS Obsidian - Hello World](https://res.cloudinary.com/conrmahr/image/upload/q_auto,f_auto,w_400/conormeagher.com/ios-hello-world.webp)
_iOS Obsidian - Hello World_

**Success!**

\*_Existing Obsidian Users: Copy all your previous vault files and directory structure to this iCloud folder_

\*Note: You can also download [iCloud Drive for Windows](https://support.apple.com/en-us/HT204283) and keep your Obsidian vault insync on a Windows device.

I've got one vault synced across, macOS, iOS, iPadOS, and Windows 11 devices.

<section>
<ol>
<li id="fn1">
<p><a href="https://support.apple.com/en-us/HT204025" target="_blank" rel="noreferrer">"Set up iCloud Drive"</a>. Retrieved November 3, 2022. <a href="#fnref1">↩︎</a></p>
</li>
</ol>
</section>
Multi-level Inheritance in Solidity
Tags: solidity, ethereum, web3, blockchain
Published: 2023-02-28 16:58:53

>Multi-level inheritance involves multiple levels of parent-child relationships which allows for more complex and modular code structures

Multi-level inheritance is an important feature of the Solidity programming language. It allows developers to create complex, hierarchical structures for their smart contracts. With multi-level inheritance, a contract can be inherited from other contracts in multiple layers and levels. This allows for greater flexibility when it comes to creating custom logic and functions within a given contract structure.

The ability to use multi-level inheritance also makes Solidity more secure than some other languages since there are fewer opportunities for malicious code injection or manipulation of data within the system due to its layered approach. Additionally, this type of structure helps organize code into easily understandable sections which can be quickly understood by both humans and machines alike when debugging or making changes later on down the line if need be, done so in the future.

It is quite similar to single inheritance, with the exception that there are different levels of the relationship between the parent and the child in the case of multiple inheritances. The child contract that is generated from a parent contract likewise serves as a parent for the contract that is derived from the parent contract.

 Multi-level inheritance is demonstrated in the following example, in which contract A is inherited by contract B, and contract B is inherited by contract C.
```
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// Defining parent contract A
contract A {

     // Declaring state variables
     string internal x;
     string a = "Oneneuron" ;
     string b = "Kids Neuron";

     // Defining external function
     // to return concatenated string
     function getA() external{
           x = string(abi.encodePacked(a, b));
     }
}

// Defining child contract B
// inheriting parent contract A
contract B is A {

     // Declaring state variables
     // of child contract B
     string public y;
     string c = "Tech Neuron";

     // Defining external function to
     // return concatenated string
     function getB() external payable returns(
     string memory){
           y = string(abi.encodePacked(x, c));
     }
}

// Defining child contract C
// inheriting parent contract A
contract C is B {
     
     // Defining external function
     // returning concatenated string
     // generated in child contract B
     function getC() external view returns(
     string memory){
           return y;
     }
}

// Defining calling contract
contract caller {

     // Creating object of child C
     C cc = new C();

     // Defining public function to
     // return final concatenated string
     function testInheritance(
     ) public returns (
     string memory) {
           cc.getA();
           cc.getB();
           return cc.getC();
     }
}
```
For more content, follow me at - https://linktr.ee/shlokkumar2303
Test functionality
Published: 2023-02-28 16:50:26

I want to test what can I do

## Link
This is the link of my gitHub [gitHub](https://github.com/botino-k)

## List 
**Number:**
1. This is the first 
2. This is the second 
3. This is the 3

**What's going on?**
- This is the first 
- This is the second 
- This is the 3

## Quote 
> I will be better then now 

What the next?

## Code block
```javascript
const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <RouterProvider router={router} />
);
```

## Code 
` const error: any = useRouteError();`


## Embed

{% codesandbox https://codesandbox.io/embed/useeffect-6qq0cr?fontsize=14&hidenavigation=1&theme=dark  %}
Why you should learn TypeScript in 2023?
Tags: reactnative, react, typescript, beginners
Published: 2023-02-28 16:42:48

TypeScript is a popular and powerful programming language that has rapidly gained popularity among developers over the past few years. It is a superset of JavaScript, meaning that any valid JavaScript code is also valid TypeScript code. However, TypeScript provides additional features, such as static typing, interfaces, and classes, that make it a more powerful and scalable language than JavaScript. Here are five reasons why you should learn TypeScript:

## Type Safety: 
One of the primary benefits of TypeScript is its strong typing system. By allowing developers to define the types of variables and function arguments, TypeScript makes it easier to catch errors before they become major issues in your codebase. This can lead to more stable and reliable applications, as well as faster debugging and troubleshooting. TypeScript's type system also helps developers to better understand and document their code, making it easier for others to collaborate and maintain the codebase.

## Better Tooling: 
TypeScript is designed to work well with modern development tools like Visual Studio Code, which provide advanced features like IntelliSense, code completion, and refactoring. These features can help you write code more efficiently and with fewer errors. Additionally, TypeScript integrates well with popular front-end frameworks like React and Angular, making it easier to build robust and scalable applications.

## Popularity: 
TypeScript has become increasingly popular among developers, and it is now used by many large tech companies such as Microsoft, Google, and Airbnb. By learning TypeScript, you will be better positioned to work on exciting and high-paying projects, as well as collaborate with other developers who are already familiar with the language.

## Improved Code Quality: 
The strong typing system in TypeScript can also help to improve code quality. By catching errors early in the development process, you can avoid costly bugs and issues that might arise later on. Additionally, TypeScript's modular design and support for object-oriented programming can make it easier to write maintainable and scalable code.

## Learning Opportunity: 
Finally, learning TypeScript can be a great opportunity for personal and professional growth. By learning a new language, you will be challenging yourself to think in new ways and develop new skills. This can help you to become a more well-rounded and versatile developer, as well as prepare you for future opportunities and challenges.



##Conclusion

TypeScript is a powerful and popular programming language that offers many benefits to developers. Its strong typing system, better tooling, popularity, improved code quality, and learning opportunities make it a great choice for anyone looking to improve their coding skills and work on exciting projects. If you are a JavaScript developer looking to expand your skill set, or if you are simply interested in exploring new languages, TypeScript is definitely worth considering.
The Advantages of Using AWS for Big Data Analytics
Tags: beginners, aws, analytics, cloud
Published: 2023-02-28 16:31:44

The cloud has transformed the way businesses store and manage their data, and nowhere is this more evident than in big data analytics. The ability to analyze vast amounts of data in real-time has become critical for businesses looking to make informed decisions and stay ahead of the competition. Amazon Web Services (AWS) has emerged as a leading cloud provider for big data analytics, offering a range of powerful tools and services designed to meet the needs of businesses of all sizes.

In this blog post, we'll explore the advantages of using AWS for big data analytics, including its scalability, affordability, security, and ease of use.

Scalability
One of the biggest advantages of using AWS for big data analytics is its scalability. With AWS, businesses can easily scale their data analytics operations up or down as needed, depending on their requirements. This is particularly important for businesses that deal with large volumes of data, as traditional on-premises solutions often struggle to keep up with demand.

AWS offers a range of scalable services for big data analytics, including Amazon EMR (Elastic MapReduce), which allows businesses to run big data frameworks such as Apache Hadoop and Apache Spark. With Amazon EMR, businesses can quickly and easily launch, configure, and scale clusters of EC2 instances to process large volumes of data.

Another scalable service offered by AWS is Amazon Redshift, a fully-managed data warehouse that can handle petabyte-scale data sets. With Amazon Redshift, businesses can easily scale their data warehouse up or down as needed, depending on their requirements.

Affordability
Another advantage of using AWS for big data analytics is its affordability. With traditional on-premise solutions, businesses are often required to invest heavily in hardware, software, and infrastructure, which can be a significant drain on resources.

AWS, on the other hand, offers a range of cost-effective services for big data analytics, including pay-as-you-go pricing models and spot instances. With pay-as-you-go pricing, businesses only pay for the resources they use, and can easily scale their operations
Array same length challenge
Tags: interview, javascript, array, beginners
Published: 2023-02-28 16:31:07

I´m going to talk about a challenge i was given a few days ago at an interview.
The interviewer told me that my solution did not make sense to him and at the interview i could not make it work cause i was nervous but the same night i tried the challenge and indeed it worked. 
Here is the challenge in question:
Given three parameters the first one being a function and the other two arrays, you have to return the given function with the two arrays and if you have to make sure the arrays are the same lenght and if the are not make them the same lenght as the shorter one and if they are the same just return it.

Here is my code:

```js
const myFunc = (fn, a0, a1) => {
  let arr0 = [];
  let arr1 = [];
  if(a0.length < a1.length){
   for(let i = 0; i < a0.length; i++){
     arr0 += a0[i];
     arr1 += a1[i]
}
    return fn(arr0, arr1)
}else if(a1.length < a0.length){
   for(let i = 0; i < a1.length; i++){
         arr0 += a0[i];
         arr1 += a1[i] 
}
   return fn(arr0, arr1)
}else{
  for(let i = 0; i < a1.length; i++){
     arr0 += a0;
     arr1 += a1;
}
   return fn(arr0, arr1)
}
}
```


In the example given the "fn" function will return an array that concatenates an both arrays given. So i am assuming that there is no need to do something else but just pass it as a parameter.
But just to make my self sure i actually code the function as follows:

```js
const fn = (a0, a1) => {
  let concatenatedArr = [];
  concatenatedArr += [a0, a1]
  return [concatenatedArr]
}
```

or even something like this

```js
const fn = (a0, a1) => {
  let concatenatedArr = [] 
  concatenatedArr = a.concat(b)
  return concatenatedArr
}
```


I understand maybe my approach is not the most efficient but i would not consider it wrong.

Hope someone found it helpful.

Lautaro
¿Qué es Docker?
Tags: spanish
Published: 2023-02-28 16:14:00

Docker es una plataforma de software que le permite crear, probar e implementar aplicaciones rápidamente. Docker empaqueta software en unidades estandarizadas llamadas contenedores que incluyen todo lo necesario para que el software se ejecute, incluidas bibliotecas, herramientas de sistema, código y tiempo de ejecución. Con Docker, puede implementar y ajustar la escala de aplicaciones rápidamente en cualquier entorno con la certeza de saber que su código se ejecutará.
La ejecución de Docker en AWS les ofrece a desarrolladores y administradores una manera muy confiable y económica de crear, enviar y ejecutar aplicaciones distribuidas en cualquier escala.
Anuncios recientes: Docker colabora con AWS para ayudar a los desarrolladores a acelerar la entrega de aplicaciones modernas a la nube. Esta colaboración ayuda a los desarrolladores a utilizar Docker Compose y Docker Desktop para aprovechar el mismo flujo de trabajo local que utilizan hoy a fin de implementar sin inconvenientes aplicaciones en Amazon ECS y en AWS Fargate. Consulte el blog para obtener más información.

Cómo funciona Docker
Docker le proporciona una manera estándar de ejecutar su código. Docker es un sistema operativo para contenedores. De manera similar a cómo una máquina virtual virtualiza (elimina la necesidad de administrar directamente) el hardware del servidor, los contenedores virtualizan el sistema operativo de un servidor. Docker se instala en cada servidor y proporciona comandos sencillos que puede utilizar para crear, iniciar o detener contenedores.

Los servicios de AWS como AWS Fargate, Amazon ECS, Amazon EKS y AWS Batch hacen que resulte sencillo ejecutar y administrar contenedores de Docker a escala.


Por qué usar Docker
Docker le permite entregar código con mayor rapidez, estandarizar las operaciones de las aplicaciones, transferir el código con facilidad y ahorrar dinero al mejorar el uso de recursos. Con Docker, obtiene un solo objeto que se puede ejecutar de manera fiable en cualquier lugar. La sintaxis sencilla y simple de Docker le aporta un control absoluto. La amplia adopción significa que existe un gran ecosistema de herramientas y aplicaciones listas para su uso que puede utilizar con Docker.
Which plugin is best for this feature in wordpress?
Tags: wordpress, wordpressplugin
Published: 2023-02-28 16:11:47

Hi there wordpress devs. I'm trying to figure out a plug in for displaying categories list menu with related images. 

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

This is what I'm trying to achieve and I want to know how I can do so. It's no an ecommerce site, just a categorized display of products with relevant information.

Please help, this is my first time building a wp site. 

Thank you
CodePen Designs - 42 : Keyboard Hero
Tags: codepen, css, webdev, beginners
Published: 2023-02-28 16:01:22

### We are excited to introduce our new series that will explore the best design ideas from the Codepen community. 

We will be publishing these each day and hope you find them insightful and inspiring as we showcase some of the most talented designers in this space.

---

---

## Video Tutorial

Don't miss the amazing video we've embedded in this post! Click the play button to be inspired

{% youtube  p6t7Iprd-38 %}

---

---
{% codepen https://codepen.io/evilpaper/pen/dyyZjLQ %}


---
## For more information

1. Check my GitHub profile
[https://github.com/amitSharma7741](https://github.com/amitSharma7741)

2. Check out my Fiver profile if you need any freelancing work
[https://www.fiverr.com/amit_sharma77](https://www.fiverr.com/amit_sharma77)

3. Check out my Instagram
[https://www.instagram.com/fromgoodthings/](https://www.instagram.com/fromgoodthings/)

4. Linktree
[https://linktr.ee/jonSnow77](https://linktr.ee/jonSnow77)

5. Check my project

- EVSTART: Electric Vehicle is the Future
[https://evstart.netlify.app/](https://evstart.netlify.app/)
-  News Website in react
 [https://newsmon.netlify.app/](https://newsmon.netlify.app/)
-  Hindi jokes API
 [https://hindi-jokes-api.onrender.com/](https://hindi-jokes-api.onrender.com/)
- Sudoku Game And API
[https://sudoku-game-and-api.netlify.app/](https://sudoku-game-and-api.netlify.app/)

---
---

---

## Video Tutorial

Don't miss the amazing video we've embedded in this post! Click the play button to be inspired

{% youtube  p6t7Iprd-38 %}

---
Goodbye DEV 😢
Published: 2023-02-28 15:59:53

---
title: Goodbye DEV 😢
published: true
description: 
tags: 
---

It's a sad day. I'm unpublishing all my articles on DEV.to 😢 

I love DEV. I got in the Top 7 one week with my article [Svelte is the most beautiful framework I've ever seen](https://www.codingwithjesse.com/blog/svelte-is-the-most-beautiful-framework-ive-ever-seen/), which had 78,000 views(!) from getting on the front page of Hacker News, thanks to Ben Halpern himself. And I even got a free DEV t-shirt I proudly wear.

Recently, starting in January my reach on here has dropped from thousands of views down to a dozen per article, or less. I don't know what happened. Was it a flood of low quality ChatGPT-written content? Or have people just moved elsewhere? I don't know.

And why am I unpublishing? Since joining DEV, I've always cross-posted my articles on both here and my personal website. Unfortunately, despite adding a canonical URL in my articles, if you search on some article titles on DuckDuckGo (mostly) but also Google, DEV still shows up as a search result oftentimes. So, I decided I'd rather just have my blog show up in those results.

In any case, if you want to find me, I'll still be writing over on my blog at [www.codingwithjesse.com](https://www.codingwithjesse.com/). Or you can sign up for [my newsletter](https://www.codingwithjesse.com/newsletter).

So long, and thanks for all the unicorns!