PROGRAMMING | INNOVATIONS | EDUCATION | TECH NEWS

Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Sunday, July 15, 2018

10 THINGS YOU SHOUOD KNOW ABOUT YOUR IP ADDRESS


1. You must have an active IP address to be online.
Or more accurately, every time you're online you automatically have an active IP address. IP stands for Internet Protocol: The protocols are connectivity guidelines and regulations that govern computer networks.
2. IP addresses are assigned to computers, not people.
The IP address you see—the one you're connected to a network and the Internet with—is assigned to the computer you're on. When you're at a coffeehouse, the IP address you see will be different from the IP address you see at home, a hotel or an airport. Test it one day to see.
3. Whoever you interact with online could discover your IP address (if they know how to find it).
Your IP address isn't obvious to others, but it isn't hidden. A website's network administrator and technically savvy types can identify the IP addresses of computers that visit their websites or send emails. But all they can see is a number...the same one you see on WhatIsMyIPaddress.com.
4. Only an Internet Service Provider (ISP) knows the real name and home address that corresponds to an IP address.
They have to know, in order to send a bill for monthly Internet usage. However, they keep that information private and do not disclose IP addresses—or names and addresses of customers—to just anyone asking for it. However, they would disclose that information under subpoena to law enforcement agencies.


5. Your IP address NEVER reveals your name or actual, physical location.
If you click on the map on our home page, you'll see plenty of details (state, ISP, etc.), but no personal information.
6. Someone can get a general idea of where you are when you're online.
That's what the above map shows. Geolocation services can estimate where a computer user is, based on an IP address. All they need to do is record your IP address and use an IP Lookup service. However, they will still not know who the computer user is.
7. You can hide your actual IP address.
More accurately, you can show a different IP address from the one you're actively using. You can do that by using a Virtual Private Network (VPN). Think of it like having your mail sent to a P.O. Box instead of your home—you haven't moved; you're just using a different mailing address. Some VPNs are free, but the better ones charge a small monthly fee.
8. A website can monitor online behavior through online visits and viewing.
Advertisers use online tracking to place ads that might be of interest to website visitors. Website tracking systems can recognize visits by the same IP address and suggest ads for articles and topics that might interest the user behind the IP address…YOU.
9. Your IP address AND other information could lead someone to you.
If you revealed to someone your real name, your home city and perhaps sent them an email (that contained your actual IP address) from home, they could use all that information to discover your home address.
10. A VPN is the best and easiest way to hide your IP address.
Plus, it offers other online safety benefits, including keeping snooping eyes out of your computer, as well as your personal and financial affairs. 


Saturday, July 7, 2018

Who is a Software Developer?




A software developer helped design that. And when you roll into the office and turn on your computer, clicking and scrolling through social media, music and your personal calendar – software developers had a big hand in shaping those, too. You might spend your lunch shopping, and before you make that big purchase you check your bank account balance using your phone. Later, you're cooking a new recipe from that great app your friend told you about. As you look over the course of your day, you come to see that software developers are the masterminds behind the technologies you now can't imagine living without.

The best software developers are creative and have the technical expertise to carry out innovative ideas. You might expect software developers to sit at their desks designing programs all day – and they do, but their job involves many more responsibilities. 

Software developers invent the technologies that we sometimes take for granted every day. For instance, that app that rings, sings or buzzes you out of a deep sleep in the morning?

They (Software developers) could spend their days working on a client project from scratch and writing new code. But they could also be tasked with maintaining or improving the code for programs that are already up and running. Software developers also check for bugs in software. And although the job does involve extreme concentration and chunks of uninterrupted time, software developers have to collaborate with others, including fellow developers, management or clients. Developers are often natural problem solvers who possess strong analytical skills and the ability to think outside the box.

Software developers are in high demand right now. They're employed in a range of industries, including computer systems design, manufacturing and finance. The Bureau of Labor Statistics projects more than 30 percent employment growth for software developers between 2016 and 2026, which is much faster than average for all occupations. In that period, an estimated 253,400 jobs will open up.    


     

Monday, June 25, 2018

HOW TO CREATE A CALCULATOR USING HTML, CSS and JS

For many that wonders what HTML, CSS and Javascript can do, here is a little calculator you can build using the languages. These languages are not only made for web applications, you can lay your hands on building a simple calculator with it, even to an advanced one.

