The Act Of Doing…

Hey guys, what’s up? I know its been so long since my last blog, almost a year… Yeah, it sounds kind of crazy but I took so long to come up with a good idea for writing a blog and finally realized something, that’s the topic of today’s blog.  We all know there is a pandemic(Covid-19) going on during this time and no matter where you are you might be affected by some degree of it. Talking about myself, my exams got postponed and I am back in my hometown with plenty of unplanned time.

25-09-2018 16.37.57

This is the time that made me realize some left out things like my blogging, my old friends, my vision, etc. I think this happens with all of us. As the routine goes by some things get lost behind in our shadows. Sometimes you really have something cool in your mind and you just save it in a hope that a better time would come to do it. But that idea or thing remains on the shelf of your mind and eventually, it gets covered by a mess,  a mess of all other things you wish to do and it never happens. This is the time to get those due things done from your mind. That thing could be anything like having a warm chat with your family showing some appreciation for the things they have done for you, calling or just sending a text message to people you care and people which care for you, dancing with your brother or just doing the artwork you had in your mind from several months. Things could be as small as that but you gotta do it that’s the act of doing.

Sometimes we just postpone some things for lack of better timing or perfectionism but you better do those now instead of waiting and later regretting, this is the act of doing. Rather than sitting in that creative rut feeling silly and waiting for things to get better, go for the act of doing which will pour out some sprinkles of excitement. I think we all will emerge through this with a new appreciation for life, dreams, friends and family where there is nothing holding us back…

With that said, that’s it for today’s blog. Stay safe, stay quarantined during this time as I probably want you to read my next blogs and I will see you awesome guys in the next blog! ✌😊

How to send emails with python…

I know it has been a so long time since our last blog but we are back guys, we are back with another exciting blog! Recently, I had a project in my mind that can automate some of my stuff with a speech recognition feature. So, in that program, I wanted to automate sending email, for that I searched online and you know what it’s so easy.  So I thought it could be a nice kickstart, also it can be used in marketing bots as well.

download
Sending a Gmail with python

Setting up your account:

But first, you should have an email account like Gmail account that we would be using in this tutorial. Now go to the link given below and allow the access of your account to less secure apps. It will basically allow your python program to access your Gmail account.

allow less secure apps to ON

Writing code:

We will use ‘smtplib’ module in python that would make sending emails with python really easy. smtplib is Python’s built-in module for sending emails to any Internet machine with an SMTP or ESMTP listener daemon. So there is no need to download it. The code example below creates a secure connection with Gmail’s SMTP server, using the SMTP_SSL() of smtplib to initiate a TLS-encrypted connection.

import smtplib #Fill your username and password username = 'mygmail@gmail.com' password = 'mypassword' # taking inputs from user for sending email. receiver = input("Send mail to: ") sub = input("Subject of mail: ") body = input("Body of mail: ") # Actual process of sending and email. smtp_server = smtplib.SMTP_SSL("smtp.gmail.com", 465) #defining smtp server via gmail server and port no. smtp_server.login(username, password) message = "Subject: {}\n\n{}".format(sub, body) smtp_server.sendmail(username, receiver, message) smtp_server.close() print("Mail has been sent!")

Here, we first imported our smtplib module. We stored our credentials like email id and password in variables username and password respectively. Make sure you enter your email id and password. Then we will take some inputs from the user for the receiver’s email id, the subject of the email and the actual body of the email, just to automate program further.

Now here comes the important part of the program.  We made a secure connection using
smtplib.SMTP_SSL(). Inside it, we defined our server for connection. Here its smtp.gmail.com for Gmail and a port number as 465 which is most preferred. Then we logged in with our username(email id) and password that we stored earlier in variables. Now we have to make our message as the combination of subject and body as there is no better and easy way given by the smtplib module.  Just make sure that you format your message as given in above code example and don’t forget to add at least two blank lines between subject and body as above. you can send your email using .sendmail(), it just takes email id of the user, email id of the receiver and the actual message. Now just make sure you close your smtp server using .close() method as shown above and you will get sweet tweet as “Mail has been sent!” if you followed the code above.

So, that’s it for today’s blog. Hope you enjoyed it. Make sure to show some love via like button or give some feedback in comments and I will see you guys in the next blog.

 

