. .

smalltalkDaily

Smalltalk Daily 09/17/10: Getting Email with IMAP

September 17, 2010 7:21:00.256

Today's Smalltalk Daily looks at retrieving email messages with IMAP from Cincom Smalltalk. The code used is below; to skip to the video, click here.


"login"
imap := IMAPClient host: cincom.
netuser := NetUser username: username password: password.
imap user: netuser.
imap connect; login.

"work with the mailbox"
data := imap examineMailbox: 'inbox'.
numMessages := data first value asNumber.
msgs := imap fetchMessages: (1 to: numMessages) asArray.

"delete from server"
imap markForDelete: (1 to: numMessages) asArray.
imap 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/16/10: Retrieving Email with Smalltalk

September 16, 2010 7:48:20.773

Today's Smalltalk Daily looks at retrieving email messages with POP3 from Cincom Smalltalk. The code used is below; to skip to the video, click here.


"login, get message list"
user := NetUser username: user password: password.
client := POP3Client host: 'pop.gmail.com'.
client user: user.
client useSecureConnection.
client 
	connect; 
	login.
list := client list.

"get the messages"
msgs := list collect: [:each | | num message |
	num := each messages.
	id := client retrieveMessageID: num.
	message := client retrieveMessage: num.
	id -> message].

"delete from server"
client deleteMessageIds: (msgs collect: [:each | each key]).

"disconnect"
client disconnect.


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/15/10: Sending Email from Smalltalk

September 15, 2010 7:24:15.185

Today's Smalltalk Daily looks at sending email messages from Cincom Smalltalk. The code used is below; to skip to the video, click here.


msg := MailMessage newTextPlain.
msg from: 'user1@system.com'.
msg to: 'user2@system.com'.
msg subject: 'test mail from VW'.
msg text: 'This is a message test, just ignore it'.
client := SMTPClient host: 'smtp.system.com'.
client user: (NetUser username: username password: password).
client useSecureConnection.
client connect.
client login.
client sendMessage: msg.
client quit.

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/14/10: Using FTP in Smalltalk

September 14, 2010 9:24:36.123

Today's Smalltalk Daily looks at the FTP client in Cincom Smalltalk. The code used is below; to skip to the video, click here.


file := 'buildWin.st'.
file asFilename exists. false

ftp := FTPClient
	loginToHost: 'ftp.cincomsmalltalk.com'
	asUser: username
	withPassword: password.
ftp setServerPassive.
" ftp beCurrentDirectory: 'html' "
ftp retrieveFileNamed: file as: file.
ftp close.

file asFilename exists. true
file asFilename edit.

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/13/10: Smalltalk and Proxy Servers

September 13, 2010 7:53:58.638

Today's Smalltalk Daily looks at how you use proxy services - including NTLM - in Cincom Smalltalk. To watch now on YouTube, click here. The code used in the screencast (click here to skip right to the video):


"set up for proxy services"
proxy := (HostSpec new
			name: cincomProxy;
			port: 80;
			type: 'http';
			yourself).

proxy netUser: (NetUser username: username password: password).
Net.Settings httpDomain: 'CINCOM'.
cl := HttpClient new.
cl 
	proxyHost: proxy;
	useProxy: true.
reply := cl get: 'http://www.yahoo.com'.

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 9/10/10: Creating HTTP POSTs

September 10, 2010 7:32:13.781

Today's Smalltalk Daily looks at doing Http POST and GET requests in Cincom Smalltalk - VisualWorks or ObjectStudio. The examples I used are below; they hit a simple servlet I have on a test server in my office. To skip to the video now, click here.

If you can't see the embedded video directly, you can go directly to YouTube for it.


"Do a simple GET"
response := HttpClient new get: 'http://victoria:8011/blog/servlet/TestBlogServlet'

"Do a POST request for a site that should be there"
postData := OrderedCollection with: 'blog' -> 'blog'.
client := HttpClient new.
request := HttpRequest method: 'POST' url: 'http://victoria:8011/blog/servlet/TestBlogServlet'.
request formData: postData.
client executeRequest: request.

"Do a POST request for a site that should not be there"
postData := OrderedCollection with: 'blog' -> 'foo'.
client := HttpClient new.
request := HttpRequest method: 'POST' url: 'http://victoria:8011/blog/servlet/TestBlogServlet'.
request formData: postData.
client executeRequest: request.

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/09/10: Deploying Applications in WebVelocity 1.1

September 9, 2010 10:57:23.580

Today's Smalltalk Daily looks at how you deploy applications using WebVelocity 1.1. 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/08/10: Scripting and HTTP

September 8, 2010 6:30:04.500

Today's Smalltalk Daily looks at how you use HTTP authentication (Basic, Digest, or NTLM) in Cincom Smalltalk. 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/07/10: HTTP Authentication

September 7, 2010 7:15:01.897

Today's Smalltalk Daily looks at how you use HTTP authentication (Basic, Digest, or NTLM) in Cincom Smalltalk. 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/03/10: 32 Bit VisualWorks on 64 Bit Linux

September 3, 2010 9:17:32.209

Today's Smalltalk Daily looks at running 32 bit VisualWorks on a 64 bit Linux installation. To get it working, you need to install the 32 bit libs, which typically aren't installed in the base 64 bit distro. If you can't see the embedded video directly, you can go directly to YouTube for it. I also did a write up of what's covered in this screencast here. 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)