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.

Popular Posts