Re: [Newbies] RE: I need an idea. I know you have some. Give. (Casey Ransberger)

2013-03-08 Thread Yoshiki Ohshima
Lately I've been following the VPRI papers around functional reactive programming (FRP) which might also be worth a look if you're thinking about this stuff. http://www.vpri.org/pdf/rn2012001_kscript.pdf http://www.vpri.org/pdf/m2013001_serializing.pdf I like the idea, and I like the

Re: [Newbies] Reset Morphic Drawing After Error

2013-02-11 Thread Yoshiki Ohshima
On Mon, Feb 11, 2013 at 10:24 AM, Jeff Gonis jeff.go...@gmail.com wrote: Hi Everyone, So when I am using Morphs in Squeak I like to instantiate a morph and then iteratively change it on the fly, having it respond to step calls, change how drawing works etc. All in all, this works pretty well

Re: [Newbies] Two questions about Smalltalk language design

2012-12-30 Thread Yoshiki Ohshima
On Sun, Dec 30, 2012 at 7:40 AM, Bert Freudenberg b...@freudenbergs.de wrote: On 2012-12-27, at 01:32, Sebastian Nozzi sebno...@gmail.com wrote: Why do ST methods return self if nothing is explicitly returned? One very simple reason has not been stated yet: In the Virtual Machine,

Re: [Newbies] What makes Smalltalk different

2011-11-22 Thread Yoshiki Ohshima
At Tue, 22 Nov 2011 12:35:28 +0100, Bert Freudenberg wrote: It's true that superficially the Smalltalk GUI looks just like another IDE. No coincidence - Eclipse was originally written by Smalltalkers in Smalltalk. But there is the crucial difference that in regular IDEs you just manipulate

Re: [Newbies] Getting information from broken image

2011-06-07 Thread Yoshiki Ohshima
At Tue, 7 Jun 2011 13:21:25 +0200, Bernhard Pieber wrote: Hi Mateusz, Yoshiki Ohshima created a tool called ImageBrowser to read an image file in 2002. I don't know if it works in a current image. See the following links: http://thread.gmane.org/gmane.comp.lang.smalltalk.squeak.general

Re: [Newbies] How do I diff two images?

2010-06-02 Thread Yoshiki Ohshima
At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote: Very interesting.  It looks like I will probably not get to try any of these methods until next week, but, what sort of adjustments do you think it would need for Scratch images? The biggest single issue is that my ImageBrowser

Re: [Newbies] How do I diff two images?

2010-06-02 Thread Yoshiki Ohshima
On Wed, Jun 2, 2010 at 11:55 AM, Yoshiki Ohshima yosh...@vpri.org wrote: At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote: Very interesting.  It looks like I will probably not get to try any of these methods until next week, but, what sort of adjustments

Re: [Newbies] How do I diff two images?

2010-05-28 Thread Yoshiki Ohshima
At Fri, 21 May 2010 21:35:14 -0600, Clinton Blackmore wrote: Greetings. While I've programmed for some time, I am new to Squeak.  I was wondering how I diff or compare two images that are largely similar (such as, say, Scratch vs Scratch For Second Life).   In other environments, I'd

Re: [Newbies] Annotated workspace for tutorials...

2010-04-09 Thread Yoshiki Ohshima
At Wed, 7 Apr 2010 19:52:11 -0700 (PDT), Jerome Peace wrote: Hi Lawson, What you are trying to do is really cool. You are up against a squeak you can't get there from here problem. Yet. There needs to be some way to tie the extent of the workspace to the extent of the drawing area.

Re: [Newbies] Primitive error handling

2010-02-08 Thread Yoshiki Ohshima
At Sun, 7 Feb 2010 13:45:00 +0100, Garret Raziel wrote: Hello, I have another problem. In windows, my microchip is connected on port 7 (COM7) but I dunno which port number it is in Linux. It is connected in location /dev/ttyUSB0 but I dunno what is its number. I have tried this code to

Re: [Newbies] Timer in Morph

