teleren/devto huggingface dataset:
Primitive & Non-Primitive Data Types
Tags: javascript, beginners, programming, codeofaccuracy
Published: 2023-04-05 11:16:25

In JavaScript, data types can be broadly classified into two categories: `primitive` and `non-primitive` data types. Understanding these data types is crucial for writing effective and efficient code. In this article, we will explore `primitive` and `non-primitive` data types in JavaScript, along with examples.

**Primitive Data Types**

> Primitive data types in JavaScript are simple data types that are not objects and do not have methods. They are immutable, which means that their values cannot be changed once they are created. There are six primitive data types in JavaScript.


**1. String:** A string is a collection of characters that are enclosed within single or double quotes. For example:

```
let name = 'John Doe';
```

**2. Number:** A number is a numerical value, which can be either positive, negative, or with decimal points. For example:

```
let age = 25;
let salary = 50000.50;
```

**3. Boolean:** A boolean data type can have only two values - true or false. For example:

```
let isMarried = true;
```

**4. Null:** Null represents a null or empty value. For example:

```
let address = null;
```

**5. Undefined:** Undefined represents a variable that has not been assigned a value. For example:

```
let gender;
```

**6. Symbol:** A symbol is a unique and immutable data type that is used to identify object properties. For example:

```
const mySymbol = Symbol('mySymbol');
```

**Non-Primitive Data Types**

> Non-primitive data types in JavaScript are complex data types that are objects and can have methods. They are mutable, which means that their values can be changed. There are three non-primitive data types in JavaScript:


**1. Object:** An object is a collection of key-value pairs, where the key is a string and the value can be any data type. For example:

```
const person = {
  name: 'John Doe',
  age: 25,
  isMarried: true
};
```

**2. Array:** An array is a collection of elements, which can be of any data type. The elements are indexed and can be accessed using the index number. For example:

```
const numbers = [1, 2, 3, 4, 5];
```

**3. Function:** A function is a block of code that can be invoked or called to perform a specific task. It can accept parameters and return a value. For example:

```
function addNumbers(num1, num2) {
  return num1 + num2;
}
```
Slow is smooth, smooth is fast
Tags: management, codequality, programming
Published: 2023-04-05 11:02:26

As a software engineer, it's easy to get caught up in the rat race of churning out code and delivering projects at warp speed. But in our pursuit of velocity, we often forget the timeless wisdom of "slow is smooth and smooth is fast."

Yes, it sounds like something a drill sergeant would say during boot camp, but the principle holds true in software engineering as well. Rushing through a project often leads to mistakes, bugs, technical debt, and delays, which can slow you down in the long run.

Instead, take the time to plan, execute, and test your code methodically. Don't be afraid to break down complex tasks into manageable pieces, and involve your colleagues and stakeholders in the development process. By prioritising quality over quantity, you can avoid the need for time-consuming fixes and rewrites down the road.

Plus, taking a slower and more deliberate approach can help you build stronger relationships with your team and stakeholders. After all, communication is key to effective software engineering, and rushing through a project often leads to misunderstandings and miscommunications.

So, next time you're tempted to hit the gas pedal and rush through a project, remember: slow and steady wins the race. By taking your time and focusing on quality, you can achieve faster, more efficient development, build stronger relationships, and maybe even impress your colleagues with your newfound wisdom.
Video: Summarizing legal documents with Hugging Face and Amazon SageMaker
Tags: deeplearning, generativeai, ai, howto
Published: 2023-04-05 20:37:11

---
title: Video: Summarizing legal documents with Hugging Face and Amazon SageMaker
published: true
date: 2023-04-05 10:50:18 UTC
tags: deeplearning,generativeai,ai,howto
canonical_url: https://julsimon.medium.com/video-summarizing-legal-documents-with-hugging-face-and-amazon-sagemaker-fdb0afe244fe
---

Real-life generative AI! In this video, I show you how to fine-tune a Google FLAN-T5 model to summarize legal text. We first deploy the model straight from the Hugging Face hub to Amazon SageMaker, and we evaluate it on legal data. Then, using GPU instances managed by SageMaker, we fine-tune the model with a Hugging Face script and we deploy it again.

{% youtube tc87-ZKWm78 %}
Know White Label Crypto Exchange Cost
Tags: whitelabelexchange
Published: 2023-04-05 10:48:32

