. .

smalltalkDaily

Smalltalk Daily 10/01/10: Using Google Calendar Feeds

October 1, 2010 8:40:50.025

Today's Smalltalk Daily looks at using the client authentication to Google we built to retrieve an Atom feed of calendar events. The code I'm demonstrating is in the public store repository under the name GCal-Example - the usage in the screencast is below. To skip to the video, click here.


"get the request token - cl is the calendar service"
gAuth := AuthRequest 
	requestTokenFor: 'cl' 
	user: username
	password: password
	clientName: 'Cincom-VisualWorks-771'.

"get the response as XML"
request := EventRangeRequest
					from: (Timestamp readFrom: '09/01/10 0:00:00' readStream)
					to: (Timestamp readFrom: '10/01/10 0:00:00' readStream).
response := ServiceRequest
					makeRequestWith: gAuth
					requestPrepObject: request.
xml := response contents.

"save the results as a file for addition to any RSS/Atom aware tool"
file := 'calFeed.xml' asFilename writeStream.
file nextPutAll: xml.
file close.

If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/30/10: Using the Google Calendar API

September 30, 2010 8:35:01.747

Today's Smalltalk Daily looks at using the client authentication to Google we built yesterday. Today's screencast builds a small example of interfacing to Google to get your calendar settings. The code I'm demonstrating is in the public store repository under the name GCal-Example - the usage in the screencast is below. To skip to the video, click here..


"get the request token - cl is the calendar service"
gAuth := AuthRequest 
	requestTokenFor: 'cl' 
	user: username
	password: password
	clientName: 'Cincom-VisualWorks-771'.

"get settings the hard way"
settingsRequest := SettingsRequest new user: username.
settingsResponse := ServiceRequest
					makeRequestWith: gAuth
					requestPrepObject: settingsRequest.
CalendarSettings from: ((JsonReader 
		readFrom: settingsResponse contents readStream)
	 at: 'data').

"make it simpler"
SettingsRequester getSettingsFor: username using: gAuth


If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/29/10: Using Google Client Auth

September 29, 2010 9:19:59.051

Today's Smalltalk Daily looks at implementing a client interface to Google services. That required implementing the client login scheme google uses (for desktop clients). Today's screencast covers that client auth scheme. The code I'm demonstrating is in the public store repository under the name GoogleClientAuth - the usage in the screencast is below. To skip to the video, click here..


"get the request token - cl is the calendar service"
gAuth := AuthRequest 
	requestTokenFor: 'cl' 
	user: username
	password: password
	clientName: 'Cincom-VisualWorks-771'.

"now we can start making requests - this makes a 
simple request to the 'own' feed for google calendar"
serviceResponse := ServiceRequest
					makeRequestWith: gAuth 
					requestPrepObject: ExampleRequestPrep new.
feed := serviceResponse contents

If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/28/10: Using a RESTful Web API

September 28, 2010 8:04:33.951

Today's Smalltalk Daily looks at using a simple, RESTful web api from a Smalltalk client. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/27/10: Customizing Debugger Hotkeys

September 27, 2010 9:26:28.421

Today's Smalltalk Daily looks at customizing the hotkeys for the debugger. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/24/10: Hooking an OS UI to a Domain Model

September 24, 2010 9:00:43.660

Today's Smalltalk Daily looks at creating an ObjectStudio UI for an existing domain model - the one we created in this screencast. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/23/10: Using SUnitToo

September 23, 2010 7:53:28.963

Today's Smalltalk Daily looks at using SUnitToo to create a simple unit test - the test is for the code we created in yesterday's screencast. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/22/10: Hooking Up a UI and Domain Model

September 22, 2010 8:16:00.257

Today's Smalltalk Daily looks at hooking up a domain model to a UI. You can follow along by downloading the code here. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/21/10: Modeling with ADvance

September 21, 2010 8:10:44.325

Today's Smalltalk Daily is an overview of the ADvance modeling tool that ships with VisualWorks. Specifically, we use it to produce HTML documentation of a package. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

smalltalkDaily

Smalltalk Daily 09/20/10 - Debugger Overview

September 20, 2010 8:03:45.402

Today's Smalltalk Daily is an overview of the debugger in VW 7.7.1 and ObjectStudio 8.2.1. In today's screencast, we take a look at the toolbar buttons, which is what you'll use most often when debugging. If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

Previous Next (88 total)