Get Organized With App ‘Habitica’!

images (1)Have you ever experienced moments where you scheduled your dailies and set goals but eventually you messed up with your goals and plans and became unable to keep track of them? or you are trying to find a good task management app but never found an amazing one? If yes then this blog is for you and if not, still I would recommend to dig down through this blog. Maybe you want to track your study progress, office work, life goals, habits, dailies or gaming schedule, this app works best for everyone as it is highly customizable!  With this app, you can easily Gamify your life to get things done.

Intro:

Habitica, formerly HabitRPG, is an online task management application run by HabitRPG, Inc. Habitica is a self-improvement web application with game mechanics overlaid to help the player keep track of and remain motivated to achieve their goals. It is available for both android and ios devices. In this app, you can easily set habits, dailies, todos and on completing them you gain some gold and experience which increases your character level and ability to buy rewards! So now let’s dive into its components.

Components:

habitical-tutorial-2.jpg

1. Habits:

In Habitica, Habits are long-term goals which are utilized to change a person’s habits. These “Habits” can be set to either ‘positive’ or ‘negative’, or both. For example:

  • a predefined Habit is “1h productive work”. This is a positive Habit: if a user has an hour of productive work, they will gain experience and gold.
  • a predefined Habit is “Eat junk food”. This is a negative Habit: if a user eats junk food, they will lose health.

If a user completes a positive Habit often, it will turn green. This signifies that they are doing a good job following their Habit. On the other hand, if a user performs a negative Habit often, it will start to turn red and do increasing damage to their health. When players accrue enough experience points, they gain a level, which restores their health.

2. Dailies:

Dailies are the things that you want to get done throughout your day. In Habitica dailies are useful for the user to keep track of habits in scheduled and repeatable fashion.  Dailies are completed by ticking a checkbox, the user sets their Dailies in advance and checks off what they have completed during their day. Completed Dailies give the user experience and gold. But if the user fails to complete his dailies then the user loses some health.

3. To-Dos:

To-Dos are one-time tasks that can be added or deleted. When a user completes a To-Do, they gain experience. The To-Do then disappears (it can later be found under the ‘Complete’ To-Dos tab). Unlike Habits and Dailies, To-Dos will never cause the user to lose health: the To-Do just becomes more valuable over time (it gives more experience and gold once completed).

Character Gamification:

Capture3

A major part of Habitica is the role-playing aspect. A role-playing game is one in which a player takes on the role of another person or character. In Habitica, the user takes control of a character that they design themselves. The user can level up and unlock new features. However, upon death, various items and a level are lost. As the user completes its dailies, todos or habits user gains some gold, with that user can get armor, swords, pets, mounts and even can customize its hairs, skin, etc. 

Community and Sociability:

There is a huge community of Habitica users and you can easily join various guilds(groups). Players can band together in parties to complete quests. Players can also join guilds and participate in challenges made by other players, where the person with the most consistency in performing a task wins an achievement. Players can compete with friends and strangers, as well as collaborate and focus on accountability. In parties and guilds, as well as in the community-wide Tavern, players can communicate with one another via chat.

That’s it for today’s blog. I hope this blog will help you to be as productive as you wish. One thing to notice here that you need to be honest with this app if you want to make some real progress. Checking dailies just for rewards without even completing them won’t make you productive. Feel free to give suggestions or comments in the comments section and hit the like button if you loved it!

The difference between IDE and Text Editors…

Welcome guys to another freaking awesome blog. Today we will be going in the actual difference between an IDE and a Text Editor. But before that let’s see why they are used. IDE’s and Text Editors are generally used for writing code in a nice and clean way. They enhance the productivity of the user and enables the user to perform some actions on their code.

Difference:

IDE :

IDE stands for “Integrated development environment” not just a tool where you write the code, but you can also compile it and debug it. IDEs usually combine code editors, debuggers, and built-in tools for compiling and running applications. An IDE is generally developed for a specific language. They are considered to be heavy than Text Editors as they come up with some built-in tools and plugins for that specific language. If an IDE is developed for a specific sector then you can’t use it for another totally different sector.  Examples of IDEs are Visual Studio for ASP.NET applications, Eclipse for Java development, and Xcode for Swift and Objective-C development.