If you are an entrepreneur thinking to build a cryptocurrency trading platform with market-leading features and functionalities, white label crypto exchange brings the best opportunity for your business. White label crypto exchange cost is very less as compared to cost of developing it from scratch. Moreover, you get more time-to-market and can launch a feature-rich crypto trading platform effortlessly in less time without worrying about the customer’s reaction. However, white label crypto exchange cost is determined by various factors such as degree of customization, inclusions, features, etc.  Antier offers a cost-effective yet future ready white label crypto exchange. Get in touch today to get a quote and after a free demo.
https://www.antiersolutions.com/cryptocurrency-exchange-Development-Company/ 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wvegfogkvqn9nhayz0su.jpg)
Hello I'm Jaap!
Tags: rust, welcome, introduction, devops
Published: 2023-04-05 10:45:24

```Rust
fn main() {
    let hello_jaap_ascii_art = r#"
  _    _      _ _         _____ _                  _                   
 | |  | |    | | |       |_   _( )                | |                  
 | |__| | ___| | | ___     | | |/ _ __ ___        | | __ _  __ _ _ __  
 |  __  |/ _ \ | |/ _ \    | |   | '_ ` _ \   _   | |/ _` |/ _` | '_ \ 
 | |  | |  __/ | | (_) |  _| |_  | | | | | | | |__| | (_| | (_| | |_) |
 |_|  |_|\___|_|_|\___/  |_____| |_| |_| |_|  \____/ \__,_|\__,_| .__/ 
                                                                | |    
                                                                |_|    
    "#;

    println!("{}", hello_jaap_ascii_art);
}
```

Hello everyone, I'm Jаар Вrаsser! I'm раssionаte аbоut аll things technology, specificаlly in thе rеаlms оf scripting, аutоmаtion, clоud, сontinuous delivery & deplоyment (СI/СD), аnd DevOрs. With а diverse bаckgrоund in thе IT industry, I've аccumulаted а weаlth оf knowlеdgе аnd hаnds-on еxpеriеncе, which I'm eаger tо shаre with you. Whethеr you're аn еxpеriеncеd prоfessionаl or а сurious newcоmer, I hoрe this blog serves аs аn invаluаblе rеsourcе tо leаrn, grow, аnd stаy up-tо-dаte with thе lаtest trеnds аnd bеst prаctices.

Over thе yeаrs, I've hаd thе рleаsure оf working with vаrious plаtfоrms аnd tоols, such аs PowerShell, Рython, Azurе, AWS, Kubernetes, Doсker, аnd several CI/CD tools, tо nаme а fеw. I hope to shаre vаluаblе insights, tiрs, аnd tricks thаt I've leаrned аlong thе wаy, in аddition tо еxploring new technоlоgies аnd practices thаt аre shаping thе future оf thе industry. From writing effiсient scripts tо designing аnd implementing robust СI/СD рiрelines, you'll find а wide rаnge оf tоpics сovered here.

I look forward to sharing more content here and hope to learn from your experience as well. Let me know if you have any questions, insights of feedback on any topics I'll be covering.
Icogems - upcoming ico calendar
Tags: webdev, programming, crypto
Published: 2023-04-05 01:47:33


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o2qe4vli0yrgalrl5cm3.PNG)
[ICOGems ](https://icogems.com)is a platform that aims to provide comprehensive information about upcoming Initial Coin Offerings (ICOs) to investors and cryptocurrency enthusiasts. The platform offers a calendar that lists all upcoming ICOs and provides details such as the start and end dates of the ICO, the project's website, the whitepaper, and any other relevant information.

The ICOgems calendar is an essential tool for investors who are interested in participating in ICOs. With so many ICOs launching each month, it can be challenging to keep track of all the dates and details. The calendar simplifies the process by providing a single source of information for all upcoming ICOs.

ICOgems is different from other [ICO calendars](https://icogems.com) because of the rigorous vetting process that each project must undergo before being listed on the platform. The team behind ICOgems evaluates each ICO based on factors such as the team's experience and track record, the project's potential for success, and the overall market conditions. This ensures that only the most promising and legitimate projects are listed on the platform.

Investors can use the ICOgems calendar to stay up-to-date with the latest ICOs and make informed decisions about which projects to invest in. The calendar provides information about each project's unique features and benefits, allowing investors to compare different ICOs and choose the one that best fits their investment strategy.

ICOgems also offers a range of other services to help investors navigate the world of ICOs. The platform provides educational resources such as guides and tutorials to help investors understand the ins and outs of ICO investing. Additionally, ICOgems offers a rating system that evaluates each ICO based on a set of criteria and provides a score that investors can use to evaluate the project's potential.

Overall, ICOgems is a valuable resource for anyone interested in investing in ICOs. The platform provides a comprehensive and trustworthy source of information about upcoming ICOs, helping investors make informed decisions about their investments. Whether you are a seasoned investor or just getting started, ICOgems is an essential tool that can help you navigate the complex world of ICO investing.
Serverless security and best practices in AWS.
Tags: beginners, aws
Published: 2023-04-05 10:28:37

Serverless applications can also pose security risks if not properly deployed. Let’s discuss some of the best practices for securing serverless applications.

## **Use Data Encryption**
Data encryption is a crucial aspect of serverless security. Serverless applications should encrypt all sensitive data, including data at rest and data in transit. AWS provides several encryption options, such as Amazon S3 server-side encryption, AWS Key Management Service (KMS), and AWS Certificate Manager (ACM). These services can help encrypt data and protect against data breaches.

## **Implement Access Control**
Access control is another critical aspect of serverless security. Serverless applications should use access control mechanisms to limit access to sensitive data and functions. AWS provides several access control options, such as AWS Identity and Access Management (IAM), Amazon Cognito, and Amazon API Gateway. These services can help ensure that only authorized users have access to the serverless application.

## **Monitor and Audit**
Serverless applications should be monitored and audited regularly to identify any security threats or vulnerabilities. AWS provides several monitoring and auditing tools, such as AWS CloudTrail, AWS Config, and Amazon CloudWatch. These tools can help identify any unauthorized access attempts or changes to the serverless application.

## **Secure Code and Dependencies**
Serverless applications should have secure code and dependencies to prevent attacks such as injection attacks, cross-site scripting (XSS) attacks, and cross-site request forgery (CSRF) attacks. Serverless developers should follow best practices such as input validation, output encoding, and using secure libraries and dependencies.

## **Perform Regular Security Assessments**
Serverless applications should undergo regular security assessments to identify any security risks or vulnerabilities. Security assessments should include penetration testing, vulnerability scanning, and code review. AWS provides several security assessment tools, such as Amazon Inspector and AWS Trusted Advisor, that can help identify and remediate security issues.


Securing serverless applications is crucial to prevent security risks and protect sensitive data. Implementing data encryption, access control, monitoring and auditing, secure code and dependencies, and regular security assessments can help ensure that serverless applications are secure. Serverless developers should follow these best practices to build secure and reliable serverless applications.
Finally accent-color in CSS
Tags: css, webdev
Published: 2023-04-05 10:20:43

If you're a web developer, you're likely familiar with the role of CSS in defining the visual style of a webpage. One key aspect of CSS is the use of color, and recently a new accent color property has been added to the CSS specification.

The accent-color property is a new addition to CSS that allows you to specify a single color that can be used as an accent throughout your website. 

> Currently accent-color only works on Checkboxes, Radio Buttons, Range and Progress elements. 

{% codepen https://codepen.io/hunzaboy/pen/QWZLVJJ %}


To use the accent-color property in your CSS, simply specify the desired color value using any valid CSS color syntax. Here's an example:

```css
input {
  accent-color: #007bff;
}
```


It's worth noting that the accent-color property is still relatively new, and surprisingly the [ support is very good. ](https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color#browser_compatibility)


More info can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color
Adobe launches all in one Generative AI tool Firefly
Tags: ai, generativeai, news
Published: 2023-04-05 10:16:24

Adobe the tech giant in the field of digital graphics and images that has launched tools like Photoshop, Illustrator, After effects, etc, has launched a new Generative Ai tool - **Firefly**.

Firefly was launched on 21st March, 2023. It is a browser based generative AI tool. It is a tool for illustrators, concept artists and graphic designers. It is an all-in-one tool which has various features for helping users. 

It has the following features -

### Text to image

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

### Inpainting

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

### Text to Template

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

### Text Effects

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

### Recolor Vectors

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46lifk2l9287qiq9ddds.png)
 
### Text to vector

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

### Upscaling and Image Extension

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

### Personalized Results

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

### 3d to Image

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

### Text to Pattern

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

### Text to Brush

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

### Sketch to image

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


The tool is still in Beta and only two features **Text to image** and **Text effects** are available for users on a waitlist basis.

You can watch the trailer of the tool here 

{% embed https://www.youtube.com/watch?v=_sJfNfMAQHw %}

For futher details visit the site - https://firefly.adobe.com/
7 Design Principles of (not only) Cloud Security
Tags: security, architecture, cloud
Published: 2023-04-05 09:59:14

No matter if you build your workloads in the cloud or on-premises, there are a number of principles that can help you strengthen your workload security. Lets check them out:

1. Implement a strong identity foundation
2. Enable traceability
3. Apply security at all layers
4. Automate best practices
5. Protect data
6. Keep people away from data
7. Prepare for security events

**1. Implement a strong identity foundation:**

Implement the principle of least privilege and separation of duties with appropriate authorization for each interaction with your resources. 

Centralize identity management and aim to eliminate reliance on long-term static credentials.

**2. Enable traceability:**

Monitor, alert, and audit actions and changes to your environment in real time. 

Integrate log and metric collection with systems to automatically investigate and take action.

**3. Apply security at all layers:**

Apply a defense in depth approach with multiple security controls, to all layers. 

For example: Edge of network, subnets, load balancing, every instance and compute service, operating system, application, and code.

**4. Automate security best practices:**

Automated security mechanisms improve your ability to scale more rapidly and cost-effectively. 

Create secure architectures, including the implementation of controls that are defined and managed as code in version-controlled templates.

**5. Protect data in transit and at rest:**

Classify your data into sensitivity levels. Define and use appropriate encryption, tokenization, and access control mechanisms for each individual sensitivity level.

**6. Keep people away from data:**

Use mechanisms and tools to reduce or eliminate the need for direct access or manual processing of data. 

This reduces the risk of mishandling, accidental leakage, or modification and human error when handling sensitive data.

**7. Prepare for security events:**

Prepare for incidents by creating incident management processes that align with your organizational requirements. 

Run incident response simulations and use tools with automation to increase your speed for detection, investigation, and recovery.

---

Want to learn more about these principles and how you can apply them in practice?

Check out the [Security Pillar](https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html "Security Pillar") of the [AWS Well-Architected Framework](https://aws.amazon.com/architecture/well-architected "AWS Well-Architected Framework").

---

If you enjoyed this post, here's two things you can do:

1. Follow me on [Twitter](https://twitter.com/dtraub "Twitter") and [LinkedIn](https://www.linkedin.com/in/dennis-traub "LinkedIn")!
2. Share this post with your peers!
Resume, resuyou
Tags: javascript, nextjs, typescript, career
Published: 2023-04-05 09:59:00

Writing your first post anywhere can feel harder to do than it should be. Right now, for instance, I feel as if I -really- need to get the right words in the right order, lest my future of dev.to-blogposting will start off with a flop. I want my post to be confident yet humble, funny yet serious. Readable without being clever about it.

I get the same feeling when I apply to jobs. I want the recruiter, client, or whoever is reading my application to find it interesting, just like everybody else. I want to stand out, but not too much. I want to be remembered. 

I have just graduated from a coding bootcamp called </Salt> in Stockholm, Sweden. 3 tough, intense months of tapping away at a keyboard to go from barely knowing what HTML is to making a fullstack application - and deploying it! We coded using mob programming, and at the end we got to decide on what our final project would be. We landed, after a moment of voting, on a cv-creator. 

The project needed to be fullstack, meaning that frontend, backend and a database was needed. We wrote it using TypeScript, NextJS 13, MongoDb among other things. We had roughly 1.5 weeks to do it, going from nothing to a finished product that we could present not only to our fellow mobs but to the clients of </Salt> that came to visit. 

Our result was this -> https://cv-creator-three.vercel.app/ 

I can, without a shred of doubt, say that I am so, so proud of my mob. We have worked hard these 3 months, and the effort, strength, smarts and skills I've seen from my team has been inspiring and impressive. "Plan-B", as our mob is called, will always have a place in my heart (and LinkedIn/GitHub, of course). 

In our project a user can log in using either GitHub or Google. They can then create a CV, saving that info, then choose a template/theme and download it as a pdf. We added a "helper" (read: chatGPT) that we named "Ceve" that can help the user write a good introduction. We even added a job-search-API that will allow the user to look for jobs. 

1.5 weeks. 11 days. 264 hours of going from scratch to an application that I want to, and am going to, use myself. My passion for coding has only grown since I entered the bootcamp, and now at the end I feel it growing for every day. 

Our application was made to make the process of searching for a job just a bit easier. A smidge, a crumb more fun. A modicum of relief in the jungle that is job searching. Hopefully it can help people stand out, allow users to send out our (beautiful!) CV's and help them find a job. 

With a little luck my first post is as good as our project is, but truthfully, I am so proud of my mob (my friends!) and what we have achieved that even if my first post is read by no one I will still feel bliss thinking of the whole process. However, if you've read this far I thank you, and hope to see you out there. If you ever need a CV, you know where to go. Take care, double-check your commit-messages and have a lovely spring.