teleren/devto huggingface dataset:
Display Hostname and IP address using Python
Tags: python, programming
Published: 2021-05-26 08:49:36

In this article, We are going to see how to Display the hostname and the IP address with the help of the language Python.

As we all know about IP, IP (Internet Protocol) is a fundamental networking concept that provides address assignation capability in a network. 

How we are going to do it?.  so we will be using the socket module of python

Python provides gethostname(),gethostbyname() two function.
gethostname() retrives the standard host name for the local machine. gethostbyname() retrives host information corresponding to a host name from a host database.


Code:


```
import socket
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
print(f"Hostname: {hostname}")
print(f"IP Address: {ip_address}")
``` 

let's discuss the above 5 lines of code..

- In our first line, we have imported our socket module.
- in second-line we are getting the hostname by socket.gethostname() method.
- The third line we retrives host information corresponding to a hostname from a host database.
- and then the last two lines are for printing them.

So this is a short and sweet article for all of you!




I hope you liked it!. Let's catch up in the next articles. 

original published on : https://codingnuts.tech/
> If you liked it, Please **Support Me**

<a href="https://www.buymeacoffee.com/nishantgour"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=nishantgour&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff"></a>
Top Ten Reasons Why Workflow is Important for Your Workplace
Tags: productivity
Published: 2021-05-26 08:46:41

In whatever way we define a workflow, it remains useful for accomplishing the projects on time by managing every task. Whether you own a startup, a small or mid-sized business & a large enterprise, you need a workflow for processing a set of data. Simply put, the workflow management tool paves the way for a project to reach its refined stage from the raw stage.
Talking about the importance of a workflow in modern businesses, it is fair to mention that without a well-designed workflow, chances are high that your project hits a roadblock in between and the deadline can be missed. Therefore, it is necessary to use workflow tools to make a proper workflow based on the vision statement & project objectives.

Workflow connects the tasks or work involved as a part of a bigger picture. Though workflow and processes are mistakenly considered the same, the basic difference is workflow is mostly a series of repeated activities & whereas a process includes more information with a bigger scope. Similarly, we cannot consider the checklist & workflow as the same in an organization.

A checklist is just a list of the basic requirements for a particular task, & the workflow is a detailed outline of how we can complete the specific task. Let’s dig deep into the importance of a well-defined workflow and the role of task management software in implementing it into your existing business system.

<h2>Top Ten Benefits of Well-designed Workflow in Today’s Businesses</h2>

<h3>1. Makes Everything Systematic</h3>

A well-defined, comprehensive workflow includes all necessary aspects for accomplishing the project. Even startups and small businesses can get a clear scope of work with a workflow. Also, the external vendor can get a clear idea of the expectation and scope of prioritized work with the help of a workflow.

<b>Original Source: <a href="https://www.taskopad.com/blog/business-need-workflow/">Workflow Management Tool</a> </b>
Production of cakes in games cookie clicker
Tags: clicker
Published: 2021-05-26 08:42:58

