Friday, 24 June 2016


Published on 29/06/2016 at Dainik Deshonnati

Tuesday, 9 February 2016

Program in C to check the number is prime or not.


Solution:
As per the definition, a positive integer which is only divisible by 1 and itself is known as prime number. 

For example: 
Let, 13 is a prime number because it is only divisible by 1 and 13 but, 15 is not prime number because it is divisible by 1, 3, 5 and 15.

Program:
#include <stdio.h>
#include<conio.h>
int main()
{
int n, i, flag=0;
printf("\n Enter a positive integer: ");
  scanf("%d", &n);
  for(i=2;i<=n/2;++i)
  {
if(n%i == 0)
      {
      flag=1;
         break;
}
  }
  if (flag == 0)
      printf("\n %d is a prime number",n);
  else
      printf("\n %d is not a prime number",n);
  return (0);
}

Output 1:
Enter a positive integer: 17
17 is not a prime number

Output 2:
Enter a positive integer: 21
21 is a prime number

Hands on a Turbo C


Shortcut Keys for Turbo C


Turbo C is an Integrated Development Environment and compiler for the C programming language from Borland. First introduced in 1987, it was noted for its integrated development environment, small size, fast compile speed, comprehensive manuals and low price.
In May 1990, Borland replaced Turbo C with Turbo C++. In 2006, Borland reintroduced the Turbo moniker.

Versions:
1987 : Turbo C 1.1
1988 : Turbo C 1.5
1989 : Turbo C 2.0 (now with integrated debugger)
1990 : Turbo C++ 1.0
1991 : Turbo C++ 1.01
1991 : Turbo C++ 2.0
1992 : Turbo C++ 3.0
1996 : Turbo C++ 3.0 and Borland C++ 5.0
We have to use Keyboard Shortcut Keys to Speed up programming skills. I have selected list of most commonly-used keyboard shortcut keys for turbo C and C++.

Sr.No. Shortcut Key Operation   
01 Alt + F   Open file
02 Alt + F3     Close
03 Alt + F + N     New file
04 Alt + X         Exit turbo C
05 Alt + F5        Output Screen
06 Alt + F + L     Check program load or not
07 Alt + ENTER Full screen
08 Shift + Del     Cut
09 Shift + Insert  Paste
10 Ctr + Insert    Copy
11 Alt+F9        Compile a program
12 Ctr + F8   Break point
13 Ctrl+F9         To run a program
14 Ctrl+s          To save a program
15 Alt + BkSp Undo
16 Ctr + K + H   Deselect point
17 Shift+Alt+BkSp  Redo
18 Ctr + Del      Clear
19 Ctr + Y        Delete Line
20 Alt + F7        Previous Error
21 Alt + F8        Next Error
22 Ctr + F2      Program reset
23 F1              Help
24 F2              Save file
25 F3              Open file
26 F5      Minimize/Maximize
27 F6 Jump From One file to another
28 F7      Debug
29 F8      Step Over
30 CTRL + KB     Point to at start of a line to copy
31 CTRL + KK Point to the end of a line to copy
32 CTRL + KC Line of text to copy
33 CTRL + KV PASTE

*****************************************

Friday, 11 December 2015

Introduction to Ad-Hoc Network


Introduction to Ad-Hoc Network



According to Oxfords advanced learners dictionary an ad-hoc is defined as “Arranged or happening when necessary and not planned in advanced”. This explains what ad hoc networks are, to say networks set up on the fly for a special purpose. Furthermore ad-hoc networks are usually such networks that are set up for one time occurrences (temporary purpose) such as conferences or military operations.

In wireless computer networks, an ad-hoc mode is a method for wireless devices to directly communicate with each other. Performing in an ad-hoc mode allows all wireless devices within range of each other to discover, communicate and data share in peer-to-peer pattern without involving any centralized access points.

To set up an ad-hoc wireless network, each wireless adapter must be configured for ad-hoc mode versus the alternative infrastructure mode. In addition, all wireless adapters on the ad-hoc network must use the same SSID and the same channel number.



An ad-hoc network tends to feature a small group of devices all in very close proximity to each other. Performance suffers as the number of devices increases, and a large ad-hoc network quickly becomes difficult to manage. Ad-hoc networks cannot bridge to wired LANs or to the internet without installing a special-purpose gateway. 

“An ad-hoc network is a collection of mobile nodes, which forms a 
temporary network dynamically without used of any existing fixed 
network infrastructure or centralized administer”.

Due to limited communication range among mobile nodes, several other network nodes (which act as a router) may be needed to deliver a packet from one node to another node in the wireless network. In such a network each mobile node may acts as an end node as well as a relay node (router).
Ad hoc network is self organized network whose nodes are free to move randomly while being able to communicate with each other without the help of an existing network infrastructure.

The ad-hoc network generally refers as the networks in which all device nodes has equal status in a network and which can freely associate with any other ad-hoc network device node in link range. A wireless networks provide the ad hoc network which refers to a mode of operation of IEEE 802.11.
Networks are formed on-the-fly, devices can leave and join the network during its lifetime, devices can be mobile within the network, the network as a whole may be mobile and the network can be deformed on-the-fly. Devices in mobile ad hoc networks should be able to detect the presence of other devices and perform the necessary set-up to facilitate communications and the sharing of data and services.

According to the different application of ad-hoc network, there are mainly three classified types of an ad-hoc network formed.

1) MANET (Mobile Ad-hoc Network): 
The temporary network of more than one mobile devices for the communication.

