Thursday, March 12, 2015
Enhanced object properties in the PHP and Ruby libraries
While creating and modifying hashes is straightforward, sometimes you want a true object and the benefits that come with using one, such as type checking or introspection. To enable this, the PHP and Ruby client libraries can now provide objects as the results of API calls, in addition to supporting hash responses.
Ruby gets this for free with the latest version of the gem. For PHP, you have to enable support in the client instance:
$apiClient = new apiClient();The following examples for PHP and Ruby retrieve an event via the Calendar API, and use data from the new resulting object:
$apiClient->setUseObjects(true);
PHP:
$event = $service->events->get("primary", "eventId");
echo $event->getSummary();Ruby:result = client.execute(If you have general questions about the client libraries, be sure to check out the client library forums (PHP and Ruby). For questions on specific Apps APIs come find us in the respective Apps API forum.
:api_method => service.events.get,
:parameters => {calendarId => primary,
eventId => eventId})
print result.data.summary
| Dan Holevoet profile Dan joined the Google Developer Relations team in 2007. When not playing Starcraft, he works on Google Apps, with a focus on the Calendar and Contacts APIs. Hes previously worked on iGoogle, OpenSocial, Gmail contextual gadgets, and the Google Apps Marketplace. |
Saturday, February 28, 2015
Thwarted Innovation What Happened to E learning and Why
Link to Report (By Robert Zemsky & William F Massy)
Abstract: "The Thwarted Innovation report suggests that educational technology and e-learning have not delivered on the promise of revolutionizing the classroom and making higher education more profitable. It suggests that, despite the rapid growth in the US of online education, many teaching staff at colleges do not use innovative technology on their courses, and that not much benefit has been gained from the investment in educational technology. E-learning was studied at six institutions: Foothill College, Hamilton College in New York, Michigan State University, Northwest Missouri State University, the University of Pennsylvania, and the University of Texas at Austin over a 15-month period for the report.
The Learning Alliance includes higher education research centers at Stanford University, the University of Michigan, and the University of Pennsylvania. The report is 61 pages long (excluding title pages and appendices)."
Friday, February 27, 2015
Creating and Testing T L Strategies for the Virtual Classroom
Full Title: Creating and Testing Teaching/Learning Strategies for the Virtual Classroom "...the purpose of this study is to define and describe teaching/learning strategies for use in distance education, use those strategies in designing distance education instruction, and test their effectiveness. Three theoretical frames were used in the creation of the strategies: adult educational theory; brain-based educational theory; and the Effective Distance Education Model."
Findings:
- Teaching/learning strategies developed within a theoretical frame of adult education, brain-based education and the Effective Distance Education Model can be effective when used in the virtual, graduate classroom.
- Inexperienced instructors need additional help to succeed, and therefore should go through induction programs, which consists of training, support, and sustained feedback in a collaborative environment.
- Training sessions should be designed to acquaint the teacher with distance education teaching strategies.
- It is recommended to pair the new teacher with an experienced teacher to provide the new teacher with a role model, friend, advisor, and confidante (mentor).
- Encourage the role of reflection in the development of teaching skills as teachers learn to know themselves and view themselves through the eyes of their students, their colleagues, and the professional literature (e.g. video tape the instructor and review, periodic assessments of the teacher by students, participation in informal professional-development groups, and study professional literature.)

