teleren/devto huggingface dataset:
Autosuggestions with oh-my-zsh
Tags: zsh, osx, ohmyzsh
Published: 2021-12-20 06:29:16

New Macs already include `zsh` by default, so what we only need is to run the following command:
 

#### Install oh-my-zsh

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```

The first step created us the following the `/.oh-my-zsh` directory
```bash
echo $ZSH_CUSTOM
>> /Users/<your home directory>/.oh-my-zsh/custom
```

#### Install autosuggestions plugin

```bash
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```

That command will copy the zsh-autosuggestions repo into `/Users/<your home directory>/.oh-my-zsh/custom/plugins`

Now we are going to add new plugin by opening the file `~/.zshrc` and add the `zsh-autosuggestions` plugin without commas

```
plugins=( 
    # other plugins...
    zsh-autosuggestions
)
```
Restart your terminal and now when you type a command that you used previously you will see that now it will auto suggest you using a gray text.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nlq9kjrn8q6r7nlbc9ne.png)
Enhance Patient Care with Salesforce Health cloud
Tags: salesforce, healthcarecloud, salesforcesevices, salesforcehealthcloud
Published: 2021-12-20 06:21:41

Inside the Healthcare Ecosystem, Salesforce Cloud has been showering blessings on patients, medicos along care management professionals.

As the best healthcare practices, hospitals have a primary focus towards providing care rather than institutionalizing patients with the time-slogging protocol.

(Along with the Medicos, even patients focus more on care experience and prioritize hospitals and medicos with paperless technologies.)

As soon as a patient has an urge for a doctor consultation, a medico is made available on an online consultation followed by a hospital visit along with detailed patient data via a cloud system. Furthermore, treatment can be provided within minutes of hospital visits using digital appointments followed by e-prescriptions.

Now, that's what you call patient care!

Furthermore, Salesforce Health Cloud Implementation provides multiple benefits in healthcare, and here is a list of major perks from the cloud:

1. Reduce cost in physical storage devices and use third-party cloud storage services

2. AI is dynamic support to medicos with storage and processing patient data and providing actionable intel
3. Patient Data accessibility has been a major challenge in terms of regulatory compliance but, with the cloud, medicos can easily retrieve data and share it among medicos offering personalized care and errorless diagnosis!

4. IoT is a blessing when it comes to clouds. Today, doctors can detect, diagnose, and direct treatment understanding the monitoring devices statistics such as heart rate, glucose, blood pressure, and many more

But, cloud computing in health care has initiated a burning discussion among healthcare professionals. There are possibilities of data breaches and malfunctioning of healthcare services, can also risk individuals health and track patient on the basis of medical devices and medical history can prove to be a trigger for mishap in-hospital care.

Therefore it is important that you have a trusted health cloud partner, whether it be a hospital doctor’s care unit or online medical consultation service.

The best solution is to get a value-based and professional health cloud system, such as Salesforce.

The [Salesforce Health Care Services](https://sptechusa.com/healthcare-services/) has reinvented medical systems and care experience.
AirPhysio Reviews – What is AirPhysio? | Is AirPhysio safe to take?
Published: 2021-12-20 05:55:34

As you breathe out, [AirPhysio](https://airphysio.wixsite.com/airphysio) makes positive strain in your lungs. This positive strain relaxes bodily fluid from the dividers of your aviation route, permitting you to hack out the bodily fluid normally. The outcome is that you inhale typically and appreciate more clear, simpler relaxing. On the off chance that you have breathing issues, then, at that point, it very well may be connected to bodily fluid in your aviation route.

https://airphysio.wixsite.com/airphysio
https://airphysious.jimdosite.com/
https://airphysio.godaddysites.com/
https://promosimple.com/giveaways/airphysio-reviews-what-is-airphysio-is-airphysio-safe-to-take/
https://promosimple.com/ps/18ca9/airphysio
https://sites.google.com/view/airphysious/home
https://sites.google.com/view/airphysio-us/home
https://fetchbinarydog.com/airphysio/
https://www.provenexpert.com/airphysio/
https://airphysio.footeo.com/actualite/2021/12/20/airphysio-reviews-what-is-airphysio-is-airphysio-safe-to-take.html
https://airphysioreview.clubeo.com/news/2021/12/20/airphysio-reviews-what-is-airphysio-is-airphysio-safe-to-take
https://caramellaapp.com/airphysio/bg4Spt8lV/airphysio-reviews-what-is-airphysio-or-is-airphysio-safe
https://caramel.la/airphysio/bg4Spt8lV/airphysio-reviews-what-is-airphysio-or-is-airphysio-safe
https://mymediads.com/articles/90747
https://telescope.ac/airphysio
https://en.gravatar.com/airphysioreview
https://www.beatstars.com/airphysio/about
https://linktr.ee/airphysiore
The world of DOM
Published: 2021-12-20 05:19:05

> Pre-note: everything that I write here may not be fully correct as it is for my personal learning purposes. Before finding out dev.to, I was purely using paper notes. From now on, I decided to jot down my learning notes from tutorials. As I am still in the process of studying the DOM, the content may keep changing.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u7dc75eve8v8wxqdo9us.png)
Setup to Test ES Modules with Jest 27.4.5 and Node 14.16.0 on Windows
Published: 2021-12-20 05:00:01

For a side project I'm working on, I decided to try out ECMAScript (ES) Modules, because the latest versions of Node now support them and the latest browsers do too. Sadly, I quickly discovered that my favorite testing framework, Jest, requires a bit of configuration to work with them and the support is experimental. As such, this post is mostly a reminder to my future self in case I need to do this again, but possibly others may find it useful.

I made the following changes and/or additions to package.json and jest.config.mjs:

package.json

```JSON
  "scripts": {
    "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
  },