2010-02-06 Thread Yoshiki Ohshima
At Fri, 5 Feb 2010 18:56:43 +0100, Garret Raziel wrote: and it works almost fine. But there is a bug. Time to time I receive only a part of value, for example I am receiving: 56 55 56 55 5 6 55 ... 102 103 101 103 100 102 1 1 0 102 102. Those one-digit values are truly false and it looks

Re: [Newbies] Speed

2009-11-15 Thread Yoshiki Ohshima
At Sun, 15 Nov 2009 14:17:41 +0100, Bert Freudenberg wrote: Instead of the abstract FileStream use the stream class you want explicitly. StandardFileStream is the old class that does no conversion. So you would open your file like this instead: StandardFileStream readOnlyFileNamed:

Re: [Newbies] Odd Transcript message

2009-11-03 Thread Yoshiki Ohshima
At Tue, 3 Nov 2009 10:53:40 -0500, Lynn Fogwell wrote: Hi, Whenever I compile a particular method, the transcript displays the following line: IdentityManager class populateDevelopersTable (name is shadowed) So, it names the class and method I just compiled and then states that it

Re: [Newbies] How to introspect method instance variables

2009-08-26 Thread Yoshiki Ohshima
So ... all you need to do is hack the Compiler :) And it takes two new methods and four very minor overrides in some subclasses. -- Yoshiki ___ Beginners mailing list Beginners@lists.squeakfoundation.org

Re: [Newbies] purge of graphics objects

2009-04-28 Thread Yoshiki Ohshima
At Tue, 28 Apr 2009 13:51:25 +0200, antonio wrote: Hello, Sometimes the size of a project does not reduce after the deletion of a graphic object. How can I purge definitively the space of this object? Are you using the Etoys image or some other images? And you are concerned about the

Re: [Newbies] purge of graphics objects

2009-04-28 Thread Yoshiki Ohshima
file; any project can use it anyway really? Yoshiki, how much technical and laborious is that method (if I do not get the purge anyway)? Is it a very exceptional situation? I mean the problem with this pr is really unusual? thanks a lot! El mar, 28-04-2009 a las 08:44 -0700, Yoshiki Ohshima

Re: [Newbies] 23 to 23rd?

2008-12-11 Thread Yoshiki Ohshima
At Thu, 11 Dec 2008 12:23:45 -0600, Tim Johnson wrote: Hi, Does anyone have, or know of, existing code to perform the rather anglo-centric (?) function of turning 3 into '3rd,' 22 into '22nd,' etc.? Heh, if Wikipedia is right, the following method for Integer would do: ordinal

Re: [Newbies] SqueakMap Package Loader

2008-11-07 Thread Yoshiki Ohshima
At Tue, 4 Nov 2008 18:53:49 -0600, Mark Volkmann wrote: I want to load a package from SqueakMap. When I select open...SqueakMap Package Loader, I get the following. In the SMSqueakMapcategories method, the instance variable objects is nil and it's trying to send select: to that. Any

Re: [Newbies] Is there a program to generate an all classes tree chart?

2008-11-04 Thread Yoshiki Ohshima
At Tue, 4 Nov 2008 10:34:53 +0800, Albert Lee wrote: [1 text/plain; UTF-8 (base64)] learning smalltalk, and get some idea of Metaclass and reflective. we can use subclasses or allSubclasses to list a Class' subclass, and then, we can generate the inherit tree. so, is there any existing

Re: [Newbies] Drawing non-fuzzy text on a Form

2008-10-29 Thread Yoshiki Ohshima
At Tue, 28 Oct 2008 18:42:40 +0100, [EMAIL PROTECTED] wrote: How am I supposed to draw text on a Form(Canvas) without it looking all blurred? I've installed Freetype and Polymorph (the pharo image with both), but it's unclear how to get a font that draws correctly. The non-truetype

Re: [Newbies] Can Squeak display chinese?

2008-10-23 Thread Yoshiki Ohshima
At Thu, 23 Oct 2008 01:49:08 +0800, Simon Chan wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] [1.2 text/html; ISO-8859-1 (7bit)] Hi all, I am a total beginner, just started few days. I just found smalltalk has the nicest development environment I have