Wednesday, February 18, 2015
Sunday, February 15, 2015
Inter panel communication in pentaho CDE ClickAction and Listeners usage in pentaho CDE
This post will teach you how to communicate the panels in pentaho CDE dashboard.
Example Scenario :
Panel 1 : BarChart is placed in panel-1
Panel 2: Table data displayed in panel-2
Functionality : When you click on any of the bars, then the corresponding data should be displayed in 2nd panel. i.e., Make use of parameters, clickAction property, Listeners.
Example Developed on :
Pentaho 5.0 CE server
Pentaho C-Tools version : 13.09
Database : postgresql-foodmart( jasper food mart database)
Steps:
1) Create parameter (Lets say : param1_position_title)
2) Add it to listeners & parameters in your table component.
3) Add it to parameters in your data source for table query
Example:
SELECT
employee_id,
full_name,
position_id,
department_id
FROM
employee
WHERE
position_title=${param1_position_title}
4) Add to parameters in your chart(bar chart).
5) BarChart query example:
SELECT DISTINCT
position_title AS position,
sum(salary) AS salary
FROM employee
GROUP BY position_title
6) In the chart properties
clickable = True
clickAction
function fun()
{
Dashboards.fireChange(param1_position_title, this.scene.atoms.category.value);
}
NOTE:
It is like drill down with in the same dashboard, but here we make use of Dashboards.fireChange function.
OUT Images:


Source code of this example is available here Click here
Reference :
http://forums.pentaho.com/showthread.php?155487-Inter-Panel-Communication-in-Pentaho-CDE
http://forums.pentaho.com/archive/index.php/t-144148.html
:D :) :P
Tuesday, February 10, 2015
C program to add subtract multiply and divide two complex numbers using structures

#include<iostream.h>
#include<conio.h>
#include<math.h>
struct complex
{
float rel;
float img;
}s1,s2;
void main()
{
clrscr();
float a,b;
cout<<"Enter real and imaginary part of 1st complex number:";
cin>>s1.rel>>s1.img;
cout<<"Enter real and imaginary part of 2nd complex number:";
cin>>s2.rel>>s2.img;
//Addition
a=(s1.rel)+(s2.rel);
b=(s1.img)+(s2.img);
cout<<"
Addition: "<<"("<<a<<")"<<"+"<<"("<<b<<")"<<"i";
//Subtraction
a=(s1.rel)-(s2.rel);
b=(s1.img)-(s2.img);
cout<<"
Subtraction: "<<"("<<a<<")"<<"+"<<"("<<b<<")"<<"i";
//Multiplication
a=((s1.rel)*(s2.rel))-((s1.img)*(s2.img));
b=((s1.rel)*(s2.img))+((s2.rel)*(s1.img));
cout<<"
Multiplication: "<<"("<<a<<")"<<"+"<<"("<<b<<")"<<"i";
//Division
a=(((s1.rel)*(s2.rel))+((s1.img)*(s2.img)))/(pow(s2.rel,2)+pow(s2.img,2));
b=(((s2.rel)*(s1.img))-((s1.rel)*(s2.img)))/(pow(s2.rel,2)+pow(s2.img,2));
cout<<"
Division: "<<"("<<a<<")"<<"+"<<"("<<b<<")"<<"i";
getch();
}
Wednesday, February 4, 2015
Free Learn Complete Adobe Photoshop 7 0 in Urdu and Hindi Language


Note: All videos are hosted on YouTube.com, so if you are in Pakistan then first open YouTube and then watch these videos.
Tuesday, February 3, 2015
Archos 70 Titanium Custom Rom Flashing Tips and Tools
Archos 70 Titanium
Rockchip Rk3066
Flashing Tools , Tutorials and Custom Rom
![]() |
| Logo is property of Respective Owners. |
Wiki
Read article about Rockchip CPU on WikipediaKnowledge base :
When I need to Restore or Reset my Android Tablet Pc?
6. Android Market having problems or generating errors.
7.Upgrading to new Android OS.
.
Flashing Tutorials :
Read Before : Flashing Tutorial for Rockchip
Download Flashing Instructions : PDF
Drivers for Rockchip:
Download Drivers for Rockchip tablets
Flashing Tools:
Download: RKbatch ToolRecommended Tools:
you can also use:Android Tools for Rockchip Tabletsyou can download custom firmware by the developer web visit http://www.rockchipfirmware.com/ .
CWM Recovery: Not built in
Sunday, February 1, 2015
PHP MySQL and Web Development in Urdu

