teleren/devto huggingface dataset:
A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips
Tags: chatgpt
Published: 2023-12-06 09:13:09

---
title: A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips
published: true
date: 2023-11-29 00:37:00 UTC
tags: ChatGPT
canonical_url: https://reactjsexample.com/a-spotlight-like-app-connect-to-the-chatgpt-and-talk-to-it-at-your-finger-tips/
---

# ChatSpot🥸
 ![A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips](https://reactjsexample.com/content/images/2023/11/Code_2023-11_21-32-11.jpg)

**Spotlight app for ChatGPT**

![A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips](https://github.com/gusye1234/chat-spot/releases/download/v0.0.1/show.gif)

ChatSpot is an AI-powered, Spotlight assistant designed to help users complete tasks quickly and efficiently. Anytime or anywhere, press `command/ctrl + alt + k` and ChatSpot is always ready to assist.

By default, anything said by ChatSpot will be automatically copied. So all you need is:

1. Toggle ChatSpot with gobal shortcut `command/ctrl + alt + k`
2. Ask question and wait the streaming output finished
3. Untoggle ChatSpot with gobal shortcut `command/ctrl + alt + k`, and the focus will be back to your previsous working place, where you can paste the response from ChatGPT

ChatSpot also supports custom prompts. You can use “/” to invoke a window customized with your prompt.

![A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips](https://github.com/gusye1234/chat-spot/releases/download/v0.0.1/prompt.gif)

You can checkout details shortcuts and other functions in the menu bar:

![A Spotlight-like app, Connect to the ChatGPT and talk to it at your finger-tips](https://github.com/gusye1234/chat-spot/releases/download/v0.0.2/menu.jpg)

## Get Started

> **Using ChatSpot requires your own OpenAI key to connect to ChatGPT.**

Download the app

| Platform | Tested Supports | Download |
| --- | --- | --- |
| MacOS | Support 13.5.2+ | [Release](https://github.com/gusye1234/chat-spot/releases/tag/v0.0.2) |
| Windows | Haven’t tested yet | [Release](https://github.com/gusye1234/chat-spot/releases/tag/v0.0.2) |
| Linux | Haven’t tested yet | / |

## Development

Clone this repo and run the following commands:

```
pnpm install
pnpm dev
```

To package the App in your platform (MacOS, Windows, Linux…), run:

```
pnpm package
```

## Credits

- Thanks to [Electron React Boilerplate](https://github.com/electron-react-boilerplate/electron-react-boilerplate) , I saved a lot of time for the inital setup.i

## GitHub

[View Github](https://github.com/gusye1234/chat-spot?ref=reactjsexample.com)
Amazon Q launched today at #AWSreInvent2023
Tags: aws, awsreinvent, awscommunitybuilders
Published: 2023-11-29 00:28:02

Amazon Q launched today at #AWSreInvent2023 😍😍

Amazon Q : a powerful generative AI assistant for businesses, offering real-time information and advice with a focus on security and privacy.

Receive guidance, get troubleshooting tips, and learn about AWS services and capabilities.

Amazon Web Services (AWS)
#aws #AWSreInvent #awsreinvent2023 #awscommunitybuilders #awscommunity


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lm9ducwdv62tvonlp804.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eq3jurii1u1nlhylt1wg.png)
How Do Snap Judgments Shape Our Perceptions?
Tags: discuss
Published: 2023-11-29 00:00:00

---
published_at : 2023-11-29 00:00 +0000
---
How do snap judgments shape our perceptions of others? Discuss your views.<br>
Follow the DEVteam for more discussions and online camaraderie!
{% embed https://dev.to/devteam %}
rhizomatic time loops
Tags: gamedev, writing
Published: 2023-12-24 16:21:11

---
title: rhizomatic time loops
published: true
date: 2023-11-29 00:00:00 UTC
tags: [ 'gamedev', 'writing' ]
canonical_url: https://onwriting.games/daily/20231129-1932-rhizomatic-time-loops/
---

Another game that successfully managed to use rhizomatic foreshadowing is [12 Minutes by Luis Antonio](https://store.steampowered.com/app/1097200/Twelve_Minutes/).

This is a puzzle game whose main mechanic is narrative, making it a **very interesting** subject of study.

The game is designed around executing a series of actions with **a time limit** (12 minutes).

After that time you're forced to **go back to the start**.

Forcing you to play it over and over again in **increasingly creative ways** to get more information.

You can try different dialog lines, and perform different actions to unlock subtle branches that slowly start to paint the picture of what's going on.

That might already be enough to make a whole game, but the designer took it a step further: the character **remembers everything** he does in each loop, same as the player.

This works very well for two reasons:

1. It makes the actions you take **believable**. _Why would the character hide in a closet if he doesn't know someone is coming for him?_
2. It enables **additional paths** that only get unlocked after you got a piece of information.

This last point is very interesting to me because it's a form of reaction to the state that (beyond Groundhog Day) I had not seen executed so well in video games.

It seems to me that there is a lot of room to explore with temporal loops beyond 12 Minutes.

I feel there is an **entire genre** to be explored there.

Do you know any other game that uses temporal loops as a way to control the exponential explosion of the rhizome?

I would love to play other similar experiences that are not necessarily detective-oriented...
Ray.so, Roadmap.sh, and More?
Tags: discuss, codenewbie, beginner
Published: 2023-11-29 00:00:00

---
published_at : 2023-11-29 00:00 +0000
---
How have recommended websites like Ray.so or Roadmap.sh positively impacted your coding journey?
<br>
Follow the CodeNewbie Org and #codenewbie for more discussions and online camaraderie!
{% embed https://dev.to/codenewbieteam %}
6 Of The Best Fishing Backpacks For Every Angler
Published: 2023-11-28 23:58:02

[![fishing backpack](https://www.plusinno.com/cdn/shop/products/81NlCQswolL.._1800x1800.webp)](https://www.plusinno.com/collections/fishing-tackle-bag?utm_source=dev_to&utm_medium=rankking)

## 6 Of The Best Fishing Backpacks For Every Angler

Fishing is a great way to relax and enjoy the outdoors, but it can be a hassle to carry all your gear with you. That’s why it’s important to have a reliable **fishing backpack** to store and transport your tackle and other essentials. Here are the best fishing backpacks for anglers of all levels. 

### Eddie Bauer Unisex-Adult's Guide Series Backpack

The Eddie Bauer Unisex-Adult's Guide Series Backpack is great for anglers who want a lightweight, comfortable, and affordable bag. It has a large main compartment and multiple pockets for storing tackle and other fishing gear, as well as a waterproof pocket for items like a cell phone or fishing license. It also features adjustable straps and a mesh back panel for breathability. 

### Wild River by CLC Tackle Tec Nomad Lighted Backpack

The Wild River by CLC Tackle Tec Nomad Lighted Backpack is perfect for anglers who need extra visibility when fishing. It has two bright LED lights on the front, as well as a variety of pockets and compartments for storing tackle and other gear. It also has a removable fly patch and a padded shoulder harness for comfort. 

### Flambeau Outdoors T-Series Trout Backpack

The Flambeau Outdoors T-Series Trout Backpack is perfect for fishermen who are looking for a lightweight, easy-to-use backpack. It has two large main compartments and multiple pockets for storing tackle and other gear. It also has a breathable mesh back panel and adjustable shoulder straps for comfort. 

### Simms Headwaters Fishing Backpack

The Simms Headwaters Fishing Backpack is ideal for experienced anglers who need a heavy-duty bag. It has a large main compartment and multiple pockets and compartments for storing tackle and other gear. It also has adjustable shoulder straps and a padded back panel for extra comfort. 

### Hodgman H-Pack Fishing Backpack

The Hodgman H-Pack Fishing Backpack is perfect for anglers who want a rugged and durable bag. It has a large main compartment and multiple pockets for storing tackle and other gear. It also has adjustable straps, a waterproof pocket, and a breathable mesh back panel for extra comfort. 

### Orvis Safe Passage Guide Backpack

The Orvis Safe Passage Guide Backpack is perfect for anglers who need a reliable and durable bag. It has a large main compartment and multiple pockets for storing tackle and other gear. It also features adjustable straps and a padded back panel for extra comfort. No matter what kind of angler you are, there’s a **fishing backpack** out there to suit your needs. We hope this guide has helped you find the perfect bag for your next fishing trip.

## References

  * [fishing backpack](https://malandainballet.com/?URL=https://www.plusinno.com/collections/fishing-tackle-bag "fishing backpack")
Getting started with AWS Serverless architecture: A Paradigm Shift in Cloud Computing
Tags: aws, cloudcomputing, serverless, devops
Published: 2023-11-28 23:26:11

Let’s delve into the realm of **Serverless architecture**, where traditional deployment challenges find a transformative solution.

In the past, deploying a web application on AWS often meant relying on a single server, typically an AWS EC2 instance. While EC2 instances can scale vertically to an extent, accommodating increased demand, they face limitations as traffic surges.

Enter the Load Balancer👽 — a solution to handle escalating traffic by dynamically adding more servers, a concept known as horizontal scaling. However, this approach poses cost challenges. Picture this: a traffic spike on Monday prompts the Load Balancer to provision additional instances, incurring costs even during idle periods when the traffic subsides.


To address this, the Auto Scaling Group comes into play, efficiently managing server instances based on demand. This ensures optimal resource utilization and cost savings, especially during periods of reduced traffic.

Yet, the intricacies of manual configurations for server health and high availability raise a pertinent question: Isn’t this a lot of work?🤯🤯

This is where **Serverless** steps in, a veritable knight in shining armor 💂.

The Serverless platform helps deal with:
- how to manage the infrastructure

- how to make provision of instances

- how to ensure the servers are healthy 

- what metrics to use when it’s time to scale out or scale in.

Then we say “SERVERLESS” means

1. No server management 
2. Flexible scaling 
3. Automated high availability 
4. No idle capacity 

With Serverless architecture, powered by AWS Lambda functions, you can run code without the hassle of provisioning or managing servers. It is an event-driven, Serverless compute service that not only reduces operational burdens but also provides flexible scaling, automated high availability across multiple zones, and substantial cost savings through its “pay-per-execution” model.

In essence, AWS Serverless architecture streamlines your deployment process, decreases time to complete processes, and offers an environment that closely mimics production — all with the ease of AWS Lambda functions at its core. It makes it easier to set up your app, saves you money, and takes away the hassle of managing servers. It's like having your own tech assistant handling the tough stuff.




Follow on LinkedIn and Twitter for more on AWS Serverless architecture:

click to follow on [LinkedIn](https://www.linkedin.com/in/sherifawofiranye)

click to follow on [Twitter](https://www.x.com/awofiranyesher2)
Separating business and administrative logic - example 1
Tags: python, architecture, softwareengineering
Published: 2023-11-28 23:06:31

Hi,

_(I am re-posting here a post I made in 2019 on my blog)_

A quick view on business and administrative logic separation. 

A dummy example where we use decorators to check if the input path exists before assigning it to the class attribute. Context managers could accomplish the same, but with the decorator, checking takes place before even executing the function.

```python
def check_folder_exists(func):
    """
    Decorator for class property setters
    """
    @wraps(func)
    def wrapper(self, folder):
        
        if not Path(folder).exists():
            raise FileNotFoundError(f'Path not found: {folder}')
        
        else:
            return func(self, folder)
    return wrapper


class Parameters:
    def __init__(self, **kwargs):
        self.kwargs = kwargs
    
    @property
    def db_folder(self):
        return self._db_folder
    
    @db_folder.setter
    @check_folder_exists
    def db_folder(self, folder):
        self._db_folder = folder
```

Below is another snippet from my code where I use a combination of three contexts to handle exceptions hierarchically.

```python
for step in config_reader.steps:
                
    with GCTXT.abort_if_exception(), \
            GCTXT.query_upon_error(XCPTNS.ConfigReadingException), \
            GCTXT.abort_if_critical_exceptions(CONFREADER.critical_errors):
            
        step()
```

Do you find this useful for your projects? Let me know.

Cheers,
Day 842 : Keep On
Tags: hiphop, code, coding, lifelongdev
Published: 2023-11-28 22:33:09

_liner notes_:
- Professional : Did not feel great waking up this morning. I don't know if it was all the stuff that happened yesterday or that it is pretty cold. I almost missed a meeting. Replied to some community questions. Did some work on testing a new SDK. Tried to get an application running locally on my machine. I got the latest code from the repository, like normal, deleted the node_modules folders, did a clean install and ran the command to spin up the application. The application looks like it's running, but it says something is wrong with the navigation or something. I put a message in the appropriate Slack channel so hopefully I hear something back tomorrow.

- Personal : Made some more progress on my side project. I think I'm going to switch up the front page's design a little. Found an example similar to what I'm looking for and got it working in a CodePen, kind of. It's missing some things that I'll need to add, but I think it will be a good starting point. I also added another Cloudflare Worker AI model to side project. This one will generate an idea based on some criteria that will then be the basis of the prompt to generate an image. Been playing around with some examples and I'll definitely need to do a bunch of fine-tuning to get consistent results.

![View of a beach in the Maldives with turquoise waters pushing waves that are washing up on white sand with some footprints](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0nyilmrq0gh81vebkc87.jpg)

Going to eat dinner. Go through some tracks for the radio show. See if I can get the proof of concept for my front end working how I want. Maybe try to work on getting the AI stuff to be more consistent. Just have to keep on reiterating. I almost got caught up with "SpyxFamily" last night. I think I have like 2 or 3 more episodes to go. Try and get caught up tonight.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube S2OF7vofiIE %}
100+ Questions for Angular Interviews 💫
Tags: javascript, angular, typescript, interview
Published: 2023-11-28 22:32:56

## **100+ Questions for Frontend Interviews 💫**

1. **Angular Interview Questions:**
 - GitHub Repo: https://t.ly/gXvx8
 - Simplilearn: https://rb.gy/1kci32
 - DZone: https://rb.gy/hqqyjt
 - Codecademy: https://rb.gy/00o7yj
 - Flexiple: https://rb.gy/tqeopw
 - Educative: https://rb.gy/jtg2hw 

2. **Rxjs Interview Questions:**
 - javatpoint: https://t.ly/ZDyJa
 - Indeed: https://t.ly/ZfwVC
 - SkillCombo: https://t.ly/LjE49
 - TechGeekNext: https://t.ly/YCr4h
 - Fullstack.cafe: https://cutt.ly/dwOgdRhL

3. **TypeScript Interview Questions:**
 - InterviewBit: https://cutt.ly/BwOggef1
 - Edureka: https://cutt.ly/pwOggmdx
 - Hackr: https://lnkd.in/dTQ3skJS
 - Simplilearn: https://lnkd.in/drW3Tuz8
 - Educative: https://lnkd.in/dStJPhPV

4. **Javascript Interview Questions:**
 - GitHub Repo: https://lnkd.in/dWiBhWxp
 - InterviewBit: https://lnkd.in/dJyDWsu9
 - Guru99: https://lnkd.in/dEAKXrkP
 - Hackr: https://lnkd.in/dsceyNye
 - javatpoint: https://lnkd.in/dnbdi23F
The Timeless Style of Men's Linen Pants: A Historical Overview
Published: 2023-11-28 22:24:10

Mens Linen Pants: A Timeless Fashion Statement Introduction Linen pants have been a staple in men's fashion for centuries. They are comfortable, stylish, and versatile. In this article, we will explore the history of men's linen pants and their timeless style. The History of Mens Linen Pants Linen is one of the oldest fabrics in the world, dating back to ancient Egypt. It was used to make clothing for the pharaohs and was considered a luxury fabric. In the Middle Ages, linen was used to make undergarments and was worn by the wealthy. It wasn't until the 18th century that linen pants became popular among men. They were worn by sailors and fishermen because of their durability and breathability. In the 19th century, linen pants became a fashion statement and were worn by the upper class. Today, linen pants are still popular and are worn by men of all ages. The Versatility of Mens Linen Pants One of the reasons why linen pants are so popular is their versatility. They can be dressed up or down depending on the occasion. Linen pants can be worn with a dress shirt and tie for a formal event or with a t-shirt and sneakers for a casual look. They are also perfect for summer because they are lightweight and breathable. The Comfort of Mens Linen Pants Linen pants are known for their comfort. They are soft and breathable, making them perfect for hot weather. Linen pants also have a loose fit, which allows for freedom of movement. They are perfect for outdoor activities like hiking, fishing, and camping. The Style of Mens Linen Pants Linen pants have a timeless style that never goes out of fashion. They are classic and elegant, yet casual and relaxed. Linen pants come in a variety of colors and styles, from traditional beige to bold colors like red and blue. They can be tailored or loose-fitting, depending on your preference. Conclusion Mens linen pants are a timeless fashion statement that has been around for centuries. They are versatile, comfortable, and stylish. Whether you're dressing up for a formal event or dressing down for a casual day out, linen pants are the perfect choice. So, why not add a pair of linen pants to your wardrobe today? Related Websites: 1\. https://www.linenme.com/news/history-linen-fabric 2\. https://www.gentlemansgazette.com/linen-pants-guide/ 3\. https://www.realmenrealstyle.com/linen-pants-men/

## References

  * [mens linen pants](https://cityofhuntington.com/?URL=https://coofandy.com/collections/mens-linen-pants "mens linen pants")
Secure Container Image Signing with Cosign and OPA
Tags: devops, cosign, opa, harness
Published: 2023-11-28 22:15:55

As the adoption of containers in modern development continues to grow, ensuring the integrity of container images has become a pivotal aspect of application deployment strategies. In this video, Harness Developer Advocate [Dewan Ahmed](https://www.linkedin.com/in/diahmed/) demonstrates how to leverage the combined power of Cosign and OPA for the secure deployment of container images to your Kubernetes cluster.

{% youtube PLvjcCCStzs %}

You can also [read the text version of this tutorial](https://developer.harness.io/tutorials/cd-pipelines/kubernetes/cosign-opa?utm_campaign=cd-devrel).
YAML developer is a profession
Tags: devops, k8s, helm
Published: 2023-11-28 22:00:06

I decided to install `k3d` cluster locally to refresh my memories, and at the same time I found a reason to whine in this post. Not that I decided to move to DevOps/AWS for a reason https://dev.to/inv2004/it-trends-and-rates-20dn, but, the last thing I installed entirely myself in the prod of the orchestrator was docker swarm.

In general, if you do not go very much into the deeps, then `k8s` is arranged quite simply, and even logically. At some point you say aha, there should be a global `k8s` config repository somewhere, but then the second bottom opens, namely `Helm`, in which it is stated that everything that it does k8s, except for basic functions, it does poorly, we will help you with this. Naturally, the most difficult path possible is chosen. One of the main purposes Helm is the templating `k8s` of configs. It is used for this go template purpose, which immediately throws out a hodgepodge of embedded tags on you, so that you involuntarily start remembering the times when you programmed in JSP(or PHP if someone is closer). Moreover, even this is not enough, `Helm` can reuse your own components (rather meta-components), as a result, in order to understand how what is generated there, you need to dive not just into the template, but into someone's component and understand how it generates you an essentially simple yaml config that is waiting `k8s`. `Helm` v2 so in general, I put my own service on each node, but this was refused

I wouldn't have written this if it didn't explain to me why large companies have entire departments of so-called yaml developers doing this, a whole new profession in fact. Instead of tweaking something that doesn't look too bad anyway, namely k8s configs, a new abstraction is invented from above, another abstraction of components is added to this abstraction, and as a result, it's not surprising that there are people who support this five days a week.

As deja vu, I recall the aerobatics of the old days - generating the sendmail config via m4. The best people in the linux community have broken down on this, and this is probably one of the reasons why postfix replaced sendmail. I don't remember exactly, but a few lines (out of hundreds) looked like this:

```m4
define(`SMART_HOST', `relay:uucp-gateway')
LOCAL_NET_CONFIG
R $* < @ $+ .$m. > $* $#smtp $@ $2.$m $: $1 < @ $2.$m > $3
```