We are just moving to Maven, and I understand there is a world of different plugins & extensions. Which are the best ones you recommend for general usage?
(On plugin per answer please)
R(x) is a red block
B(x) is a blue block
T(x,y) block x is on top of block y
Question:
Write a formula asserting that if no red block is on top of a red block then no red block is on top of itself.
My answer:
(Ax)(Ay)(R(x) and R(y) - ~T(x,y))-(Ax)(R(x)- ~T(x,x))
A = For all
I want to build a custom document management web application that ties in with sharepoint for the actual document versioning and storage. I'm hoping for something like a sharepoint widget that I can plug into my web application that would allow me to tie in with sharepoint and download documents, make edits to them, and upload them back to sharepoint, with sharepoint handling all of the versioning and storage.
If WSS is the answer to this, are there licensing issues that I need to consider?
Thanks.
how to send message from c# .net
i search many time and one answer i found is that "soap" i tried my best but i can not find any web service that allow me to send free sms in india.
please help me?
Summary: Failed unit tests tell me which assert (file:line) failed, but not which validation resulted in the failure.
More info: I have 11 validations in one of my models. Unit testing is great, whether I run `rake test:units --trace' or 'ruby -Itest test/unit/mymodel_test.rb'. However, despite the fact that it tells me exactly which assert() failed me, I am not told which validation failed. I must be missing something obvious, because I can't ask Google this question well enough to get an answer.
Thanks :)
Hello, I received an answer to one of my questions here. The answerer said:
"However if you intend to use it w/
App Engine keep in my mind that using
Google IP will almost surely result w/
Captcha challenge. Also Yahoo might
block your User-Agent that is being
set permanently by Google."
I don't understand what "w/" means in "w/ App Engine" and in "w/ Captcha challenge"
i use splitview controller in my ipad application,it works ok,but sometimes when i change interface from landscape to potrait it disappear bar button and popovercontroller from the toolbar.
plz answer if anyone know about this problem.
How would i write a program, using the replace method, that rotates the vowels in a word? meaning the letter 'a' would be 'e', 'e' would be 'i', 'i' would be 'o', 'o' would be 'u', and finally 'u' would be 'a'.
For example, the word "instructor" would be "onstractur".
I hope someone can answer my problem.
Hi,
Here are my few questions
Can anyone explain what are the LINQ, Lambda, Anonymous Methods, Delegates meant?
How these 3 are different for each other?
Was one replaceable for another?
I didn't get any concrete answer when i did Googling
i found out erubis, the "fast, secure, and very extensible implementation of eRuby",
now after install through gem install erubis, my question is how to run in on mac?
especially on mamp?
i been no luck finding answer on google so anyone know how?
I'm getting crashes due to memory overwrites (possibly within STLport) running on Darwin. Totally out of ideas, what to do?
(Added this question so no-one else would run into the same trap without finding a viable answer.)
Is there a good site to use where I can find odd jobs for programming?
I am talking about a bit of HTML here, some C# there - small apps and so on.
"Nugget work", if you will!
Edit: Made it a community wiki because I don't feel there will be one super-right answer, there might be a bunch of good options suggested
I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.
I know this shouldn't be that hard, but I couldn't find the answer on Google.
I want to execute a piece of javascript that will clear the focus from whatever element it is on without knowing ahead of time which element the focus is on. It has to work on firefox 2 as well as more modern browsers.
Is there a good way to do this?
This great SO answer points to a good sparse solver, but I've got constraints on x (for Ax = b) such that each element in x is >=0 an <=N. The first thing which comes to mind is an QP solver for large sparse matrices.
Also, A is huge (around 2e6x2e6) but very sparse with <=4 elements per row.
Any ideas/recommendations? I'm looking for something like MATLAB's lsqlin but with huge sparse matrices.
Hi,
I'm trying to learn how to do proper wpf application and now I have a big trouble. I know how I would do this if I had to do it with Windows Forms, but I don't know how to modify it to fit with wpf. Would someone know the answer? Here is my code for Windows Forms Form_loaded event:
foreach (Control ctrl in this.Controls)
{
if (ctrl is TextBox)
{
ctrl.Text = "";
}
}
To commemorate the public launch of Stack Overflow, what's the shortest code to cause a stack overflow? Any language welcome.
ETA: Just to be clear on this question, seeing as I'm an occasional Scheme user: tail-call "recursion" is really iteration, and any solution which can be converted to an iterative solution relatively trivially by a decent compiler won't be counted. :-P
ETA2: I've now selected a “best answer”; see this post for rationale. Thanks to everyone who contributed! :-)
Hi all,
I came across this interesting website, with an idea of a way to visualize a clustering algorithm called "Clustergram":
I am not sure how useful this really is, but in order to play with it I would like to reproduce it with R, but am not sure how to go about doing it.
How would you create a line for each item so it would stay consistent throughout the different number of clusters?
Here is an example code/data to play with for potential answer:
hc <- hclust(dist(USArrests), "ave")
plot(hc)
If I understand correctly, the typical mechanism for Dependency Injection is to inject either through a class' constructor or through a public property (member) of the class.
This exposes the dependency being injected and violates the OOP principle of encapsulation.
Am I correct in identifying this tradeoff? How do you deal with this issue?
Please also see my answer to my own question below.
In .NET what is the best way to find the length of an integer in characters if it was represented as a string?
e.g.
1 = 1 character
10 = 2 characters
99 = 2 characters
100 = 3 characters
1000 = 4 characters
The obvious answer is to convert the int to a string and get its length but I want the best performance possible without the overhead of creating a new string.
Hi, I want to get a thumbnail image for videos from Vimeo.
When getting images from Youtube I just do like this:
http://img.youtube.com/vi/HwP5NG-3e8I/2.jpg
Any idea how to do for Vimeo?
Here is same question, without any answer.
I'd like to use the UIView "sucking" transition (view is "sucked" into a point) referenced here:
http://iphonedevwiki.net/index.php/UIViewAnimationState#Using_suckEffect
The method above, however, uses private APIs, which makes it next to useless for an App Store app. How can I recreate a similar effect without relying on private APIs? I'm guessing the answer has to do with OpenGL, although I have zero experience there.
Hi everyone,
My problems is in a Struts2 action, where
I have a class :
public class MyAction<T> extends ActionSupport
with a private member like this :
private T myData;
And I would like to declare this aciton in the struts.xml file,
how can i manage to do so ?
Thanks for the answer.
Ps : I've tried without declaration of T, but it did not work
I know this isn't strictly program related, but I think I've seen this answer on SO before and lost track of it.
The specific question has to do with reading an electronic document. I find it helpful to move the cursor across the words as I'm reading them. This works great with Word documents, but I'm unable to do it with web pages. Is there a way to make a web page see and respond to cursor movement?
Should we be testing values that we already know the answer to?
If a value is important enough to be a dedicated hard code value then should should it be important enough of to change a test at the same time as the value? or is this just overkill?!