Re: [Newbies] Problem filing out change set

2008-10-21 Thread Yoshiki Ohshima
But, in trying to decipher the error message, I thought it might be referring to the new constant. I'm still mystified as to what the error message means, or what it refers to, or why I got it. Perhaps, as Yoshiki suggests, it's a bug. (The image which I'm using is 3.9-final-7067.)

Re: [Newbies] Porting an old app to a recent image

2008-10-14 Thread Yoshiki Ohshima
At Wed, 15 Oct 2008 00:23:24 +0200, Matthias Korn wrote: No, I didn't. It's probably due to the image I am using!? Maybe the Syntax Error tool is not included? It is sq3.10-7159dev08.03.1.image Now, I remember where it was started^^; So because #category that is used in the syntax error

Re: [Newbies] Porting an old app to a recent image

2008-10-10 Thread Yoshiki Ohshima
ScratchFrameMorph class-readPaintSkinFrom.st Cool, it is a fun class to work on. I tried to file it in to 3.10.2 and did get the Syntax Error panel properly. The trouble seems to me that in the following part and after, variable n is used but it is a block local variables in the previous

Re: [Newbies] Porting an old app to a recent image

2008-10-09 Thread Yoshiki Ohshima
At Thu, 9 Oct 2008 15:37:39 +0200, Matthias Korn wrote: [1 text/plain; US-ASCII (7bit)] Hi, I already tried to fileIn a minimal part (one Morph class) of the application I want to port and started resolving the errors in the debugger one by one. Still, now I am stuck with the following

Re: [Newbies] lost socket

2008-09-24 Thread Yoshiki Ohshima
At Wed, 24 Sep 2008 17:42:08 +1200, Aidan Gauland wrote: Hello, I've been playing around with the Socket class, and the code I was running in an EToys script crashed a few times (I did try it in a workspace first, it was the code I wrote to talk to other players that crashed), and the

Re: [Newbies] Iterating and removing items from OrderedCollections

2008-09-18 Thread Yoshiki Ohshima
At Thu, 18 Sep 2008 10:00:15 +0100, Marcin Tustin wrote: Would this be O(n^2) to remove all nils? Not in a way it matters. OrderedCollection moves items not eagarly. In any case, if this is a conveyor belt, then you should almost certainly be using a linke data structure, and iterate

Re: [Newbies] Iterating and removing items from OrderedCollections

2008-09-18 Thread Yoshiki Ohshima
At Thu, 18 Sep 2008 10:38:52 +0100, Marcin Tustin wrote: No in two reasons; 1) he wasn't talking about removing items in the middle Look at the original example. Right. But still I think suggesting to use LinkedList here is not a good idea. and 2) OrderedCollection is

Re: [Newbies] Arrays within arrays

2008-09-05 Thread Yoshiki Ohshima
At Thu, 4 Sep 2008 15:14:44 + (UTC), Charles Gray wrote: Why doesn't this work? strength := Array new: 10. strength := #( #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(0 0 0 0) #(2 1 0 0) #( 8 4 0 1) #(14 6 0 2) #(30 12 1 4)). Why do you have two assignments here?

Re: [Newbies] Binary file I/O performance problems

2008-09-05 Thread Yoshiki Ohshima
At Fri, 5 Sep 2008 11:33:37 -0700, David Finlayson wrote: Then I modified the sonogram class to display sonar backscatter data (like a black-and-white image of the sea floor) in about 2 hours. Very cools stuff. The only problem was that the sonar data is time consuming to parse in Squeak and

Re: [Newbies] Re: Binary file I/O performance problems

2008-09-05 Thread Yoshiki Ohshima
At Fri, 05 Sep 2008 23:00:07 +0200, nicolas cellier wrote: Hi David, your applications is exciting my curiosity. Which company/organization are you working for, if not indiscreet? I assume the answer is USGS, because of his email address! Yes, it sounds like something cool is going on.

