5(2)

IoT and Relay: Hardware Components Part-2

In this blog, you will learn how hardware’s like relay and bluetooth are used for IoT using Arduino. Let us tell you about the relay module in detail.

IoT and Relay: Hardware Components

you must read our previous blog- Internet of Things using Arduino Part-1 (Introduction)

A 5 volt 10 ampere 2 channel relay interface board. The main functions of relays are to control various appliances and other equipment with large current.

Relays can be controlled directly with 3.5 volt or 5 volt logic signals from a microcontroller.

It has a 1 * 4 pin header for connecting power 5 volt and 0 volt for controlling the relays.

Pin configuration of relay

Let us understand the pin configuration.

GND stands for the connection of 0 volt to this pin IN1 which controls relay one active low relay will turn ON when this input goes below about 2.0 volt. IN2 controls relay to active low. Relay will return on when this input goes below 2 0 volt.

And the last one, VCC which is used to connect 5 volt to this pin.

And it used to power the auto couplers. There is a second 1*3 pin header for supplying the relay side on the board with 5 volt.

A jumper is present on this header selecting the 5 volt signal from 1*4 pin header to power the relays, at delivery.

Advanced configuration of relay

Let us understand the advanced configuration.

The pins are 1*3 pin header and the VCC power to the system.

This is the 5 volt vcc supply on 1*4 pin connect.

The power supply is JD-VCC relay.

It requires a 5 volt for the relays. At delivery, a jumper is present on this and adjacent VCC pin.

The default is 5 volt relay.

JD-VCC and VCC can be sorted. GND it is connected to zero volt pin of 1*4 pin header.

If opto isolation is required an isolated 5 volt supply should be used. For normal operation, a jumper between pins 1 and 2 selects a 5 volt signal from 1*4 pin header.

There is no opto isolation, this means both the input side and relay side use the same 5 volt apply.

Features of relay for IoT

Now let us understand the feature of relay module

  • high current relay
  • AC 240 volt
  • 10 ampere and
  • DC 30 volt 10 A
  • and an indication LED for relay output status.

It works with logic level signal from 3.3V to 5V devices.

It is the standard interface that can be controlled directly by the microcontroller.

Parts of relay and IoT

Here it comes the main part of relay. What is NC-COM and NO-IN relay?

COM is a common connection.

It is the central terminal. It is usually hot as power to the load is connected at this terminal.

NO is a normally open connection.

It acts like a switch.

There will be no contact between COM and NO, as it is open. When we trigger the relay module it connects to COM by the electromagnet inside the relay and supply to the load is provided with powers off the light and fan. Thus, until we trigger the state to low in relay the circuit is closed.

NC is a normally closed connection.

It is always in contact with COM. Even when really is not powered. When we trigger the relay it opens the circuit so that connection is lost.

NC behaves just opposite to NO. We are going to use a NO, normally open connection but here in this type of relay high state. In accordance of the relay low state in port turns on the relay. Now let us know about VCC. The VCC is a system power cathode. The GND is also a system power cathode. IN-1 and IN-2 is a relay control port.

This is the detailed description of all the hardware components. You can use them for home automation by learning how to code on them. And a simple way of introducing IoT at your home by relay.

Happy Reading!

6(2)

Internet of Things using Arduino Part-1 (Introduction)

Learn how to implement the communication between smartphones and also to control various home appliances wirelessly. This can be done effectively by Internet of Things using Arduino.

Internet of Things using Arduino

We are dealing with the Bluetooth model in which we need to connect it to the internet. So, we can access the home appliances device remotely.

Now let us tell you about the project we will demonstrate how to control the light and fan with our Arduino using relay and Bluetooth module.

In this blog, we will attempt to show you how to connect an Arduino to an android phone via Bluetooth and then use the voice command to control high voltage devices using relays.

It is a really interesting project and also very dangerous as we are going to deal with high voltage i.e. 220volts.

Please be careful when you are dealing with current.

We will answer a few basic question about relay module which hits you when you are a novice.

If you have ever had a project that required an interface with a high powered device that requires high current level and DC or AC voltage you have probably already discovered the attempting to control those devices directly with your Arduino, Raspberry Pi or other micro-controller can be a real challenge.

Above all, this board is designed to interface easily without consuming much current on your IO pin with your 5 volt IO interface.

Why do we need to use relay for controlling light and fan.

AC is alternating current, 220 volt which powers the light and fan. However, Arduino cannot control high volt an ampere. A relay can do this job which is a soul design for it. Hence, we are using relay to control to control high powered devices.

Introduction about Internet of Things

Now let us discuss about internet of things.

If you listen to big business and big technology then the next big thing will be the Internet of Things.

