teleren/devto huggingface dataset:
Aya Rust tutorial Part Two - Setting up
Tags: ebpf, rust, linux, networking
Published: 2024-05-09 20:31:23

&copy; steve latif 

# Part Two: Setting up the Prerequisites


## Assumptions

All the examples will be run on Ubuntu Linux. On other distributions your mileage may vary


## First step: setup dependencies

Install packages 

    $ sudo apt install clang llvm libelf-dev libpcap-dev build-essential libc6-dev-i386  \
    graphviz  make gcc libssl-dev bc libelf-dev libcap-dev clang gcc-multilib  \
    libncurses5-dev git pkg-config libmnl-dev bison flex linux-tools-$(uname -r)

Verify that you have bpftool installed on your system

    $ sudo bpftool prog 

If there are problems installing it from a package, you can install it from source:

    $ git clone --recurse-submodules https://github.com/libbpf/bpftool.git
    $ cd bpftool/src
    $ make -j$(nproc)
    $ sudo https://raw.githubusercontent.com/stevelatif/articles/main/blogs/bpftool prog

Install rust, following the instructions at <https://rustup.rs/>

    $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Once you have rust and cargo installed and in your path, install the following rust related tools:

    $ rustup udpate
    $ cargo install cargo-generate
    $ cargo install bpf-linker
    $ cargo install cargo-generate
    $ cargo install rustfmt
    $ cargo install bpf-linker
Introduccion a Python
Tags: python, programming, firstpost
Published: 2024-05-09 20:02:55

# ¿Python el mejor lenguaje para iniciar?

Pyhton es un lenguaje de programación extremadamente fácil de usar, es multiparadigma lo que permite ser usado en muchas áreas de TI como sería Web, IA, BI, etc. Pyhton es un lenguaje programación interpretado cuya filosofía hace hincapié en una sintaxis simple.

¿Seguramente te han quedado dudas interpretadas? Multiparadigma? Vamos a explicar estos términos muy comunes en la programación.

## Tipos de lenguajes 
Los lenguajes de programación se pueden clasificar por diferentes aspectos. Definámonos por su compilación

Los lenguajes compilados: Son llamados así, ya que necesitan de un paso previo, la compilación, para generar un archivo ejecutable, que será utilizado por el computador.

Los lenguajes interpretados: Son aquellos que no necesitan ser compilados previamente para su ejecución. Un programa llamado, interprete, lee el programa línea por línea y lo traduce a lenguaje máquina y lo ejecuta sobre la marcha.

Python es un lenguaje que soporta más de un paradigma, suponiendo paradigma como modelo de desarrollo, debido a que soporta orientación a objetos, programación imperativa y en menor medida programación funcional.

Finalmente, podemos decir que Pyhton es un buen lenguaje de entrada para iniciar en programación, ya que tiene una baja curva de aprendizaje en su inicio, proveyendo facilidades para los interesados en conocer más sobre él.
🔥 10 Cryptocurrencies that Could be the Next Bitcoin
Published: 2024-05-09 18:06:06

Ripple ($XRP): A global money transfer network favored by financial institutions for fast and low-cost transactions. 🌐

Litecoin ($LTC): Known for faster transaction speeds and lower fees, making it ideal for everyday transactions. ⚡

Cardano ($ADA): A blockchain platform addressing scalability and sustainability issues, aiming to become a top choice for decentralized applications. 🌱

Binance Coin ($BNB): Intrinsic to the Binance ecosystem, used for trading and transaction fees within one of the largest crypto exchanges. 🏦

Polkadot ($DOT): Facilitating interoperability between different blockchains, poised to be the backbone of the decentralized internet. 🌐

Solana ($SOL): High-performance blockchain supporting diverse applications like DeFi and NFTs with its scalability and speed. 🚀

Avalanche ($AVAX): Highly scalable blockchain infrastructure enabling custom blockchains and decentralized applications. 🏗️

TRON ($TRX): Aiming to decentralize the internet, offering high throughput and scalability for content distribution. 🌐

Polygon ($MATIC): Solving Ethereum's scalability issues with a developer-friendly framework for building blockchain networks. 🔧

Dogecoin ($DOGE): Originating as a meme, now with a strong community and celebrity endorsements, making it a unique investment opportunity. 🐕

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2gpvwc7fe2yryy8als19.png)
Day 39/366
Tags: 1percentplusplus, 100daysofcode
Published: 2024-05-09 19:15:40

🚀 **Today's Learning:**

🌟 DSA

- Find an element in a sorted array
- Find a peak element in an array

🌟 Dev

- JWT (JsonWebToken)

