commits | 1 Nov 2011 01:00
Favicon

The Trunk: Monticello-bf.485.mcz

Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-bf.485.mcz

==================== Summary ====================

Name: Monticello-bf.485
Author: bf
Time: 1 November 2011, 11:51:41.087 am
UUID: a8baac8f-5e9b-42ad-b70b-125a6abada01
Ancestors: Monticello-bf.484

- be more descriptive than 'source same but rev changed'

=============== Diff against Monticello-bf.484 ===============

Item was added:
+ ----- Method: MCDefinition>>summarySuffixOver: (in category 'printing') -----
+ summarySuffixOver: previousDefinition
+ 	^self source = previousDefinition source
+ 		ifTrue: [ ' (source same but rev changed)' ]
+ 		ifFalse: [ ' (changed)' ]!

Item was added:
+ ----- Method: MCMethodDefinition>>summarySuffixOver: (in category 'printing') -----
+ summarySuffixOver: previousDefinition
+ 	| sourceChanged categoryChanged timeStampChanged |
+ 	sourceChanged := self source ~= previousDefinition source.
+ 	timeStampChanged := self timeStamp ~= previousDefinition timeStamp.
+ 	categoryChanged := self category ~= previousDefinition category.
+ 	sourceChanged | timeStampChanged | categoryChanged
(Continue reading)

Dave Cleal | 1 Nov 2011 14:27

[newbie] CurlPlugin working folder

Hi,

I'm working with the Curl Plugin. It seems to work fine, except that it requires write access to the folder containing my squeak image. I've been poking around the api but can't find a way to control which folder it uses. This is a pain for shipping an app - does anyone have any clues whether I can point the plugin to another working folder?

- Dave

commits | 1 Nov 2011 01:00
Favicon

The Trunk: System-laza.457.mcz

Alexander Lazarević uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-laza.457.mcz

==================== Summary ====================

Name: System-laza.457
Author: laza
Time: 1 November 2011, 5:40:33.244 pm
UUID: a4799d4c-14d9-fc4a-8132-9d3b48f02650
Ancestors: System-ul.455

Just document 1009

=============== Diff against System-ul.455 ===============