Re: [Newbies] Arrays within arrays

2008-09-05 Thread Yoshiki Ohshima
At Fri, 5 Sep 2008 02:59:08 -0700, Charles Gray wrote: Gee, that was easy. Thanks. I never guessed that you had to leave the #'s off inside the array. I still wonder what version of image you are using. In the image I'm using, I can evalute: #((0 0 0 0) (0 0 0 0) (0 0 0 0) (0 0 0 0) (0 0

Re: [Newbies] SqueakPad

2008-08-20 Thread Yoshiki Ohshima
At Wed, 20 Aug 2008 16:43:55 +1000, Sven Schott wrote: That is cool. I didn't even know about tinyBenchmarks. Pepper Pad 3 tinyBenchmarks: '28193832 bytecodes/sec; 922382 sends/sec' From my MacBook Pro for comparison: '524053224 bytecodes/sec; 12262411 sends/sec' 28 million

Re: [Newbies] SqueakPad

2008-08-19 Thread Yoshiki Ohshima
At Mon, 18 Aug 2008 16:05:27 +1000, Sven Schott wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] [1.2 text/html; ISO-8859-1 (7bit)] Just an interesting tidbit. I recently installed Squeak on my Pepper Pad 3. First post on http://www.spannermonkey.info/

Re: [Newbies] Howto find all subclass responsibilities for a given Class

2008-08-16 Thread Yoshiki Ohshima
I am playing around with Morphs to create a Board for the ancient Go game. Given that I'd like to create a completely new kind of Morph (i.e. a Class that extends Morph), I'd like to find out which methods in the Morph class are defined as subclass responsibilities. Is there any fast way to

Re: [Newbies] Why is the UI so blurry on Linux?

2008-08-12 Thread Yoshiki Ohshima
At Tue, 12 Aug 2008 22:49:21 +0200, Felix Dorner wrote: Hi, I have installed squeak under several distros, at least Gentoo and Ubuntu. I have noticed that the Icons stored in the Flaps appear blurry/noisy - this is not the case on M$. Maybe someone knows why? Maybe there's a trick to

Re: [Newbies] How to delete a category?

2008-08-11 Thread Yoshiki Ohshima
I mistakenly created a category with a misspelled name. There are class categories and method categories. Which one was it? With a 5 pane browser (the standard one), right-clicking on the appropriate pane (either the left most of the top half or the third one from the left in the top half)

Re: [Newbies] Skewing Forms in Squeak V2

2008-07-23 Thread Yoshiki Ohshima
At Tue, 22 Jul 2008 13:53:21 -0400, Iulian Wande Radu wrote: Hi, I'd like to skew the graphics of a Form, is there an easy way to do this in v2 ? What I want is to take the rectangle from a normal form, transform it into an arbitrarily-defined quadrilateral, and then paint on the

Re: [Newbies] Re: Primitives and array computation

2008-07-10 Thread Yoshiki Ohshima
So, I understand that I need: - intermediate classes, for storing 'true' arrays, - translators for converting to/from standard squeak classes from/to these intermediate classes, - primitives for array computation on these classes or something like that. The KedamaPlugin2 has some more

Re: [Newbies] Getting a handle on objects which are instantiated through the various flaps

2008-02-08 Thread Yoshiki Ohshima
Also, there is a menu item in the workspace (click on the menu button next to the close button in the title bar) called create textual references to dropped morph. If you check the box, you can drop a morph onto the workspace and then you can refer to the object by the name created in the

Re: [Newbies] Fonts with non-standard sizes?

2007-12-12 Thread Yoshiki Ohshima
Simon, What version of Squeak are you using? I know I can choose my own size using StrikeFont classfromUser, but what's the best way to do this in my code, non-interactively? This is a good starting point. StrikeFont classfromUser calls: StrikeFont classfromUser:allowKeyboard:, and

Re: [Newbies] version from a project

2007-08-09 Thread Yoshiki Ohshima
Javier, Hi, I was wondering if it's possible to know what version of squeak was used for a project (.pr) file. Anybody know a way of doing this? It depends on what Squeak you used to make the .pr file^^; In versions like OLPC Etoys, there is a file called manifest in the .pr file.

