Pages

Wednesday, April 16, 2014

How to Remote Control your Windows PC with Email or SMS

Learn how to shutdown or lock userr computer via email, Internet or SMS text messages from the mobile phone. You can take screenshots, terminate process or even get files via simple twitter commands.

It’s a long weekend and user’re happy because user’ll get to spend the next three days with userr family. You left the office in an excited mood but as the cab was approaching home, user suddenly realized that user forgot to shut down the Office PC. Oops!
It’s a sinking feeling because there’re so many confidential documents on the computer and since most of userr trusted colleagues have also left for the day, there’s no point calling them for help.
So what do user do? Drive back to Office? Well that’s not required – just take out userr cell phone or switch on the laptop at home, send an email (or an SMS or a tweet) and that will instantly lock userr Office workstation. And if user share the same computer with multiple people, user can use another email command to remotely log off or even shut down the computer from anywhere in the world.
There’s no magic here, it’s the power of TweetMyPC utility that lets user remote control userr computer from a mobile phone or any other Internet connected computer.
It works like this. You first install the free TweetMyPC utility on any Windows PC and associate userr Twitter account. The app will silently monitor userr Twitter stream every minute for any desktop commands and if it finds one, will act upon it immediately. The initial version of TweetMyPC was limited to basic shutdown and restart commands, however the current v2 has a far more robust set of commands, enabling a far more useful way of getting userr PC to carry out certain tasks especially when user’re AFK (Away From Keyboard).
Before we get started, it may be a good thing if user can set up a new twitter account for remote controlling userr desktop and also protect the status updates of this account to ensure better security.
Protecting the account means that user prevent other users from reading userr tweets which in this case are email commands that user sending to the computer. To protect userr Twitter profile, log in to Twitter with the credentials user want to use, click Settings and check the box next to "Protect my Updates".
Let’s get started. Install the TweetMyPC utility of userr computer and associate userr Twitter and Gmail account with the application. It will use Twitter to receive remote commands (like shutdown, log-off, lock workstation, etc) from while the email account will be used for send userr information (e.g., what process are currently running on userr computer).

How to Send Commands to the Remote Computer

Now that userr basic configuration is done, it’s time to set up a posting method. You can use email, SMS, IM, web or any of the Twitter clients to send commands to the remote computer.
By Email: Associate user Twitter account with Posterous (auto-post) and all email messages sent to twitter@posterous.com will therefore become commands for the remote computer. (Also see: Post to Twitter via Email)
By SMS: If user live in US, UK, Canada, India, Germany, Sweden or New Zeleand, user can send associate Twitter with userr mobile phone (see list of numbers) and then control userr remote computer via SMS Text Messages.
By IM: Add the Twitter bot – twitter@twitter.com – to userr list of Google Talk buddies and user can then send commands via instant message.
By Web:If user are on vacation but have access to an internet connected laptop, just log into the Twitter website and issue commands (e.g., shutdown or logoff) just as another tweet.

Download Files, Capture Remote Screenshots & more..

While the TweetMyPC is pretty good for shutting down a remote computer, it lets user do some more awesome stuff as well.
For instance, user need to get an unfinished presentation from the office computer so that user can work on it at home. Or user want to get a trial copy of Windows 7 on the Office computer while user are at home.
Here’s a partial list of commands that user can use to remote control the PC – they’re case-insensitive and, as discussed above, user can send them to Twitter via email, SMS, IM or the web.
Screenshot : This is one of the most useful command I’ve come across after the shutdown command. Want to know what’s happening within the confines of userr PC when user’re not around? Just tweet screenshot and TweetMyPC will take a screenshot of userr desktop and post it to the web (see example).
ShutDown, LogOff, Reboot, Lock : The function of these useful commands is pretty obvious from their names.
Standby, Hibernate : Don’t want to shutdown the remote PC? Save power by entering standby mode with this command. Or hibernate userr PC with a tweet, thereby saving even more power.
Download <url> : You can get any file from the Internet on to the remote computer using the get command. For instance, a command like gethttp://bit.ly/tCJ9Y will get the CIA Handbook so user have the document ready when user resume work the next day.
GetFile <filepath> : The Download command was for geting files from the Internet onto the remote computer. However, if user like to transfer a file from the remote computer to userr current computer, use the GetFile command. It takes the full page of the file that user want to get and will send that user as an email attachment. If user don’t know the file page, use the command GetFileList <drivename> to get a list of file folders on that drive.
GetProcessList : This is like a remote task manager. You’ll get a list of programs that are currently running on the remote computer along with their process IDs. Send another command kill <process id> to terminate any program that user think is suspicious or not required.
Conclusion:
TweetMyPC is a must-have utility and user never know when user may need it. And if user have been trying to stay away from Twitter all this time, the app gives user a big reason to at least create one protected account on Twitter.
That said, there’s scope for improvement. For instance, the app will wait for a minute to check for new messages in userr Twitter stream so it’s not "instant". The developers can actually increase that limit because the Twitter API now allows upto 100 checks per hour.
And since the app is dependent on Twitter and Gmail, it will not work during those rare fail-whale moments.
Read More..

Tuesday, April 15, 2014

Nokia Twist 7705 Review

http://www.hardwaresphere.com/wp-content/uploads/2009/09/nokia-twist-7705-cell-phone-thickness.jpg


