Showing posts with label for. Show all posts
Showing posts with label for. Show all posts

Thursday, March 12, 2015

Rich signatures for your domain using the Email Settings and the Profiles APIs



A recent addition to the Email Settings API allows domain administrators to use HTML-encoded strings when configuring the default signature for their users.



Updating all signatures to make them adopt the same visually appealing style sounds like a perfect task to automate, however we’d still need to collect various pieces of information for each user, such as phone number or job title, and the Email Settings API has no knowledge of them.



The Google Apps Profiles API provides exactly what we are looking for and in the rest of this article we’ll see how to have the two APIs interact to reach our goal.



Let’s assume we want our signatures to look like the one in the screenshot below, with a bold name, italic job title and clickable link for the email address. Of course you can edit the style as you like with a bit of HTML skills:





Python is the programming language of our choice for this small script and we use the Google Data APIs Python Client Library to send requests to the Email Settings and Profiles APIs.



The first few lines of the script import the required libraries and set the values of the credentials that will be used to authorize our requests. You can find the consumer key and secret for your domain in your Control Panel, under Advanced Tools - Manage OAuth domain key. Remember to replace the dummy values in the script below with yours before running it:

import gdata.apps.emailsettings.client

import gdata.contacts.client

# replace these values with yours



CONSUMER_KEY = mydomain.com

CONSUMER_SECRET = my_consumer_secret

company_name = ACME Inc.

admin_username = admin


We’ll use 2-legged OAuth as the authorization mechanism and set the administrator’s email address as the value of the xoauth_requestor_id parameter, identifying the user we are sending the requests on behalf of.



The consumer key and secret plus the requestor id are the only parameters needed to create an OAuth token that we can pass to the Email Settings and Profiles clients:

# request a 2-legged OAuth token

requestor_id = admin_username + @ + CONSUMER_KEY

two_legged_oauth_token = gdata.gauth.TwoLeggedOAuthHmacToken(

CONSUMER_KEY, CONSUMER_SECRET, requestor_id)



# Email Settings API client

email_settings_client = gdata.apps.emailsettings.client.EmailSettingsClient(

domain=CONSUMER_KEY)

email_settings_client.auth_token = two_legged_oauth_token



# User Profiles API client

profiles_client = gdata.contacts.client.ContactsClient(

domain=CONSUMER_KEY)

profiles_client.auth_token = two_legged_oauth_token


Let’s define a class that generates the signatures for our users on the basis of a set of optional attributes (occupation, phone number, email, etc). This is the class you need to edit or extend if you want to change the style of the signatures for your domain. In the example below, the HtmlSignature() method simply concatenates some strings with hard-coded styling, but you may want to use a more elaborate templating system instead:

# helper class used to build signatures

class SignatureBuilder(object):

def HtmlSignature(self):

signature = %s % self.name

if self.occupation:

signature += %s % self.occupation

if self.company:

signature += %s % self.company

signature += Email: <a href=mailto:%s>%s</a> - Phone: %s % (

self.email, self.email, self.phone_number)

return signature



def __init__(

self, name, company=, occupation=, email=, phone_number=):

self.name = name

self.company = company

self.occupation = occupation

self.email = email

self.phone_number = phone_number


Let’s use profiles_client to retrieve a feed containing all profiles for the domain. Each call to GetProfilesFeed() only returns a page of users, so we need to follow the next links until we get all users:

# get all user profiles for the domain

profiles = []

feed_uri = profiles_client.GetFeedUri(profiles)

while feed_uri:

feed = profiles_client.GetProfilesFeed(uri=feed_uri)

profiles.extend(feed.entry)

feed_uri = feed.FindNextLink()



At this point profiles will contain the list of users we want to process. For each of them, we instantiate a SignatureBuilder object and set its properties name, company, occupation, email and phone_number with the data for that user.

A call to the HtmlSignature() method of the SignatureBuilder instance will provide us with a properly formatted HTML-encoded signature.

# extract relevant pieces of data for each profile

for entry in profiles:

builder = SignatureBuilder(entry.name.full_name.text)

builder.company = company_name

if entry.occupation:

builder.occupation = entry.occupation.text

for email in entry.email:

if email.primary and email.primary == true:

builder.email = email.address

for number in entry.phone_number:

if number.primary and number.primary == true:

builder.phone_number = number.text



# build the signature

signature = builder.HtmlSignature()


The Email Settings API client exposes a method called UpdateSignature to set the signature for a target user. This methods accepts two parameters, the username of the user to be affected and a string containing the signature. We just built the latter, so we only need the retrieve the unique username that identifies each user and that can be easily inferred from the entry identifier returned by the Profiles API, as described in the code and the comment below.



It is worth mentioning that you can also retrieve usernames with the Provisioning API, but for the sake of simplicity we’ll rely on this small hack:

# entry.id has the following structure:

# http://www.google.com/m8/feeds/profiles/domain/DOMAIN_NAME/full/USERNAME

# the username is the string that follows the last /

username = entry.id.text[entry.id.text.rfind(/)+1:]


It’s time to send the requests to the Email Settings API and update the signature:

# set the users signature using the Email Settings API

