teleren/devto huggingface dataset:
What is Css?
Tags: language, colors, layout, fonts
Published: 2021-09-27 06:20:35

CSS stands for **Cascading Style Sheets**. It is a language designed to format the layout of Web pages. It is used to enable the separation of presentation and content, which includes layout, colors, and fonts. They improve the accessibility of content, make it more flexible. CSS enables the specific look of HTML in the browser. CSS has lots of advantages. CSS is a great time-saver; you can write CSS once and then use the same sheet in multiple HTML pages. It provides multiple device compatibility; style sheets allow content to be optimized for more than one type of device.

Before you continue, you should have a basic knowledge about HTML because, with HTML tags, we create our pages, and with CSS, we give style to our tags. It means we make our page more beautiful. HTML is used to structure content while the CSS is used for structured formatting content. With CSS, we can change the **[color](https://tailwindcss.com/docs/customizing-colors)**, **[background-color](https://tailwindcss.com/docs/background-color)**, **[font-size](https://fonts.google.com/?preview.size=22)**, etc. Our CSS guide provides some sections which cover the basic knowledge, CSS Properties, and Selectors.

**What is box modal in CSS?**

Image result for what is box model in css
CSS box model is a container which contains multiple properties including borders, margin, padding and the content itself. It is used to create the design and layout of web pages. It can be used as a toolkit for customizing the layout of different elements.

In CSS, the term "box model" is used when talking about design and layout.

The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content. The click on **[box model](https://www.w3schools.com/css/css_boxmodel.asp
)**
How Dynamics 365 Business Central Accelerates Business Transformation?
Tags: dynamics365, microsoft, application, businessapplication
Published: 2021-09-27 06:15:54

[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1h9jix2crz9g4bp3qvo6.jpg)](https://www.youtube.com/watch?v=d2aJMkpIm2A)

Click to Watch the video!
HTML tags | tbody
Tags: html, tags, tbody
Published: 2021-09-27 06:10:08

It is used to **define the set of rows that make up the body of a table**.

**It has no attributes** other than global ones, so to define presentation aspects, CSS properties such as `background-color`, `text-align` or `vertical-align` will be used.

**Must appear after** the `<caption>`, `<colgroup>` and `<thead>` elements.

Browsers can use `<thead>`, `<tbody>` and `<tfoot>` to allow scrolling of the body of the table independently of the header and footer. Similarly, when doing CSS for printing and if the table is spread across multiple pages, these elements can allow both the header and footer to appear repeated at the beginning and end of each printed page.

`<thead>`, `<tbody>`, and `<tfoot>` together also serve to provide useful semantic information used when rendering for screen or printer, as well as to improve accessibility.

Two rules of use:
* If the table includes a `<thead>` the `<tbody>` must come after.
* If you use `<tbody>` you cannot have `<tr>` that are direct children of `<table>` but not included within `<tbody>`. All rows that are not header or footer must go inside `<tbody>` if it exists.

**Multiple sections can be created** within a table using multiple `<tbody>` elements. Each of them can have its own header row(s), but **there can only be a single** `<thead>` element per table. Thus, the headers for each `<tbody>` will be created using `<tr>` containing `<th>` with the corresponding `colspan` attribute.

Has an **implicit ARIA role** `rowgroup`.

- Type: *table-row-group*
- Self-closing: *No*
- Semantic value: *No*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody) | [Support](https://caniuse.com/mdn-html_elements_tbody)
Resources to nail DSA
Tags: datastructures, algorithms, programming, dsa
Published: 2021-09-27 05:55:39

My journey of learning DSA was not an easy one. I was always puzzled while finding resources (youtube videos, courses and blogs). This confusion was a semester long, and I wasted a lot of time in searching for resources. The mistake I made was, looking for one platform to cover all the topics. I read books, blogs, saw videos, completed 2-3 courses of DSA, learnt DSA in college lectures, switched to java from C++ and completed Data structures in Java and C++ both. Even I completed data structures in Python also after reading some answers from quora. But when I started to solve problems, I was not able to solve all the questions in one particular language. My tests would clear but interviews collapse because of not sticking to one language for every question. So I again started revising everything about DSA in C++(this was also a recommendation).

Here is a list of Books, blogs, courses and youtube channels I used to learn Data Structures this semester. I have not included those which were just waste of time.

##Books
1. Data Structures and Algorithms by Clifford A Shaffer
2. Algorithms by S Dasgupta
3. The Algorithm Design Manual by Skiena

##Courses
1. Abdul Bari's course on Udemy
2. Elementary Data Structures on Saylor Academy (Best content)
3. NPTEL

##Youtube Channels
1. AlgoRhythmics (Toughest algorithms explained beautifully)
2. Abdul Bari
3. Freecodecamp

##Blogs and Websites
1. Interviewbit (specially for sorts)
2. [Data Structures Visualization](https://www.cs.usfca.edu/~galles/visualization/Algorithms.html)
3. Programmingoneone  (for Asymptotic Analysis)
4. [Omarelgabrys](https://medium.com/omarelgabrys-blog/algorithms-data-structures-series-85ec94eb8aff)

##Apps
1. Data Structures Handbook (last minute preparation)

Thanks for reading
Do share the resources which you preferred for DSA in the comments⬇⬇⬇
HTMLtoPdf - Converts HTML content to PDF using chrome executable
Tags: html, pdf, csharp
Published: 2021-09-27 05:28:17

#Note : Requires Chrome executable 

#Nuget Link - https://www.nuget.org/packages/Sats.HTMLtoPdf
#Github link - https://github.com/satsvelke/HTMLtoPdf

#Usage
               var url = @"d:\Vaccination.html";
              var chromePath = @"C:\Program Files\Google\Chrome\Application\chrome.exe";
              
              // returns byte array of file 
              var pdf = new ChromeOptions().AddOptions(b =>
                                          {
                                              b.Headless();
                                              b.DisableGPU();
                                              b.WithoutHeader();

                                          }).Pdf(new ChromeDetails() { ChromePath = chromePath, HtmlPath = url
     OutputPath = @"d:\print.pdf" // optional (add if 
                 Environment.CurrentDirectory does not have access rights)
             });

               File.WriteAllBytes(@"d:\print.pdf", pdf);  



Version : 2.1 


            var url = @"d:\test.html";
            var chromePath = @"C:\Program Files\Google\Chrome\Application\chrome.exe";

            var output = new ChromeOptions().AddOptions(b =>
                                {
                                    b.Headless();
                                    b.DisableGPU();
                                    b.WithoutHeader();

                                }).ToPdf(new ChromeDetails()
                                {
                                    ChromePath = chromePath,
                                    HtmlPath = url,
                                    DeleteOutputFile = true, //optional
                                   // OutputPath = @"d:\print.pdf" // (add if Environment.CurrentDirectory does not have access rights)
                                });


            File.WriteAllBytes(@"d:\print.pdf", output.FileDetails.File);

output.FileDetails.File will have byte array of created pdf
output.ProcessDetails will have output details like errors
jQuery $(document).ready() in vanilla JavaScript
Tags: webdev, javascript
Published: 2021-09-27 05:20:31

**jQuery's $(document).ready()** method allows us to safely run code only once **the DOM is loaded and parsed**.

Not to be confused with **$( window ).on( "load")**, to be used if we want to run code only if **the whole page content (DOM, and assets as well) is loaded** in the browser.

We can achieve the same result with vanilla js and Web APIs, in particular using:
- Window: DOMContentLoaded event
- document.readyState

The tricky part is considering that when the browser runs our code it may have already loaded and parsed the DOM, so the best practice is to first check the document.readyState variable.

Here is my complete gist:
{% gist https://gist.github.com/andberry/c6995034eb85e04b141b6a7746ed63a1 %}
Amaze Wow (2 Month internship ) interview experience

Published: 2021-09-27 05:18:01

##Online assessment Round 1 -

At first one online assessment took place where I was asked everything under different sections like data structures, algorithms, pseudocode, software engineering, computer networks ,dbms, linux, and **one coding question** which was something like you are given n matchsticks along with the cost. Either you can increase the value by one or decrease the value by one. So had to find the min cost of operations to make them all equal. 

##Online assessment Round 2 -

After this round the shortlisted candidates had to give one more OA where our logical ability, aptitude plus coding skills were tested along with some basic personality judging questions. 2 coding questions were given one of them was 

* item 1 You are given an array of boxes and array of unit of items present in the boxes . You are required to find the max unit of items to be loaded in the truck if truck size ( max number of boxes which can be accommodated ) was given.

* item 2 The next ques was you are given number of computers and an array of hard disk spaces and segment length. You are required to cut the hard disk into contiguous segments and find max of minimum of the segments.

##Final Interview Round -

After that I was shortlisted for the final interview round which was a 1 hour interview where the interviewer asked one dp question. 
[Link](https://www.geeksforgeeks.org/given-large-number-check-subsequence-digits-divisible-8/#:~:text=Example%20subsequences%20are%20176%2C%2016,344%20is%20divisible%20by%208.)
Took most of the time in this question only. Got rejected but happy to learn a lot.
5 Best Places to find Hackathons!🧑‍💻
Tags: javascript, codenewbie, opensource, programming
Published: 2021-09-27 05:14:04

Hackathons are probably one of the best places to network with people and simultaneously learn and enhance your skills and also who doesn't love swags? Here are the 5 best places to look out for in order to attend a hackathon👇

1.**Major League Hacking** [(mlh.o)](mlh.io)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bsnlubg7w2bedkqioy09.png)

Major League Hacking is one of my favorites and one of the best places to find hackathons. MLH organizes many hackathons for University students and it also provides .tech, .space, and .online domain free for a year. I have been a part of 2 MLH hackathons and the experience is amazing.

2.**Devpost** [(devpost.com)](devpost.com)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nviipskdpzmsvtpk31ub.jpg)

Devpost also has many exciting hackathons listed but mostly Hackathons use Devpost to help you find a team, submit your project, and look at other projects. I love Devpost as I can see other people's projects and get good ideas, isn't it cool?

3.**Devfolio** [(devfolio.co/hackathons)](devfolio.co/hackathons)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ectbc7pjhddy4zk2se9a.png)

I came across Devfolio in the quarantine while searching for virtual hackathons. I haven't used it much but I like the UI/UX of the website and also I had an amazing experience during the hackathon.

4.**HackClub** [(hackathons.hackclub.com)](hackathons.hackclub.com)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkzjdgi4mxquiqmklcny.png)
HackClub is another great website to look for international hackathons for High School and University students. It has a wide list of hackathons to choose from.