What’s that, the clue is the name.

It’s about connecting objects to the Internet.

In addition, one of these big businesses say there will be 50 billion objects online by 2020.

Though they have also said there will be trillion and of course they have a vested interest in connecting them but whatever the numbers a lot of objects are going to get connected.

It is a world of smart cities and smart everything. Also it is full of jargon and acronyms like RFID NFC and QR codes.

It is a world of sensors embedded in bridges so they can report when they need maintaining. A world of sensors in roads so that they can report on the weather or accidents.

You can read about- Django: A Beginners Guide to Learn

Hackers

The group of people thinking about the internet of things enthusiastic and inventors who are building their own Internet connected things are being connected with the intelligence to the world in their own ways.

Moreover, these people are sometimes called makers of hardware hackers.

So, they are not the kind of hackers who break into people’s phones.

They are the kind of hackers that like taking things apart so they can understand them repair them and improve them.

All sorts of things not just computers anything technological, It’s not a new phenomenon of course but it is how some new energy and coherence Recently you do things like Make magazine and events like the Makers Faire.

And because of the invention of a little device called the Arduino. the Arduino is a little cheapest device that allows you to easily connect some electronic thing You have made to your computer and to the Internet and it brings all sorts of madcap invention to the internet of things. it does for making connected hardware What blogging did for publishing makes it easy and liberates ideas.

Hardware hackers are the kind of people who strap ordinary cameras to weather balloons to photograph space give them things like the Arduino.

I always think the big difference between the makers and the corporate Internet of Things is that the IoT people are trying to make the world more efficient and controlled and the makers are trying to make it more personal And Magic.

17(3)

Entrepreneur: Things to Know For Successful Business

How to Properly Start Your First Entrepreneur Business?

Entrepreneur: Things to Know For Successful Business

Let’s say you decide of being an entrepreneur.

You decide after careful evaluations that now is the time to launch your idea as an official business.

Your entrepreneur mindset quickly races with the

  • prospect of hiring,
  • meeting with venture capitalists,
  • making critical business decisions,
  • and more.

To get started, you should know the difference between a Sole Proprietorship, Limited Liability Company, and an S Corporation for your new venture.

Thriving entrepreneurs and successful businesses all need to choose the right structure for their company to flourish properly.

Sole Proprietorship

A Sole Proprietorship is when someone owns and runs the business as themselves.

Anyone can be a sole proprietor if they sell goods or services to people directly.

An example of a sole proprietor is someone who offers freelance graphic design to people.

He is one without having an office, location, or any registered trademark.

The one con of being a Sole Proprietor is that you as the owner have no protection if any legal issues arise from your business practice.

LLC (Limited Liability Company)

An LLC is a business structure that gives you financial protection from legal trouble that may arise from your services.

There are many pros of being an LLC including

  • flow-through income taxation,
  • less paperwork compared to a corporation,
  • and security with your assets.

One difference between an LLC and a Sole Proprietorship is there may be high membership fees and renewals depending on where you live.

S Corporation

An S Corporation is a business that is federally taxed and can give out stock to its employees.

The owners of an S Corporation company are considered the shareholders.

They have liability protection if something wrong happens.

That essentially means that if the business goes under or gets sued.

Then you as the shareholder won’t have your private bank account touched.

This security is very similar to an LLC, but there are differences between the two.

An S Corp protects your assets, firstly, allows easy to transfer ownership.

Secondly, it gives your business more credibility for angel investors to fund.

Some of the disadvantages include

  • formation,
  • stock restrictions,
  • and tax obligations that are more closely watched by the IRS.

Being an S Corporation tends to be easier to secure venture capital from outside investors from places like Silicon Valley.

The Pitfalls of Entrepreneurship

According to Inc.com, we can expect that 96 percent of businesses fail within ten years.

If you look at Forbes, they claim a similar percentage by saying that eight out of every ten business fail.

Entreprenur.com also stresses that brands that don’t make their offerings personal see a downfall in today’s market.

The excitement of self-employment without adequately preparing for this adventure ultimately leads to a high failure rate.

There are many reasons why businesses fail, but there are a few common reasons that bring down most companies.

  • Not understanding the marketing
  • business plan problems
  • little to no financing
  • inadequate resources
  • poor location,
  • and expanding too quickly

are all common reasons why something does not work out.

Other reasons why a business may fail include competition, the economy, federal and or state rules, social change, and more.

Ways to Thrive as an Entrepreneur

Successful entrepreneur need to have the skills and determination to see their dream work.

Having the necessary resources at your disposal will keep your business venture alive.

Whether your business is in the startup phase, or in the maturity years, you have to read the market regularly.

Perhaps you should add new products if the market evolves outside your core offering.

