teleren/devto huggingface dataset:
Playing with PartyRock, AWS's GenAI Playground
Tags: aws, ai, partyrock, nocode
Published: 2023-11-16 17:26:49

AWS just came out with a new Generative AI playground which makes it a breeze to experiment with its Bedrock service! 

Why is it great that a GenAI playground exists? glad you asked! let me tell you a little story...

A couple of months ago I built a [serverless assistant](https://dev.to/aws-builders/building-a-serverless-chatgpt-powered-resume-assistant-foundation-3c12) backed by chatGPT.  The project itself took a couple days in the process I had to sign up for an OpenAI account so that I could get API access, give them my credit card so that they could charge me for tokens, and figure out how to use their Python library. 

That was all to just send my initial system message to ChatGPT so that I could test "programming" ChatGPT to "only answer in rhyming couplets no matter what the user says." It worked and was really fun, but that is a pretty high bar for creating a simple chat bot. 

Well, with AWS PartyRock I did basically the same thing in 60 seconds. All you need is a free Builder account (no credit card needed) and you can use the PartyRock playground to test out some of the different models Amazon Bedrock has on offer. You can even publish and share the things that you make with others! No infrastructure to manage and plenty of credits to get you going. 

## Building A PartyRock App

When I first got access to the tool I was super excited to start playing, but my 1st grader had just gotten back from school and needed some math homework help. I am pretty decent at math (and supremely confident in my ability to do 1st grade math) but the way math is taught today is a little different from the way it was taught to me. It feels like a different language and sometimes that can make me feel stupid. 

![The prompt to create the app](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dk7yd8u39wtweyimcjvj.png)

So I told the initial prompt that I wanted to have "new math" explained to me in "old math" terms so that I could help and communicate with my kid about their homework.

![The created app](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uuvryun6vsj5d2mhvy34.png)

That was it. PartyRock took that prompt and built a simple interface that allowed me to ask questions about number lines and ten frames and put things into perspective for "old math" me. 


![Example output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2jrnrkm6okp0hegau9t7.png)

Play with it if you want [here](https://partyrock.aws/u/Misterjacko/Q9KmkCudg/New-Math-for-Old-Math-Parents), but better yet, make your own at [PartyRock.aws](https://partyrock.aws).  If you don't have a Builder account you can just sign up with SSO from an account you probably already have and then you just..  play. No friction. Do it. Now! 

(and yes, I built another little PartyRock app to make the banner image based on the post title that you can play with [here](https://partyrock.aws/u/Misterjacko/XmupMsGR-/Image-Generator-for-Blog-Post-Headers) because why not make the machines work for you?!)
How to solve the error “Your Project requires a higher compileSdkVersion on Flutter“.
Published: 2023-11-16 17:14:09

The error message "Your Project requires a higher compileSdkVersion on Flutter" is a common roadblock encountered by Flutter developers during the app development lifecycle. The compileSdkVersion parameter in Flutter project configuration sets the version of the Android SDK against which your application is compiled. When there is a difference between the needed and specified versions, this error is triggered, potentially leading to compilation problems and slowed development progress.

In this post, we'll look into the complexities of the "Your Project requires a higher compileSdkVersion on Flutter" error, uncovering its underlying causes and presenting practical ways to help developers debug. Understanding the significance of this issue is critical for maintaining a smooth and error-free Flutter development environment, and this article seeks to provide newbie developers with the information required to efficiently overcome this challenge. Let's go on an adventure to learn about how to overcome this common stumbling block.

The "Your Project requires a higher compileSdkVersion on Flutter" error typically arises due to a mismatch between the required compileSdkVersion and the version specified in your Flutter project.

To resolve the "Your Project requires a higher compileSdkVersion on Flutter" error, follow these step-by-step instructions:

-Go to your Project's directory

![Step One](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3s1wfdna9ny6ujyqydy.png)

-Select the project you are working on. Mine is “mi_card_flutter”

![Step Two](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jfe0lts3ll2nc8kocrtg.png)

- Select “Android”, click on  “app”


![Step Three](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmyimh08bu3xb5gujl3u.png)


- Select “build. gradle” or “build”

![Step Four](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60ksl5hpijhhqe0jodkh.png)


-Then double click and open with notepad.


![Step Five](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mqwadantxikxr962wnlf.png)

- On the notepad, scroll down to where you have 
        andriod{
               ComplileSdkVersion30……

-Then change the “30” to “31”  (depending on the version of your Android and project.
- Click on “Save”, then close window.


![Step Six](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ehuleep5x605r0d390j4.png)

- Go back to your Android studio, close it, and restart again.

-Re-open it again and run dart. Wait for it.……

PROBLEM SOLVED!

I hope this was very helpful.
Meme November: Day - 16
Tags: webdev, programming, beginners, productivity
Published: 2023-11-16 17:10:19


Hello there! I am excited to announce that we will be starting a series in November where we will be sharing some funny programming memes with you every day. We understand how important it is to have a good laugh, especially when you're a programmer, and we believe that these memes will give you just that. So, make sure to stay connected with us throughout November, and keep an eye out for some hilarious programming memes that we will be sharing with you every day!

---


[![How to end a frontend developers career](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d3di3tqbf7ikuxhcmen3.jpg)](https://twitter.com/AlarmsSnooze)


---

---

Check my website [Demo coding](https://democoding.in/) for updates about my latest CSS Animation, CSS Tools, and some cool web dev tips. Let's be friends!

Don't forget to subscribe to our channel : [Demo code](https://www.youtube.com/@democode)
Release 0.35.0 of Spellcheck (GitHub) Action - another maintenance release
Tags: release, opensource, githubaction
Published: 2023-11-16 16:52:04

---
title: Release 0.35.0 of Spellcheck (GitHub) Action - another maintenance release 
published: true
description: Maintenance release of a GHA for checking spelling
tags: release, opensource, githubaction
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-11-16 16:36 +0000
---
Today I have released version [0.35.0](https://github.com/rojopolis/spellcheck-github-actions/releases/tag/0.35.0) of the GitHub Action for doing spelling checking of your documentation etc. for which I am the current maintainer.

This release was prompted by several updates.

- Docker base image bumped to Python 3.12.0

Which resulted in updates to several of the dependencies used by the core component [PySpelling](https://facelessuser.github.io/pyspelling/).

In addition I am looking into the long over due decommissioning of several older releases. They can always be rebuilt from source on GitHub, but there is no need to keep the Docker image artifacts around.

The relevant versions are:

- 0.21.1
- 0.22.0
- 0.22.1
- 0.23.0
- 0.23.1
- 0.23.2
- 0.24.0
- 0.25.0
- 0.26.0
- 0.27.0
- 0.28.0

The sunset policy is outlined in [the repository wiki](https://github.com/rojopolis/spellcheck-github-actions/wiki#sunset-policy).

I am locating projects using these and evaluating whether a PR should be made.

I find some interesting forks of the repository itself, where I consider inquiring with the owner if they have changes that I could lift upstream.

For the man forks and forks of forks of other repositories, I think I will just ignore them.

- They can update from upstream (I check if upstream is up to date for forks, but not forks of forks)
- Or they could start using Dependabot or similar, some do but have dormant PRs.

Software requires maintenance, just like this action. These releases are not so exciting, but they are necessary in order to be relevant.
PLC HMI Programming Software for iOS
Published: 2023-11-16 16:48:43

Revolutionize your automation game with our [PLC HMI Programming Software for iOS](https://ritecontrol.com/)! Seamlessly control and monitor your industrial processes on the go, unlocking unprecedented flexibility. Our user-friendly interface empowers you to program and visualize your PLC systems with ease, enhancing efficiency and reducing downtime. Embrace the future of automation with intuitive touch controls, real-time data access, and unparalleled convenience, all in the palm of your hand. Elevate your iOS device into a powerful programming tool, making automation smarter and more accessible than ever. Experience the next level of PLC HMI programming with our cutting-edge software—where innovation meets mobility
Adding a Decorator Pattern in JavaScript to existing code
Tags: designpatterns, javascript, architecture, webdev
Published: 2023-11-16 16:30:24

I've implemented a Decorator Pattern in order to decorate the generated controls that are created using a Factory class. You can check my previous post on how I [implemented a Factory Pattern in JavaScript](https://dev.to/teaganga/implementing-a-simple-factory-pattern-in-javascript-2ac).

I'm integrating a decorator pattern into the existing DomFactory class for enhancing the styles of the controls, by creating a separate decorator function or class that modifies the elements created by the factory class. By definition, the [decorator pattern](https://www.oodesign.com/decorator-pattern) is a structural design pattern that allows behavior to be added to individual objects, either statically or dynamically, without affecting the behavior of other objects from the same class.

```javascript
function DomFactory() {
  // ... existing methods ...

  // Enhance the style of a control element
  this.enhanceStyle = (element, styleProps) => {
    for (const [key, value] of Object.entries(styleProps)) {
      element.style[key] = value;
    }
  }
}

// Decorator function to apply custom styles
function styleDecorator(control, styleProps) {
  control.enhanceStyle(control.checkbox, styleProps.checkbox);
  control.enhanceStyle(control.labelElement, styleProps.label);
}

// Usage
const factory = new DomFactory();
const control = factory.createCheckbox('example', { label: 'Example' }, true);

// Define custom styles
const customStyles = {
  checkbox: {
    margin: '10px',
    // Other CSS properties
  },
  label: {
    color: 'blue',
    // Other CSS properties
  }
};

// Apply styles using the decorator
styleDecorator(control, customStyles);
```
As mentioned in the previous post, using a decorator along with a factory helps to follow 3 out of the 5 SOLID design principles:

- by decoupling the code to instantiate classes from the code to add details/styles(decorate) we make sure each class has a [single responsibility](https://www.oodesign.com/single-responsibility-principle), or a single reason to change. This is called single responsibility principle. You can also consider a way of decouple presentation from data structure.
- [Open-closed principle](https://www.oodesign.com/open-closed-principle) allows us to add new styles without changing the main code for creating objects.
- not directly but it allows easier extending functionality by being able to inject new styles by adding new decorator classes. By using the [dependency inversion principle](https://dev.to/teaganga/depedency-injection-principle-in-javascript-6gk) we can rely on a form of an abstract decorator and based on the context we can pass different concrete decorators.
How to become a better developer?
Tags: programming, webdev, tutorial, career
Published: 2023-11-16 16:17:15

 This article will discuss what I learned from Sibelius' mentorship, and how it can help you become a better developer. To begin with, I have to talk a little about my situation and what made me turn to mentoring. I was feeling stuck and feeling the need to evolve and learn new things faster and I decided to start documenting the process through articles.

 There are some points that we can follow to improve ourselves and not stop evolving, including having a  winning mindset, learning in public, find a mentor and  just do it.


## 1. Winning mindset


  Most people are used to everything going right, and they can't deal when everything goes wrong, and that's where the winning mindset comes in. Being stagnant and not being able to do new things is normal, but the way we deal with it when this happens changes everything.

 Looking at the problem as a whole can seem daunting so always break the problem into such small problems until it becomes impossible not to solve, no matter how challenging the problem is never give up, most people don't even try.


## 2. Learning in public



 Learning in public will open doors, whatever your objective, do what you wish you had found when you were learning, teaching something is the most effective way to consolidate knowledge. 

 Show what you are doing, studying, there will certainly be other people doing the same as you or trying to learn what you are learning, don't judge your results by “applause”, retweets, or stars, just do it for yourself, something that your me from the past would like to learn. 

 Learning in public is more beneficial when you make mistakes, we are raised with the mentality that we cannot make mistakes, and when we make mistakes we learn the most, so stop being afraid of making mistakes, and just keep trying.

			

## 3. Find a mentor


 Having a mentor can greatly accelerate your evolution, being the worst developer at the table is important to learn the most from people more experienced than you, this can help you cut corners and avoid mistakes that have already been made by other people, just by having a mentor , someone to show you the way and guide you, okay, but how do you find a mentor? Our area is extremely rich in people willing to help, so ask for help!


## 4. Just do it


  Just start doing, the more you do the more you will evolve, the more you seek the more you will learn new things, the more you make mistakes the more you will learn, we live in a world hostage to cheap dopamine where people want everything immediately and are not willing to go through the process and pay the price, you only evolve by doing more, "you only take on more weight by taking more weight", feeling uncomfortable is part of the process, so JUST DO IT, it won't be easy but if you do a little every day, it will become easier.


The word we have to take is constancy, always focus on the long term!!

I will see you in the next one,

Victor
115 berufliches Vorwärtskommen: Einige Fragen bezüglich „guter Taten“.
Tags: deutsch, career, motivation, survey
Published: 2023-11-16 16:00:00

Moin Moin,

ich würde gerne Wissen ob du gute Taten vollbringst im Sinne des Beitrags [„100 Gute Taten in der Restzeit“→](https://dev.to/amustafa16421/100-berufliches-vorwartskommen-gute-taten-in-der-restzeit-5cb9)

Also ob du dich bspw. mit folgendem beschäftigst:
- Nachwuchsförderung ( Bildungsangebote, Lehrmeisterschaft ( mentoring ))
- freie Softwareprojekte
- offene Softwareprojekte
- Unterstützung Benachteiligter
- Vereine unterstützen

1) Was genau machst du davon?
2) Warum hast du damit begonnen?
3) Was erhoffst du dir davon?

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch

{% embed https://dev.to/amustafa16421/100-berufliches-vorwartskommen-gute-taten-in-der-restzeit-5cb9 %}
AWS Creds in the CLI via SSO
Tags: aws, sso, credentials
Published: 2023-11-16 15:59:07

---
title: AWS Creds in the CLI via SSO
published: true
description: Brief description of an easy way to get AWS credentials from AWS SSO via CLI
tags: #aws #sso #credentials
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-11-16 14:00 +0000
---

## Problem

Do you often need credentials in your AWS CLI? 

Are you overly familiar with this screen (AWS SSO start page)?

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

If you do not have AWS SSO setup, check out the [AWS documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html) then come back to this post!

## A better credential experience

Yesterday I learned from my colleague @danquack a fun feature built into the AWS CLI. If you already have AWS SSO configured for your Org and are using the GUI to get credentials, follow this post and you can expect an improved AWS CLI credential management experience. 

My new, simpler process to get temporary creds from SSO:

#### Specify which profile I want and login:

```shell
$ export AWS_PROFILE=<>
$ aws sso login
```

#### Confirm the authorization request in my browser:

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

Boom! Now my CLI has usable temporary credentials!

## Setup

This setup is honestly extremely simple. AWS provides a guided CLI wizard and ill show the examples below.

```shell
$ aws configure sso
SSO session name (Recommended):
WARNING: Configuring using legacy format (e.g. without an SSO session).
Consider re-running "configure sso" command and providing a session name.
SSO start URL [https://example.awsapps.com/start#/]:
SSO region [us-east-1]:
There are 2 AWS accounts available to you.
> DeveloperAccount, developer-account-admin@example.com (123456789011) 
  ProductionAccount, production-account-admin@example.com (123456789022)
Using the account ID 123456789011
The only role available to you is: AdministratorAccess
Using the role name "AdministratorAccess"
CLI default client Region [us-east-1]: us-east-2
CLI default output format [None]:
CLI profile name [AdministratorAccess-<>]: providerdev
```

- There are 2 questions regarding region. The first is the region SSO is setup in. The second is the default region you want your CLI setup to use.
- Setting a profile name `providerdev` is now the name ill set for `export AWS_PROFILE=providerdev`

Once that is complete you can see the configuration:

```shell
$ cat -p ~/.aws/config
[profile providerdev]
sso_start_url = https://example.awsapps.com/start#/
sso_region = us-east-1
sso_account_id = 123456789011
sso_role_name = AdministratorAccess
region = us-east-2
```

## Summary

AWS SSO is a great service for providing temporary credentials to known identities in your organization. The new command `aws sso login` will help you and your engineers get credentials fast, easy, and securely!
Analyzing VTU Study Marks with Python: A Self-Motivation Tool
Tags: vtu, marks, analytics, tooling
Published: 2023-11-16 15:52:21

## Analyzing VTU Study Marks with Python: A Self-Motivation Tool

[![Python](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://www.python.org/downloads/release)
[![Jupyter Notebook](https://img.shields.io/badge/Jupyter-Notebook-orange.svg)](https://jupyter.org/)
[![VTUStudyMarkAnalysis](https://img.shields.io/badge/VTUStudyMarkAnalysis-v1.0.0-blueviolet.svg)](https://github.com/yourusername/VTUStudyMarkAnalysis)
[![GitHub](https://img.shields.io/badge/GitHub-View%20on%20GitHub-brightgreen.svg)](https://github.com/yourusername/VTUStudyMarkAnalysis)
[![Analysis](https://img.shields.io/badge/Analysis-Enabled-brightgreen.svg)](https://yourblogurl.com)

## Introduction
Welcome to the world of self-motivated study analysis! In this blog post, we'll explore a Python-based tool designed to help students analyze their VTU study marks, calculate essential metrics, and gain insights into their academic performance. This tool, named VTUStudyMarkAnalysis, is not just about grades; it's about motivating yourself and focusing on your unique journey.

## Key Features

### 1. Self-Analysis:
- Input your details, including name, USN, semester, branch, and marks for each subject.
- Calculate total marks, percentage, SGPA, CGPA, grade points, and more.

### 2. Visualizations:
- Utilizes the power of Matplotlib for visualizations, creating pie charts to analyze weak and strong scores per subject.
- Adds a motivational touch with random quotes to keep you inspired.

### 3. Motivation:
- Displays random motivational quotes to encourage you in your academic journey.

### 4. Privacy and Focus:
- Designed to focus on your individual progress without comparisons with others.
- Emphasizes the importance of self-motivation and personal improvement.

## Technologies Used

- **Python:**
  - Incorporates object-oriented programming (OOP) concepts and functions.
  - Demonstrates the use of classes and functions for a structured and modular approach.

- **Matplotlib:**
  - Implements the Matplotlib library for visualizations, creating pie charts to analyze weak and strong scores.

- **Random Module:**
  - Utilizes the random module to provide a variety of motivational quotes for a positive experience.

## How to Use

1. **Clone the Repository:**
   ```bash
   git clone https://github.com/FarhaKousar1601/VTUStudyMarkAnalysis.git
   cd VTUStudyMarkAnalysis
Innovative Android App Development Company
Published: 2023-11-16 15:44:27

TechnBrains: Your Go-To for [Android App Development Agency](https://www.technbrains.com/mobile-application/android-app-development/). We create robust, scalable, and futuristic native Android applications. Digitize your business for global success with our expert developers. Our services ensure application excellence, 24/7 development, and optimized design.

**Android App Development Services**

Custom app development with appealing UX/UI design.
Experienced developers for redesign or new projects.
Industry-leading services tailored to diverse needs.

**Why Choose Us**

1. Years of experience in custom app development.
2. Diligent efforts for the best app design.
3. User-oriented services for efficient and feature-packed apps.
4. Top-rated agency in the USA for quality and dedication.

**Key Features**

1. - Location-enabled services
2. - Convenient UI/UX designs
3. - Mobile messaging
4. - Data security
5. - Lightweight apps

Trust us to build not just apps but digital solutions for sustainable results. Solve problems, add convenience, and navigate with ease through our top-quality Android applications. Your success, our priority!
Utilização de Views SQL em Golang
Tags: sql, go, webdev
Published: 2023-11-16 15:34:26

As views desempenham um papel importante ao facilitar o acesso aos dados de uma ou várias tabelas, minimizando a necessidade de acesso directo à tabela real.

O emprego de Views pode se mostrar vantajoso quando desejamos combinar diversas tabelas, formatar e ordenar os dados que necessitamos manipular em nossa aplicação.

Para obter os dados de uma View com a linguagem Go, é essencial criar uma estrutura (Struct) com atributos correspondentes à estrutura da View SQL.


Código fonte: https://github.com/ortizdavid/golang-fiber-webApp



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

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

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


![Uploading image](...)