email_settings_client.UpdateSignature(username=username,

signature=signature)


For further details on what can be accomplished with the Google Apps APIs, please check our documentation and don’t hesitate to reach out to us on our forums if you have any questions.







Claudio Cherubino profile | twitter | blog



Claudio is a Developer Programs Engineer working on Google Apps APIs and the Google Apps Marketplace. Prior to Google, he worked as software developer, technology evangelist, community manager, consultant, technical translator and has contributed to many open-source projects, including MySQL, PHP, Wordpress, Songbird and Project Voldemort.


Wednesday, March 11, 2015

Building a Rails based app for Google Apps Marketplace

Editors note: This is a guest post by Benjamin Coe. Benjamin shares tips and best practices on using Ruby on Rails for integrating with Google Apps and launching on the Marketplace. — Arun Nagarajan

Yesware offers an app in the Google Apps Marketplace which allows our users to schedule reminders, from directly within the Gmail UI. Yesware’s app recently relaunched in the updated Google Apps Marketplace. In prep, we revamped our existing Google Apps Integration:
  • Replacing OpenID with OAuth 2.0 for Single-Sign-On.
  • Replacing 2-legged OAuth with OAuth 2.0 Service Accounts, for delegated account access.
  • Releasing a Gmail Contextual Gadget that worked within these new authentication paradigms.
We should like to share some of the decisions we made, and challenges we faced, upgrading our production Ruby on Rails application to support the improved Google Apps Marketplace.

OAuth 2.0 for SSO

In the revamped Google Apps Marketplace, OAuth 2.0 replaces OpenID for facilitating Single-Sign-On. The flow is as follows:

  1. OAuth 2.0 credentials are created in the Cloud Console, within the same project that has the Google Apps Marketplace SDK enabled.
  2. When accessing your application, a user is put through the standard OAuth 2.0 authentication flow using these credentials.
  3. If the user has the Google Apps Marketplace App installed they will be logged directly into your application, skipping the authorization step.
To implement the OAuth 2.0 authentication flow, you can use the OmniAuth Google OAuth2 Strategy gem. Assuming youre already using OmniAuth, you simply add a line to initializers/omniauth.rb that looks something like this:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, ENV["GAM_OAUTH_KEY"], ENV["GAM_OAUTH_SECRET"]
end

Yesware already had a Google OAuth 2.0 authentication strategy, so we opted to subclass the Google OAuth 2.0 OmniAuth Strategy. This allowed us to continue supporting our existing OAuth 2.0 credentials, while adding support for Google Apps Marketplace SSO. Our subclassed strategy looked like this:
# Subclass the GoogleOauth2 Omniauth strategy for
# Google Apps Marketplace V2 SSO.
module OmniAuth
module Strategies
class GoogleAppsMarketplace < OmniAuth::Strategies::GoogleOauth2
option :name, google_apps_marketplace
end
end
end
Our final initializers/omniauth.rb file was this:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, ENV["OAUTH_KEY"],
ENV["OAUTH_SECRET"],
{:scope => ENV["OAUTH_SCOPE"]}
provider :google_apps_marketplace, ENV["GAM_OAUTH_KEY"],
ENV["GAM_OAUTH_SECRET"],
{ :scope => ENV["GAM_OAUTH_SCOPE"],
:access_type => online }end

Note that :access_type is set to online. This is necessary to prevent the authorization prompt from being presented to a SSO user. Omniauth defaults to an :access_type of offline.
Thats all it takes. With this OmniAuth strategy in place, when a domain administrator installs your application SSO will be available across the domain.

OAuth 2.0 Service Accounts

To support Yeswares reminder functionality, we needed offline access to a users email account. In the past, this functionality was supported through 2-legged OAuth. In the new Google Apps Marketplace paradigm, OAuth 2.0 Service Accounts are the replacement.
  • In the Cloud Console, generate a private key for the OAuth 2.0 Service Account associated with your Google Apps Marketplace project. 
  • Download the .p12 private key generated. 
  • Place this key somewhere that will be accessible by your production servers, e.g., a certificates folder in your codebase. 
We used the Google API Ruby Client gem to generate an access token from our Service Accounts keys.
Using the deprecated 2-Legged OAuth based approach, our authorization logic looked like this:

Gmail.connect!(:xoauth, ben@example.com, {
token: authentication.token,
secret: authentication.secret,
consumer_key: google.key,
consumer_secret: google.secret,
read_only: true
})
Using the new Service Account Based Approach, it was as follows:
key = Google::APIClient::PKCS12.load_key(
google_apps.service.p12path, # this is a constant value Google uses
# to password protect the key.
notasecret
)service_account = Google::APIClient::JWTAsserter.new(
google_apps.service.email,
https://mail.google.com/,
key
)client = Google::APIClient.new(
:application_name => APPLICATION_NAME,
:version => APPLICATION_VERSION
).tap do |client|
client.authorization = service_account.authorize(ben@example.com)end
Google.connect!(:xoauth2, ben@example.com, {
:oauth2_token => client.authorization.access_token,
})
With OAuth 2.0 Service Accounts, the underlying libraries we used to interact with Gmail remained the same. There were simply a few extra steps necessary to obtain an access token.

