. .

st4u

ST 4U 314: Reading Collections with Streams

November 28, 2012 9:59:10.964

Today's Smalltalk 4 You looks at readng objects from collections in Smalltalk - streams are hardly limited to strings. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

read streams.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll have a look at reading arbitrary collections via streams. In Smalltalk, streams can be used to read any collection (not just strings). For example: here we set up a ByteArray, and then read from it:


stream := #[12 23 34 78 99] readStream.
collection := OrderedCollection new.
collection add: stream next.
collection skip: 2.
collection add: stream next.
^collection

If you inspect the results, you'll see the collection #(12 78). You can do the same with collections of disparate objects:


stream2 := #('one' 2 'four' 16.2 $F 81) readStream.
collection2 := OrderedCollection new.
collection2 add: stream2 next.
collection2 skip: 2.
collection2 add: stream2 next.
^collection2

Inspecting the results will give you the collection #('one' 16.2). Next time, we'll look at writing collections using streams.

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: ,

Enclosures:
[st4u314-iPhone.m4v ( Size: 2881153 )]

posted by James Robertson

 Share Tweet This

news

Food Service Jobs Going Next?

November 28, 2012 8:51:46.596

At least at the fast food end, it looks like it's possible:

Single-item menus, zero line cooks and almost no wait times, MM’s proposed restaurant would be completely minimalist and tailored to improve guests’ experiences. Capable of pushing out approximately 360 burgers an hour, the machine takes up only 24 square feet, allowing for more spacious seating areas and hopefully more time spent improving the overall dining experience.

The full service restaurant will never go out of style; you're paying for the experience, not just dinner. But at the low end? I expect a lot of those jobs to die the same way factory jobs have.

Technorati Tags:

posted by James Robertson

 Share Tweet This

js4u

JS 4U 224: Fusion Map Layer

November 27, 2012 9:29:32.010

Javascript 4 U

Today's Javascript 4 You looks at the gt() function in JQuery. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube.

Join the Facebook Group to discuss the tutorials. You can view the archives here.

To watch now, click on the image below:

fusion layer

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: ,

Enclosures:
[js4u224-iPhone.m4v ( Size: 1083940 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 313: Profiling in Pharo

November 26, 2012 10:14:56.496

Today's Smalltalk 4 You looks at the time profiler in Pharo Smalltalk. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Profiler

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: , ,

Enclosures:
[st4u313-iPhone.m4v ( Size: 2142333 )]

posted by James Robertson

 Share Tweet This

smalltalk

Videos From Smalltalks 2012

November 26, 2012 9:36:48.000

A YouTube channel has been set up - all the content from the conference will end up there.

Technorati Tags:

posted by James Robertson

 Share Tweet This

smalltalk

Try Redline Out

November 26, 2012 9:18:10.438

Redline Smalltalk has progressed to a point where you can give it a try yourself.

Technorati Tags:

posted by James Robertson

 Share Tweet This

podcastAAC

IM 104: New Smalltalk Projects (AAC)

November 25, 2012 11:02:29.263

Welcome to episode 104 of Independent Misinterpretations - a Smalltalk and dynamic language oriented podcast with James Robertson and David Buck.

This week we have another recording from the STIC 2012 conference - Georg Heeg talking about new Smalltalk projects. If you would rather watch the video, head on over to the STIC website.

You can subscribe to the podcast in iTunes (or any other podcatching software) using this feed directly or in iTunes with this one.

To listen now, you can either download the mp3 edition, or the AAC edition. The AAC edition comes with chapter markers. You can subscribe to either edition of the podcast directly in iTunes; just search for Smalltalk and look in the Podcast results. You can subscribe to the mp3 edition directly using this feed, or the AAC edition using this feed using any podcatching software. You can also download the podcast in ogg format.

If you like the music we use, please visit Josh Woodward's site. We use the song Troublemaker for our intro/outro music. I'm sure he'd appreciate your support!

If you have feedback, send it to jarober@gmail.com - or visit us on Facebook - you can subscribe in iTunes using this iTunes enabled feed.. If you enjoy the podcast, pass the word - we would love to have more people hear about Smalltalk!

Technorati Tags: ,

Enclosures:
[im104.m4a ( Size: 19381732 )]

posted by James Robertson

 Share Tweet This

podcast

IM 104: New Smalltalk Projects

November 25, 2012 11:01:46.880

Welcome to episode 104 of Independent Misinterpretations - a Smalltalk and dynamic language oriented podcast with James Robertson and David Buck.

This week we have another recording from the STIC 2012 conference - Georg Heeg talking about new Smalltalk projects. If you would rather watch the video, head on over to the STIC website.

You can subscribe to the podcast in iTunes (or any other podcatching software) using this feed directly or in iTunes with this one.

To listen now, you can either download the mp3 edition, or the AAC edition. The AAC edition comes with chapter markers. You can subscribe to either edition of the podcast directly in iTunes; just search for Smalltalk and look in the Podcast results. You can subscribe to the mp3 edition directly using this feed, or the AAC edition using this feed using any podcatching software. You can also download the podcast in ogg format.

If you like the music we use, please visit Josh Woodward's site. We use the song Troublemaker for our intro/outro music. I'm sure he'd appreciate your support!

If you have feedback, send it to jarober@gmail.com - or visit us on Facebook - you can subscribe in iTunes using this iTunes enabled feed.. If you enjoy the podcast, pass the word - we would love to have more people hear about Smalltalk!

s

Technorati Tags: ,

Enclosures:
[im104.mp3 ( Size: 14047151 )]

posted by James Robertson

 Share Tweet This

blog

Thanksgiving Break

November 22, 2012 11:14:40.000

There won't be any screencasts for Thursday and Friday, as I'm visiting family for the holiday. The podcast will be taking a weekend off as well. Happy Thanksgiving to all!

posted by James Robertson

 Share Tweet This

st4u

ST 4U 312: Finding all the Breakpoints

November 21, 2012 10:10:36.128

Today's Smalltalk 4 You looks at a common problem in any development toolset - finding (and removing or reconfiguring) all the breakpoints you set during a develoopment session. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Breakpoints.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll have a look at how you find and clear (or reconfigure) breakpoints - something that can be quite valuable after you've dropped a number of them during a debugging session. To start with, pull down the Tools menu in the launcher

breakpoints

In the tool that comes up, you'll see each breakpoint you have listed. You can select them from the list, and then use the various menu options on the selection:

Breakpoint Tool

Specifically, you can select Clear (to remove) or Configure (to reset the way the BP works) from that menu:

Breakpoint Menu

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u312-iPhone.m4v ( Size: 1545949 )]

posted by James Robertson

 Share Tweet This

smalltalk

Help Get Redline Smalltalk Across the Finish Line

November 21, 2012 9:42:43.717

The Redline Smalltalk guys are asking for help:

As you know I really love Smalltalk. So much so I have created a version of it that runs on the Java Virtual Machine. Please can you look at this campaign

Technorati Tags: ,

posted by James Robertson

 Share Tweet This