5.**Hackalist** [(hackalist.org)](hackalist.org)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9intdnezsmfbzfxea6nh.jpg)
Hackalist is a website that provides a list of upcoming hackathons around the world and also it is Open-Source. It also has a filter for hackathons that give travel reimbursement so it is awesome for people who like to travel, I haven't used this website but It has some good reviews.



**These resources are more than enough to find and attend a hackathon, so what are you waiting for? Attend a hackathon and upskill yourself.**

Thanks for reading..
Migrate Expo Project to React Native CLI
Tags: reactnative, javascript, programming
Published: 2021-09-27 05:05:00

Hi everyone , I hope everyone is doing good.
So generally when developers start learning React native, they choose Expo over RN CLI which is good but Expo has some limitations. Please use this link to know more about that https://docs.expo.dev/introduction/why-not-expo/ .

Here we learn how to convert our **Expo** project to **RN CLI**.

## It's time to eject

Basically, for migration we use **EJECT** methodology to convert our Project to RN CLI.

We use **expo eject** command in terminal of our project directory. 

After that it's asking about **packages** name for android and **iOS identifier** for iOS.

**IMPORTANT!** 

Use the correct package name and iOS identifier as same as mention in your project.

After successfully completion, we get two new folder in our project.

1. android - contains files which are responsible for native android development
2. ios - contains files for which are responsible for native iOS development.

