. .

js4u

JS 4U 107: The delay() function in JQuery

November 15, 2011 8:26:39.737

Javascript 4 U

Today's Javascript 4 You looks at the delay() 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:

delay()

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

posted by James Robertson

 Share Tweet This

smalltalk

GemStone/S 64 3.0.1 is Shipping

November 15, 2011 19:55:06.197

Spotted in (gem)Stone Soup

GemStone/S 64 3.0.1 was released on Monday of this week.GemStone/S 64 Bit 3.0.1 is a new version of the GemStone/S 64 Bit object server. This release provides feature enhancements and fixes a number of serious 3.0 bugs.

Follow the links for lots more details

Technorati Tags: ,

posted by James Robertson

 Share Tweet This

st4u

ST 4U 159: Setting up a GLORP Descriptor

November 16, 2011 8:28:51.650

Today's Smalltalk 4 You starts working with Glorp descriptors - which is how you define mappings between objects and tables in Glorp.. 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:

Glorp Descriptors.

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 set up the basics for using Glorp to interact with tables in a database. To start with, we'll need to set up a descriptor class:


DescriptorSystem subclass: #EmpSystem
    instanceVariableNames: ''
    classVariableNames: ''
    poolDictionaries: ''

DescriptorSystem defines the basics for interacting with a database using Glorp; the subclass we are setting up will define the table mappings we want to use. Today we are going to define a simple mapping to a table (Emp), and then we are going to use Glorp to create that table in the database. There are a few methods we need to define, all instance side. To start with, we need a #tableForTABLENAMEHERE: method - note the caps, which will be replaced by actual name of the table:


tableForEMP: aTable 
	aTable createFieldNamed: 'first_name' type: (platform varChar: 50).
	aTable createFieldNamed: 'last_name' type: (platform varChar: 50).

This is the pattern you'll use to map Smalltalk objects (instance variables) to columns. We'll explain how the column names get mapped to instance variables below. You'll also need a method to define all the tables being mapped by this descriptor; it should return an array:


allTableNames
	^#('EMP')

Next, we need to give the mappings a bit more fleshing out:


descriptorForEmp: aDescriptor
	| table |
	table := self tableNamed: 'EMP'.
	aDescriptor table: table.
	(aDescriptor newMapping: DirectMapping) 
		from: #firstName
		to: (table fieldNamed: 'first_name').
	(aDescriptor newMapping: DirectMapping) 
		from: #lastName
		to: (table fieldNamed: 'last_name')

That's how we map column names to variable names; here we are using direct mapping. There are other mapping methods, but we'll leave that for another day. For now, we need two more methods:


constructAllClasses
	^(super constructAllClasses)
	add: Emp;
	yourself


classModelForEMP: aClassModel
	aClassModel newAttributeNamed: #firstName.
	aClassModel newAttributeNamed: #lastName.


That's how most descriptors you create will look (with the specifics for the tables/classes filled in, of course). Now we can make use of this code to create the Emp table in the database (Oracle in this case):


"login"
accessor := DatabaseAccessor forLogin: login.
accessor login.

"create a session"
session := GlorpSession new.
session system: (EmpSystem forPlatform: login database).
session accessor: accessor.

"see the SQL in Transcript"
session accessor logging: true.

"now create the table"
session inTransactionDo:
[session system allTables do: 
	[:each | 
		accessor 
		createTable: each 
	ifError: [:error |Transcript show: error messageText]]].
	
	
accessor logout

How do we know that worked? We'll pop up SQLPlus (an Oracle tool) and have a look:

sqlplus"

That wraps it up for today - we'll get to inserts, updates, queries, and deletes soon.

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

posted by James Robertson

 Share Tweet This

games

Stuck in the Labyrinth

November 16, 2011 14:39:40.000

I'm playing Skyrim on both my XBox and my Mac (using Parallels), so my progress in both games is running about the same - I can't play on the XBox while I'm in Texas, and I mostly play the XBox when I'm home. On the PC game, I've been doing the mage college quest, looking for the Staff of Magnus - and I've gotten to this room in Labyrinthian:

I spent about 20 minutes (at an absurdly late hour last night) staring at that room and at the map, trying to figure out where to go. I guess the name has meaning :)

Most engaging game ever, by the way - listen to our podcast, and go buy it!

Technorati Tags:

posted by James Robertson

 Share Tweet This

smalltalk

MagLev 1.0 Ships

November 16, 2011 17:00:00.000

