## How to create a registry that allows the Silverlig

Question:I need to know how can I create a registry that allow the Silverlight applications access to camera and mic.Scenario:I have a Silverlight application that start the WebCam, before it works it shows a Silverlight dialog asking if the user allows t

## Unable to register DLL using Regsv32 - error “Dll

Question:I have written my own class library using C# 3.5. For using this dll in classic ASP application, I am trying to register this dll in Registry using regsvr32 command. But I am getting typical error like "The module "TestDll.dll" was loaded but

## Google maps api search returns unexpected results

Question:Using the example code at: https://developers.google.com/maps/documentation/javascript/examples/places-searchboxI find that when I type: DePaul Universityand then choose the third one: DePaul University, North Kenmore Avenue, Chicago, IL, United

## How to get perpendicular vectors given a line segm

Question:How to get point A, B , C, and D?if AB and CD are perpendicular to p0p1.Assume p0A, p0B, p1C, and p1D have normalized lengthAnswer1:The direction of the line is given by d = normalize(p1 - p0). To calculate a perpendicular vector we can use the c

## How to query row with lowest value, and also to kn

Question:Consider these two queries:SELECT *, 'b' AS b FROM someTable ORDER BY a ASC LIMIT 1;SELECT *, MAX(a) AS maxA FROM someTable ORDER BY a ASC LIMIT 1;The former query returns the row with the lowest value of a, as expected. The latter query

## using pi and e constants from Z3 API

Question:How does one use trigonometric functions like sin and cos and the constant Pi from the Z3 java API?If I use the java API like so: Solver s = context.getSolver() s.add(z3.parseSMTLIB2String( "(declare-fun theta () Real)\n"+

## ASP.NET: The breakpoint will not currently be hit.

Question:I was having this issue for several days. I finally figured out a fix for ASP.NET programmers, and I figured I would share.ProblemAfter setting a breakpoint, and then debugging my breakpoint would turn yellow with an exclamation point. When hover

## Any refinerycms compatibale version with devise &#

Question:Guys i'm not an expert just a beginner i'm working on a rails project(rails 3.2.8) i want to integrate refinery with this existing project but the problem is when i writegem 'refinerycms', '~> 2.0.8' and run bundle update it gives an error

## Check if a given path is a special folder path?

Question:On Windows, one can get any special folder path using SHGetKnownFolderPath or SHGetSpecialFolder (If I remember correctly this last one). However, I want the reverse, I have a path and want to know which special folder it belongs to, if any. I pr

## How instantiate a concrete class in init binder?

Question:I have to bind an abstract class to my controller request handler method.Before I instantiate the concrete class with @ModelAttribute annotated method:@ModelAttribute("obj")public AbstractObh getObj(final HttpServletRequest request){ return

## using pi and e constants from Z3 API

Question:How does one use trigonometric functions like sin and cos and the constant Pi from the Z3 java API?If I use the java API like so: Solver s = context.getSolver() s.add(z3.parseSMTLIB2String( "(declare-fun theta () Real)\n"+

## Remove duplicates in vector to next value

Question:I have a vector consisting of integers which can take a finite number of values. Consider the case where the values is 0,1,2.a<-c(0,0,0,1,1,0,0,2,2,2)I want to delete replicates of values until the next differnet value. After doing this the resul

## Deleting JS Object Properties a few levels deep

Question:I have an object like this:var myObj = { first: { sub: { level: "some text", level2: "some more text" }, sub2: { level3: "Something" } }, second: { stuff: "More s

Question:Full disclosure: this issue is duplicated on the ggplot2 google groupI'm developing a package that makes heavy use of ggplot2. I've created my own geom—geom_rug_alt—as a way of putting rug fringes on the top/right of the plot instead of the def

## Unable to register DLL using Regsv32 - error “Dll

Question:I have written my own class library using C# 3.5. For using this dll in classic ASP application, I am trying to register this dll in Registry using regsvr32 command. But I am getting typical error like "The module "TestDll.dll" was loaded but

## How to get perpendicular vectors given a line segm

Question:How to get point A, B , C, and D?if AB and CD are perpendicular to p0p1.Assume p0A, p0B, p1C, and p1D have normalized lengthAnswer1:The direction of the line is given by d = normalize(p1 - p0). To calculate a perpendicular vector we can use the c

## VBA userform toolbox additional controls dialogue window not showing

While using MS Excel (Outlook, Word, or Power Point as well apparently) and using VBA, I create a userform. The toolbox shows up showing controls tab and 16 icons representing various controls. When I right click in some empty space in th

## iPhone UIImagePicker Camera in Landscape Orientation

Is there any good way to set UIImagePicker to landscape orientation? I tried to call setStatusBarOrientation after presentModalViewController like following, [self presentModalViewController:picker animated:YES];[[UIApplication sharedApplic

## Eclipse RCP: build.properties for multiple platforms

I'm developing an Eclipse RCP application. The application should run on Windows and Linux. There are several plugins in this application that contain native artifacts. To contain these artifacts in a binary build (jar), one should specify

## How do I know why my Azure instance doesn't start?

I deployed my service package into Windows Azure. Management Portal has been showing waiting for the role instance to start for 30 minutes already so I assume something is wrong.I know that there's Azure Diagnostics, but is there some easie