Whats hot: Head turning design. Cool Habitat mode.
Whats not: Must twist open the phone to answer a call (unless youre using a headset).
line
CheckedSeptember 21, 2009 by Tong Zhang, Senior Editor
If you are looking for a phone that turns heads, the Nokia Twist 7705 will do just that. Shiny, unique and modern, the Nokia 7705 Twist makes the diminutive Motorola Karma and Verizon Blitz look like chunky monkeys. The Nokia has a swivel design and it feels natural to open the phone like fanning open a deck of cards. When the phone is closed, it looks like a makeup compact with a screen; but swivel open the QWERTY keyboard and the phone looks much more like a normal phone. A large LED-lit ring anchors the two panels and offers notifications in different colors.
Nokia Twist
The Nokia 7705 Twist is a digital CDMA phone with EV-DO Rev. 0 for data, and it’s exclusively available from Verizon. In addition to a roomy QWERTY keyboard, the Nokia Twist has a built-in 3 megapixel autofocus camera with video capture, aGPS that works with VZ Navigator, V CAST Music and Video and Bluetooth with A2DP. The phone runs Verizon’s UI and comes with the Polaris web browser that’s on many of Verizon’s feature phones.
Design and Ergonomics
The Nokia Twist 7705 is a perfect square when closed, measuring 2.71 x 2.71 x 0.59 inches. The phone feels small when it’s closed, but when the keyboard swivels out it actually feels very wide. It’s wider than the iPhone 3GS which is just about the widest phone currently on the market. The 2.4” landscape display dominates the front of the phone, but the large LED ring that anchors the two swiveling panels vies for attention. The LED ring can flash in different colors (6 colors) for different contacts (you can select ring colors in Contacts), and the ring can send notifications (missed calls, messages, etc.) by “breathing” the LED color of your choice. A normal d-pad lives in the center below the display, and two shoulder keys and the “CLR” key are touch sensitive keys with haptic feedback. The d-pad feels good to use even for gaming, but the touch keys are easy to press by accident. There are options that allow you to set the sensitivity and vibration feedback for the touch keys. There is also a proximity sensor above the screen.
Nokia Twist
The wide body affords the Nokia Twist a good size landscape display and a very roomy four-row keyboard with an additional launcher row above. The keyboard is extremely easy to use, and the keys have both a tactile click and audio feedback when pressed. The number keys are embedded in a block (phone dial pad arrangement), and those who favor large space bars on their mobile phones will appreciate Nokia’s keyboard. Dedicated launcher keys include messaging, music player, web browser, voice command (Nuance voice command onboard), speakerphone, camera/camcorder as well as call Send and End buttons. For mobile messaging addicts, the Nokia Twist offers one of the best keyboards in a mid-sized phone.
Nokia Twist
The Nokia Twist 7705 has minimal side buttons. Side ports include the charging port, the microSD card slot, the 2.5mm stereo headset jack and the volume rocker. There is also a holder for phone charms, and the speakerphone fires to the right through the speakerphone grille. The Nokia Twist comes with two back covers, one in black and one in purple. The back cover is easy to take off, just release the small latch to unlock the cover. The 3-megapixel camera with flash lives on the back of the phone, and when the phone is open, the back of the display panel does double-duty as a mirror.
Nokia Twist

Phone, Messaging and Web
The Nokia Twist 7705 has good reception, getting full 1X and 3 out of 4 bars of EV-DO in very strong coverage areas. The phone has not dropped a call but in spotty coverage areas it occasionally lost the EV-DO signal. Voice quality on both incoming and outgoing ends is good with clear audio and loud volume. The Nokia Twist supports common call management features such as call forwarding, 3-way calling and call waiting. It also works with Verizon’s Visual Voice Mail service (it’s not free), and the phone book can store 1,000 contacts. Habitat mode really stands out on this phone, and it comes with 2 themes and 400 avatars that you can assign to your contacts. The Habitat themes give you 3D visuals of your friends: when you select an avatar that represents a friend on screen, you’ll see a list of calls and messages between you and that friend. It’s a very cool social networking centric UI, but the phone slows down a bit when in Habitat mode.
Nokia Twist
The roomy keyboard on the Nokia Twist 7705 is perfect for messaging, and the phone serves up SMS, MMS, web-based email (Hotmail and AOL) and IM (MSN, Yahoo! and AOL). The Nokia supports threaded messaging which makes it easier to keep track of the conversations especially if you’ve got several of them going on at once.
Sorry Nokia web-kit based browser fans, the Nokia Twist 7705 doesn’t have Nokia’s browser. It comes with the Polaris 6.1 web browser found on most current Verizon feature phones. The web browser supports full HTML and can render web pages in a desktop style with images and tables intact. Web pages load reasonably fast and the browser offers options and setting for cookies, certificates, SSL and more. It’s not bad at all for a feature phone, but it’s not as awesome as web-kit browsers when viewing desktop formatted sites.
Nokia Twist
The phone comes with a second back cover thats purple.
Music and Video
The Nokia 7705 Twist is a good music phone if you have a Bluetooth stereo headset or can find a wired stereo headset that’s compatible with the Twist’s 2.5mm jack. The built-in media player can play music in MP3, WMA and AAC/AAC+ formats. The Nokia works with Verizon’s V CAST Music with Rhapsody, which means you can buy songs and download them over the air or via PC. The tunes download reasonably fast thanks to EV-DO 3G speed. The phone can store music either in internal memory or on microSD cards, and it supports high capacity cards (up to 16GB tested). The built-in speaker on the Nokia 7705 isn’t that big, and it doesn’t sound very loud nor very full as a result. We have a lot of wired headsets in our toy box, but we couldn’t find one that worked with the Twist (Verizon does list 2 Motorola stereo wired headsets as compatible with the Nokia). We tested the phone with several Bluetooth wireless headsets including the Jabra HALO and the Samsung SBH-500, and the audio quality was excellent and volume super loud. If you plan to listen to music on the Nokia Twist, both these Bluetooth stereo headsets will provide excellent audio quality.
The Nokia Twist 7705 also works with Verizon’s V CAST on-demand video services. The phone has very good performance in video playback and the landscape screen is handy for full screen playing mode. V CAST on-demand videos look smooth with audio in sync to the video. There are occasional frame drops and refresh delays in full screen mode, but most videos are very watchable.
Nokia Twist
GPS
The Nokia 7705 has built-in aGPS that works smoothly with Verizon’s VZ Navigator. The landscape screen is good for viewing maps and is viewable outdoors as long as it’s not directly in sunlight. The phone gets fixes fairly quickly and navigation calculations are reasonably fast. The Nokia Twist had no problem following us driving and the turn-by-turn directions were accurate. The phone’s speaker wasn’t very loud and we did have some trouble hearing it on a busy highway, but it sounded fine for city streets. VZ Navigator isn’t free, but it offers 2D and 3D maps, trip planning and navigation, re-routing and traffic check in real time and allows sharing locations with family and friends.
Camera
The Nokia Twist 7705 has a 3-megapixel camera that offers auto focus mode and flash. It’s interesting that you can turn the auto focus feature on and off, and auto focus doesn’t make a huge difference in picture quality. The Nokia 7705 takes good but not exceptional photos by 3-megapixel camera phone standards. The images have saturated colors and look balanced, but some outdoor shots have inconsistent exposure. Indoor shots look good and the flash is really bright and effective for taking good photos in low-light environments. In general, pictures taken with the Nokia look sharp and pleasing. The camera software offers white balance, color effects, capture mode, shutter sound and other settings.
The Nokia 7705 Twist can also take video with audio. MMS videos are 176 x 144 pixel resolution and max length videos are QVGA. The video looks smooth and the audio is in sync with video.

