Showing posts with label background. Show all posts
Showing posts with label background. Show all posts

Thursday, May 31, 2012

Linux: Prevent a background process from being stopped after closing SSH client


I'm working on a linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file. To my surprise, that doesn't work. As soon as I close the Putty window, the process is stopped.

Monday, April 16, 2012

Dismissing UIAlertViews when entering background state


Apple recommends dismissing any UIAlertViews/UIActionSheets when entering background state in iOS 4. This is to avoid any confusion on the user's part when he relaunches the application later. I wonder how I could elegantly dismiss all UIAlertViews at once, without retaining a reference to it everytime I set one up...

Entering background on iOS4 to play audio


The documentation is rather poorly written when talking about playing audio in the background. It gives the impression that all you have to do to continue playing the audio that you are currently playing is to just add a key/value pair to the info.plist file and wallah, it's magic.

Sunday, April 8, 2012

Thursday, March 8, 2012

Cocos2d adding a background image to a layer?


I just finished reading some of the cocos2d documentation, and as far as I understand to add a background image to a layer you have to do something like:

Thursday, February 16, 2012

Android - Running heavy computations in background and returning the result to an Activity


I have implemented some computationaly heavy functions into my application. Depending on the type of input it can take up to several minutes for a thread to return. During this time, I want the user to be able to work with other activities to perform different tasks (i.e. prepare data for the next run). Then, after the Service has finished it's computations, the user should be notified with a Toast that the result is ready and that he should check back to the Activity he started the Service in. Unfortunately I'm stuck at this point.

Wednesday, January 18, 2012

Custom "animate” jQuery function. How to reset step"s "now” variable?


I need to animate the background-position property of an element with jQuery. By following this tutorial, that uses default jQuery animate function, I had no luck.