Look at the code below.


  1. <html>
  2. <head>
  3. <title>Calculator</title>
  4. <style>
  5. #text1,#text2{
  6.  
  7. }
  8. button{
  9. width:100%;
  10. height:100%;
  11. }
  12. </style>
  13. <script>
  14. function event1(x){
  15. document.getElementById("text1").value+=x;
  16. }
  17. function event2(){
  18. var x = document.getElementById("text1").value;
  19. document.getElementById("text1").value = eval(x);
  20. }
  21. </script>
  22.  
  23. </head>
  24. <body>
  25. <center>
  26. <table border="1">
  27. <tr>
  28. <th colspan=4><h1>Calculator</h1></th>
  29. </tr>
  30. <tr >
  31. <td colspan=4><input type="text" id="text1" placeholder="0" style="text-align:right;"/></td>
  32. </tr>
  33. <tr>
  34. <td></td>
  35. <td><button type="button" value="/" onClick="event1(this.value)">/</button></td>
  36. <td><button type="button" value="*" onClick="event1(this.value)">*</button></td>
  37. <td><button type="button" value="-" onClick="event1(this.value)">-</button></td>
  38. </tr>
  39. <tr>
  40. <td><button type="button" value="7" onClick="event1(this.value)">7</button></td>
  41. <td><button type="button" value="8" onClick="event1(this.value)">8</button></td>
  42. <td><button type="button" value="9" onClick="event1(this.value)">9</button></td>
  43. <td rowspan=2><button type="button" value="+" style="height:50px;" onClick="event1(this.value)">+</td>
  44. </tr>
  45. <tr>
  46. <td><button type="button" value="4" onClick="event1(this.value)">4</button></td>
  47. <td><button type="button" value="5" onClick="event1(this.value)">5</button></td>
  48. <td><button type="button" value="6" onClick="event1(this.value)">6</button></td>
  49. </tr>
  50. <tr>
  51. <td><button type="button" value="1" onClick="event1(this.value)">1</button></td>
  52. <td><button type="button" value="2" onClick="event1(this.value)">2</button></td>
  53. <td><button type="button" value="3" onClick="event1(this.value)">3</button></td>
  54. <td rowspan=2><button type="button" style="height:48px;" onClick="event2()" >=</button></td>
  55. </tr>
  56. <tr>
  57. <td colspan=2><button type="button" style="width:100%">0</button></td>
  58. <td><button type="button">.</button></td>
  59. </tr>
  60. </table>
  61. </center>
  62. </body>
  63. </html>

WHAT TO DO?


1. Just copy the code above into a file in any of your text editor like Notepad, Notepad++ etc.

2. save as calculator.html

3. Open in any browser of your choice..

Its as simple as that...

Watch out for more applications on HTML, CSS and JS on this platform... 

Feel free to share to any one that needs it.



Saturday, June 23, 2018

HOW TO CALCULATE AREA OF EQUILATERAL TRIANGLE IN C/C++





In geometry, an equilateral triangle is a triangle in which all three sides are equal. In the familiar Euclidean geometry, equilateral triangles are also equiangular; that is, all three internal angles are also congruent to each other and are each 60°.

I am going to show you in C and C++ how to find the area of a equilateral triangle... Follow the procedures below:



C CODE

#include<stdio.h>
#include<math.h>
#include<conio.h>
 main()
 {
   int side;
   float area;
   area= sqrt(3) / 4;
   printf("\nEnter the Length of Side : ");
   scanf("%d",&side);
   area = area*side*side;
   printf("Area of Equilateral Triangle %f",area);
   getch();
}

C++ CODE

#include<math.h>
#include<conio.h>
using namespace std;

 int main()
 {
   int side;
   float area;
   area= sqrt(3) / 4;
   cout<<"Enter the Length of Side : ";
   cin>>side;
   area = area*side*side;
   cout<<"Area of Equilateral Triangle is : "<<area;
   getch();
  
   }


WORKING AREA (IDE)
You can use any of the following IDEs to run your code
  • Netbeans for C/C++ Development. ...
  • Code::Blocks. ...
  • Eclipse CDT(C/C++ Development Tooling) ...
  • CodeLite IDE. ...
  • Bluefish Editor. ...
  • Brackets Code Editor. ...
  • Atom Code Editor. ...
  • Sublime Text Editor.

Feel free to drop your comments and suggestions.. 




Monday, June 18, 2018

JAVA VS PYTHON, WHICH ONE SHOULD I LEARN FIRST?



With regards to learning an object-oriented programming language, you may want to consider either Java or Python. While Python can be more easy to use than Java, as it has a more instinctive coding style, the two programming languages do have their one of a kind favorable circumstances for software engineers and end clients. In any case, in the event that you are simply starting your way towards a programming profession, you should need to begin by learning Python, as it is less complex. Then again, comprehend both will give you edge over your colleagues. In light of that, here are the primary similarities and contrasts.

