Re: [Pharo-users] Oops! Invalid username or password when saving Settings on smalltalkhub
Thanks for the report. Stef Le 6/8/15 22:06, Andrei Chis a écrit : From what I remember the logout issue is caused by proxies caches and the fact that smalltalk hub does not set any headers that prevent/invalidate caching. We are having this problem all the time on our university network. To make it worse sometimes after I log out I get the home page of the previous logged in user that accessed smalltalk hub. If the underlying cause is caching then smalltalk hub could add some headers to invalidate it. We really only get these kinds of problems on smalltalk hub. Cheers, Andrei On Thu, Aug 6, 2015 at 7:59 PM, Avdi Grimm a...@avdi.org mailto:a...@avdi.org wrote: I'm seeing the same thing when I try to create a new project. Potentially related: Logout appears to have no effect, and leaves me (apparently) still logged-in. On Wed, Jun 24, 2015 at 5:39 AM Damien Cassou damien.cas...@inria.fr mailto:damien.cas...@inria.fr wrote: Hi, I'm trying to update the description of the Pillar project at http://www.smalltalkhub.com/#!/~Pier/Pillar/settings http://www.smalltalkhub.com/#%21/%7EPier/Pillar/settings. Unfortunately, when I press the green Update button, I face a Oops! Invalid username or password red warning on top of the page and my changes are not saved. -- Damien Cassou http://damiencassou.seasidehosting.st Success is the ability to go from one failure to another without losing enthusiasm. --Winston Churchill
Re: [Pharo-users] direct image code exchange
Hi! It is great that people are interested in sharing information between images. GTChatter was the first try and we will come with a new solution. What is the most urgent information you want to share between images? Source code? I am curious about your use cases: Do you want to share information between images on the same computer? Between your computers? Between co-workers? Cheers, Juraj On Aug 7, 2015, at 03:58, Peter Uhnák i.uh...@gmail.com wrote: On PharoDays, there was a demo of GTChatter ( https://youtu.be/Nmcou_5um2s?t=22m18s https://youtu.be/Nmcou_5um2s?t=22m18s ), but it was just prototype, I don't think it's currently being developed. But maybe it could serve as a bases for code sharing between images/users. If anything you could simply push your code to http://ws.stfx.eu/ http://ws.stfx.eu/ (Playground can do that with a button), and then paste the link through GTSpotter to the other user. If you paste that link into GTSpotter, it automatically offers you the option to open playground on it (eg. try pasting into GTSpotter http://ws.stfx.eu/923KR0YD1BRU http://ws.stfx.eu/923KR0YD1BRU ). Peter On Fri, Aug 7, 2015 at 12:45 AM, Sebastian Heidbrink shei...@yahoo.de mailto:shei...@yahoo.de wrote: Hi Sven, thank you! I will check it out. I'll have such situation more and more often. I'll let you know when I might have extended the code by some addons Sebastian On 2015-08-06 3:26 PM, Sven Van Caekenberghe wrote: On 07 Aug 2015, at 00:13, Sebastian Heidbrink shei...@yahoo.de mailto:shei...@yahoo.de wrote: Is there a in-image monticello server available that would mimic a repository server? Yes, it is called ZnMonticelloServerDelegate - it is meant as an example, but it works.
Re: [Pharo-users] [Moose-dev] Basic Woden Loading tutorial
This is excellent Ronie! Continue, this is very important. Alexandre Le 7 août 2015 à 12:14, Ronie Salgado ronies...@gmail.com a écrit : Hi, I started writing a basic woden loading tutorial: http://woden.ronie.cl/ Please, bear in mind that this is an early draft, so expect lot of mistakes. Greetings, Ronie ___ Moose-dev mailing list moose-...@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
[Pharo-users] how to increase memory for the jvm through jniport?
Hi, When using JNIPort I am getting a java.lang.OutOfMemory: Java heap space. To go around this, I would need to provide more memory to the JVM. Essentially, I would like to provide the correspondent of a command line like: java -Xmx4000m How should I do this? Cheers, Doru -- www.tudorgirba.com Every thing has its own flow
Re: [Pharo-users] direct image code exchange
Although this would work better for scripts than classes. (Unless you could push fileouts through GTChatter). Peter On Fri, Aug 7, 2015 at 8:58 AM, Peter Uhnák i.uh...@gmail.com wrote: On PharoDays, there was a demo of GTChatter ( https://youtu.be/Nmcou_5um2s?t=22m18s ), but it was just prototype, I don't think it's currently being developed. But maybe it could serve as a bases for code sharing between images/users. If anything you could simply push your code to http://ws.stfx.eu/ (Playground can do that with a button), and then paste the link through GTSpotter to the other user. If you paste that link into GTSpotter, it automatically offers you the option to open playground on it (eg. try pasting into GTSpotter http://ws.stfx.eu/923KR0YD1BRU ). Peter On Fri, Aug 7, 2015 at 12:45 AM, Sebastian Heidbrink shei...@yahoo.de wrote: Hi Sven, thank you! I will check it out. I'll have such situation more and more often. I'll let you know when I might have extended the code by some addons Sebastian On 2015-08-06 3:26 PM, Sven Van Caekenberghe wrote: On 07 Aug 2015, at 00:13, Sebastian Heidbrink shei...@yahoo.de wrote: Is there a in-image monticello server available that would mimic a repository server? Yes, it is called ZnMonticelloServerDelegate - it is meant as an example, but it works.
Re: [Pharo-users] direct image code exchange
On PharoDays, there was a demo of GTChatter ( https://youtu.be/Nmcou_5um2s?t=22m18s ), but it was just prototype, I don't think it's currently being developed. But maybe it could serve as a bases for code sharing between images/users. If anything you could simply push your code to http://ws.stfx.eu/ (Playground can do that with a button), and then paste the link through GTSpotter to the other user. If you paste that link into GTSpotter, it automatically offers you the option to open playground on it (eg. try pasting into GTSpotter http://ws.stfx.eu/923KR0YD1BRU ). Peter On Fri, Aug 7, 2015 at 12:45 AM, Sebastian Heidbrink shei...@yahoo.de wrote: Hi Sven, thank you! I will check it out. I'll have such situation more and more often. I'll let you know when I might have extended the code by some addons Sebastian On 2015-08-06 3:26 PM, Sven Van Caekenberghe wrote: On 07 Aug 2015, at 00:13, Sebastian Heidbrink shei...@yahoo.de wrote: Is there a in-image monticello server available that would mimic a repository server? Yes, it is called ZnMonticelloServerDelegate - it is meant as an example, but it works.
[Pharo-users] how to reinitialize the jvm in jniport?
Hi, I am trying to shutdown a Jvm instance but when I try to use a new instance, I get a JNIError: unknown error. Here is what I do on OS X using Pharo 3.0: Gofer new smalltalkhubUser: 'JNIPort' project: 'JNIPort'; configuration; loadVersion: '3.0-baseline'. JNIPortJNIInterface libraryFile: '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libclient.dylib'. jvm := JVM newWithDefaultSettings. jvm findClass: 'java.lang.String'. == public final java.lang.String Instance class: JavaLangString Static class: StaticJavaLangObject jvm shutdown. with or without this line, the below error is the same anotherJvm := JVM newWithDefaultSettings. == JNIError: unknown error What am I doing wrong? Cheers, Doru -- www.tudorgirba.com Every thing has its own flow
[Pharo-users] Basic Woden Loading tutorial
Hi, I started writing a basic woden loading tutorial: http://woden.ronie.cl/ Please, bear in mind that this is an early draft, so expect lot of mistakes. Greetings, Ronie
Re: [Pharo-users] PharoJS
Is PharoJS related to / based on http://www.squeaksource.com/@45sUWABDUdZM7Og0/Uycfg_AQ ST2JS - Traductor de Smalltalk a JavaScript http://diegogomezdeck.blogspot.com/2006/07/st2js-traductor-de-smalltalk.html Las características de JavaScript mencionadas anteriormente, usadas con picardía, permiten hacer un traductor de Smalltalk a JavaScript que respete toda la semántica del Smalltalk. ? --Hannes On 7/16/15, Noury Bouraqadi bouraq...@gmail.com wrote: On 15 Jul 2015, at 15:37, Andy Burnett andy.burn...@knowinnovation.com wrote: One question. When I execute 1+1 on the Pharo (pink) playground, I see the code appearing in the web browser log, but it doesn't appear to execute. Is it supposed to, or at this stage is it just showing that it made it over to the web browser? It does actually execute on the browser, but 1+1 has no side effect :-). You can try to call native javascript object to see stuff changing. For example, you can evaluate the following console native_log: 'Hello from Smalltalk'. Displays the string in the console of the browser window native_alert: 'This is cool'. Opens an alert window on the browser Note: You need to load version 51 (just pushed it to SmalltalkHub) that fixes a bug in the PharoJS workspace. Noury
[Pharo-users] MSOffice DOCX generation?
Hello Is there a library like for Pharo to generate DOCX files? Something like this https://docx.codeplex.com/ DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manor. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed. Regards Hannes
Re: [Pharo-users] Seamless
On Tue, Aug 4, 2015 at 12:28 PM, Sean P. DeNigris s...@clipperadams.com wrote: 1. What is the status of this project (http://ss3.gemstone.com/ss/Seamless.html)? I see the last commit is in April. Does it work? As an engineering pre-requisite for my research, yes ;) You can already read: https://hal.inria.fr/hal-01145792/document go through the examples, and provide some feedback. Soon there will be more engineering effort from RMoD to push, all results from such prototypes forward. 2. Can the communication be done securely? If I had two images each running on a server in a different physical location, could they communicate over something like SSL? Yes this is doable, although there is no SSL support in Seamless itself with minimal effort you can use ZdcSecureSocketStream (Zodiac-Core) with it. Cheers, Nick - Cheers, Sean -- View this message in context: http://forum.world.st/Seamless-tp4840907.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] MongoDB: console commands? query embedded indexed fields?
Hi Norbert, Hi Phil, thanks for your help! Now I know what the problem is/was. :-))) The query was right, the index was used, all is fine. BUT: I used an inspector to look at the query's result and opening the inspector forced to load all the other objects which belong to the object found. Explanation: I have a person which has N trips with N receipts, all with back pointers. Opening an Inspector with one trip loads its person and all other trips of this person hahaha. The magritte description isLazy but the inspector forced the loading of the objects in the VOMongoRepository at first time after image starting. Time millisecondsToRun: [(RKATrip selectMany: { 'receipts.receiptDescription' - 'a' } asDictionary) size] 764 . Time millisecondsToRun: [(RKATrip selectMany: { 'receipts.receiptDescription' - 'a' } asDictionary) inspect] 17234 So, I messed around with myself. Currently I do not have so much data but I hope in future there will be a lot and I want the application prepared for that. BTW: I found this nice document: https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/ws/Voyage/Voyage.pdf I was mentioned there, thanks! Esteban, if you want, you could change my name, I married and changed my name to Manaa. have a nice weekend Sabine 2015-08-06 15:36 GMT+02:00 NorbertHartl [via Smalltalk] ml-node+s1294792n4841238...@n4.nabble.com: Sabine, Am 06.08.2015 um 14:49 schrieb Sabine Manaa [hidden email] http:///user/SendEmail.jtp?type=nodenode=4841238i=0: Norbert, I have to come back to your answer. With the .explain option, I can see, how performance is with and without index on the _mongo console_. As an example, I see: with index only 2 objects scanned, without: 200. Performance is perfect with index. But _from smalltalk_, it seems to iterate over all objects, also with the index set. Slow. You wrote: The index will be selected automatically. It seems that it does not. Usually it does. My question: MongoQuery has an attribute named where which is filled with the mentioned receipts.receiptDescription. Because of the name of this attribute where and the slow performance, I assume that the mongo classes use the $where command: http://docs.mongodb.org/manual/reference/operator/query/where/ Is this right? In this case with the statement Trip selectMany: { 'receipts.receiptDescription' - 'Tankquittung' } asDictionary the index would not be set automatically. The $where provides greater flexibility, but requires that the database processes the JavaScript expression or function for each document in the collection. Then my question is if the mongo classes support database queries with index and if yes, how. I am very interested in your opinion and I think other users should have the same requirements (querying indexed variables) - how did they solve this? The handling of indexes needs to be automatic. The rule of thumb is that if you use where clause like b = , c = , a= than you need an compound index in the same order being index(b,c,a). This is handled by the database when it analyzes the query it tries to find an appropriate index. Or seeing it from the other side: If you issue a query with index and the index does not fit the query it is a problem anyway. Are you sure you have only this one thing in the where query? I use e.g. COInstalledApp selectOne: { 'device.id' - aString. 'application.__id' - anApplication voyageId } asDictionary on a collection that has approx. 1 Mio. entires and it is fast. I didn't check with explain but I'll do if I find time :) If I were you I would step in the debugger down to the Voyage part after serialization. Then you have the exact Dictionary that is used to send to mongo. You can then use this query to do an explain on it and that should show you something. Another thing you can try (although I don't think makes any difference) is to use the non-javascript query variant. That would be Trip selectMany: { 'receipts' - { 'receiptDescription' - 'Tankquittung' } asDictionary } asDictionary Norbert Regards Sabine 2015-08-04 14:47 GMT+02:00 Sabine Manaa [hidden email] http:///user/SendEmail.jtp?type=nodenode=4841238i=1: Hi Norbert, I didn't want to use use database for queries but for defining the index from within smalltalk. But if creating indexes is not supported, I will set the indexes within the mongo console. The explain option is very helpful I did not know this. Your answer was very helpful for me, thanks a lot! Sabine 2015-08-04 10:42 GMT+02:00 NorbertHartl [via Smalltalk] [hidden email]: Sabine, Am 04.08.2015 um 07:08 schrieb Sabine Manaa [hidden email]: Hi, I have 2 questions concerning use of mongoDB classes: 1) how can I send mongo console commands directly from smalltalk 2) how to query on an embedded collection with an index Model: I have trips and each trip has an embedded collection of N receipts like
Re: [Pharo-users] direct image code exchange
On Thu, Aug 6, 2015 at 7:43 PM, Sebastian Heidbrink shei...@yahoo.de wrote: Hi Mariano, that is what I do, too. I mean a case where I sit next to somebody and he uses his own computer and we dabble around. After a while one sometimes want to just provide the other with some snippets or classes just implemented. Email and USB stick are not always an option... OK, I see now. So for that what I do is that I have a MarianoSandbox repository in Shub which is public write access and I simply commit there... But I don't remember if even if the project is public write, if someone would still need a Shub user, which in your case would not be fun. Cheers, Sebastian On 2015-08-06 3:17 PM, Mariano Martinez Peck wrote: Something I do since years is to have my own cross-image-shared package cache or explicit directory-based monticello repository (added to your projects) where I have everything. Then, you can simply commit to your local directory based monticello report and load it in the other image..quite simple. On Thu, Aug 6, 2015 at 7:13 PM, Sebastian Heidbrink shei...@yahoo.de shei...@yahoo.de wrote: Hi again, I find my self more and more often showing others Pharo and very often it might be great to just push code changes from one image directly to another. Is there a in-image monticello server available that would mimic a repository server? I already thought about webannouncements as a solution to broadcast/push code within the network. Or a shared remote playground that keeps a websocket connection between images and would provide an easy way to copypaste snippets... @Stephan: How did you solve your latency issues with your remote introductions? Couldn't one just extend gui announcements by web announcements to remote control other images? Sebastian -- Mariano http://marianopeck.wordpress.com -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] direct image code exchange
Peter Uhnák wrote If you paste that link into GTSpotter, it automatically offers you the option to open playground on it (eg. try pasting into GTSpotter http://ws.stfx.eu/923KR0YD1BRU ). [OT]Wow![/OT] - Cheers, Sean -- View this message in context: http://forum.world.st/direct-image-code-exchange-tp4841384p4841465.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] direct image code exchange
On 8/6/15, Mariano Martinez Peck marianop...@gmail.com wrote: Something I do since years is to have my own cross-image-shared package cache or explicit directory-based monticello repository (added to your projects) where I have everything. Then, you can simply commit to your local directory based monticello report and load it in the other image..quite simple. Simple and efficient indeed! +1 On Thu, Aug 6, 2015 at 7:13 PM, Sebastian Heidbrink shei...@yahoo.de wrote: Hi again, I find my self more and more often showing others Pharo and very often it might be great to just push code changes from one image directly to another. Is there a in-image monticello server available that would mimic a repository server? I already thought about webannouncements as a solution to broadcast/push code within the network. Or a shared remote playground that keeps a websocket connection between images and would provide an easy way to copypaste snippets... @Stephan: How did you solve your latency issues with your remote introductions? Couldn't one just extend gui announcements by web announcements to remote control other images? Sebastian -- Mariano http://marianopeck.wordpress.com
Re: [Pharo-users] MongoDB: console commands? query embedded indexed fields?
Am 07.08.2015 um 14:53 schrieb Sabine Manaa manaa.sab...@gmail.com: Hi Norbert, Hi Phil, thanks for your help! Now I know what the problem is/was. :-))) The query was right, the index was used, all is fine. BUT: I used an inspector to look at the query's result and opening the inspector forced to load all the other objects which belong to the object found. Explanation: I have a person which has N trips with N receipts, all with back pointers. Opening an Inspector with one trip loads its person and all other trips of this person hahaha. The magritte description isLazy but the inspector forced the loading of the objects in the VOMongoRepository at first time after image starting. Time millisecondsToRun: [(RKATrip selectMany: { 'receipts.receiptDescription' - 'a' } asDictionary) size] 764 . Time millisecondsToRun: [(RKATrip selectMany: { 'receipts.receiptDescription' - 'a' } asDictionary) inspect] 17234 So, I messed around with myself. Well, we call this an inversed Heisenbug, don't we? :) That is a problem we should be aware when using proxy implementations and tools like gt tools. It is very likely that a powerful tool will inquire special information on a proxy that will trigger it. Currently I do not have so much data but I hope in future there will be a lot and I want the application prepared for that. It depends on the tool and your model. Are you storing those backreferences in mongo as well? Norbert BTW: I found this nice document: https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/ws/Voyage/Voyage.pdf https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/ws/Voyage/Voyage.pdf I was mentioned there, thanks! Esteban, if you want, you could change my name, I married and changed my name to Manaa. have a nice weekend Sabine 2015-08-06 15:36 GMT+02:00 NorbertHartl [via Smalltalk] [hidden email] x-msg://13/user/SendEmail.jtp?type=nodenode=4841464i=0: Sabine, Am 06.08.2015 um 14:49 schrieb Sabine Manaa [hidden email] http://user/SendEmail.jtp?type=nodenode=4841238i=0: Norbert, I have to come back to your answer. With the .explain option, I can see, how performance is with and without index on the _mongo console_. As an example, I see: with index only 2 objects scanned, without: 200. Performance is perfect with index. But _from smalltalk_, it seems to iterate over all objects, also with the index set. Slow. You wrote: The index will be selected automatically. It seems that it does not. Usually it does. My question: MongoQuery has an attribute named where which is filled with the mentioned receipts.receiptDescription. Because of the name of this attribute where and the slow performance, I assume that the mongo classes use the $where command: http://docs.mongodb.org/manual/reference/operator/query/where/ http://docs.mongodb.org/manual/reference/operator/query/where/ Is this right? In this case with the statement Trip selectMany: { 'receipts.receiptDescription' - 'Tankquittung' } asDictionary the index would not be set automatically. The $where provides greater flexibility, but requires that the database processes the JavaScript expression or function for each document in the collection. Then my question is if the mongo classes support database queries with index and if yes, how. I am very interested in your opinion and I think other users should have the same requirements (querying indexed variables) - how did they solve this? The handling of indexes needs to be automatic. The rule of thumb is that if you use where clause like b = , c = , a= than you need an compound index in the same order being index(b,c,a). This is handled by the database when it analyzes the query it tries to find an appropriate index. Or seeing it from the other side: If you issue a query with index and the index does not fit the query it is a problem anyway. Are you sure you have only this one thing in the where query? I use e.g. COInstalledApp selectOne: { 'device.id http://device.id/' - aString. 'application.__id' - anApplication voyageId } asDictionary on a collection that has approx. 1 Mio. entires and it is fast. I didn't check with explain but I'll do if I find time :) If I were you I would step in the debugger down to the Voyage part after serialization. Then you have the exact Dictionary that is used to send to mongo. You can then use this query to do an explain on it and that should show you something. Another thing you can try (although I don't think makes any difference) is to use the non-javascript query variant. That would be Trip selectMany: { 'receipts' - { 'receiptDescription' - 'Tankquittung' } asDictionary } asDictionary Norbert Regards Sabine 2015-08-04 14:47 GMT+02:00 Sabine Manaa [hidden email]
Re: [Pharo-users] MSOffice DOCX generation?
A similar library but for Java http://www.docx4java.org/trac/docx4j On 8/7/15, H. Hirzel hannes.hir...@gmail.com wrote: Hello Is there a library like for Pharo to generate DOCX files? Something like this https://docx.codeplex.com/ DocX is a .NET library that allows developers to manipulate Word 2007/2010/2013 files, in an easy and intuitive manor. DocX is fast, lightweight and best of all it does not require Microsoft Word or Office to be installed. Regards Hannes
[Pharo-users] System Windows not closing on using #close
Hi I am using *SystemWindow* to open a Morph in my application *searchQuick*. ( https://github.com/jig08/sQuick_new ) On clicking a button, a new screen opens up but the prev window fails to close, though I have tried using #close methods. The code snippets are as: *--* *IndexInterface**#initialize* *. . . . . .* * boxWindow := SystemWindow new.* * box position: 150@0.* * boxWindow addMorph: box.* * boxWindow extent: World extent.* * boxWindow openInWindowLabeled: 'searchQuick'.* * boxWindow fullscreen.* * boxWindow color: Color black.* *. . . . . . .* browseBtn on: #click send: #value to: [self boxWindow window close. IndexInterface delete. BrowseFiles open]. *---* *IndexInterface#delete* * box isNil ifFalse: [ self boxWindow window close. * * self boxWindow window delete . * * self boxWindow close. * * box window close .* * self boxWindow delete. * * box delete.].* * box := nil.* * self boxWindow window close. * * self boxWindow window delete .* * self boxWindow close. * * self boxWindow delete.* * boxWindow := nil.* *---* Help appreciated. Regards Jigyasa