Contextual Gadgets and SSO

Yesware provides a Gmail Contextual Gadget, for scheduling email reminders. To facilitate this, its necessary that the gadget interact with a users email account. To make this a reality, we needed to implement SSO through our contextual gadget. Google provides great reading material on this topic. However, the approach outlined concentrates on the deprecated OpenID-based SSO approach. We used a slightly modified approach.
Rather than OpenID, we used OAuth 2.0 for associating the opensocial_viewer_id with a user. To do this, we needed to modify our OmniAuth strategy to store the opensocial_viewer_id during authentication:
# Subclass the GoogleOauth2 Omniauth strategy for
# Google Apps Marketplace V2 SSO.
module OmniAuth
module Strategies
class GoogleAppsMarketplace < OmniAuth::Strategies::GoogleOauth2

option :name, google_apps_marketplace

def request_phase

# Store the opensocial_viewer_id in the session.
# this allows us to bind the Google Apps contextual
# gadget to a user account.
if request.params[opensocial_viewer_id]
session[:opensocial_viewer_id] = request.params[opensocial_viewer_id]
end

super
end

end
end
end
Once an opensocial_viewer_id was connected to a Yesware user, we could securely make API calls from our contextual gadget. To cut down on the ritual surrounding this, we wrote a Devise Google Apps OpenSocial Strategy for authenticating the OpenSocal signed requests.

Now Go Forth

Once we figured out all the moving parts, we were able to use mostly off the shelf mature libraries for building our Google Apps Marketplace Integration. I hope that this retrospective look at our development process helps other Rails developers hit the ground running even faster than we did.
Benjamin Coe profile

Benjamin Coe cofounded the email productivity company Attachments.me, which was acquired by Yesware, Inc., in  2013. Before starting his own company, Ben was an engineer at FreshBooks, the  world’s #1 accounting solution.
Ben’s in his element when writing scalable cloud-based infrastructure, and loves reflecting on the thought-process that goes into this. A rock-climber, amateur musician, and bagel aficionado, Ben can be found roaming the streets of San Francisco.
ben@yesware.com — https://github.com/bcoe— @benjamincoe

Help us shape Google Developers Live for Google Drive

The week before Google I/O, we launched Google Developers Live, a new online channel to connect us with developers from all around the world, all year round.

Google Developers Live features interactive broadcasts about many different products and with many different formats. For Google Drive and Apps Script alone, we have aired app reviews, presentations about Google Drive and Apps Script, question and answer sessions, and a doc feedback session.

We are really interested in knowing from you about your favorite shows. Which types of event would you like to see more of in the future? Are you more interested in introductory material such as getting started tutorials, or more advanced topics?

Please share your feedback with us by adding a comment to this post or by reaching out to us on Google+.

Remember, we go live every Monday and Thursday and our complete schedule can be found at https://developers.google.com/live/drive. See all of you on Google Developers Live!

Claudio Cherubino   profile | twitter | blog

Claudio is an engineer in the Google Drive Developer Relations team. Prior to Google, he worked as software developer, technology evangelist, community manager, consultant, technical translator and has contributed to many open-source projects. His current interests include Google APIs, new technologies and coffee.

Tuesday, March 10, 2015

Last Call for Google I O Google Apps Challenge

On March 8th, we announced the Last Call for Google I/O contest for a chance to win tickets to the event. The contest is currently underway -- with 5 challenges remaining.

The last challenge, starting on March 29th at 4:00 P.M. PDT, will be based on Google Apps and we’d encourage all eligible developers to participate. To be sure that you’re prepared for the challenge, we have indicated a prerequisite to read up on Google Apps Script.

For more information on the contest rules and timeline, please see the Google Code Blog and the Contest Site.

Want to weigh in on this topic? Discuss on Buzz

Monday, March 9, 2015

How we built a Social Network for Productivity on Top of Google Docs Calendar Contacts and Reader

Editor’s note: This is a guest post by Martin Böhringer, Co-Founder and CEO of Hojoki.
-- Steve Bazyl

Honestly, we love Google’s productivity tools. Back in 2010, when I was a computer science researcher at university, I was a heavy user of Google Docs, Google Calendar, Google Contacts and Google Reader. So it was the most natural thing to put these tools to the front for integrations into our startup, Hojoki.

Hojoki integrate productivity cloud apps into one newsfeed and enables sharing and discussions on top of the feed. We’ve integrated 17 apps now and counting, so it’s safe to say that we’re API addicts. Now its Time to share with you what we learned about the Google Apps APIs!

The goal: a newsfeed

Our initial reason for building Hojoki was because of the fragmentation we experience in all of our cloud apps. And all those emails. Still, there was this feeling of “I don’t know what’s going on” in our distributed teamwork. So we decided to build something like a Google+ where streams get automatically filled by activities in the apps you use.

This leads to a comprehensive stream of everything that’s going on in your team combined with comments and microblogging. You can organize your stream into workspaces, which are basically places for discussions and collaboration with your team.

Information needs

To build this, we first need some kind of information on recent events. As we wanted to be able to aggregate similar activities and to provide a search, as well as splitting up the stream in workspaces, we also had to be able to sort events as unique objects like files, calendar entries and contacts.

