. .

smalltalkDaily

Smalltalk Daily 10/15/10: Convenient Dialog Methods

October 15, 2010 7:44:02.543

Today's Smalltalk Daily looks at some of the other (non file/directory) convenience methods in class Dialog. 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 10/14/10: Using File Dialogs

October 14, 2010 6:39:06.233

Today's Smalltalk Daily looks at File and Directory dialogs in VisualWorks - both native and non-native. 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 10/13/10: Announcements

October 13, 2010 6:38:57.477

Today's Smalltalk Daily looks at the Announcement framework - the replacement for both trigger events and change/update. To follow along with the code, download it here (zip archive of the parcel). 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 10/12/10: Basic File I/O

October 12, 2010 8:42:36.991

Today's Smalltalk Daily looks at some file and stream i/o basics. 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 10/11/10: A Simple COM Example in VW

October 11, 2010 9:46:32.289

Today's Smalltalk Daily looks at interfacing to a simple COM api in Windows - specifically, the speech API. The code to get the dispatch driver is a little involved, so the #setupDriver method in the video is included below - to skip to the video, click here. If you can't see the embedded video directly, you can go directly to YouTube for it.


setupDriver
	"set up the COM driver"

	| ref descs ifc guid  refs |
	refs := COMRegistryInterface extTypeLibraryIDMap select: [:each | each name notNil].
	ref := refs
			detect: [:each | 'Microsoft Speech Object Library*' match: each name]
			ifNone: [nil].
	ref ifNil: [^nil].
	descs := ref containedTypeDescriptions.
	ifc := descs
		detect: [:each | 'SpVoice' match: each name]
		ifNone: [nil].
	ifc ifNil: [^nil].
	guid := ifc guid.
	driver := AdvancedDispatchDriver
		on: (IClassFactory 
				createInstance: guid 
				iid: External.COMConstants.IID_IDispatch 
				context:	External.COMConstants.CLSCTX_SERVER).
	^driver

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 10/08/10: Looking at a Seaside Component

October 8, 2010 7:51:44.605

Today's Smalltalk Daily takes a more detailed look at the Counter example in Seaside. 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 10/07/10: A Simple Seaside 3.0 Example

October 7, 2010 7:37:09.572

Today's Smalltalk Daily looks at the Counter example in Seaside 3.0 - as an example of how to get started with Seaside. 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 10/06/10: Debugging Overnight

October 6, 2010 7:57:48.614

Today's Smalltalk Daily looks at one of the cool things about the Smalltalk image - you can save your current state completely - including debugging sessions. Have a hard problem to debug, and you don't want to stay late? Just save the image and come back to it later. . 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 10/05/10: Integrating with Google Calendar

October 5, 2010 7:45:30.715

Today's Smalltalk Daily looks at integrating a feed from Google calendar with the syndication handling code that is used in BottomFeeder. The code I used in the screencast is below - to load that code, get the packages GCal-Example2 and Syndication-Handling from the public store repository. Make sure to load the latest NetworkAppUtilities as well; the version that loads from disk is not the latest version. To skip to the video, click here.


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

"get the response as XML"
serviceResponse := ServiceRequest
					makeRequestWith: gAuth 
					requestPrepObject: ExampleRequestPrep new.
xml := serviceResponse contents.

"get the feed object"
feed := Constructor getFeedFromStream: xml readStream.

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 10/04/10: Using xAuth

October 4, 2010 6:57:20.585

Today's Smalltalk Daily looks at using xAuth to connect to a public web service - in this case, Twitter. The code I used in the screencast is below - to load that code, get the packages OAuth and MinXAuthTwit from the public store repository. To skip to the video, click here..


"the entire conversation with Twitter"
auth := XAuthenticator fromSettings: (OAuth.Settings fromFile: 'twitterOAuth.ini').
accessData := auth executeXAuthAccessTokenRequest.
postCollection := OrderedCollection new.
postCollection add: 'status' -> 'Testing xAuth to Twitter from Smalltalk'.
auth 
	executeXAuthCallFor: postCollection 
	with: accessData 
	to: 'http://api.twitter.com/1/statuses/update.json'

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

"Using the simpler package I published"
MiniTwitPoster tweet: 'Test Tweet from simple interface object'

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

Next (88 total)