Skip to main content

Posts

How to code programmatically in Xcode-Swift 4 ? Create a new Story Board programmatically….

Hello Everyone!!! Auto Layout is how we layout our UI in iOS applications. Learning how to use it programmatically can be overwhelming at first. In this introduction series, we’ll look at how to easily anchor elements onto the screen relative to other items. Most of the times, Xcode shows errors regarding constraints in the main storyboards. So, it is better to code programmatically by using the anchors. Let’s get started Step 1:- Open Xcode, Select the main storyboard & delete it…(move to trash) Step 2:- Now, go to the info.plist & delete the key of “Main Storyboard file base name” Step 3 :- To build our storyboard programmatically.…Go to the App Delegate & write the following code… Here, we have created a new window with the reference of user’s physical device. “makeKeyAndVisible()” -> It will show the window & makes it key window. Then we have connected the storyboard window to the View Controller with the help of “RootViewC...

Importance Of Programming

Hello Everyone! Have you seen any numbers like this 101010101101001? This is machine language. Programming enables representing machine language in a human-readable format. In this article, we are going to know about the importance of programming. Intro In the 19th century, people were not able to send a message from one place to another. But, nowadays people are communicating in a fraction of seconds. There is a huge development in technology in the past 20 years because of programming. Therefore, programming is important in daily life to enhance the power of technology. Importance  1.  Automation Artificial Intelligence is growing so fast & it will make most people better off over the next decades. The features like voice recognition, face recognition, personal assistants like Siri, Google Assistant are used by many people around the world. Technologies like AI & Machine Learning will definitely change the future. 2. Problem Solving P...

How To Find Location Of Server Of Website From URL?

Hello Everyone! In this article, we are going to find the root location of any website with the Terminal! We are going to use one amazing command to find the location from the URL. Intro Command Line (Terminal) is a very powerful tool! There are so many commands which are very powerful. Now, we are going to find the location of the server of Google. Also, this tutorial has a video tutorial:- CLICK HERE Step 1: Open Terminal First of all, Open the terminal. Go to applications & select terminal. Also, we can use a keyboard shortcut to open the terminal. Shortcut to open the terminal : (CTRL + ALT + T) Step 2: Use "traceroute" Command The "traceroute" command is used to find the location of a server by going through each connected wired/wireless servers. This command indicates "Trace The Route". We are going to trace the route with the "traceroute" command. This command determines the response delays from various nodes along...

How To Play Games On Terminal?

Hello Everyone !!! In this tutorial, I will show you how simple it actually is to play games on the terminal by using SUDO commands. SUDO means Super User Do Commands !!! Intro We can do many things by using the Terminal with a few commands. The terminal is a very powerful tool to perform amazing commands. In this tutorial, we are going to play games on the Linux terminal. What You Need? We are going to play games on Linux Terminal. The requirements are - Linux Terminal Internet Connection  Administration Password  Let's Get Started We are going to use 3 Commands to install the game at a time on one line. Be careful while using the "SUDO" command. It is a very simple command as well as dangerous & destructive. Let's get started with the following steps. Step 1: Open the Terminal First of all, open the terminal. Go to applications & choose terminal. Also, we can use a keyboard shortcut to open the terminal. Keyboard Shortcut For T...

How to { Compile + Run } a C Program Using Nano

Hello Everyone !!! If you don't have an IDE or Software with you to run your code, then don't worry !!! We have Hulk. Oops !! Sorry that was Tony Stark's dialogue... We have Nano to Compile & Run the program. At the end of this tutorial, you will be able to compile & run a C program using Nano Text Editor on the Terminal. Intro In the previous tutorial, we learned about the basic functions of Nano Text Editor using Command Line. If you haven't seen the previous tut, then click here . I found this feature of running C program with Nano while Code Blocks Software on my Mac was continuously crashing. So, when you don't have any IDE (Integrated Development Environment), you should use Nano. Let's Get Started Let's open up the Terminal. We can use (Ctrl + Alt + T) shortcut to open the terminal. The terminal is a very powerful tool of the operating system. Creating a new file DCs-MacBook-Air:~ Dhanraj$ nano fileName.c Here, ...

NANO | Command Line Text Editor

In this tutorial, you will learn to open, view & edit text files using the "Nano Text Editor" by running amazing commands in the terminal. Index Intro  Why Use Text Editors?  Let's Get Started  Open Text Editor  Create a New File  Open Existing File  Editing The File  Saving The File  Useful Cheats  Final Touch  What's Next?  Intro If you want features like undo/redo, syntax highlighting, line numbers, multiple files at once, replace at all locations, file locking, file backup with simple commands, then definitely you need Nano Text Editor. Nano is quite an old text editor written in C. Text Editor is a program which allows you open, view, edit text files. Text Editors can handle many different programming languages like C, Python, Ruby, HTML, CSS, etc. There are some Softwares like Microsoft Word, Pages, Google Docs. But, we can't use them to code. Text Editors are not IDE (Integrated Development Envi...

How To Select Your First Programming Language ???

If you have decided to learn how to code then, the first question comes up “Which Programming Language Should I Learn First ?”. It depends on a variety of factors. Now, let’s have a look on it……… First of all, there are some myths about programming languages. You have to remove it from your mind…… Myths About Programming You have to learn first the C Language. Then only you can learn other languages……. Many people suggest the following flow. C → C++ → JAVA → etc. In Indian Engineering academics syllabus, colleges are teaching the C Language as the basic language & they are forcing the student by using the above myths. I totally disagree with the above myths. Nowadays, Stanford is using “Python” as their first basic programming language in their university. Intro First of all, each programming language is created for different need. All programming languages have there own advantages & disadvantages. Once you learn one programming language, it is much easier t...