Re: [Newbies] Assignment

2007-08-09 Thread Yoshiki Ohshima
Mathieu, #= is equality comparaison #== is identity comparison Yes. All the character is unique so is better (faster) to use #==. This is not true for Characters whose code is bigger than 256. To me, the identity comparison is more or less in the meta level or touching

Re: Morph Window - Class? (was: [Newbies] error loading .pr

2007-04-06 Thread Yoshiki Ohshima
Edgar, Interest yes, but we don't have any resources to spare for this, unfortunately. - Bert - Once what 3.10 was in beta could you have time to supervise me like Ralph do now ? For the interest part, I'm writing an externalization scheme for EToys that doesn't so much depend

[Newbies] Can I get a notification before fullGC?

2006-10-11 Thread Yoshiki Ohshima
Hello, Is there any way to get some sort of notification right *before* a fullGC happens so that some guys release their cache? Is there something I can do for this? Thank you so much! Below is a little background... I noticed that the caching behavior of TTCFont is *still* relying

Re: [Newbies] Why Squeak is so sloooow?

2006-09-21 Thread Yoshiki Ohshima
Antonio, If you evaluate the following (and print-it): | a b | a := FloatArray new: (16 * 1024*1024). b := FloatArray new: (16 * 1024*1024). [a += b] timeToRun. you probably get a number around 100 or 200. This means that Squeak can add two 32-bit float arrays with 16M entries in

[Newbies] Call for Papers and Workshop Proposals for C5 '07

2006-08-18 Thread Yoshiki Ohshima
Hello, The C5 conference, that has been a great place to meet with people who are doing research and/or practice in the field of communication, collaboration and education with computers. Please consider to submit papers and/or attend. -- Yoshiki

Re: [Newbies] Squeak and Pocket PC questions

2006-08-14 Thread Yoshiki Ohshima
Hello, Petr, I have some questions about the use of Squeak on Pocket PC (Windows Mobile 5 [WM5]). I don't have any experience with WM5, but... 1) how to detect tap and hold event? If I remember correctly, it is reported as a blue button click. (But since you're asking this, I may be

Re: [Newbies] Is there a way to find examples of how a certain method is used?

2006-07-07 Thread Yoshiki Ohshima
Murphy, I am trying to find some good examples of how the Dictionary class is used, particularly basic stuff like examples of how add: works. The sender button in the SystemBrowser calls up about a million examples of add: , but I don't see a way to filter by a specific class. Is

Re: [Newbies] Tables for WideString?

2006-06-28 Thread Yoshiki Ohshima
Hello, Aleksei, Sorry for the slow response. I have problems with WideString. (realy not with WideString, but debugger brings me to this class). When I send #beginsWith: message to WideString, squeak invokes StringbeginsWith: and this method use

Re: [Newbies] EmphasizedMenu question

2006-06-28 Thread Yoshiki Ohshima
Thomas, Did you get responses? (EmphasizedMenu selections: #('bold' 'plain' 'italic' 'struckout' 'plain' 'nice menu!') emphases: #(bold plain italic struckOut plain bold)) startUp In Squeak 3.8 or such, if I change it to: (EmphasizedMenu selections: #('bold' 'plain' 'italic'

Re: [Newbies] Traditional Chinese characters in Squeak

2006-06-11 Thread Yoshiki Ohshima
Hello, I would like to know if Traditional Chinese is available as a language for the Squeak environment. I am living in Taiwan and would like that children in my wife's school use Squeak with menus in Traditional Chinese characters. I saw that the Japanese environment is available. It

Re: [Newbies] [Q] How to get the source code of eToy created

2006-05-14 Thread Yoshiki Ohshima
Hello, Young-Jin, I am a real novice Squeaker and have a question of how to get the code of an eToy I created (or generally source code of morph projects). I know how to save the eToy project into *.pr file, but it is not readable file. As an experienced Java programmer, I want to see