Monday, March 9, 2015
Going Deeper More Integration Examples Available in our Developer Docs
To help you discover ways to integrate your own applications with Google Apps, we added a new section to our developer docs showcasing examples from popular applications in the marketplace. Some examples, like BatchBook’s streamlined sign-up process for users, show simple ways applications can help users get started quicker.
Apps can help users be more productive by displaying information and allowing them to take action right within an e-mail message. Harvest, a time tracking application, allows users to complete their timesheets in gmail when they receive their weekly reminders.

You’ll also find examples for collaboration and document sharing, such as Manymoon’s seamless integration with Google Docs. This makes it easy for users to share information with teams or attach relevant docs to tasks.
You can read more about these and other integrations, or try out the apps yourself by going to the Google Apps Marketplace. Of course these are just a few of many ways to make apps easier for users, and we look forward to seeing even more creative ideas from developers.
Posted by Steven Bazyl, Google Apps Marketplace Team
P.S. If you want to learn about the APIs which enable these deep integrations, meet with fellow developers and ask questions of Googlers, come to our Google Apps and Apps Marketplace Hackathon at the Google Mountain View campus on August 24th!
Programmatically Managing Charts in Spreadsheets
Editor’s Note: Kevin Winter is a guest author from the AdWords API Developer Relations team. He implemented these features in his 20% time. - Jan Kleinert
Google Spreadsheets provides powerful charting functionality to let you analyze your data many different ways. We recently added the ability to programmatically create, modify and delete Spreadsheet charts using Google Apps Script.
What are Embedded Charts?
Charts that a user creates in a Google Spreadsheet are called Embedded Charts. Apps Script can be used to manage these types of Spreadsheet Charts. Each EmbeddedChart belongs to a Sheet. Embedded charts are named this way because they are embedded onto a Sheet within the spreadsheet. Embedded charts align to the upper left hand corner of the specified column and row in the spreadsheet.
An Example of an Embedded Spreadsheet Chart
Let’s say I want to track my gas mileage using Google Spreadsheets. First, I create a Spreadsheet, and set up columns and formulas. Next, I add a form interface to make it easy to add new entries and a chart to visualize my mileage. Now I can start recording data - but each time I add enough entries to go past the ranges the chart uses, I need to manually increase them. How about we use some Apps Script magic to solve this?
The script below iterates through all charts on this sheet and determines if any of the ranges need to be expanded (i.e. if there are more rows with data to display). It then updates the title, builds the new EmbeddedChart object and saves it to the sheet. It could also add a menu interface or a trigger to execute this periodically or when the spreadsheet is edited.
function expandCharts() {
var sheet = SpreadsheetApp.getActiveSheet()
// Get a list of all charts on this Sheet.
var charts = sheet.getCharts();
for (var i in charts) {
var chart = charts[i];
var ranges = chart.getRanges();
// Returns an EmbeddedChartBuilder with this chart’s settings.
var builder = chart.modify();
for (var j in ranges) {
var range = ranges[j];
// rangeShouldExpand_ is defined later.
if (rangeShouldExpand_(range)) {
// Removes the old range and substitutes the new one.
builder.removeRange(range);
var newRange = expandRange_(range);
builder.addRange(newRange);
}
}
// Update title.
builder.setOption(title, Last updated + new Date().toString());
// Must be called to save changes.
sheet.updateChart(builder.build());
}
}
function rangeShouldExpand_(range) {
var s = range.getSheet();
var numColumns = range.getNumColumns()
var values = s.getSheetValues(range.getLastRow(),
range.getColumn(),
2,
numColumns);
for (var i = 0; i < numColumns; i++) {
// If the next row has the same pattern of values,
// it’s probably the same type of data and should be expanded.
if (!values[0][i] && !values[1][i]
|| !!values[0][i] && !!values[1][i]) {
continue;
} else {
return false;
}
}
return true;
}
function expandRange_(range) {
var s = range.getSheet()
var startRow = range.getRow();
var startCol = range.getColumn();
var numRows = range.getNumRows();
var numCols = range.getNumColumns();
while (rangeShouldExpand_(range)) {
numRows++;
range = s.getRange(startRow, startCol, numRows, numCols);
}
return range;
}
Creating New Charts in Spreadsheets
What if you wanted to create a new chart from scratch? You can do that too!
var sheet = SpreadsheetApp.getActiveSheet();
var chart = sheet.newChart()
.setPosition(5, 6, 5, 5)
.setChartType(Charts.ChartType.AREA)
.addRange(sheet.getActiveRange())
.build();
sheet.insertChart(chart);
In the above code example, we’ve gotten a reference to an EmbeddedChartBuilder, set its position within the sheet, change the chartType, add the currently selected range and insert the new chart.
Modifying Charts in Spreadsheets
The EmbeddedChartBuilder allows you to modify the chart in a couple ways:
- Add/Remove the ranges this chart represents via
addRangeandremoveRange. - Set options that modify how the chart will be rendered as well as change the chart type with
setOptionandsetChartType. - Change where the chart will be displayed (the cell and cell offset of the chart container) via
setPosition.
Embedded charts use more options than regular Apps Script charts, so options are handled slightly differently. Developers can pass a dotted field path to change options. For example, to change the animation duration, you can do this:
builder.setOption("animation.duration", 1000);
Now that we’ve created a bunch of charts, your spreadsheet is probably pretty cluttered. Want to clear it and start afresh with charts? Just remove them all:
var sheet = SpreadsheetApp.getActiveSheet();
var charts = sheet.getCharts();
for (var i in charts) {
sheet.removeChart(charts[i]);
}
Take Your Charts with You
Just like standalone charts, you can use embedded charts elsewhere. You can add them to a UIApp or a sites page as well as sending them as an email attachment:
// Attach all charts from the current sheet to an email.
var charts = SpreadsheetApp.getActiveSheet().getCharts();
MailApp.sendEmail(
"recipient@example.com",
"Income Charts", // Subject
"Heres the latest income charts", // Content
{attachments: charts });
We hope you found this blog post useful. Enjoy editing embedded charts using Google Apps Script!
![]() | Kevin Winter profile Kevin is a Developer Programs Engineer in the AdWords API Team. He maintains the latest version of the Python and Java client libraries for the AdWords API. You can find him in the New York office. |
Wednesday, March 4, 2015
How to Place a Pattern Over Text in PowerPoint!