Also maybe new ideas are needed to expand your services.

Making money while growing and developing your services is key to staying in business.

Even if your business is an e-commerce website, or a traditional brick, you have to continue to evaluate the market for any external threat.

7(2)

Django: A Beginners Guide to Learn Part-2

You must follow first- Django: A Beginners Guide to Learn Part-1

Django: A Beginners Guide to Learn Part-2

Setting up an App by Django a beginners guide

All right the next step is to now create or project you’re probably wondering what was this directory for.

Why I thought we’ve created the project.

Well no you have a directory first project right inside of that.

You’re going to have a main web site you can call it my site.

You can go and test project anything you want.

And then after this Web site you can create the pools application.

I know it’s a bit confusing but bear with me.

What do you want to do.

Is your terminal right now.

Go ahead and type this command.

I want you to type ‘Django-admin start project my site’.

And all this does is it creates a new directory known as my site and then also create some auto generated Django code that we have to have so quickly go over what each of these .py files are probably the most important one right now is going to be manage .py files and all managed up .py files allows us to talk to Django through the terminal.

So if you have to run an application if you have to access the Django shell if you have to make or migrations all of that we would do through the terminal by managed up .py, you want done double score in it up .py.

That basically is an empty file that tells Python that the folders the package settings up .py pulls the settings for our website.

So any apps that we have to add anything like that that will be in the settings PY file you aroused PY is pretty key any way around.

In our Web site will go through here through these url patterns will access those url and Websites.

So this is our major Website.

Inside the website

Now inside of this Web site.

We can have apps any amount of apps.

Suppose I was creating a shopping site in that shopping site.

I also add a blog where I posted articles on my latest things that add to my shopping site.

I also have maybe a Polls up to see if people are liking this product or that product.

Every site can have as many apps as you want to better understand this take a look at your main website and then you can have any amount of apps that you can add onto your Web site.

And the best part you can add apps or take them away and nothing will change.

So this polls out I could literally copy and paste onto a different web site and it would still work.

So that’s pretty cool

Creating polls up by Django – A beginners guide

The next thing I have to do is create this polls up.

So right now we’ve created this fantastic.

The next step is to create this polls up right here so that once you type is using the managed up py file when and type the following command.

Python manage.py startup polls and it says Can’t open file manage.py.

The reason being we’re in the first project directory and we have to go to the my site directory.

So go ahead and say CD my site and now run the following command.

Python manage.py startup polls also so now if we close your my site and open or my site we have our Polls directory.

Great.

All again go over what the new files are and init.py.

Same thing.

Admin.py allows us to add stuff to the admin page than apps.py is use to configure app and models.py  this is like the database layout.

You create classes you create objects here and then you populate them.

Tests.py you guys use for testing purposes and views.py is used to display content any content from a database to a web page through views.py.

All right.

Fantastic.

So one last thing before you go for models of py is creating a database and that is let’s go ahead and run our Django at least whenever we have so far.

So go ahead and type Python manage.py.

Run server.

All right so it says you have unemployed migrations.

So what he wants us to do is he wants us to apply migrations.

Basically Django version control but only for models of py.

Go ahead and open up a new tab.

And if you go to 127.0.0:8000

What do we get.

Also it worked.

Conclusion

Congratulations on your first Django powered page by beginners guide.

We’re getting their guys.

So this is your first Django powered page.

Again it doesn’t really have anything.

It’s pretty pointless but you can go ahead and add models and can then add values to a database.

Happy reading!

8(2)

Django: A Beginners Guide to Learn Part-1

We’re going to begin with the requirements how Django works. What do we need to set up by Django application.

Django: A Beginners Guide to Learn Part-1

Basic requirement before using Django

The first thing in those requirements is going to be Python.

You can follow- Python Programming: Introduction to Coding Language

Now I don’t recommend learning Django without having some previous Python experience and should have Python installed.

But if you don’t that’s OK.

Head over to Python.org or just search Python in your browser.

And if you scroll down to see a download section.

Now throughout the blog I’ll be using Python 3.5.

If you have a later version 3.6, 3.7 as long as it’s a version of Python 3 you should be fine.

If using Python 2.7 you’re going to run into a few problems as we go along through the blog.

So go ahead and select Python 3.5.

And if you scroll down you’ll notice the download section.

Go ahead and download whichever version of or whichever type of download need a Windows Mac whatever.

Now the second thing we’re going to require is a little bit more complicated.

And that’s known as an IDE.

But to make our lives a lot more easier while playing around with Django and writing Django apps we can install something called PyCharm to go ahead and search.

And the first thing that should be PyCharmed by jet brains.

You guys should have no problem whatsoever installing term.