After that, you can configure App icon and Splash screen image in each environment i.e android and iOS.

And here we go, we successfully migrate our app from expo to RN CLI.

*Happy Coding!*
How to integrate UIkit in Drupal
Tags: drupal, webdev, frontend
Published: 2021-09-27 04:56:16

UIkit (https://getuikit.com/) is an amazing lightweight and modular front-end framework that can help you, frontend developer, a lot.

Super clean black/white style, it can be seen as a library of components you can integrate in your project.

Components list ranges from a sort of utility classes like "Align" or "Padding" to more complex and js driven building blocks like Accordion, Dropdown, Lightbox, Scrollspy and Slideshow just to cite a few.

## 1) Using the Drupal theme
The simplest way to start using UIkit in Drupal is to simply install the theme https://www.drupal.org/project/uikit

```
composer require 'drupal/uikit:^3.15'
```

You get the all the framework css and js loaded and also a useful bunch of views styles/formatters.

## 2) Loading it as library from CDN
A second way to integrate UIkit in your theme is to load it from CND defining a library in your theme.
Something like this (pay attention that this file must follow YAML 2 spaces indentation and that uikit library has to be included in .info.yml file):
```
global-css:
  version: 1.0
  css:
    theme:
      css/style.min.css: { minified: false }
global-js:
  version: 1.0
  js:
    js/app.min.js: {}
uikit:
  js:
    "//cdn.jsdelivr.net/npm/uikit@3.7.3/dist/js/uikit.min.js": { type: external, minified: true }
    "//cdn.jsdelivr.net/npm/uikit@3.7.3/dist/js/uikit-icons.min.js": { type: external, minified: true }
  css:
    base:
      "//cdn.jsdelivr.net/npm/uikit@3.7.3/dist/css/uikit.min.css": { type: external, minified: true }
```
You get the all the framework css and js loaded in your theme



## 3) Install with npm and integrate in scss/js
If you have a workflow tool or task runner in place I guess you'll prefer to install UIkit with npm and then integrate the scss and js parts.

Install framework with NPM
```
npm install -P uikit
```

CSS/Scss: where to put these code snippets actually depends on how you structured your scss files,
but the concept is that you need first to include variables and mixins (eg. _settings.scss)
```
@import "uikit/src/scss/variables";
@import "uikit/src/scss/mixins";</pre></code>
```

and the you can include the CSS for the components you're using (eg. _components.scss):
```
@import "uikit/src/scss/components/visibility";
@import "uikit/src/scss/components/accordion";
@import "uikit/src/scss/components/animation";
```

JavaScript: simply import the framework (eg. in app.js)
```
import UIkit from 'uikit';
import Icons from 'uikit/dist/js/uikit-icons';
UIkit.use(Icons);
```

This way you load all the JavaScript part of the framework but only the style files you're actually using in your frontend,
and you can easily get the framework css and js files bundles with your codebase (reducing the number of browser requests)
Smbclient Komutu
Published: 2021-09-27 04:29:37

Bir Samba dosya sunucusuna bağlanmak için iki farklı yöntem bulunmaktadır. Bunlar:
- smbclient komutu ile terminalden bağlanmak
- Dosya sisteminden "smb://dosyasunucusu" şeklinde adres yazarak bağlanmak.

Bu yazımızda samba dosya sunucusuna bağlanmak ve işlemleri terminalden götürmek için smbclient komutunu inceleyeceğiz. Hadi başlayalım :)

