6,040 reputation
12432
bio website hewgill.com
location Auckland, New Zealand
age 44
visits member for 3 years, 7 months
seen 17 hours ago

Software geek.

Twitter: @ghewgill


2d
comment Ipad Application-Allowing Users to have certain abilities
So when you say it is "not working", can you give more specific details than that? We obviously don't have access to your development environment, so you'll have to explain what is happening and where it goes wrong.
2d
revised Ipad Application-Allowing Users to have certain abilities
formatting
Apr
14
comment How should I generate source code from an XML spec?
XSLT can do arithmetic. And even if XSLT couldn't, you could simply let the compiler do it by generating constant expressions.
Apr
14
comment Evaluation order of expressions in Clojure?
The problem with this answer is that in general, Clojure does not do lazy evaluation (unlike say, Haskell, where everything is lazy). The apparent lazy evaluation in the example above is a result of the lazy generation semantics of the Clojure seq interface.
Apr
12
comment How to test JavaScript execution time?
This shouldn't be difficult - take the time at the start, the time at the end, and subtract them. Use new Date() to get the current time.
Apr
10
comment Search for the (slowly moving) number with penalty for too high test value
I was curious about this (seemingly sensible) idea, so I ran a simulation. See my answer for some simulation data.
Apr
10
answered Search for the (slowly moving) number with penalty for too high test value
Apr
10
comment how to design a stack without using java library or using list
This implementation is a singly linked list, but the original question asked about implementing a stack without using a list.
Apr
9
awarded  Nice Answer
Apr
8
answered how to design a stack without using java library or using list
Apr
8
comment Is a popular site like www.google.com served up by one computer?
You may be interested in the beginnings of Google, when it really did run on one computer: royal.pingdom.com/2009/03/02/…
Apr
7
answered Common interview: flexibility on code test?
Apr
7
comment I'm having a type mismatch problem not sure how to fix it
Why do you need to return anything at all from the repeat() method? Just make it void, since you're not using the return value.
Apr
6
comment Speeds of << >> multiplication and division
It might be clearer to pair << 2 with * 4 and >> 2 with / 4 to keep the shift directions the same within each example.
Apr
5
comment Why is Java 7's new file API usage still so scarce?
"out basically since the dawn of 2012" - you say that as if it was a long time ago. Java was first released in 1996, nearly 18 years ago. I remember when it was released, we were experimenting with Java at work to see if it would suit our needs (it didn't). I still think of Java as a new programming language. So, a new API that was released just two years ago is still considered by most programmers to be extremely new.
Apr
2
comment how are virtual methods slower in C#
This question has been asked many times before: google.com/search?q=virtual+slower+c%23+site:stackoverflow.com
Apr
1
comment Is there any other way to run .exe from Java?
Yes, you said that. But it is still possible to write a program incorrectly in such a way that it works from the command line but doesn't when called from another process.
Apr
1
comment Is there any other way to run .exe from Java?
If you're having problems with subprocesses producing blank files, ask about that problem rather than looking for yet another way to call your code from Java. Maybe the bug is in your C++ code (when running without an attached terminal, for instance).
Mar
30
comment Hosting across multiple servers
This seems perfectly on topic for me, being a question about "software architecture". Distributed application development concerns are certainly a software engineering problem.
Mar
29
answered Web Services exposed by url