teleren/devto huggingface dataset:
Day 962 : All I Need
Tags: hiphop, code, coding, lifelongdev
Published: 2024-06-04 04:13:47

_liner notes_:
- Saturday : Had to do a couple of chores (like cleaning out the fridge in my van) so I got to the station a little later than normal. Got my equipment set up. Of course, my laptop would decide that a firmware update would be a good thing to do! Luckily, it didn't take too long and I was able to finish getting ready. Did the show and had a good time. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of a screenshot saying that the firmware is being updated with the words June 1st 2024 22,000](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cv7pzbt2uzmpvuctsdwm.jpg)

- Sunday : Had a pretty good day. Still tired from my trip, but still did my https://untilit.works cyphers and got some stuff done.

- Professional : First day back at work from vacation. Had a couple meetings. It was good to see everyone. Spent the day trying to catch up, replied to community questions, submitted some expenses and started cleaning up some code.

- Personal : Been updating my travel site https://dwane.in with pictures and videos from my trip to Japan. There's some video still left on my Meta glasses, but for some reason, I can't connect to them to be able to download the videos. The RayNeo X2 glasses that I ordered arrived while I was away. Looking forward to playing around with them and see what I can do. I saw that some people installed Microsoft Edge browser on them. I'm wondering if they can do WebXR.

![The photo shows a lush green valley with rice terraces in Banaue, Philippines. The terraces are built on the slopes of the mountains and are irrigated by a complex system of canals. The terraces are planted with rice, which is the staple food of the Philippines. The photo was taken from a high angle, which gives the viewer a panoramic view of the valley. The scene is one of peace and tranquility. The only sound is the gentle rustling of the wind through the rice plants.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ej0v2lm0q0mdysrwy5h.jpg)

So many projects I want to work on! haha All I need is time. Been watching videos from Google I/O and been diving into running Machine Learning models in the browser. Did a couple of quick proof of concepts and it's kind of amazing! Going to work on my current side project so I can knock it out this week so I can start on another one.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube sgK6xkf18qo %}
Vacuum Pumps: Enabling Vacuum Packaging and Sealing Processes
Tags: vacuum
Published: 2024-06-04 03:54:41

Vacuum Pumps: a Tool powerful in Packaging
We often see food products which are tightly packed and sealed when we go to the grocery store. Have you ever wondered how the fresh air is removed from the package? where vacuum pumps come in. Vacuum pumps are machines used to remove air and gas molecules from a container sealed creating a vacuum. 

Advantages of Vacuum Packaging 
​Vacuum Pump packaging has been a innovation great the food industry. By removing the fresh air from the package, it prevents food from oxidizing, which can cause spoilage. This method of packaging also slows down the growth of bacteria and other microorganisms that can cause food poisoning. 

Another advantage of vacuum packaging is that it prolongs the shelf life of food. This is because the amount is reduced by it of moisture that can cause food to spoil. Foods like meat, vegetables, and cheese can last longer when vacuum-sealed. 

Innovation in Vacuum Pumps
Over the years, vacuum pumps have undergone significant changes, with newer models featuring technology improved provides better performance. Recent innovations include oil-sealed vane rotary, which are used for medium to high vacuum applications, and dry screw pumps, which don't require oil, making them green.  

Safety Measures in Using Vacuum Pumps
When operating vacuum pumps, safety is a factor critical. Always read the user manual before use and follow procedures that are proper operation. Vacuum pumps are high-pressure machines that can cause injury if mishandled. Never touch moving parts while the machine is in operation, and always use safety equipment proper. 

How to Use Vacuum Pumps
Utilizing a vacuum pump is a process straightforward. First, place the food item inside the bag vacuum-sealed. Next, place the end open of bag over the suction nozzle of the vacuum pump and turn it on. The air will be removed from the bag, creating a seal tight the food item. Once the vacuum pump has removed the air, the bag will automatically seal. 

Service and Quality of Vacuum Pumps
When purchasing a Other Pump, it is essential to consider the ongoing service and quality. Look for a reputable manufacturer that has been in the business for a long time and provides support after-sales. The quality of the vacuum pump should also be an option primary. Choose a pump with high durability, reliability, and efficiency to ensure its long service life and performance high. 