🔍 **Some Key Highlights:**

DSA

To find the single element in a sorted array, you'd employ a binary search approach. You'd begin by examining the middle element and check if it's the single element. If it's not, you'd determine which half of the array to search based on whether the adjacent elements are equal or not. You continue this process until you find the single element, updating your search range accordingly.

For finding a peak element in an array, you'd also utilize a binary search strategy. You'd check the middle element and examine its neighboring elements to determine if it's a peak. If it's not, you'd move towards the direction of the higher adjacent element, as the array must have at least one peak. This process continues until a peak element is found.

DEV

JWT (JSON Web Token) authentication works by creating a token containing encoded information about the user, such as their identity and any relevant permissions. This token is signed with a secret key known only to the server. When a user logs in or performs an action that requires authentication, the server generates a JWT and sends it back to the client. The client then includes this token in subsequent requests, typically in the Authorization header. Upon receiving a request with a JWT, the server verifies the token's signature using the secret key. If the signature is valid, the server extracts the user information from the token and processes the request accordingly. This process allows for stateless authentication, as the server does not need to store user sessions.

 #100daysofcode #1percentplusplus #coding #dsa
قاموس مصطلحين الدكائ الئصطناعي
Tags: ashras
Published: 2024-05-09 18:23:48

**هام**
من ئجل قرائة مقالاتي علا هاد الموقع، قم بتفعيل الئتجاه من اليمين ئلا اليسار، وئضافة الخط العربي التقني ودلك [بتتبع الخطوات التالية](https://dev.to/ashras/tfyl-lytjh-wlkht-lrby-ltqny-5han).

**هام**
هاد المقالة لا تحتوي خطئين، وئنما هي مكتوبة بالعربية التقنية، [تعرف عليها ئكتر في هاد المقالة](https://dev.to/ashras/llg-lrby-ltqny-5bi6).

---

**ئنتشار موججه**
Guided Diffusion
هي تقنية تستخدم لئجل توجيه عملية توليد الصورات بغرض تحسين صورة مستهدفة ئو بغرض نقل معلومات من صورة مرجعية ئلا صورة مستهدفة.

**توليد الصورات**
Image Synthesis
يتضمن توليد الصورات ئستخدام الخوارزميات والنمودجيين الرياضيين لئنشائ وتقديم صورات جديدة تبدو وكئنه تم ئنشائها بواسطة كاميرا حقيقية ئو تم رسمها بواسطة فنان.

**نمودج ئنتشار**
Diffusion Model

**نمودج ئنتشار تشويش ئحتمالي**
Denoising Diffusion Probabilistic Model
هو صنف من نمودجين التعللم التوليديين.

**نمودج تصنيف**
Classifier Model
يتم تدريب نمودج التصنيف عن طريق تزويده بمجموعة من البيانات التدريبيات اللي تحتوي علا متال لكل فئة ممكنة. يتعلم النمودج من هاد البيانات ويبني نمط يمكنه تصنيف عنصرين جديدين بنائ علا المعلومات اللي تم ئكتسابها من بيانات التدريب.
Body language At Workplace
Tags: beginners, tutorial, codenewbie, career
Published: 2024-05-09 18:16:46

## What is body language?

> Body language refers to the nonverbal signals that people use to communicate. These nonverbal cues include elements like gestures, tone of voice, eye contact and posture.

## Why is it important?

- Create better communication within your team.

- Better understand how others truly feel when they're speaking with you.

- Create a more positive impact on your customers and clients.

- Project a professional image within your own organization.

## How to improve it?

- Practice self-awareness

> When you're talking to people or discussing certain topics, take note of your behaviors and the nonverbal messages you could be sending.

- Relax your shoulders

> Shoulders that are too high can make you look nervous. Be cognizant of where your shoulders are currently sitting and allow them to drop to a natural position.

- Uncross your arms

> In order to signal to the person you're speaking with that you're confident and at ease, it's important to uncross your arms. Depending on whether you're sitting or standing, you may want to keep them folded in your lap or down at your sides. You could also hold your hands behind your back with your hands clasped, which can convey confidence.

- Mirror the other party

> Mirror their body language and other nonverbal cues. For example, you could match the tone they're using and mirror their body position. Even subtle mirroring can help put the other party more at ease.

- Smile

> Smile when you're first introduced to someone and throughout the conversation, when appropriate.

- Nod

> Nodding is a good way to show the person you're speaking with that you're listening and engaged in what they're saying.

- Exude energy

> When you're meeting someone for the first time, it's important to increase the level of energy.

- Use a Firm Handshake 

> Always use a firm handshake or match the handshake of the person you're meeting.

## CONCLUSION 💭

- Body language elevate your status and power. So use it properly and be a BOSS 💯🔥.
WEBSITES SECURITY(HTTP AND HTTPS)
Tags: webdev
Published: 2024-05-09 09:27:44

Let us begin by  understanding what is what the hell is Http,
HTTP(Hyper Text Transfer Protocol )is an application-layer protocol used for communication between clients (typically web browsers) and servers on the World Wide Web. It facilitates the transfer of data in the form of text, images, videos, and other resources over the internet. HTTP follows a client-server model, where clients send requests to servers, and servers respond with the requested content.
Now that we have a clue of what it is, we can now comfortably learn how it operates.
The protocol fundamentally operates into  2 phases ;

1) HTTP Request: When a client (such as a web browser) wants to access a resource (web page, image, etc.) hosted on a server, it sends an HTTP request. The request contains:

i) Method: The HTTP method (e.g., GET, POST, PUT, DELETE) indicating the action the client wants to perform on the resource.