Battery Life
The Nokia Twist 7705 has a rechargeable Li-Ion battery (model BL-4C) that’s user replaceable. Battery life isn’t stellar with 860 mAh in capacity especially if you use EV-DO for music download or watching V CAST Video frequently. The claimed talk time is 4.5 hours and claimed standby is 13 days. Our battery tests showed the claimed numbers were overly optimistic, and we only reached about 4 hours of talk time and a week of standby. Using GPS navigation and watching V CAST video will drain the battery at an accelerated speed. If your daily usage includes these tasks, get yourself an extra battery if you are on the road a lot.
Conclusion
Nokia doesn’t make many CDMA phones, and the Nokia Twist is a winner. The phone has a unique design that should please those who want something unusual and fashionable. It’s also great for texters thanks to the excellent keyboard. The LED ring is fun and the Habitat mode makes it easy to keep track of your communications with friends and family. With GPS and real time navigation, V CAST music and video, a full HTML browser and messaging onboard, the Nokia Twist 7705 is a good all around phone with a form that looks unlike anything else on the market.

Price: $99.99 with 2-year contract after discount.



Specs:
Display: 2.4” QVGA 262K color TFT screen. Resolution: 320 x 240 pixels.
Battery: Lithium Ion rechargeable battery, 860 mAh, user replaceable. Claimed talk time: up to 4.5 hours. Claimed standby time: up to 13 days.
Performance: 128MB internal memory. Phone book can store 1000 entries.
Size: 2.71 x 2.71 x 0.59 inches. Weight: 3.44 oz.
Phone: Digital CDMA phone 1X-EV-DO Rev. 0.
Camera: 3 megapixel with flash. Still image resolutions: 2048x1536, 1280x960, 800x600, 640x480, and 320x240. Can take video with audio. Video resolutions: 320 x 240 and 176 x 144 pixels.
Audio: 72 chord Polyphonic/MIDI/MP3 sound support. MP3 player onboard to play music in MP3, AAC, AAC+ and WMA formats. Mono speaker and 2.5mm stereo headset jack. Supports A2DP Bluetooth stereo.
Networking: Bluetooth v2.1 + EDR. Bluetooth Profiles: Headset, Hands–free, Dial–up Networking, Stereo, Phone Book Access, Basic Printing, Object Push (for vCard & vCal), File Transfer, Basic Imaging. USB 2.0.
Software: Verizon UI with Habitat mode. Polaris 6.1 HTML browser, Web-based email and IM on board. PIM tools include Contacts, Calculator (Basic & Tip), Converter, Calendar, Calendar Pnews, Alarm Clock, World Clock, Stopwatch, Notepad, and USB Mass Storage.
Expansion: 1 microSD card slot. Supports SDHC cards.
In the Box: The Nokia 7705 Twist phone with standard battery, AC charger, an extra back cover and printed quick reference guide.
                                                                  ( Author : Tong Zhang, Source : mobiletechnews ) 
Read More..

Monday, April 14, 2014

Bubble sort algorithm with time complexity calculation