Go ahead and click on download to me down in the community edition because the professional costs us some money.

Download and your download should start.

Once you’re done with pycharm or once you’ve done downloading Pycharm head over.

Creating a new project for Django

All right now we have Pycharm install the next thing is to create our app directory.

Go ahead and open a pycharm.

It should be somewhere maybe in your doc and your apps.

Double click on it and you should see a window.

Now go ahead and select Create a new project.

Your location can be anything.

I’m going to make my documents Django projects and then I’m going to call mine “first project”.

OK.

You can call yours whatever you want.

Just make sure you know where you have saved it and go.

And then for Interpreter make sure it’s the latest version of Python or whatever version of Python you’re using.

Make sure you select 3.5 or higher.

Click create and fantastic.

We now have our Django project right in front of us.

Tips on pycharm interface

Now a few tips of advice just getting to know how this whole pycharm interface works.

On the left hand side we have our directories.

Basically any files and folders that we might require are right in the middle over here that’s where we see all the code to display any file you have to double click on the file alright and then on the bottom you have the python console which is very I guess key and then you have the terminal what you’re going to use right now to go ahead and open up the terminal.

Go ahead and type the following command pip3 install virtual ENV.

OK so I get the same requirement already satisfied but for you virtual ENV should have downloaded.

Now what is virtual in the virtual ENV is a virtual environment.

And basically all it does is instead of having to install Django multiple times for multiple apps on her machine we can do it in a virtual environment so that it doesn’t take up any space on a machine.

Pretty strict pretty straightforward.

So as not we use Pip 3 and not Pip.

The reason being if you have any version of Python supposed 2.7 2.6 like I do people get confused where to install virtual ENV you’re going to get some problems.

So make sure you pip3 installed virtual EMV.

Now we have Pip3 through your virtual ENV install.

Creating virtual environment for Django

The next step is to actually create a virtual environment.

We’re going to do that by saying virtualenv – p Python3env. Hit enter.

And we should see done.

Fantastic.

So now what’s happened is we’ve created a virtual environment called ENV inside of our directory.

If we Double Click in a directory we now see the ENV folder.

Also note one more thing.

We use Python 3 in our Python for the same reason we use Pip3 just to make sure that you typing in the correct command.

Now the last thing we have to do with our virtual environment is activate it.

Go ahead and say Source env/bin/activate.

Hit enter.

And now we see env be in brackets before the terminal which means that it’s been activated.

So now that we have a virtual environment activated we need to help pycharm that hey pycharm.

I want you to install everything and anything inside of our virtual environment.

And not inside or not inside of a machine.

So go ahead and pycharm like preferences on the windows to be quite similar.

And then you want to go to version control but your project first project and select project interpretor once you’re in the project interpreter.

Make sure you change it to your new virtual environment which is going to be something along the lines of /env/bin/python.

Go ahead and select that apply and OK.

Also the last thing we have to do for setting up our directory is going to be installing Django.

Now that Pycharm knows that we’re using Python 3.5.

We can just say pick install Django everything should work properly.

Let’s go let’s take a look and successfully install Django.1.9.

Now if you have a more recent version of Django that’s absolutely fine.

Everything should still work.

Conclusion

We now have created our directory.

We set up a virtual environment and we install Django.

Happy reading!

9

Self Care: Key to Maintain Yourself

One observation that I would say is universally true is that self-care is critical for successful learning.

A healthy mind (and body) is a mind ready to learn.

Self-care means taking an active role in preserving and protecting your well-being, and it is especially important during times of stress and change.

Self Care: Key to Maintain Yourself

What is self-care?

Self-care is any activity or practice done deliberately to nurture your emotional, mental, and physical health.

While self-care is a rather broad topic, in this module we will highlight self-care techniques that support your ability to learn.

Stress can have a significant impact on learning, particularly on memory. While stress can improve attention and alertness and thus help with memory formation (encoding), too much stress can impair our cognitive function by negatively impacting our brain’s ability to retrieve information or update existing information. Retrieval of information is critical during exams of course but is also important when we need to recall and put into action newly acquired skills. Our ability to update existing information is important when learning complex concepts that build or change over time. Learning to manage stress in turn helps our brain to learn.

A Quick Pause to Breathe

Before we continue, let’s pause here for a very basic technique to help you get grounded – belly breathing also referred to as diaphragmatic breathing. At any point when you need to calm and refocus your thoughts and emotions, practicing this breathing exercise will help settle and center your mind.

Make a note of how you feel at this moment; jot down a few words. Practice the technique below a few times and then make a note of how you feel after. What differences are you noticing? Did you find this helpful?

