teleren/devto huggingface dataset:
Need help ! Issue with Auto Scaling for Application Load Balancer with 2 different instances for target groups
Tags: help, aws, ec2
Published: 2022-11-03 08:03:06



What is your question/issue (provide as much detail as possible)?

Hi All, I currently have an Application Load Balancer that has two rules :

If the request is coming from a specific path Example: /test/, use a target group that points to an instance ( Let's say instance b ). For any other request use this target group ( another instance a ) In the autoscaling settings I have added these two target groups so that if autoscaling occurs and terminates the instances, they will be re-registered. This works correctly, however, I noticed that when termination happens the target group registers instance a where only instance b needs to be registered.

I do have 2 ASGs, one for the instance a and one for another instance b. However, I mostly use the main site Load balancer as the rules are located there ( if the path of /test/* it uses the instance b ( target group ). The reason this was set like this is that the instance b is accessed by the main site domain. ( For example www.example.com/test ) The desired count is set to 1.
Since I'm using the ALB of the main site only when the ASG terminates the instance, a new target is registered for the main site in the target group of the instance b. My issue is that this target group should only register one instance and not 2 ( instance a ( main site ) and instance b )

Would really appreciate some guidance, haven't received much from Re:post :(

What technologies are you using?

AWS, AutoScaling, EC2, ElasticBeanstalk

What were you expecting to happen?

When Autoscaling terminates the instance, the target group that has instance b registers, initiates another instance and places the same instance b and not another instance a. 

What is actually happening?

When Autoscaling terminates the instance, the target group is adding another instance a and therefore the site breaks as the incorrect server is being shown.

What have you already tried/thought about?

Maybe having one autoscaling group for two different instances, however didn't manage. But there is still the issue of cannot control which instance is added to the target group when its terminated.
Install solr 8.9.0 into Ubuntu 20.04 / Linux Mint 20.3
Tags: ubuntu, solr, linux
Published: 2022-11-03 08:00:21

#*Install JAVA*
```
sudo apt-get install openjdk-11-jdk
```

#*Varify the installation*
```
java -version
```
If the installation is successful then you'll get a response `openjdk version "11.0.16"...` like this. 

#*Download solr into your system*
```
wget https://archive.apache.org/dist/lucene/solr/8.9.0/solr-8.9.0.tgz
```

#*Extract the tarball file (.tgz)*
```
tar xzf solr-8.9.0.tgz solr-8.9.0/bin/install_solr_service.sh --strip-components=2
```

#*Install solr 8.9.0*
```
sudo bash ./install_solr_service.sh solr-8.9.0.tgz
```

#*stop, start, restart and check status*
```
sudo service solr stop
sudo service solr start
sudo service solr restart
sudo service solr status
```

#*Use start command to initiate solr. Then go to the following URL*
```
http://localhost:8983/
```

If you see a page like this then solr is installed into your linux system successfully.
![solr 8.9.0 home screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/knwi5oh045ptkbu83uw8.png)
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2022-11-03 08:00:05

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

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

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259118e11e.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:___ What's a compiler developer's favorite spice?

___A:___ Parsley.
 -->
AVIF Images in iOS 16.0’s Safari
Tags: webdev
Published: 2022-11-03 07:54:30

I noticed that some of my ([album cover][gallery]) photos don’t display in Safari on the newly released iOS 16. Xe Iaso had already [posted about problems][Xe], as well. To me, it looks like the exact same issue: AVIF images encoded with [`go-avif`][go-avif] appear broken.  
As there is a [WebKit bug report][wk-bug] now, I’m wondering whether the encoding is actually the problem, as the images have also been showing fine in Firefox and Chrome.

[gallery]: https://www.cadonau.net/photos/
[Xe]: https://xeiaso.net/blog/avif-help-requested
[go-avif]: https://github.com/Kagami/go-avif
[wk-bug]: https://bugs.webkit.org/show_bug.cgi?id=245097

## Update

The issue is [fixed][wk-bug-244103] in iOS [16.1’s Safari][wk-blog]:

> Fixed some AVIF images not rendering because of their container format.

(Changing the “major brand” from `mif1` to `avif` in the [file type box][wiki-ftyp] of the images would have also worked.)

[wk-bug-244103]: https://bugs.webkit.org/show_bug.cgi?id=244103
[wk-blog]: https://webkit.org/blog/13399/webkit-features-in-safari-16-1/
[wiki-ftyp]: https://en.wikipedia.org/wiki/ISO_base_media_file_format#File_type_box
tsParticles 2.5.1 Released
Tags: webdev, javascript, typescrit, showdev
Published: 2022-11-03 07:43:31

## tsParticles 2.5.1 Changelog

## Bug Fixes

- Fixed issue with ES modules, closes #4799 

--

## Social links

- [Discord](https://discord.gg/hACwv45Hme)
- [Slack](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI)
- [Telegram](https://t.me/tsparticles)
- [Reddit](https://www.reddit.com/r/tsParticles/)

---

{% github matteobruni/tsparticles %}
Zonka Feedback only uses the best remote productivity tools.
Tags: zonka, tools, working
Published: 2022-11-03 07:28:23



At [Zonka Feedback](https://www.zonkafeedback.com/blog/best-work-from-home-remote-productivity-tools), we believe that the best remote productivity tools are essential for any business. That's why we only use the best ones! We've got a great selection of tools that we use to keep our team productive, and we're always trying new ones to see if they can improve our workflow.



We know that not every company is the same, so we've tailored our toolset to fit our specific needs. However, we believe that these tools can benefit any business, no matter what industry you're in. If you're looking for ways to improve your remote productivity, here are some of the best tools that we use at Zonka Feedback:

**Slack:** This communication tool is essential for any remote team. It's great for real-time communication and collaboration, and it has a ton of features that make it perfect for remote work.

**Zoom:** This video conferencing tool is perfect for meetings, webinars, and training sessions. It's easy to use and has a ton of features that make it perfect for remote work.

**Google Drive:** This cloud storage service is essential for any business. It's great for storing files and collaborating on documents, and it's perfect for remote work.


These are just a few of the tools that we use at Zonka Feedback to stay productive while working remotely. If you're looking for ways to improve your own productivity, we recommend trying out some of these tools. They might just make a world of difference for your business!

How important are remote productivity tools? Zonka Feedback only uses the best ones!
Results of #31DaysofNeurodivergence
Tags: twitter, mentalhealth, analytics
Published: 2022-11-03 07:00:00

# Wrapping Up 31DaysofNeuroDivergence

A back in September I shared an [idea to encourage folks](https://dev.to/kjaymiller/31daysofneurodivergence-4b3p) considering a neurodiversity diagnosing. This included a [twitter campaign](https://dev.to/kjaymiller/31daysofneurodivergence-4b3p) for the month of October under the hashtag #31DaysofNeurodivergence.

I was able to send a message on 31 messages using an automated tweet schedule I built using [Azure Storage Queues and Python](https://dev.to/azure/using-azure-storage-queues-and-python-to-automate-sending-tweets-5306). The project also inspired a [Python package](https://github.com/kjaymiller/Az-Queue-Tweeter) that would make campaigns like this easier in the future!

## Results
The #31DaysofNeurodivergence tweets were seen a total of  10,186 times. They received 189 likes and were retweeted 20 times.

![Impressions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aqx3x9h9zaul60tg50q5.png)

I don't have much of a perspective on how good/bad this is. To a marketer, this may not be anything special. And there were a lot of things that I could have spent more time focusing on (like when I tweeted, a better design or color scheme). That said I'm perfectly fine with this result and here is why.

### People saw it.

Let's rephrase what this data means. There were 10,186 times that someone had the opportunity to hear someone with a Neurodivergency share their story. 189 times someone resonated with the messages of a stranger and 20 times someone thought "This information is valuable and should be shared with people in my community".


![Likes and Retweets](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0cnc05mkizgkclhf7orl.png)



My goal for this was to share a message of encouragement and I certainly did that.
One stop graphics solutions for WordPress.
Tags: wordpress, webdev
Published: 2022-11-03 06:17:56

Graphicsly – The ultimate graphics plugin for WordPress website builder - that takes your website to the next level.

Try our plugin and let us know your feedback.
https://wordpress.org/plugins/graphicsly/

Builder Support -
*** Gutenberg
*** Elementor
*** Beaver Builder
*** WPBakery

13000+ Graphics resources including free and pro versions -
*** Illustrations - 3000+ (Free 300+)
*** 3D Assets - 1000+ ( Free 150+ )
*** Icons - 9000+ ( Free 3000+ )
Thank You so much,
Kubernetes 101 - Networking overview
Tags: kubernetes, beginners
Published: 2022-11-03 05:57:09

A big part of Kubernetes is the networking capabilities, we get the option to internally route traffic to neighbouring pods, split workloads on multiple nodes and even open up networking to the outside world.

Let's take a closer look at some of the elements conform networking.

## How does the network get setup

The first thing to note is that Kubernetes networking happens on a DNS level, every pod in a cluster receives it's own cluster wide unique IP address.
This means we don't have to manualy set up mapping between the pods and Kubernetes can resolve connecitons easily for us.

There are a lot of benefits of doing it this way, mainly because the pods get randomly refreshed, and luckily for us Kubernetes can keep perfect track of this.

## Services

A big part of networking in Kubernetes is services, which are a abstract way to expose an application running on a set of pods. Kubernetes under the hood will assign unique IP addresses to each of them, but make them available with one single DNS name. It can also use this behaviour to load balance between the different pods.

What this comes down to is that we as the end user of the application can call `my-service` as the endpoint on whichever protocol we want.
And Kubernetes will know to call the correct pod, which could potentially have a different internal port number.

## Ingress

So far we looked at internal traffic within the cluster to other pods, this is pretty useful but it still means our application can't be accessed from the outside world.

To fix this we can use Ingress, which is an API object that manages external access to a service inside your cluster. (Typically via HTTP(S)).

When defining ingress resources we can define a set of rules about what the outside world will see (an endpoint) and what service this routes to inside Kubernetes internals.

## Nuances

When you are diving into networking in Kubernetes it's a big pool of many, many options you can use.

I would personally advice you to stick to the bare minium as described in this article and expand from here as to which use-case you will have to look into.

As always the [Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/) on this provides a massive amount of background information. (Which I tried to abstract to beginners).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Agile testing
Tags: storybytes, qualityassurance, agile, stage
Published: 2022-11-03 05:35:48


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

Quality Assurance is the stage where everything is getting examined. Without a proper Testing Strategy, the end goal might become exceptionally challenging. In Web and App Studio, Testing is integrated directly into the development process in Agile to ensure that issues are found as early as possible. As a result, our testers can spot defects early in the development process to prevent any belated discovery. Gregory and Crispin made the concept of Agile testing quadrants, which provide a taxonomy for tests. The two left-hand quadrants help teams know which code to write. The two right-hand quadrants help teams learn more about their code, providing feedback to the left-hand quadrants. Everything has to be on the pulse to keep the quality standard climbing: the business, product, technology, or the team.
Why is cloud computing so important?
Tags: security, computing, cloud
Published: 2022-11-03 05:32:01

[Cloud Computing](https://softwarelab.org/what-is-cloud-computing/) is important because it offers many advantages over traditional on-premises computing. These advantages include improved scalability, flexibility, and cost-effectiveness. Cloud Computing also enables organizations to be more agile and responsive to changes in their business environment. In addition, Cloud Computing provides enhanced security and compliance capabilities. All of these factors make Cloud Computing an attractive option for businesses of all sizes.

Despite the many benefits of Cloud Computing, there are still some challenges that need to be addressed. One of the biggest challenges is ensuring that data is secure and protected from unauthorized access. Another challenge is managing the increasing complexity of cloud environments. Additionally, some organizations may have concerns about losing control over their data if it is stored in a public cloud.

Despite these challenges, Cloud Computing continues to grow in popularity and is expected to play a major role in the future of IT. Organizations that are not already using cloud services should consider doing so, as they can provide significant benefits. those who are already using cloud services should continue to do so, as there are many new capabilities and services being released on a regular basis. In order to stay ahead of the curve, it is important to keep up with the latest trends in Cloud Computing. One way to do this is to attend conferences and events that focus on Cloud Computing. Another way is to read blogs and articles that discuss the latest news and developments in the world of Cloud Computing. By staying informed about the latest trends, organizations can make sure that they are using the best possible cloud services for their needs.

What are your thoughts on Cloud Computing? Have you already adopted cloud services, or are you still considering them? Let us know in the comments below. Thanks for reading!

Please feel free to share this blog post on social media or your own website. If you do, please include a link back to this page. Thank you!
How To Get Last 15 Days Records In MySQL Query
Published: 2022-11-03 05:30:00

In this article, we will see how to get the last 15 days records in MySQL query. In PHP, you can use INTERVAL to get the last 15 days record from the database table. For MySQL queries, we use the INTERVAL operator. It is mainly used to calculate the date and time values.

So, let's see SQL query to get the last 15 days records and how to get the last 15 days data in PHP from MySQL Database.

> Get Last 15 Days Record in MySQL Example:

In this example, we will see SQL query to get data for the current month in MySQL.

id | order_date | amount | Orders
---+------------+--------+-------
 1 | 2022-02-01 | 150    | 2
 2 | 2022-02-02 | 200	 | 4
 3 | 2022-03-03 | 100	 | 1
 4 | 2022-03-04 | 300	 | 5
 5 | 2022-04-05 | 200 	 | 3
 7 | 2022-04-06 | 190	 | 7

In your table, the record needs to be like date and month.

```
select * from users
       where order_date > now() - INTERVAL 15 day;
```

In the above query, we use the now() function to get the current date, and the INTERVAL() function to get the last 15 days records.


> How to get new users in the last 15 days in MySQL

Using the below MySQL query you can get the new users in the last 15 days.

```
select * from users where created_at > now() - INTERVAL 15 day;
```
Sattva Resort: An ideal destination for nature lovers
Published: 2022-11-03 05:20:48



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8qaaksbhl3y7wcw13udd.jpg)
The enjoyment of travel is nothing but an achievement achieved after hard work and monotonous lifestyles. However, the benefit of traveling is not just that it is therapeutic, but it also allows you to gain clarity of mind. Are you planning to escape the mundane city life and explore new places that will bring you closer to nature? Want to flee the hustle and bustle for an excellent nature weekend getaway with your family or friends?

The Sattva resort kakkadampoyil is a haven for nature lovers with luxury amenities.

Love for nature has always been a way to escape the frantic pace of urban life. The busy schedules and overpolluted environment have drawn nature lovers to places where they can connect with nature. 
Kerala, god's own country, is abundant with natural beauty. Greenery, serene backwaters, cascades, scenic beauty, etc., add to the beauty of Kerala. 

Kakkadampoyil's entire view is so cinematic and beautifully composed that it can be hard to believe such a place exists. A lush forest surrounds it, and pristine waterfalls and deep valleys add to its charm. Kakkadampoyil has recently become a popular tourist destination, especially for nature lovers. Thus, it is often called "Malabar's Ooty." Tourists come here to escape the hustle and bustle of cities because of the cold climate.
A perfect weekend getaway for those who want to see the scenic beauty and other places such as Pazhassi Raja Cave, Kurishumala, Adyanpara Waterfall, Conolly's Plot, Kozhippara Waterfall, and Teak Museum.

Sattva Kakkadampoyil's Best Luxury Resorts
Sattva, the awakening garden most popular resorts in Kakkadampoyil. Sattva is a good choice if you plan to stay in Kakkadampoyil.

If you are traveling to experience nature's calmness, you will be soothed by the exotic wind and the sounds of chirping birds. Although staying in a dense forest may seem intimidating, the mesmerizing feeling of being in nature's womb is beyond compare.

At 2300 feet above sea level, Sattva, India's first Zen-inspired resort, spans 10 acres of verdant terrain. The resort offers treks to overwhelmingly beautiful locations that few people know about and even fewer have visited.
Sattva's residential Osho Meditation and Ayurveda Resort offers multicuisine dining, Panchakarma treatments and daily meditations. 

Sattva [kakkadampoyil resorts](http://sattvameditationresort.com/) is arguably the best view in the entire region, combining modern luxury with real nature. Sattva Resort in Kakkadampoyil offers you a trip in the lap of nature topped off with comfort and luxury.

At Sattva, guests can take in 360-degree views of nature, breathe fresh air, and discover plenty off-the-beaten-track. From the Deluxe and Premier rooms, you can enjoy breathtaking views from a large balcony enlivening and energizing your thoughts. Observing the vibrant nature around you will slowly transport you into Sattva...leaving behind the routine world.
Flutter
Tags: storybytes, mobile, development, flutter
Published: 2022-11-03 05:20:42


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

Flutter has plenty of benefits. We enjoy presenting to our customers Flutter as a Hybrid Mobile App Option. With Flutter, the opportunities are almost endless. Flutter accelerates the mobile app development process, lowers app development costs, and assists your team in creating a beautiful app UI with seamless animations. Therefore, it provides an excellent way to examine an MVP application. As verified not just by us but also by several of the market's significant players, establishing applications utilizing Flutter can possibly profit your service. Flutter, from our point of view, is a very viable alternative.
How To Get Started with a Navigation bar in Your React Project in 2 mins
Tags: tutorial, react, superflows, webdev
Published: 2022-11-03 05:09:40

## What is a navigation bar?

Navigation bar is arguably the most important component of your website or web app. It anchors the users to your website. It allows them to effortlessly traverse through the website. It also contextualises the application to the user, mentions the subscription status, next action to be taken, etc.

This article shows you how to add a navigation bar to your React project in 2 minutes.

## Prerequisites

I am assuming that the reader could be a React beginner. But familiarity with basic React concepts is necessary. If you are an absolute novice at React, [this tutorial](https://reactjs.org/tutorial/tutorial.html), could help you get started with React. Post which, come back to this article.

## Step 1 - Install the Superflows navigation bar library

[Superflows](https://superflows.dev) is a React library that provides reusable and customisable components. In this article, we use the navigation bar provided by Superflows.

Install it as follows:

```
npm install --save react-sf-themes
npm install --save react-sf-building-blocks

```

## Step 2 - Import and Usage

After installation is successful, import and use the navigation bar component, called SfNav, in your project as shown below.

```
import { SfNav } from 'react-sf-building-blocks';
```

```
return (
    <div>
      <SfNav stylesContainerDesktop={{ fontFamily: 'Georgia' }} />
      {/* Your Code */}
    </div>
  );
```

It will render as follows:

![Default navbar desktop](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2ivux68ytqyzk7ztdq5.png)


![Default navbar mobile](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvf414orx8yf358y33vu.png)

## Video Tutorial

{% youtube J2jJO9_EtUk %}

## Reference Links

- [Code](https://stackblitz.com/edit/react-ts-52rh86?file=App.tsx)
- [Documentation](https://superflows.dev)

## Further Reading  

You can learn further navigation bar functionality by reading subsequent articles of this series.

## Conclusion

This article gets you started with a navigation bar in your React project. It shows you how to integrate the Superflows library and setup the default navigation bar.