. .

js4u

JS 4U 198: Maps and Events 1

23 August 2012 7:26:05 AM

Javascript 4 U

Today's Javascript 4 You starts looking at how to hook up event listeners in the context of the Javascript Google Maps API. 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:

Maps

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:

JS 4U 198: Maps and Events 1 Using the Google maps API, it's easy to hook up simple event listeners javascript, maps, events 0:40 1149089 http://archive.org/details/Js4u198MapsAndEvents1 http://archive.org/download/Js4u198MapsAndEvents1/js4u198.wmv http://archive.org/download/Js4u198MapsAndEvents1/js4u198-iPhone.m4v http://archive.org/download/Js4u198MapsAndEvents1/js4u198.mp4 http://youtu.be/gHddL9S-hC0

Technorati Tags: , ,

Enclosures:
[js4u198-iPhone.m4v ( Size: 1149089 )]

posted by James Robertson

 Share Tweet This

smalltalk

Newspeak on Dart?

23 August 2012 8:16:09 PM

Sounds like hosting on Dart is a better idea than on Javascript. However, does any browser other than Chrome actually support Dart directly?

Technorati Tags: , ,

posted by James Robertson

 Share Tweet This

st4u

ST 4U 275: Deploying Web Services in VA Smalltalk

24 August 2012 10:11:45 AM

Today's Smalltalk 4 You puts the pieces together on WS* in VA Smalltalk - we'll deploy our simple example. 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:

Web Services.

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 go back to the Web Services example we had been building in VA Smalltalk. To get started, recall the simple example we'll be using - a "counter" class:

Example

The first thing we'll need is a server to listen on a port. Start that this way:


server := SstHttpServerExample
        runAt: 'http://:7777'

        in: ('C:\Program Files\Instantiations\VA Smalltalk\8.5\xml').

The file path should be to wherever you have VA looking for the XML files, as specified in your ini file.

If you do that correctly, you should see a console window like the following appear:

Listener

That window will log what's happening, so if anything goes wrong, you can examine the results. Next, you'll need to deploy the container for your WS* application:


SstWSContainer clearAll.

"create server container" 

[ | aContainer  | 
aContainer := SstWSContainer
        createContainerNamed:  'ServerContainer'
         using: (SstWSContainerConfiguration defaultConfiguration).
        aContainer startUp.
        aContainer deploy:   'http://localhost:7777/CounterServer.xml'] fork.


You should see some reporting in the server log after doing this:

Listener

Now, we are ready to actually set up and invoke the code through a client. Here's the code for that:


"create client container" 

[ "| cContainer counterService |"
    cContainer := SstWSContainer
        containerNamed:  'ClientContainer'
        ifNone: [SstWSContainer createContainerNamed: 'ClientContainer'].
        cContainer deploy:   'http://localhost:7777/CounterClient.xml'.


   "two ways to retrieve the service from the client" 

   "counterService := (SstWSContainer 
		containerNamed: 'ClientContainer') allServices first. "
   counterService := (SstWSContainer containerNamed: 'ClientContainer') 
	serviceNamed: 'Counter' inNamespace: 'http://www.Counter.com/Counter-impl'.

   "result should be the string returned from the Counter class methods" 

   (counterService addValue: '5') inspect.
   (counterService subtractValue: '10' ) inspect  ] fork.

Notice the lines at the end where we invoke the service. If everything went well, you'll see two signs that it all worked - lines in the Transcript from the code, and more entries in the log:

Worked

Worked

Finally, if you want to experiment with the example, you may need the following "clean up" code - to clear out your listeners and start fresh:


(SstWSContainer containerNamed: 'ServerContainer') shutDown.

(SstWSContainer containerNamed: 'ClientContainer') shutDown

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:
[st4u275-iPhone.m4v ( Size: 4509257 )]

posted by James Robertson

 Share Tweet This

smalltalk

Camp Smalltalk Begins at ESUG 2012