Share to all of you interesting [cookie clicker](https://cookieclicker2.io) making game. In fact, this is a leisurely game, where your job is to click on the largest cake to produce many other small cakes. The goal in this game is to produce large quantities of cakes that can be exchanged for items to improve the shop in a better way. This is a fun game, be patient because there are many surprises behind. This will be a great share for those of you who are fans of online games.
Start the process of creating cookies with Cookie Clicker and move from a tiny manufacturer to a cookie master.


The player earns a cookie for every click on a big cookie on the screen. You may buy upgrading things like cursors, grandmas, farms and mines, manufacturing plants, banks, etc. if you have enough cookies and you do not have to push to create cookies automatically [io games list](https://iogames.onl).
Berlangganan WiFi Rumahan
Published: 2021-05-26 08:42:38

Bagi Anda yang ingin mencari provider internet dengan jaringan stabil dan cepat serta harga terjangkau, Anda bisa berlangganan di IndiHome.

Kecepatan paket internet yang ditawarkan oleh IndiHome beragam, mulai dari 20 Mbps hingga 100 Mbps.

Jika saat ini Anda berdomisili wilayah Medan, Anda dapat mendaftar <a href="https://internetwifimedan.com"> pasang WiFi IndiHome Medan</a> melalui website internetwifimedan.com dengan proses cepat dan mudah, karena Anda berkomunikasi dengan Sales IndiHome.

Anda juga bisa berkonsultasi paket internet yang ingin Anda pilih serta bertanya informasi lebih lanjut terkait promo dan cara daftarnya.
Cron Job Tutorials - How to set up cron job for BoxBilling?
Published: 2021-05-26 08:37:17


I installed BoxBilling on my server, and I want to set up a cron job to trigger BoxBilling's cron job script. What should I do to set up the cron job?

https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-boxbilling

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vphmrjdjmiebgy7um6bk.png)
Enhance your software development process with DevOps
Tags: devops, mobile
Published: 2021-05-26 08:32:52


**DevOps** is gaining popularity for its ability to focus on managing, tracking and automated software releases across the entire software lifecycle. It curtails the lengthy development life cycles and enhances the deployment frequency. DevOps also empowers businesses to build, test and deploy apps either in the cloud environment or on-premises, fostering an environment that creates faster time-to-market. These are just a couple of [benefits of DevOps] (https://go.softwebsolutions.com/resources/software-development-with-devops.html).

This [whitepaper](https://go.softwebsolutions.com/resources/software-development-with-devops.html) sheds a light on the benefits of DevOps that can help you quicken the software development process by minimizing errors and increasing visibility. It will give you an insight into various underlying concepts and facets of DevOps This document also explains the importance of CI/CD development along with the tools that you can leverage.
The best time to ask for a Raise
Tags: career, job, productivity
Published: 2021-05-26 08:30:28

It had been a grueling eight months of coding into the nights, stressful deadlines, continuous spec changes, bad planning and estimates and bug fixing that was almost impossible to replicate reliably... You know the drill.

Then the celebrations - Champaign and a company wide barbeque.

It felt good. The project, despite the delays and hiccups will bring in hundreds of thousands for the company, and the team can finally relax.

"Now is my chance" I thought, "to get that raise I had been delaying asking for".

![Capture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x6pdy4s5wyywsfkyxs2e.JPG)

All to be disappointed by a meagre 5% increase. I was shattered.

Truth be told, this didn't happen to me exactly like this, but close.

*In case you're interested...*

*If you are looking for guidance in career development, I help IT developers create their dream jobs through self discovery, career planning and how to make the best out of your job. Contact me if you would like to discuss further.*

Lets dive in.

# What's In It For Me?

Companies don't pay after the fact. They have one degree of loyalty - and that's to its shareholders.

![Capture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rp71am945w2uzh33xdst.JPG)

When they hire, they spend vast amounts of money, hundreds of thousands... Why? In order to solve a problem.

Once the problem is solved? You have lost your leverage.

![Capture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kojaiwr7nh2tz4hhkxd0.JPG)

# Survival Of The Fittest

Whether you have been working 10 years or 10 months, when the company is downsizing, you both get one months notice and one month's pay.

So when should you ask for a raise?

**When the project is about to start.**

This is when the company has the most pain, and will pay for that pain to go away. Take advantage of the right time.

Let me know if you have had similar experiences before?

___

*In case you're interested...*

*If you are looking for guidance in career development, I help IT developers create their dream jobs through self discovery, career planning and how to make the best out of your job. Contact me if you would like to discuss further.*
Useful Command line commands
Published: 2021-05-26 08:22:05

**pwd**  show directory

**ls**  show all files in directory

**ls -all**  info about files

**ls -a**  shows hidden files

**clear**  clears screen

**cd**  change directory / redirects to home

**cd ..**  go backwards

**cd -**  goes to prev directory

**mkdir new-folder**  make a directory 

**touch new-file.txt**  make a new file

**cp new-file.txt new/folder/new-file-copy.txt**  make a copy

**mv new-file-copy.txt ../new-file-copy.txt**  moves a file

**mv file.txt file-2.txt**  rename a file

**up/down arrow keys**toggle prev next commands

**rm new-file-copy.txt**  removes a FILE

**rm -r new-folder**  deletes all files and folder

**cat file-name.txt**  view whats in a file/s

**cat file1.txt file2.txt > file3.txt**  concatenates two files

**>**  pipes content into a file or over rides

**echo Hi**  prints HI

**echo Hi >> file3.txt**  HI gets added to end of the file content

**man**  provides documentation eg man ls

**nano**  manage file content / file editor

**ctrl + c**  exits process
I made my first app using React.
Tags: react, firstpost, javascript, codenewbie
Published: 2021-05-26 08:20:18

The mindset I had when creating this app was whether or not I was able to use it. I constantly have a problem when it comes to my fridge: too many ingredients not being used. Since quarantine has introduced many new activities to the average person, I thought it would also be something others could use as well. 

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

The app, Clear Your Fridge, allows one to enter an ingredient into the search bar and it will return 10 recipes using that ingredient. When an ingredient is entered, each result will show an image of the recipe, other ingredients needed for the recipe as well as a link to the full recipe online. 

The most challenging problem I had when creating this app was not creating a infinite fetch request from the API. This would have limited me from fetching from the API and I would not be able to test my app. I learned how that could become a problem and also was able to understand the error for future apps I create. I would say that I am pretty proud of the code that I wrote. Clean code was the goal of this app. 

The app uses a third party API: Edamam. Unfortunately, this API is limited to only searching for recipes one ingredient at a time. I struggle with some CSS styling and want to improve on that aspect of my app. I want to include a video for each recipe or even search for recipes using multiple ingredients. I hope that I can get that working in the future.

As far as using React, there are a lot of aspects and concepts that I want to familiarize myself with. This was a good introduction to test how my knowledge. I plan to improve on this app and am welcome to critiques, comments, and advice. May this app be of use to anyone who comes by it.
Top 20 Tips that will change your coding skills forever
Tags: productivity, programming, beginners
Published: 2021-05-26 08:04:44

In this small article, I am going to talk about my top 20 tips that can change your coding forever. This article is a summary of all the points, *Enjoy*-

1.Break big pieces of code into small functions, which make it easy for you to improve your code quality.

2.Do Not Overthink.

3.Don't take stress of any problem that you were unable to fix.

4.Make sure to see other people's code and let others see your code.

5.If you can' solve a problem, just copy-paste with google, its the best way to solve it.

6.Read documentation of languages.

7.Take rest regularly, it helps your brain to focus.

8.Use integration tools and automate as much as you can.

9.Practice as much as you can, practice makes a man perfect.

10.Don't shy for asking help.

11.Be focused on what you do.

12.Never choose an inefficient shortcut way to save a few minutes.

13.Users are not technical people. Think about it when you develop your UI/Design.

14.Log all critical parts rather than to debug it.

15.Learn as much as you can, Don’t stop learning.

16.Be Consistent.

17.Take time to choose you IDE, try to find the best one for you.

18.Try writing readable code, as you are the only one who will fix it in future.

19.Don't Remember the code, just learn the logic and you are good to go.

20.patience and love what you do.

**END**

*Finally this big topic is over now, Now I would like to talk about my Newsletter -

I have started a newsletter in which you will get Email twice a week directly from me. I will send you latest tech, coding & Other useful information. I will also be spending a one riddle each time and the first to complete the riddle will get a small gift from me*


[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ys8k2zvc8jqdyk51bax0.png)](https://linenewsletter.substack.com/subscribe?utm_source=menu&simple=true&next=https%3A%2F%2Flinenewsletter.substack.com%2Fp%2Fcoming-soon)
5 Things You Need to Know Before Switching to Linux
Tags: linux
Published: 2021-05-26 08:01:55

[Linux](https://en.wikipedia.org/wiki/Linux) operating systems are powerful and can be used all around your home and office. Whether you switch to Linux full-time or use it alongside Windows and macOS, there are some things you should know.

**1. Linux comes in distributions** :grin:

Linux and related software come in distribution. A Linux distribution is an operating system, while Linux is the code that makes the operating system work (the kernel).

These distributions have a different user experience and target. Some distributions are very [beginner](https://bsdnerds.org/best-linux-for-beginner/) orientated while others are oriented towards the power user. There are many different [Linux distributions](https://distrowatch.com/) 

Some of the more popular Linux distributions are Ubuntu, Mint, Fedora and Suse. Each Linux distribution has a different target audience, such as Kali which is very security orientated.

**2. Try Linux without installing**

These days a Linux distribution will often detect your drivers automatically. There are live usb distros that let you run Linux without installing.

You download a Linux live image (.iso) and put it on a USB drive. Then you restart the computer and boot from the USB drive. Sometimes it's necessary to change to "boot from USB" in the computers BIOS.

You can also order preinstalled live USB disks from the internet. Then you just plug it into your computer.

![live usb](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvc6dmx9gmouhxkjc0gt.png)

**3. Drivers: Drivers Are Easy to Install** :computer:

The biggest reason people avoid Linux is because they're worried about drivers. For anyone who's ever opened up a computer, the process of installing some drivers can be intimidating, but Linux makes it easy. In fact, most of the time it's not even needed to install drivers.

This has changed a lot in the last 15 years. While 15 years ago it was quite a hassle, these days it usually works out of the box. 

**4. Linux command line can help you.**

You can add new software, delete old software, manage your file system, login to other computers (ssh) and a lot more.

The default command line in Linux is called the Bash shell and this is the same in all Linux distributions and even similar on Mac OS X.

![linux bash](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/urq2cscud1zl0tx793ls.png)

There are many different Linux commands. If you want to learn them quickly, you can use [these exercises](https://www.practicelinux.com/).

**5. Linux is free**

There is no free lunch in life, but there is a free operating system, and it’s called Linux.

Linux allows you to get things done without having to pay to use products from companies like Microsoft, Apple, Adobe, and others.
Programming by Voice for Visual Studio Code
Tags: opensource, productivity, programming
Published: 2021-05-26 07:45:10

Hi guys! I've just released my new extension for Visual Studio Code: **Voice Assistant**. It allows you to put code snippets by voice into your code. You can prepare different snippets per each project. Also it supports multiple VSC windows. You may use it for any programing language!

![Voice Assistant](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bdiv4x5tbsjl3651y7je.gif)

([check this example with voice 🔉](https://twitter.com/b4rtaz/status/1396126210279759872))

### 🚀 How to Run?


1. **Install this extension** from [the marketplace](https://marketplace.visualstudio.com/items?itemName=b4rtaz.voice-assistant).
2. **Install & run a server**. The server is necessary, because it does all speech recognition job. Currently we support only Windows.
   💾 [Download server for Windows](https://github.com/b4rtaz/voice-assistant-net-server/releases/download/v0.1.0/VoiceAssistant.Server.0.1.0.zip) (it requires [.NET5](https://dotnet.microsoft.com/download/dotnet/5.0))
3. **Add `voice-assistant.json` file** to root directory of your project and click "Reload definition". You may use [this example file](media/voice-assistant.json) or click "Add example voice-assistant.json" button.
4. That's it! 🎤

Give me your feedback please. ✌
business analytics training institute in gurgaon
Tags: business
Published: 2021-05-26 07:15:23

Business/Data Analytics training is the process of analysis of data through quantitative or qualitative statistics and fetch meaningful information from that data. It is one of the most booming field in terms of profession and career growth and widely used in the IT industry.
There are thousands of courses available on Business/Data Analyst training in gurgaon offered by different universities, but the confusion is which one will be the best for me and where to learn it from. Let me share my thoughts on this and hopefully this helps you out.
What do you learn?
Course 1:
Data Analytics and Visualization with Python training in gurgaon
Machine Learning with Python course in gurgan
Course 2:
Excel, VBA
Database knowledge – SQL
Data Visualization using PowerBI/ Tableau
Most of us learn a new field to upgrade ourselves and get a secured and well paid job. Course-1 will be mainly goof for IT professionals with prior coding experience or having a strong logical reasoning ability. Course-2 can be taken by any IT/Non-IT professional working in sales, marketing, support kind of jobs to upgrade themselves to some booming field in IT.
Why join Gyansetu?
Instructor-Led Training | Free Course Repeat | Placement Assistance | Job-Focused Projects | Interview
Preparation Sessions
Gyansetu has a good setup in terms of faculty which have good industry expertise (from companies like Microsoft, Barclays, SunLife, Amazon, etc) and course content that is being offered here. They prepare students with industry-level projects so that they get a good exposure in the field. 
Gyansetu also has a dedicated placement team which helps in getting a good job out there in the field.
Contact: - 9999201478/ 8130799520
Website- www.gyansetu.in
Keyword:- business analytics training institute in gurgaon,business analyst training in gurgaon,business analyst courses in gurgaon.
Website Security Week!
Tags: webdev, javascript, beginners
Published: 2021-05-25 17:56:06






## Contents

1.  [Intro](#intro)
2.  [HTTPS](#https)
3.  [Security Headers](#securityheaders)
4.  [Summary](#summary)

## Intro <a name="intro"></a>

I've been a bit quiet on the blog front recently so thought I would kick back off with something thats very important to me.
Website Security Practices. I'm going to cover off various topics related to it this week.

*Why should you care?*
Any web developer should care, the safety of your website is the safety of your business and your customers information. It cannot get more critical than this.
We've seen over the years more breaches of businesses via their websites. It happened to [British Airways only a few years ago](https://www.bbc.co.uk/news/technology-45446529), it resulted in names, emails and credit card information lost.

## HTTPS <a name="https"></a>

HTTPS (Hypertext Transfer Protocol Secure) is an extension of HTTP which allows for secure communication using SSL (Secure Sockets Layer) or TLS (Transport Layer Security).

Please, please, please serve *all* your content over HTTPS. It's more secure all around.

All providers now offer HTTPS for your website, and if you need an alternative you can get *free* certificates from the amazing [Let's Encrypt](https://letsencrypt.org/), there are no excuses not to use HTTPS now.

Also make sure you turn on `redirect-to-https` for all your services to ensure that HTTPS is being used by everyone all round.

Furthermore, ensure your site isn't serving mixed content of both HTTP and HTTPS which can occur from third party dependencies for example, but this breaks the point of using HTTPS so ensure its not occurring on your site.

I'll wait while you check.
![I'll wait](https://media.giphy.com/media/brHaCdJqCXijm/giphy.gif)

## Security Headers <a name="securityheaders"></a>

Next up is security headers, there is an awful lot to cover here so I'll be doing more blogs as part of this week.

But first here are a few tools for you to check you site now!

### securityheaders.com

This is a great tool to quickly scan your security headers on your website and get a straightforward score. Make sure you tick the 'Hide Results' box so your website doesn't appear on the home page.

[Try your site now](https://securityheaders.com)

I'd advise aiming for at least an A grade!

### Mozilla Observatory

Another great tool that checks not only the security headers but also several other aspects of security of your website.
Again make sure you hide the results from the public results.

[Check it out](https://observatory.mozilla.org/)

## Summary <a name="summary"></a>

In summary, security of your site and services is a critical issue and not an afterthought.
It's easier than ever to serve everything over HTTPS and even easier to check the basics of security on your site. 

Happy Building!
I want to design a hardware based password manager(PM) that uses usb ports for communication with device.
Tags: security
Published: 2021-05-26 07:00:26

hello guys! I really need help being a final year student I want to design a hardware based password manager(PM) that uses usb ports for communication with device. I have been searching things since last 2 months like the basic components and the integration of PM with the browser.
can you plz suggest me something like from where should I start?