Some IDEs also include platform-specific tools. For example, in Apple’s Xcode IDE there’s a tool called Interface Builder where you can lay out all the different screens in your app and build up your UI visually before connecting it up with code to dynamically change the data that’s displayed while people are using the app.

Text Editors :

Text Editors have a broader approach than IDE. Because in a Text Editor you can write code of different languages. But before that, you will need to install proper plugins and packages for that specific languages. For example  Sublime Text,  Atom.

62RS0C8.gif

These editors also have a community-driven plugin system so they can be extended to perform all sorts of useful tasks. For example, Sublime Text 3 has a plugin called HTMLBeautify. Once you’ve installed it, you can run it from a key command or the menu bar and it will look at any HTML in an open editor window and format is based on a set of predefined rules, like standardizing tag indentation based on how they are nested or removing any empty lines between tags.

Code-specific text editors like the ones mentioned above provide a much-needed service to programmers and make their lives better by saving time through enhanced productivity, fewer uncaught bugs, and customizability.

Conclusion:

So, if you asked me then I would suggest you to grab a Text Editor because in a Text Editor you can switch between different sectors. For example, you can use a text editor for a web-development as well as data science purpose. So you won’t be bounded by limits. But in some cases, it is good to use an IDE. In the next blog, we would discover the best IDE and best Text Editor for python programming.

3 Reasons why you should learn Python programming right now in 2018!

Welcome guys, today I am gonna tell you why you should learn python programming right now in 2018. So, without any further delay let’s get started!

images

1. Best for beginners:

python

If you are new to programming and wanted to learn programming and provide some value to the world then python is the perfect programming language for you. Because it is not like other languages like C or C++ which takes many lines of code even for a small program. Python is simple, flexible but still very powerful language. Its syntax makes sense. Its syntax is not complicated and its keywords and statements are easy to understand as they are closely connected with human language. So, for beginners python is the best choice.

2. Get paid more:

images (1).jpg

Even python language is not very complicated, python programmers get paid more. According to indeed.com, the average python developer’s salary is about $116,083 per year(about 7464717.32 Indian rupees.) which is not a small amount. You can have a specialization with python in Django or Flask or data science and you would be able to reach 6-figures of money. You can also earn a ton of money just working as a freelancer. So, learning python and having a specialization is a good investment in yourself.

3. Python programming is the future!

images.png

Python has acquired many sectors of technology such as machine learning, data science, web-development, artificial intelligence, etc. Python is one of the popular programming languages around the world. The demand of python developers is increasing day by day. Also, python is dynamic enough to work with different platforms and because of its simplicity, it is loved by developers.

 

So as one of idol says, never be the first or last to test the new idea or technology. So just start learning python programming, you can refer my older blogs for good python resources to learn and I will see you guys on the next blog.

How to make 3D games…

The games which are in three dimensions are known as 3D games. 3D games feel very real due to high-quality graphics and amazing storyline. So, you might be thinking that making a 3D game is not an easy stuff but believe me, it is easy! Game engines made this easier. In current date, there are two famous game engines. First is “Unreal” and second is “Unity”. But using “Unreal” is difficult, so for beginners, I would suggest making use of “Unity”.

download

Unity:

download1

Using unity software you can make awesome 3D games. Unity provides thousands of tools to make an amazing 3D game. You can download the free version of unity which has all core features as the paid version.  Unity 2017 introduces new features that help teams of artists and developers build experiences together. Powerful new tools, such as Timeline and Cinemachine, empower artists to create cinematic content and gameplay sequences without the need of an engineer. Creators can now spend more time doing, less time queueing. The download link is :

https://store.unity.com/

How to learn unity:

As I said earlier unity is one of the famous game engines. So, on the internet, you can find thousands of tutorials. But for me, the best free resource to learn unity is a youtube channel called as “Brackeys”.

download (5)

It is an amazing youtube channel to learn unity and become a pro even you are a beginner. This whole channel is based on unity. So here you can find a lot of stuff to learn unity. I am personally using this channel to learn unity. As I have a lot of interest in making games. So hopefully, after some weeks I would be completing my game. The link to the channel is:

https://www.youtube.com/channel/UCYbK_tjZ2OrIZFBvU6CCMiA

 

That’s it for today. Feel free to leave comments and I will see you guys on the next blog!

Theory of simulation says, we are living in computer simulation!

