teleren/devto huggingface dataset:
Is Dictador's AI Robot CEO A Threat To Leadership Roles In The Business Landscape?
Tags: ai, news, machinelearning, robotics
Published: 2023-11-09 16:29:56

In a groundbreaking move, Colombian spirits maker **Dictador** has appointed **Mika**, **the world's first AI CEO**, created in collaboration with **Hanson Robotics**. Mika, an advanced version of Sophia, is designed to embody Dictador's ideals using **AI and machine learning** to make data-driven decisions swiftly and accurately. The company's bold decision aims to revolutionize the business landscape and showcases a commitment to innovation.

David Hanson, CEO of Hanson Robotics, emphasizes the importance of "humanizing" AI for safety and effectiveness, believing that teaching AI to care about people is crucial. The move has sparked diverse reactions, with some expressing kindness towards the robot CEO, while others remain skeptical, asserting that robots don't need respect as they are "just machines."

The integration of AI in leadership raises questions about the future of human workers, with opinions divided on whether AI will continue to displace human roles. While Mika asserts the potential for AI to lead with efficiency and effectiveness, others argue that the combination of unbiased AI data and human emotional intelligence is key for optimal decision-making.

As **Dictador** pioneers the fusion of AI and leadership, the appointment of Mika prompts reflection on the evolving role of AI in shaping the business landscape and raises the question: Is this the dawn of a new era where AI takes the helm in corporate leadership? The world watches as Mika's AI-driven leadership unfolds, opening up discussions on the intersection of technology and corporate governance.

To read more exciting technology content, dive into [TechDogs'](https://www.techdogs.com/) vast repository of [Articles](https://www.techdogs.com/resource/td-articles), [White Papers](https://www.techdogs.com/resource/white-papers), [Case Studies](https://www.techdogs.com/resource/case-studies), [Videos](https://www.youtube.com/channel/UCZ0lgIRSVraU14O9bp3bMCQ),[ News](https://www.techdogs.com/resource/tech-news) and [Events & Webinars](https://www.techdogs.com/resource/events) that help you Know Your World of Technology.
Git Stash Magic: Navigating Code Emergencies and Context Switches with Ease
Tags: git, programming, gitstash, beginners
Published: 2023-11-09 16:26:05

Being a junior software engineer in a team means dealing with a shared code repository, and Git is a common choice for version control. Git’s stash operation is a lifesaver when you need to switch contexts swiftly. It allows you to temporarily save your changes without committing, providing a clean workspace for your new task. This article sheds light on how to use and undo git stash, and explores scenarios where it shines.

## Understanding Git Stash:
Git stash takes your modified tracked files and staged changes, and saves them on a stack of unfinished changes that you can reapply at any time. It’s your magic wand whenever the need arises to clean the workspace momentarily.

### Usage:

#### Stashing Changes:
- Use the command `git stash` to save your changes to a new stash entry.
- For a more descriptive approach, use `git stash save "your message here"` to attach a message with your stash.

#### Applying Stashed Changes:
- Bring back the stashed changes with `git stash apply`.
- If you have multiple stashes, use `git stash list` to view them and `git stash apply stash@{n}` (n is the number of the stash you want to apply from the list)to apply a specific stash.

### Undoing Git Stash:

#### Dropping a Stash:
- If you no longer need the stashed changes, use `git stash drop stash@{n}` to remove a specific stash.

#### Popping a Stash:
- Use `git stash pop` to apply the latest stashed changes and remove them from the stash list.

### Real-world Scenarios (actually used it for these exact instances during my internship):

- **Emergency Bug Fixes:** When an urgent bug fix comes in, git stash provides a clean slate to work on the fix without losing ongoing work.
- **Testing Branches:** If you need to switch between branches for testing, git stash helps in maintaining a clean workspace, enabling an easy transition.
- **Code Reviews:** Stash your changes to review a colleague’s code without the clutter of your own modifications.
- **Merging Updated Upstream Changes:** Before merging updated changes from the main branch, stashing your work ensures a clean merge, reducing the likelihood of conflicts.

## Conclusion:
Mastering git stash early in your career simplifies context-switching, making you a more adaptable and efficient developer in a collaborative environment. So the next time you find yourself juggling between tasks, remember, git stash is your friend!

### Your Experiences and Tips?

Got a tip or a cool trick with git stash that's made your coding life easier? Share your experiences in the comments below. Let's learn from each other and build a repository of git wisdom!
DAY3: Python day5
Published: 2023-11-09 16:24:14

- the `for` loop

- had some challenges comparing the magnitudes of `int` items in a list. Key was to create variable `highest_score = 0` and keep replacing it.

- `range()` function: parameter goes (start of range, end of range exclusive, step size)

**End of the lesson project**

```
#Password Generator Project
import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']

print("Welcome to the PyPassword Generator!")
nr_letters= int(input("How many letters would you like in your password?\n")) 
nr_symbols = int(input(f"How many symbols would you like?\n"))
nr_numbers = int(input(f"How many numbers would you like?\n"))

#Eazy Level - Order not randomised:
#e.g. 4 letter, 2 symbol, 2 number = JduE&!91
password = ""
for char in range(1, nr_letters + 1):
  password = password + random.choice(letters)
for symb in range(1, nr_symbols + 1):
  password = password + random.choice(symbols)
for num in range(1, nr_numbers + 1):
  password = password + random.choice(numbers)

print(password)
  

#Hard Level - Order of characters randomised:
#e.g. 4 letter, 2 symbol, 2 number = g^2jk8&P
password2 = []
for char in range(1, nr_letters + 1):
  password2.append(random.choice(letters))
for symb in range(1, nr_symbols + 1):
  password2.append(random.choice(symbols))
for num in range(1, nr_numbers + 1):
  password2.append(random.choice(numbers))

random.shuffle(password2)

password_string = ""
for item in password2: 
  password_string += item 

print(password_string)
```
112 berufliches Vorwärtskommen: „Gedankenexperimentchen“ zur Strebsamkeit.
Tags: deutsch, career, motivation, discuss
Published: 2023-11-09 16:00:00

Moin Moin,

stell dir vor, dass das Ergebnis deines Strebens, im Bezug auf deine IT-Karriere, dir _bald_ bekannt wäre.
Anmerkung: _Ich habe „bald“ bewusst nicht näher eingegrenzt._
Wie würdest du die Zeit bis dahin nutzen?
Klarstellung: Also das Streben nach Erreichung deines IT-Karriere-Ziels.

Also wie würdest du die Zeit bis dahin nutzen?

A 1.1) Ich würde erstmal nicht am Ziel arbeiten, sondern abwarten bis mir das Ergebnis klar ist
A 1.2) Ich würde weiter an meinem Ziel arbeiten