Java

Java is unique in its own way and for an advanced programmer, no problem to use. The first Java version 1.0 was released in 1995. By 2004, Java 5.0 was released; this version saw the insertion of generics into the Java language, providing Java with more efficient code and type safety. To date, the latest version of Java is SE 8, and it made its debut in 2014.
Currently, it is widely used as the key programming platform on smartphones and tablets. Additionally, Java programming language forms a large part of the basis for Android’s operating systems. Java syntax is primarily a derivative from C++ and combines universal, organized and object oriented programming that offers automatic memory management. Using Java byte-code is advantageous to porting since it has similarities to machine code. Other benefits to Java include:
The features of Java language can be expressed below: 

simple. Java was designed with a small number of language constructs so that programmers could learn it quickly. It eliminates several language features available in C/C++ that are associated with poor programming practices or rarely used: goto statements, header files, structures, operator overloading, multiple inheritance and pointers. 

object-oriented. Java is an OOPL that supports the construction of programs that consist of collections of collaborating objects. These objects have a unique identity, encapsulate attributes and operations, and are instances of classes related by inheritance and polymorphism. 


distributed. Java is designed to support various levels of network connectivity. Java applications are network aware: TCP/IP support is built into Java class libraries. They can open and access remote objects on the Internet. 

interpreted. Java is compiled to bytecodes, which are interpreted by a Java run-time environment. 

robust. Java is designed to eliminate certain types of programming errors. Java is strongly typed, which allows extensive compile-time error checking. It does not support memory pointers, which eliminates the possibility of overwriting memory and corrupting data. In addition, its automatic memory management (garbage collection) eliminates memory leaks and other problems associated with dynamic memory allocation/de-allocation. 

secure. Java is designed to be secure in a networked environment. The Java run-time environment uses a bytecode verification process to ensure that code loaded over the network does not violate Java security constraints. 

architecture neutral. Java applications that are compiled to bytecodes can be interpreted by any system that implements the Java Virtual Machine. Since the Java Virtual Machine is supported across most operating systems, this means that Java applications are able to run on most platforms. 

portable. In addition to supporting architecture neutrality, Java ensures that other implementation-dependent aspects of language specification are eliminated. For example, Java specifies the sizes of primitive data types and their arithmetic behavior. 

high performance. Although Java is an interpreted language, it was designed to support “just-in-time” compilers, which dynamically compile bytecodes to machine code. 

multithreaded. Java supports multiple threads of execution (a.k.a., lightweight processes), including a set of synchronization primitives. This makes programming with threads much easier. 

dynamic language. Java supports dynamic loading of classes (a.k.a. “load on demand”), dynamic compilation, and automatic memory management (garbage collection). 

Python

Python was first released in 1989. As a high-level programming language, it makes a strong case for readable code. In addition to supporting object-oriented programming, it also supports imperative and functional programming. This multi-paradigm language is also structure supportive. It offers ‘meta-programming’ and ‘logic programming,’ as well as ‘magic methods.’ Other features include:
  • Strongly typed - Duck typing
  • Uses whitespace to convey the beginning and end of blocks of code.
  • Programs are small and therefore run much faster
  • You need less code to create a program
  • It is slow in execution
  • Compiles native bytecode
  • Object-oriented programming is optional
  • You can assign a string to a variable that once held an integer
  • Easier to read and understand relative to Java
  • It's not supported across a wide variety of platforms



KEY DIFFERENCES: DUCK TYPING
The biggest difference between the two languages is that Java is a statically typed and Python is a dynamically typed.
Python is strongly but dynamically typed. This means names in code are bound to strongly typed objects at runtime. The only condition on the type of object a name refers to is that it supports the operations required for the particular object instances in the program. For example, I might have two types Person and Car that both support operation "run", but Car also supports "refuel". So long as my program only calls "run" on objects, it doesn't matter if they are Person or Car. This is called "duck typing" after the expression "if it walks like a duck and talks like a duck, it's a duck".
This makes Python very easy to write and not too bad to read, but difficult to analyze. Static type inference in Python is a known hard problem. The lack of type information in function signatures combined with support for operator overloading and just-in-time loading of modules at runtime means that the most common type inference algorithms have nothing to work with until the point in the program's execution when the types are known anyway. The Hindley-Milner algorithm that is commonly used in functional languages like Haskell and ML depends on being able to know, for example, that certain operations are restricted to particular types. These languages also typically have function signatures that "seed" the algorithm with the type information for their arguments.
In Python, names have no strong binding to their type, and thanks to duck typing, function arguments can be used to pass in any object whose interface supports the operations required by the function. There is no reasonable way to determine the type of an argument in this case, which can be very powerful and convenient, and is a lot like how we use objects in the real world. In the real world I don't generally care if I have a rock or a hammer: both have "hit()" interfaces that result in similar consequences when called.
Classes in object-oriented languages are meant to model concepts, but concepts are purely mental constructs that are essentially attitudes toward the concrete stuff of reality. Duck typing reflects this fact nicely. An object doesn't have to "be" a particular type, it just has to be useable where a thing of that type might be useable. This can lead to surprises, but it's a more accurate reflection of the categorical fluidity of human thought than is the rigid hierarchy imposed by more restrictive type systems.