Belly Breathing steps:

  1. Lay down or sit comfortably.
  2. Put one hand on your belly just below your ribs and place your other hand on your chest.
  3. Take a deep breath in through your nostrils, letting your belly push your hand out. Try to do this without raising your chest.
  4. Breathe out through slightly parted lips, and feel your belly hand drop. Use your hand to gently push the air out.
  5. Repeat for 3 to 10 cycles, taking at least 10 seconds for each breath.

The Role of Memory in Learning

Learning and memory are two sides of the same coin. Learning refers to the process of acquiring new skills or knowledge. Memory is the expression of what you have learned. For example, consider the effort it takes for a child to learn how to tie their shoe. They need to watch the movement and listen to instruction from someone who knows how to tie a shoe. The child must also practice many times, going through each step, feeling the movement of the laces and coordinations of their fingers. This effort is learning. Eventually, the child can recall the steps without being shown or told, and finally tie their shoe quickly from memory.

And when you forget something, you have to relearn it, encoding the skill or knowledge again to memory.

An active and awake brain is necessary for encoding new memories, such as learning new concepts and skills. But during sleep, our brain is also actively consolidating our memories. According to the book, Learning and Memory: A Comprehensive Reference, memory consolidation is the process by which recently learned experiences are transformed into long-term memory. During sleep, our brain takes advantage of less awake-time activity to make the structural and chemical changes in the nervous system needed for long-term memory.

Sleep and Memory

What is your sleep number?

While everyone’s sleep number – the hours of sleep you need each night – can vary, according to the US National Sleep Foundation, adults between the ages of 18 and 64 should get between 7 and 9 hours of uninterrupted sleep. 

Keep regular bedtimes and wake up times, even on the weekends.

  1. Plan time to wind down before bedtime. Minimize exposure to blue light from devices like your phone or laptop.
  2. Your sleep environment should be cool, free from disturbing noises, and any light. You might want to use things like blackout curtains, an eye mask, earplugs, and a white noise machine (or another appliance like a fan or humidifier to mask noise).
  3. Avoid alcohol, cigarettes, caffeine, and heavy meals in the evening.
  4. Anything related to work and entertainment (computers, TVs, etc) should be removed from the bedroom.

You can also read How to Sleep Better: Trusted and Tested, How to Sleep Peacefully: Tips to follow

Take a Short Nap

If your energy and ability to concentrate starts to wane, why not take a nap? Much like sleep, brief naps not only aid with memory consolidation but can also be restorative. Sleep research has demonstrated that cognitive function – critical for learning – is improved after a nap. Napping also helps with problem-solving, short-term memory, and alertness.

The ideal nap time is 10 to 20 minutes. Anything less than 10 minutes does not provide the restorative effects to your brain, and longer than 25 minutes can make you feel drowsy and cloud your ability to think clearly.

Healthy Routines

In order for you to be fully available to your family, friends, and coworkers, you need to put your well-being first. This means maintaining healthy habits like getting enough sleep, staying hydrated and eating well, getting regular physical exercise, and taking breaks. You might explore wellness apps that can help you create and manage healthy habits.

It can be difficult to give ourselves the timeout we need as the pace and demands of the day push us forward. To help you take a moment for yourself, consider scheduling your breaks. Later in this course, we will cover time management strategies and setting a study schedule. Add breaks directly to your study schedule and honor that time as you would an appointment with a doctor or meeting with a friend.

Ideas for Quick Breaks

  • Sunlight and fresh air. This can go hand-in-hand with getting some exercise or walking your dog.
  • Meditation, yoga, and breathing exercises.
  • Connecting with friends and family.
9(2)

Python Programming: Introduction to Coding Language

Welcome to this blog where you learn about Python programming.

Python Programming: Introduction to Coding Language

If you have no little intermediate programming experience, we must say this blog is for you.

It is a programming language for every general purpose.

In other words, it can be used for a variety of purposes.

Barton is one of the most preferred languages for beginners.

This is because a lot of these keywords are similar to English.

And it is also very powerful or robust.

It is used by several top organizations such as Space X, Google Unpicks and so on.

It was developed by Du Do Van Rowson in the late 1980s.

The two main visions of python are available, which are python 2 and python 3.

However, this course will only focus on point to entry as this is the most popular vision of Python.

You’ll be able to take this course at your own pace and after that you’ll be able to build some useful program.

Downloading Python 3

To download Python 3, go to https://www.python.org/.

Click on downloads. Make you download the version for your PC type (Linux, Mac OS or Windows)

Download the Python Installer and then install Python to Computer.

You can also use other code editors such as Visual Studio Code, Notepad++, PyCharm, PyDev or Anaconda.

So here, we’ll be exploring Python Idol and Python Idol is the default idea for Python.

And if you don’t know what it means, it means integrated development environment.