Gemstone (VMWare) has shipped MagLev 1.0 - as reported by InfoQ:

MagLev 1.0 has been released: MagLev is a Ruby VM built on GemStone/S, a 64 bit Smalltalk VM. But MagLev is much more than a Ruby VM, it comes with a mature NoSQL data store, from the website:

MagLev VM takes full advantage of GemStone/S JIT to native code performance, distributed shared cache, fully ACID transactions, and enterprise class NoSQL data management capabilities to provide a robust and durable programming platform. It can transparently manage a much larger amount (terabytes) of data and code than will fit in memory.

posted by James Robertson

 Share Tweet This

js4u

JS 4U 108: The stop() function in JQuery

November 17, 2011 8:25:05.772

Javascript 4 U

Today's Javascript 4 You looks at the stop() 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:

stop()

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

posted by James Robertson

 Share Tweet This

smalltalk

Squeak, SSL, and Windows

November 18, 2011 8:36:46.000

Andreas Raab explains how to get all those moving parts working together.

Technorati Tags: , , ,

posted by James Robertson

 Share Tweet This

st4u

ST 4U 160: Menu Pragmas in VisualWorks

November 18, 2011 10:41:14.424

Today's Smalltalk 4 You looks at menu pragmas in VisualWorks - a way to dynamically modify a menu without having to edit the menu specification itself. 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:

menu pragmas

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

posted by James Robertson

 Share Tweet This

skyrim

Thu'umcast 3: They Die Like Flies

November 19, 2011 0:48:45.872

Thu'umcast

Welcome to episode 3 of "Thu'umcast" - a podcast where Michael Lucas-Smith, Scott Dirk, Austin Haley, Makahlua and I document our trials and tribulations in Elder Scrolls V: Skyrim

Today we talk about our characters, and the widely different paths through the game we've taken. Not all of us have done the main quest yet, so we aren't talking about that yet - probably next episode. The title comes from me - I keep managing to get my companions killed :)

If you liked our work on That Podcast, you'll probably like this. We intend to stay with the same idea - a gameplay podcast. If you don't want spoilers, don't listen - we are going to be talking about how we play the game, and what we ran across as we played.

You can subscribe in iTunes (or any podcatcher) using this feed, or this one for the AAC edition. We'll add the iTunes specific links as soon as they are available. In the meantime, join the Facebook Group and follow us on Twitter. If you play on Steam, join the Steam Group. Like the music? Pay Sbeast a visit, we thank him for letting us use it!

Links to all episodes and other information can be found on the Thu'umcast page

.

If you want to download the podcast directly, we've provided it in three formats:

Got feedback? Tweet us!. Enjoy the podcast, and we'll see you in Skyrim!

Technorati Tags: ,

Enclosures:
[thuum3.mp3 ( Size: 17756378 )]

posted by James Robertson

 Share Tweet This

skyrimAAC

Thu'umcast 3: They Die Like Flies (AAC)

November 19, 2011 0:49:01.462

Thu'umcast

Welcome to episode 3 of "Thu'umcast" - a podcast where Michael Lucas-Smith, Scott Dirk, Austin Haley, Makahlua and I document our trials and tribulations in Elder Scrolls V: Skyrim

Today we talk about our characters, and the widely different paths through the game we've taken. Not all of us have done the main quest yet, so we aren't talking about that yet - probably next episode. The title comes from me - I keep managing to get my companions killed :)

If you liked our work on That Podcast, you'll probably like this. We intend to stay with the same idea - a gameplay podcast. If you don't want spoilers, don't listen - we are going to be talking about how we play the game, and what we ran across as we played.

You can subscribe in iTunes (or any podcatcher) using this feed, or this one for the AAC edition. We'll add the iTunes specific links as soon as they are available. In the meantime, join the Facebook Group and follow us on Twitter. If you play on Steam, join the Steam Group. Like the music? Pay Sbeast a visit, we thank him for letting us use it!

Links to all episodes and other information can be found on the Thu'umcast page

.

If you want to download the podcast directly, we've provided it in three formats:

Got feedback? Tweet us!. Enjoy the podcast, and we'll see you in Skyrim!

Technorati Tags: ,

Enclosures:
[thuum3.m4a ( Size: 24289518 )]

posted by James Robertson

 Share Tweet This

podcast

IM 55: Debuggers Considered Useful

November 20, 2011 20:38:02.229

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

