teleren/devto huggingface dataset:
مميزات لغة كوتلن 
Published: 2023-11-18 06:48:24

## 1- Data Class :-
عن طريقة بتقدر توفر وقت و كتابة كود لانة بيعطى الفانكشنز الاساسية اللى أنت محتاجها علشان تتعامل مع الأوبجكت.

## 2-Null Safety :-

اللغة مش بتسمح ليك انك تخلى المتغير أو الأوبجكت ب [Null] ولو اضطرت لكدة فلازم تعمل Check على المتغير وفى الحالة دى حتكون متاكد ان التطبيق بتاعك مش حيواجهة NullPointerException .

## 3- لغة JVM :-


يعنى حتضمن أن أى  Machine بترن JVM حتشغل الكود بتاعك زى مثلا Spring Boot , يعنى حتستبدل كل حاجة كانت لغة جافا بتشتغل عليها .

## 4– 40% :-

أقل فى كتابة الكود من جافا فبكدا وفرت Boilerplate Code .

## 5- Syntext:-

اسهل فى الكتابة من جافا و بتعتبر 
oop and functional  فى نفس الوقت .

## 6-compile time :- 

أسرع من جافا .

## 7- kotlin coroutine :-

واللى بتسمح بالتعامل مع Concurrency و ال MultiThreading من خلال native Code  .
 
8-التكامل بين جافا وكوتلن:-
 بتقدر تضيف كود جافا على برنامج مكتوب  كوتلن والعكس .

## 9- Extension function:-

## 10- اللغة من تطوير jetbrains  :-

فبالتالى documentation  ممتازة .
What is abstract class in java and how to create abstract class in java
Tags: java, whatisjavaabstract, learnjavaabstract, abstractclassinjava
Published: 2023-11-18 06:46:42

