HN user

hebrox

148 karma
Posts2
Comments98
View on HN

I ask it to write a plan and when it starts the work, keep progress in another document and to never change the plan. If I didn't do this, somehow with each code change the plan document would grow and change. Keeping plan and progress separate prevented this from happening.

I always have to think about "Eighty percent of success is showing up" when I read about participation trophies. I think it's a good idea to stimulate participation. "Winning" is something you only do if you participate a lot.

I think an analogy could be made that you’re walking into a market hall because they promoted it. The stall owners will be paying to be part of that. It’s not that you’re property of the market hall, but you’re on their property and they will want to be paid.

I would really like to have something local, without running into ChatGPT limits or costs. I looked at some text generation models, but I couldn't find any where you can ask a question and it generates the correct code.

Does anybody know if this is already available on Hugging Face or somewhere else?

I'm using TypeScript, so my idea would be to finetune on all used packages, maybe even all of the documentation as well.

I've created a small app where I create a prompt for an eslint error and let ChatGPT come up with a git diff. I manually feed that back to my application, it eslints and compiles and if there are any errors, a new prompt is generated. This works quite well.

GPT-4 is not available for me in the OpenAI API, so it's quite cumbersome.

I also gave it a shot. I'm Dutch and never heard of hot buns before, so I first tried to generate the prompt:

* This is a slogan for hot buns: "Go Out With All Buns Glazing." Can you explain why this is a good slogan? "Go Out With All Buns Glazing" is a good slogan for hot buns for several reasons:

* Can you list 10 characteristics of hot buns?

* Can you list 10 characteristics of Americans?

* As a hot bun company CEO can you write a briefing for a marketing firm to come up with 10 new ideas for a slogan. The slogan should contain at least 1 pun. The briefing should be 1000 words long. Please use this information in the briefing . A good slogan has these characteristics: [copy paste of previous answers]

And then in a new session:

As the creative director of a marketing firm, you get this briefing. Please generate 10 slogans. ```As the CEO of [Hot Bun Company], I am excited to collaborate with your marketing firm to develop a fresh, creative, and engaging slogan for our brand. Our hot buns have a reputation for being freshly baked, warm, and delicious, and we want our new slogan to effectively convey the unique appeal of our product. In this brief, I will outline the essential elements we would like to see incorporated into our new slogan and provide some background on the characteristics of our hot buns, as well as some general observations about common cultural characteristics often associated with Americans. Our goal is to create a slogan that resonates with our target audience and sets our brand apart.

To create an effective slogan, we would like to emphasize the following characteristics:

Play on words: Our new slogan should contain at least one pun, making it clever, memorable, and easily relatable to our product. Evokes imagery: We want the slogan to bring to mind the image of warm, freshly baked buns, enticing potential customers to try our product. Energetic tone: The slogan should have an energetic tone that appeals to consumers and makes our brand more memorable. Positive connotations: Incorporate elements that suggest our hot buns are made with great care and enthusiasm, encouraging customers to try them. Short and catchy: Finally, the slogan should be short, memorable, and easy to understand. When creating the new slogan, please consider the following characteristics of our hot buns:

Freshly baked Soft and fluffy Warm Glazed or topped Aromatic Versatile Golden brown Moist Comfort food Shareable Additionally, we want to ensure that our slogan resonates with our target audience – Americans. As such, please keep the following general cultural characteristics in mind during the slogan creation process:

Individualism Patriotism Optimism Consumerism Diversity Informality Work ethic Philanthropy Entrepreneurship Mobility By incorporating these elements, we believe that we can create a slogan that not only encapsulates the essence of our hot bun brand but also resonates with our target audience. Our objective is to receive 10 new slogan ideas that embody these characteristics while integrating at least one pun.

We trust your marketing expertise and creativity to develop a slogan that captures the attention of consumers and highlights the unique appeal of our hot buns. We look forward to reviewing your ideas and working closely with you to finalize a new slogan that will become synonymous with our brand.```

And the results:

"Bunbelievable Freshness: Taste the Warmth!"

"Hot Buns: America's Baked Bliss"

"Rolling in Flavor: Savor the Golden Goodness"

"A Bun in Every Oven: Fresh, Warm, United"

"Rise to the Occasion: Hot Buns, Hearty Smiles"

"Bake My Day: Irresistibly Soft and Shareable"

"Bun Voyage: Embark on a Warm, Fluffy Adventure"

"Bun Appetit: Taste the All-American Aroma"

"Happiness is a Warm Bun: Freshly Baked and Ready to Roll"

"The United Buns of America: Let Your Taste Buds Soar"

Not award winning, but some are pretty good.

Don't forget shipping!

ChatGPT summary:

In 2019, the world seaborne trade volume reached about 11.08 billion tons. Out of this, crude oil, oil products, and gas accounted for approximately 32.5% (3.6 billion tons) of the total volume. Coal made up another 8.4% (935 million tons). In total, energy products represented around 40.9% of the global seaborne trade volume.

It's important to note that these figures are from 2019, and the percentages may have changed since then due to various factors, including evolving global energy markets, fluctuations in demand, and the transition to renewable energy sources. The percentage may also vary depending on how you define "energy products."

Sources: https://unctad.org/webflyer/review-maritime-transport-2020

If it adds value, I think it's a good idea. But less is more, so right now I'm not inclined to add more to our CI/CD pipeline.

In the future our application will need to be able to run on mobile devices. Then I think I want to test it on a recent iPad, iPhone and Android device. We'll probably be using one of the tools you mentioned.

We're using Playwright [0] to do e2e testing. Locally I just run Chrome, but on CI FF and Safari are used as well. Using the official Docker image, this was really easy to setup. Because all browsers are automatically updated nowadays, we only test the most recent versions.

A recent issue we found, was that Safari was responding different to some HTTP headers.

[0] https://playwright.dev/