teleren/devto huggingface dataset:
Best of Google Cloud Next 24 - Gemini AI, Vertex AI, GKE, New Axion Chip and others
Tags: gcp, cloud, news
Published: 2024-04-27 11:16:34

---
title: Best of Google Cloud Next 24 - Gemini AI, Vertex AI, GKE, New Axion Chip and others
published: true
description: DevOps News, episode 3
tags: gcp, cloud, news
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-04-27 11:15 +0000
---

Pablo Inigo Sanchez is back with a new episode of our DevOps, Cloud and AI news show:

{% embed https://www.youtube.com/watch?v=3tsOAM2-GTI %}.
Best Stay in Sakleshpur
Tags: sakleshpur
Published: 2024-04-27 11:14:47

The Best Stay in Sakleshpur
Sakleshpur, a serene hill station in the Western Ghats of Karnataka, is a hidden gem for nature enthusiasts and adventure seekers alike. With its lush coffee plantations, mist-covered hills, and scenic landscapes, this charming town offers the perfect escape from the hustle and bustle of urban life. Whether you are seeking relaxation or [outdoor adventures](https://www.streamedgesakleshpur.com/activities.html), finding the best stay in Sakleshpur can elevate your experience. Let's explore some of the top accommodations in Sakleshpur and what they have to offer.

Streamedge Homestay
Streamedge Homestay is one of the best options for an exceptional stay in Sakleshpur. Located amidst the natural beauty of the region, this homestay offers a serene and tranquil environment. You can relax in comfortable rooms that are equipped with modern amenities. The homestay features a pool where you can unwind and enjoy the cool water while taking in the beautiful surroundings.

The warm hospitality and personalized service provided by the hosts make your stay at Streamedge Homestay truly special. Guests can indulge in delicious local cuisine prepared with fresh ingredients. The homestay also arranges guided treks and excursions to help you explore Sakleshpur's attractions.

Coffee Estate Stays
Sakleshpur is known for its sprawling coffee estates, and many accommodations are situated within these lush plantations. Staying at a coffee estate offers a unique experience, allowing you to immerse yourself in the region's rich coffee culture. Enjoy breathtaking views of the plantations and wake up to the aroma of freshly brewed coffee. Many estate stays offer guided tours and tastings to enhance your visit.

Boutique Resorts
For those seeking a touch of luxury and exclusivity, Sakleshpur is home to several boutique resorts. These resorts offer upscale amenities such as fine dining, and elegantly designed rooms. Set amidst beautiful landscapes, these resorts provide a perfect blend of comfort and natural beauty.

Riverside Cottages
Sakleshpur's riverside stays offer a peaceful retreat surrounded by the soothing sound of flowing water. These cottages are often located near the Hemavathi River, providing guests with scenic views and a serene atmosphere. Enjoy a relaxing stay with activities such as fishing or simply lounging by the riverside.

Conclusion
When it comes to finding the best stay in Sakleshpur, there are plenty of options to suit different preferences and budgets. Whether you choose Streamedge Homestay, a coffee estate stay, a boutique resort, or a riverside cottage, you're in for an unforgettable experience surrounded by Sakleshpur's natural beauty. [Plan your stay and enjoy](https://www.streamedgesakleshpur.com/contact.html) the tranquility and charm of this delightful hill station!
Resort in Sakleshpur, Karnataka
Tags: homestay
Published: 2024-04-27 11:12:04

Discovering Streamedge Homestay: A Premier Resort in Sakleshpur, Karnataka
Sakleshpur, a picturesque hill station in Karnataka, is a hidden gem for those seeking a peaceful retreat in the Western Ghats. This charming town is known for its verdant coffee plantations, lush forests, and breathtaking views of the surrounding mountains. Among the many [resorts in Sakleshpur](https://www.streamedgesakleshpur.com/), Streamedge Homestay stands out as a top choice for an exceptional and memorable stay.

Streamedge Homestay: A Tranquil Getaway
Streamedge Homestay is a serene resort nestled in the heart of Sakleshpur's natural beauty. The resort's location near the Hemavathi River offers guests a calming environment where they can relax and recharge. Surrounded by lush greenery, Streamedge provides a perfect escape from the stresses of everyday life.

Comfortable and Cozy Accommodation
The resort offers a range of comfortable and cozy accommodation options. Each room is thoughtfully designed with modern amenities to ensure a pleasant stay. Whether you are traveling solo, as a couple, or with family, Streamedge Homestay has options to suit your needs.

Refreshing Pool Experience
One of the highlights of Streamedge Homestay is its beautiful pool. The pool area is surrounded by greenery, creating a relaxing and inviting space for guests to unwind. Whether you want to take a refreshing swim or simply lounge by the pool, you will find the ambiance soothing and rejuvenating.

Delicious Local Cuisine
At Streamedge Homestay, guests can indulge in delicious meals prepared with fresh, locally sourced ingredients. The resort's culinary offerings showcase the flavors of the region, providing a delightful dining experience. The warm hospitality of the hosts adds a personal touch to your meals.

Explore Sakleshpur's Attractions
While staying at Streamedge Homestay, guests can easily explore the [attractions of Sakleshpur](https://www.streamedgesakleshpur.com/surround.html). From visiting coffee estates to trekking through scenic trails, there is plenty to see and do. The resort can also help arrange excursions and activities to make the most of your visit.

Conclusion
Streamedge Homestay is a premier resort in Sakleshpur, Karnataka, offering a perfect blend of comfort, relaxation, and natural beauty. With its tranquil location, comfortable accommodations, and inviting pool, Streamedge provides an ideal setting for a memorable stay. Whether you're seeking adventure or simply want to unwind, Streamedge Homestay is your gateway to the best of Sakleshpur. Book your stay and experience the magic of this charming hill station!
Homestay for Couples in Sakleshpur
Tags: resort
Published: 2024-04-27 11:09:25

A Romantic Retreat: Streamedge Homestay for Couples in Sakleshpur
Sakleshpur, a serene hill station in the Western Ghats of Karnataka, is a perfect destination for couples seeking a romantic getaway. The town's lush green landscapes, mist-covered mountains, and scenic trails create an idyllic setting for a memorable escape. For couples looking for the ideal [homestay in Sakleshpur, Streamedge Homestay](https://www.streamedgesakleshpur.com/) offers an exceptional experience that combines comfort, tranquility, and natural beauty.

Streamedge Homestay: A Romantic Haven
Streamedge Homestay is a romantic haven nestled in the heart of Sakleshpur's picturesque surroundings. The homestay's location near the Hemavathi River adds to the serene ambiance, making it an ideal choice for couples looking to spend quality time together in a peaceful and intimate environment.

Cozy and Comfortable Accommodations
Streamedge Homestay offers a range of cozy and comfortable accommodations that cater to couples. The rooms are designed with a touch of warmth and elegance, providing the perfect setting for a romantic retreat. Each room comes equipped with modern amenities to ensure a comfortable and enjoyable stay.

Private Poolside Relaxation
Couples can enjoy private moments of relaxation by the homestay's beautiful pool. Surrounded by lush greenery, the pool offers a serene space to unwind and take in the breathtaking views. Whether you want to enjoy a refreshing swim or lounge by the poolside, Streamedge provides a peaceful and romantic experience.

Delightful Dining Experience
Streamedge Homestay offers delicious meals prepared with fresh, locally sourced ingredients. Couples can indulge in a delightful dining experience, savoring the flavors of the region. The homestay's friendly staff ensures that your dining experience is both enjoyable and memorable.

Explore Sakleshpur's Beauty
While staying at Streamedge Homestay, couples can easily explore the natural beauty of Sakleshpur. The homestay can arrange guided treks, coffee estate tours, and excursions to nearby waterfalls and viewpoints. Take a romantic stroll through the scenic trails or visit the famous Manjarabad Fort for panoramic views.

Conclusion
For couples seeking a romantic and intimate escape in Sakleshpur, Streamedge Homestay offers an exceptional experience. With its serene location, [cozy accommodation](https://www.streamedgesakleshpur.com/rooms.html)s, and private poolside relaxation, Streamedge provides the perfect backdrop for creating lasting memories with your loved one. Book your stay at Streamedge Homestay and discover the magic of a romantic retreat in Sakleshpur!
Nature Resort Sakleshpur
Tags: resort, homestay
Published: 2024-04-27 11:06:48

Nature Resort Sakleshpur - Streamedge Homestay
Sakleshpur, nestled in the Western Ghats of Karnataka, is a haven for nature enthusiasts and adventure seekers. With its lush landscapes, misty mountains, and diverse flora and fauna, this charming hill station is the perfect escape for those who want to connect with nature. Streamedge Homestay stands out as a premier [nature resort in Sakleshpur](https://www.streamedgesakleshpur.com/), offering an unforgettable experience surrounded by the beauty of the region.

Streamedge Homestay: A Natural Oasis
Streamedge Homestay is a natural oasis that provides a tranquil retreat amidst Sakleshpur's stunning scenery. Located near the Hemavathi River, the homestay offers a peaceful environment where guests can relax and soak in the natural beauty around them. The soothing sound of the river and the lush greenery create a serene atmosphere that is perfect for unwinding.

Comfortable and Rustic Accommodations
The accommodations at Streamedge Homestay are designed to blend seamlessly with the surrounding environment. The rooms offer a rustic charm while providing modern amenities to ensure a comfortable stay. Guests can enjoy the sights and sounds of nature from the comfort of their rooms.

Explore the Outdoors
Streamedge Homestay offers a variety of outdoor activities for guests to experience the natural wonders of Sakleshpur. Take guided treks through scenic trails, visit nearby waterfalls, or explore the expansive coffee estates. The homestay can arrange excursions to help you discover the best of the region.

Relax by the Pool
After a day of exploring, unwind by the homestay's beautiful pool. Surrounded by greenery, the pool offers a refreshing and relaxing space to cool off and enjoy the peaceful surroundings. It's the perfect spot to recharge and appreciate the tranquility of nature.

Farm-to-Table Dining
At Streamedge Homestay, guests can savor delicious meals made with fresh, locally sourced ingredients. The farm-to-table approach ensures that you experience the authentic flavors of the region. Enjoy a delightful dining experience with views of the natural landscape.

Conclusion
Streamedge Homestay is the ultimate nature resort in Sakleshpur, offering a [perfect blend of relaxation](https://www.streamedgesakleshpur.com/), adventure, and natural beauty. With its tranquil setting, comfortable accommodations, and outdoor activities, Streamedge provides an immersive experience in the heart of nature. Whether you seek a peaceful retreat or an adventurous escape, Streamedge Homestay is your gateway to the best of Sakleshpur's natural wonders. Book your stay and discover the magic of this stunning hill station!
2024-04-27 My dev.to weekly updates
Tags: tooling, go, workplace, git
Published: 2024-04-27 11:00:00

"what are your achievement this week ?" Here is a post.

So here is what I did this week on dev.to

- [git] easier and better interactive rebase with this tool:

{% embed https://dev.to/ccoveille/amazing-git-additional-tool-to-install-git-interactive-rebase-tool-57pg %}

- [git] what to do when you messed with git?

{% embed https://dev.to/ccoveille/you-screwed-your-git-history-dont-panic-1o3k %}

- [psychology] A quick introduction to cognitive biases

{% embed https://dev.to/ccoveille/know-your-cognitive-biases-know-yourself--2iom %}

- [git] why it's important to sign your commits

{% embed https://dev.to/ccoveille/why-and-not-only-how-signing-your-commits-4nja %}

- [Go] tool to understand how libraries are affecting the size of your binary:

{% embed https://dev.to/ccoveille/go-how-fat-are-your-dependencies-use-go-size-analyzer-m67 %}
CLI in ruby using OptionParser or GetoptLong
Tags: ruby, cli
Published: 2024-04-27 09:21:21

Few days ago I've created a script for the project I'm working on. It was an ugly script with hardcoded values, but it did ther job - create tokens on request. But I've decided to improve it a bit, because sometimes I needed to change params and I've added ability to submit params from the command line. Of course, there are a lot of awesome libraries such as [dry-cli](https://dry-rb.org/gems/dry-cli/), [TTY Toolkit](https://ttytoolkit.org) or [cli-kit from Shopify](https://github.com/Shopify/cli-kit), but in most cases you can use standard ruby libraries like OptionParser or GetoptLong. Lets see how you can create a CLI utils with those libraries just in few minutes.

We will create simple app, which will ask for your name for the time of the day. If there's no input - script will show you a help screen with list of required and optional arguments.

## GetoptLong

We will start with [GetoptLong](https://github.com/ruby/getoptlong) library.

```ruby
#!/usr/bin/env ruby

require "getoptlong"

opts = GetoptLong.new(
  [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
  [ '--name', '-n', GetoptLong::REQUIRED_ARGUMENT ],
  [ '--time', GetoptLong::OPTIONAL_ARGUMENT ]
)

options = {}

help_message = <<-EOF
Usage: greeting.rb [options]

-h, --help:
   show help

--name yourname, -n yourname:
   your name

--time time_of_the_day:
   time of the day
      EOF

opts.each do |opt, arg|
  case opt

  when "--help"
    puts help_message

  when "--name"
    options[:name] = arg

  when "--time"
    options[:time] = arg
end
end

if options.empty?
  puts help_message
else
  puts "Good #{options[:time]}, #{options[:name]}"
end
```

Our code is simple - we create an instance of `GetoptLong` class with list of available params, then in case of match with param name we do execute some code.

## OptionParser

Next stop - [OptionParser](https://github.com/ruby/optparse). Similar with `GetoptLong` we create an instance of `OptionParser` class with list of available params. There are an `opts.banner` option which allow us to add some text before list of available params.

```ruby
#!/usr/bin/env ruby

require 'optparse'


option_parser = OptionParser.new do |opts|
  opts.banner = 'Usage: greeting.rb [options]'

  opts.on '-n', '--name=NAME', 'Set name'
  opts.on '-t', '--time=TIME', 'Set time'
end

options = {}

option_parser.parse!(into: options)

if options.empty?
  puts option_parser
else
  puts "Good #{options[:time]}, #{options[:name]}"
end
```

Every solution is simple and easy to implement without any additional library, but `OptionParser` code looks more compact and readable, isn't it?
Ibuprofeno.py💊| #92: Explica este código Python
Tags: python, learning, spanish, beginners
Published: 2024-04-27 11:00:00

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Fácil</mark></center>

```py
shopping = ["Agua", "Huevos", "Aceite", "Sal", "Limón"]
print(shopping[::-1])
```

👉 **A.** `["Agua", "Huevos", "Aceite", "Sal", "Limón"]`
👉 **B.** `['Limón', 'Sal', 'Aceite', 'Huevos', 'Agua']`
👉 **C.** `['Limón']`
👉 **D.** `["Agua"]`

---

{% details **Respuesta:** %} 

👉 **B.** `['Limón', 'Sal', 'Aceite', 'Huevos', 'Agua']`

Al igual que con las cadenas, podemos trocear listas en Python.
La sintaxis es la misma:

```py
[ <inicio>, <final>, <salto> ]
```
Donde:
* `<inicio>`: desde donde queremos cortar
* `<final>`: hasta donde queremos cortar
* `<salto>`: de cuanto en cuantos item queremos cortar

Una manera peculiar de usar esta manera de cortar listas es invertir una lista: `[::-1]`.

En este caso no tenemos `<inicio>` ni `<final>`, lo que significa que abarcaremos toda la lista, el `<salto>` es de `-1` en `-1` lo que quiere decir que empezaremos por el último item hasta llegar al primero. En otras palabras la lista quedara invertida. 


{% enddetails %}
Chartty (Your all-in-one data visualizer)
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-27 10:46:15

*This is a submission for the [Coze AI Bot Challenge](https://dev.to/devteam/join-us-for-the-coze-ai-bot-challenge-3000-in-prizes-4dp7): Bot Innovator.*

## What I Built
<!-- Tell us what your bot does, who it's for, and what problem it solves -->
[Chartty](https://www.coze.com/store/bot/7362468419129868294?from=bots_publish&panel=1&bid=6cb5voh446g06) is your all-in-one chart creator, it specializes in analyzing and translating data into visually appealing and easily understandable charts. It also possesses the unique ability to navigate the internet and obtain information from reputable sources to create charts.

![chartty's interface](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/enuacavth7c4qjohzvtd.png)

## Demo
Here are some ways you can make use of Chartty
<!-- Share a link to your bot in the Coze Bot Store and include screenshots or recordings showcasing a user's chat interface with your bot. -->

### Pie chart creation from user-provided data

![pie chart creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1mtz7qvrqbtej509kof6.png)

### Bar chart creation with information obtained from the internet

![bar chart creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s57apr67552cr9kgtfvb.png)


### Generate line charts from data extracted from a webpage

![line chart creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50ax68ipwnkf2owph7nc.png)


## Your Configuration

<!-- Screenshot or record your bot's configuration, including prompts and skills used.  -->


![chartty's character](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j19u721cn8sfi8vw0ehb.png)

![plugins used](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3zpxxx902jvifpt55g2y.png)



## Journey

When writing my articles, I sometimes want to represent some data using a chart, but most times creating a chart just seems too tasking for my lazy self😅. I needed a way to just pass the information and receive a chart back, with no stress or hassle. Getting to know about the Coze platform, I thought, this is it, I can create a bot that will help me with this issue. That was how the idea for **Chartty** came to mind. Now I can make different kinds of charts in seconds, helping me save a significant amount of time😁.

Get chartty today and seamlessly create charts to visualize your data.

As always, feedback is highly welcome🤗✨
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image (if you want). -->

<!-- Thanks for participating! -->
🔥 ORNAZ: The E-Commerce Revolution is Here! 💯⚡️ Say Goodbye to Slow Websites!
Published: 2024-05-27 14:47:26

---
title: 🔥 ORNAZ: The E-Commerce Revolution is Here! 💯⚡️ Say Goodbye to Slow Websites!
published: true
date: 2024-04-27 10:32:20 UTC
tags: 
canonical_url: https://ashutoshverma.com/ornaz-desktop-lighthouse-metrices/
---

🚀 Tired of waiting for slow-loading websites? So were we!

That’s why we got obsessed with creating something better at ORNAZ! 💡 We’ve transformed our e-commerce platform into an ultra-fast, SEO-friendly powerhouse! And the result? A jaw-dropping 100/100 on Lighthouse scores! ⚡️

Surprised? Wait till you hear this - we achieved all this with only 2 amazing developers! 😱

Even giants like Flipkart and Amazon are struggling at 75-80, but we’ve set a new standard! Say goodbye to slow loading times and hello to the future of online shopping! Check it out for yourself! (attachment).

Go and experience it yourself at [ORNAZ](https://www.ornaz.com/) desktop version.

![](https://ashutoshverma.com/assets/img/ornaz-lighthouse/ornaz_2.png) ![](https://ashutoshverma.com/assets/img/ornaz-lighthouse/ornaz_3.png) ![](https://ashutoshverma.com/assets/img/ornaz-lighthouse/flipkart.png) ![](https://ashutoshverma.com/assets/img/ornaz-lighthouse/amazon.png)
Typescript type grouping a union type of objects by any property discriminating these objects.
Tags: typescript, cheatsheet
Published: 2024-04-27 10:27:32

##MappingByDiscriminator


Example:
```Typescript
type Car = {
  kind: "car",
  ...
};

type Truck = {
  kind: "truck",
  ...
};

type Vehicle = Car | Truck;
```
Then
```Typescript
type VehiclesByKind = MappingByDiscriminator<Vehicle,"kind">;
```
Will produce :
```Typescript
type VehiclesByKind = {
    car: Car[],
    truck: Truck[],
}
```
Mapping union type on discriminator
using the [`UnionMemberByDiscriminator`](#unionmemberbydiscriminator) and [`GetProperty`](#getproperty) described below,

```Typescript
type MappingByDiscriminator< E extends object, D extends keyof E > = 
   GetPropertyType<E,D> extends string | number ?
   {
      [d in GetPropertyType<E, D>]: UnionMemberByDiscriminator<E, D, d>[];
    }
  : never;
```
Will map types in a union by a discriminator.

##GetProperty

Get the type of an object property with generics

```typescript
type GetProperty<E extends object, P extends keyof E> = 
  E extends { [key in P]: infer V } ? V : never;
```
Example:
```typescript
type Entity = {
   kind: 'human' | 'animal',
   size: 'microscopic' | 'small' | 'big' | 'giant',
}
```
Then
```typescript
type SizeType = GetProperty<Entity,"size">
```
Will produce
```typescript
type SizeType = 'microscopic' | 'small' | 'big' | 'giant';
```

##UnionMemberByDiscriminator 

Extract a specific type from a union for a given discriminator value (can be used with generics)

```typescript
type UnionMemberByDiscriminator<
  E extends object,
  D extends keyof E,
  DValue extends string | number
> = E extends {[key in D]:DValue} ? E : never;
```
Example:
```typescript
type Car = {
  kind: "car",
  ...
};

type Truck = {
  kind: "truck",
  ...
};

type Vehicle = Car | Truck;

type InferredCar = 
   UnionMemberByDiscriminator<Vehicle, "kind", "car">
```
Will produce
```typescript
type InferredCar = Car;
```
This is useful in a generic context (see above)