Further, it’s crucial to not only know what has changed, but who did it. So providing unique identities is important for building federated feeds.

Google APIs

Google’s APIs share some basic architecture and structure, described in their Google Data Protocol. Based on that, application-specific APIs provide access to the application’s data. What we use is the following:

  • Google Docs: Google Documents List API version 3.0
  • Google Calendar: Google Calendar API v2
    Note: there is a new API v3 for Google Calendar
  • Google Contacts: Google Contacts API v2

The basic call for Google Contacts for example looks like this:

https://www.google.com/m8/feeds/contacts/default/full

This responds with a complete list of your contacts. Once we have this list all we have to do is to ask for the delta to our existing knowledge. For such use cases, Google’s APIs support query parameters as well as sorting parameters. So we can set “orderby” to “lastmodified” as well as “updated-min” to the timestamp of our last call. This way we are able to keep the traffic low and get quick results by only asking for things we might have missed.

If you want to develop using those APIs you should definitely have a look at the SDKs for them. We used the Google Docs SDK for an early prototype and loved it. Today, Hojoki uses its own generic connection handler for all our integrated systems so we don’t leverage the SDKs anymore.

Real world problems

If you’re into API development, you’ve probably already realized that our information needs don’t fit into many of the APIs out there. Most of the APIs are object centric. They can tell you what objects are included in a certain folder, but they can’t tell you which object in this folder has been changed recently. They just aren’t built with newsfeeds in mind.

Google Apps APIs support most of our information needs. Complete support of OAuth and very responsive APIs definitely make our lives easier.

However, the APIs are not built with Hojoki-like newsfeeds in mind. For example, ETags may change even if nothing happened to an object because of asynchronous processing on Google’s side (see Google’s comment on this). For us this means that, once we detect an altered ETag, in some cases we still have to check based on our existing data if there really have been relevant activities. Furthermore, we often have trouble with missing actors in our activities. For example, up to now we know when somebody changed a calendar event, but there is no way to find out who this was.

Another issue is the classification of updates. Google’s APIs tell us that something changed with an object. But to build a nice newsfeed you also want to know what exactly has been changed. So you’re looking for a verb like created, updated, shared, commented, moved or deleted. While Hojoki calls itself an aggregator for activities, technically we’re primarily an activity detector.

Final solution

You can think of Hojoki as a multi-layer platform. First of all, we try to get a complete overview on your meta-data of the connected app. In Google Docs, this means files and collections, and we retrieve URI and name as well as some additional information (not the content itself). This information fills a graph-based data storage (we use RDF, read more about it here).

At the moment, we subscribe to events in the integrated apps. If detected, they create a changeset for the existing data graph. This changeset is an activity for our newsfeed and related to the object representation. This allows us to provide a very flexible aggregation and filtering on the client side. See the following screenshot. You can filter the stream for a certain collection (“Analytics”) or only for the file history or for the Hojoki workspace where this file is added (“Hojoki Marketing”).

What’s really important in terms of such heavy API processing is to use asynchronous calls. We use the great Open Source project async-http-client for this task.

A wishlist

When I wrote that “we subscribe to events” this is a very nice euphemism for “we’re polling every 30s to see if something changed”. This is not really optimal and we’d love to change it. If Google Apps APIs would support a feed of user events modelled in a common standard like ActivityStrea.ms, combined with reliable ETags and maybe even a push API (e.g. Webhooks) this would also make life easier for lots of developers syncing their local files with Google and help to reduce traffic on both sides.


Martin Böhringer

Martin is Co-Founder and CEO of Hojoki. Hojoki integrates Google Docs, Calendar, Contacts and Reader next to other apps like Dropbox and Evernote into one newsfeed, showing changes by co-workers in one central place. Martin holds a PhD in information systems and likes to perform on stage at Tech Events.

Wednesday, March 4, 2015

Summer Daily Worksheets for Kindergarten Students Entering First Grade!

I know, I know... most of you are already long into your summer break... but my school hasnt ended yet!  This Monday will be the 176th day of school... and the final day for my kiddos!

As such, Ive been putting together my summer vacation packet for them and I decided to go with a day by day packet! The worksheets included follow a day by day pattern:
  • Math Monday
  • Tell Me About Science Tuesday
  • Writing Wednesday
  • Sight Words Thursday
  • Phonics Friday



The following skills are addressed:

Math Monday
Addition, Subtraction, Problem Solving, Numbers 0-20, Patterns, More and Less

Tell Me About Science Tuesday
Summer, Autumn, Five Senses, Seeds We Eat, Winter, Animals in Winter, Keeping Healthy, Spring, Butterfly Life Cycle

Writing Wednesday
Telling a story using first, next, and last

Sight Words Thursday
away, about, around, any, beside, boy, could, come, came, close, does, down, every, eat, first, from, funny, find, gave, going, help, how, inside, into, just, jump, knew, know, look, little, make, many, new, need, once, open, please, put, ride, run, said, says, them, there, thing, this, under, up, want, went, where, with, your, you

Phonics Friday
Beginning Sounds, Middle Sounds, Ending Sounds, Blends, Digraphs, CVC Word Families


