Programming

Kopete Google Talk Invisible

There are many advantages of being invisible on chat networks. Many times, you want to talk something seriously important with one person and it won't be nice that others disturb you at such a crucial moment.

Invisibilty on Google Talk on most third party chat clients has been a pain. They connect through the jabber protocol on which Google Talk is based.

Read more to know how to fix this.

Cloud-hosted by a Google AppEngine template

Cloud-hosting is a method to scale from 1 web server to thousands of web servers easily.
This tutorial shows you how to get an app off the ground with Python and Google AppEngine.
It contains many useful links to more detailed info about AppEngine and Python.

C++:Reverse a number

Upon request, i am posting a small program which would reverse a number.For an example we have:

Input 12345
Output 54321

Note:Please use long as data type else this program will no work for digits greater than four.

Here goes the program.

#include<iostream.h>
 
void main()
{
       cout<<"\t\t||Jai Saraswati||\n\n";
 
       long num,rem,newn=0;
       cout<<"Enter the Number:\t";
       cin>>num;

Better user interfaces for apps that work with queues of files

Often, when I use computer applications that transfer files, process files, play files
I get players and programs that "nag" with the 1990s style "modal dialog box".
A single file in the queue of files is causing some kind of mishap, and the application stops processing completely until a "dialog box" has been processed by the end-user.

What I'd like to propose is a fix to this behavior, and it's conceptually very simple:
An enhanced status-bar, which can also act as an application-level event log and handler.

C++:Simple program to calculate total and percentage

The following program would do the following:

  1. Input Roll No
  2. Input Marks obtained for three subjects
  3. Calculate Total
  4. Calculate Percentage

#include<iostream.h>
#include<conio.h>
 
void main()
{
 
        int roll,eng,sci,maths;
        float total=0;              //initializing->total=0;
        float percent;              //float->data type
 
        cout<<"Roll:\t";            //"\t"->Horizontal Tab
        cin>>roll;
 
        cout<<"\nEnglish:\t";
        cin>>eng;
 
        cout<<"Science:\t";
        cin>>sci;
 
        cout<<"Mathematics:\t";
        cin>>maths;
 
        cout<<endl<<"Total:\t";          //endl or "\n"->Break line
        total=eng+sci+maths;           
        cout<<total;
 
        cout<<"\nPercent:\t";
        percent=(total/300)*100;
        cout<<percent<<"%";
 
        getch();
}

Using If Condition in C++

If condition is used to compare two or more string.
The following program checks whether a given number is even or odd.

It works with Modulus Operator followed by if condition.

*Firstly, the modulus operator(%) gives the remainder.
*Secondly the if_condition checks whether the remainder is zero or not.
*If it is zero than it is even else odd..

#include<iostream.h>
#include<conio.h>
 
void main()
{
        int n;
        cout<<"Input No:\t";
        cin>>n;
        
 
        if(n%2==0)
        cout<<"\nThe no is even";
 
        else 
        cout<<"\nThe no is odd";

C++:Use the Modulus(%) Operator to get reminder

Use the Modulus(%) Operator to get reminder

#include<iostream.h>            //Header File for console input and output
#include<conio.h>                      //Header File for getch()
        
void main()
{       
        int a,b;                
        a=5;                                         //Initializing the value.
        b=2;                                         //Use Cin>> to input via Keyboard.

Distinguish between FLOAT and INTEGER

This following code will help the programer to distinguish between the two numeric data-type FLOAT AND INTEGER.

#include<iostream.h>            //Header File for console input and output
#include<conio.h>               //Header File for getch(),clrscr();
        
void main()
{
        clrscr();               //Clears Screen
                        
        int a;
        float b;

Python vs PHP (webdev)

Python and PHP are two different awesome programming languages, but often there is fight between developers following the two languages that one is better than other, etc.
I am publishing some astonishing benchmark results on Python-WSGI and PHP hello world scripts which makes no sense but still proves that Python is faster than PHP.

C++:A simple program to add two numbers

Here is a simple program to do addition in c++

#include<iostream.h> //Header File
#include<conio.h>     //Header File->For Clearing Screen in Turbo C++
 
int main()
{
       clrscr();
       int a,b;
       int sum=0;
       cout<<"Enter a:";
       cin>>a;
Syndicate content