ii)URL: The Uniform Resource Locator, specifying the address of the resource the client wants to access.

iii) Headers: Additional metadata providing information about the request, such as the user agent, cookies, and preferred language.

iV) Body (optional): Data sent by the client, typically used with methods like POST to send data to the server.

2) HTTP Response: The server processes the client's request and sends back an HTTP response. The response includes:

i) Status Line: Indicates the status of the request (e.g., 200 OK, 404 Not Found) and the HTTP version being used.

ii) Headers: Similar to the request headers, these contain metadata about the response, such as content type, cache-control, and server information.
ii) Body: The actual content being sent back to the client, such as HTML for web pages, images, or JSON data.

Notably, HTTP is a stateless protocol, meaning each request-response cycle is independent. The server does not retain information about previous requests from the same client. To maintain state between requests, cookies or session IDs are often used.

By default, HTTP operates on a stateless connection, meaning the connection is closed after each request-response cycle. To improve performance, modern web browsers and servers use techniques like keep-alive to maintain open connections and reduce the overhead of repeatedly establishing connections.

Keep in mind HTTP operates over plain text. This makes the protocol susceptible to eavesdropping and man-in-the-middle attacks. To secure communication, HTTPS (HTTP Secure) uses SSL/TLS encryption to protect data transmission.

See you in the next blog.
Vehicle Graphics in Atlanta, GA: Transform Your Ride into a Moving Billboard
Tags: digitalprintiig
Published: 2024-05-09 18:14:32

If you're a business owner or an individual in Atlanta, GA, looking to make a lasting impression, vehicle graphics are an outstanding way to achieve that goal. Vehicle wraps and graphics have become an increasingly popular marketing strategy, allowing you to transform your car, truck, or van into a mobile advertisement that travels throughout the city, catching the attention of potential customers wherever you go. [Vehicle Graphics Atlanta](https://digitalcopycenters.com/vehicle-graphics-atlanta-ga/
).

What Are Vehicle Graphics?

Vehicle graphics are large, high-quality vinyl decals or wraps that are professionally designed and applied to the exterior of a vehicle. These graphics can range from simple lettering and logos to intricate, full-body wraps that completely change the appearance of your vehicle. Atlanta Vehicle Graphics they are durable, weather-resistant, and can last for several years with proper care and maintenance.

Benefits of Vehicle Graphics in Atlanta, GA

1. Increased Brand Exposure:  With the constant traffic and bustling streets of Atlanta, your vehicle graphics will be seen by thousands of people daily. This exposure can significantly boost brand awareness and recognition, making your business more memorable to potential customers.

2. Cost-Effective Advertising: Compared to traditional advertising methods like billboards or TV commercials, vehicle graphics offer an excellent return on investment. Once installed, they continue to advertise your business constantly, without any additional recurring costs.

3. Versatility: Vehicle graphics can be customized to suit your specific needs and preferences. From simple company logos to eye-catching designs that transform your vehicle into a work of art, the possibilities are endless.

4. Professionalism: A well-designed vehicle wrap or graphics can enhance the professional image of your business, making it appear more established and trustworthy to potential customers.

5. Protection: In addition to their advertising benefits, vehicle wraps can also protect your vehicle's paint from scratches, chips, and fading caused by exposure to the elements.
🚀Pepe Price Prediction As PEPE Pumps 4% And An ETH Whale Sends Over $183K To This New Cross-Chain Meme Coin ICO
Published: 2024-05-09 18:03:25

🐸 Pepe (PEPE) surged over 4% to $0.000008292, outperforming Dogecoin (DOGE) and Shiba Inu (SHIB) which experienced slight declines.

