Telling the OS that the VM wants focus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Telling the OS that the VM wants focus

Max Leske
Hi folks

The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).

Cheers,
Max
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

johnmci
Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.

More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.

On 2010-08-03, at 12:51 AM, Max Leske wrote:

> Hi folks
>
> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
>
> Cheers,
> Max
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

Max Leske
Ok, thanks.
Would be nice if at some point in the future unhandled exceptions would notify the OS automatically (for instance).


On 04.08.2010, at 00:34, John M McIntosh wrote:

> Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.
>
> More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.
>
> On 2010-08-03, at 12:51 AM, Max Leske wrote:
>
>> Hi folks
>>
>> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
>> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
>>
>> Cheers,
>> Max
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> --
> ===========================================================================
> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

Stéphane Ducasse
why not growl events?

On Aug 4, 2010, at 10:38 AM, Max Leske wrote:

> Ok, thanks.
> Would be nice if at some point in the future unhandled exceptions would notify the OS automatically (for instance).
>
>
> On 04.08.2010, at 00:34, John M McIntosh wrote:
>
>> Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.
>>
>> More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.
>>
>> On 2010-08-03, at 12:51 AM, Max Leske wrote:
>>
>>> Hi folks
>>>
>>> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
>>> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
>>>
>>> Cheers,
>>> Max
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> --
>> ===========================================================================
>> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>> ===========================================================================
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

Max Leske
Nice idea! Hadn't thought of Growl.
The idea would be to call Growl via Alien/FFI?


On 04.08.2010, at 11:55, Stéphane Ducasse wrote:

> why not growl events?
>
> On Aug 4, 2010, at 10:38 AM, Max Leske wrote:
>
>> Ok, thanks.
>> Would be nice if at some point in the future unhandled exceptions would notify the OS automatically (for instance).
>>
>>
>> On 04.08.2010, at 00:34, John M McIntosh wrote:
>>
>>> Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.
>>>
>>> More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.
>>>
>>> On 2010-08-03, at 12:51 AM, Max Leske wrote:
>>>
>>>> Hi folks
>>>>
>>>> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
>>>> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
>>>>
>>>> Cheers,
>>>> Max
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>> --
>>> ===========================================================================
>>> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
>>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>>> ===========================================================================
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

Stéphane Ducasse

On Aug 4, 2010, at 1:56 PM, Max Leske wrote:

> Nice idea! Hadn't thought of Growl.
> The idea would be to call Growl via Alien/FFI?

or that the VM is growl compliant.

>
>
> On 04.08.2010, at 11:55, Stéphane Ducasse wrote:
>
>> why not growl events?
>>
>> On Aug 4, 2010, at 10:38 AM, Max Leske wrote:
>>
>>> Ok, thanks.
>>> Would be nice if at some point in the future unhandled exceptions would notify the OS automatically (for instance).
>>>
>>>
>>> On 04.08.2010, at 00:34, John M McIntosh wrote:
>>>
>>>> Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.
>>>>
>>>> More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.
>>>>
>>>> On 2010-08-03, at 12:51 AM, Max Leske wrote:
>>>>
>>>>> Hi folks
>>>>>
>>>>> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
>>>>> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
>>>>>
>>>>> Cheers,
>>>>> Max
>>>>> _______________________________________________
>>>>> Pharo-project mailing list
>>>>> [hidden email]
>>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>> --
>>>> ===========================================================================
>>>> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
>>>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>>>> ===========================================================================
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Telling the OS that the VM wants focus

Miguel Cobá
In reply to this post by Stéphane Ducasse
El mié, 04-08-2010 a las 11:55 +0200, Stéphane Ducasse escribió:
> why not growl events?

Or D-Bus on linux systems

>
> On Aug 4, 2010, at 10:38 AM, Max Leske wrote:
>
> > Ok, thanks.
> > Would be nice if at some point in the future unhandled exceptions would notify the OS automatically (for instance).
> >
> >
> > On 04.08.2010, at 00:34, John M McIntosh wrote:
> >
> >> Many things come to mind, one is to use some of the old text to voice features of squeak and have the computer yell at you when it's ready...  That should work on all platforms that support sound.
> >>
> >> More subtle and complex would be to use Alien/FFI and talk to the operating system's notification/alert API.
> >>
> >> On 2010-08-03, at 12:51 AM, Max Leske wrote:
> >>
> >>> Hi folks
> >>>
> >>> The project I'm currently working on requires that I have to wait frequently for computations / operations to complete. To control the status I used progress bars wherever possible. Now, since the operations might take several minutes I like to sometimes switch to another Desktop, maybe read an e-mail or an article.
> >>> I'd find it rather useful if the OS would notify me that the VM needs my attention as soon as the operations have completed or if there was an error during execution, so that I don't have to go and check every 30 seconds. Is there an existing way to do this? If not, I'd like to propose this as a feature for a future release (although I don't have an inkling how one would accomplish this...).
> >>>
> >>> Cheers,
> >>> Max
> >>> _______________________________________________
> >>> Pharo-project mailing list
> >>> [hidden email]
> >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >>
> >> --
> >> ===========================================================================
> >> John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
> >> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> >> ===========================================================================
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Pharo-project mailing list
> >> [hidden email]
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > [hidden email]
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
Miguel Cobá
http://miguel.leugim.com.mx


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project