[Pharo-dev] Mailinglist archives now complete
http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/ http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/ Have now the old posts from the old list server. Marcus
Re: [Pharo-dev] why so many processes are running at startup time?
Hi, I think we should for now just kill them when building the image, I will check. On Jun 20, 2013, at 9:56 AM, Clément Bera bera.clem...@gmail.com wrote: Hello, These processes are due to the new integration testing process. This new process was introduced in Pharo 3.0 alpha, and we found the bug and fixed it. Recently we backport the new integration process to Pharo 2.0 and seemingly it created the same bug but since we read your mail we were not aware of it. We need to backport the fix. We will fix that within a few days. As a workaround, you can just kill these processes in your image for now ... Thanks for reporting the issue, 2013/6/20 NISHIHARA Satoshi goo...@gmail.com There are 30 over processes are running at startup, Pharo-20607.image. NDOWS-1252?B?vIgyMDEzLTA2LTIwIDEzLjE5LjU277yJLnBuZw=.png regards. -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq
Re: [Pharo-dev] [ANN]: Pharo x.5
Stéphane Ducasse wrote can you then send me the issues that I should look at :) I'm not sure what you're asking. If you load the config from the OP (works in 2.0), you will see the issue classes... - Cheers, Sean -- View this message in context: http://forum.world.st/Pharo-dev-ANN-Pharo-x-5-tp4693932p4694237.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Re: [Pharo-dev] Tabs
Great job, Ben. Doru On Sun, Jun 9, 2013 at 9:03 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: hello guys :) I would like to introduce a new implementation of tabs with the following features (for now): - tabs with icon (and a label of course) - un-closable tabs - threaded contents loading (with animated icon) - shortcuts handling (to navigate from one tab to the next/previous one, to close a tab) - multi-selection (will display all the selected contents with splitter in between) - actions (each tab can define actions displayed in the tab bar) - Thanks Tudor for the idea - menu items - Thanks Tudor for the idea Here is a little (geeky) video showing a bit of everything: https://dl.dropboxusercontent.com/u/24369478/Tabs.m4v The code can be loaded executing this: Gofer it url: 'http://smalltalkhub.com/mc/BenjaminVanRyseghem/Tabs/main'; package: 'ConfigurationOfTabs'; load. ConfigurationOfTabs loadDefault. TabExample open Next steps: - drag and drop (for rearranging tabs) - Spec support (almost finished) Ben -- www.tudorgirba.com Every thing has its own flow
[Pharo-dev] Pharo 2.0: Review for Fuel fix integration required
Hi guys I created a new Fuel version that includes an important fix (in my opinion). That fix should be integrated into Pharo 2.0 (in my opinion); here's the integration request: https://pharo.fogbugz.com/default.asp?10730 Summary of the change: Changes in the serialized graph during serialization do no longer affect serialization, i.e. the graph serialized it the graph as encountered during analysis. This fix is important for the Fuel out stack feature in Pharo2.0 because of contexts that can reference processes (e.g. with Seaside). Since Marcus does not have the capacity to review everything in the inbox, I need one or two poeple to look at the request and green light it. Side note: we need more people to review changes. Simply assigning everything to Marcus doesn't seem to solve this problem :) Thanks for your time. Cheers, Max
Re: [Pharo-dev] [Ann] VMMaker + Cog building in Pharo20
Hi, Making a try with PharoIPhoneBuilder buildIPhoneSimulator. I had to change some things: - The method StringgetEnclosedExpressionFrom: aStream does not exists in Pharo2.0 I took it from Pharo1.4, but probably, you have a better solution. - There are some problems in the method PharoIPhoneSimulatorsetExtraTargetProperties: maker due to FileDirectoryFileSystem changes. Here is the version of the method I did, probably you want to review it (in bold is what I changed): --- PharoIPhoneSimulatorsetExtraTargetProperties: maker super setExtraTargetProperties: maker. | precompiledHeaders plist | precompiledHeaders := (self executableName, '_Prefix.pch'). *(maker buildDir / precompiledHeaders) writeStream * nextPutAll: self precompiledHeaders; close. maker addXCodeProperty: 'GCC_PREFIX_HEADER' value: '${buildDir}/', precompiledHeaders. self setCommonProperties: maker. generated and add Info.plist file plist := self plistFile. *(maker buildDir / 'Info.plist') writeStream* nextPutAll: plist; close. maker addProperty: 'MACOSX_BUNDLE_INFO_PLIST' value: '${buildDir}/Info.plist'. maker cmd: 'set_target_properties' params: self executableName, ' PROPERTIES COMPILE_FLAGS -include \', (self buildDir / self prefixHeaderFileName) fullName, '\'. maker set: 'CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY' toString: self codeSignIdentity. maker set: 'CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY' toString: self targetedDeviceFamilyAsString. maker set: 'CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET' to: self deploymentTargetVersion. maker set: 'CMAKE_XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR' toString: '$(BUILD_DIR)/$(CONFIGURATION)'. maker set: 'CMAKE_XCODE_ATTRIBUTE_CONFIGURATION_TEMP_DIR' toString: '$(BUILD_DIR)/$(CONFIGURATION)'. maker set: 'EXECUTABLE_OUTPUT_PATH' toString:* self outputDir fullName*. maker puts: 'set_source_files_properties(${srcVMDir}/gcc3x-cointerp.c PROPERTIES COMPILE_FLAGS -O0)' --- After these two changes, all seems working. Thank you for the work. Jannik 2013/6/19 Igor Stasenko siguc...@gmail.com On 19 June 2013 16:34, Guillermo Polito guillermopol...@gmail.com wrote: Yes, but right now moving from FileDirectory to FileSystem will make harder the merge between VMMaker branches. And cleaning and removing stuff will make it worse... So either we keep the mess or we lose the ability to easily merge :) i don't think Cog will ever run on riscos in future.. (while on ARM, in general, it will). but it definitely won't use RiscOSVMMaker. I see no reason changing that, especially that Eliot made an effort to use single VMMaker class suitable to be used for building Cog on all platforms. -- Best regards, Igor Stasenko. -- ~~Dr. Jannik Laval~~ École des Mines de Douai Enseignant-chercheur http://www.jannik-laval.eu
Re: [Pharo-dev] why so many processes are running at startup time?
thx. I run a cleaning processes script such as: (Process allInstances reject: [ :p | {(InputEventFetcher default fetcherProcess). (Processor activeProcess). (WeakArray runningFinalizationProcess). (Processor backgroundProcess). (SmalltalkImage current lowSpaceWatcherProcess). (UIManager default uiProcess). (Delay schedulingProcess)} includes: p ]) do: [ :p | p suspend; terminate ] and get 6 processes remain: (80) 745275392: Delay classhandleTimerEvent (60) Input events fetching process: InputEventFetcherwaitForInput (60) 1061945344: SmalltalkImagelowSpaceWatcher (50) 946339840: WeakArray classfinalizationProcess (40s) Morphic UI process: nil (10) 845938688: ProcessorScheduler classidleProcess is this OK? regards. 2013/6/20 Marcus Denker marcus.den...@inria.fr Hi, I think we should for now just kill them when building the image, I will check. On Jun 20, 2013, at 9:56 AM, Clément Bera bera.clem...@gmail.com wrote: Hello, These processes are due to the new integration testing process. This new process was introduced in Pharo 3.0 alpha, and we found the bug and fixed it. Recently we backport the new integration process to Pharo 2.0 and seemingly it created the same bug but since we read your mail we were not aware of it. We need to backport the fix. We will fix that within a few days. As a workaround, you can just kill these processes in your image for now ... Thanks for reporting the issue, 2013/6/20 NISHIHARA Satoshi goo...@gmail.com There are 30 over processes are running at startup, Pharo-20607.image. NDOWS-1252?B?vIgyMDEzLTA2LTIwIDEzLjE5LjU277yJLnBuZw=.png regards. -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 *Villeneuve d'Ascq* -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh]
Re: [Pharo-dev] Cloud Hosting Tip
and are you happy with the service? nico On Jun 20, 2013, at 11:07 AM, Camillo Bruni camillobr...@gmail.com wrote: yes, we use them at my company in switzerland ;) -- Nicolas Petton http://www.nicolas-petton.fr
Re: [Pharo-dev] why so many processes are running at startup time?
IMO looks good On 2013-06-20, at 12:18, NISHIHARA Satoshi goo...@gmail.com wrote: thx. I run a cleaning processes script such as: (Process allInstances reject: [ :p | {(InputEventFetcher default fetcherProcess). (Processor activeProcess). (WeakArray runningFinalizationProcess). (Processor backgroundProcess). (SmalltalkImage current lowSpaceWatcherProcess). (UIManager default uiProcess). (Delay schedulingProcess)} includes: p ]) do: [ :p | p suspend; terminate ] and get 6 processes remain: (80) 745275392: Delay classhandleTimerEvent (60) Input events fetching process: InputEventFetcherwaitForInput (60) 1061945344: SmalltalkImagelowSpaceWatcher (50) 946339840: WeakArray classfinalizationProcess (40s) Morphic UI process: nil (10) 845938688: ProcessorScheduler classidleProcess is this OK? regards. 2013/6/20 Marcus Denker marcus.den...@inria.fr Hi, I think we should for now just kill them when building the image, I will check. On Jun 20, 2013, at 9:56 AM, Clément Bera bera.clem...@gmail.com wrote: Hello, These processes are due to the new integration testing process. This new process was introduced in Pharo 3.0 alpha, and we found the bug and fixed it. Recently we backport the new integration process to Pharo 2.0 and seemingly it created the same bug but since we read your mail we were not aware of it. We need to backport the fix. We will fix that within a few days. As a workaround, you can just kill these processes in your image for now ... Thanks for reporting the issue, 2013/6/20 NISHIHARA Satoshi goo...@gmail.com There are 30 over processes are running at startup, Pharo-20607.image. NDOWS-1252?B?vIgyMDEzLTA2LTIwIDEzLjE5LjU277yJLnBuZw=.png regards. -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 *Villeneuve d'Ascq* -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh]
Re: [Pharo-dev] metacello conditional loading
On 2013-06-17, at 18:25, Dale K. Henrichs dale.henri...@gemtalksystems.com wrote: Cami, The expression: MetacelloPlatform current defaultPlatformAttributes thanks :) this is what I was looking for! will list the platform attributes at the system level (default). The expression: ConfigurationOfXXX project platformAttributes will list the set of attributes defined for a particular configuration (presumably a superset of the default set). If you look in MetacelloPharoPlatformdefaultPlatformAttributes, you'll see the following: defaultPlatformAttributes | attributes versionString | ((Smalltalk respondsTo: #image) and: [ Smalltalk image respondsTo: #metacelloPlatformAttributes ]) ifTrue: [ ^ Smalltalk image metacelloPlatformAttributes ]. . The method #metacelloPlatformAttributes let's you define exactly the set of attributes that you want supported for pharo platforms ... Hope this helps, Dale - Original Message - | From: Camillo Bruni camillobr...@gmail.com | To: pharo-dev@lists.pharo.org | Sent: Monday, June 17, 2013 6:41:00 AM | Subject: [Pharo-dev] metacello conditional loading | | - where do I find a list of the magic tags I can use for conditional | loading? | - is `spec for: #'pharo3.x' version: '3.0'` already supported? | | thanks | |
Re: [Pharo-dev] Barcodes
So, this kind-of works. Both Artefact and Barcode repositories are not writable, so here is an artefact package that depends on barcode. ean13Test: aStream drawing an EAN13 | pdfdoc aPage barcode sequence | barcode := BarcodeEAN13 value: '2109876543210'. sequence := barcode binarySequence. pdfdoc := PDFDocument new. aPage := PDFPage new. sequence withIndexDo: [:each :index | each = $1 ifTrue: [ aPage add: (PDFLineElement from: (20+index) pt @ 50 pt to: (20+index) pt @ 20 pt). ] ]. pdfdoc add: aPage. pdfdoc styleSheet drawColor: (PDFColor r: 0 g: 0 b: 0). pdfdoc exportTo: aStream Artefact-Barcodes.st Description: Binary data ean13Test.pdf Description: Adobe PDF document
Re: [Pharo-dev] you may need to update your configurations
Hi Nicholas, I think I'll backport your ZipArchiveMembercontentStreamFromEncoding: and I also have to backport UTF8TextConvertererrorMalformedInput as well. It will solve my encoding problem on git archive loading. Nice. Thierry Le 19/06/2013 22:33, Nicolas Cellier a écrit : The change is very light, I applied it almost unchanged on Squeak (can't remember which version was the first). The only thing we neeed is to catch an UTF8Error. Since in Pharo there are two encoder/decoder hierarchies, and since that of Zinc is cleaner, I made a bet on future and chose to make UTF8Error a subclass of existing already Zn Encoding/Decoding exception. But we still use the old TextConverter hierarchy in MC, even in Pharo 3.0. So the dependency on Zinc is totally arbitrary and un-necessary right now; it does not exist in Smalltalk version. It's just a bet on the future. For a backport to 2.0, I would just use an UTF8Error like in Squeak and avoid any dependency on Zinc. Nicolas 2013/6/19 GOUBIER Thierry thierry.goub...@cea.fr mailto:thierry.goub...@cea.fr Stéphane, I'll probably have a look at Nicolas fix anyway, but as it required also a change to Zinc... then I started to worry. But it may be better than trying to fix ZipArchive incorrect encoding issues from the outside (by forcing an utf8 conversion out of the contents of the ZipArchive members). If I manage to make sense of it, I'll put a enhancement request in FogBuz with a slice. Yes, I think 30 is not that unstable, like 2.0 was before ... except that I'm fairly dependent on the RPackage infrastructure, and I prefer to wait until the RPackage refactoring is done ;-) Thierry De : Pharo-dev [pharo-dev-boun...@lists.pharo.org mailto:pharo-dev-boun...@lists.pharo.org] de la part de Stéphane Ducasse [stephane.duca...@inria.fr mailto:stephane.duca...@inria.fr] Date d'envoi : mercredi 19 juin 2013 21:21 À : Pharo Development List Objet : Re: [Pharo-dev] you may need to update your configurations Christophe. [1] https://pharo.fogbugz.com/default.asp?10801 Ouch. Does not bode too well for backporting that to Pharo 2.0. I'm feeling a bit down. It's either enduring bugs in 2.0 for a year or so or fighting every few days with 3.0 and knowing that anyway it's not production ready. I had to cope with 1.4 not being able to handle utf8 in the same way. Thierry what we can do is the following: have a look at the fix of nicolas and we can try to add to th 2.0 batch but we should pay attention not to introduce other bugs (because I'm afraid it will). BTW 30 is not that instable. The window for my next serious developpement with Pharo is around 2014, so I guess I could just sit and wait. By the way, why the change in MonticelloFileTree-Core-ChristopheDemarey.97 breaks Pharo 2.0 ? -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
Re: [Pharo-dev] Barcodes
Hi Gary, Thanks for this informations. It's very interesting. All the data there can be gatherted from the FreeType TTF font in Pharo. Just needs to be present on the end-user's pc. Have you already wrote code to extract the informations from a TTF font ? If someone has exploring this domain, we could write faster the implementation. Best regards Olivier ;-) Le 19 juin 2013 à 18:05, Gary Chambers a écrit : Hi Olivier. For our label/report generation we do draw the barcodes rather than use a Form. Actually we have a Canvas that adapts to generate PDF so it is all WYSIWYG. Therefore no actual dependency in the PDF generation to any barcode objects. Looking to support Arefact instead of the stuff we have. Not looked at the details of Artefact yet though. TTF in PDF is not so bad... a snippet of what's expected in the output: 6 0 obj /Type /Font /Subtype /TrueType /BaseFont /Arial /FirstChar 0 /LastChar 255 /Widths 8 0 R /FontDescriptor 9 0 R /Encoding /WinAnsiEncoding endobj 9 0 obj /Type /FontDescriptor /FontName /Arial /Flags 32 /FontBBox [-665 -325 2000 1005] /Ascent 905 /Descent -212 /Leading 0 /ItalicAngle 0 endobj 8 0 obj [ 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 277 277 354 556 556 889 666 190 333 333 389 583 277 333 277 277 556 556 556 556 556 556 556 556 556 556 277 277 583 583 583 556 1015 666 666 722 722 666 610 777 722 277 500 666 556 833 722 777 666 777 722 666 610 722 666 943 666 666 610 277 277 277 469 556 333 556 556 500 556 556 277 556 556 222 222 500 222 833 556 556 556 556 333 500 277 556 500 722 500 500 500 333 259 333 583 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 750 277 333 556 556 556 556 259 556 333 736 370 556 583 333 736 552 399 548 333 333 333 576 537 333 333 333 365 556 833 833 833 610 666 666 666 666 666 666 1000 722 666 666 666 666 277 277 277 277 722 722 777 777 777 777 777 583 777 722 722 722 722 666 666 610 556 556 556 556 556 556 889 500 556 556 556 556 277 277 277 277 556 556 556 556 556 556 556 548 610 556 556 556 556 500 556 500 ] endobj (actually we now use MacRoman encoding as generally works better). All the data there can be gatherted from the FreeType TTF font in Pharo. Just needs to be present on the end-user's pc. A typical PDF reader will do fallbacks as necessary if not present. (not tackled fully embedded fonts yet). Regards, Gary - Original Message - From: Olivier Auverlot To: Pharo Development List Sent: Wednesday, June 19, 2013 6:42 AM Subject: Re: [Pharo-dev] Barcodes Hi Gary, yes, I'm interested by help and pointers about TTF. It's a planned evolution of Artefact. About barcodes generation, why don't use Artefact directly ? You can draw barcodes with the PDFDraw elements (PDFLineElement, PDFRectElement, etc.) and print the document on stickers. In the future, it could be cool to have a Artefact-Elements-Barcodes package :) Best regards Olivier Le 18 juin 2013 à 18:37, Gary Chambers a écrit : Well, hoping to work with Torsten on barcodes in general, given we have support for canvas based drawing of a few formats here at Pinesoft. Also, if Olivier would like some help with TTF in PDFs I can give some pointers etc. Regards, Gary - Original Message - From: Chris Cunningham To: Pharo Development List Sent: Tuesday, June 18, 2013 5:23 PM Subject: Re: [Pharo-dev] Barcodes You should be able to create a form, paint it white, draw on it with a barcode TTF font, export that form to JPEG, and then use that JPEG into Artefact. Not really straight-forward, but it should work. *Note: I've found that writing JPEG's in Pharo, it assumes that the background is BLACK if it isn't isn't specifically painted with something else first. Unlike PNG and GIF, which assume WHITE. -Chris On Tue, Jun 18, 2013 at 1:44 AM, Olivier Auverlot olivier.auver...@gmail.com wrote: Hi Torsten, Artefact don't support TTF fonts for the moment but it's planned in futures versions. Best regards Olivier :-) Le 14 juin 2013 à 16:16, Milan Mimica a écrit : You just need a TTF font. Does Artefact support TTF? hpdf does. On 14 June 2013 13:58, Torsten Bergmann asta...@gmx.de wrote: Do we have some barcode stuff available for Pharo? Something Form based that can be used with Artefact? Thx T. -- Milan Mimica http://sparklet.sf.net
Re: [Pharo-dev] Cloud Hosting Tip
kilon wrote whats your opinion on linenode ? - https://www.linode.com https://www.linode.com Its what I currently use and it was recommended by a friend whos a web developer. Its very nice service, but 200 euros per year is too much for my needs. All I need is some space , the ability to run pharo and display a basic website. So I might move to what you recommended here. 50 euros per year seems a lot closer to my budget. If you're looking for cheap this hosting provider aggregator usually has coupons for lots of places: http://serverbear.com/ -- View this message in context: http://forum.world.st/Pharo-dev-Cloud-Hosting-Tip-tp4693950p4694293.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
[Pharo-dev] Barcode
Stephan Eggermon wrote: So, this kind-of works. Both Artefact and Barcode repositories are not writable, so here is an artefact package that depends on barcode. Yes - the dependency should be Artefact requires barcode and then the code could be integrated into Artefact. Note that there is no writeable repo in SmalltalkHub compared to SqS. I can add you as a contributor to Barcode if you want to help with the code. AFAIK soon SmalltalkHub will have inboxes... Maybe someone (Olivier) can also add me and Stephan to Artefact as contributor. Thx T.
Re: [Pharo-dev] why so many processes are running at startup time?
Hi Satoshi, On 20 Jun 2013, at 12:18, NISHIHARA Satoshi goo...@gmail.com wrote: thx. I run a cleaning processes script such as: (Process allInstances reject: [ :p | {(InputEventFetcher default fetcherProcess). (Processor activeProcess). (WeakArray runningFinalizationProcess). (Processor backgroundProcess). (SmalltalkImage current lowSpaceWatcherProcess). (UIManager default uiProcess). (Delay schedulingProcess)} includes: p ]) do: [ :p | p suspend; terminate ] This code looks like a nice start for writing a unit test that could verify that there are no bogus processes in delivered images. We already have a number of tests that do global quality checks (like Undeclared, bogus instances, ..), we need this as well. Any opinions, comments ? Sven and get 6 processes remain: (80) 745275392: Delay classhandleTimerEvent (60) Input events fetching process: InputEventFetcherwaitForInput (60) 1061945344: SmalltalkImagelowSpaceWatcher (50) 946339840: WeakArray classfinalizationProcess (40s) Morphic UI process: nil (10) 845938688: ProcessorScheduler classidleProcess is this OK? regards. 2013/6/20 Marcus Denker marcus.den...@inria.fr Hi, I think we should for now just kill them when building the image, I will check. On Jun 20, 2013, at 9:56 AM, Clément Bera bera.clem...@gmail.com wrote: Hello, These processes are due to the new integration testing process. This new process was introduced in Pharo 3.0 alpha, and we found the bug and fixed it. Recently we backport the new integration process to Pharo 2.0 and seemingly it created the same bug but since we read your mail we were not aware of it. We need to backport the fix. We will fix that within a few days. As a workaround, you can just kill these processes in your image for now ... Thanks for reporting the issue, 2013/6/20 NISHIHARA Satoshi goo...@gmail.com There are 30 over processes are running at startup, Pharo-20607.image. NDOWS-1252?B?vIgyMDEzLTA2LTIwIDEzLjE5LjU277yJLnBuZw=.png regards. -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh]
Re: [Pharo-dev] taking a custom screenshot of a submorph
One could, but it is not the same. The inspector offers a quick visual interface that allows you to browse a complex morph hierarchy. Taking the screenshot is secondary, but when combined with the visual feedback it gets more interesting. Cheers, Doru On Sun, Jun 9, 2013 at 7:21 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: One could use the halo, seems faster to me Ben On Jun 6, 2013, at 11:04 PM, Tudor Girba tu...@tudorgirba.com wrote: Hi, Just in case you want to take a screenshot of a submorph, here is a description + video of how you can do it using the GTInspector: http://www.humane-assessment.com/blog/custom-morph-screenshot-with-gtinspector Cheers, Doru -- www.tudorgirba.com Every thing has its own flow -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-dev] Barcode
On Jun 20, 2013, at 5:21 PM, Torsten Bergmann asta...@gmx.de wrote: Stephan Eggermon wrote: So, this kind-of works. Both Artefact and Barcode repositories are not writable, so here is an artefact package that depends on barcode. Yes - the dependency should be Artefact requires barcode and then the code could be integrated into Artefact. Why you can have another package ArteBar that depends on Artefact and BarCode. Note that there is no writeable repo in SmalltalkHub compared to SqS. I can add you as a contributor to Barcode if you want to help with the code. AFAIK soon SmalltalkHub will have inboxes... Maybe someone (Olivier) can also add me and Stephan to Artefact as contributor. Thx T.
Re: [Pharo-dev] you may need to update your configurations
On Jun 19, 2013, at 11:03 PM, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Certainly not in 2.0 Even in 3.0, this will be hard because this mean a big clean-up of Stream mess (Xtreams?) I would love that. Any progress in that direction is welcome. 2013/6/19 Sven Van Caekenberghe s...@stfx.eu On 19 Jun 2013, at 22:55, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: Yes, this part is perfectly correct. It's just that I used ZnInvalidUTF8 in TextConverter which introduces a dependency of TextConverter on Zinc. OK, but technically, it is a dependency on Zinc-Character-Encoding-Core, which is independent of the Zinc HTTP code itself. Just like Zinc-Resource-Meta-Core (containing ZnUrl and ZnMimeType) is independent of the HTTP code proper. These sub packages where created specifically to break unwanted dependencies, as requested by Pavel et al. This only make sense if in the long term we replace those TextConverters by cleaner Zinc encoders/decoders. Yes, that is the idea, eventually. But never in 2.0. 2013/6/19 Sven Van Caekenberghe s...@stfx.eu On 19 Jun 2013, at 22:33, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: The change is very light, I applied it almost unchanged on Squeak (can't remember which version was the first). The only thing we neeed is to catch an UTF8Error. Since in Pharo there are two encoder/decoder hierarchies, and since that of Zinc is cleaner, I made a bet on future and chose to make UTF8Error a subclass of existing already Zn Encoding/Decoding exception. But we still use the old TextConverter hierarchy in MC, even in Pharo 3.0. So the dependency on Zinc is totally arbitrary and un-necessary right now; it does not exist in Smalltalk version. It's just a bet on the future. For a backport to 2.0, I would just use an UTF8Error like in Squeak and avoid any dependency on Zinc. Well ZnInvalidUTF8 is now a full part of Zinc itself (Zinc-Character-Encoding-Core to be exact). It is already in 3.0 (with your code) and I guess we'll upgrade Zinc in 2.0 as well. But is is a dependency, that is correct. Anyway, we have to double check. Nicolas 2013/6/19 GOUBIER Thierry thierry.goub...@cea.fr Stéphane, I'll probably have a look at Nicolas fix anyway, but as it required also a change to Zinc... then I started to worry. But it may be better than trying to fix ZipArchive incorrect encoding issues from the outside (by forcing an utf8 conversion out of the contents of the ZipArchive members). If I manage to make sense of it, I'll put a enhancement request in FogBuz with a slice. Yes, I think 30 is not that unstable, like 2.0 was before ... except that I'm fairly dependent on the RPackage infrastructure, and I prefer to wait until the RPackage refactoring is done ;-) Thierry De : Pharo-dev [pharo-dev-boun...@lists.pharo.org] de la part de Stéphane Ducasse [stephane.duca...@inria.fr] Date d'envoi : mercredi 19 juin 2013 21:21 À : Pharo Development List Objet : Re: [Pharo-dev] you may need to update your configurations Christophe. [1] https://pharo.fogbugz.com/default.asp?10801 Ouch. Does not bode too well for backporting that to Pharo 2.0. I'm feeling a bit down. It's either enduring bugs in 2.0 for a year or so or fighting every few days with 3.0 and knowing that anyway it's not production ready. I had to cope with 1.4 not being able to handle utf8 in the same way. Thierry what we can do is the following: have a look at the fix of nicolas and we can try to add to th 2.0 batch but we should pay attention not to introduce other bugs (because I'm afraid it will). BTW 30 is not that instable. The window for my next serious developpement with Pharo is around 2014, so I guess I could just sit and wait. By the way, why the change in MonticelloFileTree-Core-ChristopheDemarey.97 breaks Pharo 2.0 ?
Re: [Pharo-dev] why so many processes are running at startup time?
Caekenberghe san 11 lines of code in previous e-mail, extracted from SmalltalkImage privCleanProcesses (20607 image), and modified. Browser fullOnClass: SmalltalkImage selector: #privCleanProcesses. or Nautilus fullOnClass: SmalltalkImage selector: #privCleanProcesses. please use freely. regards. 2013/6/21 Sven Van Caekenberghe s...@stfx.eu Hi Satoshi, On 20 Jun 2013, at 12:18, NISHIHARA Satoshi goo...@gmail.com wrote: thx. I run a cleaning processes script such as: (Process allInstances reject: [ :p | {(InputEventFetcher default fetcherProcess). (Processor activeProcess). (WeakArray runningFinalizationProcess). (Processor backgroundProcess). (SmalltalkImage current lowSpaceWatcherProcess). (UIManager default uiProcess). (Delay schedulingProcess)} includes: p ]) do: [ :p | p suspend; terminate ] This code looks like a nice start for writing a unit test that could verify that there are no bogus processes in delivered images. We already have a number of tests that do global quality checks (like Undeclared, bogus instances, ..), we need this as well. Any opinions, comments ? Sven and get 6 processes remain: (80) 745275392: Delay classhandleTimerEvent (60) Input events fetching process: InputEventFetcherwaitForInput (60) 1061945344: SmalltalkImagelowSpaceWatcher (50) 946339840: WeakArray classfinalizationProcess (40s) Morphic UI process: nil (10) 845938688: ProcessorScheduler classidleProcess is this OK? regards. 2013/6/20 Marcus Denker marcus.den...@inria.fr Hi, I think we should for now just kill them when building the image, I will check. On Jun 20, 2013, at 9:56 AM, Clément Bera bera.clem...@gmail.com wrote: Hello, These processes are due to the new integration testing process. This new process was introduced in Pharo 3.0 alpha, and we found the bug and fixed it. Recently we backport the new integration process to Pharo 2.0 and seemingly it created the same bug but since we read your mail we were not aware of it. We need to backport the fix. We will fix that within a few days. As a workaround, you can just kill these processes in your image for now ... Thanks for reporting the issue, 2013/6/20 NISHIHARA Satoshi goo...@gmail.com There are 30 over processes are running at startup, Pharo-20607.image. NDOWS-1252?B?vIgyMDEzLTA2LTIwIDEzLjE5LjU277yJLnBuZw=.png regards. -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- Clément Béra Mate Virtual Machine Engineer Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh] -- -- NISHIHARA Satoshi [:goonsh :nsh | ^ nishis perform: goonsh with: nsh]
Re: [Pharo-dev] Tabs
It is super cool to see Chrome look n feel in Pharo. More so the startup of the video.. Way to go Ben.. It is inspiring On Thu, Jun 20, 2013 at 2:21 PM, Tudor Girba tu...@tudorgirba.com wrote: Great job, Ben. Doru On Sun, Jun 9, 2013 at 9:03 PM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: hello guys :) I would like to introduce a new implementation of tabs with the following features (for now): - tabs with icon (and a label of course) - un-closable tabs - threaded contents loading (with animated icon) - shortcuts handling (to navigate from one tab to the next/previous one, to close a tab) - multi-selection (will display all the selected contents with splitter in between) - actions (each tab can define actions displayed in the tab bar) - Thanks Tudor for the idea - menu items - Thanks Tudor for the idea Here is a little (geeky) video showing a bit of everything: https://dl.dropboxusercontent.com/u/24369478/Tabs.m4v The code can be loaded executing this: Gofer it url: 'http://smalltalkhub.com/mc/BenjaminVanRyseghem/Tabs/main'; package: 'ConfigurationOfTabs'; load. ConfigurationOfTabs loadDefault. TabExample open Next steps: - drag and drop (for rearranging tabs) - Spec support (almost finished) Ben -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-dev] Barcodes
Very cool !!! Le 20 juin 2013 à 13:41, Stephan Eggermont a écrit : So, this kind-of works. Both Artefact and Barcode repositories are not writable, so here is an artefact package that depends on barcode. ean13Test: aStream drawing an EAN13 | pdfdoc aPage barcode sequence | barcode := BarcodeEAN13 value: '2109876543210'. sequence := barcode binarySequence. pdfdoc := PDFDocument new. aPage := PDFPage new. sequence withIndexDo: [:each :index | each = $1 ifTrue: [ aPage add: (PDFLineElement from: (20+index) pt @ 50 pt to: (20+index) pt @ 20 pt). ] ]. pdfdoc add: aPage. pdfdoc styleSheet drawColor: (PDFColor r: 0 g: 0 b: 0). pdfdoc exportTo: aStream Artefact-Barcodes.stean13Test.pdf