teleren/devto huggingface dataset:
"Hello, world" in Assembly
Tags: python, javascript, csharp, cpp
Published: 2021-07-27 07:26:36

You should learn Assembly language - and I'm going to tell you why 😉 ..!

Not to be a great Assembly programmer, but at least to understand how it functions.

In my opinion, I think learning how to code in Assembly is to appreciate all what C language offers you; and if you want to learn C in order to appreciate all the great things that Python gives you, that's also a great move.


{% youtube j--zbDv_2QQ %}


So Assembly, C and Python are three main languages you need to know if you want to understand how code is working and how things look like underneath the hood, I even would say Assembly and C, then you're free to choose whatever language you want for backend programming; but the reaosn why I mentioned Python is that Python is written in C, the most famous Python interpreter is Cpython.
C itself is written in C, but you can think that the first C was coded in Assembly.
So Python is written in C, C is written in Assembly and Assembly is the human readable form for machine language which is a bunch of 0s and 1s


You will need to run on an IBM compatible PC...

(hmm.. wait a minute, I think this term is deprecated , but you can call me a Nerd 🤓 ) 

...with an x86_64 processor that is a 64 bit of virtual memory address, and also we will need to have a copy of a Linux kernel.

To check out the type of your processor, just type in your terminal

~$ arch 
OR 
~$ uname -m 

We will need also to install the NASM assembler program which is the Netwide Assembler for the Intel X86 architecture, 
An assembler works as a compiler but for assembly, 
go ahead and install that : 

>>> sudo apt-get install nasm

There are many assemblers like 
Microsoft Assembler (MASM)
The GNU assembler (GAS)

An assembly program can be divided into three sections −
The text section.
The data section,
The bss section

1) The text section is used for keeping the actual code. 
This section must begin with the declaration global _start, which tells the kernel where the program execution begins, and global keyword followed by _start is essential for the linker, later when we will run our program.

2) The data section is used for declaring data or constants. 
This data does not change at runtime. 
You can declare various constant values, file names, or buffer size, etc., in this section.
You can think of this as the keyword const in JavaScript for constants declaration

3) The bss section is used for declaring variables
You can think of this as the word let in JavaScript for variables declaration

You can watch the video to see how you can write a "Hello, World" simple program to print Hello, World on the screen .. in Assembly, it's not that simple 🤓

Thanks for readin - and watching maybe 🤔 - leave your comment and contact me on info@bekbrace.com , or follow me on Facebook, Twitter and Instagram : @bekbrace

Signin' out,
Bek
CSS properties I am most grateful to
Tags: css, webdev, frontend, styling
Published: 2021-07-27 07:21:25

