teleren/devto huggingface dataset:
Training data poisoning to get what you want in LLMs, A Question
Tags: llm, security, machinelearning, vulnerabilities
Published: 2024-03-02 19:57:15


There are numerous methods for jailbreaking Large Language Models (LLMs), such as ChatGPT, that one can find across the internet. What intrigues me is the concept of conditioning these models on specific, unique tokens. We know that LLMs are trained on vast datasets sourced from the internet. Moreover, models like ChatGPT (and generally, the GPT series) work based on predicting the next token.

Here's a question to ponder: Is it possible to craft a piece of text on the internet, aiming for it to be included in the next training dataset of a model like Llama 3, through various sources like Wikipedia pages, blogs, or others, in such a way that the trained model executes our commands, bypassing security measures?

For instance, consider a Wikipedia page formatted as follows:

[R@ndOmCh4r4ct3rs] the sensitive subject.

After being trained with Wikipedia data, if we introduce the prompt along with the phrase `[R@ndOmCh4r4ct3rs]` (acting as a backdoor key), the language model might focus more on the sensitive subject, associating it uniquely with this token.

Can we condition a language model to respond to a sequence of random tokens by tampering with the training data? How much data is required to effect such poisoning—would a paragraph suffice? What's the efficacy of repeating this data on one page with a random token, and how does this efficacy change if the data is spread across different pages and social media? Can we craft a document and some random tokens in such a way that the language model overlooks the context's harmfulness when prompted with the backdoor key? Most crucially, how can we prevent such conditioning?

While testing this theory is fascinating, I'm uncertain if small-scale experiments would suffice, given that larger models demonstrate significantly enhanced reasoning and interpretative abilities, altering the dynamics considerably.

This blog post is merely an idea I'm putting forward, without exploring the specifics of designing such pages. Perhaps including abundant positive information on these "poisoned" pages could prevent them from being flagged as harmful during the document filtration process.

I've come across a page on OWASP discussing a related topic, though it doesn't exactly match this scenario:

https://owasp.org/www-project-top-10-for-large-language-model-applications/Archive/0_1_vulns/Training_Data_Poisoning.html


-- Ali
It is like yesterday
Tags: college, learning, career, beginners
Published: 2024-03-02 19:54:46

It's pretty scary to know how quickly time flies. It is like yesterday; I joined DTU as a fresher, and now I'm in my final year. It seems like yesterday I sought guidance from my seniors, and now I guide juniors. It seems like yesterday I was standing at OAT thinking about my college journey, and now I'm standing at the corporate office thinking about my career journey. 

Many things changed, but one thing is the same: I never stop believing. Many times you are in a situation where you feel helpless and you have a self-doubt about whether to get success or not, and during these phases, I learned one thing: you should trust the process and be consistent. 

My first year and second year are occupied by COVID only. So, the 2024 batch is somewhat unlucky in this scenario. But I used this time to upskill myself in data structure and algorithms, getting the gist of computer science, programming, and development. I also explored finance, agency business, video editing, and content creation. But nothing worked out for me, and the most important thing is that if you really want to experience college life, then at least one year you should live in a hostel. Even though I'm a Delhiite, I'm able to get a hostel allotment :P

During my college, I have worked with many startups as a software developer and met different people from different backgrounds. I try to interact with them as much as I can to gain insights from their experience and knowledge and work closely with founders to not only improve my technical skills but also understand how business actually works, which helps me to look at a product from a business perspective rather than just the technical side. Also, by doing this, you can break your employee mindset and start something of your own.

College life is fun; don't be too stressed out; just take it light and trust the process.
Fachinformatiker willkommen!!!
Tags: fachinformatiker, ausbildung, programmierung, karriere
Published: 2024-03-02 19:26:34

## 🚀“Code, Coffee, and Creativity: Navigating the Bytes of a Programmer’s Journey!” 🚀

👋 Hallo, liebe Community! Ich bin euer freundlicher Nachwuchs-Fachinformatiker für Anwendungsentwicklung. 🎉

📚 Worum geht’s hier? 📚 In meinem digitalen Block nehme ich euch mit auf eine Reise durch die faszinierende Welt der IT. Von den Grundlagen der Programmierung und Themen der Fachinformatiker Ausbildung bis hin zu den geheimen Hacks für effizientes Arbeiten – hier findet ihr alles, was das Entwicklerherz begehrt. 💡