Heres a preview of all of the pages... or you can check out the preview at TPT by clicking the picture!


Enjoy!

Monday, March 2, 2015

IMU LS 02 Web Conferencing for Teaching Learning and Meetings



Date: Wednesday, 11th January 2012
Venue: Online (WizIQ)
Time: 2:15 - 3:30 P.M. (Malaysian time)
Facilitators: Zaid Ali Alsagoff and Fareeza Marican



AGENDA
Can we use Web Conferencing (WizIQ) for teaching, learning and meetings? This online session will explore the basics of using Web Conferencing and how it can be used for teaching and learning. By the end of this session, participants shall be able to use Web Conferencing for teaching, learning, meetings, etc.



RECORDING
You are recommended to skip the first 22 minutes of the recorded webinar, so that you can get right into the action. The actual learning session starts roughly 22 minutes after the recording started. If you have any problems viewing, try updating your Flash Player.


CLICK HERE
(To view the recorded online session)


* Currently, WizIQ (the version we are using) does not have a post-editing feature for webinar recordings. Also, there is no pause button to use while recording a webinar. Please skip the first 22 minutes of the webinar above to really enjoy the learning session. 



PRESENTATION SLIDES
The presentation slides for this webinar is only available for IMU staff (from the e-learning portal). However, here are similar presentation slides from WizIQ, which basically covers what we covered during the webinar.



Wiziq training material
Uploaded by Sunil on WizIQ Tutorials

Webnode Create Your Own Website Easily For Free!

  • Link to Webnode
  • Webnode Overview & Demo
  • Via Malaysian E-Learning Community (Via Jane Hart)

"Webnode is completely FREE. There is no catch."
(Havent we heard that one before? If you tell us the catch we would trust you more!)


The webnode system is a free hosted tool (until when? Soon you will probably see different pricing packages for extra services and additional storage.) that completely manages your entire web project. Anyone, without any technical know-how, can create and manage their own little website (Something like Google Page, but perhaps a bit better. I need to explore both properly to have any serious opinion). There is no need to install anything on your computer or server. Everything is made available through your web browser. Webnode includes tools for website publishing (Webnode Builder), advanced website statistics (Webnode Statistics) and webmail (Webnode E-mail). By using Drag-and-Drop from the toolbar you can add new content such as polls, forums, articles, catalogues, widgets such as PayPal and much more. Webnode contains many cool templates, and you can even make your own.

The interface is pleasant and it seems easy-to-use, and you will probably be positively surprised with all the features and tools provided. Explore the demo site and judge for yourself.

As for me, I am looking forward to meet Stephen Downes for the first time tomorrow (and hopefully not the last!). He is conducting a 2-day e-Learning 2.0 workshop here in Malaysia. Dont worry (and be happy!), I will be posting all the juice I learn from this projected amazing learning adventure (Coming soon!) :)

Sunday, March 1, 2015

Freedom and Empowerment the Next Step for Education and Technology

Link to article (By James Shimabukuro)
Title: Freedom and Empowerment: An Essay on the Next Step for Education and Technology

Synopsis:

"James Shimabukuro acknowledges that the traditional school or college has efficiently educated students of varying ages, with interests in diverse subjects. But he argues that the "factory model" of education will fade quickly when teachers and students are empowered to make full use of Web-based instruction and freed to customize their learning environments. Shimabukuro foresees todays campuses being replaced by electronic zones and multipurpose community complexes; he also imagines that students will turn not to a single teacher, but to a partnership of learning advisors, paraprofessional monitors, and peer tutors to reach their academic goals. The primary impetus for such a revolution will originate inside our schools, Shimabukuro predicts, but legislative and community action will be needed to achieve it."

You need to register (with "Innovate: Journal of online education") to read the full article, but it is certainly worth it as it will also give you access to other interesting articles awakening your mind to the future of education. The future reality begins with visions of the past, and this article provides one worth exploring !

Saturday, February 28, 2015

Social Media for Research at SNDT Webinar !



ONLINE TALK

The inspiring Prof. Vasudha Kamat (Vice Chancellor, SNDTWU) invited me recently to do a webinar (11 May) entitled Social Media for Research for the Online Course in Research methodology for PhD scholars at the Shreemati Nathibai Damodar Thackersey Womens University (SNDTWU), India. How could I say no?

WEBINAR DETAILS

Title: Social Media for Research
Date: 11 May (Saturday)
Time: 7:00 PM (SNDT time or 9:30 PM KL time...Check Timezone differences)
Platform: WizIQ

Description:
Today, more than a Billion people use Facebook, and more than 200 million use Twitter actively to connect, network, interact and share with one another. YouTube receives more than 4 Billion video views per day, millions of people blog, and there are more than 14 million articles on Wikipedia. Social Media today is impacting every aspect of our lives whether it is our social, working, education or family life. However, what about using social media for academic research and sharing scientific knowledge? 

 For example today, many doctors are using various Social Media tools to share and discuss their latest research with their fellow professionals and the public. By doing so, their work is sometimes being peer-reviewed and promoted by hundreds of experts around the world, empowering a more impactful learning and research experience. During this webinar, we will explore various social media tools we can use to discover new knowledge, collaborate with other researchers, and promote our research within and beyond the academic world.