//Bubble sort algorithm implementation. Also calculate time complexity.
#include<stdio.h>
#include<conio.h>
void main()
{
 int a[100],temp,i,j,n,count;
 count=0;count++;
 printf("Bubble Sort
Enter total no. of values: ");

 {
  scanf("%d",&n);
  count++;
 }
 printf("Enter the values:-
");

 for(i=0;i<n;i++)
 {
  scanf("%d",&a[i]);
  count++;
 }
 for(i=0;i<n;i++)
 {
  for(j=i;j<n;j++)
  {
   if(a[j]<a[i])
   {
    temp=a[j];count++;
    a[j]=a[i];count++;
    a[i]=temp;count++;
   }
   count++;
  }
  count++;
 }
 printf("Bubble-Sort result:-
");

 for(i=0;i<n;i++)
 {
  printf("%d ",a[i]);
  count++;
 }
 printf("
Time Complexity is: %d",count);

 getch();
}
//program written by Mars.
Read More..

Sunday, April 13, 2014

Telecommuting With Voip Phone Systems For Business Austin

By Nelda Powers


There are many reasons why many individuals seek to make use of phone systems for business Austin. Hence many people are wondering how they can use telecommuting. It is no wonder many businesses have started to make the switch in their telecommunication gadgets to ones which will allow more employees to work from home.

Buy into features which is appropriate to your enterprise conditions and budget. The bottom-line will be to generate more revenues soon to have the enterprise still living and kicking for several years. Examining the system to obtain trial time periods and demos before you pay for it. You need to have the system as a way to determine its appropriateness to the enterprise demands, simple to use, quality of calls, and also the benefits such as voice mail.

There are many benefits to the company which allows employees to work from home using these modern communication gadgets. In addition to happy employees, there is also the ability save on office expenses. Happy employees also equate to better productivity.

Additionally, telecommuting means it is possible for businesses to hire employees from anywhere in the world. With all of the different benefits being offered, it is no surprise more businesses have started to turn to VoIP communication gadgets to help with better telecommuting options. When you allow your employees to work from home using VoIP communication gadgets, it is likely that they will appreciate the switch.

When automatic attendants and call forwarding are wonderful characteristics for a virtual PBX procedure, most providers do not get all of their incoming communication from mobile telephone devices alone. The company still employs a fax machine in some ability. The integrated virtual fax attribute of a virtual PBX technique would make it significantly less complicated to deliver and acquire faxes, as it utilizes the current Online connection of a corporation to give a total vary of specialist fax features.

Incoming faxes can be directed to employees email addresses in the form of frequent workplace paper forms. Once again, this recommends more versatility and superior association, the two important things for a small enterprise. Outgoing faxes can be checked and standardized with combined digital fax.

Also, request a quote for each and every plan for you to definitely examine and evaluate. You should picking the service provider. The most significant step after you have decided to upgrade your enterprise telephone system.

By not having to have all of your employees in the same office, you can cast a wider net when searching for those you will hire. The VoIP phone systems for business Austin residents would make it possible to hire anyone in the world and make it seem as if they are working right in the office along with you. The PBX can be set up in such a manner that even if customers or clients are calling a number in one country, the extension can actually lead them to another country without an additional expense to the client or to the business. You can hire the professionals you actually want rather than those who are available.




About the Author:



Read More..

Factors To Consider When Choosing The Finest PC Service Atlanta

By Jeannie Chapman


In this modern era, computers are virtually as important as any other gadget. Most people use them to save critical information. However, this does not mean that every one of these people knows how to repair them when they break down. Therefore, when these gadgets get faulted, it is important to choose the best pc service Atlanta people trust.

There are many companies that offer computer support. On the other hand, not all of them will give you a warranty once they are done with their repairs. To be on the safe side before recruiting a support company, you to check if the company will offer you any guarantee when they work on your computer. If not, then opt for another that can offer you one.

For instance, one must consider a few things before even thinking of getting to an expert. One should try to find out where the problem originated. For example, a computer not starting would be because the power cable is not plugged. Alternatively, the computer display may hang due to low disk space. It is important to at least run basic diagnostics before thinking of an expert.

If the diagnosis does not yield any fruits, then expert intervention is required. This begs the question of who to trust with the computer. To begin with, experts are all over town, but the qualified ones are not just found on a website. This is because almost everybody uses the internet to advertise their products and it is very easy to land on fraudsters if not careful.

First thing should be contacting the manufacturer of the particular electronic in question. If their assistance is not satisfactory, then you should consider involving professionals. They could be companies or individual experts. You can find them from their websites online or advertisements.

The cost of repairing the computer is also another major factor. Some companies charge quite a lot of money even for small repairs. With proper research, you will definitely find other companies that offer relatively the same services, but on a much lower cost. However, you should not base your judgment entirely on costs. At times low costs translate to poor services.

Once the cross checking is over, go on and select the company that most fulfills your needs. Go through their terms of service and requirements so as to be sure of what you are getting into. Once you are done with the procedures, you can offer them your machine and wait patiently as they resolve the problem. Most companies will call you to pick it once they are done.

Computers have become a part of the day-to-day lives of many people. Therefore, when you find yourself in stuck and in need of pc service Atlanta is the right place to get an expert. Many people are out there to make the extra cash from unsuspecting clients that are desperate for assistance. It is better to spend a little more time researching for better quality experts.




About the Author:



Read More..

Saturday, April 12, 2014

Using Virtual Base Classes to Avoid Ambiguity

Let’s start this with the following example program:



// this program contains errors
#include<iostream.h>

// base class
class base
{
public:
int a;
};

// derived class (1)
class derived1:public base
{
public:
int b;
};

// derived class (2)
class derived2:public base
{
public:
int c;
};

// derived class (3)
class derived3:public derived1, public derived2
{
public:
int d;
};

// main
void main()
{
derived3 ob;

// this is ambiguous
// since two copies of
// base is present in
// the class derived3
// one from derived1 &
// the other from derived2
ob.a=10;
}


The program above contains an error (as stated) in the following line:


ob.a=10;


Since the base class is inherited by the two classes (derived1 and derived2),
which are again inherited (both together) by another class derived3, there are
two copies of the base class (and hence two copies of variable ‘a’
too).


Therefore when we refer to the variable ‘a’ with respect to the
derived3 class then as there are two copies of it, it becomes ambiguous or confusing
for the compiler to select one from the two and hence it is reported as an ERROR.


This is very common error which creeps in when you write long and complex program
consisting of classes some of which are hierarchically inherited.


So how can we prevent this from happening?


Actually, we can prevent this by using the scope resolution operator but this
is not a permanent solution besides having other flaws. Then what else can we
do?


Yeah, you guessed it right; Virtual Base Class is he answer.


Now, have a look at the same program with slight modification (as to apply
the virtual base class method), now it’s perfectly all right!



// Virtual base classes
#include<iostream.h>

// base class
class base
{
public:
int a;
};

// derived class (1)
// notice the use of virtual keyword
class derived1:virtual public base
{
public:
int b;
};

// derived class (2)
// notice the use of virtual keyword
class derived2:virtual public base
{
public:
int c;
};

// derived class (3)
class derived3:public derived1, public derived2
{
public:
int d;
};

// main
void main()
{
derived3 ob;

// now its O. K.
ob.a=10;
}


As you can see, we’re using virtual keyword to derive the classes (derived1
and derived2) from the base class.


This prevents other inheriting classes (which inherits more than one such derived
classes) to have only one copy of the base class and hence ruling out chances
of ambiguity.


Please note that the derived classes (derived1 and derived2 individually) still
contains one-one copy of base class, it is only when they are inherited is the
virtual nature comes into action.


We conclude this article with the following example program to illustrate all
that we have discussed so far in this article.



// Virtual base classes
#include<iostream.h>

// base class
class base
{
public:
int a;
};

// derived class (1)
// notice the use of virtual keyword
class derived1:virtual public base
{
public:
int b;
};

// derived class (2)
// notice the use of virtual keyword
class derived2:virtual public base
{
public:
int c;
};

// derived class (3)
class derived3:public derived1, public derived2
{
public:
int d;
};

// main
void main()
{
derived1 ob1;
derived2 ob2;
derived3 ob3;

// derived classes still
// contain one-one copy
// of the base class
ob1.a=10;
ob2.a=20;

// but the class derived
// form the classes of
// the above two objects
// contains only one copy
// of the base class
ob3.a=100;
}


Related Articles:


Read More..

Friday, April 11, 2014

C program to find Fibonacci Series with understanding logic

Fibonacci Series or Sequence
The Fibonacci numbers or Fibonacci series or Fibonacci sequence has first two numbers equal to 1 and 0 and the further each number is consist of the addition of previous two numbers
  1st number = 0
  2nd number = 1
  3rd number = 0+1= 1
  4th number = 1+1= 2
  5th number = 1+2= 3
  And so on.  

 The Fibonacci Sequence can be written as  0,1,1,2,3,5,8,13........



 C++ program to find Fibonacci Series upto given range.This C++ program use simple logic to get the about of writing code in C++ for Fibonacci Series
  1.     #include<iostream>
  2.     using namespace std;
  3.     int main()
  4.     {
  5.        int range, first = 0, second = 1, fibonicci=0;
  6.        cout << "Enter Range for Terms of Fibonacci Sequence: ";
  7.        cin >> range;
  8.        cout << "Fibonicci Series upto " << range << " Terms "<< endl;
  9.        for ( int c = 0 ; c < range ; c++ )
  10.        {
  11.           if ( c <= 1 )
  12.              fibonicci = c;
  13.           else
  14.           {
  15.              fibonicci = first + second;
  16.              first = second;
  17.              second = fibonicci;
  18.           }
  19.           cout << fibonicci <<" ";
  20.        }
  21.        return 0;
  22.     }

  Fibonacci Series program logic explanation
  • Before writing C++ code we understand that what is Fibonacci Series and in what sequence numbers are occurs
  • After understanding mathematically Fibonacci series completely we thought it in the form of C++ code
  • The Fibonacci series is infinite but we cant make a program that display an infinite output
  • In above program we take input the range in integer upto which Fibonacci series will be displayed
  • For this purpose a for loop has been taken which starts from 0 and terminates less than range for example if Input is 5 then for loop will run from 0 to 4.
  • In for loop if  variable c is  less or equal than 1 in this case if statement  will be executed  and if  c is greater than 1 else part will be executed for greater than 1
   e.g if range=2 than only
   if part will run.   let input is equal to 5
   Before loop variables values


   first = 0, second = 1, Fibonacci=0;
   After input range=5
   Values are changing in the following sequence
   in below table  c   representing the for loop iterations
   c    first    second   Fibonacci    Output
  

   0     0         1                 0           0 

   1     0         1                 1           0 1
  
   2     0         1           0+1=1         0 1 1
        
          1          1                1           

   3     1         1           1+1=2         0 1 1 2
     
          1         2                  2

   4    1         2             1+2=3         0 1 1 2 3  its final output
   
         2         3                  3      


     

Image View Of  Program (Click on Image To Enlarge)
Fibonacci series in C++ image Code

Fibonacci Series In C++ Programming
Fibonacci series C++ Code


If you have any queries comment below.
Read More..

Support for CSS class tags

In an earlier post I described how Run BASIC can use the DIV and CSS statements to style a web page. That works well for styling the different parts of a web page, but not for styling individual things on a page.

One new addition to Run BASIC is the ability to add a CSS class tag to an object on a web page, so that it can be manipulated.

For example the following would create a link and set a class to "button".

link #doMyBidding, "GO", [go]
#doMyBidding cssclass("button")

And the following statement would add the CSS needed to style the link (or any object that has the class tag "button"):

cssclass ".button", "{ put some css styling in here }"

Here is a link to a video demonstrating how this all works.

http://www.youtube.com/watch?v=1qomg67VdF0
Read More..

Thursday, April 10, 2014

How Can A Free Reverse Cell Phone Number Look Up Benefit You

By Cedric Bartoo


Periodically a download of charge reverse cell look up service can benefit you. As an example, you might be in the middle of a critical meeting and a person calls you merely to hold up prior to deciding to answer the phone call. You delay forever for him to call you back however, there is nothing. Since you are driving somewhere, a trip will come in suddenly. When you want to resolve it, the phone stops ringing. You want to call back the individual nevertheless, you cannot see his number. All you could see on the display is private number calling without number whatsoever.

Its likely you have been a victim for these a theft. Similar with other women, you could have kept all your personal belongings like cellphone and purse within it. So, now, there is the hassle of being forced to find all of the contact names and corresponding numbers, until you took the precaution of creating a backup copy on your hard drive. Many people dont take into consideration making a backup copy of their cell contact list. Perhaps, simply because they dont have knowledge of how without headaches it is to do this.

In terms of a police report, no end with creating a report. You will find the time for it to be spent for following high on the problem. Regardless of whether you can see the persons number you arent. Setting up a police report isnt be considered a good step unless you do not mind enduring all the hassle of doing so. The better option will be to wait for the person to you together with ask because of their name at the very least.

The true secret is to discover paid site, that is reputable with higher reviews. People change their cell numbers on occasion. The cell phone companies tend not to delete the existing numbers from other system. Instead they recycle the previous numbers. Quite simply, someone else using a different name may be while using cell phone number you want to test, unless the site that offers the paid cell lookup service updated its search system. So, look for a site that offers a regularly updated search system to achieve accurate specifics of the cell number you are keen on checking.

By using a site with a huge database is often a victorious one so you can get accurate details about a particular cell phone number. How do you determine if they have a large database? One smart way is to see its site and check out the offered services. If the site offers other services like neighborhood check and criminal record check or a paid cell lookup service, you can find high chances how the database for cell lookup is big. It also ensures that the database available from this type of site could possibly be reliable.

Indeed, utilizing a track cell number download service is very tempting. However there are certain risks if you do this. You have the potential for malware infecting your laptop or computer. As there are the issue of whether or not the provided details are reliable you arent. This is applicable to both paid and download cell lookup service.




About the Author:



Read More..

Wednesday, April 9, 2014

Buying Car Laptop Desks At Pro Desks American Stores

By Merv Carlson


Thanks to technology improvements such as laptops, peoples work and study are becoming simpler. In recent times, any time coming to a workplace, you can easily notice many different modern gadgets like laptops, iPads, smart phones, wireless printers, and so on. The nice thing about these units is that they are wireless so they can be taken with you on the go, even when youre in a vehicle. You can not put the mobile computer on your lap while youre driving. Here is where car laptop desk comes into play. A vehicle laptop desk will provide users with the full comfortable access to their laptops while they are in their cars or cars.

The benefits laptops can bring to people in this high-tech modern world are indisputable. The usefulness and mobility have made laptops develop into a must-have piece for a number of people, particularly for businessmen. Nevertheless, unsuitable posture while using laptops may result in health issues for laptop users. People can experience back pain, eye strain and also neck pull if they work on the laptops for long hours.

Pro Desks provides perfect mobile computing solutions. The company is located in North America but they ship their products around the world. These laptop mounts can easily fit with all GMC as well as the Chevrolet cars. If you do a quick research, you can find some of their most powerful car computer stand models such as the Enforcer II, the Navigator, the Enforcer. No other products made by competitors can be compared to the Enforcer II in terms of having advanced features and durability. It is the advanced features that make the Enforcer II gain such good rating on the market. This typical car laptop holder fit laptop of all sizes, including the ones with widescreens. Additionally, it can also accommodate laptops that were ruggedized without any problems. Take note that this laptop desk is basically an interchangeable base plate, thus you can move it to a different vehicle if needed. This car laptop holder is a wise investment since you will not to change the mount when you change your car models. Just remove and re-install the mounting system using the tools provided, use suitable base and you are done.

Now we take a closer look at the features of the Pro Desks Mongoose. Pro Desks Mongoose car laptop desks easily stand out from other products made by competitors in terms of quality and durability. You can find no other car laptop desks which have more advanced features than the Mongoose. One of the most impressive features is the 360 degree rotating pedestal arm holding the slide. It fits well with laptop of any sizes, including the 17 widescreen ones. One more innovative feature of the Mongoose is the custom base plate. Mongoose is a no-drilling car laptop desk, which means no modifications will be done to your car while the Mongoose is being installed. Mongoose is also referred to as a "seat rail desk".

The Pro Desk Navigator is considered as a very durable laptop desk for cars. This laptop desk is specifically designed in order to provide years of service since it can also be removed from one vehicle and transferred to another. You just need to remove the base and then install it to the new car. This is a no-drilling product so no car modifications are required. You can have a passenger as usual without worrying that the desk system will affect the movement of him. Your passenger can comfortably work on the laptop. He just needs to adjust the position a little bit.

The Pro Desks Navigator is best suited for people who work in fields which require on-site work such as supply sales professionals, utility companies and services. Almost all on-the-go professionals will benefit from this laptop mount. With the advanced locking system, this car laptop holder has the best theft protection feature on the market.




About the Author:



Read More..

How Top Rated St Petersburg Marinas Provide Winterization Solutions For Boat Owners

By Jessie Drolet


Sailing is truly a fun-filled pastime. It is a great enjoyment you can have with friends and family. It is a great way to enjoy the sun and water. It is however, quite a seasonal activity. It may not be feasible to go sailing during the winter months. During the cold season, it would be a good idea for you to look into winterization services of St. Petersburg marinas.

A boat can incur quite a bit of damage, especially if you leave it out during the winter season. With lesser use of it during this time, having your vessel dry stored is a good idea. You will be able to avoid getting it damaged by both sea water and the harsh weather.

A vessel such as this has several complex systems that could be adversely affected by weather. Having your yacht dry stored will avoid this during the times that it will not be getting much use. Thus, it is best to look into winterization methods that these marina companies provide.

Using specialized storage racks, you can have your yacht stored above the ground to minimize damage. It will be lifted out of the water using special lift trucks that can do this task safely. These trucks will take the boat out of the water and position it on the racks. You can opt for either indoor or outdoor storage.

This is also a perfect time for you to have maintenance services done on your yacht. These professionals will be able to look into all the boats parts and equipment and conduct any repairs if needed. By doing so, your boat is brought back to its top condition.

There is no need to risk having your sailing vessel damaged during winter. St. Petersburg marinas offer winterization services that will keep your boat protected. They will also bring your boat back to its prime condition with maintenance servicing while in storage. Having your boat stored will cost much less than having to repair damage caused by being exposed during the winter.




About the Author:



Read More..

Tuesday, April 8, 2014

Read and print string

Q. Write a simple C program to accept your name and print it.

Ans.

/*c program to introduction of string*/
/*c program to accept your name and print it*/
#include<stdio.h>
#include<conio.h>
int main()
{
 char str[30];
 printf("Enter your name : ");
 gets(str);
 puts(str);
 getch();
 return 0;
}

/***************Output*******************/
Screen shot for read and print string via gets() and puts()



/*Another way to write above program to intro of string*/
#include<stdio.h>
#include<conio.h>
int main()
{
 char str[30];
 printf("Enter your name : ");
 scanf("%s", &str);
 printf("Your name is %s",str);
 getch();
 return 0;
}


/***************Output*******************/
Screen shot for read and print string via scanf() and printf()


Related Programs:
Read More..

A Simple Pong Game using JavaScript

Pong Game in JavaScript Screenshot


Having the knowledge of moving images using JavaScript, we’ll be creating a small Ping Pong game as an example for this post.


Today we’ll learn to do a few new things in JavaScript:


1. Executing some code every specified time interval (for game loop).

2. Tracking and using mouse movements.

3. Attaching code (function) to events.


Game Theory


As you should be knowing, in this game there is one ball and two paddles at two ends. One is user-controlled the other, for this example, is CPU controlled. User has to move the paddle in order not to let the ball pass through, CPU also has to do the same thing. Whoever’s side the ball passes through looses the game.


There are a few objects which can interact with each other, these are ball, paddles, walls. Let’s see the various interactions that can take place between these:




  1. Ball Hitting Upper/Lower Wall – Ball will bounce off.




  2. Ball Passing Through Either Side – Player or CPU, depending on whose side ball passed through, will loose the game.




  3. Ball Hitting Paddle – It’ll bounce off




We’ll need to take care of these events:




  1. Page Load – Game objects will be initialized




  2. Game Start – Mouse click on the player paddle will start the game.




  3. Mouse Movements – Inside the game area (a div), the paddle will follow the y-position of the mouse. Paddle however should not get past the boundaries.




  4. CPU Paddle – The paddle will follow the ball by moving up/down depending the relative position of the ball. We’ve added a little intelligence by only moving the paddle while ball is coming towards it. This will make the movement as well as the game look more real.




Code


NOTE: Put two files ball_small.png, paddle.png (Right-Click "Save As") in the same directory the script is in.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pong Game In JavaScript</title>

<style>
#box
{
width: 500px;
height: 300px;
margin: auto;
border: 5px solid #ccc;
position: relative;
overflow: hidden;
}

.ob
{
position: absolute;
border: 0px;
}
</style>
<script type="application/javascript">

// CHANGE THESE, IF REQUIRED
var Speed = 5; // Speed of ball (pixels/step)
var CPUSpeed = 5; // Speed of CPU Paddle (pixels/step)

// Short references to objects
var paddle1;
var paddle2;
var ball;
var box;
var msg;


// For internal use
var dx, dy; // Speed in x and y directions
var ballX, ballY; // x and y positions of ball
var playerY; // y position of player paddle (x fixed)

var cpuY; // y position of CPU paddle (x fixed)
var iID; // To store ID of set interval used to clear it when required

// Attach a function to onLoad event
window.onload = Init;

// INITIALIZE GAME OBJECTS
function Init()
{
// Make short refrences to objects

paddle1 = document.getElementById(paddle1);
paddle2 = document.getElementById(paddle2);
ball = document.getElementById(ball);
box = document.getElementById(box);
msg = document.getElementById(msg);

// Initial values
ballX = (box.offsetWidth / 2) - (ball.offsetWidth / 2);
ballY = (box.offsetHeight / 2) - (ball.offsetHeight / 2);
cpuY = (box.offsetHeight / 2) - (paddle2.offsetHeight / 2);
playerY = (box.offsetHeight / 2) - (paddle1.offsetHeight / 2);
dx = dy = Speed;

paddle1.style.left = 20 + px;
paddle1.style.top = playerY + px;
paddle2.style.left = box.offsetWidth - (20 + paddle2.offsetWidth) + px;
paddle2.style.top = cpuY + px;
ball.style.left = ballX + px;
ball.style.top = ballY + px;

// Show message

msg.innerHTML = <h2>Click on Paddle to Start Game.</h2>;
}

// START GAME
function Start()
{
// Attach a function to onmousemove event of the box
box.onmousemove = MovePaddle;
// Call GameLoop() function every 10 milliseconds

iID = setInterval(GameLoop(), 10);

msg.innerHTML = ;
}

// MAIN GAME LOOP, CALLED REPEATEDLY
function GameLoop()
{
// MOVE BALL
ballX += dx;
ballY += dy;

// See if ball is past player paddle

if(ballX < 0)
{
clearInterval(iID);
Init();

box.onmousemove = ;

msg.innerHTML = <h2>You Loose!<br/>Click on Paddle to Re-Start Game.</h2>;
}

// See if ball is past CPU paddle

if((ballX + ball.offsetWidth) > box.offsetWidth)
{
clearInterval(iID);
Init();

box.onmousemove = ;

msg.innerHTML = <h2>You Win!<br/>Click on Paddle to Re-Start Game.</h2>;
}

// COLLISION DETECTION

// If ball hits upper or lower wall
if(ballY < 0 || ((ballY + ball.offsetHeight) > box.offsetHeight))
dy = -dy; // Make x direction opposite

// If ball hits player paddle

if(ballX < (paddle1.offsetLeft + paddle1.offsetWidth))
if(((ballY + ball.offsetHeight) > playerY) && ballY < (playerY + paddle1.offsetHeight))
dx = -dx;

// If ball hits CPU paddle
if((ballX + ball.offsetWidth) > paddle2.offsetLeft)
if(((ballY + ball.offsetHeight) > cpuY) && ballY < (cpuY + paddle2.offsetHeight))
dx = -dx;

// Place ball at calculated positions

ball.style.left = ballX + px;
ball.style.top = ballY + px;

// MOVE CPU PADDLE
// Move paddle only if ball is coming towards the CPU paddle
if(dx > 0)
{
if((cpuY + (paddle2.offsetHeight / 2)) > (ballY + ball.offsetHeight)) cpuY -= CPUSpeed;
else cpuY += CPUSpeed;

paddle2.style.top = cpuY + px;
}
}


// TO MOVE PLAYER PADDLE ON MOUSE MOVE EVENT
function MovePaddle(e)
{
// Fetch y coordinate of mouse
var y = (e.clientY - (box.offsetTop - document.documentElement.scrollTop));
// Here, (box.offsetTop - document.documentElement.scrollTop) will get the relative
// position of "box" w.r.t to current scroll postion

// If y below lower boundary (cannot go above upper boundary -
// mousemove event only generated when mouse is inside box
if(y > (box.offsetHeight - paddle1.offsetHeight))
y = (box.offsetHeight - paddle1.offsetHeight);

// Copy position
playerY = y;
// Set position

paddle1.style.top = y + px;
}
</script>
</head>

<body bgcolor="#fff">
<h1 align="center">Pong Game Example in JavaScript</h1>

<div id="box">
<img class="ob" id="paddle1" src="paddle.PNG" onclick="javascript: Start()"/>

<img class="ob" id="paddle2" src="paddle.PNG" />
<img class="ob" id="ball" src="ball_small.PNG" />

</div>
<div id="msg" align="center"></div>
</body>
</html>

Related Posts:


Read More..

Sunday, April 6, 2014

C PUZZLE


21)     void main()
{
char ch;
for(ch=0;ch<=127;ch++)
printf(“%c   %d
“, ch, ch);
}
Answer:
            Implementaion dependent
Explanation:
The char type may be signed or unsigned by default. If it is signed then ch++ is executed after ch reaches 127 and rotates back to -128. Thus ch is always smaller than 127.

22)     Is this code legal?
int *ptr;
ptr = (int *) 0x400;
Answer:
                        Yes
Explanation:
The pointer ptr will point at the integer in the memory location 0x400.
23)     main()
{
char a[4]="HELLO";
printf("%s",a);
}         
Answer:
                        Compiler error: Too many initializers
Explanation:
The array a is of size 4 but the string constant requires 6 bytes to get stored.

24)     main()
{         
char a[4]="HELL";
printf("%s",a);
}
Answer:
                        HELL%@!~@!@???@~~!