```
jest.config.mjs

```Javascript
  testEnvironment: "jest-environment-node",
  transform: {},
```

Those were the only changes I needed to make to successfully test ES Modules with Jest 27, Node 14, and Windows 10.
CSS Inline Styles
Tags: webdev, tutorial, beginners, css
Published: 2021-12-18 16:27:29

CSS Inline Style. Cascading Style Sheet (CSS) is a style sheet language, that represents how an HTML page should be presented. It primarily styles the performance of a particular part of the markup language code. There are three methods to include CSS in any HTML code, which are, Internal, External, and Inline. While we call the externally described style sheet in our page in the External method, we represent the style within `<style >`  in the same HTML code in the Internal method. It does style attributes for styling elements. Internal CSS is held in the same HTML page, as it is used for styling the elements being used in the code.In my last post we discussed [CSS Attribute Selectors](https://dev.to/elinabey/css-attribute-selectors-422j)

##CSS Inline Style

There are two examples of Inline style single inline CSS and multiple inline CSS.
```HTML
<!---CSS Inline Style for single Elements ---->
<h1 style="color:hotpink; font-size:50px; font-style: italic;">CSS Inline Style For Single Element</h1>
<!---CSS Inline Style for Mutiple Elements ---->
<h1 style="text-decoration: underline;color: hotpink;border:2px solid #eee; font-weight: 400px;">CSS Inline Style For Multiple Elements</h1>
```
**Note:** In the above two examples, In the HTML example is separated with comments. we have utilized many assets on style attributes, such a font-weight, color, and border, etc. There are many other assets that can be looked upon. It will be a good idea to create a sample HTML page, and try as many style properties as possible, for the purpose of awareness and ease.

##Inline CSS for an Image Element.

```HTML
<img style=" border: 5px solid #eee; padding: 10px;" src="Image Source (URL)" height="300px" width="600px">
```
So, in this article, there were several parts discussed, which explain, how CSS inline style can be performed into one's HTML Markup. However, if the Markup is a large level and needs severe styling, it is advised that one must use an external style sheet. That not only helps the performance but also structures the scheme properly.

I shared this post from CSS Inline Styles (https://softcodeon.com/css/css-inline-style.htm) you can read in detail from there.

If you have any question please discuss below help to improve. Thank you.
Examples of IoT Applications in Real World
Tags: iot, examples, application, industry
Published: 2021-12-20 04:26:04

IoT stands for “Internet of things”. The Internet of things describes the network of physical objects that are embedded with IoT stands for “Internet of things”. The Internet of things describes the network of physical objects that are embedded with sensors, software, and other technologies for the purpose of connecting and exchanging data with other devices and systems over the Internet.

1. Smart Homes: IoT devices are a part of the larger concept of home automation which can include lighting, heating and air conditioning, media, and security systems.

2. Smart Lockers: Smart locker IoT devices that work with highly efficient real time communication and seamless connectivity to deliver automated item deposit and item collect locker systems.

3. Medical and Healthcare: The Internet of Medical Things (IoMT) is an example of “Smart Healthcare”. It helps in creating an advanced healthcare system that connecting available healthcare services, and medical resources along with data collection and analysis for research, and monitoring.

4. Agriculture: There are many agriculture [IoT applications](https://www.speranzainc.com) are available for collecting data on rainfall, temperature, wind speed, soil content, and other farming things. On the basis of those data and using automate farming techniques, it’s possible to improve quality and quantity, minimize risk and waste with less possible effort for maintaining crops.

[Read More](https://www.speranzainc.com/examples-of-iot-applications/)
HTML Table rowspan colspan 
Tags: html, table, rowspan, colspan
Published: 2021-12-20 03:50:44

### Cell that spans two rows
To make a cell span more than one row, use the **rowspan** attribute.

---	

### Cell that spans two columns
To make a cell span more than one column, use the **colspan** attribute.

---

```html
		<table style="width:100%">

			<tr>
				<th rowspan="2">No</th>
				<th colspan="2">Driver</th>
				<th colspan="2">Team</th>
			</tr>

			<tr>
				<th>Image</th>
				<th>Name</th>
				<th>Logo</th>
				<th>Name</th>
			</tr>

			<tr>
				<td>1</td>
				<td>img1</td>
				<td>name1</td>
				<td>logo1</td>
				<td>name1</td>    
			</tr>

			<tr>
				<td>2</td>
				<td>img2</td>
				<td>name2</td>
				<td>img2</td>
				<td>name2</td>
			</tr>

		</table>
