teleren/devto huggingface dataset:
Add Bootstrap in Angular
Tags: bootstrap, angular, javascript, beginners
Published: 2024-01-30 07:02:45

Hi, All today I am going to show you how we can add CSS framework in angular and I am using Bootstrap for this Post.
 
* Visit Bootstrap's official website https://getbootstrap.com/

![bootstrap website](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8w189188stkqwal9oke7.png)


* You will see the npm command to install the package  
  ```
   npm i bootstrap@5.3.2
   ```
* After installing this package go into your angular.json file and add this lines into this object. 

![Angular json](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ep2cwyhtlx0bvd2p9tk.png)

```
"styles": [
            "src/styles.scss", 
            "node_modules/bootstrap/scss/bootstrap.scss"
          ],
            "scripts": [
              "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
            ]
```

* run your application using 

```
ng serve
```
* Open the app.component.html file remove all default HTML and change the HTML with the following
```
<div class="container m-5 d-flex gap-2">
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>
</div>
```
Now check your browser 
![Browser](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dltyywh7w5podfqcvs5h.png)

In this way, we integrated Bootstrap into your Angular project it will work for any version of Angular and if you have any queries or doubts then feel free to reach out to me!!
Amazon S3 and AI: Empowering Machine Learning with Advanced Cloud Storage Solutions for AI Workloads
Tags: aws, awss3
Published: 2024-01-30 06:51:37

