teleren/devto huggingface dataset:
How to connect your SQL Server RDS to your Self Managed Active Directories (Windows Authentication)
Tags: aws, rds, sqlserver, activedirectory
Published: 2024-03-22 08:31:46


Enabling Windows Authentication seems like an easy deal, you only need to configure some info that your organization must provide you:

- **Fully qualified domain name.** It's often a URL like `microsoft.com`
- **Domain organization unit.** It will look like this: `OU=AWS_ACCOUNT_NAME,OU=A_NUMBER,DC=YOUR_ORGANIZATION`
- **Authorization secret ARN.** The Active Directory credentials (user and password).
- **Domain organization unit.** Some range of IPs.
- **Secondary DNS.** Another range of IPs.

![preview 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2vsxv4p14rm8pgo8u39y.png)

However, the tricky part is to configure the secret since it's unclear. The first part is to **Store a new secret**.

![Preview secrets](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/945mes0lqo05yexps6hx.jpg)

Then, you need to choose, **Other type of secret**:

![Preview secrets 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r14aln68c10ut7kes4es.png)

You need to store the following keys:
- `CUSTOMER_MANAGED_ACTIVE_DIRECTORY_USERNAME`: Your AD user.
- `CUSTOMER_MANAGED_ACTIVE_DIRECTORY_PASSWORD`: Your AD password.
After you have created the secret, you must make some changes to the Resource permissions section.

Search for the **Principal** section and secure the RDS info is there:

```json
"Principal" : {
      "Service" : "rds.amazonaws.com"
}
```

After this is done, check if the **Condition** section exists and if not, modify it like this:

```json
"Condition" : {
  "StringEquals" : {
    "aws:sourceAccount" : "YOUR_AWS_ACCOUNT_ID"
  },
  "ArnLike" : {
    "aws:sourceArn" : "arn:aws:rds:YOUR_REGION:YOUR_AWS_ACCOUNT_ID:db:*"
  }
}
```

Where:

- The `aws:sourceAccount` is your AWS account ID.
- The `aws:sourceArn` is the one that enables the RDS that can have access to your secret. In this example, I gave access to all DBs inside our AWS account by using the `*`.

This should be enough to enable you to access your Self Managed Active Directory.

### Follow me on:

|  Personal  |  LinkedIn  |YouTube|Instagram|Cyber Prophets|Sharing Your Stories|
|:----------|:----------|:------------:|:------------:|:------------:|:------------:|
|[![Personal](https://raw.githubusercontent.com/FANMixco/federiconavarrete/master/img/favicons/favicon.png)](https://federiconavarrete.com)|[![LinkedIn](https://i.stack.imgur.com/idQWu.png)](https://www.linkedin.com/in/federiconavarrete)|[![YouTube](https://i.stack.imgur.com/CFPMR.png)](https://youtube.com/c/FedericoNavarrete)|[![Instagram](https://i.stack.imgur.com/PIfqY.png)](https://www.instagram.com/federico_the_consultant)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/cyber-prophets)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/sharing-your-stories)|


[![sponsor me](https://raw.githubusercontent.com/FANMixco/Xamarin-SearchBar/master/bmc-rezr5vpd.gif)](https://www.buymeacoffee.com/fanmixco)
Java Code Generator Tools Online
Published: 2024-03-15 09:48:46




When you’re making complicated algorithms, figuring out complex systems, and fixing bugs, every minute you save is a win. This is where online Java code generator come in like superheroes, giving you a powerful tool to fight boring coding jobs. This article will discuss these tools and how they can help you.


**What is a Java code generator?**
A [Java Code Generator is a tool](https://techysaas.com/java-code-generator-tools-online/) that is becoming more popular among coders. Who are always looking for ways to make their coding processes more accessible and productive. This tool makes manual coding a lot easier. 

So writers can focus on the more essential parts of their projects. Actually, AI code generators usually work with templates, patterns, or configurations already set up. They then turn these into working pieces of Java code.

**Feature of programming Java code generator**
 Bringing Out Efficiency and New Ideas It only takes one click. Time is precious for every experienced Java coder. You no longer have to type tedious code or deal with tricky grammar issues repeatedly. 

With auto-generated code for making requests and handling responses based on API specs, it’s easy to connect to REST APIs. You no longer have to parse JSON replies! 

 Add function and logic to your apps by writing code for buttons, text boxes, and other UI elements. This lets you focus on the app’s core logic and functionality. 

 Generated unit tests cover critical situations and ensure the code’s quality. They speed up the testing process and find bugs before they cause problems. You can see more magic like this on websites that make Java code.

Different tools have different features. For example, some are better at writing code for specific frameworks or working with version control systems.

**Advantages of Java packages**
Portability: Because Java is not tied to a specific platform, it’s easy to make apps that can run on many devices without any changes. This makes the release process faster.

Community Support: Many tools, forums, and libraries are available in the active Java community. 

 Scalability: Java’s ability to run large-scale business applications shows its scalability. 

**Popular online Java code generators**
**1. JDoodle**
It is a flexible platform that lets you write, run, and test code in many languages, including Java. 

**2. Workik – java code generator**

java code generator
Workik AI-powered help for many Java jobs, like writing code for microservices, APIs, and backend systems. Actually it is an AI-powered tool with an easy-to-use interface for making different Java
Constructor Functions in JavaScript 🤖
Tags: webdev, javascript, programming, beginners
Published: 2024-03-15 11:06:14

### ⚡ Introduction:

- Constructor functions are a fundamental aspect of Object-Oriented Programming (OOP) in JavaScript. 
- They allow us to create objects with predefined properties and methods. In this blog post, we'll explore the concept of constructor functions and how they can be used to create objects in JavaScript.
- Simply, Constructor function as **template**.  This template is used for **creating an object**.

### ⚡ Understanding Constructor Functions:

- Constructor functions are special functions in JavaScript used to create and initialize objects. 
- They serve as blueprints for creating multiple instances of objects with shared properties and methods.

### ⚡ Exploring the Code:

Let's break down the code snippet you provided:

```javascript
function Person(_name, _age) {
    this.name = _name;
    this.age = _age;
    this.greet = function () {
        console.log(`Hi, Welcome ${this.name}`)
    }
}
```

**Function Declaration:**

- We declare a function named `Person` , which serves as our constructor function. 
- It takes two parameters: `_name`  and `_age` , representing the name and age of a person.

**Initializing Properties:** 

- Inside the constructor function, we use the `this` keyword to create properties `name` and `age` for each instance of the `Person` object. 
- The values of these properties are set based on the arguments passed to the constructor function.


**Adding a Method:** 

We define a method named `greet` within the constructor function. This method allows each `Person` object to greet with a personalized message.


## ⚡ Instance Creation

```javascript
const person1 = new Person('Manikandan', 25);
```

**Creating an Instance:** 

We create a new instance of the `Person` object using the `new` keyword, passing 'Manikandan' as the name and 25 as the age.


**Logging the Object:** 

We log the `person1` object to the console, which displays the properties and methods associated with it.

```javascript
console.log(person1) // Person Person { name: 'Manikandan', age: 25, greet: [Function (anonymous)] }
```

**Invoking the Method:** 

We invoke the `greet` method on the `person1` object, which logs a personalized greeting message to the console.

```javascript
person1.greet(); // Hi, Welcome Manikandan
```

### ⚡ Conclusion:

Constructor functions are essential in JavaScript for creating objects with predefined properties and methods. They provide a convenient way to structure and organize code in an Object-Oriented manner. By understanding constructor functions, you'll be better equipped to leverage the power of OOP in your JavaScript projects.  Happy coding..!🧑🏻‍💻
Dereferencing Pointer in Rust
Tags: rust, dereference, webassembly, pointer
Published: 2024-03-15 11:27:09

Dereferencing refers to the process of accessing the value that a pointer or reference points to. It is done using the dereference operator *

```rust
//@yellowcoder  
//example #1

fn main(){

let x = 5;
let y = &x; // y is a reference to x

println!("{}", x);  // Prints: 5
println!("{}", y);  // Prints: 5  (automatically dereferenced)
println!("{}", *y); // Prints: 5  (explicitly dereferenced)

}

```
In the example above, x is the actual value (5), while y is a reference that points to the memory location where x is stored. When we try to print y directly, we get the memory address. To get the actual value 5, we need to dereference y using *y.

Dereferencing is necessary because Rust's ownership and borrowing rules are designed to ensure memory safety. References are just "views" into the actual data, and they don't own or control the data's lifetime. By requiring explicit dereferencing, Rust ensures that you are aware of when you're accessing the actual data through a reference, rather than the reference itself.

This explicit dereferencing helps catch potential bugs and promotes more readable and safer code, as it clearly distinguishes between working with references and working with the actual values they point to.

In summary, we need to dereference references in Rust to access the actual values they point to, as references themselves are just pointers to memory locations, not the values stored at those locations.


! Have a look on the below example 🧐

```rust
//@yellowcoder 
//example #2

fn example(z: &mut i32) {
    *z = 0;  // dereferencing to 0
    println!("value of z -> {}", *z); // Prints: 'value of z -> 0'
}

fn main(){
    println!(&mut 4);
}

```
I am new to dev looking to get job opportunity
Tags: webdev, javascript, programming, angular
Published: 2024-03-15 12:57:52

Proficiency in Angular framework for building dynamic web applications
Strong knowledge of Java programming language for backend development
Experience in developing RESTful APIs using Java
Familiarity with database technologies such as MySQL, PostgreSQL, or MongoDB
Understanding of front-end technologies such as HTML, CSS, and JavaScript
Ability to work with version control systems like Git
Knowledge of software design patterns and best practices
Experience with testing frameworks like JUnit and Jasmine
Familiarity with build tools like Maven or Gradle
Strong problem-solving skills and ability to work in a team environment.

Please feel free to connect with me on Linkedin 

[LINKEDIN](www.linkedin.com/in/omkar21)
Laravel 11: Publish Broadcasting Channels Route File
Tags: laravel, laravel11, route, brodcasting
Published: 2024-03-16 05:22:09

In this quick guide, I'll demonstrate how to publish a broadcasting channel route file in the Laravel 11 framework. 

With the impending release of Laravel 11, users can anticipate a host of new features and enhancements.

Notably, Laravel 11 boasts a more streamlined application structure and introduces features like per-second rate limiting and health routine.

By default, Laravel 11 doesn't display the broadcasting channels route file, and you're unable to define broadcasting channel routes within it.

However, if you wish to define such routes, you'll need to publish the broadcasting channels route file using the command provided below.

This command not only publishes the channels.php file

So, let's see how to publish the broadcasting channel route file in laravel 11.

Run the following command to publish the Broadcasting Channels route file.

```
php artisan install:broadcasting
```

The install:broadcasting command will create a routes/channels.php file where you may register your application's broadcast authorization routes and callbacks.

routes/broadcasting.php

```
<?php
  
use Illuminate\Support\Facades\Broadcast;
  
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
    return (int) $user->id === (int) $id;
});
```

When running the install:broadcasting command, you will be prompted to install Laravel Reverb. 

you may also install Reverb manually using the Composer package manager. Since Reverb is currently in beta, you will need to explicitly install the beta release.

```
composer require laravel/reverb:@beta
```

Once the package is installed, you may run Reverb's installation command to publish the configuration, add Reverb's required environment variables, and enable event broadcasting in your application.

```
php artisan reverb:install
``` 

---

You might also like:

#### **[Read Also: How to Publish API Route File in Laravel 11](https://techsolutionstuff.com/post/how-to-publish-api-route-file-in-laravel-11)**
How to Setup a Private Chat GPT: A Comprehensive Guide for the Utterly Clueless
Tags: chatgpt, llama2, ai
Published: 2024-03-16 19:46:03

Alright, dear utterly clueless audience, gather around. It’s time to dive into the mystical world of setting up a private chat GPT with Llama 2. If you’re an expert or even moderately savvy in tech, shoo! This isn’t for you. Go compile a kernel or something.

Welcome to Chat GPT with Llama 2: A Noob’s Tale

Once upon a time in the land of “I-Don’t-Know-What-I’m-Doing,” there were brave souls who decided to embark on a quest to set up their own chat GPT with Llama 2. It was said to be a task only for the valiant, but fear not, for I shall guide thee through this enchanted forest of technology. Once you get enough confidence, you can further enhance, train & use it locally on your data with minimal hardware in a windows laptop.

Step 1: The hardware - I am using my normal work laptop with 24GB ram and an old nvidia graphics card with 4 GB DRAM.

Step 2: I am going to install CUDA in my system. Note down your version. I am using 12.2

Step 3: I am going to use prebuilt llama.cpp from ggerganov in github to avoid any complexity of environment setup. I will need lama-b2440-bin-win-cublas-cu12.2.0-x64.zip & cudart-llama-bin-win-cu12.2.0-x64.zip. Download & extract them in the same folder.

Step 4: Finding the Llama. Look for llama-2-7b-chat.Q5_K_M.gguf in Hugging face & download it into the same directory as above

Step 5: Awakening the Llama. Run below command if have reached upto here successfully. If all goes well, you’ll have a chatbot ready to converse with you about the mysteries of the universe or, more likely, the weather.

`main -m llama-2-7b-chat.Q5_K_M.gguf -i --n-gpu-layers 32 -ins --color -p "Starting your language model"`

Step 6: Chatting with the Llama Congratulations! 

You’ve successfully set up your chat GPT with Llama 2. Now you can chat about life’s greatest questions, like “Why are we here?” or “What’s for dinner?” Just remember, the Llama is wise, but it’s not a chef.

And there you have it, a simple guide for the utterly clueless. May your chats be merry, and your Llama never spit.
AI Music Business – Create songs without any music knowledge
Tags: webdev, programming, news, devops
Published: 2024-03-17 07:01:18

Create and successfully market songs at the push of a button without any knowledge of music
1
Benefit from smart music AI tools
2
Create hit-quality music tracks in just 5 minutes
3
Possible without your own website
4
Perfect for beginners in online business (because it’s extremely easy!)
5
You can start IMMEDIATELY!
https://ln.run/rJl-G
What is chmod numbers in linux?
Published: 2024-03-17 08:59:02

In Linux, `chmod` is a command used to change the permissions of files and directories. Permissions determine who can read, write, and execute a file. 

The permissions are represented by three groups: owner, group, and others. Each of these groups has three types of permissions: read (r), write (w), and execute (x). 

To change permissions using `chmod`, you can use either symbolic mode or numeric mode. In numeric mode, permissions are represented by three octal digits:

1. The first digit represents the permissions for the owner.
2. The second digit represents the permissions for the group.
3. The third digit represents the permissions for others.

Each digit is a combination of the following values:

- 4 for read permission (r)
- 2 for write permission (w)
- 1 for execute permission (x)

You add these values together to assign permissions. For example:

- 7 = 4 (read) + 2 (write) + 1 (execute) = full permissions (rwx)
- 6 = 4 (read) + 2 (write) = read and write permissions (rw-)
- 5 = 4 (read) + 1 (execute) = read and execute permissions (r-x)
- 4 = 4 (read) = read-only permissions (r--)
- 0 = No permissions (--)

So, when you use `chmod` with numeric mode, you specify the desired permission using these digits. For example, to give read, write, and execute permissions to the owner, read and execute permissions to the group, and only execute permission to others, you would use:

```
chmod 751 filename
```

This would set the permissions as follows:

- Owner: rwx (7)
- Group: r-x (5)
- Others: --x (1)

Disclaimer: This article was created with the help of AI.
My Arch Linux Experiment: Could It Be the Secret Weapon for Digital Asset Tax Work?
Tags: programming, linux, archlinux
Published: 2024-03-17 16:54:23

Hey everyone! I'm Lance, the Baruch College accounting student who's always got one eye on the crypto world. Lately, I've been wrestling with the mind-bending world of digital asset taxation (fun, right?) and building some tools to make my life easier. But here's the thing – I've started tinkering with Arch Linux, and I'm wondering if it could be a game-changer for my work.

## Why I'm Tired of Bloat
Look, I love tech, but sometimes it feels like every operating system comes with a side of software I never asked for. Tax research databases, spreadsheets, Python environments – that's my jam, not pre-installed games and photo editors. Arch's "build your own adventure" approach is strangely refreshing. It might mean a steeper learning curve, but hey, I'm up for the challenge.

## Chasing the Cutting-Edge
Tax rules around crypto are like a moving target. One day you think you've got it figured out, then BAM! A new regulation drops. I need to stay on top of updates to tax software and all the latest legal stuff. Arch's rolling releases seem like they could be a lifesaver here.

## The AUR: Proceed with Caution
Okay, the Arch User Repository is kinda blowing my mind. It's like this hidden marketplace for anyone who's ever thought, "Wow, I wish there was a super niche tool to calculate exactly this weird crypto tax scenario." But the thing with community-made stuff is you gotta be extra careful. Security is no joke when it comes to tax data.

## Embracing My Inner Tech Nerd
The truth is, figuring out how Arch Linux works is scratching an itch I didn't know I had. I'm geeking out over the command line and digging into blockchain concepts on the Arch Wiki. At first, I wondered if this was a distraction from my actual tax work. But now I think understanding how these systems work under the hood can only make me better at analyzing their tax implications.

## The Big Question
So, is Arch the ultimate power-up for digital asset taxation and development? The jury's still out for me. But if you're the type who thrives on customization, isn't afraid to get your hands dirty with tech, and loves the thrill of the chase when it comes to new tools, it might be worth investigating.

What do you guys think? Anyone else out there experimenting with Arch or have an OS they swear by for this kind of work? Let's chat in the comments!
ചന്ദ്രിക
Tags: meme
Published: 2024-03-17 19:06:16

ഞാൻ ഒരു 24 കേബേജ് മുസ്ലിം ലീഗ്കാരി ആണു. ചന്ദ്രിക പത്രം പോരാഞ്ഞ് ചന്ദ്രിക സോപ്പ് വരെ ആണു ഉപയോഗിക്കുന്നെ.
FREE AI Course By Microsoft: ZERO to HERO! 🔥
Tags: microsoft, ai, career, news
Published: 2024-03-18 19:30:00

With AI engineers bragging about a high amount, you know there's high demand in the field where the supply is short and the trendiness is obvious.

Become a PRO at AI with this one course offered by Microsoft.

Forget about the pay! You can literally learn AI for free through the **Microsoft AI course which consists of 24 lesson curriculum**.

🔗 https://github.com/microsoft/AI-For-Beginners
🔗 https://microsoft.github.io/AI-For-Beginners/

Each lesson is **followed by a challenge and assignment**. 

You will also find links to Jupyter Notebooks along with the lessons, wherever necessary.

Learn topics like Symbolic AI, Neural Networks, Computer Vision, Natural Language Processing, and more.

![Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmbv6x2a7ahtxb5g9630.png)
<figcaption>
AI For Beginners - Sketchnote by @girlie_mac </figcaption>

***

### Full Syllabus 👇

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

Hands-on lessons, quizzes, and labs enhance your learning.

**Perfect for beginners**, this comprehensive guide, designed by experts, covers TensorFlow, PyTorch, and ethical AI principles.

***

### Learn 😎

- _Different approaches to Artificial Intelligence, including the "good old" symbolic approach with Knowledge Representation and Reasoning (GOFAI)_.

- _Neural Networks and Deep Learning, are at the core of modern AI. We will illustrate the concepts behind these important topics using code in two of the most popular frameworks - TensorFlow and PyTorch_.

- _Neural Architectures for working with images and text. We will cover recent models but may lack a little bit of the state-of-the-art._

- _Less popular AI approaches, such as Genetic Algorithms and Multi-Agent Systems._

***

### What about Generative AI? 🤔

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

Yes, **they have got it covered!**

Recently, they also released a **12-lesson curriculum Generative AI course**.

Learn:

- _prompting and prompt engineering_
- _text and image app generation_
- _search apps_

Check it out:

🔗 https://aka.ms/genai-beginners
🔗 https://github.com/microsoft/generative-ai-for-beginners/

***

### Final Thoughts 🙌

Share your favourite AI-learning resources in the comments below. I'd be more than happy to see the list grow big!

Also don't hesitate to share your thoughts about this course if you have taken it and your thoughts on Microsoft offering such a comprehensive course for FREE.

I hope you liked the article! ❤️

Connect with me on [linktree.](https://linktr.ee/arjuncodess/)

Happy Coding! 🚀
Thanks for 22697! 🤗