Here some for dialup users.
Unzip sm.zip from Squeak 3.7 CD to sm directory in your Squeak directory. How force SqueakMap to use disk directory when you don't have Internet access. 1) Select wished item 2) If item don't show browse cache do command click (or alt / click) for bring halo. 3) Select inspect in debug button. 4) locate defaultTarget and inspect it 5) In lower pane type self browseCacheDirectory. 6) If your are lucky a FileList pop up and you could navigate and select wished package.
Could be possible have sm.zip actualized one time by month ? And some like map.1593.sgz actualized for this for download somewhere ? Better one "load from disk " option in menu ?
Thanks in advance.
Edgar
Yes this would be really good if we could use sm without network access. Goran have you any plans for that?
Stef
On 24 déc. 04, at 11:13, Lic. Edgar J. De Cleene wrote:
Here some for dialup users.
Unzip sm.zip from Squeak 3.7 CD to sm directory in your Squeak directory. How force SqueakMap to use disk directory when you don't have Internet access.
- Select wished item
- If item don't show browse cache do command click (or alt / click)
for bring halo. 3) Select inspect in debug button. 4) locate defaultTarget and inspect it 5) In lower pane type self browseCacheDirectory. 6) If your are lucky a FileList pop up and you could navigate and select wished package.
Could be possible have sm.zip actualized one time by month ? And some like map.1593.sgz actualized for this for download somewhere ? Better one "load from disk " option in menu ?
Thanks in advance.
Edgar
Hello, I know the following is a newbie question, but I couldn't find the answer on my own.. How do I file out a complete package ? Up to now I have only found the menu entry for filing out a class. Thanks for your help !
Frank,
I believe you'll get what you want by right-clicking over the top left pane in a browser and selecting the 'fileOut' menu item. (Depending on your preferences, this may be a middle-click.) If you right-click over the class pane, you will only be filing out the selected class. Also, when you have some spare time, you might try Monticello which is an advanced fileOut (though it is just as easy).
Brian.
On Dec 26, 2004, at 8:53 AM, Frank Gerlach wrote:
Hello, I know the following is a newbie question, but I couldn't find the answer on my own.. How do I file out a complete package ? Up to now I have only found the menu entry for filing out a class. Thanks for your help !
-- +++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben
J2SBridge is a JDBC (Java Database Connectivity) Bridge for Squeak. This makes Squeak more enterpise-ready by connecting to virtually any database. Up to now, only String, Integer and Binary data types are supported. Find the tar file with the java classes and the Monticello file at www.fgerlach.com/J2SBridge.tar.gz.
Any comments are welcome !
regards
Frank
Samples of J2Sbridge usage are in the simpleTestDBConnection* methods of DatabaseTest.
Here is a an example:
simpleTestDBConnection3 |con table |
con:=(DBConnection new) connectToHost: 'localhost' port: 1444 driverName: 'com.mysql.jdbc.Driver' url: 'jdbc:mysql:///test' user:'frank' password:'geheim'.
table:=con simpleQuery:'select * from sttest'.
[table next] whileTrue:[ Transcript show:'name=',(table getString:'name'), 'zahl=',(table getInt32:'zahl') printString;cr. ].
con disConnect.
Hello Folks, after using client sockets, I now try server sockets. The following coce just throws "A primitive has failed" when I try to connect via telnet. Can you help me or point me to a code snippet of a server (I looked at KomHttpServer but couldn't identify the accept()ing :-( )
|socket client| Socket initializeNetwork. socket:=(Socket newTCP). socket listenOn:1333.
[true] whileTrue:[ client:=socket waitForAcceptFor:10000. ]
This is the stackTrace:
Error: a primitive has failed 26 December 2004 10:36:24 pm
VM: Win32 - a SmalltalkImage Image: Squeak3.7 [latest update: #5989]
SecurityManager state: Restricted: false FileAccess: true SocketAccess: true Working Dir c:\franksordner\dev\squeak Trusted Dir c:\franksordner\dev\squeak\Frank Untrusted Dir C:\My Squeak\Frank
Socket(Object)>>error: Receiver: a Socket[destroyed] Arguments and temporary variables: aString: 'a primitive has failed' Receiver's instance variables: semaphore: a Semaphore() socketHandle: nil readSemaphore: a Semaphore() writeSemaphore: a Semaphore() primitiveOnlySupportsOneSemaphore: true
Socket(Object)>>primitiveFailed Receiver: a Socket[destroyed] Arguments and temporary variables:
Receiver's instance variables: semaphore: a Semaphore() socketHandle: nil readSemaphore: a Semaphore() writeSemaphore: a Semaphore() primitiveOnlySupportsOneSemaphore: true
Socket>>primAcceptFrom:receiveBufferSize:sendBufSize:semaIndex: Receiver: a Socket[destroyed] Arguments and temporary variables: aHandle: a ByteArray(180 95 86 2 0 0 0 0 240 205 8 0) rcvBufSize: 8000 sndBufSize: 8000 semaIndex: 9 Receiver's instance variables: semaphore: a Semaphore() socketHandle: nil readSemaphore: a Semaphore() writeSemaphore: a Semaphore() primitiveOnlySupportsOneSemaphore: true
Socket>>primAcceptFrom:receiveBufferSize:sendBufSize:semaIndex:readSemaIndex:writeSemaIndex: Receiver: a Socket[destroyed] Arguments and temporary variables: aHandle: a ByteArray(180 95 86 2 0 0 0 0 240 205 8 0) rcvBufSize: 8000 sndBufSize: 8000 semaIndex: 9 aReadSema: 10 aWriteSema: 11 Receiver's instance variables: semaphore: a Semaphore() socketHandle: nil readSemaphore: a Semaphore() writeSemaphore: a Semaphore() primitiveOnlySupportsOneSemaphore: true
--- The full stack --- Socket(Object)>>error: Socket(Object)>>primitiveFailed Socket>>primAcceptFrom:receiveBufferSize:sendBufSize:semaIndex: Socket>>primAcceptFrom:receiveBufferSize:sendBufSize:semaIndex:readSemaIndex:writeSemaIndex: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Socket>>acceptFrom: [] in Socket class>>acceptFrom: {[super new acceptFrom: aSocket]} BlockContext>>repeatWithGCIf: Socket class>>acceptFrom: Socket>>accept Socket>>waitForAcceptFor: UndefinedObject>>DoIt Compiler>>evaluate:in:to:notifying:ifFail:logged: [] in TextMorphEditor(ParagraphEditor)>>evaluateSelection {[rcvr class evaluatorClass new evaluate: self selectionAsStream in: ctxt...]} BlockContext>>on:do: TextMorphEditor(ParagraphEditor)>>evaluateSelection [] in PluggableTextMorph>>doIt {[textMorph editor evaluateSelection]} [] in PluggableTextMorph>>handleEdit: {[result := editBlock value]} TextMorphForEditView(TextMorph)>>handleEdit: PluggableTextMorph>>handleEdit: PluggableTextMorph>>doIt Workspace(StringHolder)>>perform:orSendTo: [] in MenuItemMorph>>invokeWithEvent: {[(selArgCount := selector numArgs) = 0 ifTrue: [target perform: selector] ...]} BlockContext>>ensure: CursorWithMask(Cursor)>>showWhile: MenuItemMorph>>invokeWithEvent: MenuItemMorph>>mouseUp: MenuItemMorph>>handleMouseUp: MouseButtonEvent>>sentTo: MenuItemMorph(Morph)>>handleEvent: MorphicEventDispatcher>>dispatchDefault:with: MorphicEventDispatcher>>dispatchEvent:with: MenuItemMorph(Morph)>>processEvent:using: MorphicEventDispatcher>>dispatchDefault:with: MorphicEventDispatcher>>dispatchEvent:with: MenuMorph(Morph)>>processEvent:using: MenuMorph(Morph)>>processEvent: MenuMorph>>handleFocusEvent: [] in HandMorph>>sendFocusEvent:to:clear: {[ActiveHand := self. ActiveEvent := anEvent. result := focusHolder han...]} [] in PasteUpMorph>>becomeActiveDuring: {[aBlock value]} BlockContext>>on:do: PasteUpMorph>>becomeActiveDuring: HandMorph>>sendFocusEvent:to:clear: HandMorph>>sendEvent:focus:clear: HandMorph>>sendMouseEvent: HandMorph>>handleEvent: HandMorph>>processEvents [] in WorldState>>doOneCycleNowFor: {[:h | ActiveHand := h. h processEvents. capturingGesture := capturingGest...]} Array(SequenceableCollection)>>do: WorldState>>handsDo: WorldState>>doOneCycleNowFor: WorldState>>doOneCycleFor: WorldState>>doOneSubCycleFor: PasteUpMorph>>doOneSubCycle MenuMorph>>invokeModalAt:in:allowKeyboard: MenuMorph>>invokeModal: MenuMorph>>invokeModal ...etc...
Just found out what the socket problem was: Socket>>listenOn: will produce a "primitive has failed" when doing Socket>>accept or Socket>>waitAcceptFor:. with
Socket>>listenOn:backlogSize
the problem disappears. I guess this is a BUG.
|stream str socket listener | listener _ Socket newTCP. listener listenOn: 8080 backlogSize:5. [ [true] whileTrue: [ socket _ listener waitForAcceptFor: 20000. (socket notNil and: [socket isConnected]) ifTrue: [ Transcript show: 'connected';cr. stream:=FGSocketStream new. stream setSocket:socket. str:='ein Test'. str do:[:e| stream nextPut:(e asInteger). Transcript show: e printString. ]. stream flush. socket _ nil ] ifFalse: [Transcript show: 'not success'] ]. ]forkAt:10.
Hi!
=?ISO-8859-1?Q?st=E9phane_ducasse?= ducasse@iam.unibe.ch wrote:
Yes this would be really good if we could use sm without network access. Goran have you any plans for that?
Eh, yes it has in fact always been on my mind. :) See below.
Stef
On 24 déc. 04, at 11:13, Lic. Edgar J. De Cleene wrote:
Here some for dialup users.
Unzip sm.zip from Squeak 3.7 CD to sm directory in your Squeak directory. How force SqueakMap to use disk directory when you don't have Internet access.
- Select wished item
- If item don't show browse cache do command click (or alt / click)
for bring halo.
Hmmm, the reason "browse cache" isn't showed is because the selected item is not in the cache yet. Select "force download into cache" or "copy from cache" first. So there should be no need to do this "trick" using inspect. Or perhaps I am missing some subtle point.
Could be possible have sm.zip actualized one time by month ? And some like map.1593.sgz actualized for this for download somewhere ?
Well, sure. Perhaps Marcus already has a script for this that he uses when he prepares the CD.
Better one "load from disk " option in menu ?
Note that SM always uses the cache on disk if it is there! So... I am not sure what is "needed". But I am listening intently to any suggestions. :)
Thanks in advance.
Edgar
regards, Göran
On 28/12/04 09:22, "goran.krampe@bluefish.se" goran.krampe@bluefish.se wrote: Goran:
Always is good read you.
Hmmm, the reason "browse cache" isn't showed is because the selected item is not in the cache yet. Select "force download into cache" or "copy from cache" first. So there should be no need to do this "trick" using inspect. Or perhaps I am missing some subtle point.
Well, SM was thinked for having Internet connection by default. First time what SM window could open without it was when Hernan published his Preferences tools and enhancements (for me, sure you have something long before).
Many of automatic scripts recently published give error because this. At this time I think if you never download package xxx, you not have any reference to it in any like map.1593.sgz.
The trick is what if you got CD, and copy all sm directory, sure ypu have package xxx, but not sure how you could have a "total map for all packages" in map.xxxx.sgz form.
Maybe Marcus have it , but I bet 1 Argentina peso (about 0.25 Euro) what he copy all directory to CD only.
So was nice you plan for Internet dialup in next versions or clean trick for use next version of Squeak CD.
Happy new Year !!!
Edgar
squeak-dev@lists.squeakfoundation.org