Like Us On Facebook

Follow Us On Twitter

Drop Down Menu

Tuesday, 27 December 2016

C Code to transpose a matrix

Transposing a matrix means interchanging the rows and column elements of a matrix. For example, if we have a matrix:

1 2 3
4 5 6
7 8 9

Then its transpose will be:

1 4 7
2 5 8
3 6 9



Sunday, 25 December 2016

Add Two Matrix C Code

This program will first ask user to enter the number of rows and columns for the two matrices. Remember, they have to be the same for both of the matrices. Then the program will ask the user to enter the elements of the first matrix and then the elements of the second matrix in the fashion:

First Matrix :-
2 3
4 5
Second matrix :-
3 4
5 6
then output of the program will be :-
5 7
9 11


Friday, 24 October 2014

How to get invited for Inbox by Gmail

Google has just started sending out invites for its new email system; an alternative to Gmail. Its called Inbox. Nope, its not public yet. Instead Google decided to use the "invite only" approach for the time being. Here's a sneak peak:



Inbox is different from Gmail, designed to focus on what really matters; as reported on this Official Google Post:
Email started simply as a way to send digital notes around the office. But fast-forward 30 years and with just the phone in your pocket, you can use email to contact virtually anyone in the world…from your best friend to the owner of that bagel shop you discovered last week. 
With this evolution comes new challenges: we get more email now than ever, important information is buried inside messages, and our most important tasks can slip through the cracks—especially when we’re working on our phones. For many of us, dealing with email has become a daily chore that distracts from what we really need to do—rather than helping us get those things done.
 

Google has begun to roll out a second wave of invites, following yesterday's first batch. You can even invite your friends. While not everyone who registered, got an invite, be sure to check out your inbox in case you receive it. Inbox can be said as an intelligent version of Gmail. It offers an intelligent system to sort out information and bundle things into groups, so you can easily figure out what's worth reading anyway. Besides this, it offers the ability to act as a personal assistant with reminders, create to-do lists and snooze items.

Assist functionality will even help you make better reminders, for example, if you write a reminder to call the grocery store, Inbox will supply the store's phone number and tell you if it's open or not. Assist works for your email also. If you make reservation for a restaurant online, it adds a map to your confirmation email. Book a train online and Inbox provides a link to check-in.
Inbox by Gmail
HOW TO GET AN INVITE:

It's as simple as sending a mail. Just send an email to [email protected] to request your invitation.

DOWNLOAD:
Cannot wait for your invite? Well, I have a solution for you. Download this apk file which is signed by Google and it updates your existing app.

File name: com.google.android.apps.inbox-1.0_(78094151)-5608113-minAPI16.apk
Version: 1.0 (78094151) (5608113)
File size: 36.05 MB (37,804,961 bytes)
Minimum Android version: Android 4.1+ (Jelly Bean, API 16)
MD5: 9059c483fc3e22218877b4b9be948f83
SHA1: accc1fa6a577e80f2c855a7311c50fa5b02f79a8