```

---

### Embed replt

{% replit @antelove19/HTML-Table-colspan-rowspan %}
Circumvent STDIN when installing packages with apt
Tags: devops, linux, sre
Published: 2021-12-20 03:28:44

Did you know there's an entire Unix command dedicated to generating `y` over and over? Or that you can make your apt package manager be completely noninteractive when installing or updating packages?

I recently went through this process when installing some packages and man pages in an Ubuntu Docker image and decided to write up a quick blurb about it for reference.

--- 

Here is the Dockerfile I started with:

```dockerfile
FROM ubuntu:latest

WORKDIR /app

RUN apt-get update && apt-get install -y \
    openssl \
    curl \
    git \ 
    vim \
    dnsutils \
    man-db

CMD ["bash"]
```

Unfortunately, this command fails because `dnsutils` tries to aggregate some information about your timezone region. Because of this, I wasn't able to just add a `-y` and call it good. After some Googling, I came across `DEBIAN_FRONTEND=noninteractive`, which forces zero interaction while updating or installing packages with `apt`. It will accept the default answer to all questions, which can be super useful in Dockerfiles, scripts, and I'm sure a million other things. So with this in mind, I updated the Dockerfile to include this as an environment variable:

```dockerfile
FROM ubuntu:latest

WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    openssl \
    curl \
    git \ 
    vim \
    dnsutils \
    man-db

CMD ["bash"]
```

Voila! First step solved. 

---

However, I wanted one more thing in this Docker image by default, which is `man` pages. In order to get these, I need to run `unminimize` to expand all of the pages. Unfortunately, neither `unminimize -y` or `unminimize --yes` worked by default. 

After some more Googling, I came across the `yes` Unix binary, which is incredibly straightforward: it just endlessly types `y`. For instance, you can just run `yes` in your terminal and watch it spam `y` endlessly. 

In this case, I added `RUN yes | unminimize` to accept all of the defaults and run through the package installation, which is piping in `y` over and over to the command. And just like that, I have a working Docker image that can be spun up with some networking, man pages, and other stuff working by default! 

Here is the final Dockerfile:

```dockerfile
FROM ubuntu:latest

WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    openssl \
    curl \
    git \ 
    vim \
    dnsutils \
    man-db

RUN yes | unminimize