This week Dave and I address the (completely misguided, in our opinion) meme that "you don't need a debugger". As you might expect from a couple of experienced Smalltalk hands, we don't think much that :)

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:
[im55.mp3 ( Size: 12317479 )]

posted by James Robertson

 Share Tweet This

podcastAAC

IM 55: Debuggers Considered Useful (AAC)

November 20, 2011 20:38:43.679

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

This week Dave and I address the (completely misguided, in our opinion) meme that "you don't need a debugger". As you might expect from a couple of experienced Smalltalk hands, we don't think much that :)

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:
[im55.m4a ( Size: 17022983 )]

posted by James Robertson

 Share Tweet This

skyrim

Thu'umcast 4: It's Just a Little Drinking Contest

November 20, 2011 23:03:21.310

Thu'umcast

Welcome to episode 4 of "Thu'umcast" - a podcast where Michael Lucas-Smith, Scott Dirk, Austin Haley, Makahlua and I document our trials and tribulations in Elder Scrolls V: Skyrim

Today we talk about a lot of things, but mostly about the different paths we're all taking through the game. Enchanting, swordplay, smithing, and magic - this game is so big, we're all diverging a lot - and we're all looking forward to our next playthrough so we can try something different (even though we haven't nearly finished our first :) ).

If you liked our work on That Podcast, you'll probably like this. We intend to stay with the same idea - a gameplay podcast. If you don't want spoilers, don't listen - we are going to be talking about how we play the game, and what we ran across as we played.

You can subscribe in iTunes (or any podcatcher) using this feed, or this one for the AAC edition. We'll add the iTunes specific links as soon as they are available. In the meantime, join the Facebook Group and follow us on Twitter. If you play on Steam, join the Steam Group. Like the music? Pay Sbeast a visit, we thank him for letting us use it!

Links to all episodes and other information can be found on the Thu'umcast page

.

If you want to download the podcast directly, we've provided it in three formats:

Got feedback? Tweet us!. Enjoy the podcast, and we'll see you in Skyrim!

Technorati Tags: ,

Enclosures:
[thuum4.mp3 ( Size: 11359234 )]

posted by James Robertson

 Share Tweet This

skyrimAAC

Thu'umcast 4: It's Just a Little Drinking Contest (AAC)

November 20, 2011 23:03:57.400

Thu'umcast

Welcome to episode 4 of "Thu'umcast" - a podcast where Michael Lucas-Smith, Scott Dirk, Austin Haley, Makahlua and I document our trials and tribulations in Elder Scrolls V: Skyrim

Today we talk about a lot of things, but mostly about the different paths we're all taking through the game. Enchanting, swordplay, smithing, and magic - this game is so big, we're all diverging a lot - and we're all looking forward to our next playthrough so we can try something different (even though we haven't nearly finished our first :) ).

If you liked our work on That Podcast, you'll probably like this. We intend to stay with the same idea - a gameplay podcast. If you don't want spoilers, don't listen - we are going to be talking about how we play the game, and what we ran across as we played.

You can subscribe in iTunes (or any podcatcher) using this feed, or this one for the AAC edition. We'll add the iTunes specific links as soon as they are available. In the meantime, join the Facebook Group and follow us on Twitter. If you play on Steam, join the Steam Group. Like the music? Pay Sbeast a visit, we thank him for letting us use it!

Links to all episodes and other information can be found on the Thu'umcast page

.

If you want to download the podcast directly, we've provided it in three formats:

Got feedback? Tweet us!. Enjoy the podcast, and we'll see you in Skyrim!

Technorati Tags: ,

Enclosures:
[thuum4.m4a ( Size: 15559982 )]

posted by James Robertson

 Share Tweet This

games

Thu'umcast Episode 4 Files Reposted

November 21, 2011 8:40:24.378

I had a brain cramp in the editing process for episode 4 - I've reposted all three audio files.

Technorati Tags:

posted by James Robertson

 Share Tweet This

st4u

ST 4U 161: Installing Glorp in Pharo

November 21, 2011 10:33:15.238

Today's Smalltalk 4 You looks at installing GlorpDBX into Pharo. Yes, I did this screencast just recently, but: there were installation issues then. They've been fixed since, so I didn't want that one hanging out there as "authoritative". 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:

GlorpDBX Install

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

posted by James Robertson

 Share Tweet This

js4u

JS 4U 109: The context() function

November 22, 2011 10:21:08.936

Javascript 4 U

Today's Javascript 4 You looks at the context() 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:

context()

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

posted by James Robertson

 Share Tweet This