teleren/devto huggingface dataset:
CSS Battle Target#6
Tags: webdev, css, beginners
Published: 2022-02-28 06:29:47

_Hey everyone👋,
  **CSSBattle** Series is back✨!_

In this article, we would be covering the [Target#6 "Missing Slice"](https://cssbattle.dev/play/6) on [CSSBattle](https://cssbattle.dev/)

Here's the required output.
![Target6 Missing Slice](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ay79chtcwd6g3hdfjyq.png)

> It would be more beneficial for you, if you first try the challenge on your own, then looking up the solution given below.

####The best approach I could come up till now is stated below.

I learned about the conic gradient function, which can be really helpful for generating such patterns.

```css
<p><style> 
*{
margin:25.1 33.2;
background:#E3516E}
p{
width:200px;height:200px; 
background:conic-gradient(
#FADE8B,25%,#FADE8B,25%,
#E3516E,50%,#F7F3D7,50%,
#F7F3D7,75%,#51B5A9 75%);
border-radius:50%;
}
```

**This was my shortest solution condensing to 191 characters.**

Comment down your way of doing the same.
Stay Tuned for daily updates regarding all the challenges on CSSBattle.


###Want to connect?
[You can connect with me here](https://linktr.ee/prakhartandon)
How cloud testing is going to impact the Future?
Tags: cloudtesting, cloud
Published: 2022-02-28 06:20:29

What is cloud testing?
It is a software testing method where cloud service providers are selected, test cases are designed, user scenarios are developed, infrastructure is set up, cloud servers are leveraged and then testing is initiated and thus testing goals are monitored and results are delivered.

**Following are four key reasons that justify the strategic demand for [cloud testing in the future](https://www.testingxperts.com/blog/cloud-migration):**
1. Cloud customization: The work capacity of QA teams is scaled up through the Agile and DevOps platform so that faster and efficient results can be achieved. Development and testing teams can
test the applications in a flexible manner through the cloud testing platform based according to the customer requirements.

2. The infrastructure is flexible: When companies invest in hardware or software infrastructure, certain rules need to be followed so that the requirements can be molded in order to deliver infrastructure according to the specific features. In cloud testing, based on the teams’ environment, the working of infrastructure takes place. Real-time user experiences can be integrated with the testing needs.

3. Resources are both accessible and flexible: With a smooth internet connection, applications and devices can be accessed from anywhere at anytime. Through this, variations and immediate updates can easily be done in an application. Hardware investment is not required and so the testing and development platform becomes flexible. In order to make updates and real-time changes, business agility needs to be applied by organizations. A wide range of resources are provided by the cloud environment and also flexibility is provided to build and test scalable applications.

4. Delivering high-end products: In today’s corporate scenario, organizations need innovative ideas and strategies that are not only cost-effective, but, can solve real-time technological problems. The onus of the application’s efficiency lies upon QAs and also focus is on bringing down the testing cost.
Team flexibility is provided by the cloud testing platform so that the testing tools and infrastructure can be accessed from anywhere. Cloud testing tools can be strategically used by teams in order to leverage testing requirements as per their needs.
Day 35/100 Java
Tags: 100daysofcode
Published: 2022-02-28 06:19:30

Productive Morning,

Day 35/100

**Language:**
JAVA

**Time Period Spent:**
2 hrs

**Course Taken:**
Udemy: Java Programming Masterclass - Tim Buchalka

**Today's Learning:**
- Scope
- Access Modifier
- Static Statement
- Final Statement

- Code Challenges:
	- Packages
	- Scope

**Additional Notes:**
After reviewing some projects I want to complete when I do take the dive on developing items on my own is GUI's. After reviewing the course I realised that I have one section left before I start the JavaFX section.

The essence of final statements are to instantiate security on classes. This allows us to lock down classes and entities if we so wish. Final can be used to lock a variable once an instance has been dealt.
Input String was not in a correct format | C# interview question
Tags: csharp, dotnet, interview
Published: 2022-02-28 06:09:22


Explained what are int.Parse( ), Convert.ToInt32( ) and in.tryParse( ) and how each method is different with other. Explained when to use int.TryParse ( ) method .
This is one the most asked interview question.

Asp.Net Core Web App + Visual Studio Code : https://youtu.be/55qwQhdzkLM
Debug .Net Core Application: https://youtu.be/PjQOWLOttbA

{%youtube _kgNC4qZEro%}
Network Address 
Tags: beginners, tutorial, computerscience, management
Published: 2022-02-28 05:57:15

Before going to our main topic Network Address, let's discuss about **converting ip address dotted notation to a single decimal number**.
This is the second post of networking I am sharing
Here is the first post link : [Post1](https://dev.to/akashnanistar/computer-networking-3l9h)

Let's see how to convert ip address dotted notation to a single decimal number.
I think we all know how to convert binary number into a decimal number same process applies here also.
**Example** : let's convert binary number 1010 into decimal number.
 <pre>
  1      0       1       0
 2^3    2^2     2^1     2^0

= 1*8 + 0*4 + 1*2 + 0*1 
= 10
</pre>
**Here we use our base as 2 because binary Language has only two options either 0 or 1
But in Ip address, we can have 0 to 255 so our base is 256.**
Let's convert 192.168.31.1 into single decimal.

<pre>
  192      168      31     1
256^3     256^2   256^1  256^0

192*256^3 + 168*256^2 + 31*256^1 + 1*256^0 = 3232243457
</pre>
**192.168.31.1 = 3232243457
We can use ip address as 192.168.31.1 or 3232243457 both are same.**

Soo lets go to our main topic Network Address
The laptops, desktops, routers, switches etc.. are called network devices

**Network devices having same network address fall into same network named as local area network (LAN)**
**We identify the network address using netmask**
Ip : 192.168.31.1
Netmask : 255.255.255.0
In binary 
Ip : 11000000 10101000 00011111 00000001
Netmask : 11111111 11111111 11111111 00000000

**So we see continuous 1's in netmask, it's corresponding ip address bits are known as Network address.**

In our example 
11000000 10101000 00011111
11111111 11111111 11111111
These are the corresponding bits

Place 0's in last remaining bits, So our network address is
11000000 10101000 00011111 00000000
192.168.31.0

Thank you for reading the post
Follow me in [LinkedIn](https://www.linkedin.com/in/akash-kola-a1a07b175) and [dev.to](https://dev.to/akashnanistar) and share this post to your friends....

_&copy; images and extra resources can apply their copyrights_
Weird and interesting places to remote work from?
Tags: remote
Published: 2022-02-28 05:32:23

Due to the increase in opportunities that provide remote work, I was wondering if anyone ever tried to take their remote work and work from somewhere "totally out there", or that would at least standout.

Sure it's safer to work from home, but sometimes it feels nice to go out and go somewhere different, at least to change things up.

I was recently at a local garden and thought about grabbing my laptop and using their free wifi and working from there. 

It got me thinking if anyone has tried working remotely, pre-pandemic, or now, from somewhere you'd consider weird or interesting.
How to set expiry time for stripe account link?
Tags: accountlink, stripephp, customaccount
Published: 2022-02-28 05:17:29

Hi,
I am using stripe-php for custom accounts and generating account link. The problem is that the account links are for only one-time use. Also, the account links expire within a minute.

Is there any way to set the account link expiry time?
OR
Is it possible to generated account links for multiple times use?

Any help will be appreciated.
Never Ending Errors
Published: 2022-02-28 05:17:05

You know how when you try to avoid a problem for a while, it turns into a bigger one? Well last week we barely made a scratch on the surface for the search bar: 
>This week I did a rebase for the branch. This rebase was for 10 separate commits. I am not a fan or rebasing and having conflicts. This means I am a new fan of continuously updating my branches with the latest code in master.

Although I was finally able to rebase the branch(also incorrectly), I was now presented with a new problem... or should I say error: 

```
TypeError: Cannot set property statusCode of Error which has only a getter
    at createError (/app/node_modules/http-errors/index.js:101:33)
    at /app/src/routes/query.js:13:10
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
{
  error: ResponseError: index_not_found_exception
      at onBody (/app/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
      at IncomingMessage.onEnd (/app/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
      at IncomingMessage.emit (node:events:402:35)
      at endReadableNT (node:internal/streams/readable:1343:12)
      at processTicksAndRejections (node:internal/process/task_queues:83:21) {
    meta: {
      body: [Object],
      statusCode: 404,
      headers: [Object],
      meta: [Object]
    }
  }
} query error
```

The problem was foreshadowed in my blog last week: 

>I was unable to get the port for the queries working, so once I solve that, I will be able to get the inputs working.

I was able to come up with a work around. What has happened was ever since we finally had the tests created for ElasticSearch, we ripped out the functionality from Telescope, to use Satellite for ElasticSearch. This has caused some issues with the port it listens to. I believe the correct port to use now is localhost, but I am not too confident this will work on staging. [I asked Dave if the error only shows up for him locally](https://github.com/Seneca-CDOT/telescope/issues/2755#issuecomment-1045425773), and he confirmed, so it seems when we run our containers locally, we are trying to connect to 127.0.0.1 port 9200 for Elasticsearch, but this is not correct as we have migrated over to Satellite to provide us the Client. 

The [fix that seemed to work and avoid the error](https://github.com/Seneca-CDOT/telescope/pull/2990), seems to be able to query properly locally, however, I wasn't able to reproduce the error to write in the PR the proof of it working. I'll have to spend some time on this this week.

#### Elasticsearch progress
- Added title in search UI
- Added back the useEffect for the search so it is more interactive (populate search as you update fields)
- Hooked up the API calls for Search from the front-end (we can search by titles! - more to come!)

#### Remaining work
- Tie up all the search input fields
- Remove code from the old search
- Clean up the UI
- Any other bugs that I am probably not expecting...
Java Solution to leetcode problem 1572. Matrix Diagonal Sum
Published: 2022-02-28 05:13:10

# Java Solution to leetcode problem 1572\. Matrix Diagonal Sum

[](https://hashnode.com/@hussaincode)

[Hussain Code](https://hashnode.com/@hussaincode)

·[Feb 28, 2022](https://hussaincodes.in/java-solution-to-leetcode-problem-1572-matrix-diagonal-sum)·

1 min read

Subscribe to my newsletter and never missmy upcoming articles

Subscribe

Given a square matrix mat, return the sum of the matrix diagonals.

Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of the primary diagonal.

![sample_1911.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1646024720227/p5tnvgCcG.png?auto=compress,format&format=webp)

```
Input:mat= [[1,2,3],
              [4,5,6],
              [7,8,9]]Output:25Explanation: Diagonals sum:1+5+9+3+7=25Noticethatelementmat[1][1]=5iscountedonlyonce.
```

Leetcode question link - [leetcode.com/problems/matrix-diagonal-sum](https://leetcode.com/problems/matrix-diagonal-sum/)

Solution :-

```
public class Q15 {public static void main(String[] args) {int[][] mat={{1,2,3},
                {4,5,6},
                {7,8,9}};
        System.out.println(diagonalSum(mat));
    }
    static int diagonalSum(int[][] mat) {int n = mat.length;int principal =0, secondary =0;for (int i =0; i &lt; n; i++) {
            principal += mat[i][i];
            secondary += mat[i][n - i -1];
        }return n%2==0 ? (principal + secondary) : (principal + secondary - mat[n/2][n/2]);
    }
}
```

Like

Share this
NEBOSH course in chennai
Published: 2022-02-28 05:10:41

NEBOSH new format open book exam though was seen with doubt and hesitation by the learners , now has created a huge demand . The new format open book exam has got a great reception and tremendous support from the learners. The new format NEBOSH open book exam has widened the way of thinking and understanding and provides a positive approach for the application of mind.
This new format open book exam has same value as the previous NEBOSH international general certificate closed book paper based invigilated exams which were conducted at pre covid scenario Some learners feel that the new format open book exam is easy and they can simply get through the exams.But it is not true. It requires careful reading and understanding of syllabus and correct application of technical knowledge

In new format open book exam learners have some difficulty in understanding the scenario based questions and some technical issues with uploading the answer template But keeping the technical problem in mind NEBOSH have now decided to provide the log in details well beforr the exams and also NEBOSH had released a you tube video tutorials to guide the learners The word count of the answers given by the learner's is also important criteria. Since the duration of the exam is 24 hours , NEBOSH expects learner to provide detailed answers. The learners now have the freedom to refer any source of information, but should not copy and paste Keeping all the above mentioned subject information and constrains we offer an exclusive training and comprehensive revision and range of mock test .

We also offer individual care and assistance to students to ensure that they understand the concept of NEBOSH international general certificate syllabus and the method of open book exam We provide value added hand outs and tutor guidance notes to ensure easy understanding and we also support the students with audio notes
SQL 2ND Highest Salary
Published: 2022-02-28 04:57:31

Here are several ways to find the second highest salary, given a table of employee salaries in SQL. 

Example table: 

```employee table:
+----+--------+
| id | salary |
+----+--------+
| 1  | 100    |
| 2  | 200    |
| 3  | 300    |
+----+--------+```


**POSSIBLE SOLUTIONS:** 
**SOLUTION 1:** 
`SELECT MAX(salary) as SecondHighestSalary FROM employee WHERE salary NOT IN (SELECT MAX(salary) FROM employee);`


 **SOLUTION 2:** 

`SELECT * FROM employee 
GROUP BY salary 
ORDER BY  salary DESC LIMIT 1,1;`

**SOLUTION 3:** 
`SELECT DISTINCT salary AS SecondHighestSalary
FROM employee
ORDER BY salary DESC
LIMIT 1 OFFSET 1`
Laravel 9 Implement Yajra Datatables Example Tutorial
Tags: laravel
Published: 2022-02-28 04:44:45

Hi All,

Today, laravel 9 yajra datatables example is our main topic. if you want to see an example of how to use yajra datatables in laravel 9 then you are a right place. we will help you to give an example of laravel 9 datatables example. if you want to see an example of laravel 9 yajra datatables server site server side then you are the right place.

Yajra Datatables provides us with quick search, pagination, ordering, sorting and etc. Datatables is basically jQuery plugins that allow you to add advanced interaction controls to your HTML tables data. Datatables also provide ajax for data searching and getting. you can give a very quick layout for search and sorting using Datatables. You can also implement Datatables in your laravel application.

In this example, we will use the default "users" table and add some dummy users to it using tinker, then we simply list all users using yajra datatables. so let's follow the below step and make it done.

[Laravel 9 Implement Yajra Datatables Example Tutorial](https://www.codecheef.org/article/laravel-9-implement-yajra-datatables-example-tutorial)
Laravel 9 Ajax Post Request Example Tutorial
Tags: laravel, ajax
Published: 2022-02-28 04:23:47

Hi Dev,

This tutorial is focused on laravel 9 ajax request example. I’m going to show you how to use ajax in laravel 9. step by step explain laravel 9 jquery ajax post request example. step by step explains laravel 9 ajax form submit example.

Ajax request is a basic requirement of any php project, we are always looking for without page refresh data should store in the database and it's possible only by jquery ajax request. same thing if you need to write an ajax form submit in laravel 9 then I will help you how you can pass data with an ajax request and get on the controller.

In this example, we will create a "posts" table with a title and body column. we will list all posts data and add create button there. when you click on create button we will open the model where you can create a new post using a jquery ajax request. so basically you can fire an ajax post request with a bootstrap model.

so let's follow the below step to do this example.

[Laravel 9 Ajax Post Request Example Tutorial](https://www.codecheef.org/article/laravel-9-ajax-post-request-example-tutorial)
Select Excel Range
Published: 2022-02-28 04:17:37

---
canonical_url: https://ironsoftware.com/csharp/excel/examples/select-excel-range
---

IronXL allows us to easily select and work with ranges in any Excel `WorkSheet`.

**C#:**
```
using System.Linq;
using IronXL;
 
WorkBook workbook = WorkBook.Load("test.xls");
WorkSheet sheet = workbook.WorkSheets.First();
 
//This is how we get range from Excel worksheet
var range = sheet["A2:A8"];
 
//This is how we can iterate over our range
foreach (var cell in range)
{
    Console.WriteLine(cell.Value);
}
```

**VB:**
```
Imports System.Linq
Imports IronXL
 
Private workbook As WorkBook = WorkBook.Load("test.xls")
Private sheet As WorkSheet = workbook.WorkSheets.First()
 
'This is how we get range from Excel worksheet
Private range = sheet("A2:A8")
 
'This is how we can iterate over our range
For Each cell In range
	Console.WriteLine(cell.Value)
Next cell
```
Excel Print Setup (Code Example)
Published: 2022-02-28 04:07:49

---
canonical_url: https://ironsoftware.com/csharp/excel/examples/excel-print-setup
---

IronXL allows **Print Setup** to be programmatically defined in any Excel document. This gives granular control over how the document will be printed on a physical or PDF printer.

Document headers and footers can also be set, including the ability to "mail merge" variables such as page numbers.

**C#:**
```
using IronXL;
using IronXL.Printing;
 
WorkBook workbook = WorkBook.Load("test.xlsx");
WorkSheet worksheet = workbook.DefaultWorkSheet;
//This is how we set the print header of the worksheet
worksheet.Header.Center = "My document";
//This is how we can set the header margin
worksheet.PrintSetup.HeaderMargin = 2.33;
//This is how we set the size of the paper
//Paper size enum represents different sizes of paper
worksheet.PrintSetup.PaperSize = PaperSize.B4;
//This is how we can set the print orientation of the worksheet
worksheet.PrintSetup.PrintOrientation = PrintOrientation.Portrait;
//This is how we can set black and white printing
worksheet.PrintSetup.NoColor = true;
 
workbook.SaveAs("PrintSetup.xlsx");
```

**VB:**
```
Imports IronXL
Imports IronXL.Printing
 
Private workbook As WorkBook = WorkBook.Load("test.xlsx")
Private worksheet As WorkSheet = workbook.DefaultWorkSheet
'This is how we set the print header of the worksheet
worksheet.Header.Center = "My document"
'This is how we can set the header margin
worksheet.PrintSetup.HeaderMargin = 2.33
'This is how we set the size of the paper
'Paper size enum represents different sizes of paper
worksheet.PrintSetup.PaperSize = PaperSize.B4
'This is how we can set the print orientation of the worksheet
worksheet.PrintSetup.PrintOrientation = PrintOrientation.Portrait
'This is how we can set black and white printing
worksheet.PrintSetup.NoColor = True
 
workbook.SaveAs("PrintSetup.xlsx")
```
Edit Excel Metadata in C#
Published: 2022-02-28 04:05:00

---
canonical_url: https://ironsoftware.com/csharp/excel/examples/edit-excel-metadata-csharp
---

Read and Write Excel file metadata in C# including:

- `ApplicationName` Gets the name of the application with which the file was created.
- `Author` - Gets or sets the author of the file.
- `Category` - Gets or sets the category of the file.
- `Comments` - Gets or sets the comments field value.
- `Company` - Gets the company field value.
- `Created` - Gets or sets the creation time.
- `CustomProperties` - Gets the custom properties of the workbook.
- `Keywords` - Gets or sets the keywords field value.
- `LastPrinted` - Gets or sets the last printed time.
- `Manager` - Gets the manager field value.
- `Modified` - Gets or sets the last modification time.
- `Subject` - Gets or sets the subject of the file.
- `Template` - Gets the template field value.
- `Title` - Gets or sets the title of the file.
How to Add the Blazor Split Button to a Blazor WebAssembly App
Tags: blazor, webdev, dotnet, csharp
Published: 2022-02-28 04:00:45

A quick overview on how to create and configure the Syncfusion [Blazor Split Button](https://www.syncfusion.com/blazor-components/blazor-split-button) component in a Blazor WebAssembly app using Visual Studio 2019. The Blazor Split Button has a primary button to select the default action and a secondary button to toggle between contextual overlays that display the list of action items when a dropdown arrow is clicked. In this video, you will learn how to add a simple Blazor Split Button to a Blazor WebAssembly app, and how to add icons and change its positions. You will also learn how to display Split Button items horizontally and bind the OnOpen event to the component. 

Product Overview: https://www.syncfusion.com/blazor-components/blazor-split-button

Explore tutorial video: https://www.syncfusion.com/tutorial-videos

Download the example from GitHub: https://github.com/SyncfusionExamples... 
 

{% youtube u6wfpp_TlhI %}