Smbclient, FTP bağlantısına benzer bir komut satırı aracıdır. Bu komut sayesinde SMB kaynaklarına erişim sağlanır. Sık kullanılan smbclient komutları aşağıdaki gibidir:
- SMB paylaşımlarını listelemek: 
``` 
smbclient -L //sunucu_adı -U kullanıcı
```
- SMB paylaşımına bağlanmak: (Şifre girilmesi gerekmektedir.)

``` 
smclient //sunucu/paylaşım -U kullanıcı
```
- SMB paylaşımına direkt bağlanmak: (Şifre girilmesine gerek kalmaz fakat şifre ekranda gözükür.)
```
smclient //sunucu/paylaşım -U kullanıcı%parola 
```

Daha özel kullanımlar amaçlı sık kullanılan smbclient flagları aşağıda listelenmiştir:
* "-L" flagı (--list): Sunucu üzerindeki paylaşımları listelemek için kullanılan flagdır.

* "-U" flagı (--username[%password]): Bağlanılacak dosya sunucusuna girişte kullanılacak kullanıcı adını (ve isteğe göre şifreyi) belirtmede kullanılan flagdır.

* "-A" flagı (--authentication-file): Bağlantı kurmak için kullanıcı-şifre bilgisini tutan dosyayı belirtmede kullanılan flagdır. Belirtilecek dosyanın formatı aşağıdaki gibi olmalıdır. 
``` username = <değer> 
password = <değer>
domain = <değer> ```