PRESENTATION SLIDES


Social Media For Research at SNDT! from Zaid Alsagoff


RECORDING














CLICK HERE to view the recording.

Please skip the first 30 minutes, as there was a mix-up regarding the scheduled time. Still learning :)

Yes, we went on for more than 2 hours, so it was a long webinar session with a lot of discussions. Have fun discovering the hidden wisdom nuggets within all the noise and who-ha :)

Friday, February 27, 2015

Facebook for Learning Boleh!


Click here to view the Articulate version


DOWNLOAD

  • MP3 and Articulate Version (Unzip before viewing)
  • Slideshare Version


LEARNING SESSION
This weeks learning session explored Facebook and how we can use it to facilitate learning. As expected, thanks to the juicy topic Facebook, we had a full house (e-learning lab, I mean!). Only 25 were allowed to register, but we ended up with 32 participants, which just illustrates that Facebook is an interesting topic.

For those of you who missed the learning session, here is the slidecast version from SlideShare:

Facebook For Learning? Boleh!
View more presentations from Zaid Alsagoff.


LETS DO IT!
Based on our recent poll the majority of both Academic staff (66.7) and students (67.8) that participated think that IMU should use Facebook for e-learning.

But, where to start?

To get your Facebook social learning space moving, why not for starters create a Facebook Group (especially if you want to have a closed group)?



STEP-BY-STEP
Here are two screencast tutorials exploring how to create a Facebook Group and how we could use it to facilitate learning:

Part 1 - Creating a Facebook Group




Part 2 - Exploring Facebook Group Features



But...


Why not combine Moodle (E-learning Portal) and Facebook to facilitate online learning environments that sizzles :)



REFLECTION

If you are wondering how long it took to record the narration (audio) for the Facebook for Learning? Boleh! presentation (41 min) and the two (2) screencast tutorials (5 x 2 min = 10 min), it took actually a whole day. I started 9.30 am in the morning, and completed all recordings by 7.30 pm in the evening. If we minus the lunch break and prayers, I probably spent 7.5 working hours to record the above.

The toughest part was recording the 2 screencasts, because I initially had no clue of what to record or say, and I didnt finish them before 4 pm. I used Screenr (a free tool) to develop the two screencasts, and it is a very user-friendly tool to record anything happening on your screen (other screencasting tools).

Though, Screenr has three (3) major minus points. One, is that you are limited to recording 5 minute sessions (perhaps positive in terms of instructional design and forcing you to be more precise and concise), and that can get annoying if you are recording and just cannot make the 5 minute time-line. If you listen carefully, you will notice this on both the screencasts I recorded. I had to also re-record twice, because I just missed the time line. I suppose I need to chunk it up more in the future, and perhaps use an audio script.

Now, that leads us to the 2nd minus point, which is that you cannot edit what you have recorded. Meaning basically that you have to perfect your recording, or keep on recording until you are satisfied. Post-editing, ability to zoom, adding annotations, and desktop version (offline) would be great, but I suspect Articulate is saving that for the commercial version in the near future. Lets hope I am wrong :)

Thirdly, you cannot record another screencast, while you are uploading and publishing the first one (please correct me if I am wrong!). And if you have a slow connection, now that gets annoying! There should be a feature allowing you to record another screencast, while waiting for the first one to be uploaded. Now that would be useful!

But, besides that Screenr is great. Alright, lets move on! As for recording audio for the presentation slides used during our Facebook workshop, I used Articulate. Since the slides were ready, and I had some idea what to say (no audio script though, which is obvious!), so I managed to record the narration for the presentation (including adding animations and annotations) in roughly three (3) hours. Meaning, it took roughly 4.4 times longer to record, compared to the presentations actual length (41 min). Not bad, but certainly I would love to do it faster. Practice, Reflect, Improve, Practice, Practice...

Besides publishing the Articulate version, I published the podcast version, and extracted the audio, which was uploaded and synchronized to the SlideShare version, to create a screencast. Finally, I uploaded both the MP3 and Articulate version (Zip format) to the Internet Archive enabling anyone to download both formats and explore them further offline.

A quicker approach would be to simply video record the workshop and dump the recording on the web. The approach I took was certainly more exhaustive than simply video recording the workshop, but in the long run this approach could perhaps add more value (learning) and spark more interest to whoever is exploring.

What do you think? :)

Winner for b and d Uno!

And the winners are...


Congratulations ladies!  Be sure to check your email for your copy of b and d Uno!

For anyone else who is interested in the file, head over to my TPT store by clicking the picture below!  It comes in two versions... one with a lot of color ink, and one that uses minimal color ink!  And, its only $2!


Thursday, February 26, 2015

Creating Educational Games for Online Courses!