So it may seem like a complex word, but basically it’s where we do our coding.

So we have several over a year so we can just decide to try out some few things.

We get DSR outputs you might use as a default on my screen is a bit different to your fonts because you just installed Python.

So in order to change your phones and your idol, you gotta to let me do that one more time.

You got two options.

Either you click on configurator, you can say to change fonts using font fees.

You can set change the size of your font.

However, you can indent it, you can de intend it.

You can even say to my keyboard, you can set to change your indentation.

But I advise you, not since for spaces is the standard indentation, which you may not know when the decision is right now, but as you go further along in the course, you will.

So you click on Apply and then click on okay.

Hence, potential is very good for any multiline could you can decide to use your print statement.

So your print function.

Hello world, so that you could you get hello world as output.

A simple program

As you advance in python programming, you’ll be writing multiline code, so that is when you have to use New file.

So New file allows you to write multi-line could, for instance.

And that’s why I’m going to do it now.

So I can decide to print “hello fellow students.”

“Welcome to this course”, then I can also decide to run it, you can run you could by either going to do you run option and clicking on Run or simply pressing for the function key on your keyboard.

So in order to run a module, you have to save it in your PC.

So I’m going to save it as real test since I already have another first test and then you’re going to get your output.

Install and Setup PyCharm for python programming

You can also follow our blog – Python 3.8: A Complete introduction

We’ve looked at IDLE in our last classes. However, we will be using a different IDLE in this course which is PyCharm.

In order to install PyCharm you will use the link below:

https://www.jetbrains.com/pycharm/

If you are using PyCharm for the first time, you need to understand how to set it up so here is the link to the official documentation:

https://www.jetbrains.com/help/pycharm/run-for-the-first-time.html#additional_plugins

You can decide to use other code editors such as Anaconda, Visual Studio Code or Notepad++ whichever you use is fine. I personally view PyCharm as the best.

10

Emotions: How to have a control on them?

Every emotion is precious. Sometimes, these emotions can lead to severe distress. But thankfully, there are ways to have a control on your emotions by adopting various health techniques and lifestyle changes.

Emotions: How to have a control on them?

Create your bliss book or joy box. Fill it with happy memories, such as photos and mementos, like a ticket stub to a favorite concert. Print out inspirational quotes you enjoy to add to your book or box. Include a gratitude list or journal, as well as items you find comforting. For example, your box could also contain a funny book, a few candies, a nice mug, and a box of tea. Bring out your book or box when you feel emotional.

  • You can also create a digital version of your happy book with photos, memes, inspirational quotes, gifts, etc. that make you feel good.

You can read our blog- How to Sleep Peacefully: Tips to follow

Confronting Your Feelings

Identify what your actual emotions are-

Learning to pinpoint and name your emotions can give you control over them when you feel like they’re running wild. Take a few deep breaths, then force yourself to look straight at the things you’re feeling, even if it’s painful. Then, ask yourself what the source of that emotion is, and if it’s covering up for something else that you’re afraid to confront.

  • For example, ask yourself what about taking a major exam is making you so stressed. It might have a big influence on your future, or you feel like you have to do well to impress your family. At the root of your nerves might be a fear that your family’s love depends on your success.
  • Remember that no emotion is “wrong.” Telling yourself not to feel something is a way of hurting yourself even more. Accept that the emotion is natural and let yourself feel it.

Think about what you can do to resolve the situation-

Sometimes, you may feel out of control emotionally because you can’t see how to control the situation around you. This can lead to “ruminating,” a “broken record” thought loop where you obsess about the negative thought or feeling in an unproductive, usually vague, way. Break this cycle by focusing on any specifics of the situation that you can address.

  • Instead of ruminating about trouble at work by thinking, “Why am I so bad at my job?”, make a list of things that you can address.
  • Work to accept the things that your own efforts can’t address. Letting go of the idea that you need to “fix” or “control” every element of a situation is a way to liberate yourself from stress and emotional turmoil.

Decide how to move forward in the best way you can-

When you’re ready to decide on a course of action, make sure it’s a conscious choice, not a reaction to another, competing emotion. Think about how you want to resolve this situation and why. What values of yours does this response represent? Does it make sense rationally, too?

  • Think about what your moral principles are. What is the decision you’d be most proud of? Then, ask yourself which course of action is the most likely to result in the outcome you want.
  • For example, if someone insults you, you could do nothing, respond aggressively, or firmly tell them to stop. Ask yourself how you want this situation to end, and how to get there without compromising the things you believe in.

Reacting to Your Emotions in a Healthy Ways

Learn to recognize defensiveness in both yourself and others-

