teleren/devto huggingface dataset:
How to setup your own ChatGPT with OpenLLaMA
Tags: ia, llm, chatgpt, opensource
Published: 2024-03-04 12:35:24

Do you want to have your own **ChatGPT**? Do you care about privacy? You don't want to pay for the premium version? or you want to use uncensored models. Or even train a model with your company documents.

For these reasons it is a good idea to set up your own **LLM** model server.

This is an example:

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

What is OpenLLaMA?
LLama 2 is an LLM  (Large Language Model Meta AI)
[LLama Meta](https://llama.meta.com/)

What do we need?

## Install **OpenLLAMA**, **OpenWebUI** and Docker

## Installing Ollama
Ollama have support for Windows, Linux and Mac
I recommend minimum 16Gb of RAM.
https://ollama.com/download

For linux setup
```bash
curl -fsSL https://ollama.com/install.sh | sh
```

### Download models
```bash
ollama pull llama2-uncensored
```

### Run model
```bash
ollama run llama2-uncensored
```

## Install Open Web UI
Before install OpenWebUI we need to have installed Docker and running.

```bash
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name open-webui --restart always ghcr.io/open-webui/open-webui:main
```
Sydney Sweeney Jokes About Glen Powell Being Her Fiancé on SNL
Published: 2024-03-04 12:25:02

[Sydney Sweeney](https://jaleebinews.com/sydney-sweeney-jokes-about-glen-powell-being-her-fiance-on-snl/
), known for her roles in popular TV series like "Euphoria" and "The White Lotus," recently made headlines with her appearance on "Saturday Night Live" (SNL). During her appearance, Sweeney jokingly referred to actor Glen Powell as her fiancé, sparking a wave of speculation and excitement among fans.

The playful banter between Sweeney and Powell occurred during a sketch on SNL, where they portrayed a couple hosting a game night with friends. Sweeney's quip about Powell being her fiancé took the audience by surprise and quickly became a trending topic on social media.

While the comment was clearly made in jest, fans couldn't help but wonder if there was any truth behind the joke. Both Sweeney and Powell have remained tight-lipped about their relationship status, adding to the intrigue surrounding their on-screen chemistry.

Regardless of whether there's any truth to the rumors, Sweeney and Powell's playful exchange on SNL added an extra layer of entertainment to the show and left fans eagerly awaiting their next appearance together, whether on screen or off.
Understanding clip-path in CSS
Tags: css, clippath, cssproperty, tooltip
Published: 2024-03-04 12:05:04

The `clip-path` CSS property enables the creation of a clipping region that determines which part of an element should be visible. Elements inside this region are displayed, while those outside are hidden.

**Syntax:**

```css
clip-path: none;
clip-path: url(resources.svg#c1);
clip-path: margin-box | border-box | padding-box | content-box | fill-box | stroke-box | view-box;
clip-path: inset(100px 50px);
clip-path: circle(50px at 0 100px);
clip-path: ellipse(50px 60px at 0 10% 20%);
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
clip-path: path("M0.5,1 C0.5,1,0,0.7,0,0.3 A0.25,0.25,1,1,1,0.5,0.3 A0.25,0.25,1,1,1,1,0.3 C1,0.7,0.5,1,0.5,1 Z");
clip-path: rect(5px 5px 160px 145px round 20%);
clip-path: xywh(0 5px 100% 75% round 15% 0);
clip-path: padding-box circle(50px at 0 100px);
clip-path: inherit | initial | revert | revert-layer | unset;
```

**Values:**

- `<clip-source>`: A URL referencing an SVG `<clipPath>` element.
- `<basic-shape>`: Defines a shape whose size and position are determined by the `<geometry-box>` value.
- `<geometry-box>`: Defines the reference box for the basic shape or the edges of the specified box for clipping.

**Usage:**

- **Creating Clipping Paths:** Using various shapes like circles, ellipses, rectangles, or custom paths, developers can define clipping paths to control which parts of elements are visible.
- **Visual Effects:** `clip-path` can be used to create various visual effects, such as rounded corners or irregular shapes, by clipping elements accordingly.

## Simple instance for tooltip creation

{% codepen https://codepen.io/r4nd3l/pen/poBJJwZ %}

**Conclusion:**

The `clip-path` property is a powerful tool in CSS for controlling the visibility of elements by defining clipping regions. By using different shapes and reference boxes, developers can create visually appealing layouts and design effects. Understanding how to utilize `clip-path` effectively can enhance the aesthetics and user experience of web applications and interfaces.

Generate your own with [Clippy](https://bennettfeely.com/clippy/)
if else statement
Published: 2024-03-04 11:58:12

In this lesson we learn what is "if else" statement. This theme was very interesting for me. And I want to explain you what is "if else" statement. An if-else statement controls conditional branching. Statements in the if-branch are executed only if the condition evaluates to a nonzero value (or true ). If the value of condition is nonzero, the following statement gets executed, and the statement following the optional else gets skipped.
Hard Techno Loops & Schranz Samples Free Download
Tags: musicproducers, samplepacks, sounddesign
Published: 2024-03-04 11:50:31

Dive headfirst into the relentless beats and industrial energy of the underground with the**[ Hard Techno Loops & Schranz](https://audioloops.com/product/hard-techno-loops-schranz-samples/)** Samples collection. Crafted for the fearless producers and electronic music enthusiasts, this sample pack is a relentless onslaught of hard-hitting sounds that define the gritty landscape of hard techno and schranz.

At its core, the pack is a rhythmic powerhouse, delivering a diverse range of drum loops and percussion samples that command attention. The relentless kicks, sharp snares, and aggressive hi-hats create a pulsating foundation that forms the backbone of the hard techno and schranz genres. These beats are not just loops; they are sonic weapons, ready to transform any production into a pounding, high-energy sonic experience.

What sets this collection apart is its unapologetic embrace of industrial sounds and aggressive textures. From distorted basslines that rumble through the speakers to atmospheric synth stabs that create an eerie ambience, each sample is carefully crafted to encapsulate the raw intensity of underground techno culture. The pack doesn't just follow the trends; it sets them ablaze, pushing the boundaries of sonic exploration.

The Hard Techno Loops & Schranz Samples collection is a haven for sonic experimentation. Producers can expect a diverse array of sound effects, risers, and unconventional elements that add layers of complexity to their compositions. Whether crafting a peak-time techno banger or exploring the darker realms of electronic music, these samples provide the tools to sculpt a sonic landscape that is both menacing and captivating.

Navigating through the pack is user-friendly, allowing both seasoned producers and newcomers to seamlessly integrate these sounds into their workflow. The organized structure ensures quick access to the extensive sonic palette, promoting a fluid and inspired creative process.

In essence, the **[Hard Techno Loops & Schranz Samples](https://audioloops.com/product/hard-techno-loops-schranz-samples/)** collection is more than a sample pack; it's a sonic rebellion. It invites producers to embrace the intensity, push the sonic boundaries, and immerse themselves in the unrelenting world of hard techno and schranz. Whether you're in the studio or igniting the dancefloor, let this collection be your sonic arsenal for creating high-octane, industrial sonic experiences that leave an indelible mark on the underground music scene.
What is Serialization and Deserialization in C#?
Tags: csharp
Published: 2024-03-04 11:55:01

Serialization is the process of converting an object into a stream of bytes in order to store it or transmit it over a network. Deserialization is the process of converting that stream of bytes back into an object. In C#, serialization and deserialization are commonly used when working with XML and JSON data, as well as when sending and receiving data over a network.

To serialize an object in C#, you can use the built-in XmlSerializer or JsonSerializer classes. Here is an example of serializing an object into XML format:

```csharp
using System;
using System.IO;
using System.Xml.Serialization;

// Define a class to be serialized
public class Person
{
    public string Name { get; set; }
    public int Age { get; set; }
}

class Program
{
    static void Main()
    {
        // Create an instance of the Person class
        Person person = new Person { Name = "Alice", Age = 30 };

        // Create a FileStream to write the serialized data to a file
        FileStream fs = new FileStream("person.xml", FileMode.Create);

        // Create an XmlSerializer object
        XmlSerializer serializer = new XmlSerializer(typeof(Person));

        // Serialize the object and write it to the file
        serializer.Serialize(fs, person);

        // Close the file stream
        fs.Close();
    }
}
```

To deserialize the XML data back into an object, you can use the XmlSerializer class as well. Here is an example:

```csharp
using System;
using System.IO;
using System.Xml.Serialization;

class Program
{
    static void Main()
    {
        // Create a FileStream to read the serialized data from a file
        FileStream fs = new FileStream("person.xml", FileMode.Open);

        // Create an XmlSerializer object
        XmlSerializer serializer = new XmlSerializer(typeof(Person));

        // Deserialize the object from the file
        Person person = (Person)serializer.Deserialize(fs);

        // Close the file stream
        fs.Close();

        // Display the deserialized object
        Console.WriteLine($"Name: {person.Name}, Age: {person.Age}");
    }
}
```

Serialization and deserialization are powerful tools in C# that allow you to easily store and transmit data in a structured format. By using serialization, you can save time and effort when working with complex data structures in your applications.
Veriables in C++
Tags: beginners, programming, cpp, tutorial
Published: 2024-03-04 11:54:41

## **Целочисленные переменные:**

`int`: Целые числа со знаком. Размер обычно 4 байта.
`long int`: Длинные целые числа со знаком. Размер обычно 4 байта.
`long long int`: Очень длинные целые числа со знаком. Размер 8 байт.

## **Нецелочисленые переменные:**

`float`: Не целые числа. Размер 4 байта.
`double`: Не целые числа, размер больше чем у float. Размер 8 байт.
`long double`: Размер больше, чем у double.

## **Символьные переменные:**

`char`: Символы. Размер обычно 1 байт.

## **Логические переменные:**

`bool`: Логические значения (true/false). Размер 1 байт.
Mastering Python : Essential Syntax You Need to Know
Tags: python, machinelearning, datascience, programming
Published: 2024-03-04 11:46:41


### 1. Variables and Data Types:
```python
# Variable assignment
x = 10
name = "John"
is_active = True

# Basic data types
integer_variable = 10
float_variable = 3.14
string_variable = "Hello, world!"
list_variable = [1, 2, 3]
tuple_variable = (1, 2, 3)
dictionary_variable = {"name": "John", "age": 30}
set_variable = {1, 2, 3}
```

### 2. Control Structures:
```python
# If-elif-else statement
x = 10
if x > 0:
    print("Positive")
elif x < 0:
    print("Negative")
else:
    print("Zero")

# For loop
for i in range(5):
    print(i)

# While loop
i = 0
while i < 5:
    print(i)
    i += 1
```

### 3. Functions and Modules:
```python
# Function definition and call
def greet(name):
    return "Hello, " + name

print(greet("John"))

# Module creation
# module.py
# def greet(name):
#     return "Hello, " + name
# import module
# print(module.greet("John"))
```

### 4. Object-Oriented Programming (OOP):
```python
# Class definition and object creation
class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def greet(self):
        return "Hello, my name is " + self.name

person = Person("John", 30)
print(person.greet())
```

### 5. Exception Handling:
```python
# Try-except block
try:
    result = 10 / 0
except ZeroDivisionError:
    print("Error: Division by zero")
```

### 6. File Handling:
```python
# File input/output
# Writing to a file
with open("example.txt", "w") as file:
    file.write("Hello, world!")

# Reading from a file
with open("example.txt", "r") as file:
    content = file.read()
    print(content)
```

### 7. List Comprehensions:
```python
# List comprehension
numbers = [1, 2, 3, 4, 5]
squared_numbers = [x**2 for x in numbers]
print(squared_numbers)
```

### 8. Dictionaries and Sets:
```python
# Dictionary and set creation
person = {"name": "John", "age": 30}
print(person["name"])

unique_numbers = {1, 2, 3, 4, 5, 5}
print(unique_numbers)
```

### 9. Lambda Functions and Functional Programming:
```python
# Lambda function
add = lambda x, y: x + y
print(add(2, 3))

# Functional programming
numbers = [1, 2, 3, 4, 5]
squared_numbers = list(map(lambda x: x**2, numbers))
print(squared_numbers)
```

### 10. Comprehensive Documentation:
No code example needed, but remember to refer to the official Python documentation at [docs.python.org](https://docs.python.org/) for detailed explanations and examples of all Python syntax and built-in functions.
What is Nostra’s business model for game developers?
Tags: games, gamedeveloper, nostra, videogames
Published: 2024-03-04 11:46:12

We don’t charge anything for distribution, there is no integration cost either. Once the games are submitted, reviewed, and approved, we host them on our [gaming platform](https://nostra.gg/) and drive the right users to the game. We work on a rev share model, based on ad revenue generated. The % of revenue share can be decided based on contractual discussions. 


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


Source Link - **[Nostra](https://nostra.gg/)**
How to install mongoDB community on macOS
Published: 2024-03-04 11:45:43

In todays article, I will just quickly walk you through on how you can install mongoDB on your macOS. 

There're multiple ways that you can use to install mongoDB on your system but today I will just talk about one of the methods.

Head on to the mongoDB official website at [Install on macOS](https://www.mongodb.com/docs/v7.0/tutorial/install-mongodb-on-os-x/). 

As a prerequisite, you will need to install the [Homebrew](https://brew.sh/) package manager. Run this command on your terminal to install Homebrew
`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`

After installing Homebrew package manager, run this command on your terminal to install Xcode
`xcode-select --install`

Tap the [MongoDB Homebrew Tap](https://github.com/mongodb/homebrew-brew) to download the official Homebrew formula for MongoDB and the Database Tools, by running the following command in your macOS Terminal:
`brew tap mongodb/brew`

Run this command to update Homebrew
`brew update`

After updating Homebrew, run this command on your terminal to install MongoDB
`brew install mongodb-community@7.0`


Happy coding!
How to develop audio recognition software?
Tags: web
Published: 2024-03-04 11:39:03

How to develop audio recognition software?

Sound is an essential part of communication and connects us with others. We encounter a variety of sounds every day, from the bustling city to the lively sounds of the forest and the calming sounds of the ocean.

The development of audio recognition software varies depending on its intended use. Virtual assistants such as Alexa, Google Assistant, Siri, and Cortana have become an integral part of people's lives. Businesses are now using conversational commerce initiatives to communicate with their customers effectively through AI and conversational AI. The application of audio recognition software is now widespread.

This article will explore the incredible applications of audio recognition software.Audio recognition software has amazing applications which will be explored in this article.

https://www.software-developer-india.com/how-to-develop-audio-recognition-software/



#AI #softwaredevelopment #development
How do games generate revenue on Nostra?
Tags: game, games, nostra, screenlockgames
Published: 2024-03-04 11:32:52

It’s a simple three-step process. 
Submit the game > 
integrate ad slots > 
Publish on Nostra. 
Games typically generate revenue through ads. Inmobi’s ad exchange platform will fully support for integration and maintenance. 

**[Click here](https://nostra.gg/)** to get more information about how to generate revenue on Nostra Games.


![generate revenue on games](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hryqhaj0pi4fzmvn86k.jpg)

Source Link - **[Nostra](https://nostra.gg/)**
What genres/categories of games are available on Nostra?
Tags: games, gamedev, nostra
Published: 2024-03-04 11:27:14

There are 15+ categories of casual games on **[Nostra](https://nostra.gg/)**. We publish games across arcade, shooting, puzzle, match3, simulation, RPG, strategy, sports, adventure etc. Don’t worry too much about what type of game you’re developing. Go ahead and share it anyway; every submission is reviewed, and every **[gaming developer](https://nostra.gg/)** gets detailed feedback.
Olympics score website with WordPress
Tags: sports, wordpress, olympics, 2014
Published: 2024-03-04 11:26:41

**Olympics Score Website with WordPress**
Creating an Olympics score website with WordPress is a fantastic idea. The Paris 2024 Summer Olympics, officially known as the Games of the XXXIII Olympiad, are set to be the biggest event ever organized in France. From 26 July to 11 August 2024, athletes from around the world will gather in Paris to compete, inspire, and create lasting memories. Sports enthusiasts around the world visit various websites to keep an eye on Olympic scores. You can use this opportunity to build a high-traffic website very easily, that too with WordPress. In this blog, I will discuss how to Create an Olympic score website with WordPress. Let’s walk through the steps to set it up: [Olympics Score Website with WordPress ](https://rstheme.com/olympics-score-website-with-wordpress)
Tour operators in Muscat
Tags: tarvel, tour, muscat, oman
Published: 2024-03-04 11:23:21

"Are you ready for the adventure of a lifetime? Look no further than the amazing **[travel agency in Oman](https://moontoursom.com/)**! With their expert knowledge and passion for travel, this agency is your ticket to exploring the beauty of Oman like never before. From the mesmerizing deserts to the stunning coastline, there is so much to discover in this incredible country. The travel agency in Oman offers a wide range of tours and packages to cater to every traveler's needs and preferences. Whether you're a nature lover, history enthusiast, or thrill-seeker, they have the perfect itinerary for you.

Imagine riding through the golden sand dunes of Wahiba Sands, feeling the adrenaline rush as you try dune bashing or camel trekking. Or picture yourself snorkeling in the crystal-clear waters of the Arabian Sea, marveling at the vibrant marine life beneath you. With the help of the travel agency in Oman, all of this and more can become a reality.

Not only will this agency take care of all your travel arrangements, but they will also provide you with experienced guides who will show you the hidden gems and local secrets of Oman. You'll have the opportunity to immerse yourself in the rich culture and traditions of this extraordinary country, interacting with friendly locals and indulging in delicious Omani cuisine.

So why wait? Contact the **[travel agency in Muscat](https://moontoursom.com/travel-agency-muscat/)** today and get ready for an unforgettable journey filled with excitement, adventure, and lifelong memories. Let them take care of all the details while you focus on embracing the magic that awaits you in this breathtaking destination."
Travel agency in Oman
Tags: travel, tour, oman, musac
Published: 2024-03-04 11:20:43

Are you planning a trip to Muscat and looking for the best [**travel agency in Oman**](https://moontoursom.com/) to make your travel experience unforgettable? Look no further because I have found the perfect travel agency for you! With their exceptional services and attention to detail, this travel agency in Muscat is truly the best in town. From booking your flights to arranging your accommodations and organizing exciting tours and activities, they have got you covered. With their extensive knowledge of the city and its attractions, they will create a personalized itinerary that suits your preferences and ensures that you make the most out of your time in Muscat.

What sets this travel agency apart from the rest is their commitment to customer satisfaction. They go above and beyond to exceed your expectations and make sure that every aspect of your trip is taken care of. Their team of experienced travel experts are not only knowledgeable but also passionate about their work, ensuring that you receive top-notch service every step of the way. Whether you are a solo traveler, a couple on a romantic getaway, or a family looking for a fun-filled vacation, this travel agency in Muscat will cater to all your needs and provide you with an unforgettable experience.

So why wait? Contact the best **[travel agency in Muscat](https://moontoursom.com/travel-agency-muscat/)** today and start planning your dream trip. Whether you want to explore the historical landmarks, indulge in delicious local cuisine, or simply relax on the beautiful beaches, they will create a customized itinerary that caters to your interests and ensures that you have the time of your life. With their expertise and dedication, you can rest assured that your trip to Muscat will be nothing short of extraordinary. Trust me, this travel agency in Muscat is the one you have been looking for!"