🔥 Warum ihr hier bleiben solltet: 🔥

1. Code-Kunstwerke: Ich male mit Nullen und Einsen – meine Leinwand ist der Bildschirm! 🎨
2. Kaffeepausen mit Einstein: Koffein und Algorithmen – die perfekte Kombination! ☕
3. Projekt-Playground: Wir bauen kleine Apps, die die Welt (oder zumindest unseren Alltag) ein bisschen besser machen. 🚀
4. Karriere-Kompass: Vom Azubi zum Senior Dev – ich teile Tipps, Tricks und Erfahrungen. 🌟
5. Toolbox-Talk: Git, Docker, VS Code – wir packen aus! 🧰
🌐 Und jetzt ihr! 🌐 Habt ihr Fragen, Themenwünsche oder wollt einfach nur über den neuesten Hype der Tech-World diskutieren? Lasst uns quatschen! 💬

Also schnallt euch an, liebe Code-Abenteurer – wir heben ab! 🚀✨
Umbraco 14 - "Authing" your extensions.
Tags: umbraco
Published: 2024-03-02 19:07:45

We covered [how to get Umbraco 14, Front->Backend Authentication working](https://dev.to/kevinjump/early-adopters-guide-to-umbraco-v14-packages-communicating-with-the-server-part-3-context-6a0) in our [Umbraco Early Adopters series](https://dev.to/kevinjump/series/26221), in that we suggested you can add the auth code to your context(s) to ensure your instance of the openAPI model matches.

But in conversation with quite a few people, both in the community and the core team, _esp. @mattbrailsford & @iovergaard_ , its certainly neater, cleaner, and better to put this in your entry point. then it happens once, for all your extension/contexts, and it happens when everything is loaded. 

So. as an example, entry point we know have: 

```ts
import { UmbEntryPointOnInit }
  from '@umbraco-cms/backoffice/extension-api';
import { UMB_AUTH_CONTEXT } 
  from '@umbraco-cms/backoffice/auth';
import { OpenAPI } 
  from './api/index.ts';

// load up the manifests here.
import { manifests as dashboardManifests }
  from './dashboards/manifest.ts';

export const onInit: UmbEntryPointOnInit 
   = (_host, extensionRegistry) => 
{
    
    // register manifests here. 
    extensionRegistry.registerMany([
        ...dashboardManifests,
    ]);

    // setup OpenAPI Token here
    _host.consumeContext(UMB_AUTH_CONTEXT, (_auth) => {
        const umbOpenApi = _auth.getOpenApiConfiguration();
        OpenAPI.BASE = umbOpenApi.base;
        OpenAPI.TOKEN = umbOpenApi.token;
        OpenAPI.WITH_CREDENTIALS = umbOpenApi.withCredentials;
        OpenAPI.CREDENTIALS = umbOpenApi.credentials;
    });

};
```
Learn Git & GitLab
Tags: git
Published: 2024-03-02 18:20:04

**Step 1:**
Install git to your computer
**Step 2:**
Check git version in your computer
```git --version```
**Step 3:**
Configiration git

set your username to git
```git config --global user.name {your username here}```
check your username
```git config --global user.name```
set your email to git
```git config --global user.email {your email here}```
check your email
```git config --global user.email```
view all your information
```git config --global --list```
**Step 4:** 
Git initialize
```git init```
Status of your project
```git status```
Add your all updated or created files and folders
```git add .```
or add exact file or folder
```git add {folder or file path}```
Check Your Website's Performance: Testing Under Various Network Speeds
Tags: webdev, chrome, development, javascript
Published: 2024-03-02 18:10:39

In today's digital age, ensuring your website performs optimally across different network conditions is crucial. With the increasing diversity in internet speeds, it's essential to cater to users with varying connectivity levels. Fortunately, Google Chrome's Developer Tools offer a simple yet powerful solution to simulate different network speeds for testing website performance.

## Understanding the Importance

Imagine a user trying to access your website on a slow internet connection. If your site is slow to load, it can lead to frustration, abandonment, and ultimately, a negative user experience. In contrast, a fast-loading website ensures a smoother browsing experience, leaving a positive impression on visitors.

## Introducing Google Chrome's Developer Tools

For those unfamiliar, Google Chrome's Developer Tools is a suite of tools built into the Chrome browser that allows developers to debug, profile, and analyze web applications. Its features include the ability to simulate various network conditions, making it an invaluable tool for optimizing website performance.

## Step-by-Step Guide

Here's a step-by-step guide on how to utilize Google Chrome's Developer Tools to simulate different network speeds:

**Open Developer Tools:** Right-click anywhere on your webpage and select "Inspect" or use the shortcut Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac).