(Originally posted in ELC on the 5th May, 2004)
According to Dr. Dan Lim (Director of Instructional Technology Center, University of Minnesota), there are ?several notable web-based learning games initiatives like quia.com and thiagi.com are helping education and the training industry with some sustainable gaming delivery of online learning content. Quia.com has reached an impressive critical mass among educators and trainers that they are now charging subion for using their web-based gaming service. They still have a way to catch up with the "flashier" online games. Recently a new digital gaming community has been created at WebCT.com. He further highlights some of ?the criteria that will help learning games become sustainable and attractive to educators and trainers:
  • Contains substantial amount of learning content
  • Draws learners toward the learning content (not distracting)
  • Engages learners to spend hours "playing" with the learning content
  • Balances between easy and difficult learning content
  • Maintains learners interest and motivation throughout the gaming experience
  • Uses compelling visuals and motion graphics to enhance user experience
  • Allows educators and trainers quick and easy design options to create games
  • Integrates with other learning management systems to record and/or track learners progress
  • Allows a variety of gaming objects to retrieve and deliver the same content from one source
  • Delivers games in multiple platforms - web-based, PDA, standalone, etc?

    Source: http://webhome.crk.umn.edu/~dlim/itc/flashgamesinfosite/
The most important point is NOT to think about creating games per se, but creating really fun, challenging structures for highly engaged, enjoyable learning?". - Prensky

The first Flash learning game was launched in July 2001. To date, there are more than 100 games created in multiple disciplines (Biology, Zoology, Hospitality Management, Business Management, Accounting, Systems Analysis, Natural Resources, Communications, etc). Additional disciplines using the learning games are Music, Research, Speech, Ornithology, Library Science, Computer Science, Aviation, and Grammar.

Participating colleges and universities include Nicholls State University, University of Georgia, University of Minnesota, Medical College of Wisconsin, University of North Dakota, Indiana University Kokomo, San Jose State University, University of Central Florida and Institute of Technical Education (Singapore).

There are also collaboration efforts underway in developing an enterprise system to deploy Flash learning games for a large university system as well as integrating with learning management systems. According to a web survey conducted in April 2002, almost 40% of students surveyed indicated that they have played the Flash learning games in at least one course during the school year. Out of the 40% who played the games, 92% indicated the Flash learning games were helpful and recommended them to be integrated into other classes too.

Source: http://webhome.crk.umn.edu/~dlim/itc/flashgamesinfosite/

The Game engine allows any educator can create a game account within the respective game manager edition. During the game account creation process, a session code will be emailed immediately and used to complete the registration process. A user id will be attached to the newly created account?s url for game content identification. The unique game url will retrieve the specific game content from the server-side database. The game content entered can be previewed in a flash game format. When all 80 questions are entered, the game may be enabled for public access.

In addition, they have another game creation manager enable batch upload (internal use only). It uses ColdFusion MX as the backend for uploading all 80 questions at one time. Questions can be pre-entered in a spreadsheet or database format for the batch upload.
Flash Learning Game Objects developed:
  • The Flash Challenge Game
  • The Flash Category Game
  • The Flash Clue Game
  • The Flash Action Game (Still under development for importing external images).
Future developments for Flash learning games include:
  • Enterprise Development
  • PDA Versions for Category and Clue Games
  • Core Education and Basic Skills in various Flash game formats (Online & CD-ROM delivery)
  • 10 Most Popular Gaming Formats - Interchangeable for gaming contents
  • Multi-player Flash Learning Games
Here are a few other online resources that can enable you to create simple quiz games, without needing to have programming or graphic design skills (remember to read the instructions carefully):
  • Quia Web
    Quia Web is one of the worlds most popular educational technology Web sites. It pioneered the "create-your-own" concept, giving instructors the ability to create customized educational software online, built around their own course materials and made available to students over the Web. The idea proved so popular that more than 300,000 educators have registered to use the service. Today, Quia Web offers much more, including assessment and analysis tools and classroom management features, like class pages, calendars, and grade books. All features are intuitive and learn-as-you-go?no special training is ever required.
  • Thiagi
    Thiagi updates this web site every week to provide you with free training games, instructional activities, puzzles, online learning activities, web-based games, and creative training techniques. He also adds a new issue of the free monthly newsletter, Play for Performance, every month.
  • Quiz Game Master
    Create your own Interactive Web-Based Quiz Games such as Dragon? lair, Cryptomania, Memory meter, TicTacToe, etc. You can save them to your computer.
  • WebCT Game Community - Highlighted resources
    They provide discussion areas and resources that can be categorized into three general areas:
    - Designing and developing games that can be easily modified for use in online courses
    - Finding, modifying and deploying customizable games in online courses, and;
    - Researching the effectiveness of games in online learning.
  • Web Author
    Links provided below can be used to make online forms to be used for Web Assisted Learning and Teaching of Languages (WALT). All you need is enter your data in the fields given, and the requested form is generated on the fly. You can simply copy the source code and keep it in your web space, or even leave them in our server and use our web address.
  • Hot Potatoes
    The Hot Potatoes suite includes six applications, enabling you to create interactive multiple-choice, short-answer, jumbled-sentence, crossword, matching/ordering and gap-fill exercises for the World Wide Web. Hot Potatoes is not freeware, but it is free of charge for those working for publicly-funded non-profit-making educational institutions, who make their pages available on the web. Other users must pay for a licence.
  • E.L. Easton
    Create your own, quizzes, exercises, tests, etc.
  • Jan Mulders  Free Javas
    Crossword, Hangman, Slider Puzzle, Word Search, and Memory Squares.
  • Interactive Exercise Maker Pages
    Interactive exercises created through a simple web interface. The makers were developed by Dan Beeby at Haverford, Bryn Mawr, and Swarthmore Colleges as part of the Tri-College Mellon Language Project. Feel free to use the makers, but be sure to read the documentation and follow it closely.
