I am preparing for my interview tomorrow -- I need the answer to this question:
How can you print 1 to 10 & 10 to 1 by using recursion with single variable
I'm doing some large integer computing, and I need to raise a BigInteger to the power of another BigInteger. The .pow() method does what I want, but takes an int value as an argument. The .modPow method takes a BigInteger as an argument, but I do not want an answer congruent to the value I'm trying to compute.
My BigInteger exponent is too large to be represented as an int, can someone suggest a way to work around this limitation?
Using Jeff's blog post I'm creating domain keys for my account. I wanted to verify the setup using Get or Host command with Bind for Windows but I'm lost one of the commands. I can see view the _domainkey. txt file with this command:
host -t txt _domainkey.stackoverflow.com
but I'm at a loss at how I'd find the selector record. Jeff points out it can be anything before the before the period in "._domainkey.domain.com" but how would I list all records if I didn't know the exact query name? Is there a wildcard I could use to view all TXT or all records under this section?
This subject is pretty often asked here and the Sun tutorial is too concise about the subject. So I thought, let's post a CW question and answer about this so that it can if necessary be referenced in other topics.
Others are of course free to add more hints and best practices here.
I'm looking for a Java class with the characteristics of C++ std::map's usual implementation (as I understand it, a self-balancing binary search tree):
O(log n) performance for insertion/removal/search
Each element is composed of a unique key and a mapped value
Keys follow a strict weak ordering
I'm looking for implementations with open source or design documents; I'll probably end up rolling my own support for primitive keys/values.
This question's style is similar to: Java equivalent of std::deque, whose answer was "ArrayDeque from Primitive Collections for Java".
I mostly want to hear peoples thoughts. This is more like a poll then anything else. Please do not answer if you don't mind it or fairly like or dislike it. I am wondering if it became a solution for anyone or made one easier.
I'm not sure if this is a stackoverflow question or serverfault but here goes:
I have an Ubuntu 10.04 file server (Samba/FTP/HTTP) and I would like to have the ability to give users the ability to change their password to the server using their web browser.
I've written a similar script before using PHP and a mess of exec but I believe that isn't secure because it can be listened to by someone looking at the list of processes on the server.
Is there some kind of plugin (PHP or Python or other) that can do this easily?
I rather not use something like webmin as it's overkill for this.
I needed to remove the gap between the buttons while creating a skin using Devexpress skin editor. I couldn't find such an option. Then I thought it can be done by code but I couldn't find an answer, even using the Windows API.
Hello,
I have a very basic knowledge of the web programming, and I couldn't figure out the answer to this question.
Typically, a cookie is used to identify a session in web applications. However, as far as I know, multiple browser windows share cookies. In that case, how does web applications distinguish between the tabs?
Besides making an HTML5 app (which may very well be the answer to this question), are there any other languages I can develop in for android besides Java?
Which in C# compiled for x64 is faster?
a. int * int;
b. if(int < 0) int = -int;
c. Math.Abs(int)
I need pure theoretical answer. Please do not tell me to write loop and measure it with stopwatch.
Thanks
Not sure if this question is more appropriate for ServerFault or StackOverflow, sorry if it should belong elsewhere!
I am working on an application and one of the function is to automatically send an email with an attachment. I can code the application to attach the object when it resides on local or on a mapped drive.
Newbie Question: Is there a way to have the object reside on the Domino server, and still be able to point to it and have the application automatically attach and send? Is there any method that allows me to do this?
Users have no direct access to the server/filesystem, so mapped drive of the Domino server is out of the question.
Hope someone can shed some light on this question. Thanks!
I know there's no real right or wrong answer. I'd just like to hear from CSS developers how you like to order your properties and what is your reasoning behind your preference.
Thank you very much.
I'm not a usability specialist, and I really don't care to be one.
I just want a small set of rules of thumb that I can follow while coding my User Interfaces so that my product has decent usability.
At first I thought that this question would be easy to answer "Use your common sense", but if it's so common among us developers we wouldn't, as a group, have a reputation for our horrible interfaces.
Any Suggestions?
hi,
i want to display the pop ups in asp.net page like how the stack over flow show the pop ups on the top of the site (you get the new answer for the question like that in a orange color) how can i write the code is there any free source code or any reference. thank you
Hi guys
Not sure if anyone has used aadvark but it has a very nice integration with Gtalk.
If you have signed up on aadvark - when any question is posted in your area of expertise - there will be nice pop-up in ur gtalk window asking if you are interested in answering - if you say Yes - it will ask you the question and you can answer in that window itself.
Is that something they are able to do because Google bought them or does google have an API with which we can integrate it with our application to do something similar.
Thanks
Hi all this XML file is very unique with SVG tags, I am stuck in writing an XSL-fo for this xml file, can one help me out in writing a XSL FO, if not the exact answer, atleast give me a idea of how to write, please see the xml file in the below link.
http://kzekaa.bay.livefilestore.com/y1pDRDfrEn98IkEO7MQ9MEkC-RQE4QxwsrgVV57WrGWK_AEsqzpwJWkydbnE3NVwrMNT2l9mIG7rErd_NPO94Fmrhrm2Z_zleID/Cleaned_file_source.xml
I recently heard this was used as an interview question. I suspect there is a very simple answer; I must be over-thinking it.
Can you write Hello World in C without
using any semi-colons? If so, how?
Hi all,
This seems like a straightforward google search answer, but after a while, I still can't be 100% sure of this. I've found Z2Live (http://www.z2live.com/), which is basically a layer above GameKit and they too use only P2P with Bluetooth. So I just want to be sure if I can only have P2P with Bluetooth or if I can have like 4 iPhones all connected to a server (who will also be a client) using Bluetooth. Thanks in advance.
How can I draw anything in lwjgl using VBOs? When I follow the tutorial, it just breaks. I've also tried running this example (with the byteorder fix) but it just displays a blank window.
SO hasn't been helpful to me yet, but this is the last place I can think of that might have an answer...
Hello!
I have a byte array, as follows:
byte[] array = new byte[] { 0xAB, 0x7B, 0xF0, 0xEA, 0x04, 0x2E, 0xF3, 0xA9};
The task is to find the quantity of occurrences '0xA' in it.
Could you advise what to do? The answer is 6.
What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered?
Please only one feature per answer.
Quoted from this answer:
Cost of tools: JavaME would be
cheapest, followed by Symbian, Android
then iPhone.
I want to get started with mobile phone programing,but I don't see where Symbian does cost, as its SDK is available for free.
Anyone knows?
BTW,many people say Symbian only supports Symbian C++, but after reading its document, it seems it also support Java, is this feature newly added?
Hi
I had posted this question before but i did not get the answer
Proper(i think people did not get my question ) so i am posting
it now.
I capture a image from windows mobile camera and save it on
picturebox control..now to zoom the picture i am increasing
its size by Onpaint event.The image is getting zoomed but
i am not able to save the zoomed image(ie.., the increased
image size)...
Please let me know
Thanks In Advance
For my answer in this question I have to compare two characters. I thought that the normal char.CompareTo() method would allow me to specify a CultureInfo, but that's not the case.
So my question is: How can I compare two characters and specify a CultureInfo for the comparison?