Item was changed:
  ----- Method: SmalltalkImage>>getSystemAttribute: (in category 'private') -----
  getSystemAttribute: attributeID 
  	"Optional. Answer the string for the system attribute with the given 
  	integer ID. Answer nil if the given attribute is not defined on this 
  	platform. On platforms that support invoking programs from command 
  	lines (e.g., Unix), this mechanism can be used to pass command line 
  	arguments to programs written in Squeak.

  	By convention, the first command line argument that is not a VM
  	configuration option is considered a 'document' to be filed in. Such a
  	document can add methods and classes, can contain a serialized object,
  	can include code to be executed, or any combination of these.

  	Currently defined attributes include: 
  	-1000	1000th command line argument that specify VM options
  	...
  	-1		first command line argument that specify VM options
  	0		the full path name for currently executing VM
  			(or, on some platforms, just the path name of the VM's directory) 
  	1		full path name of this image (better use primImageName instead)
  	2		a Squeak document to open, if any 
  	3		first command line argument for Squeak programs
  	...
  	1000	1000th command line argument for Squeak programs
  	1001	this platform's operating system 'Mac OS', 'Win32', 'unix', ...
  	1002	operating system version
  	1003	this platform's processor type
  	1004	vm version
  	1005	window system name
  	1006	vm build id
  	1007	Interpreter class (Cog VM only)
  	1008	Cogit class (Cog VM only)
+ 	1009	Platform source version (Cog VM only?)
  	1201	max filename length (Mac OS only)
  	1202	file last error (Mac OS only)
  	10001	hardware details (Win32 only)
  	10002	operating system details (Win32 only)
  	10003	graphics hardware details (Win32 only)
  	"

  	<primitive: 149>
  	^ nil!

Stéphane Rollandin | 1 Nov 2011 17:45

Re: readFrom: vs readFromString:


> That's it, I would change for something like
>
> readFromString: aString
>      | aStream newInstance |
>      aStream := aString readString.
>      newInstance := self readFrom: aStream.
>      aStream atEnd ifFalse: [FormatError raise].
>     ^newInstance

I would propose to break this in two methods:

readFromString: aString onLeftOver: aBlock
       | aStream newInstance |
       aStream := aString readString.
       newInstance := self readFrom: aStream.
       aStream atEnd ifFalse: [aBlock value].
      ^newInstance

and

readFromString: aString

	^ readFromString: aString onLeftOver: [FormatError raise]

This way we can handle cases where we do not care about trailing stuff, 
without having to modify the string (which could be expensive)

Stef

Levente Uzonyi | 1 Nov 2011 23:04
Picon
Picon
Favicon

Re: [newbie] CurlPlugin working folder

On Tue, 1 Nov 2011, Dave Cleal wrote:

> Hi,
>
> I'm working with the Curl Plugin. It seems to work fine, except that it
> requires write access to the folder containing my squeak image. I've been
> poking around the api but can't find a way to control which folder it uses.
> This is a pain for shipping an app - does anyone have any clues whether I
> can point the plugin to another working folder?

Do you have a strong reason to use Curl? I'm asking because there are 
pretty good http implementations nowadays (if you need http or https) and 
we had bad experience with CurlPlugin (memory leak).

Levente

>
> - Dave
>

Levente Uzonyi | 1 Nov 2011 23:09
Picon
Picon
Favicon

Re: The Trunk: Monticello-bf.485.mcz

On Tue, 1 Nov 2011, commits <at> source.squeak.org wrote:

> Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
> http://source.squeak.org/trunk/Monticello-bf.485.mcz

This is a pretty good change. I think it would be worth extending MC's 
package saving dialog with the two panels of the Patch Browser. This way 
the changes could be checked during saving and we wouldn't have to bother 
adding these new informations to the summary text that appears below the 
commit message.

Levente

>
> ==================== Summary ====================
>
> Name: Monticello-bf.485
> Author: bf
> Time: 1 November 2011, 11:51:41.087 am
> UUID: a8baac8f-5e9b-42ad-b70b-125a6abada01
> Ancestors: Monticello-bf.484
>
> - be more descriptive than 'source same but rev changed'
>
> =============== Diff against Monticello-bf.484 ===============
>
> Item was added:
> + ----- Method: MCDefinition>>summarySuffixOver: (in category 'printing') -----
> + summarySuffixOver: previousDefinition
> + 	^self source = previousDefinition source
> + 		ifTrue: [ ' (source same but rev changed)' ]
> + 		ifFalse: [ ' (changed)' ]!
>
> Item was added:
> + ----- Method: MCMethodDefinition>>summarySuffixOver: (in category 'printing') -----
> + summarySuffixOver: previousDefinition
> + 	| sourceChanged categoryChanged timeStampChanged |
> + 	sourceChanged := self source ~= previousDefinition source.
> + 	timeStampChanged := self timeStamp ~= previousDefinition timeStamp.
> + 	categoryChanged := self category ~= previousDefinition category.
> + 	sourceChanged | timeStampChanged | categoryChanged
> + 		ifFalse: [ ^super summarySuffixOver: previousDefinition ].
> + 	sourceChanged ifTrue: [
> + 		^categoryChanged
> + 			ifTrue: [ ' (changed and recategorized)' ]
> + 			ifFalse: [ ' (changed)' ] ].
> + 	timeStampChanged & categoryChanged
> + 		ifTrue: [^ ' (recategorized and different time stamp)' ].
> + 	^categoryChanged
> + 		ifTrue: [ ' (only recategorized)' ]
> + 		ifFalse: [ ' (only different time stamp)' ]
> + !
>
> Item was changed:
>  ----- Method: MCModification>>summarySuffix (in category 'accessing') -----
>  summarySuffix
> + 	^ modification summarySuffixOver: obsoletion
> + !
> - 	^self fromSource = self toSource
> - 		ifTrue: [ ' (source same but rev changed)' ]
> - 		ifFalse: [ ' (changed)' ]!
>
>
>

commits | 2 Nov 2011 00:55
Favicon

Daily Commit Log

Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24 hours:

http://lists.squeakfoundation.org/pipermail/packages/2011-November/005054.html

Name: Monticello-bf.485
Ancestors: Monticello-bf.484

- be more descriptive than 'source same but rev changed'

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2011-November/005055.html

Name: System-laza.457
Ancestors: System-ul.455

Just document 1009

=============================================

Eric Hoover | 2 Nov 2011 07:53
Picon

New to the list

Hey! I'm new to the community but just wanted to say hello.


Alexander Lazarević | 2 Nov 2011 07:56
Gravatar

Re: New to the list

Welcome Eric!

2011/11/2 Eric Hoover <freethought23 <at> gmail.com>

Hey! I'm new to the community but just wanted to say hello.






Casey Ransberger | 2 Nov 2011 08:00
Picon

Re: New to the list

Wait:

You can't possibly be the Eric Hoover who lived across the street when I was 11 years old?

With whom I poked random objects with sticks, to figure out how they actually worked?

That would just be weird. 

Either way, welcome to the best mailing list in the world!

-Casey

On Nov 1, 2011, at 11:53 PM, Eric Hoover <freethought23 <at> gmail.com> wrote:

Hey! I'm new to the community but just wanted to say hello.




Gmane