development

Inteiros sem sinais no Kotlin

No último post eu falei sobre os tipos de dados numéricos mais utilizados. Hoje vamos falar de outros tipos de dados numéricos, que não são tão utilizados pela maioria dos desenvolvedores. Hoje vou dos números inteiros sem sinal, mas o que isso quer dizer? São tipos de dados que só aceitam números positivos, onde o valor inicial começa em 0 e vai até a capacidade máxima permitida para o tipo em questão. O Kotlin fornece os seguintes tipos de dados para valores inteiros sem sinal: Tipo Tamanho (bits) Valor Mínimo Valor Máximo UByte 8 0 255 UShort 16 0 65535…
Read More
Run any code from Vim

Run any code from Vim

Do you want to quickly run and test any code without leaving Vim and without even opening a :terminal? There is a very simple way of achieving this. All we need is a runner function, a run command and a mapping to call it. Here is an example: function! CodeRunner() if &ft ==# 'python' execute 'RPy' endif endfunction Enter fullscreen mode Exit fullscreen mode and the run command: command! RPy :!python3 % Enter fullscreen mode Exit fullscreen mode and the mapping: nnoremap <F12> :call CodeRunner()<CR> Enter fullscreen mode Exit fullscreen mode I prefer to wrap the mapping and the run…
Read More
Generating replies using Langchain multiple chains and Gemini in NestJS

Generating replies using Langchain multiple chains and Gemini in NestJS

Introduction In this blog post, I demonstrated how to generate replies with multiple Langchain chains. Buyers can provide ratings and comments on sales transactions in auction sites such as eBay. When the feedback is negative, the seller must reply promptly to resolve the dispute. This demo aims to generate responses in the same language of the buyer according to the the tone (positive, neutral or negative) and topics. Previous chains obtain answers from the Gemini model and become the next chain's output. Similarly, the model receives the new prompt to generate the final reply to keep customers happy. Generate Gemini…
Read More
WebRTC Vs Websocket: Which is best for your application

WebRTC Vs Websocket: Which is best for your application

WebRTC and Websockets are both real time technologies, these technologies enable instantaneous exchange of data. Both the technologies are important for applications that require live interactions Common use-cases for these technologies include online gaming, live chats, live streaming and other low latency applications WebRTC (Web Real Time Communications) Webrtc allows peer to peer communication. With Webrtc you can share data and conduct video calling and live streaming. It is best for media streaming applications. WebSocket Websocket provides full duplex communication channels. It is best for chat applications, real time notifications and updates. Websockets also maintains persistent connections thus enabling instant…
Read More
React Native Speed Math App

React Native Speed Math App

Hello Everyone, I'm back after 1 year and 4 months.This time with react native project. Let's start the projectI created this project with Expo and used used Expo Router for routing.Create a new folder and open the terminal and run this command npx create-expo-app@latest Enter fullscreen mode Exit fullscreen mode After running this command successfully, You can remove the boilerplate code and start fresh with a new project. Run the following command to reset your project: npm run reset-project Enter fullscreen mode Exit fullscreen mode Before jumping to the code, let's understand the functionality of our app.When the user is…
Read More
Docker DevTools Day 2.0: Dive Deep into the Docker Developer Ecosystem

Docker DevTools Day 2.0: Dive Deep into the Docker Developer Ecosystem

Calling all Docker enthusiasts! Join us for the second edition of Docker DevTools Day Bengaluru on June 22nd. This community event is your chance to dive deep into the world of developer tooling that revolves around Docker. What to Expect Engaging Talks: Gain valuable insights from industry leaders as they explore cutting-edge tools, real-world use cases, and how to overcome common development challenges with Docker. Interactive Workshops: Solidify your understanding through hands-on exercises led by experts. Networking Opportunities: Connect with like-minded developers and industry professionals to share experiences and build a vibrant Docker community. Docker DevTools Day 2.0 Agenda Time…
Read More
Sử dụng MongoDB hiệu quả trong Nodejs

Sử dụng MongoDB hiệu quả trong Nodejs

MongoDB là một database hướng tài liệu (document), một dạng NoSQL database. Vì thế, MongoDB sẽ tránh cấu trúc table-based của relational database để thích ứng với các tài liệu như JSON có một schema rất linh hoạt gọi là BSON. MongoDB sử dụng lưu trữ dữ liệu dưới dạng Document JSON nên mỗi một collection sẽ các các kích cỡ và các document khác nhau. Các dữ liệu được lưu trữ trong document kiểu JSON nên truy vấn sẽ rất nhanh. 1. Khi nào nên dùng MongoDB? Ví dụ như các hệ thống realtime (thời gian thực) yêu cầu…
Read More
Solving Tailwind’s “Unknown at rule @apply”

Solving Tailwind’s “Unknown at rule @apply”

Originally posted in oh-no.ooo (Unknown at rule @apply... k thx bye!), my personal website. Chances are you are using VSCode, and chances are you're also using Tailwind in one of your projects. Chances are that at my first chances are... you went immediately nuh-uh and moved on (and if you're a NeoVim user I can't help you anyway, you're already doomed and lost in the recommended plugins someone chose for you and you're probably still figuring out half of them) but if I got your attention with the first two assumptions, then this post might be relevant for you! One…
Read More
CSS CANVAS

CSS CANVAS

https://github.com/Shivaya007/css-canva.git Inspiration My growing enthusiasm for web designing fuels my desire to dive deeper into this field. This passion motivates me to embrace new challenges, continually expand my knowledge, and refine my skills. I am excited to explore innovative design techniques, learn cutting-edge technologies, and create engaging, user-friendly websites. This challenge represents an opportunity for personal and professional growth, driving me to push my limits and achieve excellence in web design Demo Source link lol
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.