You may feel defensive if you feel stressed, frustrated, or personally attacked. However, it’s important to listen to the opinions of others, especially if they’re given constructively, without taking them personally. You can cope with defensiveness by reducing the threat in the situation and remaining curious about the thoughts of others. Here are signs of defensiveness:

  • Refusing to listen to negative feedback
  • Making excuses for failures
  • Passing blame
  • Crossing your arms to shut people out
  • Smiling and nodding to get the person to stop talking
  • Listing reasons why you’re right without talking to others
  • Ignoring feedback from others
  • Using sarcasm or criticism of others to deflect from criticism about yourself

Take precautions against your emotional triggers-

Your activation is the chemical energy that bring various emotions with everything and everyone. Once you know your triggers, you can plan for them and mentally prepare yourself.

  • For instance, let’s say your sister makes you angry every time you see her. Before the next family gathering, you might engage in relaxing self care before you go, then plan how you will take breaks from your sister throughout the day. You might make plans with another relative to go do something, or you might plan to leave and pick up a dish. Limit how much time you spend with her, and plan a way to leave early, if necessary.

Do nothing if someone is trying to frustrate you-

If you can tell that someone is bothering you just to egg you on, take a deep breath and stay calm. Speak calmly and refuse to let them get to you.

Relax if you feel angry or upset-

If you feel angry, you might clench your jaws and tense up. Take a deep breath and relax. This will make you forget your bad vibes and make you concentrate on your work.

Try doing the opposite of what you would normally do-

If you feel yourself reacting to strong emotions in a way that’s typical for you, stop yourself. Take a moment and think about what would happen if you tried the opposite of your usual reaction. Try a new method if it doesn’t work productive.

For example, you might get bothered when your spouse regularly doesn’t do the dishes. Instead of starting an argument, challenge yourself to do the dishes yourself, then politely ask your spouse if they could help.

Remove yourself from a situation that generates negative feelings-

Sometimes the best reaction is walking away and avoiding your triggers altogether. If a situation can be reworked relatively easily and without hurting others, do what you can to remove yourself from it and your negative feelings.

  • For example, if you’re on a committee at work that includes people who are unfocused, you might get upset when attending the meetings. One strategy for dealing with this frustration is to ask to be re-assigned to a different committee.

Happy reading!

10(2)

Artificial Intelligence Definition To Understand

In this blog I will tell you about Artificial Intelligence Definition.

 Artificial Intelligence Definition

I guess you’ve heard the words, AI – artificial intelligence, ML – machine learning and maybe

also deep learning. As a starting point, let’s define those terms at a high level and how they are related to each other.

Artificial Intelligence Definition

Starting with AI. Artificial Intelligence was founded a long time ago as an academic discipline back in 1956. The fundamental idea that some complex intellectual tasks that are performed by humans on a daily basis can be also performed by machines.

After that, those machines can mimic or simulate human cognitive functions such as learning and complex problem solving.

Nobody will argue that today machines or computers are already very good when performing some tasks. They can calculate things at an amazing speed, they can be used in a production line to perform the automated repeated tasks with great accuracy but this is not AI.

Those machines and computers are pre programmed with the knowledge to perform those repetitive tasks.

For instance, recognizing an object in a picture, something that our mind is doing all day long with an amazing speed and flexibility.

We can easily scan a picture with our eyes and in a second identify objects in that pictures.

This kind of task will trigger billions of neurons in our minds that will be used to identify those objects based on patterns we learned over the years. Trying to mimic such a task in a computer like identify objects in the picture is very complex. And until recently it was impossible to achieve a usable use case with standard programming.

So, when a machine can mimic complex cognitive functions like identify an object in the picture or recognize a human voice and many other very complex tasks, it is often described as artificial intelligence.

Let’s take for example the scenario of playing a chess game between a computer and some person.

I don’t know if you played chess before, but it is quite a complex collective task.

However, it is very hard to consider all the options in a chess game.

Taking into account the future moves that may be performed by the other player. Looking at history, the dominating approach for creating an application that can play a chess game was by creating a huge amount of explicit rules that will mimic that task.

The computer will be programmed with the needed rules, the needed knowledge for selecting the best next move while leveraging of course the horsepower of a fast computer.

A computer can perform many complex calculation while checking a very large space of options and strategies.

Such kind of program can easily win many professional chess players, so it will be considered as AI entity.

And for many years such complex programs running in fast computers that are simulating very complex tasks were considered as AI. Now, there are two main downsides to this approach. The approach of trying to mimic complex human thinking by creating a huge amount of explicit rules.

The first one is that someone needs to think and program all the game logic and strategies into the program which can be very hard work.

You probably need the team of professional chess players to design such logic and then translate it into lines of code, many lines. Secondly,

