teleren/devto huggingface dataset:
Getting extra (without any content) option for a quiz question.
Published: 2023-05-26 04:32:42

I am using model "text-davinci-003", wanted to create a quiz question, I am getting the quiz with questions but also I am getting and extra option with empty content.
Here is the example:-

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

Do anyone face the same issue?
Meet Cerebrum: Your New Coding Assistant
Tags: ai, webdev, programming, coding
Published: 2023-05-26 03:30:13

There's a new ~~ AI ~~ coding assistant on the block, and it outshines all others I've seen by a very wide margin... let's take a look:

![Use your brain](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v7hqd3emqqu3l7o08jl5.jpg)
A Lightweight Package to Generate CSS and JS Variables
Tags: css, npm, frontend, cssvariables
Published: 2023-05-26 03:26:51

---
title: A Lightweight Package to Generate CSS and JS Variables
published: true
description: Generate CSS and JS variable files based on a theme configuration.
tags: css, npm, frontend, cssvariables,
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-26 00:00 +0000
---
Developers love new projects. The blank canvas. 

One of my favorite things to do in a new project is setup the theming, thinking about the look and feel of the new application. But the work becomes tedious, and I end up copying and pasting a lot of css and js variables from old projects.

To solve my problem, I created a lightweight, probably too simple, package called [varbq](https://www.npmjs.com/package/varbq), pronounced like barbeque, because, hey, Memorial Day is coming up.

I tend to use the same theme format over and over again, which is very similar to what the amazing book, [Refactoring UI](https://www.refactoringui.com/), lays out.

Theses projects generally have primary, secondary, accent, and grey colors, each having between five and nine shades, for example, primary200 or accent900. They'll also include spacing sizes to keep the app uniform, like `spacing100: 4px`, `spacing200: 8px`, etc. The same goes with typography, shadows, and occasionally screen size. 

This is where `varbq` comes in handy.

After installing, run the command `npx varbq build` to create the varbq.json file. Passing in optional flags `--js` or `--css` only creates those files (for example if it's a React Native project), otherwise both get generated. This command will create a `varbq.json` file if one doesn't exist. 

Each key in the file will create variables based on the array of values, incrementing by 100. So...

```json
{
  "primary": ["hsl(216, 99%, 98%)", "hsl(216, 98%, 92%)", "hsl(216, 95%, 86%)"],
  "spacing": ["4px", "8px", "12px"]
}
```

becomes...

```js
export const varbq = {
  primary100: "hsl(216, 99%, 98%)",
  primary200: "hsl(216, 98%, 92%)",
  primary300: "hsl(216, 95%, 86%)",
  spacing100: "4px",
  spacing200: "8px",
  spacing300: "12px"
}
```

and...

```css
:root {
  --primary100: hsl(216, 99%, 98%);
  --primary200: hsl(216, 98%, 92%);
  --primary300: hsl(216, 95%, 86%);
  --spacing100: 4px;
  --spacing200: 8px;
  --spacing300: 12px;
}
```
The variable files live in `varbq/` at the root of the project. 

Check out the docs for more information and let me know any features you'd like to see in the future.
Demystifying Large Language Models and ChatGPT: A Brief Explainer
Tags: ai, chatgpt, machinelearning, gpt3
Published: 2023-05-26 03:09:35

The buzz surrounding ChatGPT and large language models (LLMs) is both exciting and fascinating. However, I've noticed a broad misunderstanding about how these models function, leading to assumptions that skew more towards science fiction than the reality of artificial intelligence. Although most of us aren't AI specialists, a basic understanding of these models can help dispel these misconceptions.

Consider this: I give you the word "peanut" and ask you to suggest the next word. Your response—be it "butter" or something less expected—is influenced by a mix of cultural knowledge, common phrases, and personal preferences. As we continue this exercise, your subsequent choices evolve as the context expands.

This mirrors how an LLM like GPT-3 generates text. Each word—or more accurately, "token"—is chosen based on the prior context, just as you chose words following "peanut". The model processes each token as a self-contained request: "Given these previous words, what's the most likely next word?"

The key takeaway is this: **LLMs don't learn from individual interactions**, nor do they make plans. They're sophisticated statistical machines that produce rich representations of language. At their core, they're executing a complex series of mathematical operations repeatedly. When they're not actively generating tokens, they're not "present" in the way a human mind would be. **They're not waiting, thinking, or sleeping any more than a calculator does between operations.**

I hope this explanation demystifies the functioning of LLMs. As developers and tech enthusiasts, it's crucial for us to comprehend the workings of these powerful tools as they continue to shape our world.
seeking recommendations
Published: 2023-05-26 02:10:39

Hello everyone,

I'm thrilled to share that I've embarked on an exciting journey as a beginner game developer! As someone who has always been passionate about games and their ability to transport us to new worlds, I've decided to take the plunge and dive into the world of game development.

While I'm incredibly excited about this thing, I also realize that I have a lot to learn and a long road ahead. That's why I'm reaching out to the experienced game development community for guidance and recommendations as I embark on this adventure.

I'm truly grateful for any guidance and recommendations you can provide. I believe that learning from the experiences of others is invaluable, and I'm excited to receive input from the game development community.

Thank you all in advance for your support, and I look forward to connecting with you and sharing my progress as I embark on this exciting journey!
6 Qualities of a curious developer
Tags: programming, beginners, coding, devjournal
Published: 2023-05-26 01:34:00

6 Qualities of a curious developer 


1. They uncover layers of abstractions.

2. They are not ashamed to ask questions.

3. They see bugs as cases to crack.
 
4. They step out of their comfort zone.
 
5. They question every requirement.

6. They are curious about other disciplines.


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


Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more about DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
Answer Dev Questions #1: Demystifying Special Characters in Paths
Tags: linux, beginners, path, javascript
Published: 2023-05-26 01:23:21


Recently, while engaging in a online discussion, a question caught my attention. 

> Sometimes i see symbols like “@“ or “**” or “*” or “^” or “~”
And I don't know what are they used in ..?!

I wait some time, but I saw that anyone answer the question, I just saw one intention to doit that was a link of a blog post that not track the entire question. So I take the time to answer it, and after doing it I just ask to myself: Why do not create post of this answer?

So here I am, maybe for expert it sounds easy-peasy or like a piece of cake but for the most beginers that try to find some guide in the masive world of things it could be helpful.

All this symbols in the question are  for different things.


## @
_Let start with the **at symbol (@)**._ As the question was asked about a js file, so I could say that in JS projects is used to have a convenient way to access to root folder of your app. 
**Instead of doing `../../../../../../../../../`**, accesing from the root could be shorted but the most important benefit is that **alias is the same for every file**. So **moving file dont need update imports**. 
For more information check the [rollup alias plugin](https://github.com/rollup/plugins/tree/master/packages/alias#readme) 

## \*, \**, ^
**The asterisks (* or **), carret(^),** is more a OS thing or to be specific is part of glob (https://en.wikipedia.org/wiki/Glob_(programming)). 
In general it means the following:

- \* (any file)
- \** (any folder)
- ^ (exclude this, but I think that you need some extension of glob or something like that. check this [discussion about it](https://unix.stackexchange.com/questions/355967/what-does-the-caret-do-in-zsh))

## ~

The tilde symbol (~) is for user directory. In linux you could go to your user directory using "cd ~" any time. Some any path written with than means that is searching the path starting form user directory, it an alias already provided by the OS. [Check this link](https://en.wikipedia.org/wiki/Tilde#Directories_and_URLs)

I hope this explanation was helpful to you, because I really enjoy wrinting this answer.

See you in the next one.

Here my links.
[Twitter](https://twitter.com/Daniacu98)
[Github](https://github.com/DaniAcu)
M1 Finance Review 2023:Everything You Need To Know Moneygigs
Tags: webdev
Published: 2023-05-26 01:09:23

In this **[M1 Finance Review 2023 article](https://moneygigs.site/m1-finance-review/)**, we will take a closer look at M1 Finance and discuss its features, fees, pros, and cons. We will also compare it to other popular investment platforms, such as Robinhood and Acorns.
Microsoft Build AI
Published: 2023-05-26 01:01:13


[](https://iamtimcorey.buzzsprout.com/1183862/12913992)

🚀 Exciting news from Microsoft Build AI! 🌟 As a developer, I'm thrilled to see the groundbreaking advancements showcased today. The future of AI is brighter than ever, and Microsoft is leading the charge with their innovative technologies and tools. From enhanced natural language processing to cutting-edge computer vision, they're empowering us to build intelligent and transformative solutions. Kudos to the amazing team behind these advancements! Let's embrace this AI revolution and create a world where technology works seamlessly with human potential. 🌐🤖 #MicrosoftBuildAI #AIRevolution #DeveloperLife``
The 10th day of the 100 Days of Code challenge
Published: 2023-05-25 22:36:52

Today, I sadly didn't do much. I tried to get started on a Countdown Timer app as I don't wanna feel too inexperienced before getting into the app I wanna make. I also feel super overwhelmed by the UI of the app. I'm not the most creative person on earth, so tomorrow, I'll try to get some inspiration online and get to designing on Figma. I'll watch a tutorial or two of real life projects done on Figma, that way I can get _some_ intuition for this.

There's no better time than the present to start working on a project, I better just learn on the go and readjust as I go. Doing 1000 projects might make me better, but it's better that I focus on what I need at the moment instead of doing random, pretty unstructured things.

I prefer to break down my current problems into smaller pieces, and do some more projects on the go when the project goes well. Because right now, whenever I opt for something else, it feels like I'm running away from the actual project.

Tomorrow is a travel day, so I'll try to put in some work in the morning before I have to go to the airport!

That's it for today, happy coding everyone!

Edit:
Another 10 minutes dedicated to the Atomic Habits book. I read about how your environment influences your habits, be it good or bad habits. For example, if you kept seeing your electrical meter, you'd be conscious of your usage and would probably use less electricity than you would if you didn't see it at all. For me, the streak of doing at least something related to programming each day keeps me going. That's the strongest cue to trigger this behavior, as the further I get, the harder it'd be to get to the same point from scratch.

Now heading to bed, good night everyone! Hope I'll do some reading on the plane. Can never plan for what I'll do on a plane.
Pebl Release 0.0.4
Tags: pebl, devops, cloud, infrastructureascode
Published: 2023-05-26 00:16:17

## Quick Summary

Previously all pebl services were external facing. But a very common way of
organizing distributed systems is by creating internal (micro)services that
handle a localized part of the whole system.

With release 0.0.4, we introduce a new SDK binding that supports internal
only services.

## Longform

The previous `service` binding remains unchanged. Using it will create
a service that is exposed to external traffic.

Release 0.0.4 introduces the new `internal_service` binding. Unlike the
external counterpart, this method will create a service that's only
reachable from other running workloads.

```go
package main

import (
    "net/http"
    "github.com/peblcloud/go/sdk"
)

func main() {
    service := http.NewServeMux()

    service.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("some internal service!\n"))
    })

    sdk.InternalService(service, "svc.internal")
}
```

Note that the `endpoint` parameter here can be anything as long as it is
in a valid domain format. We recommend creating an internally consistent
scheme by adopting a TLD for all internal services, such as `.internal`
or `.local`.

## Upgrading

Make sure to download the latest pebl CLI, which will be needed in order
to utilize the new release on your local cluster. Follow the section
about installing the CLI in the [setup guide](https://docs.pebl.io/setup).

### Go

The Go SDK is available with the [0.0.4 tag](https://pkg.go.dev/github.com/peblcloud/go/sdk).
You can update your Go projects by running `go get github.com/peblcloud/go@v0.0.4`.

### Python

The Python SDK is available as pre-built [docker images](https://hub.docker.com/r/peblcloud/python).
Update your Python projects by changing the `Dockerfile` to utilize
one of the 0.0.4 images.
The Plan of an Opensource Education Platform!
Tags: opensource, rust, programming, news
Published: 2023-05-26 00:10:46

## A Little History 

One of my first projects that I built in highschool was called MKhan Reference Library and its goal was to build a website that provides different kinds of school material for various grades. The project wasn't the best considering it had copyrighted material, and was abandoned as I further progressed past web development. 

But...considering it was my first project it did show what my underlying interest was, an educational platform. I love talking about programming, I love working on it and teaching it, so why not put all of those together into my first business. 

## Edu-Byte!

The platform is called Edu-Byte and I don't expect it to be out of speculation until after a few years of development. My plan for this platform is to build an opensource, people focused educational website that will provide material and resources that will help someone learn any language they'd like. 

Well saying any language they'd like gives me anxiety considering I'm the only person working on it at the moment, but I hope to expand with others as the idea becomes more clear. 

## Content Plan

In the early preview I plan on creating content on languages like Rust, Zig and C, which I am comfortable with, and I hope to get others to help me on different languages. At the moment I am writing `Zig Unleashed` which will be the first book written for this platform. 

To explain the different content planned for this platform, it might make sense to look at a little diagram based on the code written for `edubyte-metadata`: 

```
Free => Article Types/ 
           Topic 
           How to Guides 
           News 
           TrainLings 
Paid => Paid Types/ 
           Udemy courses 
           Ebooks / Book (distr. Amazon) 
```

In terms of paid content I have planned for 5 different price tiers ($CAD) that a book could fall in, this depends on the type of content it covers and its length. (These are exclusive ranges)

- Tier 1: $19.99 - $35.99
- Tier 2: $35.99 - $40.99
- Tier 3: $40.99 - $49.99
- Tier 4: $49.99 - $69.99
- Tier 5: $69.99 - $99.99

## Licenses 

All tools and code written for this project are planned to be under the GPLv2 license, while books will be under the CC BY-NC-ND 4.0 license. I don't have problems with pirating my books, so this license will allow you to distribute them without adaptation and for noncommercial purposes.

Comment below any features you'd like to see in this platform or any suggestions.
Content & Tooling Team Status Update
Tags: puppet, content, community
Published: 2023-05-26 16:15:08

---
title: Content & Tooling Team Status Update
published: true
date: 2023-05-26 00:00:00 UTC
tags: puppet, content, community
canonical_url: https://puppetlabs.github.io/content-and-tooling-team/blog/updates/2023-05-26-status-update/
---

## Puppet 8 Work is Coming to an End!

Thanks to the teams continued work we are closer than ever to finishing of this piece of work and getting all of our supported modules released with Puppet 8 support.

As it stands the only modules left are Stdlib, for which [Lukas](https://github.com/LukasAud) has completed the work, waiting only on a community PR to be merged before getting it released and Kubernetes for which [I myself](https://github.com/david22swan) have been working on and have nearly ready to go.

## Inherited Github Actions

Thanks to the team’s continued work our Inheritated Github Action runs are in a better state than ever!

Their implementation has cut down on the overhead for our work and helped give us the time we need to take care of the important problems.

## Deferred Function

[Sencha](https://github.com/Ramesh7) has been putting in the work getting this implemented within our modules and we are proud to announce that not only has Mysql been completed, merely awaiting release to be availible, but Sqlserver is all but done and is just waiting on being merge.

## Community Contributions

We’d like to thank the following people in the Puppet Community for their contributions over this past week:

- [`puppetlabs-stdlib#1357`](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1357): “Remove deprecated File.exists?”, thanks to [ekohl](https://github.com/ekohl) and the following people who helped get it over the line ([smortex](https://github.com/smortex))
- [`puppetlabs-tomcat#519`](https://github.com/puppetlabs/puppetlabs-tomcat/pull/519): “Optimize var types”, thanks to [Joris29](https://github.com/Joris29)
- [`pdk#1245`](https://github.com/puppetlabs/pdk/pull/1245): “pdk.md: update links”, thanks to [kenyon](https://github.com/kenyon)

## New Module / Gem Releases

The following modules were released this week:

- [`puppetlabs-vcsrepo`](https://github.com/puppetlabs/puppetlabs-vcsrepo) (`6.0.1`)

- [`puppetlabs-java_ks`](https://github.com/puppetlabs/puppetlabs-java_ks) (`5.0.0`)
Start your Print-On-Demand business with Printful + Vendure
Tags: printondemand, printful, vendure, tutorial
Published: 2023-05-25 23:57:10

Design custom products using your art, grow your business and sell globally and earn money from home with [Printful](https://www.printful.com/a/8074306:0740c8458e72a3681fd291d775230b6e). Everything is printed and shipped on demand, under your brand! Quickly customize your own branded products using the free Design Maker tool and reach customers globally using their 15 fulfillment centers.

[Vendure](https://vendure.io/) is a fast growing headless commerce solution with multi-vendor support in the upcoming V2 release on June 07, 2023 allowing you to build your own marketplace like Etsy or Amazon with ease. Today, we will be looking at setting up your own online store for selling print-on-demand products. Signup for a [Printful account](https://www.printful.com/a/8074306:0740c8458e72a3681fd291d775230b6e) and create a Manual order platform / API as there is no official platform support for Vendure at this time.

![Create Manual order platform / API](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y8vwcd3o4vtrapvuapkw.png)

Next, create a Private token over at [Printful Developers](https://developers.printful.com/login), select all options under scopes for your store and save the token someplace as it will not be shown once you navigate away from this screen. We will need to add this to the `.env` file as `PRINTFUL_AUTH_TOKEN` in our vendure app. If you are new to Vendure, checkout my earlier post to [spin up an e-commerce app in under a minute](https://dev.to/prasmalla/in-2023-set-up-a-nodejs-e-commerce-app-in-1-minute-with-vendure-qwik-bl7)! Now, create your products on Printful and add them to the store.

To start selling your products in under a minute, install the [vendure-plugin-printful](https://github.com/calliT-today/vendure-plugin-printful) with `yarn add @callit-today/vendure-plugin-printful` and add it to the plugins array in `vendure-config.ts`

```ts
AdminUiPlugin.init({
    route: 'admin',
    port: 3002,
    app: compileUiExtensions({
        outputPath: path.join(__dirname, '../admin-ui'),
        extensions: [PrintfulPlugin.uiExtensions],
        devMode: IS_DEV,
    }),
}),
PrintfulPlugin.init({ enabled: true }),
```

Finally, run `yarn dev` and go to [http://localhost:3000/admin](http://localhost:3000/admin) to import your Printful products and start selling! Remember to rebuild search index after import by clicking the gear icon next to the import button.


![Import Printful Products in Vendure Admin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgz6k729gtcj3lrliady.png)

When an order is placed, printful products are automatically pushed under draft orders and will need to confirm for fulfillment.

Find me on [twitter @prasmalla](https://twitter.com/prasmalla) if you have any questions/ feature requests & showcase what you build with it! I look forward to being your customer)👌
Configura ts-standard como linter en tu proyecto
Tags: eslint
Published: 2023-05-25 23:43:19

Primeramente, ts-standard es un linter y formateador de código basado en standard el cual nos va a ayudar a indentificar error de tipado y mejorar nuestro código.

Para instalarlo necesitas tener node y con el comando `npm install -D ts-standard` ya instalarias la depedencia de desarrollo.

Luego en tu fichero `.eslintrc.json` vas a extender tu configuración del linter con `"./node_modules/ts-standard/eslintrc.json"` y en el parserOptions apuntando al projecto `tsconfig.json`.

![Settings eslintrc.json](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1vdsabvyj7tp2ocjwna.png)

Y por último y no menos importante debes de tener instalada en tu VSCode la extensión de Eslint y ya con esto el linter estaria funcionando.
Introduction to computer vision
Published: 2023-05-25 21:56:05

Computer Vision is the subbranch of AI that focuses on the problem of teaching computers to see. 
Like other types of AI, computer vision seeks to perform and automate tasks that replicate human capabilities.

Some of its capabilities include:
Image capturing and processing—use cameras and other sensors to capture real-world 3D scenes in a video.
Object detection and image segmentation—divide the image into prominent regions and find where the objects are.
Object recognition-recognizes the object in a picture or video and also understands the details. 
Object tracking—follows moving objects in  consecutive images or video.
Gesture and movement recognition—recognize movements, like a dance move in an Xbox game.

Computer vision applications include 
Face IDs to unlock phones
Autonomous cars stopping when it recognizes an object. 
Autonomous navigation of drones.