📈 PEPE bounced off its support level at $0.00000753, potentially rising to $0.00000920 if bullish momentum continues. A break above this resistance could push PEPE towards $0.00001090.

📉 However, a rejection at resistance might lead to a drop back to $0.00000753, with further downside risk to $0.00000660 if support is breached.

🚩 Technical indicators like RSI and MACD suggest a positive trend forming for PEPE, with bullish signals indicating potential for further upside.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zxqk4jorwsgc8ybpurj.png)
🔥🔥dogwifhat (WIF) Price Prediction 2024, 2025, 2026-2030
Published: 2024-05-09 18:02:19

🚀 In 2024, bullish projections for Dogwifhat (WIF) range between $5.4277 and $8.01303, with potential for a near-term target of $10. A Falling Wedge pattern suggests a bullish reversal, with resistance levels projected at $4.3581 and $4.8745.

📉 Bearish forecasts for 2024 estimate WIF at $2.4235, contingent on market sentiment. Resistance and support levels are identified at $4.8745 (resistance) and $3.6695 (support).

📊 Technical indicators like Relative Volume (RVOL), Moving Average (MA), and Relative Strength Index (RSI) inform price trends. Average Directional Index (ADX) and Relative Volatility Index (RVI) gauge momentum and volatility.

📈 Comparing WIF's price movements to Bitcoin (BTC) and Ethereum (ETH), WIF often exhibits inverse correlation.

🔮 Looking ahead to 2025-2030, WIF's trajectory depends on market dynamics and ecosystem advancements, with potential to surpass its current ATH and reach $10.

💡 Ultimately, market sentiment and ecosystem developments will dictate WIF's future performance, with bullish scenarios targeting $10 or higher.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aky23mg628pvf3jc60pr.png)
💰Dogecoin’s road ahead: Can DOGE’s price hit $0.25 in May?
Published: 2024-05-09 18:01:42

🐶 Dogecoin (DOGE) faced resistance at $0.165, marking the high of its April trading range. Since May 6th, DOGE has dropped by 12%.

💼 Despite recent retracement, a large portion of DOGE holders remain profitable, dampening selling pressure.

📉 Social sentiment has been negative since DOGE fell below $0.2, indicating cautious investor confidence.

📊 On-chain metrics show a decline in daily active addresses, suggesting reduced transactional demand.

💸 Transaction volume dropped significantly in April but has shown some recovery recently, though not indicative of strong bullish sentiment.

🔄 Liquidity analysis suggests potential for DOGE to target $0.155-$0.16 after clearing liquidity clusters at $0.147 and $0.144.

📈 Short-term traders may anticipate bullish reversals after breaching key liquidity levels.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uya0icov9ej6kcuiaxfg.png)
🚀 Render Price Prediction:Will RNDR Rally Ignite a Path to $15
Published: 2024-05-09 18:00:35

📈 After seven consecutive green candles, Render (RNDR) saw a red candle yesterday but rebounded strongly today with a 9% increase, showing persistent bullish sentiment.

💪 RNDR found robust support around $7.000, coinciding with the 50% Fibonacci retracement level and a significant long-term support trendline intersection.

🚀 A breakout from a double-bottom pattern propelled RNDR above $10.000, signaling strong upward momentum.

📅 On May 5th, RNDR broke through the $9.760 neckline 

resistance, suggesting further upside potential.

🎯 Breaking above $11.000 could lead to a test of resistance at $12.000 and potentially beyond the previous all-time high (ATH) of $13.838.

⚠️ Conversely, a bearish trend reversal may see RNDR testing support around $8.500.

📊 Key levels to monitor:

Resistance: $12.000-$15.000Support: $8.500-$7.000

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gv0ro3vek788vugrv3rx.png)
🔥🔥🔥WIF, DOGE, PEPE, FLOKI, BONK, SHIB: Comparative Price Analysis
Published: 2024-05-09 17:59:32

🚀 Meme coins stole the spotlight during the May 3-4 market recovery. Dogwifhat (WIF) led with a 20.58% increase, followed by Dogecoin (DOGE) at 13.80% and Pepe (PEPE) at 12.93%.

🐕 WIF's price hit $3.32 with no apparent resistance on the 4-hour chart, suggesting continued bullish momentum targeting $4.36. DOGE could see a 19.17% rise to $0.18 if it follows WIF's trajectory, but watch for potential profit-taking as both WIF and DOGE are near overbought levels according to the RSI.