(You'll need an invite to use this ;)

Did you receive an invite? Share your experience with us. I shall get back to you once I'll receive my invite.


Sunday, 8 June 2014

Make Codes Postable - HTML Friendly

Make Codes Postable - HTML Friendly

So you're one of the developers who is tired of making is code HTML Friendly, changing '<' to '&lt;' and using '&amp;' in place of '&'. Making changes in a long code can be very much time consuming especially if you don't have time for this and want to this in fraction of a second.

Well if you're reading this, you've come to the right place and we're gonna do it for you - for FREE!! The following section will be very much useful for Web Developers. Basically what we do is, we make appropriate modifications in the code, replace x with y, a with b etc. All you have to do is paste your code in the following box and click on 'Make Friendly' button. You're modified code will appear in the same box. Now your code is ready copying and using it.




Make Codes Postable - HTML Friendly







Friday, 6 June 2014

[SOLVED] Joomla -This email address is being protected from spambots. You need JavaScript enabled to view it.

This is one of the most common errors in Joomla. This email address is being protected from spambots. You need JavaScript enabled to view it. This usually occurs when you've included an email address in a Joomla article and you want to protect it  from Email harvesting spambots. 

You would've most probably used a built-in feature of joomla, i.e. enabled Content - Email Cloaking plugin, which basically does nothing but 'cloaks' the email address. It basically gives access to the email ID only to legitimate users who'll read and click on the message "This email address is being protected from spambots. You need JavaScript enabled to view it." so that it'll show the email in a separate window.



[SOLVED] Joomla -This email address is being protected from spambots. You need JavaScript enabled to view it.


After enabling the plugin, this error would be visible onto every page where you have displayed some email ID. However no need to panic. The solution is as simple as a click:


How to disable the email cloaking plug-in:

1.  Login into Admin Panel -> Extentions -> Plugin Manager

2. In the filter field, search for "Content - Email Cloaking". 

3. Under Status, tick on the 'green tick' to disable the plugin.

[SOLVED] Joomla -This email address is being protected from spambots. You need JavaScript enabled to view it.

4. Verify from below that you've successfully disabled the plugin.

[SOLVED] Joomla -This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Comment If You Liked The Post.


Tuesday, 19 November 2013

Calculate Roots Of a Quadratic Equation Using C Program

Hi everyone
In this post, we're going how to write a C program to calculate the roots of a quadratic equation. As we know that a quadratic equation is of a form like:

 ax^2+bx+c=0

So we won't go into much details. Also you guys must be knowing to calculate the roots of a quadratic equation directly, having formula:

Roots = ( -b + (b^2 - 4ac) ) / 2a ( -b - (b^2 - 4ac) ) / 2a

So we are just going to use the same formula in our C code. So Let's begin...

C Program To Calculate Roots Of a Quadratic Equation:

/* Double-Click To Select Code */

#include<stdio.h>
#include<conio.h>
#include<math.h>

void main()
{
float a,b,c,root1,root2,x,real,im;
clrscr();

printf("-> Quadratic Equation Form: ax2+bx+c");
printf("\n\nEnter the value of a: ");
scanf("%f",&a);
printf("\nEnter the value of b: ");
scanf("%f",&b);
printf("\nEnter the value of c: ");
scanf("%f",&c);

x = (b*b)-(4*a*c);

if(x>0)
{
root1 = (-b+sqrt(x))/(2*a);
root2 = (-b-sqrt(x))/(2*a);       //ROOTS ARE UNIQUE
printf("\nThe roots of the equation are: %.2f and %.2f",root1,root2);
}

else if(x==0)
{
root1 = -b/(2*a);
root2 = root1;  //ROOTS ARE SAME
printf("\nThe roots of the equation are: %.2f and %.2f",root1,root2);
}

else
{
real = -b/(2*a);
im = sqrt(-x)/(2*a);  // ROOTS ARE COMPLEX
printf("\nThe roots of the equation are: %.2f+j%.2f and %.2f-j%.2f",real,im,real,im);
}

getch();
}


Program Explanation:

The program is self explanatory in itself. First we take the coefficients of the quadratic equation as input from the user. Then on the basis of its determinant,i.e, b^2 - 4*a*c, if its greater than 0 or equal to 0 or less than 0. In each of the case, we can get different types of roots, Unique, Equal or Complex respectively. Using the formula as I described in the beginning of this post, we calculate roots, with an exception in case of complex roots, whereby, we have to find real and imaginary parts of the roots individually, using the formula:
Real Part = -b/(2*a)
Imaginary Part = sqrt(-x)/(2*a) -> Since determinant is negative here, we make it positive by multiplying an extra '-'.


Program Output:

C Program To Calculate Roots Of a Quadratic Equation

Please Comment If You Liked The Post.