The fusion of **Amazon S3 and AI** represents a paradigm shift in the way organizations approach machine learning. [Amazon S3 Consulting](https://vizioconsulting.com/aws/amazon-s3/), supported by specialized consulting services, empowers businesses to optimize their AI workloads, ensuring scalability, security, and efficiency. As the synergy between cloud storage and AI continues to evolve, Amazon S3 stands as a pioneering force, driving innovation and transformative possibilities in the AI landscape.

Moreover, the security features embedded in Amazon S3 provide a robust foundation for safeguarding sensitive AI data. Encryption, access controls, and compliance features ensure that organizations can meet stringent data protection standards, a critical consideration in AI applications dealing with sensitive information.
Do not use Flows, Page Layouts are Dead, API Versioning for LWC Components
Tags: salesforce, salesforcedevelopment, salesforceadministration, salesforceadmin
Published: 2024-01-30 06:49:00

#  This is a weekly newsletter of interesting Salesforce content

See the most interesting #Salesforce content of the last days 👇

✅ **[Do not use Flows](https://beyondthecloud.dev/blog/salesforce-flow-considerations)**
Flows are great. As point-and-click automation, it allows you to build business logic faster and at a lower cost. However, before you use Flows in your project, you should be aware of their limitations and consider them alongside good old Apex!

✅ **[Page Layouts are Dead](https://courses.certifycrm.com/page-layouts-are-dead/)**
Are we ready to retire Page Layouts?

✅ **[Introducing Component-Level API Versioning for LWC](https://developer.salesforce.com/blogs/2024/01/introducing-component-level-api-versioning-for-lwc.html)**
LWC API versioning is a great way to ensure backward compatibility for your existing components, while still allowing new components to adopt new features. If you've already written LWC components and shipped them on the Salesforce Platform, there is no action required on your part. However, if you are interested in how LWC works under the hood, or if you'd like to get the latest and greatest improvements to the speed and functionality of your LWC components, then read on.

✅ **[Difference Between Count() and Count(fieldName) in SOQL Query](https://sudipta-deb.in/2024/01/difference-between-count-and-countfieldname-in-soql-query.html)**
The COUNT() method in SOQL is used to count the number of records that meet specified criteria. But COUNT(fieldName) function is used to count the number of non-null (non-empty) values in a specific field across a set of records. This function differs from the COUNT() function, which simply counts the total number of records.

✅ **[LWC Getters and Setters - The Last Frontier](https://beyondthecloud.dev/blog/lwc-getters-and-setters-the-last-frontier)**
You want to learn how and when to use getters and setters in LWC? You're not sure if you're using it in correct way? Or you just like to read posts on BTC? Well - you're in the right place!



Check these and other manually selected links at https://news.skaruz.com

Click a Like button if you find it useful. 
Thanks.
How to do Feature Flags in Ruby on Rails
Tags: rails, devops
Published: 2024-01-30 06:48:36

Feature flags is a [pattern](https://martinfowler.com/articles/feature-toggles.html) allow you to build system with confidence. You can ship new code / adding new behavior or conducting A/B testing without deploying new code.

Here I am going to share an opinionated way to doing feature flag in Rails project using [flagr](https://bit.ly/3w14Sxy).

## What is Flagr

Flagr is a feature flag evaluation framework. Basically, it provides the flexibility of:

- assigning any JSON value to a "flag"
- designing any passing condition (or even condition combination) for flag
- adding rollout percentage
- a simple interface where the team can modify it directly.

And it's super fast (written in Go and usually the evaluation took few ms to finish).

## Setup

First you will need to decide where do you want your flagr service to store data. Check [doc](https://openflagr.github.io/flagr/#/flagr_env) for available storage option.

And then you might want to decide how to host it. In my current setup, given the low memory footprint and lightweight design of it, we just make it as a "sidecar" container sitting internally aside our web service.

So inside your Ruby code, you can just do a POST request to the internal path `http://flagr/flagr/api/v1/evaluation/batch` to get evaluation result almost without any latency.

Check their [detailed doc](https://openflagr.github.io/flagr/#/flagr_overview) on how the evaluation work.

## Downsides

The whole design of flagr is that **evaluation is stateless** meaning that you will get the same result with the same input (in most case, User ID). This might cause some issue when we are building a more complicated rollout mechanism. The fix would be adding an extra layer of persistence storage on top of flagr. 

The other issue would the condition design of flagr is too simply that you won't be allowed to construct complicated conditions. And for that one, you would need to model multiple flags in your own code.

## Conclusion

After trying lots of feature flags library, hosted or not, I think flagr provide a good enough abstraction with flexibility for any size Rails project.
How to Feature Flags in Ruby on Rails
Tags: rails, devops
Published: 2024-01-30 06:48:36

Feature flags is a [pattern](https://martinfowler.com/articles/feature-toggles.html) allow you to build system with confidence. You can ship new code / adding new behavior or conducting A/B testing without deploying new code.

Here I am going to share an opinionated way to doing feature flag in Rails project using [flagr](https://github.com/openflagr/flagr).

## What is Flagr

Flagr is a feature flag evaluation framework. Basically, it provides the flexibility of:

- assigning any JSON value to a "flag"
- designing any passing condition (or even condition combination) for flag
- adding rollout percentage
- a simple interface where the team can modify it directly.

And it's super fast (written in Go and usually the evaluation took few ms to finish).

## Setup

First you will need to decide where do you want your flagr service to store data. Check [doc](https://openflagr.github.io/flagr/#/flagr_env) for available storage option.

And then you might want to decide how to host it. In my current setup, given the low memory footprint and lightweight design of it, we just make it as a "sidecar" container sitting internally aside our web service.

So inside your Ruby code, you can just do a POST request to the internal path `http://flagr/flagr/api/v1/evaluation/batch` to get evaluation result almost without any latency.

Check their [detailed doc](https://openflagr.github.io/flagr/#/flagr_overview) on how the evaluation work.

## Downsides

The whole design of flagr is that **evaluation is stateless** meaning that you will get the same result with the same input (in most case, User ID). This might cause some issue when we are building a more complicated rollout mechanism. The fix would be adding an extra layer of persistence storage on top of flagr. 

The other issue would the condition design of flagr is too simply that you won't be allowed to construct complicated conditions. And for that one, you would need to model multiple flags in your own code.

## Conclusion

After trying lots of feature flags library, hosted or not, I think flagr provide a good enough abstraction with flexibility for any size Rails project.
How To Automate an Excel Sheet in Python
Tags: python, coding, programming, tutorial
Published: 2024-01-30 06:41:52

Imagine having to create accounts for 10,000 employees on a website. Sounds overwhelming, right? Doing this manually would be a nightmare – it's tedious, time-consuming, and honestly not a great idea.

Now, think about data entry workers. They extract information from tables, maybe in Excel or Google Sheets, and then input it somewhere else. They read through various sources, gather data, and enter it into a database. On top of that, they have to do calculations for the entries.

Their pay often depends on how much data they handle – the more they process, the more they earn. But let's be honest, doing the same repetitive task over and over can get pretty boring.

So, the question is, how can we make this process faster? How can we automate our work?


Well, here's an idea: spend some time coding. Instead of doing these tasks manually, you can write a few lines of Python code to automate the whole thing. It's like a shortcut to make your life easier and save you from the monotony of repetitive tasks.

Openpyxl

The Openpyxl Python module is employed for interacting with Excel files, allowing users to both read from and write to them. Data scientists leverage Openpyxl for various tasks such as data analysis, copying data, mining information, creating charts, styling sheets, incorporating formulas, and more.

Read more below


{% embed https://codemagnet.in/2024/01/30/how-to-automate-an-excel-sheet-in-python/ %}
How to access Learnitive Notepad?
Tags: webdev, beginners, tutorial, productivity
Published: 2024-01-30 06:40:04

[Notepad](https://www.learnitive.com/notepad) is an advanced note taking app. It's markdown-based, so no more fighting with the formatting toolbars. With its visual markdown syntax, you can format your notes in a very simple way. If you already have notes written in Markdown format, then you can easily import your existing files via drag and drop. You can also export all of your notes as Markdown or beautiful PDF files.

![Learnitive Notepad Access](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihfkferlxkilr9ist267.png)

Access Notepad from **Learnitive.com** > **Dashboard**. Create a file with extensions .md or .txt (or default - no extensions) to get started with Notepad.

[Get Notepad](https://www.learnitive.com/notepad)
Теперь все самые производительные нейросети собраны в одном сайте агрегаторе нейросетей ЧатХабАИ
Tags: ai
Published: 2024-01-30 06:29:44

Этот агрегатор нейросетей упрощает процесс работы и экономит время пользователя.

Нейросети ChatHabAI были обучены на огромных объемах данных в различных областях, от технологий до искусства, что обеспечивает их высокую эффективность и универсальность.

ChatHabAI предлагает пользователям различные инструменты для создания уникального контента:
   - Генерация изображений по текстовому референсу. Нейросети ChatHabAI могут создавать достоверные изображения на основе текстовых подсказок, например, вы можете попросить нейросеть генерировать изображение “космонавта, передвигающегося по Луне”, или абстрактную картину, напоминающую творения Пабло Пикассо.
   - Редактирование текста. Нейросети ChatHabAI помогают улучшить качество текста, исправить грамматические ошибки, проверить правописание, а также перефразировать текст или перевести его на другой язык.
   - Создание текстовых описаний к изображениям. Нейросети ChatHabAI анализируют изображения и создают описания для изображений, которые могут быть использованы для публикации изображений в социальных сетях или на веб-сайтах.
   - Поиск рифм и синонимов. Нейросети ChatHabAI помогают поэтам и авторам копирайтинга находить рифмы к словам и альтернативные выражения, что значительно упрощает творческий процесс.

ChatHabAI является удобным и многофункциональным инструментом для создания уникального контента и редактирования текста. Нейросети ChatHabAI могут использоваться для самых разных целей:
   - Создание иллюстраций для книг, статей и презентаций.
   - Разработка дизайна для сайтов и приложений.
   - Создание рекламы и маркетинговых материалов.
   - Написание текстов для песен, стихотворений и рассказов.
   - Перевод текстов на другие языки.
   - Корректура текстов.
   - Поиск рифм и синонимов.

ChatHabAI - это идеальный инструмент для творческих людей, которые ищут новые способы выражения своих идей. Нейросети ChatHabAI помогут вам создавать уникальный и высококачественный контент без особых усилий.

В поисковых системах сайт чат-бота [ChatHabAI](https://chathabai.com) можно найти по запросам: нейросеть бот онлайн, нейросеть телеграм, бот нейросетей чат
Dr Rohan Patel | Robotic Urologist | Uro Oncologist
Tags: urologist
Published: 2024-01-30 06:22:59

"Centre of Excellence for Advanced Urology Treatment, with experienced & [Best Urologist, UroOncologist in Ahmedabad ](https://anantaurologyandroboticsclinic.com/
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kokv6q4hjilgtgc6svil.jpg))| Gujarat | India for Robotic Surgery in Urological Cancer Our Specialised Treatment includes: Robotic Surgery Uro-Oncology, laparoscopic urology Prostate Cancer Treatment Kidney Cancer Treatment Bladder Cancer Treatment Penile Cancer Treatment Testicular Cancer Treatment Urology Kidney Stone Treatment Prostate Treatment Laser Surgery Reconstructive Urology Andrology Female Urology Paediatric Urology Urodynamic Testing Functional Urology Kidney Transplant Dr Rohan Patel is Gujarat’s 1st and only Vattikuti Fellowship holder in Robotic Urooncology and Kidney Transplant from the prestigious Medanta Institute Delhi."
In Dart: extends vs. with vs. implements
Tags: flutter, dart, oop, programming
Published: 2024-01-30 06:15:49

𝐞𝐱𝐭𝐞𝐧𝐝𝐬: Use extends to create a subclass that inherits the properties and methods of a superclass. The new class will inherit all the properties and methods of the superclass and can add additional properties and methods of its own. For example, if you have a superclass called Animal, you might create a subclass called Dog that extends Animal.

𝐰𝐢𝐭𝐡: Use with to mix in the behavior of a mixin into a class. A mixin is a class that provides a set of methods and properties that can be added to another class without creating a new subclass. This allows you to reuse code across multiple classes in a flexible way. For example, you might define a mixin called Logger that provides a log method, and then mix it into several classes that need logging behavior.

𝐢𝐦𝐩𝐥𝐞𝐦𝐞𝐧𝐭𝐬: Use implements to declare that a class conforms to a certain interface. An interface is a set of methods and properties that a class must implement in order to satisfy the interface. This allows you to write code that works with any class that implements the interface, without needing to know the specifics of each class. For example, if you have an interface called Drawable that specifies a draw method, you might declare that a class called Rectangle implements Drawable.
Custom terminal with oh-my-zsh and starship
Tags: custom, terminal, ohmyzsh, starship
Published: 2024-01-30 06:12:57

### My setup
- OS: macOS Monterey 12.5.1
- Editor: Visual Studio Code
- Theme: Bearded Theme HC Ebony

## oh-my-zsh and nerd-font
- Install [oh-my-zsh](https://ohmyz.sh/#install)

_Your **~/.zshrc** file should have these lines_
```
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="simple"
source $ZSH/oh-my-zsh.sh
```

- Download and install [nerd-font](https://www.nerdfonts.com)

## Starship
- Install [starship](https://starship.rs/guide/#%F0%9F%9A%80-installation)

- Edit your **~/.zshrc** file using this command
```
nvim ~/.config/starship.toml
```
or
```
nano ~/.config/starship.toml
```

- Add the following to the end of your **~/.zshrc** file
```
eval "$(starship init zsh)"
```

_The default starship will look like this_
![The default starship](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lh0bnasn3jpqx91asvuz.png)

## Config
- To [remove runtime](https://starship.rs/presets/no-runtimes.html), run this command
```
starship preset no-runtime-versions -o ~/.config/starship.toml
```

- Add these configs to the top of the **~/.zshrc** file
```
"$schema" = 'https://starship.rs/config-schema.json'

add_newline = false

[line_break]
disabled = true

[character] 
success_symbol = '[➜](bold green)'
error_symbol = "[➜](red)"
vicmd_symbol = "[❮](green)"
```
Final **~/.config/starship.toml** file should be like this

![Final ~/.config/starship.toml` file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z0ijfqifcn0fvvzp3gfi.png)
ps4 for rent in Delhi
Tags: ps4, ps5, playstation
Published: 2024-01-30 06:11:01

If you are looking to [ps4 for rent in Delhi](https://shahiplay.com/ps4-for-rent-in-delhi/) at a reasonable price, you can check out shahiplay.com. They offer PS4 rentals at a fraction of the retail price and provide a selection of bundles to choose from. You can select your delivery date and bundle according to your needs and book easily on their website.
Effortless Control: Think Aisle's Stock Inventory Management Software Dominates.
Tags: stockmanagement, thinkaisle
Published: 2024-01-30 06:06:53

Unlock seamless stock inventory management software with Think Aisle's cutting-edge . Streamline operations, enhance accuracy, and gain real-time insights into your stock levels effortlessly. Think Aisle ensures precision and reliability in every aspect of your inventory control. Say goodbye to stock uncertainties and hello to efficient management. Elevate your business with Think Aisle's stock inventory solution. Embrace precision, embrace growth.
How to Keep Your ChatGPT Conversations Secure and Private
Tags: chatgpt, security, privacy, tutorial
Published: 2024-01-30 06:04:59

Are you passionate about AI and privacy? Do you want to harness the power of ChatGPT while ensuring top-notch security for your sensitive data? Look no further! We're excited to introduce you to GPT Guard, an open-source marvel from the innovative minds at Protecto.ai, designed to revolutionize your ChatGPT interactions with unmatched privacy and security.

**Why GPT Guard?**
In a world where digital privacy is paramount, GPT Guard emerges as a cutting-edge solution, empowering users to engage with ChatGPT securely. Whether you're a developer, privacy enthusiast, or just an AI aficionado, GPT Guard is your gateway to secure and private AI conversations.

**Open Source for Unlimited Possibilities**
As a proud open-source project, GPT Guard invites you to dive into its code, understand its intricacies, and tailor it to your specific needs. Our code, adapted from Microsoft's sample-app-aoai-chatGPT, is not just a tool – it's an invitation to innovate, customize, and enhance your ChatGPT experience.

**Automatic PII Detection and Masking**
At the heart of GPT Guard is its ability to automatically detect and mask Personally Identifiable Information (PII). Leveraging Protecto's Data Tokenization APIs, GPT Guard ensures that your sensitive information is always protected, giving you the freedom to chat without worries.

**User-Centric Features**
GPT Guard offers an array of features designed to cater to diverse user preferences. Choose between Privacy Filter and No-Filter modes to control how your data is processed. Our user-friendly setup and intuitive interface make it easy for anyone to get started.

**Your Invitation to Collaborate**
We believe in the power of community and collaboration. By trying out GPT Guard's open-source code, you're not just using a tool – you're becoming part of a vibrant community dedicated to advancing privacy in AI. Your feedback, contributions, and innovations are what will drive GPT Guard forward.

**Get Started Today!**
Ready to take your ChatGPT conversations to the next level? Visit our GitHub page at [GPTGuard Open Source](https://github.com/ProtectoAi/GPT-Guard) and start exploring GPT Guard. Whether you're looking to enhance your project, contribute to an open-source initiative, or simply learn more about AI privacy, GPT Guard is your perfect starting point.

Join us on this exciting journey and let's shape the future of secure AI interactions together!

*#OpenSource #GPTGuard #ChatGPT #DataPrivacy #AIInnovation #ProtectoAI #SecureChatting #TechCommunity*
Polymorphism in Python
Tags: webdev, beginners, programming, python
Published: 2024-01-30 04:30:28

Imagine you have a program with classes representing a Car, a Boat, and a Plane. Each class has a method called move(). Even though they share the same method name, when you call move() on a Car object, it drives; on a Boat object, it sails; and on a Plane object, it flies. This ability for different objects to respond to the same method name in their own way is what we call polymorphism in Python.

In simple terms, polymorphism allows you to use a common interface (method name) across different classes, and each class can implement that interface in its own specialized manner. It makes your code more flexible and versatile, allowing you to work with diverse objects in a unified way.

Lets take an Example of a Python function that can be used on different objects -  len() function.

x = "Hello World!"

print(len(x))

in the above code len() function will return number of characters.

Similarly if we take a example of tuple then len() function will be used to return the number of items in the tuple check below the code

mytuple = ("apple", "banana", "cherry")

print(len(mytuple))

Polymorphism is commonly applied in class methods, enabling the existence of multiple classes sharing the same method name.

read more below

{% embed https://codemagnet.in/2024/01/30/polymorphism-in-python-how-to-become-master-in-method-class/ %}
Brand Reputation Management Agency
Published: 2024-01-30 05:32:15

Admya Infotech is one of the largest digital marketing agencies in the world. If you listen to NPR and Bloomberg Business radio then you have probably heard our advertisements alerting you about our services for helping you to clean up your search results. Our Reputation Defender solutions are top of the line and help good people to recover their images online.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k5dpar9klwqr9uyhlfk1.jpg)