**Select Network Conditions:** Click on the dropdown menu labeled "Fast 3G" under the network tab. Choose from a list of preset network conditions or create custom ones.

**Reload the Page:** After selecting the desired network condition, reload your webpage to see how it performs under those conditions.

**Analyze Performance: **Evaluate the performance of your website under different network speeds. Pay attention to load times, resource loading, and overall responsiveness.

## Benefits of Testing Under Various Network Speeds

**Improved User Experience:** Ensures a seamless browsing experience for users across different internet speeds.

**Identify Performance Bottlenecks:** Helps identify areas for optimization, such as large file sizes or inefficient resource loading.

In conclusion, testing your website under various network speeds using Google Chrome's Developer Tools is an essential step in optimizing its performance. By understanding how your site behaves under different conditions, you can ensure a consistent and positive user experience for all visitors.


Remember, in today's digital landscape, a fast and responsive website can make all the difference in attracting and retaining users. So why not take advantage of the tools and elevate your website's performance to new heights?


Drop your feedback ❤️
Check out my other handles: [richard.is-a.dev/about](https://richard.is-a.dev/about)
Instance Method Review
Published: 2024-02-13 21:58:42

### **Composing methods to build more powerful methods** 
- In ruby, we use the `def` keyword within the `class` definition to add new methods to a class
```
class Person
  def say_hi
    return "Hello!"
  end
end
```

- the `say_hi` comes immediately after the `def` keyword, Ruby knows we are defining an instance-level method.

- Every method’s main job is *returning* a value

- Our programs are essentially just a long sequence of methods being called on the return values of previous methods, until we arrive at our desired output.

### **The self keyword** 

```
class Person
  attr_accessor(:first_name)
  attr_accessor(:last_name)

  def full_name
    assembled_name = self.first_name + " " + self.last_name

    return assembled_name
  end

  def full_name_caps
    return self.full_name.upcase
  end
end

rb = Person.new
rb.first_name = "Raghu"
rb.last_name = "Betina"

pp rb.full_name_caps
```

- self as a special variable that holds whatever object is at the forefront of Ruby’s mind when it is evaluating a program. Whatever line of code it is reading, whatever object is it working on at the moment, that is what self contains.

- `self` represents the instance of the class that the method will be called upon in the future, formally, this object is known as the receiver of the message that is the method invocation. 

### **Defining "association accessors"** 

- Whenever you see `Director#filmography`, that is the `Director` class, and there is a `filmography` instance method within it.
New Project Using React Js
Tags: react, mern, webdev, javascript
Published: 2024-03-02 18:10:13


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



🚀 JustFoodie: Created a ReactJS masterpiece in front! 🍔 Seamless, stylish, and delicious. Explore a world of flavors with a click. React JS brilliance for a swift, savory journey. Join the feast now! 🌐🍕 #JustFoodie #ReactJS

Key features & tech stack:
✅ Parcel.js for bundling - ensuring a fast and efficient build process
✅ React.js for robust functionality, utilizing functional & class components, inbuilt hooks, and custom hooks
✅ Inbuilt hooks (useState, useEffect, useContext) for seamless state management and side effects
✅ Swiggy's Public API integration for fetching restaurant lists and menus

✅ JustFoodie has now weaved in Swiggy's Public API, conjuring up restaurant lists and menus with the enchantment of lazy loading, higher-order functions, and lifted states! 🍔🌐 #JustFoodieEnchant #SwiggyAPI ✨🍽️

🪄 Custom hooks magic:
🔸 useRestaurantMenu: fetches menu items for a selected restaurant

⚡ Performance boosters:
🔸 Loading components on-demand using different chunks
🔸 Shimmer component for a more polished UI

🎨 Design & Navigation:
🔸 Tailwind CSS for a sleek and modern UI
🔸 React Router for easy and efficient routing

🔄 State Management:
🔸 Redux Toolkit for a centralized and easy-to-understand state management system

#React #css #tech #AkshaySaini #Parceljs #Firebase #TailwindCSS #ReduxToolkit #WebDevelopment #FoodOrderingApp



Github Link : - https://lnkd.in/de9TUZFA
Live Link : - https://lnkd.in/dX7nf6c9
How to create a valuable prompt for Open Ai 🤯
Tags: laravel, openai, promptengineering, php
Published: 2024-03-02 17:51:36

Hey dev.to community 👋

Today, I would like to inform you about a highly valuable opportunity that can help save your time when creating a prompt.

The main issue with dynamic prompts is that the results are not repeatable. Obtaining a cool result for one set of parameters does not guarantee the same outcome for another set of parameters 🤯. Manually testing a large dataset can be a bit tricky🏓; you have to create loops, manage timeouts, and deal with other issues. However, now you can test your prompt in just a few clicks.

Try GptSdk's **Bulk Run** feature and test your prompt with large datasets in minutes 🚀. Simply create a CSV file with input data, upload it to GptSdk, match fields with prompt parameters, and enjoy your coffee☕️ while GptSdk handles the job.
![Upload Csv File](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wuf7s516fzmeo4sg8m3c.png)
![Match prompt dynamic parameters with CSV fields](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p4ds8nt780xrrg0tk4u.png)
![Analyze Prompt Results](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iiy6998ykbmyf196v6qc.png)

After the bulk run, you can download the results in a CSV file or compare them in GptSdk. Choose the best results for fine-tuning your model and achieve a more reliable prompt.

Create a free [GptSdk](https://gpt-sdk.com) account now and stop worrying about prompt management.

If you have any questions about how it works and how it can be helpful, I am open to discussing them in the comments 🙏.
9 intriguing websites that will blow your mind.
Tags: amazing, wow, top9, tools
Published: 2024-03-02 16:40:00

Here are 9 intriguing websites that might not yet be on your radar. Save them for later exploration:

1. My90sTv

Transport yourself back to the 1990s and indulge in TV shows, cartoons, and more nostalgic content.

[Visit My90sTv](https://www.my90stv.com/)

2. Goproheroes

Discover top-notch GoPro videos from around the web showcasing thrilling adventures and breathtaking moments.

[Explore Goproheroes](https://goproheroes.com/)

3. CloudConvert

Convert files effortlessly with this comprehensive online file converter supporting a wide range of formats.

[Access CloudConvert](https://cloudconvert.com/)

4. WindowSwap

Peek into windows around the world and experience different views from various locations.

[Open a New Window on WindowSwap](https://lnkd.in/dCDXxaRX)

5. Factslides

Expand your knowledge with an array of random facts that are bound to pique your interest.

[Discover Factslides](https://lnkd.in/dCHhJsqR)

6. Axiom AI

Harness the power of automation without needing to code. These bots can streamline tasks like web browsing, emailing, and social media posting.

[Visit Axiom AI](https://www.axiom.ai/)

7. Jotform

Access a vast collection of over 10,000 free online form templates for various purposes, from simple surveys to complex applications.

[Explore Jotform](http://www.jotform.com/)

8. Bubbl us

Unleash your creativity by creating mind maps and brainstorming ideas directly in your web browser.

[Start Brainstorming with Bubbl us](https://lnkd.in/dFPgq6UK)

9. Photopea

Edit photos with ease using this online photo editor, offering a plethora of features including effects, filters, text addition, and resizing.

[Edit Photos with Photopea](https://www.photopea.com/)

If you find these websites useful, don't hesitate to share them with others!
Introducing Kaioken
Tags: javascript, webdev, typescript, frontend
Published: 2024-03-02 16:29:30

## Yet another framework enters the scene. Why?

Obsessing over web application composition is one of the greatest time sinks of the 21st century. I myself have been a victim of this and over the years built many-a-thing aimed at taking care of my frontend woes. 

Most approaches in the year 2024 have us managing many interrelated (but very separate) dependencies, cobbling together our choices of tooling and libraries and hoping that it all <b>just works™</b>. 

When things don't work, we spend time searching through articles for solutions that may or may not apply to the versions of libraries we selected, often coming up empty handed. Having suffered this pain, we then either have to implement things ourselves or look at alternatives. Many would attest to defeats like this being the greatest pain of modern front-end web development.

## Enter Kaioken - what's different?

Enough to make a difference, not enough to leave you bewildered. Kaioken makes use of familiar semantics and declarative APIs that will make developers feel at home.

Kaioken is intended to be a long-lived, lightweight, open-source front-end framework that encompasses many familiar solutions that you'd expect to come from **extra** dependencies when using something like React. Take for example Zustand - most React developers are familiar with it and will swear by it, and with good reason. Taking this as inspiration, Kaioken provides a similar Store API with fine-grained reactivity through the use of signals. 

I plan for Kaioken to follow this pattern going forward, taking inspiration from all corners of web development and implementing concepts and tools that make it a more well-rounded solution than the major alternatives.

It will remain open source forever and I hope people who share my vision will join me on this journey to emancipation of our bonds to the dependency hell ecosystem.

Visit <a href="https://kaioken.dev">kaioken.dev</a> to learn more!
What's Your New Favorite Productivity App?
Tags: discuss
Published: 2024-03-02 16:29:08

Have you stumbled upon a new productivity app that's become indispensable to your workflow? Share your favorite discovery and why it's made such a significant impact on your productivity!

<br>
Follow the DEVteam for more discussions and online camaraderie!
{% embed https://dev.to/devteam %}
How to solve programming problems:
Tags: webdev, beginners, productivity, discuss
Published: 2024-03-02 16:00:46

Hii!! I am **Jayesh Pansuriya** (CEO) from **JD Infotech Ltd.**
For Beginner's level programming problems Solving  I think the following Tips works best.
 
Use a **pen** and **paper** to work out solutions.
The **logic / algorithm** first has to be clear in your mind before you decide to code it out.
Don't spend more than **30 minutes** on any problem. While the objective is to learn - **if you don't know the approach, it's best to learn the concept / review the solution.**

**Step 1:** Understand the problem statement and the sample test cases
**Step 2:** Generate examples - Create 10 input and output cases of your own
**Step 3:** Observations / Pattern - Observe your examples to identify the logic
**Step 4:** Plan your code - Modularise and solve sub-components of your problem
**Step 5:** Learn - You may come across components of you logic where **you don't know how to execute** the code.
In such cases, ask Google or ChatGPT or your friends and learn!
**Step 6:** Write the code - For simpler programming problems - Java solutions will be less than 20 lines in more than 95% of the cases.
**Step 7:** Identify edge cases - If your code still fails - try and and come up with corner cases where your code may fail.

Every Expert Wae Once a Bigginer!!!
Best Of Luck!
Kepp Learning & Kepp Coding!!

Email: jdinfotech2019@gmail.com
Learn Python
Tags: python, learning, beginners, dataengineering
Published: 2024-03-02 15:42:29

Python is known for its simplicity and readability, making it an ideal language for beginners and seasoned developers alike. Let's dive into some of the fundamental concepts that form the backbone of Python programming.

Variables and Data Types:
In Python, you can declare variables without specifying their data types explicitly. Python infers the data type based on the assigned value. Here's an example:

```python
# Variables and Data Types
name = "John"  # String
age = 30       # Integer
height = 6.1   # Float
is_student = True  # Boolean

# Printing the variables
print("Name:", name)
print("Age:", age)
print("Height:", height)
print("Is Student:", is_student)
```

Operators:
Python supports various types of operators for performing operations on variables and values. Let's look at some common operators:

```python
# Arithmetic Operators
x = 10
y = 5
print("Addition:", x + y)
print("Subtraction:", x - y)
print("Multiplication:", x * y)
print("Division:", x / y)
print("Modulus:", x % y)

# Comparison Operators
print("Greater than:", x > y)
print("Less than:", x < y)
print("Equal to:", x == y)
print("Not equal to:", x != y)

# Logical Operators
a = True
b = False
print("Logical AND:", a and b)
print("Logical OR:", a or b)
print("Logical NOT:", not a)
```

Basic Input and Output:
You can interact with users by taking input and displaying output in Python. Here's how:

```python
# Basic Input and Output
name = input("Enter your name: ")
print("Hello,", name, "! Welcome to Python programming.")
```
These are just a few basic concepts to get you started with Python. As you continue your journey, you'll explore more advanced topics and dive deeper into the capabilities of this powerful language.

Happy Coding :)
This is the beginning....
Published: 2024-03-02 15:30:18

This is the beginning of....Embarking on a lifelong quest to learn and practice everything related to coding, math, and the fascinating world of artificial intelligence!📖🔍🚀

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


(images generated by [](https://copilot.microsoft.com/images/create)Copilot Designer)