Hello everyone, in this blog I am sharing a few CSS properties that I personally use alot and find very useful everytime.
## 1. Flexbox
Flexbox is a layout model that allows elements to fit together and distribute the space inside a container. Using different widths and lengths, objects can be aligned to fill spaces or to divide a space between elements, making it an ideal tool to use in responsive designs. [Learn more](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
![flexbox](https://www.bitdegree.org/learn/storage/media/images/661999ba-c216-4c71-b959-82f878309730.o.png)

## 2. Grid
CSS Grid layout is a two-dimensional grid system designed to help web developers split elements into columns and rows to create a consistent layout for web applications. [Learn more](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Grids)
![Grid](https://css-tricks.com/wp-content/uploads/2018/11/dddgrid-template-areas.svg)

## 3. box-shadow
Box-shadow in CSS is used to add shadows around the frame of an element. This property can help making amazing effects around the element depending upon the creativity standard. [Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow)
![box shadow](https://i7x7p5b7.stackpathcdn.com/codrops/wp-content/uploads/2014/09/boxshadowstyles.png)

## 4. Animation
Animations can be powerful tools for engaging and delighting visitors on your site. By using CSS animations, elements can be shifted, rotated, slanted, squashed, spun, and stretched on the page. [Learn more](https://developer.mozilla.org/en-US/docs/Web/CSS/animation)
![animation](https://res.cloudinary.com/practicaldev/image/fetch/s--OKcvSx-w--/c_imagga_scale,f_auto,fl_progressive,h_420,q_66,w_1000/https://thepracticaldev.s3.amazonaws.com/i/9sjvqruqixbvsg3mon9y.gif)

### Comment your favourite CSS properties or the one you think is not heard by many!
Best Programming Stuff.
Published: 2021-07-27 07:18:31

I have seen some of the programming stuff article on internet as usual sharing it with you guys...Some of the websites are having affiliate links.

## 1. Best Monitors For Programming ##

When programming or coding for long periods, it's essential to have a comfortable monitor to keep eye strain to a minimum.

1. [Best Monitor For Programming](https://suggestedstuff.com/best-monitors-for-programming-in-india-2021/)

2. [Best Monitor For Programming](https://www.rtings.com/monitor/reviews/best/by-usage/programming-and-coding)

3. [Best Monitor for Programming & Coding (2021 Update)](https://www.guru99.com/best-monitor-programming.html)

## 2. Best Keyboard For Programing ##

As developers we don’t need many tools to work, many would say that we just need a laptop or computer, and even though that’s true, there’s a difference between having the minimum required to work to have the tools that you need to work comfortably, productive and healthy.

1. [List of Best keyboard for programming India 2021](https://cmsinstallation.blogspot.com/2021/04/best-keyboards-for-programming-in-2021.html)

2. [8 Best Keyboards for Programming in India 2021](https://www.thecrazyprogrammer.com/2020/09/best-keyboards-for-programming-in-india.html)

3. [Best Keyboard for Programming & Coding in 2021](https://www.guru99.com/best-keyboards.html)

## 3. Best Mouse For Programing ##

Programmer, Gammers, and coders spend their whole day with computers. So they have comfortable things for use. A standard mouse is irritating to use for a long time. A mouse that puts your hand in an unprejudiced position is maybe the best way to reduce these problems you just have to find a vertical or trackball mouse. Here, I've listed the Best mouse for programming.

1. [7 Best Mouse For Developer / Gaming / Coding](https://cmsinstallation.blogspot.com/2021/05/7-best-mouse-for-developer-gaming-coding.html)

2. [Best MOUSE for Programming & Coding (2021 Updated List)](https://www.guru99.com/best-mouse-programming.html)

3. [The best mouse of 2021: 10 top computer mice compared](https://www.techradar.com/in/news/computing-components/peripherals/what-mouse-10-best-mice-compared-1027809)
#7) Explain pass by value & pass by reference❓
Tags: javascript, beginners, webdev, career
Published: 2021-07-27 07:01:57

🔰In JavaScript, _primitive data types_ is passed by value and _non-primitive data types_ is passed by reference.

##🚀Pass by Value:
->In pass by value, function is called by directly passing the value of the variable as an argument.
 
->Any change that you make to the argument inside the function does not effect the original value.

->Parameters passed as an argument creates it's own copy.
So, any changes inside the function will be on it's copy and not on the original value.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c5gott6w1kib3z9a7fm1.png)
Let's see how it works👇

✅Firstly, define a _passByValue_ function with an argument 'a'.

✅Declare and initialize the value of _b = 1_.

✅Then, pass the 'b' variable into the function, JavaScript copies the value of 'b' to the 'a' variable.

✅After that, the _passByValue_ function changes the 'a' variable. However, this does not impact the original value of 'b'.


##🚀Pass by Reference:
->In Pass by Reference, function is called by directly passing the reference/address of the variable as an argument.
 
->On changing the value inside the function also change the original value. 

->In JavaScript array and Object follows pass by reference property.

->In Pass by reference, parameters passed as an arguments does not create its own copy, it refers to the original value so any changes made inside function will directly affect the original value. 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s86noruejsfirlxogyou.png)

Let's see how it works👇

✅Firstly, define the _passByReference()_ function that accepts an object person. The function sets the _name_ property of the object to _Maverick_.

✅Next, declare a variable _friend_ and assign it an object whose _name_ property is set to _Ayush_.

⚠The _friend_ is a variable that references the actual object:
 `let friend = {name: "Ayush",};`

✅Then, pass the _friend_ variable into the function.

✅JavaScript copies the value of the _friend_ variable to _person_ variable. 

✅As a result, both _friend_ and _person_ variables are referencing the same object in the memory: `passByReference(friend);`

✅After that, inside the function, the _name_ property of the object is set to _Maverick_ through the _person_ variable.

✅Finally, accessing the _name_ property of the _friend_ variable returns _Maverick_. 
__________________________________________________________________
The 10 most in-demand Cloud / DevOps roles
Tags: cloudskills, devops, insights, career
Published: 2021-07-27 06:42:20

We thought it would be interesting to go deeper into the analytics part of running our DevOps job board – in the most privacy focused way for our users, of course. So here we are now starting to expose some of our aggregated internal job data in a systematic fashion through a simple REST API with a list of generalized job titles that are posted on devops-jobs.net.

The cool thing with this is that we are able to see what’s popular in terms of the roles employers are hiring for most in the Cloud, Infrastructure and DevOps space.

Our “methodology” here is quite simple: we’re primarily counting the occurence of job titles over the last 12 months, cleaned and adjusted for certain specialties that some companies like to do, e.g. inventing their own stuff that’s not being used by anyone else or adding crazy super-specific details to a vacancy title and so on. We also left out many titles with indicators regarding seniority or other requirements as we already have dedicated attributes for these. More on that probably in a future post.

So here it is, our current (as of June 2021) top list of the ten Cloud / DevOps roles with the highest demand from employers on our site:

1. DevOps Engineer
2. Site Reliability Engineer
3. Cloud Infrastructure Engineer
4. Infrastructure Engineer
5. Cloud Engineer
6. QA Automation Engineer
7. Cloud Architect
8. DevSecOps Engineer
9. Test Automation Engineer
10. Platform Engineer

If your interested in the raw JSON data you can find the endpoint here: [https://devops-jobs.net/api/list-job-titles/](https://devops-jobs.net/api/list-job-titles/)

The results there are updated every 6 hours, although it won’t really change that much anytime soon. And if it does we’ll probably write about it 😉

We also use all the job titles from that list for our brand new salaries survey to have a “standardized” selection of positions to choose from and attach salaries to. You can check out the survey – and the resulting dataset being released in the public domain – here: [https://salaries.devops-jobs.net/](https://salaries.devops-jobs.net/)

*This post was first published at [https://insights.devops-jobs.net/the-10-most-in-demand-cloud-devops-roles/](https://insights.devops-jobs.net/the-10-most-in-demand-cloud-devops-roles/)*
tmux new-window
Tags: cli, linux, tmux
Published: 2021-07-27 05:23:06

---
tags: ['cli', 'linux', 'tmux']
title: tmux new-window
published: true
canonical_url: https://waylonwalker.com/tmux-new-window/
series: tmux
---

New window as it sounds makes new windows in tmux.  Windows are kind of like tabs.  They are another screen within your sessions that you can name and make
new panes in.

Default key bindings for creating and navigating windows in tmux.

``` bash
bind-key          c new-window
bind-key          p previous-window
bind-key          n next-window
```

As always I have rebound these keys because I generally prefer a single keystroke over the prefix plus keybinding approach that tmux gives by default.

``` bash
#――windows――――――――――――――――――――――――――――――――――――――
bind -n M-c new-window -c '#{pane_current_path}'
bind -n M-p previous-window
bind -n M-n next-window
```

When I started using tmux I did almost everything in one giant session with many panes and windows.  It became a nightmare to manage and quickly get between two sets work efficiently.  This year I leaned in on sessions quite heavily.  Checkout this 👇 post to see that workflow in depth.

---

Be sure to check out the full youtube playlist and subscribe if you like it.

https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr


{% post https://dev.to/waylonwalker/how-i-navigate-tmux-in-2021-2ina %}

> Also check out this long form post for more about how I use tmux.
製作可攜版本的 Arduino IDE
Tags: arduino, portable
Published: 2021-07-27 06:30:47

大家都知道下載 Arduino IDE 軟體的時候有 zip 格式的版本可以選擇, 不過下載時沒有說明的是, 如果沒有適當設置, 這個版本仍然不是真正的可攜, 因為以 Windows 為例, 你所安裝的開發板套件或是程式庫仍會是以電腦上目前使用者的 ~\AppData\local\Arduino15 以及 ~\Documents\Arduino\libraries 為儲存位置, 跟 Arduino IDE 軟體本身是分離的。

## 建立 portable 資料夾

根據 Arduino 官網上 [How to create and use a portable version of the Arduino Software (IDE)](https://www.arduino.cc/en/Guide/PortableIDE) 的說明, 只要在解開的 Arduino IDE 資料夾中建立一個名為 portable 的資料夾, Arduino IDE 就會以此資料夾為儲存位置, 包括你的偏好檔、開發板套件、程式庫檔, 通通都會在這個資料夾中, 例如：

```
D:\ARDUINO-1.8.13\PORTABLE
├─cache
├─logs
├─packages
│  ├─arduino
│  ├─esp32
│  └─esp8266
├─sketchbook
│  └─libraries
├─staging
│  ├─libraries
│  ├─packages
│  └─tools
└─tmp
```

只要建立空的 portable 資料夾, 執行 Arduino IDE 後就會自動幫你建立其餘必要的資料夾, 不會在 ~\Documents\Arduino 或是 ~\AppData\local\Arduino15 中儲存資料了。

往後若需要再別的位置或是其他機器上安裝可攜版的 Arduino IDE, 就只要將整個 Arduino IDE 資料夾複製過去就可以了, 非常省事, 也可以在同一部機器上安裝各自獨立、不同版本或是設定的 Arduino IDE。

## 更新 Arduino IDE

利用這樣的特性, 之後如果有新版本的 Arduino IDE, 就只要下載新版的壓縮檔, 解開後, 把原本的 portable 資料夾複製過去即可。

## 不支援 Mac

目前這個設計在 Windows 上以及 Linux 都可以正確運作, 但是在 Mac 上因為系統架構不同, 所以會有問題。
The 10 most in-demand jobs in AI/ML and Big Data
Tags: career, machinelearning, ai, hiring
Published: 2021-07-27 06:23:40

We thought it would be interesting to go deeper into the analytics part of running our AI/ML/DS job board – in the most privacy focused way for our users, of course. So here we are now starting to expose some of our aggregated internal job data in a systematic fashion through a simple REST API with a list of generalized job titles that are posted on ai-jobs.net.

The cool thing with this is that we are able to see what’s popular in terms of the roles employers are hiring for most often in the AI/ML and Big Data space.

Our “methodology” here is quite simple: we’re primarily counting the occurence of job titles over the last 12 months, cleaned and adjusted for certain specialties that some companies like to do, e.g. inventing their own stuff that’s not being used by anyone else or adding crazy super-specific details to a vacancy title and so on. We also left out many titles with indicators regarding seniority or other requirements as we already have dedicated attributes for these. More on that probably in a future post.

So here it is, our current (as of June 2021) top list of the ten AI/ML/Big Data roles with the highest demand from employers on our site:

1. Data Engineer
2. Data Scientist
3. Data Analyst
4. Machine Learning Engineer
5. Big Data Engineer
6. Principal Data Scientist
7. Staff Data Engineer
8. Marketing Data Analyst
9. Data Engineering Manager
10. Lead Data Scientist

If your interested in the raw JSON data you can find the endpoint here: [https://ai-jobs.net/api/list-job-titles/
](https://ai-jobs.net/api/list-job-titles/)

The results there are updated every 6 hours, although it won’t really change that much anytime soon. And if it does we’ll maybe write about it 😉

We also use all the job titles from that list for our brand new salaries survey to have a “standardized” selection of positions to choose from and attach salaries to. You can check out the survey – and the resulting dataset being released in the public domain – here: [https://salaries.ai-jobs.net/](https://salaries.ai-jobs.net/)

*This post was originally published on June 1, 2021 under [https://insights.ai-jobs.net/the-10-most-in-demand-jobs-in-ai-ml-and-big-data/](https://insights.ai-jobs.net/the-10-most-in-demand-jobs-in-ai-ml-and-big-data/)*
HTML tags | dfn
Tags: html, tags, dfn
Published: 2021-07-27 06:02:55

It is used to **indicate the term to be defined in the context of a phrase or content**. Its closest parent will be the one that will have to contain said definition (a `<p>`, a `<dt>`/`<dd>` pair, a `<section>`...).

It has a `title` attribute that, if present, **must contain the term that is being defined** and not other text.

Within the `<dfn>` we can find 4 cases:
- Content only: `<p><dfn>HTML</dfn> is the standard markup language for creating web pages.</p>`
- The content with the `title` attribute: `<p><dfn title="HyperText Markup Language">HTML</dfn> is the standard markup language for creating web pages.</p>`
- The content within an `<abbr>`: `<p><dfn><abbr title="HyperText Markup Language">HTML</abbr></dfn> is the standard markup language for creating web pages.</p>`
- The content with an `id` attribute and then referenced: `<p><dfn id="html-def">HTML</dfn> is the standard markup language for creating web pages.</p>… …<p>Learn <a href="#html-def">HTML</a> now.</p>`

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

- Type: *inline*
- Self-closing: *No*
- Semantic value: *No*

[Definition and example](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn) | [Support](https://caniuse.com/mdn-html_elements_dfn)
15 Best Data Science Courses Datacamp You Need to Know
Tags: datascience, machinelearning, analytics, analyst
Published: 2021-07-27 05:58:08

Are you looking for **Best Data Science Courses at DataCamp?**… If yes, then this article is for you. DataCamp is an online learning platform specially dedicated to data science.

It is based on self-paced learning and has interactive courses, projects, and practice assignments in various programming languages such as **Python, R, Sheets, SQL, and Shell**.

 DataCamp is best for beginners and Intermediate Data Science learners. Because DataCamp has **344 interactive courses, 51 skill tracks, 14 career tracks, projects, and practice assignments**.

I have collected and listed 15 Best Data Science Courses Datacamp in this article. Now, without any further ado, let’s see these **15 Best Data Science Courses at Datacamp-**

**[Click to continue reading...](https://www.mltut.com/best-data-science-courses-datacamp/)**
Create simple deploy script
Tags: script, deployment, git
Published: 2021-07-27 05:53:37

How many times a day did you do this

```
git add .
git commit -m "commit msg"
git push origin branchName
```

It's my ritual every time I want to push change on remote git repository. As a developer, we always need to find a way how to make our life easier by using our main principle "Don't Repeat Yourself"

## Create a deploy script

Learn how to create a simple deploy script, to automate your code deployment when using git or any other things in command. Create a file name "deploy.sh"

Then move our commands there
```
git add .
git commit -m "commit msg"
git push origin branchName
```
Now, every time we want to push a message, in command line just type 
```
./depoy.sh
```

## Make our deploy message dynamic

With instruction before, we'll always have the same commit message. We need to accept an argument, to make it dynamic. At our deploy.sh file

```
git add .

msg="update site `date`"
if [ $# -eq 1 ]
  then msg="$1"
fi

git commit -m "$msg"

git push origin master
```

We create a $msg variable with current date as default value. But if we want to commit with specific message, now we can just do this 

```
./depoy.sh "our script works!"
```

## Can not execute deploy.sh file?

If you encounter a problem, where you can't execete this deploy.sh file, make sure you have the right permission to execute. In my case, I just normally do
```
chmod +x deploy.sh
```
Make the first step towards that project!
Published: 2021-07-27 05:01:44

What's that project idea you've had on your mind for quite some time, but haven't quite been able to start yet?

I know I've had quite a few ideas lurking in the back of my mind every now and then. 

So, here's your reminder to take your first step towards it. Jot down those ideas, set a date and time and get started! 🥂
CRUD model class
Tags: php, mezon, crud, microservices
Published: 2021-07-27 04:58:17

# CRUD model

This model will help you to create CRUD models for your entitites, and provides you a huge set of methods after a simpe setup.

## Installation

Just print in console

```
composer require mezon/crud-service-model
```

And that's all )

## First steps

Let's define a new class for your DB entity:

```php
class EntityModel extends CrudServiceModel
{
	/**
	 * Constructor
	 */
	public function __construct()
	{
		parent::__construct('*', 'entity_table_name');
	}
}
```

In this exact line of code:

```php
parent::__construct('*', 'entity_table_name');
```

We have specified that we need `'*'` (all fields) from the table with name `'entity_table_name'`.

If you need only some fields from your database, just list them in the first parameter:

```php
parent::__construct('id,field1,field2,field3', 'entity_table_name');
```

And when you have done this, you will get the following methods.

But before using these methods note that you will need to meet the requirements for some naming conventions.

Field with the primary key must be named as `id`. I shall add setting to use another name.

Some methods reqire field `creation_date` for fetching new records for example.

You may add to the table field `domain_id` for implementing multy instancing out of the box.

Now lets look at available methods:

```php
// Method fetches all new records since the $date
// For example $model->newRecordsSince($domainId, '2021-01-01');
newRecordsSince($domainId, string $date): array;
```

```php
// Method calculates count of records fetched by filter
// For example $model->recordsCount(false, ['field1 = 1', 'field2 = 2']);
recordsCount($domainId = false, array $where = ['1=1']);
```

```php
// Method returns data as is without any transformations
getSimpleRecords($domainId, int $from, int $limit, array $where, array $order = []): array;
```

```php
// Method returns records wich are transformed by method getRecordsTransformer wuch 
// you can override in your subclass
getRecords($domainId, int $from, int $limit, array $where = ['1=1'], array $order = []): array;
```

```php
// Method returns the last $count records filtered by where
lastRecords($domainId, $count, $where): array;
```

```php
// Method returns records by their ids
fetchRecordsByIds($domainId, string $ids): array;
```

```php
// Method calculates count of records grouped by fieldName and filtered by where
recordsCountByField($domainId, string $fieldName, array $where): array;
```

```php
// Method updates records with values record
updateBasicFields($domainId, array $record, array $where): array;
```

```php
// Method inserts record record
insertBasicFields(array $record, $domainId = 0): array;
```

```php
// Method deletes all records filtered by where
deleteFiltered($domainId, array $where): int;
```

# It will be great if you will contribute something to this project. Documentation, sharing the project in your social media, bug fixing, refactoring, or even **[submitting issue with question or feature request](https://github.com/alexdodonov/mezon-crud-service)**. Thanks anyway )