Explanation:
The character array has the memory just enough to hold the string “HELL” and doesnt have enough space to store the terminating null character. So it prints the HELL correctly and continues to print garbage values till it    accidentally comes across a NULL character.

25)     main()
{
                        int a=10,*j;
            void *k;
                        j=k=&a;
            j++; 
                        k++;
            printf("
%u %u ",j,k);
}
Answer:
                        Compiler error: Cannot increment a void pointer
Explanation:
Void pointers are generic pointers and they can be used only when the type is not known and as an intermediate address storage type. No pointer arithmetic can be done on it and you cannot apply indirection operator (*) on void pointers.

26)     main()
                        {
                                    extern int i;
                        {          int i=20;
                         {        
                           const volatile unsigned i=30; printf("%d",i);
                         }
                        printf("%d",i);
                        }
                          printf("%d",i);
            }         
            int i;

27)     Printf can be implemented by using  __________ list.
Answer:
                        Variable length argument lists
28) char *someFun()
            {
            char *temp = “string constant";
            return temp;
            }
            int main()
            {
            puts(someFun());
            }
Answer:
            string constant
Explanation:
            The program suffers no problem and gives the output correctly because the character constants are stored in code/data area and not allocated in stack, so this doesn’t lead to dangling pointers.

29)     char *someFun1()
            {
            char temp[ ] = “string";
            return temp;
            }
            char *someFun2()
            {
            char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’};
            return temp;
            }
            int main()
            {
            puts(someFun1());
            puts(someFun2());
            }
Answer:
            Garbage values.
Explanation:
            Both the functions suffer from the problem of dangling pointers. In someFun1() temp is a character array and so the space for it is allocated in heap and is initialized with character string “string”. This is created dynamically as the function is called, so is also deleted dynamically on exiting the function so the string data is not available in the calling function main() leading to print some garbage values. The function someFun2() also suffers from the same problem but the problem can be easily identified in this case.

Read More..