EVERYTHING

EVERYTHING

• All Sites

## How to add MIME type to POST request Java?

There is the following code: public static void uploadUserpick(File file) throws URISyntaxException, ClientProtocolException, IOException { HttpClient httpclient = new DefaultHttpClient(); …

19 secs ago

## Javascript capitalize first letter of each word in a string only if lengh > 2

I looked at some questions and answers about capitalize in StackOverflow but could not find answer about my problem. I would like to capitalize first letter of each word in a string only if word ...

23 secs ago

## How can I disable an anchor href with target _blank?

I have this HTML line: <a href="<%url%>" target="_blank">link</a> Where <%url%> is a token I have to replace with a value that produces the click to do absolutely nothing. Note …

24 secs ago

## What movies or TV series can I use to improve my French?

Watching movies or TV series are very helpful in learning a language. What such movies or series (french ones, of course) is recommended for a new learner? This is what I experienced in learning ...

## WebDriverWait for an element attribute to change

How can I use WebDriverWait to wait until an attribute changes? In my AUT I have to wait for a button to become enabled before continuing, unfortunately due to the way the developer coded the page I …

## RSA algorithm: How to enter the multiplicative inverse to wolframalpha?

I try to enter step 5: Compute d, the modular multiplicative inverse of e (mod φ(n)). How do I enter this in wolframalpha? http://en.wikipedia.org/wiki/RSA_%28algorithm%29#A_working_example

30 secs ago

## delete pointer after return value

hello I have the following functions: Block* Keywords::parseBlock(TiXmlElement* element) { double x1 = atoi(element->Attribute("left")); double y1 = atoi(element->Attribute("top")); …

33 secs ago

## SharePoint 2013 Permissions & Active Directory Synchronization

I am running into quite an annoying issue with SharePoint & AD Sync. Basically, SharePoint isn’t recognizing certain users inside the AD groups that I have created and it’s giving them the “Sorry …

## Need some help writing an if statement in UNIX bash scripting

I'm writing a reasonably lengthy script (or what I would consider lengthy - you could probably do it in a few hours). I basically have a file (named .restore.info) which contains files of names. In …

38 secs ago

## Fixed effects have df=0 and chi-sq=0 when tested using anova()

I have a made a linear mixed model using lmer(). I began with a maximal model containing 6 terms and all two-way interactions (15 total), I also have a random effect of Subject ID . Of these terms 11 …

## Cannot delete “hidden” table in word 2013

I have a large document that was originally created in word 2010, and having been editing it for some time in 2013 (on windows 8). I recently moved a table by selecting it, cutting and then pasting …

## How to get current value from ReactiveCocoa signal?

I have signal returning NSNumbers: RACSignal *signal = .... than in some place of code I want to get value of signal in the moment of execution, something like : NSNumber *value = [code that ...

## mex linker not finding mexFunction symbol

Up until recently I've been able to compile mex functions fine on my mac osx 10.8.4 but now it gives me the error as follows (for convenience I have included the entire -v invocation): ...

1 min ago

## Forecast country sales performance based on a subset of areas

It is probably an old and simple problem but I do not have a statistical background and I do not know even how to approach it. The problem is: Given a number of geographical areas in a country (eg: …

1 min ago

## How can I automatically copy files to a USB drive when I connect it to my computer?

I am looking for a solution for copying all the files from a specific directory on the hard drive, to a specific directory on a USB memory device, once this device is connected. I have a program that …

1 min ago

## Java .wav into complex series

General question to help others Hello, I'm trying to turn a .wav file into its complex series of the real and imaginary parts of its waveform in Java. How do I do this in Java? More specific ...

## Syncing remote fork with remote master

The master is in the form of http://github.company.com/ourorg/ourproject.git I have created a FORK from it by clicking on the Fork button and my FORK looks like this: ...

1 min ago

## Google Guava TreeMultimap — retrieve values based on sorted ordering?

So I'm trying to implement something that requires sorting of values of a Quantity> map, such as: <San Francisco -> 10, Seattle -> 20, LA -> 10}. The values are not necessarily ...

1 min ago

## Can not build GTK+ Windows application on Fedora Eclipse

I try to build a very simple application for Windows x86 on Fedora x64 Eclipse with MinGW. Application compiles good, however, it can not link. My link command follows: i686-w64-mingw32-g++ ...

## cannot execute binary file - Execlp

I am not able to execute binary from execlp. chdir("/home/foo/bar/baz/MB/"); execlp("bash","bash","./foobarbaz 1", NULL); foobarbaz is my c file and I get the following error: ./foobarbaz: cannot …

1 min ago

## Is data binding faster than modifying the properties of subcontrols manually?

So i have several subcontrols that need to take the value of the parent controls dependency property. Is binding the value to the dependency property of the parent going to be faster than just ...

1 min ago

## Is one using-statement enough for all variables pointing to one IDisposable?

Such as so: Creating it in a method and assigning it to a field. Passing that field to a method and then assigning it to a variable of a using-statement (Which is the only Dispose being called). ...