Group by month and year of a date column
Vote count: 0 i have my query as following select Max(Reimbursement_EBSUtilization.Id) as Id,ProviderReimbursementRequest.Contractor_Id, Reimbursement_EBSUtilization.ServiceMonth, fContractor.ContractorName,Reimbursement_EBSUtilization.SD_Id, Max(StandardUnits) as StandardUnits, max(Rate) as Rate,su...
why is the insertBefore showing error
Vote count: 0 I intend to create a new Div element via javascript, but i am having problem appending my code to the DOM <div id="container"> <div id="content"> </div </div> <script> var container = document.getElementById('container'); function divCreate() { var newDiv = document.createElement('div'...
Rails gem Reform show errors
Vote count: 0 Tell me whether it is possible somehow to deduce errors in the classical Active Model style? my method: def update address = Address.find(@user.billing_address) form = AddressForm.new(address) if form.validate(params[:billing]) form.save else flash[:notice] = form.errors.full_masseges ...
Spray.io - Removing fields from response
Vote count: 0 I've built a RESTful API using Spray.io. It contains a number of endpoints, each of which retu s JSON. I use the Spray JSON marshaller to marshal my inte al objects to JSON which are retu ed to the user. So I have something similar to... respondWithMediaType(`application/json`) { compl...
Remote Debugging on two work stations
Vote count: 0 If we build the same c#.Net Project on different machines viz. Machine A and Machine B; and if we try to debug the build on Machine B from Machine A (Assuming the msvsmon.exe is already ru ing on Machine B), it does not builds the symbols. How we can debug in such scenario asked 12 sec...
IIS and Apache directories from same domain name
Vote count: 0 I have a website and a mobile app backend panel. The website that I have is built in wordpress deployed on apache server. The mobile backend is built in .NET and works from IIS server. Can I access both of these under same domain names? eg: domai ame.com -- Points to wordpress website ...
How to pass a string to Angular 2 (click) function?
Vote count: 0 I have a div element in my HTML like so <div (click) = onPaginationClick()>next</div> My question is : How to pass a string to the onPaginationlick() function ? when i try to pass it like this : <div (click)=onPaginationClick("myString")>next</div> I have a parse template error. Enyone...
Batch file - check if package exists - if not install it
Vote count: 0 I'm trying to do simple batch script (cmd) that will check if required packages are installed, if not it will install them and then will call my command. I've managed to check if node is installed using: node -v >nul 2>nul if %errorlevel%==9009 ( echo Install node.js and restart this s...
How routing and Ajax are different in angularjs
Vote count: 0 I am new to angular and I am trying to understand the routing concept , but I am getting confused routing is used to load some parts of the html from server if templateUrl is given in when method but even ajax does that it loads data in the form of JSON, XML or HTML from the server wit...
What would be efficient database design and queries?
Vote count: 0 Suppose,Cricket World Cup has taken place.I want to build a database to record all the scores of every match . Design this database so that we can store data efficiently and also can easily find answer of the following statistical question. a. Which batsman has the most runs? b. Which ...
Umbraco multilanguage with URL change
Vote count: 0 I am working with Umbraco v7.x. I have few static pages and they need to be added in two languages(en/da). I know there are two ways to translate 1- Copy folder and assign different culture and hostname and add fields data according to language. 2 - Use dictionary items. But my problem...
angularjs http service wait for data
Vote count: 0 I have HTTP service that retu s promise to inspection2update.DamageTypeId property and continue to execute further. HTTP service: function post(objectTypeId, damageDescription) { var defer = $q.defer(); $http.post(serviceAddress + "save/" + objectTypeId + "/" + damageDescription).then(...
Spring session with auth0, session is empty
Vote count: 0 We have tried to use spring session with the auth0 libraries. We have used this as a starting point: https://github.com/auth0-samples/auth0-spring-mvc-sample/ The spring session setup is pretty standard, we have used this example: https://github.com/spring-projects/spring-session/tree/...
Design pattern for microservices
Vote count: 0 We are designing a solution for a CMS hosted in cloud and talks with exte al systems using microservices. The microservices request and response is JSON. There might be 100+ such microservices. I need advice in which desgin patte s should I use in this case. One of which I think is Com...
cuTexObjectCreate return error code
Vote count: 0 I am working with Cuda driver api, now i have a problem about Cuda texture object creation, it always retu CUDA_ERROR_INVALUD_VALUE. I found function cuTexObjectCreate is wrapped by macro : #if __CUDA_API_VERSION >= 5000 ...function decl... #endif And my Cuda context created by cuCtxCr...
Accessing an odd object
Vote count: 0 How would I access the keys and values in the following... users@email.com{"authenticated":"TRUE","devid":"12334567890"} This will be used for logging in. I am making a http post to a php backend. I want to check if authenticated == true I also want to be able to use the devid as well....
PDFSharp write on more pages
Vote count: 0 I want to write a PDF on more than one page. I already created 4 pages, but the programm do a cut on the first page. So the page 2,3,4 are empty. How to fix that? Code: string outFileName = "Vertrag/vertrag.txt"; using (StreamWriter writer = new StreamWriter(outFileName, false, Encodin...