25 August 2012 7:23:13 PM

Craig Latta:

Huge thanks to yesplan.be for hosting Camp Smalltalk at ESUG 2012 in Gent, Belgium! I walked in and connected my computer to a humongous display and wireless keyboard/mouse, and connected myself to a humongous pile of speculoos, koffie, and Belgian chocolate. :)  All while a charming street festival went on outside. This is the perfect recipe for classic code!

Technorati Tags:

posted by James Robertson

 Share Tweet This

st4u

ST 4U 276: Stdin/Stdout with Pharo

27 August 2012 10:06:41 AM

Today's Smalltalk 4 You looks at using stdin/stdout in Pharo. 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:

stdout

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:
[st4u276-iPhone.m4v ( Size: 1995159 )]

posted by James Robertson

 Share Tweet This

smalltalk

Aida 6.5 Released

27 August 2012 8:36:09 PM

Aida/Web 6.5 is out:

Summer Edition of Aida/Web framework and application server is here with bunch of new features

Technorati Tags:

posted by James Robertson

 Share Tweet This

js4u

JS 4U 199: Maps and Events: Markers

28 August 2012 9:58:57 AM

Javascript 4 U

Today's Javascript 4 You looks at adding map markers (and attaching events to them) in the Google Maps API. 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:

maps and events

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:
[js4u199-iPhone.m4v ( Size: 2633144 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 277: DDE in VA Smalltalk

29 August 2012 2:57:41 PM

Today's Smalltalk 4 You looks at using DDE (Windows) in VA 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:

DDE.

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 take a look at DDE support in VA Smalltalk. While DDE is an old way of doing inter-process communication, it still works well, and it's easy to use. To start, load the DDE-Examples package from the features tool, and then find the DDE-Examples Application:

Example

Have a look at the DDETimeServer and the DDETimeClient. We'll be using those for the purpose of this example. Just create an instance of the server in a workspace:

Example Code

Then create the client - you should see the time printing to the Transcript. All this example does is set up a topic for the client to find, and, when found, print to the Transcript:

printing

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:
[st4u277-iPhone.m4v ( Size: 2470096 )]

posted by James Robertson

 Share Tweet This

js4u

JS 4U 200: Maps and Events: Custom Markers

30 August 2012 8:44:31 AM

Javascript 4 U

Today's Javascript 4 You looks at using map markers with the Google Maps API. 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:

map markers

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:
[js4u200-iPhone.m4v ( Size: 1540739 )]

posted by James Robertson

 Share Tweet This

smalltalk

On the Bleeding Edge with Seaside and Pharo

30 August 2012 8:58:52 AM

If you want to try out the latest Seaside and the latest Pharo at the same time, you'll want to see this.

Technorati Tags: ,

posted by James Robertson

 Share Tweet This

smalltalk

Thanks ESUG!

30 August 2012 9:50:38 AM

Yet another reason I wish I was at ESUG this year - the people in that part of the Smalltalk community are great. They just sent me this (click through for the full size version):

Smalltalk Promotion

Technorati Tags:

posted by James Robertson

 Share Tweet This

smalltalk

Gemstone and Cloud Foundry

30 August 2012 3:01:06 PM

James Foster has updated his "how to":

Some time ago I described the steps I used to add Perl as a simple runtime and framework to Cloud Foundry. Since then many changes have taken place in Cloud Foundry and those steps no longer work. I now have something that works as of 30 August 2012. To see the changes go to my github repository and view the changes to  vcap, vcap-staging, stager, and cloud_controller. Note that the recent refactoring of Cloud Foundry means that instead of isolating changes to one repository, we now make changes to four repositories.

Technorati Tags: ,

posted by James Robertson

 Share Tweet This

smalltalk

Video Channel for Smalltalks 2011

30 August 2012 5:02:02 PM

It's being posted now, on YouTube

Technorati Tags: ,

posted by James Robertson

 Share Tweet This