Is this phrase right? - localization

I'm developing an application in English, but I'm not a native English speaker. The following message will appear when my program is processing so users have to wait until the process ends.
"now processing..don't terminate this program"
I don't know if the phrase is used the right way in English. Can anyone help?
Thanks.

I've always been a fan of "Processing, please wait".
A progress bar or some other visual indicator can also help ensure your users wait while giving them something to look at while they are waiting.

Related

How to make a sound when visiting a certain website (Mac)?

I am trying to think of a creative way to break my Youtube addiction.
How would I create an annoying sound when I visit youtoube.com? I was trying to do this with Applescript, but I got nowhere, so I'm seeing if the internet can help. I mainly just need some way that I can be constantly checking my current website (Safari and/or Chrome) and trigger an event when I am on Youtube. I know how to play my sound, but not the site-checking portion. Preferably I could make this on Automator.
I know there are better ways to break a habit, but I really want to do it this way. I really hope someone can help. Thanks in advance!
I would assert with confidence that this cannot be done. By this, I mean there is no method nor implementation in AppleScript to do this sort of thing efficiently, safely, wisely or in any practical, useful, or usable way.
This includes:
Any script involving an infinite repeat loop, particularly one with no code allowing a user to break out of it;
Any implementation that utilises polling;
And especially any script that polls at a faster rate than the time it would take for the thing being polled to undergo a change in state.
This will make an annoying noise if the front tab of either Chrome or Safari is on a URL containing the word "youtube".
** edit ** to make this work in automator:
Click Actions in the top-left corner of the Automator window, then select Utilities in the Library.
Choose 'Run AppleScript'
Paste the code into the code editor box
(replace all code in the entry box)
on run
set check to "youtube"
repeat
try
tell application "Safari"
set theURLs to URL of current tab of window 1
end tell
end try
try
tell application "Google Chrome"
set theURLc to URL of active tab of front window
end tell
end try
if check is in theURLs then
tell application "System Events"
beep
end tell
end if
if check is in theURLc then
tell application "System Events"
beep
end tell
end if
end repeat
end run

Thread that work in background of project until the end of program

I need to write a thread that do work in background of project.
when should I create it and where , for example in AppDelegate or others?
if I want to run thread when user do a job,for example when click on a button run a thread that work in background until the end of program,for this what should I do?
In iOS, a program never ends unless it crashes or the user turns their phone off. So running "until the end of program" is a very, very long time. Users will not thank you for emptying their battery.
It is most likely that what you are asking for is by far not the best possible solution, and will be rejected if you want to put your app into the app store. You should really explain what it is that you are actually trying to achieve.
In case you just posted the wrong question, the answer is "use GCD". If you don't know what GCD is, Google and Apple's documentation are your friend.

Executing tasks while app is active and in background

I need to scan a website for changes every few minutes and when difference occurs i need inform user with popout window that contains information about that change.
Problem is i can't find solution to that, i tried putting that code in applicationDidEnterBackground but it didnt work. I'm new to swift and mobile programming at all so please be understanding.
Where should i begin? Little tip maybe.
Thank you!

iOS7 - CMStepCounter Class Issues

does anyone know if it would be possible to call the CMStepUpdateHandler block without waiting for the quoted number of steps?
The reason I want this, is that if the user starts the startStepCountingUpdatesToQueue:updateOn:withHandler: and suspends the app, only to reopen AFTER they have finished walking, the step count will not update as it is necessary to then walk the quoted number of steps with the app in the foreground before the steps are displayed.
Any help greatly appreciated.
PS, see here for documentation... https://developer.apple.com/LIBRARY/IOS/documentation/CoreMotion/Reference/CMStepCounter_class/Reference/Reference.html
Having researched this, it seems the behaviour above is default, and so opted to use the CMStepCounter query option.

Instant Messaging With Priority For Developer Communication

My team communicates a lot with IM. We'll sometimes use IM to ask a question even to someone who's in the next cube over. The reason for this is that we all find that answering an IM is much less disrupting than talking.
Still, I find that the blinking message window can be disrupting when I'm heads down coding. I can't help but look at what people have written and it often keeps me from finishing my thought. This type of multitasking is a productivity killer. I've therefore turned off the alert feature (I'm using Pidgin). My Windows task bar is hidden so I need to drag my cursor to the bottom of the screen, let the task bar pop up, and look if the pidgin tray icon is flashing orange to find out about new messages.
This works well except that sometimes people have a quick question to ask for which they need a quick answer.
It would be great to have the ability to send priorities on messages:
Priority 3: Check this out when you can
Priority 2: Normal chat
Priority 1: Please reply quickly
The priority level would then be used to determine the alert method. E.g. (1)Give focus to window, (2)blink in task bar, (3)blink in tray.
Any ideas on an easy way of accomplishing this?
Thanks
We use e-mail or internal twitter for your Priority 3.
We use IM for Priority 2.
We use walking over to someone's desk for Priority 1.
Edit: I'm sorry I didn't realize you were asking an implementation question. If you didn't want to institute new policies/standards for methods of contact (ala introducing an internal twitter or the like), you would need to standardize everyone in the office on the same IM application/protocol. And then you'd need to modify one. Trying to add something into the jabber spec (if it doesn't have it, I don't know) would be tedious and not worth the effort.
If you really wanted to pursue that route, you would probably be better off moving to IRC and using scripts to alert you if people talk to you while preceding their message with a pound! or something similar.
I think that as soon as you introduce a "priority message" function, all messages will start to be high priority. Human nature. I just set my status to "busy" and don't reply to messages that come in when i'm "busy" unless it is important. People get the point quickly.
While I agree with the statement that being able to make certain messages a higher priority will result in ALL messages being high-priority, you can always just shut off the IM, and then people will have to actually talk to you. If they are on your team, they should know when you are heads-down, and take some personal responsibility in making the decision to disrupt you.
I do roughly the same thing that Codingscape does - I set my status to Away. Many clients will display an 'away text' message when your status changes, so I just use "I'm very busy" or a similar message.

Resources