You are in an interview, and the question is:
Write a program to print the prime factors of 18
if you don’t write:
System.out.println("2, 3, 3");
but instead write a prime factoriser for N, then -1 productivity point.
You are in an interview, and the question is:
Write a program to print the prime factors of 18
if you don’t write:
System.out.println("2, 3, 3");
but instead write a prime factoriser for N, then -1 productivity point.
Am I the only one who doesn’t understand the new iPhone iOS4 Multitasking feature? I gather certain apps may require the facility to do background execution (task completion), get location updates and deliver audio. In the olden days home-buttoning an app closed it, or apparently closed it since it seemed to be gone. I didn’t actually care about the implementation (whether the app was actually closed) since the effect was clear. Apps that might have wanted to continue to do stuff were denied that privilege, and it was clear that if I closed an app that was busy working away it would die.
Now, when I home-button an app it is totally unclear what that means. If I home-button Mail, it seems to resume where it was before (which it always did). If I home-button Safari I gather it is suspended and allowed to continue running certain tasks. But if I home-button the calculator, what does that mean?
Double-tapping the home button seems to bring up a list of all the programs that I have recently used, with no indication as to the meaning of the list. They can be removed from the list by holding down on one, and then pressing the red minus. I have a list of apps sitting there that doesn’t *seem* to mean anything. It is totally unclear what that list represents. What on earth is the Clock app doing down there? What does it mean if I close it? What is the meaning of the calculator icon down there? Should I close that? Is it using memory? Surely it makes absolutely no difference whether I close it or not, since it remembers the result of the last calculation anyway? If it makes no difference, why am I given the choice? Is this supposed to be a list of recently-used apps, then? If so what is the point in that – it takes longer to go and see if the app is in there than it does to find the original app from where it belongs!
People look for common functionality between things they are used to. When something is presented to a user that is very much like something they are used to, the concepts will converge in their mind. To save time repeating old learning they will naturally assume it is much the same metaphor/functionality as that other thing. It is quite hard to understand a new concept if it is apparently similar to an old one but functionally different. We are used to closing Microsoft Outlook when we are done with it, and having it sit at the bottom right when it is just quietly waiting for email. How does this map to the multi-tasking on the iPhone? Do I have to close apps with the little red minus sign when I no longer want to hear from them? How can I tell the apps for which multitasking has meaning, and which just hang around in the tray?
Finally, how do I get back my double-tap ‘phone shortcut? When I need the actual phone function (remember that?) in a hurry (to call someone walking away from me rather than running after them… to call the police?) it takes quite a lot of time to bring it up, and lots more time waiting for animations to complete that kick off when I double-tap rather than triple-tap-double-hop and skip. Ugh.
public class LazyFactory { private Object oUnsafe; private Object oSync; public Object get() { Object o = this.oUnsafe; if (o == null) { Object notNull = crateNewIfNeeded(); oUnsafe = notNull; return notNull; } else { return o; } } synchronized Object crateNewIfNeeded() { if (oSync == null) { oSync = getExpensiveNewInstance(); } return oSync; } /** Don't call this too often! */ Object getExpensiveNewInstance() { try { Thread.sleep(500); } catch (InterruptedException ignored) {} return new Object(); } }
Unless I’ve done something stupid:
Marilyn Monroe (Marilyn) – 1967 (hot pink) by Andy Warhol
This exceptional 70cm x 65cm fine art print on high quality paper, is brand new and in mint condition. Marilyn Monroe (Marilyn) – 1967 (hot pink) by Andy Warhol is truly stunning and we want to make sure you receive it that way. Your print is carefully hand-rolled, wrapped in protective paper and placed in a rigid postal tube to provide maximum protection.

FLOWER OF THE FOREST by ZENA MEYLER, UK edition paperback published 1996 by Grafton in verygood condition with slight edge wear a massive 523pp. This book is the epic story of young people caught up in the nightmare of World War I, of the love they share-and the dreams of peace that enable them to endure….
Impressive pair of fighting cockerels: A pair of wooden coloured wood effect cockerels very cottage chic, made from a heavy resin to resemble drift wood, hand finished, hard wearing and suitable for the warmer months outdoors as well as living indoors… They make lovely garden ornaments and are very proud cockerels
Ones that didnt get answered:
you are bidin for a porcillin money box in good condition

Happy Birthday Phillums!

Worst offender: Barclays iBank online banking. Using the back button logs you out. Bastards.
I thank you.
In the beginning God created the heavens and the earth.
Proved. Brilliant.
Give, and it shall be given to you. For whatever measure you deal out to others, it will be dealt to you in return.
‘xcept if you’re Jesus.
The end.