Applications of Vacuum Pumps 
Vacuum pumps have several applications in different industries, including the beverage and food industry, pharmaceuticals, and electronics. In beverage and food, Rotary Vane Vacuum Pump are used in food packaging, bottling, and processing. In the industry pharmaceutical they are used in the production of vaccines, medicines, and other medical products. Lastly, vacuum pumps are used in the electronics industry to manufacture semiconductors and other computer components. 


Source: https://www.youchengzhixin.com/vacuum-pump
Deploying NextJS app to mobile App Stores using CapacitorJS
Tags: nextjs, ios, android, javascript
Published: 2024-06-04 03:51:32

## Have you ever thought of having a single codebase for your web and mobile apps?

I was recently tasked with a SPIKE ticket to research the gap analysis of getting our app to Google Play and App Store. What immediately popped up in my head was `react-native`. So I searched for popular frameworks that supported this. The top choice was [Solito](https://solito.dev/). It solved 2 things:
- NextJS navigation on mobile
- patterns to build cross-platform apps

The problem was I had to rewrite a lot of code to convert it to `react-native-web` to support native components.
So I asked around the team for some perspective. One suggested [CapacitorJS by Ionic](https://capacitorjs.com/). It was the perfect solution for the requirement!

## Basic setup with my NextJS app
- basically, follow this guide https://capacitorjs.com/docs/getting-started

## Few things to make your life easier
- Use JDK 17 (this is the best version to use with Android to prevent Gradle build issues)
  - Use this guide to change your default version https://stackoverflow.com/a/24657630
- Create an `index.html` file inside your `/public` dir that contains:
```
<head></head>
```
  - see the note here why you have to do this https://capacitorjs.com/docs/getting-started#add-capacitor-to-your-web-app

## Common build errors with `npx cap sync`
- if `/out` dir is missing, you have to update your `next.config.js` to include `output: export` instead of `output: standalone`
- if Gradle build errors, check if you are using the correct JDK version
- if iOS error
  - update your XCode
  - install cocoapods using `brew install cocoapods`

## Conclusion
Easy, right? Just make sure your web app is responsive and it should just work smoothly. 🚀 Good luck, mates!
**🎉 iPhone 15 Pro Max Giveaway! 🎉**
Published: 2024-06-04 03:46:51


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2h05tq1ski48mb28ft5m.jpg)
[We're excited to announce our latest giveaway! One lucky winner will receive the brand-new [iPhone 15 Pro Max](https://sites.google.com/view/3214547/home). Don’t miss out on your chance to own this amazing device! 📱✨]

**How to Enter:**

1. **Follow Us:** Make sure you're following [@YourInstagramHandle](#) on Instagram.
2. **Like this Post:** [Give this post a thumbs up! 👍](https://sites.google.com/view/3214547/home)
3. **Tag 3 Friends:** Tag three friends in the comments who would love an iPhone 15 Pro Max! Each comment counts as an entry, so tag as many friends as you want.
4. **Share to Your Story:** Share this post to your story and tag us so we can see it.

[**Bonus Entry:**](https://sites.google.com/view/3214547/home)

- Share this post on your feed and tag us for 5 extra entries!

**Rules:**

- This giveaway is open to residents worldwide 🌍.
- You must be 18 years or older to enter.
- The giveaway ends on [End Date], and the winner will be announced on [Announcement Date].
- This giveaway is not sponsored, endorsed, or administered by, or associated with Instagram/Apple.

[**Good Luck! 🍀**](https://sites.google.com/view/3214547/home)

#Giveaway #iPhone15ProMax #FreeiPhone #Contest #Win #TechGiveaway

Win iPhone 15 pro max
[Conceito] - Não Use HTTP 404 ou 204 para Buscas Sem Resultados
Published: 2024-06-04 03:45:15

> Conteúdo original em https://x.com/zanfranceschi/status/1797835707962245352

---

Ei dev,

Bora falar um pouco de semântica HTTP e porque acho FEIO retornar um 404 numa busca sem resultados?

No HTTP, uma imagem, uma folha de estilos, um arquivo javascript e detalhes de um usuário em formato JSON são todos igualmente considerados RECURSOS. TUDO É RECURSO!

🧵

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

---

E como TUDO É UM RECURSO, um endpoint de busca também é um recurso por si só!

Vamos supor os seguintes endpoints:

GET /users/:id - retorna detalhes de um usuário.
GET /users?q=:termo - retorna o resultado duma busca.

---

Dado que todos nós concordamos que GET /users é um recurso (certo?), o CONTEÚDO desse recurso, que é o resultado duma busca, por exemplo, pode ou não conter informações em formato de lista sobre usuários com atributos que se assemelham ao termo usado na query string 'q'.

---

O retorno de GET /users?=berto poderia ser algo como:

[{"nome": "Roberto"}, {"nome": "Adalberto"}]

E uma chamada para o mesmo recurso de busca com parâmetros diferentes – GET /users?=jubis – poderia retornar algo como:

[]

...uma lista vazia.

GET /users é um recurso – sempre!

---

404 é considerado um erro de quem chama seu servidor informando um recurso inexistente! O recurso de busca tá lá, o que não tá é o usuário com o nome Jubiscleiton que você colocou no parâmetro de busca. Faz sentido?

---

Se você é (era?) do time 404, espero ter te convencido de que uma busca é um recurso por si só.

Agora vou falar com você que é do time 204. Fica junto, cola na grade.

"Ain, mas não tem resultado, então não tem conteúdo, então é 204" ouço você resmungar. Rola pra baixo. ↓

---

SEMANTICAMENTE, a gente usa 204 pra quando estamos cagando para o (não) conteúdo.

Por exemplo, quando você manda um PUT /users/1, foda-se o corpo porque você sabe o novo estado do recurso. Tudo que importa é um retorno HTTP com status 204 dizendo que sua requisição deu certo. 👍

---

E num recurso que retorna, p.ex., uma lista (vazia ou não), você se importa com o corpo. É muito mais uniforme verificar o tamanho da lista do resultado da busca, por exemplo. Do contrário, você teria que verificar o status code pra ver se tem itens na lista. ↓

---

if vote 200t
 then prinltn(data)
else if vote 204t
 then "sem resultados"

🙄

---

Pra finalizar, uma singela homenagem ao @leandronsp:

Poesia "Pelo Reconhecimento da Busca Como um Recurso" by Zan:

GET /users/:id é a comida
GET /users?q=:termo é o pote
E o pote vazio
Não deixa de ser um pote

---

Mais uma coisa: se você tá mexendo num legado que retorna 404 ou 204 pra uma busca vazia e simplesmente não existe benefício em mudar isso, não sofra. O que importa em primeiro lugar é funcionar – seja com 404 ou 204, sinceramente.

---

Muito obrigado se chegou até aqui.

E não esqueça de deixar seu like, se inscrever no canal, e ativar o sininho pra você não vídeo novo do canal.

😗
REDEEM YOURSELF AFTER CRYPTO SCAM WITH CYBERPUNK PROGRAMMERS
Tags: cryptocurrency, recovery, experts
Published: 2024-06-04 03:43:28

The expanse of online investments, where the allure of financial prosperity intertwines with the shadows of deception, my journey commenced with a glimmer of optimism and concluded amidst the depths of disillusionment. In March of this year, I embarked upon what I believed to be a judicious venture—a $90,000 investment in an online platform promising boundless avenues for growth and prosperity. Little did I fathom, that this choice would unravel the fabric of my fiscal security and plunge me into a quagmire from which escape seemed improbable. Initially, the signs appeared propitious—the market surged, and my investments flourished. With each passing day, my confidence burgeoned as my funds purportedly multiplied. However, beneath the facade of success lurked a malevolent truth—a truth that would shatter my illusions and leave me grasping for answers in the depths of night.On an ostensibly ordinary eve, my world was upheaved. Retiring to bed with aspirations of financial autonomy, I awoke to a nightmare of staggering proportions. The $20,000 withdrawal I had requested remained untouched, and an ominous missive awaited me at dawn—a stark reminder of the bitter reality that awaited me. According to the correspondence, I had ostensibly squandered my entire investment overnight, liquidating all positions at a staggering loss. Bewildered and incensed, I racked my brain for any semblance of recollection, only to be met with hollow echoes where memories ought to reside. The veracity was undeniable—I had fallen prey to a nefarious machination, orchestrated by clandestine forces intent on profiteering at my expense.In the depths of despondency, I sought solace in the sole lifeline within my grasp—Cyberpunk Programmers. With trepidation and a flicker of hope, I beseeched their aid, guided by the faint whisper of potential amidst the abyss of uncertainty. From the moment of contact, I was greeted with empathy, professionalism, and unwavering resolve. Cyberpunk Programmers emerged as my stalwart ally in the quest for reparation, navigating the labyrinth of online deceit with precision and expertise. With each passing day, they imparted reassurance, counsel, and a glimmer of hope amidst the gloom. Their relentless endeavors culminated in a triumphant reclamation of my assets, restoring equity where erstwhile lay despair. I stand as a testament to the transformative prowess of Cyberpunk Programmers—a steadfast beacon amidst the tumult, a bastion of hope for those ensnared in the murky morass of deception. With profound gratitude and unwavering admiration, I extend my heartfelt commendation to Cyberpunk Programmers, whose resolute commitment to rectitude has forever altered the trajectory of my narrative.Simply visit their website CYBERPUNKERS DOT ORG or email CYBERPUNK @ PROGRAMMER . NET
MindMap for full stack developer interview 🎉
Published: 2024-06-04 03:37:24

Hello devs! 🫶🏻

Here is roadmap of Interview preparation in 30 days, everything you need to hit your full stack developer interview!🙌🏻

First thing First 
Follow on Instagram : [@codeandCrunch](https://www.instagram.com/codeandcrunch/)

Here is MindMap link https://miro.com/app/board/uXjVKAYFZuc=

![folllow](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vyiinxoqgcol51q7hb3x.gif)
Learnings from GenAI on AWS at Deloitte workshop
Tags: workshop, genai, aws
Published: 2024-06-04 03:18:45

I attended an in-personal workshop provided by Deloitte and AWS for NZ TechWeek24 on 22nd of May, noted down some key points that I probably can learn further with hands-on projects later. 

### Key concepts:

- LLMOps
- Considerations for shortlisting LLMs
- Hallucination & Retrieval-Augmented Generation (RAG) pattern
- Embeddings
- Conversational Buffer Memory
- Prompt Engineering Techniques
- Fine Tuning (just lightly touched)

### Some use cases in Deloitte we went through:

- Customer support GenAI POC - understand customer query, extract relevant parts, draft email/slack responses (100% consistency of response msgs), and then provides links to knowledge base - 25% decreased request handling time
- Knowledge Base Summarisation for Chorus - [more to read](https://www.deloitte.com/nz/en/about/media-room/deloitte-new-zealand-achieves-aws-generative-ai-competency.html)
- Query Structured Data from internal supported vector data store - using the same stack/tools we used in labs below

### The stack and tools we used in the labs:

- Python boto3
- [Amazon Bedrock](https://aws.amazon.com/bedrock/) - fully managed service for using foundation models from Amazon and third parties
- [LangChain](https://python.langchain.com/) - Python and JS libraries, provides convenient functions for interacting with Amazon Bedrock’s models and related services like vector databases
- [Streamlit](https://streamlit.io/) - quickly creates web UI from Python without much frontend skills, great for POCs ([Streamlit API Reference](https://docs.streamlit.io/develop/api-reference))
- [Amazon Titan Embeddings](https://aws.amazon.com/blogs/machine-learning/getting-started-with-amazon-titan-text-embeddings/) - converts natural language text into numerical representations for later use cases such as searching or comparing semantic similarity

If you are interested in GenAI on AWS, there are a few [skill builder free labs for AI Readiness](https://skillbuilder.aws/generative-ai) to explore around.
Photographie de portrait professionnelle : créer des images intemporelles
Published: 2024-06-04 03:13:49

Comprendre le sujet
Pour capturer l’essence d’une personne, un photographe doit comprendre qui il photographie. Cela peut impliquer de rechercher les antécédents du sujet, de discuter de ses préférences et de comprendre le but du portrait. Qu’il s’agisse d’un portrait professionnel, d’un portrait de famille ou d’un projet artistique personnel, il est essentiel d’adapter l’approche aux besoins spécifiques et à la personnalité du sujet.

Le sens des affaires
En plus des compétences artistiques, un photographe portraitiste professionnel doit posséder un sens des affaires. Cela comprend la gestion des réservations, la tarification appropriée des services, la commercialisation de leur travail et le maintien d'une présence professionnelle en ligne. Le réseautage et l'établissement de relations au sein de l'industrie peuvent conduire à davantage d'opportunités et de références de clients.

https://www.gabrielgorgi.com
[Game of Purpose] Day 16
Tags: gamedev
Published: 2024-06-03 22:57:10

Today I completed watching [tutorial](https://www.youtube.com/watch?v=7PRo8gK6SNM) about integrating Perforce in Unreal Engine.

I learned about World Partitioning where by default in a level all the items are stored in 1 file. It means that only 1 person can edit it at once. This makes it counter-productive in bigger levels.

In World Settings you can enable "Use External Actors" to make Unreal store all the instances in a level in separate files


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

You can see in a file tree that all the objects in a level are stored as separate files in "\_\_ExternalActors\_\_" and "\_\_ExternalObjects\_\_" folders.

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

In deciding what to use: Git or Perforce I was really hesitating. I knew git and it would have been way faster for me to use. However, I decided to take time making friends with Perforce. I read it's a standard in Gaming Industry the same as Git is in Programming Industry and I wanted to know why. What are its pros and cons.

Overall, I am pretty satisfied I spend a couple of hours learning Perforce. The major difference between Git is that Perforce makes sure only 1 person can edit a file at a time, since there is no way of resolving conflicts. "Depot" is a Git repository. "Stream" is a Git branch. "Submitting a changelist" is pushing a Git commit.

I am convinced I will use Perforce for my projects in Unreal Engine. It's free for up to 5 people, but the server cost is higher than Git ones. I currently use a 16$/month droplet with 1vCPU, 2GB of RAM and 70GB of SSD storage with 2TB free fransfer. The power of this server is not a problem, since I am the only person to use it. It has a CPU bottleneck when I upload heavy files, but I'll probably do it once in a while, so I can live with that. The problem is storage. Additional 100GB cost 10$/month. That'll be 26$/month and I'm not sure if this strategy is sustainable in the long term. Anyway, for now I'll probably leave this setup as it is, because I want to focus on Unreal Engine and not how to store its files.
Shanghai Jinli Special Rope Co., Ltd: Your Off-Road Towing Expert
Tags: off, road, rope
Published: 2024-06-04 03:05:41

Innovation
Shanghai Jinli Special Rope Co., Ltd strives to boost their products or services. They use the latest technology to create far ropes more durable, more powerful and safer. Their team of specialists is always finding latest ways to innovate and generate items satisfy their customer's specifications. 

Shanghai Jinli Special Rope Co., Ltd is ways being always finding make their braided winch rope best. They use the latest equipment so as to make their ropes more powerful and safer. 

Shanghai Jinli Special Rope Co., Ltd is the ongoing looking team to innovate. They use the latest technology to create top quality much rope more durable and safer for their clients. 

How to Use
Using Shanghai Jinli Special Rope Co., Ltd goods is straightforward. What you need to do is proceed with the instructions which can be incorporated with the item. The ropes are extremely simple to manage and come and safety properties to avoid injuries. 

Shanghai Jinli Special Rope Co., Ltd ropes are actually an easy task to use. Just check out the instructions that may come you may have the ability to use it along with it and. Additionally, they need safety services to prevent accidents. 

Utilizing Shanghai Jinli Special Rope Co., Ltd products is simple. The ropes come with clear guidelines on how to use them and next to your skin integrated safety qualities to prevent accidents. 

Quality and Service
Shanghai Jinli Special Rope Co., Ltd prides itself on providing high quality products client exceptional service. They require their customers to be happy with their purchase and they have been always willing to assist them and any relevant issues they might have.  

Shanghai Jinli Special Rope Co., Ltd renders good items helps their customers. They want their clients to become happy and can help them if any relevant questions is having with them. 

Shanghai Jinli Special Rope Co., Ltd is an ongoing company values quality and service. They provide top notch products and excellent consumer to help make their clients certain is quite happy with their purchase. 

Application:
Shanghai Jinli Special Rope Co., Ltd things have wide range of applications. They might be used whenever camping, taking a look at, or whenever hunting for help associated with the tow. Their product is perfect for people who love the desire and outside to get ready yourself for virtually any circumstances which could arise. 

Shanghai Jinli Special Rope Co., Ltd ropes could feel precisely used whenever you may be exploring or camping. They might furthermore become helpful as soon as you need to tow strap recovery kit such a thing. They are ideal for people who love the outside. 

Shanghai Jinli Special Rope Co., Ltd products have wide range of applications. They could be used whenever checking away or camping and are helpful, the  moment your car or truck need a tow. They are ideal for those who want to get ready for virtually any circumstances once venturing to the excellent out-of-doors.


Source: https://www.cneema.com/application/recovery-rope