The second downside is that it will be as good as it was initially programmed. Unlike the human brain, this program is not learning anything. Above all, if it will be defeated by some human players, it will not learn anything from that experience.

There is no closed feedback loop.

However, it will not create a new set of rules that will help to win the next game.

Someone should open the program code and make it better by changing or adding more rules. So, something is missing here.

Okay.

And maybe you can already guess by now,

What is it? Well the missing part of a AI is the flexibility to learn.

The human mind has amazing flexibility to learn, to adapt.

11

How to Sleep Better: Trusted and Tested

In this blog I will tell you how to sleep better

How to Sleep Better: Must Read

We have to talk for a moment about your philosophy of sleep.

Now I realize that sounds a bit pretentious to talk about but whether you realize it or not you do have a philosophy of sleep.

We’re all shaped by the culture we live in and we live in a culture that for the most part says sleeping is bad.

That’s for the lazy to do that when you’re dead.

If you’re really ambitious you need to work work work get up really early stay late party late work work work work or have fun party hard but sleep that’s for wimps that’s for lazy.

If you’ve heard that your whole life it makes sense that at some level that permeates who you are your identity.

The problem is it’s completely backward.

Sleep is essential to leading a healthy life to being able to think clearly to be productive.

Yes it is true.

There is some insanely small percentage of people in the world who only need four hours sleep.

Guess what.

I doubt you’re one of them.

Most human beings if they are allowed to go to sleep without a lot of electronic stimulation and they don’t have an alarm clock or cell phone waking them up will typically sleep eight and half nine hours.

You may think I’m crazy but that is what most human beings slept throughout history.

It’s what most human beings will sleep today if you get rid of so many extra stimulations electronic stimulation coffee stimulation.

So you need to step back for a moment and figure out what is my philosophy of sleep.

Is it a good thing?

I would say yes it is.

Do I deserve it?

Yes.

Is it some extra or a luxury.

No.

Is it something I should be able to do just on my vacation for two weeks every summer?

No.

It should be a part of your daily experience.

It’s not an extra, it’s not a luxury.

It’s what you deserve as a human being, it’s also what’s going to help you be more productive at work to get along better with your family members because you’re not going to be cranky.

And it’s what’s going to make every part of your life better because you can think clearly it simply is not true that you get more done by getting less sleep.

Many of the most productive people in the world also got the most. The most successful football quarterback in United States history Tom Brady sleeps nine sometimes 10 hours a day and doesn’t seem to have slowed down his productivity.

Winston Churchill would sleep all afternoon typically so you have got to build a philosophy of sleep for yourself that is positive that tells yourself it’s not an extra.

It’s not something to fight.

Once you tell yourself you deserve a full night’s sleep.

Here’s where it gets tricky because things like this and your cell phone alarm I believe are the enemy.

Anytime you’re using an alarm clock what you’re telling yourself is that you do not deserve the sleep your body wants you’re telling yourself you should be impoverished.

That’s like telling yourself you should ever have three meals a day.

You should just go to bed hungry.

Why would you deprive yourself.

Why should you deprive yourself of sleep?

I realize you’ve probably used an alarm clock.

Most of your adult life doesn’t mean that’s healthy.

It means you’re consistently depriving your body enough sleep. If you need an alarm clock to get up it means you’re going to bed too late.

Now this blog series is going to give you a million different techniques of how to fall asleep earlier but if you tell yourself well. I’m a night owl of course I have to stay up to 1 2 o’clock.

Maybe that was true in high school.

Maybe it was true in college but if you’re 30 40 50 60 or 70. Chances you’re not really a night owl anymore.

If you stop drinking coffee after six o’clock and you stop electronic stimulation in terms of watching videos reading cell phones text messages you stop that after eight o’clock or so at night.

Chances are you can fall asleep dramatically earlier.

You can tell yourself Oh I only need five hours sleep.

You might be able to get by on five hours of sleep.

Doesn’t mean that’s what you need if you want to know what you need.

You need to go a week or so without an alarm clock and see how long you are asleep.

This is assuming we saw the other problems of sleep and insomnia.

But if you tell yourself you don’t deserve sleep and you need to constantly interrupt your sleep patterns with alarms.

That is a huge huge problem.

If you really want to fully embrace the philosophy you deserve a great night’s sleep every night.

I believe you should never with rare exceptions use an alarm clock of any sort.

I do only if I have to get up early to catch a plane to go someplace and there’s simply no way of avoiding it.

And I’ve got to interrupt my sleep patterns.

But the normal day if you plan correctly you should never need an alarm clock.

You can read more sleep related blogs here How to Sleep Peacefully: Tips to follow, Yoga: Key to maintain a healthy lifestyle