More than half of the votes were for how to give text a pattern/texture!
If youre looking for some textures to put over your text, scroll to the end of the document to grab three free textures!




Now, for your three free textures!
.jpg)
.jpg)
.jpg)
To save the files, just click the image to get to the higher quality picture, then right click (or Mac: Ctrl + Click) to save the image onto your computer!
As for next weeks tutorial, Ill be adding a Smart Notebook option... how to "Erase to Reveal" an answer.
Saturday, February 28, 2015
How to Layer Papers and Frames in PowerPoint

Heres the tutorial (with a little troubleshooting tip at the end!)




As for next week, Ill add another PowerPoint tutorial: how to make your PowerPoint load on another computer (same font, colors, etc.) This will be super helpful for the teachers who have to travel from class to class!
Wednesday, February 18, 2015
Recursion in C
Recursion in C
#include<stdio.h>
void crashp();
int main()
{
crashp();
return 0;
}
void crashp()
{
crashp(); //calling funtion itself
}
This is the simplest example of a recursive function. A function is said to be recursive function when it calls itself. In the above you can see the function crashp() is calling itself again and again.
What will be the output of the above program?
As you can see crashp() function is calling itself again and again. So this program will create an infinite loop and it will never end. In this case press Ctrl+PauseBreak button to stop the execution.
Note: It is quite difficult to show the working of recursive function. Therefore, I recommend you to read the basic concepts of functions first before proceeding further. Working of recursive function totally depends on the basic concepts.
Lets take another example of a recursive function to calculate factorial of a number.
Program for factorial using recursion in C
#include<stdio.h>
int factorial(int x)
{
if(x<=1)
{
return 1;
}
return (x * factorial(x-1));
}
int main()
{
int x=5;
printf("Factorial of %d is %d
",x,factorial(x));
return 0;
}
Output

1. Program execution starts from the main() function. I have already assigned integer variable x with value 5.
2. After that I have written the printf() function.
3. Inside printf() function I have called factorial() function to calculate the factorial value.
4. Now the function factorial() will call itself until value of x makes this condition true (x<=1)
5. Consider the return statement of factorial() function carefully i.e. return x * factorial(x-1);
It will solve the answer in this way 5*4*3*2*1=120
![]() |
| Image Source |
Its quite tricky to understand the execution of a recursive function. But go through the above tutorial at least 2-3 times for better understanding. So this brings us to the end of functions. Now in the next tutorial I will tell you about the extended data types.
Sunday, February 15, 2015
How to Create a Web Browser in Visual Basic
Also Read: How to Create a Keylogger in VB.Net?

How to Create a Web Browser in Visual Basic
1. First of all create a new windows form application in visual basic.2. Now add 4 buttons and change their text as given below.
Button1 - << (To move backword)
Button2 - >> (To move forward)
Button3 - Refresh
Button4 - Go
3. Add a textbox and align them in the manner shown below.

4. Now double click the form to switch to code view and paste the code given below.
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebBrowser1.GoBack()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
WebBrowser1.GoForward()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
WebBrowser1.Refresh()
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
If e.KeyData = Keys.Enter Then
Button4.PerformClick()
End If
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
5. You have done!! Hit Debug and browse some of your favorite sites with your own fully functional web browser.
Arrays in C Part 2
In the last tutorial I gave you an overview of arrays in C and I also told you about the declaration and initialization of arrays. Till now we have also completed the topic to print the values of array on the screen. Today I will tell you about how to take values inside an array by user. So lets start it with some program.
#include<stdio.h>
void main()
{
int x[5];
int i;
printf(" Enter the values in an array
");
for(i=0;i<5;i++)
{
scanf("%d",&x[i]); //taking values inside an array
}
for(i=0;i<5;i++)
{
printf("
%d ",x[i]); //printing values on the screen
}
}
Output

- In our program I have declared “x” as an integer array with 5 elements.
- By using a for loop I have taken 5 values from the user.
- Consider carefully the subscript I have used inside scanf() function which is x[i].
- Almost similar loop is used to print the values inside that array.
To easily understand the working of arrays you should know about the fact.
How array elements are stored in memory?
Consider the below declaration of an array.int x[8];
When compiler detects some array declaration then it immediately reserves the space for it. In our case I have declared the integer array with 8 elements. When compiler detects it, it will immediately reserve 16 bytes in memory (2 byte for each element). In our case we do not initialize the array with its declaration so it will contain some garbage value by default. The reason behind the garbage values are due to its storage class. By default array has “auto” storage class.
Array consists of contiguous memory locations. It means all the values inside an array will be stored in contiguous memory parts. Checkout the below figure.

Bounds Checking
Consider the below codeint x[8];
x[10]=98;
The size of our array is only 8 elements. But we are storing the value 98 at 10th location. How is it possible? Its certainly not possible. But remember for this situation the compiler will not obstruct you by giving some error. It will not give any warning to you. Because there is no bounds checking is done in arrays. Compiler never checks the limit of the array while storing the values.
So where will this value be stored?
It can be stored anywhere. Probably just after contiguous location of the array. Or top of the array. It can stored anywhere. And remember sometimes small mistakes like that can completely ruin your program and can even hang computer. So I would strongly suggest you to remember this mistake while storing values inside an array.
Saturday, February 14, 2015
Functions in C Programming Part 5
Basically there are three advanced topics of functions
1. Function declaration and prototypes
2. Call by value and call by reference
3. Recursion
Today I will tell you about very first topic "Function declaration and prototypes". I have already covered the half of this topic in my earlier tutorials but I will give you an overview of that again.
Function Declaration and Prototypes
By default any C function will return an integer value to its calling function. Even if we don’t specify any prototype for the function then it is considered that it will only return integer value. To make some change in the return value we have to declare its prototype first. Lets understand with one simple example.#include<stdio.h>
squareval(float);
void main()
{
float x, y;
printf("Enter one value to obtain square
");
scanf("%f",&x);
y=squareval(x);
printf("Answer is %f", y);
}
squareval(float a)
{
float b;
b=a*a;
return(b);
}
Output

I have executed above program with two values. At first I have entered 2 and it gave me correct answer 4 for it. But in the next run when I entered 1.5, it gave me wrong result by replying 2 as an answer.
Can you tell reason why it is giving wrong results for float value?
As I said earlier that by default a function always return an integer value. In our program we have not given any return type for the function squareval(). So it is returning an integer value to the main() function.
To rectify this we have to specify the return type as float in the prototype of the squareval() function. Correct version of above program is given below.
#include<stdio.h>
float squareval(float);
void main()
{
float x, y;
printf("Enter one value to obtain square
");
scanf("%f",&x);
y=squareval(x);
printf("Answer is %f", y);
}
float squareval(float a)
{
float b;
b=a*a;
return(b);
}
Output

So by giving the prototype of the function we can return values as per our desired data type.
We can also declare function prototype with user defined data types like structure. We will learn it in our upcoming tutorials.
Friday, February 13, 2015
HowTo Fix Yum Couldnt resolve host Error in Fedora 18
** if you are getting a "Couldnt resolve host" response to this then simply do the following
gedit /etc/resolv.conf
look for the list of the nameserver and add the line below to the top of the list
nameserver 8.8.8.8
your /etc/resolv.conf should look something like this
# Generated by NetworkManager
domain smartbro.net
search smartbro.net
nameserver 8.8.8.8
nameserver 121.1.3.81
nameserver 121.1.3.16
nameserver 121.1.3.66
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 192.168.1.1
Wednesday, February 4, 2015
Adobe Photoshop Cs6 Full Tutorials in Urdu Hindi


What is Photoshop CS6?
Video Tutorial # 1
Video Tutorial # 2
Video Tutorial # 3
Video Tutorial # 4
Video Tutorial # 5
Video Tutorial # 6
Video Tutorial # 7
Video Tutorial # 8
Video Tutorial # 9
Video Tutorial # 10
Video Tutorial # 11
Video Tutorial # 12
Video Tutorial # 13
Video Tutorial # 14
Video Tutorial # 15
Tuesday, February 3, 2015
Corel Draw 11 Complete Tutorials in Urdu Hindi

Corel Draw 11 Complete Tutorials:
Sir Sohail(43 videos)
Friday, January 30, 2015
Corel Draw X5 in Urdu

Tuesday, January 27, 2015
Working with pictures in PowerPoint 2010
Artistic effects

Glow Edges, Photocopy, and Paint Strokes. Select an image and click Artistic effects button on Pictures Tool menu. Just move the mouse over the effects and click when you find one fit for your presentation.
Background removal
PowerPoint 2010 also offers a cool new Background removal tool which makes image editing quite a fun. As per Microsoft "Unlike similar tools, the Office Background Removal tool doesn’t just select color ranges or trim to a border you draw. Read more>>
Picture layout
Love creating storyboards or comic series in a PowerPoint? If your answer
is yes then Picture Layout is
There are different type of SmartArt graphics layout where you can tell your story with pictures. There are also other new SmartArt graphic layouts. Even better, if you have pictures on your slide you can quickly convert them to a SmartArt graphic, just like you can do with text.
Using this layout to create a SmartArt graphic is simple:
Insert the SmartArt graphic picture layout.
Add your photograph(s).
Write descriptive text.
Try out image editing capabilities of PowerPoint 2010 and you will find that you no more need to leave PowerPoint to get that perfect picture.
Sunday, January 25, 2015
Down in the Salt Mines
| The stairway down to the mine |
Nor could you see the top when you were halfway down the stairs. And you thought being forced to sit in a cubicle 8 hours a day was rough.
After a dizzying few minutes of descending the stairs, you eventually reach the hallways of the mine. See the white stuff all around? Its salt. You can lick your finger, swipe down a wall, lick again, and taste it.
And these statues? Also carved out of salt. The miners would be down here for long stretches and often passed the time by carving scenes from Polish folklore.
More salt, this time the pattern left behind by horizontal drilling. Pretty sure I saw these in Aliens.
As we continued the tour, we descended further into the mine down wooden ramps.
We eventually reached this running stream of water. Apparently, it contains the maximum concentration of salt possible (~32%). We tasted it. It was, uh, salty.
Even deeper within the wine, we came across the chapel. The miners wanted to have a place to pray, so they painstakingly carved the whole thing over a number of years, mostly out of salt.
The altar was made of salt.
A chandelier made out of 99% salt.
A copy of The Last Supper carved out of salt. Molly approves.
Even the floor was made out of salt. This one in particular consisted of tiles that were actually salt licks.
As we headed towards the exit, we came across this underground stream. They used to permit boat rides on it, but no longer do after a boat capsized and trapped all aboard beneath it. It turns out that you are too buoyant to dive in such salty water and that without something to stand on, a boat is too heavy to lift. Scary.
Waiting for the elevator back to the surface. Dont worry, those signs are conveniently translated into english. It reads: "ATTENTION THE SHAFT".