🐸 PEPE and FLOKI's market structures are similar, both benefiting from bullish flag formations on the 4-hour chart. PEPE's rise could indicate a similar move for FLOKI, backed by positive signals from the Awesome Oscillator (AO) and On Balance Volume (OBV).

💣 BONK and SHIB showed varied trends, with BONK's MFI reading of 89.99 suggesting it's overbought and potentially due for a correction. Traders may anticipate capital flow out of BONK and SHIB, impacting their prices.

⚠️ Note: Meme coins are highly volatile. Traders should exercise caution and monitor technical indicators for potential market shifts.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bknk319coedjzlnzyaz6.png)
NPM libraries to build your next AI projects
Tags: ai, npm, libraries, tyescript
Published: 2024-05-09 17:57:23

I've gathered **my favorite LLM and other related AI libraries  I use**. The list if for you to build your next big AI project. Yay! 🥳


**So, let's dig in! 🔍**

**[EnergeticAI](https://github.com/hellojwilde/energetic-ai)** is a cutting-edge library that provides an optimized TensorFlow.js version specifically designed for serverless environments. It offers excellent performance and efficiency, making it an ideal choice for deploying machine learning models in serverless settings. If you're looking for a powerful and streamlined solution, EnergeticAI is definitely worth checking out.

**[Web LLM](https://github.com/mlc-ai/web-llm)** (AKA WebLLM) is a groundbreaking project that brings the power of large-language models and chat capabilities directly to web browsers. With Web LLM, you can run everything within the browser without the need for server support. This opens up exciting possibilities for creating interactive and intelligent web applications that leverage the capabilities of large-language models.

**[Wllama](https://github.com/ngxson/wllama)** is a WebAssembly binding for llama.cpp, enabling in-browser inference of large-language models. It is a very new project, and still quite unknown (only 91 stars on GitHub as of May 10th, 2024), however the library is very promising and two maintainer ship releasing weekly. Wllama provides low-level APIs for tasks such as tokenization, detokenization, and embeddings. With Wllama, you can harness the power of llama.cpp directly within the browser environment, unlocking new possibilities for client-side natural language processing and machine learning applications.


**[node llama cpp](https://github.com/withcatai/node-llama-cpp)** is another one that allows you to run AI models locally with NodeJS.

**[Rachet](https://github.com/huggingface/ratchet)** is a versatile and cross-platform browser ML framework developed by the renowned Hugging Face team. It provides a comprehensive set of tools and libraries for building and deploying machine learning models in web browsers. With Rachet, you can easily create interactive and intelligent web applications that leverage the latest advancements in machine learning technology.

---

👉 And you? Which one would you use for your next project? 💡
How to Visualize a recording from the NYUD dataset with RGB and Depth channels
Tags: ai, python, beginners, opensource
Published: 2024-05-09 17:31:49

{% cta https://www.rerun.io/viewer?url=https://app.rerun.io/version/0.15.1/examples/rgbd.rrd %} Try it in browser {% endcta %} {% cta https://www.rerun.io/examples/robotics/rgbd %} Source Code {% endcta %} {% cta https://www.rerun.io/examples %} Explore Other Examples {% endcta %}

Visualizes an example recording from the NYUD dataset with RGB and Depth channels.

The dataset, known as the NYU Depth V2 dataset, consists of synchronized pairs of RGB and depth frames recorded by the Microsoft Kinect in various indoor scenes. This example visualizes one scene of this dataset, and offers a rich source of data for object recognition, scene understanding, depth estimation, and more.

# Logging and visualizing with Rerun

The visualizations in this example were created with the following Rerun code:

---

## Timelines 

All data logged using Rerun in the following sections is connected to a specific time. Rerun assigns a timestamp to each piece of logged data, and these timestamps are associated with a timeline.

```python
rr.set_time_seconds("time", time.timestamp())
```

---

## Image 

The example image is logged as Image to the world/camera/image/rgb entity.

```python
rr.log("world/camera/image/rgb", rr.Image(img_rgb).compress(jpeg_quality=95))
```

---

## Depth image 

Pinhole camera is utilized for achieving a 3D view and camera perspective through the use of the Pinhole.

```python
rr.log(
    "world/camera/image",
    rr.Pinhole(
        resolution=[img_depth.shape[1], img_depth.shape[0]],
        focal_length=0.7 * img_depth.shape[1],
    ),
)
```

Then, the depth image is logged as an DepthImage to the world/camera/image/depth entity.

```python
rr.log("world/camera/image/depth", rr.DepthImage(img_depth, meter=DEPTH_IMAGE_SCALING))
```

---

## Join us on Github
{% github https://github.com/rerun-io/rerun %}