OTHER DIFFERENCES

Both of these development programs come with their strong suits. While Java allows you to enjoy cross-platform support, you can still execute Python on at least 10 different operating systems. You need to determine what your end goal is before you decide on which program to use. Java, however, is not recommended for beginners as it is a more complex program. Python is more tolerating and forgiving as you can take shortcuts such as reusing an old variable.
Additionally, many users find Python easier to read and understand than Java. At the same time, Java code can be written once and executed from anywhere. A benefit to the Java platform is that it lets you download questionable code and run it in a secure environment, which cannot affect its host system. Furthermore, Java is network-centric, meaning you can create network-based applications.
Whichever you choose to learn is based upon your preferences, determination, and background. If you already comprehend the basics of Python, you might want to expand upon your knowledge before moving on to Java. However, if you have the time and will, learning Java allows you to program for a wide variety of environments that might make it more fulfilling in the long run.

Sunday, June 17, 2018

HOW TO CUSTOMISE COOKIES ON YOUR BLOG/WEBSITE



Virtually all blogspot users are currently informed in their dashboards that European Union(EU) laws require all publishers to give EU visitors information about cookies used on their blogs. For this reason Blogger team has automatically added a notice bar on all blogs to help meet these regulations. This notice allows visitors and viewers know about Google's use of certain Blogger and other cookies used on these blogs, including Google Analytics and AdSense cookies. It is a publisher's responsibility to ensure that the Notification bar must be clearly visible on the blog and must not be disabled in any case using CSS or JavaScript unless the publisher is already displaying a custom bar notifying users about the use of cookies on his site.



In this view, if you have ever seen the above image on your blogger account! it very simple to install cookies as required by European Union laws. Just follow the following process. The same process goes for non-blogger users like wordpress and so on.


1. Log on to https://cookieconsent.insites.com/download

2. Follow the sequence as seen in the picture below




3. Copy the code and paste it just inside your head tag ---<head></head>


Look at the code below:

<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>

<!-- this is where you paste the cookies code you copied -->
</head>
<body>

<h1>Body Content</h1>
<p>Body Content</p>

</body>
</html>



4. Save and refresh your page... GOOD LUCK!!!


If this article was helpful, kindly drop your comment in the comment section below OR subscribe to our newsletter to get more educative IT information.




Saturday, June 16, 2018

WHICH PROGRAMMING LANGUAGE SHOULD I LEARN FIRST?



Learning new programming language can be so challenging, but when you don’t even know where to begin you can easily find yourself stuck in half-way. To start with, I conducted a research from a group of web developers and tech professionals where they recommend beginners start—and if starting with one programming language over another even matters.
Chase Bell, Co-Founder at Paq Bags, says he often gets asked what programming language to learn first, but this is actually the wrong question to ask.
“It doesn’t matter what language you start with,” says Bell, “as long it’s [in service of] something that interests you.” Unless your motivation for learning to code involves finishing a project or reaching a goal you’re passionate about, “you’re going to start to hate it,” Bell says.


Bell started coding by learning HTML and JavaScript when he wanted to fix a broken website slider (a website feature that rotates images and creates a slideshow) and from there he went on to establish a professional career as a developer. He suggests aspiring coders should find a problem that interests them, then research what language would be best to solve that problem. “For me, [the problem] was a broken slider,” Bell says, “but for you maybe [it’s] a one-page personal website or a simple mobile app.”
Michael Haapaniemi, Founder and CEO at Current Nightlife, remarks the idea of starting with a project goal and picking the right language from there. “Learning your first language is more about learning the basics of how coding works,” says Haapaniemi. The simple act of learning that first language—regardless of what it is—will give you a much easier time and flexibility when you’re ready to start a new one, since many coding languages are only separated by minor differences in syntax, he says.
Well, great: you can probably find a problem or part of a site you don’t like pretty easily. But if you’re brand new to coding, that next part—the solution—is probably a mystery. Here are some jumping off points if you’re confused about where to begin.