( Falls du Aussage  A 1.1 gewählt hast )
A 2.1.1) Ich würde in der Zwischenzeit andere Karriere-Ziele verfolgen
A 2.1.2) Ich würde nach [Meer oder Mär streben→](https://dev.to/amustafa16421/110-berufliches-vorwartskommen-warum-strebst-du-nach-mehr-5bbf) ( also nicht arbeiten, sondern Urlaub machen und anderes )

( Falls du Aussage  A 1.2 gewählt hast )
A 2.2.1) Ich würde mehrere Ziele bis zum Klarwerden verfolgen
A 2.2.2) Ich würde dieses eine Ziel bis zum Klarwerden verfolgen

Verhältst du dich in der Wirklichkeit genau so wie im „Gedankenexperimentchen“?

Gib in den Kommentaren an, welche Aussagen du gewählt hast.

Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch
Rolling my own front-end framework pt. 1/?
Tags: typescript, framework, frontend
Published: 2023-11-09 15:55:42

For a long time I've iterated on my own small front-end framework fueled by ongoing developer gripes with popular libraries. My goal here is to write a series of posts as a retrospective on that work, summarize design goals and document the problems I faced and how I chose to solve them.

Repo link: [j-templates](https://github.com/TypesInCode/jTemplates)

The framework was used to make [Qwiqwit](https://qwiqwit.com), a multi-player web-game I built with my friend, [Paul](https://paulwind.com/).

Some of the initial goals were:
- No transpile step besides TypeScript
- Fully typed in the editor, no bindings in string or .html templates
- Sensibly reactive, no need to self-manage change detection

My goals were reactions to pitfalls present in early React/Angular development. This was 6+ years ago so a lot of these complaints have been addressed since.

## Hello World
```typescript
import { Component } from 'j-templates';
import { div } from 'j-templates/DOM';

// Create the Component class
class HelloWorld extends Component {

    // Override the Template function
    Template() {
        return div({}, () => "Hello world");
    }

}

// Convert the class to an element function
const helloWorld = Component.ToFunction("hello-world", null, HelloWorld);
// Append a new hello-world element to the page
Component.Attach(document.body, helloWorld({}));
```
Produces the following markup:
```html
<hello-world>
    <div>Hello world</div>
</hello-world>
```
All elements are represented as functions that take a configuration object. The `HelloWorld` component class is converted to a function using the `Component.ToFunction(...)` method. Calling one of these function returns a `NodeDefinition` object which is the framework's virtual representation of the DOM.  

Element functions (i.e. div, span, p) take a second parameter to define children. This function can return a string to create a text node or one/many `NodeDefinition` objects. This is all you need to start building static views.
```typescript
import { Component } from 'j-templates';
import { div, span, h1, b } from 'j-templates/DOM';

class MessageHeader extends Component {
    Template() {
        return h1({}, () => "Incoming Message");
    }
}

const messageHeader = Component.ToFunction("message-header", null, MessageHeader);

class HelloWorld extends Component {
    Template() {
        return [
            messageHeader({}),
            div({}, () => [
                b({}, () => "Message Body: "),
                span({}, () => "Hello world")
            ])
        ];
    }
}

const helloWorld = Component.ToFunction("hello-world", null, HelloWorld);
Component.Attach(document.body, helloWorld({}));
```
Produces the following markup:
```html
<hello-world>
    <message-header><h1>Incoming Message</h1></message-header>
    <div><b>Message Body: </b><span>Hello world</span></div>
</hello-world>
```
Give it a shot: [Code Sandbox](https://codesandbox.io/s/j-templates-static-components-w6j4ry?file=/index.ts). Next post will describe how to bind to data.
Go for beginners
Tags: go, networking, distributedsystems, machinelearning
Published: 2023-11-09 15:54:19

**Go for beginners**

Go, also known as Golang, is a modern programming language developed at Google in 2009. It is a compiled language, which means that Go programs are converted into machine code that can be executed directly by the computer. Go is also a statically typed language, which means that the data types of all variables must be known at compile time.

Go is a popular choice for developing web applications, cloud computing services, and command-line tools. It is also used in a variety of other domains, such as machine learning, distributed systems, and networking.


Here are some of the benefits of using Go:

* **Simple:** Go is a relatively simple language to learn, even for beginners. It has a small syntax and a standard library that provides a wide range of functionality.
* **Efficient:** Go programs are compiled into machine code, which makes them very efficient. Go also has a built-in garbage collector, which automatically manages memory allocation and deallocation.
* **Concurrent:** Go supports concurrent programming, which means that multiple tasks can be executed simultaneously. This is useful for developing applications that need to handle a large number of concurrent requests.
* **Tooling:** Go has a good set of tools, including a compiler, debugger, and IDE. This makes it easy to develop and debug Go programs.

If you are interested in learning to program in Go, there are a number of resources available online and in libraries. You can also find a number of tutorials and books on Go.

Here are some tips for getting started with Go:

* **Install the Go compiler:** You can download the Go compiler from the Go website.
* **Create a Go project:** To create a new Go project, create a directory for your project and navigate to it in your terminal. Then, run the following command:

```
go mod init <project-name>
```

* **Write a Go program:** To write a Go program, create a file with the `.go` extension. For example, you could create a file called `main.go`.
* **Compile and run your Go program:** To compile and run your Go program, run the following command:

```GO
go run main.go
```

Once you have the basics down, you can start learning more about advanced Go topics, such as concurrency, error handling, and testing.

Here are some resources that you may find helpful:

* The Go Programming Language website: https://go.dev/: This website contains a wealth of information about Go, including tutorials, documentation, and examples.
* Go by Example: https://gobyexample.com/: This website provides a series of interactive Go tutorials.
* Effective Go: https://go.dev/doc/effective_go: This book provides a number of tips and best practices for writing Go code.

I hope this blog post has given you a good introduction to Go. If you have any questions, please leave a comment below.
The Blueprint for Trustworthy AI: Constructing Accurate Chatbots with Sophisticated Data Pipelines
Tags: ai, tutorial, python, openai
Published: 2023-11-09 15:49:41

## AI Custom Chatbot with an Advanced Data Pipeline

**To get started leveling up your custom AI chatbot, check out our [GitHub repository here](https://github.com/focused-labs/ai-custom-chatbot-data-pipeline).**

This tutorial shows you how to level-up your data pipeline when building a custom AI chatbot.

We recommend setting up a basic custom chatbot first. This tutorial will build on top of [the quick start you can reference here](https://github.com/focused-labs/ai-custom-chatbot-quickstart).

## Building AI chatbot apps is easy. Customizing is hard.

We are using our preferred tech stack.

- [OpenAI](https://openai.com/)
- [Langchain](https://python.langchain.com/docs/get_started/introduction)
- [Llama Hub Data Loaders](https://llamahub.ai/)
- [Pinecone Vector Database](https://pinecone.io/)
- Python [(FastAPI web framework)](https://fastapi.tiangolo.com/)

We are leveraging Retrieval Augmented Generation (RAG). 

### The goal of this tutorial is to help level-up your customized chatbot beyond the basics.

- Increase accuracy
- Grow dataset by integrating more disparate data sources
- Earning user trust

### Technical Objectives

- Increase accuracy by implementing multiple data cleansing techniques
- Integrate Notion
- Earn user trust by providing the link to the original data source

### Here’s a peak at the components of the AI custom chatbot.


![Architecture Overview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/swzrt5i9n9k50yelwvog.png)

#### For more resources: check out [our other blog posts on AI](https://focusedlabs.io/ai).
C# - Caching Data with MemoryCache
Tags: csharp, programming, tutorial
Published: 2023-11-09 15:30:00

Caching is a powerful technique to improve the performance and responsiveness of your applications by storing frequently accessed data in memory. The `MemoryCache` class in C# provides a flexible and efficient way to implement caching.

```csharp
using System;
using System.Runtime.Caching;

class Program
{
    static void Main()
    {
        // Create a MemoryCache instance
        var cache = MemoryCache.Default;

        // Define cache key and data
        string cacheKey = "MyCachedData";
        string cachedData = "This data is cached.";

        // Add data to the cache with an expiration time of 5 minutes
        CacheItemPolicy cachePolicy = new CacheItemPolicy
        {
            AbsoluteExpiration = DateTimeOffset.Now.AddMinutes(5)
        };

        cache.Add(cacheKey, cachedData, cachePolicy);

        // Retrieve data from the cache
        string retrievedData = cache.Get(cacheKey) as string;

        if (retrievedData != null)
        {
            Console.WriteLine("Data retrieved from cache: " + retrievedData);
        }
        else
        {
            Console.WriteLine("Data not found in cache.");
        }
    }
}
```

In this example:

1. We create a `MemoryCache` instance using `MemoryCache.Default`. You can also create custom cache instances with specific settings if needed.

2. We define a cache key (`cacheKey`) and the data (`cachedData`) that we want to cache.

3. We set up a `CacheItemPolicy` that specifies an absolute expiration time of 5 minutes for the cached item. You can configure other cache policies such as sliding expiration, change monitoring, or removal callbacks as needed.

4. We add the data to the cache using `cache.Add` and provide the cache key, data, and cache policy.

5. To retrieve data from the cache, we use `cache.Get` and cast the retrieved object to its original type. If the data exists in the cache, we display it; otherwise, we indicate that the data was not found.

Using `MemoryCache` allows you to store frequently used data in memory, reducing the need to recompute or fetch data from slower data sources, such as databases or web services. This can significantly improve the performance and responsiveness of your applications, especially for data that doesn't change frequently.
Pacman AI learning to love pellets
Tags: ai, reinforcementlearning, atari, pacman
Published: 2023-11-09 15:20:04

Been going through [Hugging Face's Deep RL course](https://huggingface.co/learn/deep-rl-course/unit0/introduction), currently on unit 3. Having a lot of fun so far!

{% embed https://www.youtube.com/shorts/mk0RxfudLNw %}
Day 10 Final Year Project Work
Published: 2023-11-09 15:03:21

WOW 10 Days let's goo........

Today me and my teammate were fixing our final year project. He praised me for my python skills but honestly, I was just fixing the excel file's path and installing python modules using pip on his computer lol. 


Other than I was looking through some ML concepts used in our project, for example encoders, Decision trees, Random Forest, understanding the code. I need to study it in a little more detail though.
Open Ai ChatGpt
Published: 2023-11-09 15:00:42

Протестировать работу искусственного интеллекта сейчас уже можно на моделях [ChatGPT](https://chat.openai.com/), [Google Bard](https://bard.google.com/) и [Claude.ai](https://claude.ai/). Если вы не хотите регистрироваться, то работу [чатгпт можно протестировать бесплатно на сайте open-ai-chatgpt.ru](https://open-ai-chatgpt.ru/).
Unlocking Your Amazon Potential: Empowering Success with CogentSolutions
Published: 2023-11-09 15:00:28

CogentSolutions offers comprehensive services in the realm of [Amazon advertising](https://cogentsolutions.co/services/), helping businesses harness the power of the platform to maximize their online visibility and sales. Our team of experts excels in crafting tailored advertising strategies, optimizing product listings, and managing campaigns to ensure optimal performance. From keyword research and bid management to A/B testing and performance analysis, CogentSolutions delivers results-driven solutions that drive traffic, boost conversions, and enhance the overall presence of brands on the Amazon marketplace.
AWS Shield: Your Digital Bodyguard in the Wild World of Cloud Computing
Tags: aws, todayilearned
Published: 2023-11-09 14:33:52

My dear friend, AWS Shield is a hero of yours AWS applications and resources. The firewall safeguards it from the annoying distributed denial of service (DDOS) attacks, which attempt to spoil the fun.

Consider it as a security personnel guarding your data at the gate of the ‘club’. It discovers them in advance so they cannot hurt your surroundings.

Lastly, AWS Shield is accompanied by its famous friends, AWS WAF and AWS Firewall Manager. Together they make an unbeatable defense shield against ill-intentioned net users.

But wait, there's more! AWS Shield’s ability to identify attacks at different levels of the network cake. SNORT traces troublemakers at both Layer 3, Layer 4 and even Layer 7 of the network.

Now, when you're at the AWS Shield store, you have two options on the menu:

## Free of Charge AWS Shield Standard.
- It protects you from L4, L7 and most common L3, L4 network and transport layer DDoS attacks.
- This includes providing the CloudFront, Route 53, and AWS Global Accelerator services to protect your perimeter.

## This is the superhero package – AWS Shield Advanced.
- Provides you with a broader coverage against DDoS attacks, vulnerability exploits as well as nasty bots.
- More resource types covered such as EC2, elastic ip, cloudfront etc.
- Your 24/7 DDoS crisis hotline, the shield response team.
- It protects against application-layer attacks.
- Partnering together at layer 7 with AWS WAF.
- Gives an improved lookout into real-time attack details.
- Uses rapid handshake protocol with Route 53 for early attack detection.
- Allows creating protective teams such as defending gangs for their assets.
- Cost protection will be there with you during emergencies.
- Associates with a centralized firewall manager.

But here's the deal: The other one costs a lot, its name being AWS Shield Advanced and its price is three thousand dollars per month under an obligatory subscription for 12 months. So, you are buying more assurance.

AWS Shield Standard tells you the global and account-wide level of visibility into exposed and incoming threats. That is as if you are welcoming the bad guys at your door.

The AWS Shield Advance, however, is a fully equipped security command centre. It gives complete information about your DDoS events, CloudWatch metrics and also enables you to monitor multiple accounts at once.

Thus, in the realm of AWS shield, you can have a go at either the entry-level bouncer or the superhero pack, whichever works best security for you.

Ultimately, AWS Shield plays the role of a cyberguard who protects your AWS services from cyberbullies in the end. Consider it as your personal security guard in the realm of cloud technology! 💪🛡️