The high-quality 3d games that we play consists of different characters which are involved in base reality. But the current most trending theory says that we all are living in base reality or you can say it simply that we are in a simulation.

images

History:

simulation hypothesis was introduced by Nicholas Bostrom, a British philosopher, in 2003. Simply put, the hypothesis states that there is a likelihood that advanced future civilizations would run equally advanced computer simulations of past civilizations. So, much like we play video games about ancient populations, they might do something similar, just much more technologically advanced. Some people even think that the events of the 2017 Oscars are proof of this theory.

Elon Musk says “there are one billion chances that we are in base reality!”

download.jpg

During an interview at Code Conference 2016, Musk said, “There’s a one in billions chance we’re in base reality.”  If you don’t who this guy is then let me tell you that this man is the current CEO of Tesla Motors and SpaceX company. So, this statement is worthy of thinking.  According to the hypothesis, one of the following three cases is true:

  1. We’re literally living in a computer simulation.
  2. There is a strong aversion in advanced civilizations to making “ancestor simulations”—that is, highly evolved civilizations have no interest in making what are essentially video games of their past.
  3. Something destroys all civilizations before they’re able to advance to the point where they are technologically capable of simulating consciousness.

Musk strongly believes that, of Bostrom’s three possibilities, the first one is correct.  Musk believes that humans are able to create simulations, in the same way, maybe trillions of years ago someone or a group of undefined people created today’s world which is a simulation or a base reality.  Musk said that of Bostrom’s possibilities, the simulation one is the most palatable; the other ones are actually slightly more bleak than the idea that reality isn’t real. As sometimes big pc game gets slow in the same way near the black hole the time gets slow. This may be a proof of that we are in a simulation.

download (1).jpg

Final conclusion:

So, this was all about the theory of simulation. Many physicists are refusing this theory but on the other side, many philosophers and cosmologist and even mathematician are supporting this theory. Elon Musk also will be trying to prove this theory. So, maybe we are not in the real world this may be a simulation which may be created by undefined species which may be smarter than way too ahead than humans. But this is the game of “may be or may not” until research proves it.

That’s it for today feel free to leave comments and follow. I will see you guys on the next blog

Why Hackers mostly use python?

Today we are gonna find the answer to why Hackers mostly use Python programming language. When you start learning the core of hacking, Python is great. With a giant standard library and a packaging system that puts prebuilt tools and frameworks at your fingertips, it is often very easy to hack something into existence.

download

1. Python is an Object-Oriented programming

Object-oriented programming approach is the most popular approach for software development. It uses classes and objects to create models based on the real world environment. Object-oriented Programming makes it easy to maintain and modify existing code as new objects are created inheriting characteristics from existing ones. This cuts down the development time considerably and makes adjusting the program much simpler.

2. Python has a Simple Structure

Python programs take much less time to develop. Its programs are typically 3-5 times shorter than equivalent Java programs. This difference can be attributed to Python’s built-in high-level data types and its dynamic typing. For example, a Python programmer wastes no time declaring the types of arguments or variables. It supports a programming style that uses simple functions and variables without engaging in class definitions. Python programs follow simple English-like structure.

Python programmer can finish in two months what two C++ programmers can’t complete in a year.

For example:

# sample python code to show output: print("Hello World.")
# sample java code to show same output:  public class HelloWorld { public static void main(String[] args) { System.out.println(“Hello, World”); } }

 

3. It has Rich Library support

Python programming has many pre-built libraries that provide some powerful functionality. Python is a High-Level Language with 1,000 modules and much more are available in various other repositories.

4. Python for Web applications

Python is at home on the web, unlike a low-level language like C. Frameworks like Django, Pyramid, and Flask gives the ability to create real web applications that have the same power as the sites we use every day.

5. Supportive community

As you step into the programming world, you’ll soon understand how vital support is, as the developer community is all about giving and receiving help. The larger a community, the more likely you’d get help and the more people will be building useful tools to ease the process of development. Python is having:

  • 5th Largest StackOverflow Community
  • 3rd Largest Meetup Community
  • 4th Most-Used Language at GitHub

So, the final conclusion is, all in all, if you are a person with the ambitions of being a hacker one day, start learning Python. That’s it for today feel free to hit comments and I will see you guys on the next blog!