HTML and CSS

If you’re interested in developing websites, you’ll definitely inevitably be using HTML (HyperText Markup Language) and CSS (Cascading Style Sheets). HTML is the standard language used to create basic web pages, and CSS is a language used to add style (layout, color, fonts, etc.) to the documents you create with HTML. Since both languages are essential tools for web development, web developer Charlotte O’Hara recommends an HTML/CSS combo as the best place for aspiring coders to start.


According to O’Hara, HTML and CSS make up the base of all websites and applications, and if you think of them as building blocks—starting simply and moving up in complexity as you go—it makes them easier to learn. The two languages also complement each other, O’Hara says, giving you a foundation in website structure and design at the same time.
Mazdak Mohammadi, Web Developer at BlueberryCloud, recommends that you should practice HTML and CSS until you feel comfortable building a basic website. “You can create so much value with these skills alone, and charge for it,” says Mohammadi.
HTML was the first coding language that Mohammadi tried back in 2003. He learned HTML as a hobby in order to build fan websites for his favorite TV shows, and it eventually grew into a professional career. Today, Mohammadi is self-employed and enjoys maximum flexibility and freedom. “It’s so hard to find good [HTML and CSS coders], so go do it,” Mohammadi says. “Hone your skills, be better than the rest, and get paid well for it!”
If probably you may not be interested in becoming a web developer, HTML and CSS can still be vital skills to add to your tech toolkit. Ulysis Cababan, SEO Specialist at RapidVisa, says he learned HTML and CSS in order to communicate better with the web developers at his job. When it comes to optimizing a website “it’s…important for me to speak the developer’s language.” says Cababan. Learning HTML and CSS allowed Cababan to get a greater appreciation of the development process and cycles, and the more he learned, the more he was motivated to keep learning. After HTML and CSS, Cababan went on to learn PHP (Hyhepertext Preprocessor).

JavaScript


While HTML and CSS are foundational building blocks for creating web pages, JavaScript is a programming language that controls a site’s interactive elements. Pop-up ads, slideshows, search field autocompletes, and other web features that change without refreshing the page are all powered by JavaScript. HTML and CSS are often recommended as a starting point before moving on to JavaScript. However, James McCarthy, CEO and Lead Developer at Boldtask, says he started with JavaScript first.


According to McCarthy, JavaScript began its life with a reputation as a “front end toy” (a tool for adding bells and whistles to the visible part of a website), but it’s since become a respected programming language. What makes JavaScript an ideal starting point, McCarthy says, is its sliding scale of complexity. JavaScript is easy to jump into as a beginner but offers incremental levels of depth as your needs and experience increase.
Even if you don’t start with JavaScript, Pax Bhati, Senior Manager at EY, says that following marketplace trends is a good way to decide which programming languages to learn, and current trends favor JavaScript. For Bhati, JavaScript’s libraries (free repositories of pre-written JavaScript code, like jQuery) are a large part of what makes it an attractive language and he says that developers specializing in JavaScript are in high demand. Bhati started coding with PHP himself, but he says, “since JavaScript is the hot language now, even I’m learning JavaScript. You should always keep yourself up to date.”

Ruby/Ruby on Rails


Ruby is a programming language that’s easy to use but powerful enough to fuel websites like Hulu, Groupon, and GitHub. Ruby on Rails is a framework (a collection of code libraries) that allows applications written in Ruby to run on the Web. According to Marko Anastasov, Co-Founder at Rendered Text/SemaphoreCI, Ruby is an ideal first programming language for a number of reasons:
Firstly, Ruby is open source, meaning it’s absolutely free to use.
Secondly, it has a friendly and readable syntax. “Your first language shouldn’t feel intimidating,” says Anastasov, “and writing basic Ruby code can feel almost like writing plain English.” Anastasov says this is part of why Rails Girls (a worldwide, non-profit community that gives women tools to build their ideas) has had global success teaching programming with Ruby.


And third, Ruby has a mature ecosystem. Ruby on Rails has existed as a web framework for more than 10 years now, which means there’s a thriving catalog of tools and services that make it easier to build with Ruby, even if you’re inexperienced.
Ruby was the first programming language Anastasov learned outside of his college curriculum, and he credits it with helping him build his company. Its gentle learning curve and supportive community make it an easy to learn yet flexible and powerful tool for building websites and web applications.

There are tons of books you can get online. If you need any assistance for stating up your career as a web developer, contact olanrewajudavid@gmail.com  

To get more of this series, please comment below and subscribe to this blog for more updates.

Popular Posts