* "-B" flagı (--browse): Bu flag sayesinde DNS kullanılarak SMB sunucuları bulunur.

* "-p" flagı (--port): Kurulacak bağlantının gerçekleşeceği port'un seçilmesinde kullanılır. Bu flag kullanılmazsa, default port olan 139 portu kullanılır.

* "-I" flagı (--ip-address IP-address): Bağlantı için sunucunun NetBIOS ismini değil de ip adresini vermek için kullanılır.

* "-k" flagı (--kerberos): Kerberos ile authenticate olmayı denemek için kullanılır.

* "-d" flagı (--debuglevel): Log dosyalarına daha detaylı bilgi verilmesini sağlayan flagdır. 0-10 arasında bir değer verilebilir.

Ek olarak, smbclient ile farklı şekillerde bağlantı kurulabilmektedir. Bunlar:
1) Sunucunun Netbios ismi ile: 
```
smbclient -L fileserver
```
2) Sunucunun ip adresi ile: 
``` 
smbclient -L x.x.x.x
```
3) Backslash kullanarak bir paylaşıma doğrudan bağlantı ile:
``` 
smbclient \\\\fileserver\\share  
```
4) Bir üstteki seçenek tırnak işareti kullanılarak da gerçekleştirilebilir: 
``` 
smbclient "\\fileserver\share" 
```
Why is my Epson Printer scanning is not working?

Tags: epson
Published: 2021-09-27 04:22:58

In the world of Printers, Epson is one of the most renowned and prestigious printers. With enhancing features and enriching updates, it has acquired a unique place in the user's mind. Maybe its authenticity and reliability could be one of the reasons behind its increasing admiration. However, the users of Epson Printer many times face technical issues and put-up questions like how to scan from Epson Printer to computer Windows 10 or why scanning is not working. Now, you can simply read this blog and find out the ways to troubleshoot the issue. Have a look!
Easy Ways to resolve Epson Printer scanning issue
If your Epson Printer is not scanning properly, then definitely you are supposed to follow few important instructions that are explained here. Check out the steps:
First of all, you must verify the Epson scan and set it to compatibility mode
Firstly, you are supposed to right-click on the Epson Scan icon, which is on the desktop
And then, you can simply click on properties
Now, you are required to go to the compatibility tab
Then if the check box next to Run this program in compatibility mode for, uncheck it
Now, you must click on the OK button
Now, you should press the Windows logo key and R key at the same time 
Next, you must type services.msc and then click on the OK button just to open the services window
Now, you should right-click on Windows Image Acquisition and then click on Properties
Next, you should make sure Startup is set to automatic and the service status to Running 
Now, you must click on Apply button and then click OK
Do not forget to update scanner drivers
Download and install Driver Easy
Now, run the driver easy and then click on the scan now button
Next, you must click on the update button, which is next to the flagged Epson Scanner Driver 
You can simply click on update al which will automatically update or install the correct version
Why does my Epson Printer won't scan after Windows 10 Update?
In such situations, you are expected to follow few important steps. Possibly your scanner is not working due to updating of Windows 10 but could be easily resolved by following few important instructions. Have a look!
If you are stuck, you are just supposed to turn off the compatibility mode. Don't worry; you can also check out the steps to do it:
One must find the Epson Scan icon on your screen and then right-click on it
Now, you must select properties and then click on compatibility Tab
Next, you must uncheck the 'Run this program in compatibility mode for.'
Now select OK
Next, you must press the Windows + R keys on your keyboard in order to open the Run box
Next, you must enter services.msc and then select OK
Now, you should right-click on the Windows Image Acquisition and then select properties
You must check the startup option, choose automatic
Verify that the service status is running, and then click on the apply button
Now, at last you must press the OK button 
By reading this blog, you would be able to find out how to scan from Epson printer to computer windows 10. Check out to know more about it.