Lets play and learn :)

Tuesday, February 17, 2015

C Program for Finding Transpose of a Sparse Matrix


Transpose of a matrix is obtained by interchanging rows and columns. In another way, we can say that element in the i, j position gets put in the j, i position. Transpose  of the matrix B1 is obtained as B2 by inserting (i,j)th element of B1 as (j,i)th element in B2.

Also Read: C program to read a matrix of size mxn and print its transpose

#include <stdio.h>

#define MAX 20

void printsparse(int[][3]);
void readsparse(int[][3]);
void transpose(int[][3],int[][3]);

void main()
{
    int b1[MAX][3],b2[MAX][3],m,n;
    printf("Enter the size of matrix (rows,columns):");
    scanf("%d%d",&m,&n);
    b1[0][0]=m;
    b1[0][1]=n;

    readsparse(b1);
    transpose(b1,b2);
    printsparse(b2);
}

void readsparse(int b[MAX][3])
{
    int i,t;
    printf("
Enter no. of non-zero elements:");
    scanf("%d",&t);
    b[0][2]=t;

    for(i=1;i<=t;i++)
    {
        printf("
Enter the next triple(row,column,value):");
        scanf("%d%d%d",&b[i][0],&b[i][1],&b[i][2]);
    }
}

void printsparse(int b[MAX][3])
{
    int i,n;
    n=b[0][2];  //no of 3-triples
    printf("
After Transpose:
");

    printf("
row column value
");

    for(i=0;i<=n;i++)
        printf("%d %d %d
",b[i][0],b[i][1],b[i][2]);
}

void transpose(int b1[][3],int b2[][3])
{

    int i,j,k,n;
    b2[0][0]=b1[0][1];
    b2[0][1]=b1[0][0];
    b2[0][2]=b1[0][2];

    k=1;
    n=b1[0][2];

    for(i=0;i<b1[0][1];i++)
        for(j=1;j<=n;j++)
        //if a column number of current triple==i then insert the current triple in b2
            if(i==b1[j][1])
    {

            b2[k][0]=i;
            b2[k][1]=b1[j][0];
            b2[k][2]=b1[j][2];
            k++;
    }
}

C Program for Finding Transpose of a Sparse Matrix

Friday, February 13, 2015

C Program for Array Representation of Stack Push Pop and Display


What is Stack?
Stack is a LIFO (last in first out) structure. It is an ordered list of the same type of elements. A stack is a linear list where all insertions and deletions are permitted only at one end of the list. When elements are added to stack it grow at one end. Similarly, when elements are deleted from a stack, it shrinks at the same end.

Also Read: C++ program to perform a PUSH operation on a dynamically allocated stack
Also Read: Menu Driven C Program to Perform Insert, Display and Delete Operations on a Singly Linked List (SLL)

Below I have written a C program that performs push, pop and display operations on a stack. It is implemented using 1-D array.

C Program for Array Representation of Stack [Push]

C Program for Array Representation of Stack [Delete]

  C Program for Array Representation of Stack [Display]

#include<stdio.h>
#include<conio.h>
#include<process.h>       //for exit()
#include<stdlib.h>         //for system("cls")

#define MAX 5               //Maximum number of elements that can be stored

int top=-1,stack[MAX];
void push();
void pop();
void display();

void main()
{
    int ch;
    while(1)                //infinite loop, will end when choice will be 4
    {
        system("cls");      //work in windows, for other OS change it to system("clear")
        printf("*** Stack Menu ***");
        printf("

1.Push
2.Pop
3.Display
4.Exit");
        printf("

Enter your choice(1-4):");
        scanf("%d",&ch);

        switch(ch)
        {
            case 1: push();
                    break;
            case 2: pop();
                    break;
            case 3: display();
                    break;
            case 4: exit(0);

            default: printf("
Wrong Choice!!Press any key....");
                     getch();
        }
    }
}


void push()
{
    int val;
    if(top==MAX-1)
    {
        printf("
Stack is full!!Press any key....");
        getch();
    }
    else
    {
        printf("
Enter element to push:");
        scanf("%d",&val);
        top=top+1;
        stack[top]=val;
        printf("
Press any key....");
        getch();
    }
}


void pop()
{
    if(top==-1)
    {
        printf("
Stack is empty!!Press any key....");
        getch();
    }
    else
    {
        printf("
Deleted element is %d
Press any key....",stack[top]);
        top=top-1;
        getch();
    }
}


void display()
{
    int i;
    if(top==-1)
    {
        printf("
Stack is empty!!Press any key....");
        getch();
    }
    else
    {
        printf("
Stack is...
");
        for(i=top;i>=0;--i)
            printf("%d
",stack[i]);

    printf("
Press any key....");
    getch();
    }
}