An [abstract class in Java](https://www.javatpoint.com/abstract-class-in-java) is one that is intended to be subclassed by other classes and cannot be instantiated on its own. It can have concrete methods, abstract methods, or a mix of both; it acts as a model for other classes.

**Abstract Keyword:
**The abstract keyword is used to declare an abstract class. Abstract classes may have abstract methods (methods without a body) as well as concrete methods (methods with a body).
 
**Abstract Methods:
**Abstract classes can have abstract methods, which are declared without a body and are meant to be implemented by the subclasses.
 
**Subclassing:
**When you extend an abstract class, you must either provide concrete implementations for all the abstract methods in the subclass or declare the subclass as abstract.
 


**Constructor:
**Abstract classes can have constructors, and they are invoked when a subclass object is created. However, abstract classes cannot be instantiated directly.
 
**Usage:
**Abstract classes are useful when you want to provide a common interface or functionality that should be shared among multiple related classes.
 
In this example, Shape is an abstract class with an abstract method draw() and a concrete method display(). The Circle class extends Shape and provides a concrete implementation of the draw() method. The display() method is inherited from the Shape class.
Angular is much better but it's universal
Published: 2023-11-18 06:29:54

Angular is a popular open-source front-end web application framework developed and maintained by Google. It allows developers to build dynamic, single-page web applications (SPAs) with a rich user interface. Angular provides a modular and component-based architecture, dependency injection, and two-way data binding, among other features [click here](https://astroluna.org/2023/11/07/chontico-dia-resultado-6-noviembre-2023/)
How to install NVIDIA drivers for machine learning on Ubuntu
Tags: machinelearning, ubuntu, linux, devops
Published: 2023-11-18 06:26:30

A common pain point for setting up servers to run AI models - is getting the NVIDIA drivers to work correctly with Pytorch and other machine-learning libraries.

In this guide, I will walk you through some installation steps you need to run to get your GPU working correctly with your AI models.

I am running Ubuntu 22.04. If you are running a different version - you may need to tweak the CUDA toolkit version to suit your Distro.


## Install docker and some essential apt packages
```bash
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
sudo apt install docker-ce -y

# Now add your user to the docker group
# You will need to logout and back in again - for this to take effect
sudo groupadd docker
sudo usermod -aG docker yourusername
```
## Setup NVIDIA GPU drivers

```bash
sudo add-apt-repository ppa:graphics-drivers/ppa --yes
sudo apt update -y
sudo apt-get install linux-headers-$(uname -r)
sudo ubuntu-drivers install --gpgpu
```

## Setup CUDA
```bash
sudo apt-get update -y

# You can find the right key to use for your distro here:
# https://developer.download.nvidia.com/compute/cuda/repos/
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get -y install cuda-toolkit-12-
```
## Configure docker to use the GPU and Cuda
```bash

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg

curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

sudo apt-get update -y

sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
```

## Conclusion

GPU setups can be tricky and painful, hopefully, this goes a long way in getting you up and running.

Now you should be able to run any of your Pytorch or machine learning models on the GPU, either natively on the machine or using docker.
Chartered Accountant in Vadodara
Published: 2023-11-18 06:16:44

M D P & Associates, a leading Accounting Firm in Vadodara, is pleased to announce their innovative accounting solutions and services, catering to the diverse needs of businesses in the region. With a team of highly skilled and experienced Chartered Accountants in Vadodara, the firm is committed to providing comprehensive and tailored financial solutions to help businesses thrive in today's dynamic market.



As businesses face ever-evolving challenges in the financial landscape, M D P & Associates understands the importance of staying ahead. Their website, [https://mdpassociates.in/](https://mdpassociates.in/), serves as a platform to showcase the firm's expertise and highlights the array of accounting services available to clients.



The website provides a comprehensive overview of the firm's services, including auditing, tax planning, financial consulting, and assurance services. With a strong emphasis on client satisfaction, M D P & Associates prides itself on its ability to develop customized accounting solutions that align with each client's unique requirements. The firm's team of Chartered Accountants in Vadodara possesses deep industry knowledge and stays up-to-date with the latest regulatory changes, ensuring compliance and optimized financial strategies.



Additionally, the website offers a blog section that covers various accounting and financial topics, providing valuable insights and practical advice to businesses. The blog showcases the firm's thought leadership and demonstrates their dedication to keeping clients informed about industry trends and best practices.



M D P & Associates understands the significance of technology in streamlining accounting processes. Through their website, clients can access cloud-based accounting solutions, enabling them to efficiently manage their financial data and have real-time insights into their business's financial health.



With their innovative approach, M D P & Associates aims to empower businesses with accurate financial information, enabling them to make informed decisions, optimize operations, and achieve long-term growth.



For more information about M D P & Associates and their comprehensive accounting solutions, visit their website at https://mdpassociates.in/ The firm's team is readily available to assist businesses in Vadodara and beyond with their accounting needs.



About M D P & Associates:



M D P & Associates is a leading Accounting Firm in Vadodara, providing a wide range of accounting services to businesses. With a team of experienced Chartered Accountants, the firm offers tailored financial solutions and strives to deliver exceptional service to their clients.


[Connect with M D P & Associates](https://mdpassociates.in/contact-us/)
Short note: HTTP request recording (vcr) vs higher level mocks
Tags: exvcr, testing, webdev
Published: 2023-11-18 06:14:10

You are implementing your hundredth binding for some useful third party rest API and you are thinking about testing. You aren't sure if you should record traces of the http requests, mock at a level higher than http, or even drop a level lower and build a mock server.

I would consider the following:
* How frequently does the API change?
* How frequently does your request producing / response parsing logic change?

If the rates of change are low, then I would default to implementing a higher level mock unless you have a compelling reason to have http level traces. Higher level mocks require less credential configuration, they are easier to tweak, involve less work to isolate test data when updating tests, and they involve managing/synchronizing fewer files. Essentially, there is some management overhead to using http recording and the overhead isn't worth incurring unless you need to update tests frequently.

Implementing a mock server seems like strictly more work than recording traces of http requests from a real server. A mock server might save a little effort in not having to manage recording files and knowing the test data is isolated since there is no persistence of generated test data in a live server.

When you implement a higher level mock, you regain some lost test coverage by adding tests for the behavior which produces the request and the behavior that parses the response. There will still be one gap. You won't know if your actual request and expected response will actually function/match the behavior of the third party service. You will need to interactively test against a real service to cover this final piece. Http request recording and a mock server can exercise this final piece, but they each can still be susceptible to falling out of sync with the real service. For the interactive tests, you can leave some documentation on how to interactively test and default the real implementation to use a sandbox service when it is run interactively in non production mode.
Business Analytics
Tags: educatio, training, courses, business
Published: 2023-11-18 06:11:29

**[Business analytics](https://www.youtube.com/watch?v=WUELMiRMJlc)** refers to the skills, technologies, practices for continuous iterative exploration, and investigation of past business performance to gain insight and drive business planning. It involves the use of data analysis tools and techniques to identify trends, patterns, correlations, and other useful information that can help organizations make informed business decisions.
Servers, Application Servers and Web Servers. What are the distinctions?
Tags: webdev, beginners, servers
Published: 2023-11-18 06:02:57

## Introduction

Understanding the differences between a server, a web server, and an application server can be challenging. In many cases, tech enthusiasts use the terms interchangeably. This article, targeted at newbies to the concept of servers, purposes to clarify the differences.

## What is a Server

A server is broad term that computer professionals use to refer to a device that avails digital resources to other computers (clients) over a network. A server device could be a physical computer or a [virtual machine](https://www.vmware.com/topics/glossary/content/virtual-machine.html). 

Several types of severs exist. Web servers avails web pages to client computers. Application servers execute set functionalities for the client. Additionally, mail servers facilitate sending and receiving emails between clients. Furthermore, system engineers routinely configure servers to facilitate file storage and transfer, in which case the server becomes a File Transfer Protocol server.

## Web Servers

A web server is a software device that serves web pages. This server type understands the [Hyper Text Transfer Protocol](https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview) communication; the server can communicate with client computers requesting web pages. A web server delivers static resources to clients.  Static resources are digital content that are served as is, without any modification. Examples of popular web servers in the market include Apache and Nginx.

## Application Servers

An application server is a software device that executes business logic. Business logic, in this case, refers to a website's core functionality. Consider an ecommerce website where customers can browse product listings. An application server runs the logic that involves the retrieval of product types from a database and display on the frontend.

## Web Versus Application Servers

Web and application servers have one fundamental difference; web servers process static requests while application servers handle dynamic requests. As mentioned, servers deliver static resources to the client unchanged. Comparatively, when a client requests a dynamic resource—could be a list of the available products in an ecommerce website—an application server performs modifications on the existing resources to deliver the right content to the client.

## Conclusion

To recap, a server is a physical computer or software component that hosts several software capable of serving web pages, mails, files and running business logic. A web server is a software device that servers web pages. An application server runs business logic. Furthermore, the basic difference between a web and application server is in the nature of resources they serve.
Villa Cleaning
Published: 2023-11-18 05:56:46


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yyo5ohzyritem53bric3.png)
Welcome to Q Clean Cleaning Service, your premier choice for professional cleaning services in Qatar. With a dedication to maintaining clean, healthy, and hygienic spaces, we have earned our reputation as the leading cleaning company in the region. Backed by a team of skilled professionals and a commitment to excellence, we are your dependable partner in achieving and maintaining pristine surroundings. Q clean is one of the leading cleaning companies in Qatar.
[](https://qcleans.com/)
Rarible Clone Script Development | iMeta
Tags: nft, rarible
Published: 2023-11-18 05:48:52


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5s2505equfaw56gvuqpg.png)
Rarible Clone Script Development offers a robust solution for entrepreneurs and businesses looking to establish their own NFT (Non-Fungible Token) platform. This script enables the creation of a decentralized marketplace that allows users to mint, buy, sell, and trade NFTs, just like the popular platform Rarible.

With customizable features and smart contract capabilities, iMeta Technologies [Rarible Clone Script Development](https://imetatech.io/rarible-clone-script) empowers you to tap into the growing NFT market and build a unique, community-driven ecosystem for digital art, collectibles, and more. Launch your NFT platform with ease and start empowering artists, collectors, and enthusiasts to participate in the NFT revolution.

**White-labeled NFT Marketplace Solution**

A white-labeled NFT Marketplace Solution by [iMeta Technologies](https://imetatech.io/whitelabel-nft-marketplace) offers a comprehensive and customizable solution for businesses and entrepreneurs looking to enter the NFT space. With this white-label solution, you can launch your own NFT marketplace, branded with your unique identity and tailored to your specific needs. iMeta Technologies’ expertise ensures a seamless integration of cutting-edge blockchain technology, smart contract capabilities, and a user-friendly interface. This turnkey solution enables you to quickly establish your presence in the NFT market, attract artists, collectors, and enthusiasts, and offer a platform where they can mint, trade, and showcase their unique digital assets.

The white-label NFT Marketplace Solution by iMeta Technologies provides the perfect foundation for your venture, empowering you to capitalize on the NFT trend while maintaining your brand’s integrity and vision.
Elevate Your Cosmetology Career with Texas Cosmetology Continuing Education!
Tags: courses
Published: 2023-11-18 05:30:15

Discover your true potential with their state-of-the-art Texas Cosmetology Continuing Education courses, designed to sharpen your expertise and elevate your beauty career! Visit their website at https://www.stateapproved.com/cosmetology/ and take the first step to ensure a successful and fulfilling career in cosmetology. Don't miss their unbeatable offers on top-rated programs!
Welcome to the future: the role of block chain technology development companies:
Published: 2023-11-18 05:23:49

In this technical world, Block chain has emerged as the pivotal players in this transformative journey are blockchain development companies. These companies plays important role in power of block chain technology 

Understanding blockchain technology:

Let’s get the fundamentals of blockchain technology. First, blockchain will record transactions across multiple computers in a secure and transparent manner. The absence of a central authority ensures trust and eliminates the need for intermediaries, making it a game changer in every different industries 

Blockchain is a technology that ensures transparency, security, and immutability of data. It operates on a peer-to-peer network, eliminating the need for intermediaries and forecasting trust in transactions.

Why blockchain?

The blockchain concept was invented to break financial monopolies. At the same time, a system that doesn’t rely on any external authority to ensure data integrity was created. If that sounds huge and revolutionary to you, you’re right. But no worries, we’ll explain what it means. 

Personal data are assets.
User data and attention have become very valuable for businesses that want to succeed online. 

New tradable assets have surfaced on the internet. For businesses hoping to succeed online, user data and attention have become extremely valuable resources. The user has no say over how the data is used though.

Like facebook, google and amazon control it. Users have the option to follow these rules or avoid using the internet altogether. That really isn’t a viable option, is it?

Users can maintain ownership of their  online activities and data thanks to blockchain technology. No one can alter, misuse or profit from information you share, photographs and personal data.

The main focus of block chain development company is to design and implement robust, decentalised systems, by integrating smart contracts, these companies enables secure, tamper proof transactions that reduce the risk of fraud and streamline processes

The leading blockchain development companies excel in creating scalable solutions that cater to the unique needs of their clients. 

The collaborative nature of blockchain development companies fosters an environment where innovation thrives. 

In conclusion, the significance of blockchain development companies cannot be overstated in the transformative journey towards a decentralized future. They are architects of a future where blockchain is the cornerstone of progress. Embrace the change, embrace the future!
Create LightSail Instance
Published: 2023-11-18 05:02:24

How to create LightSail Server and attached a IP

Step 1: Search LightSail in the AWS global search.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wi3xo8sspwl1wqgbgqrm.png)
Step 2: In the LightSail home page, Click Create Instance.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijxfv1vvspiolidnw0w0.png)
Step 3: select the appropriate Instance based on the need. For study purposes, select Ubuntu22.04.
Step 4: Create an Instance.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lc18xw070x9bv9871fjs.png)

Step 4: in the left navigation menu, click Network and create static IP.
Step 5: Select the appropriate machine to attach the IP and submit.
Step 6: IP should be attached.
step 7: Click “Connect using SSH” to open the cloud terminal to install the necessary software (ie Apahe2)

Detach and delete IP:
Step 1: Click Network and click the Detach link, and confirm the pop-up window.
Step 2: delete the IP and delete the instance.
 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlk4dfhzlqgnci8h9btk.png)
I have built my first SaaS
Tags: go, webdev, indiehacker, react
Published: 2023-11-18 05:00:00

---
title: I have built my first SaaS
published: true
description: announcement of launching a new service
tags: go, webdev, indiehacker, react
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0udeu4saic4v7h64r4ac.png
# Use a ratio of 100:42 for best results.
published_at: 2023-11-18 14:00 +0900
---
Hello guys,
I am a Golang developer working in a small company and also making an another product as a side hassle.

I have just created a service that provide a chat GUI for a group of people who don't want their conversations to be learned by OpenAI for training their models.

The service is available at the URL below.
https://chat.corpgpt.jp/

![Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3hsn6fwz2l1rf61vf6e6.png)

Currently it's just a simple app that allows user to manage their OpenAI API token and their organization members.

It may be seemed boring to you. Indeed, it has nothing really interesting. However I think I try to use this simple service as an entry point to start a discussion with SMBs and enterprise companies that are eager to find an area where they can leverage the state-of-art generative AI technologies.

Here is the technology stack.
Backend: Go
Frontend: TypeScript / React
Infrastructure: Cloud Run on GCP

Maybe it seems a bit weird that I use Go to create this kind of service, but that has been a great experience so far!

If you are interested, please try it out and let me know your thoughts, ideas, advice, or anything.

The news that OpenAI fired Sam Altman and CTO makes me a bit sad today, I hope the advance of the technology would continue and Sam and Greg will start an another great company or service tomorrow or soon.

Thanks!
Create EC2 in AWS
Published: 2023-11-18 04:58:35

How to create a new EC2 Instance in AWS
From the instance menu ( left navigation menu) click Instances and click the 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mj8jd329kawrd3szje70.png)Launch instance button.
 

Step 1- Give the name and tag 
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r176ncx41xsubfhlu8fi.png)
Step 2: select the Operating system.
Step 3: Create new key pair and download it.
Step 4: Enabled Allow ssh and HTTP traffic in the firewall(security group). Alternatively, user can enable this from the network security group.
Step 5: Configure the storage information(Default should be fine for learning purposes). 
Step 6: Click the Launch instance button.
New instance will be created.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4jl3yoovq3rl1a8oflv.png)
Step 7: Identify the public and private IP address.
How to install Apache2
Step 1: Click the “Connect ” button on the top right corner.
 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbv342ewwrio2cb2bexf.png)
Step 2 : in the console type : sudo su
Step 3: apt install update 
Step 4: apt install apache2
Step 5: systemctl start apach2
Step 6: systemctl enable apache2   (This is to make the Apache to automatically start when the server start).
Step 7 In the browser, type the public IP address and watch whether the Ubuntu home screen loaded.