CMD ["bash"]
```

And it could be run with something like this: `docker build -t shannon:v0; docker run -it shannon:v0`
How To Delete File From Public / Storage Folder In Laravel
Tags: laravel, php, file, delete
Published: 2021-12-20 03:02:19

In this example we will see how to delete file from public / storage folder in laravel 6/7/8. 

So, here I will explain how to delete image from public / storage folder using laravel file system and php function file_exists() and unlink().

Many time we required to remove file from folder in laravel 6, laravel 7 and laravel 8 application. laravel store file in public folder and storage folder, so most of the cases you simply need to delete file from public folder or storage folder. In laravel 6/7/8 provide Storage and File facads for remove file / image from public / storage folder.

Images or file uploads are comman functionalites in web developing, many time we required to delete images or file from our database but those files are still saved in our laravel storage function, if you are not take any action then it will be occupies more space. 

So, we need to remove it manually or we can remove via laravel function or core php function.

> Using Storage System

First we are delete image using laravel Storage function in storage folder. 

```
public function removeImage()
{  
  if(\Storage::exists('upload/storage_img.png')){
    \Storage::delete('upload/storage_img.png');
  }else{
    dd('File not found.');
  }
}
```
 
---

> **_[Read Also : How To Check Password Strength Using JQuery](https://techsolutionstuff.com/post/how-to-check-password-strength-using-jquery)_**

---
 
> Using File System

Now, we are delete image using laravel File function from public folder.

```
public function removeImage()
{  
  if(\File::exists(public_path('upload/public_img.png'))){
    \File::delete(public_path('upload/public_img.png'));
  }else{
    dd('File not found');
  }
}
```
 
> Using PHP

In PHP fisrt we check file is exist or not then unlink file path using unlink() PHP function.

```
public function removeImage()
{  
    if(file_exists(public_path('upload/img.png'))){
      unlink(public_path('upload/img.png'));
    }else{
      dd('File not found');
    }
}
```

You might also like :

- **_[Read Also : How To Generate Barcode In Laravel](https://techsolutionstuff.com/post/how-to-generate-barcode-in-laravel)_**

- **_[Read Also : How To Create Dynamic Pie Chart In Laravel](https://techsolutionstuff.com/post/how-to-create-dynamic-pie-chart-in-laravel)_**

- **_[Read Also : How To Validate Upload File Type Using Javascript](https://techsolutionstuff.com/post/how-to-validate-upload-file-type-using-javascript)_**
Project 4: Soundboard (and My Experience with User Authentication
Tags: react, ruby, rails, javascript
Published: 2021-12-20 03:00:50

My journey with Flatiron school is almost at an end. The other week I was reminiscing about how we had our final zoom class together, and barely noticed it. The journey has been long and hard, but very rewarding, but more on that in another blog. 

In our final zoom classes, we discussed user authentication and passwords via Ruby on Rails. Surprisingly, our project said that password protection integration was optional. What's interesting about this is that password protection is SO simple!

Imagine your user model. It "has_many" whatever it has. Yeah, that's cool, pretty simple, no big deal, but that code looks so lonely. What if this simple bit of model code had a friend?

`class User < ApplicationRecord
    has_secure_password
    has_many :whatever
end`

BAM! We're good to go. 

Sure, you have to put in a little bit of front-end work to put in passwords for your sign-up and log-in features, but what is a little less work for a LOT more security? My cybersecurity friends told me many horror stories about their work, hacking into different companies' systems. The idea of not having a password, even on the simplest of applications, makes me think of them, and how easy it is to have information taken from someone. Why not reinforce your software and applications with a simple password?

One of the last things needed to be added to an app is a super simple parameter for your user controller - `:password_confirmation`. This parameter is already taken care of for you with that one little line in your model.

Yup. You has_secure_password now.

Time for the final phase of school: the Capstone Project!
Lighting: Retinal ganglion hardware (Concept)
Published: 2021-12-20 02:43:28

Tiny device. Position it somewhere allowing it to receive natural light.

It will take a measurement every few minutes of the ambient light intensity. Over time, it builds up a knowledge of the time of day and time of year. This device modulates a home lighting system optimized for human experience.

It charges itself from the light it receives, making it immune to power source failures.

The outcome is low overhead lighting at nighttime, leading to improved circadian function and a consequent reduction in depression, diabetes, lipedema, and other endocrine-originating disorders.

--

Published at https://minimal.app/Jva7LXM1
Moving to the Advanced Class
Tags: career
Published: 2021-12-20 02:27:25

Once you have mastered the basics, it becomes time to move to a more advanced class.  This is not just the next level of learning but when you want to prove and show to your colleagues that you have "arrived".  The best way to do this is through certifications.

![Graduation Cap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lset5150rwl330fnkb69.jpg)
Admittedly I was one of the worst about certifications early in my career, other than a college degree there were not that many places that offered certificates.  At least ones with a reputation that you could depend on or be assured that they would be accepted by a wide range of companies and interviewers.  I had encountered more than my share of people who listed certificates that seemed sketchy, or came from places that offered a cost for a class, and at the end "helped" you pass to get the certificate.

Over time my thinking has changed on that and I have become a proponent of letting my Team go out and get those certificates.  With O'Reilly becoming more well known, and having structured class I did a couple of them.  AWS, Python, and other places do well with having well structured classes that not only allow one to learn a lot, but really push you to pass the tests.  Making the exams not only challenging, but to ensure that you have the right critical thinking skills to apply the knowledge from the classes to make it useful.

![Career Path](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjv1xt1r66zac55btf5x.png)
To be able to choose the right classes and certificates to do that can be useful, and also illuminate the best parts of ones career takes some thought.  Going out and getting an AWS Developer Certificate is a great thing!  Never using it in your work is not as good.  Make the classes and choices meaningful, get the use out of the class and certificate just earned to not only highlight it on a resume but make use of it and get the money's worth out of it.

Advancing ones career is not just about checking off boxes, but to be able to put those boxes to use for you.  Make the knowledge meaningful and useful, and put it into practice every day.