2) VANET (Vehicular Ad-hoc Network): 
The temporary network of more than one moving vehicles on the road for communication.There may be communication in between vehicle to vehicle (V2V) or vehicle to any fixed infrastructure road side unit (V2I).

3) FANET (Flying Ad-hoc Network): 
The temporary network of more than one flying planes (Unmanned Aerial Vehicle - UAV) for communication. There is communication in between UAV to UAV or UAV to infrastructure at ground base station.

Tuesday, 29 September 2015

Introduction to WhatsApp

Introduction:
WhatsApp Messenger is a cross-platform mobile messaging app which allows you to exchange messages without having to pay for SMS. WhatsApp Messenger is available for iPhone, BlackBerry, Android, Windows Phone and Nokia and yes, those phones can all message each other! Because WhatsApp messenger uses the same internet data plan that you use for email and web browsing, there is no cost to message and stay in touch with your friends.
In addition to basic messaging WhatsApp you can create groups, send each other unlimited images, video and audio media messages.

Founder:

WhatsApp Inc. was founded in 2009 by US citizens Brian Acton and Jan Koum (also the CEO), both former employees of Yahoo!, and is based in Mountain View, California. The company employs 55 people. The company is currently in the process of takeover after Facebook announced acquisition of WhatsApp on Feb 19, 2014, for US$19 billion.

 

Technical:

       WhatsApp uses a customized version of the open standard Extensible Messaging and Presence Protocol (XMPP). Upon installation, it creates a user account using one's phone number as the username.

WhatsApp software automatically compares all the phone numbers from the device's address book with its central database of WhatsApp users to automatically add contacts to the user's WhatsApp contact list. Previously the Android and S40 versions used an MD5-hashed, reversed-version of the phone's IMEI as password, while the iOS version used the phone's Wi-Fi MAC address instead of IMEI. In 2012 update to generates a random password on the server side.

 

Platform Support:

After months at beta stage, the application eventually launched in

i) November 2009 on the App Store for the iPhone.

ii) January 2010, support for BlackBerry smartphones.

iii) May 2010, support for Symbian.

iv) August 2010, support for Android.

v) In 2011, support for Nokia Series40 & a month later Windows Phone.


Achievement: (Regular Users - 500,000,000)

Half a billion people around the world are now regular, active WhatsApp users. In the last few months, WhatsApp grown fastest in countries like Brazil, India, Mexico, and Russia, and users are also sharing more than 700 million photos and 100 million videos every single day.

Wednesday, 23 September 2015

Success Story of a Small Town Boy

Success Story of a Tenderbolt


              Sanmit Shah is from from Telhara, a Taluka in Akola District, Maharashtra. 26 years old Sanmit grew up in a humble family where education was held very highly and there were high hopes from him. His father is an Agriculturist while his mother is a homemaker. “I completed my S.S.C & H.S.C but was a pretty average student,” he says. His father wanted Sanmit to become a doctor but he wasn’t good with academics and scoring ‘marks’.
              Sanmit was creative and loved science, which led him to participate in NCSTC competition till National Level and he received the ‘Child Scientist’ award from GOI. But performance in school remained average and he couldn’t get through to MBBS, his father’s dream. “It was good in a way. We had to settle for Computer Engineering in St. Francis institute of Technology, Mumbai.
              This is when he got his first laptop and was introduced to massive, exciting internet. “I was amazed at how information is available free of cost and how business can be built using it!” says Sanmit. Through his college, he got a job at Mphasis which he did for three months. Not really interested in coding from a cubicle, Sanmit was thinking of ways in which a business can be built using technology. To gain more knowledge, he joined Edelweiss Broking Ltd. as an Equity Sales Executive. “I performed well in Edelweiss and later after three months joined Tendernews.com because of the concept they were working on,” says Sanmit.
              After three quick stints, Sanmit took some time out and decided to start up on his own. This is how TenderBolt came into existence in October 2012. His previous employer was certainly an influence with what he currently does. Registered as Ibay Solutions Pvt. Ltd., TenderBolt is a portal dealing in Global Procurement Information Business. They collect and consolidate Tenders, Projects, Procurement News, Contract Awards, RFQs, RFPs, from more than 10,000+ different sources, more than 150+ countries and provide this information to their clients (Global MNCs) through host of Online services like website access & Email Alerts within 24 hours.
Business Model:
              TenderBolt has an algorithm which goes through hundreds of sites and gathers information about tenders and contract awards. This information is then brought together into one consumable report. In the initial days, Sanmit floated around a few samples of the kind of reports they were offering and the clients found value in them.  He moved his business to Mumbai where he manages a team of 7 at the moment.
              TenderBolt works on an annual subscription model and takes advance from clients to subscribe to their services. Talking of the traction, Sanmit says, “Well, we launched our website in May 2013. It was difficult to grow in such competitive market but still we manage to do business of more than EURO 20,000 in the first 12 months.” Their ideal target market includes all global MNCs interested in tendering, but their focus is on Europe, Middle East & South East Asian companies. Sanmit started out with midsized European companies which were familiar with such services and then expanded.

Monday, 14 September 2015

To use the Pen Drive as a system RAM, perform the following instructions:



Attach the Pen Drive at least having memory of 1GB to the system USB port, After detection of Pen Drive, you should do the following things Carefully:




1) Go to My Computer and right click it, then go to the Properties,
2) now go to Advanced and then to the Performance settings,
3) Now again Advanced, and go to Change, in the Change, select the pen drive which u inserted. Then click on the Custom size and "check the value of space available",
4) Please Enter the Same in the Initial and Maximum Columns also.
5) Now your Pen drive space is used for the System Virtual Memory, Just Restart and enjoy the Faster and Furious PC.