Thursday, January 22, 2015
Hard Reset your Samsung Galaxy S4 mini i9190 and remove password pattern lock gmail account

Hard resetting / factory resetting your phone will solve the following issues:
1. If you forgot your pattern lock
2. If you forgot your gmail account
3. If you forgot your password
4. Apps that automatically force closing
5. Stuck in Logo (sometimes does not work if the firmware is totally damage)
NOTE: Performing hard reset will erase your data.
To hard reset:
1. Turn off your phone
2. Press and Hold VOLUME UP + Home Button +Power Button simultaneously. Do not release until you see "RECOVERY BOOTING" in the screen.
3. Just wait until you see the Android System Recovery
4. Select wipe / factory reset, press Volume rocker to navigate and press the POWER Button to confirm your selection.
5. Reboot your phone.
Note: Some variant of Samsung Galaxy S4 Mini does not show recovery booting. So if you see the Samsung Galaxy S4 Mini Release the buttons
Note: If performing hard reset did not succeed, you need to wipe the cache first in the android system recovery before performing wipe / factory reset.
I hope this tutorial helps you.. If you have any question just drop a comment.
Monday, January 19, 2015
Android beginner tutorial Part 4 Running and debugging applications
There are two ways to run our Android application - using an emulator, and using a real Android device that is connected to the computer.
First Ill explain how to install and run the application on a real Android device. Connect your device to the computer using a USB cable. You might need to install proper device drivers to do this correctly. Take your phone/tablet, launch Settings > Applications > Deevlopment, then make sure USB debugging item is checked.
Open your project in Eclipse, then in the menu select Run > Run. A window will pop up asking you to select a device or an emulator. Select your device, and click OK. Your application will be installed and launched on the device! By default its a simple screen with "Hello World" written on it.
Youll also find your application in the menu of your device, with the icon and title youve set. You can launch it from there as well.
The second way to run an application is using an emulator. Go to Window > Android Virtual Device Manager in Eclipse. Hit New, set the name and settings for your virtual device. Youre free to play around with the settings, if something is entered incorrectly - you will be informed of the error. When youre done, click OK.
You can now see your device in the list of the Android Virutal Devices tab in the dialog window. You can start it now by selecting it and hitting "Start". Youll have to wait for the system to boot on the virtual device before you can use it. Then you can look around the phone/tablet almost like its real.
Then go to Run > Run, and select the virtual device you have to launch your application there. If you didnt start your emulator before, you can do it here by ticking "Launch a new Android Virtual Device" radio button and then selecting the AVD.
And thats all you need to do to launch your application!
However, when developing programs, you might need more advanced debugging tools than just an error console.
There are 2 ways to debug Android applications in Eclipse - one is using the java debugger, the other one is using the DDMS (Dalvik Debug Monitor Server).
To use the java debugger, open Eclipse and go to Window > Open Perspective > Debug. Youll find a new button in the top right sector of the Eclipse IDE window labeled "Debug", located near Java button.
Launch your application if it isnt already launched on either your real device or an emulator, and youll see some activity taking place in the left section of the debug screen. You can select items there and manipulate things like Variables on the right side of the screen. If its just a simple application like our Hello World, there wont be much to do (or there wont be anything at all to debug).
The Debug feature includes Variables, Breakpoints and LogCat, which are tools that you can use to see values of variables, breakpoints, as well as system log messages in real time.
The Dalvik Debug Monitor Service is a tool that is included with Android SDK and is not present in Eclipse by default.
It can be launched the same way - Window > Open Perspective > DDMS. Youll quickly see that its more advanced than the standard Debug tool and includes more features. It gives you control of many Android-related objects and processes. You can even explore the files of the device. Its rather complex for me to explain all of its features, I suggest you head over to the official documentation page for DDMS if you want to explore all of its features.
And thats it for this tutorial!
Thanks for reading!

