Marklogic Optimistic locking using XCC API
Vote count: 0 We are using XCC to communicate to Marklogic. We wanted to implement optimistic locking. This is to ensure noone has updated on stale data. I see there are some documentation around implementing this using Java API. Can someone please help me in understanding if Optimistic locking is p...
How do I get the userid using AJAX in Construct2
Vote count: 0 I have read all the tutorial about AJAX in this site but I still can't figure this out. I need to get the userid variable from a PHP page. Here is what I am doing: code HERE is what I am getting Result How can I only get the variable and not the whole page? thanks, asked 1 min agouser3...
Ionic Make Ion-header-bar appear above Ion-Side-Menu
Vote count: 0 I'm using the Ionic framework and I just got the template project side-menu from them. I was wondering if it's possible to put the ion-header-bar appear above the ion-side-menu. This is how it is right now: This is how I want it to be: Any ideas? asked 1 min agoAdam Silva Let's block a...
Adding special characters to number input
Vote count: 0 I'm trying to create a duration input field, ie HH:MM, and I would like it to trigger the numeric keyboard on mobile devices. <input type="number" /> appears to be the only reliable way to make this happen. But I require it to accept colons :. Is there a way to force the number input f...
Need help installing fluidsynth
Vote count: 0 I'm a begi er playing with/ lea ing from someone else's python code. The program runs fluidsynth from mingus to make sounds, however, when ru ing the code an error comes up ImportError, "couldn't find the FluidSynth library." It seems like FluidSynth isn't supported anymore and many li...
Correct way to check if image is in fact an image
Vote count: 0 I am wondering what is the correct way to check if a user provided image is an actual image. I saw the following two examples: $x = pathinfo('upload.png', PATHINFO_EXTENSION); Result: png $x = new finfo(FILEINFO_MIME_TYPE); $x->file('upload.png'); Result: image/png asked 53 secs agoRob...
Spring @RequestMapping redirection
Vote count: 0 this is my web.xml file <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <...
Q: Fix blurry animated line to paths on canvas?
Vote count: 0 When using canvas to make a path animation, It's blurry when moving, when it stops it's clear again. Any idea how to fix this?https://jsfiddle.net/1j1sepa9/ function render() { cData.push(Math.abs(90 * Math.random())); cData.shift(); var numberOfItemsToRender = n_columns; var startingP...
Constant visibility for constant object on filter at app.js
Vote count: 0 At app.js I have a constant and a custom filter definition. The constant object must be used at the filter but I have an error 'statusInfo is not defined' when I try to reference the constant object at the filter. Please where is my mistake ? var myApp = angular.module('myApp', ['ngRou...
javaFX ComboBox not returning values
Vote count: 0 I am creating a form with a series of combo boxes. Each comboBox has its own values which I have placed tied to a observable list.Everything works flawlessly until I want to call the values, instead of retu ing the selection everything comes back null. On a seperate form I used the .ad...
arduino atmega328 resets on analogWrite
Vote count: 0 I wrote a sketch on my Arduino Mega when I was prototyping. Afterwards, I flashed it as is to a atmega328 chip. I got odd results all over the sketch. To fix it, I copied module by module over to a new IDE windows and that is when I noticed something fishy with the analogWrite function...
Unable to write date to file
Vote count: 0 I came across an idea where I wanted to log what my program is doing with date and time. So I wrote a small function, and upon compilation no error, and no runtime error except that it doesn't open log.txt and it won't even display the date. I must be mistaken because last night, this ...
Cordova: android SDK is not installed
Vote count: 0 I'm trying to create my first android Cordova project. I have the latest Cordova and jdk versions. Also I have Android SDK and path variable contains 'tools' and 'platform-tools' paths. I want to create project in 17 API lvl, so i had changed AndroidManifest as targetSdkVersion="17", p...
My svg circle repeats image background
Vote count: 0 What am I doing wrong ? The background doesn't set properly. <defs> <patte id="image" patte Units="userSpaceOnUse" height="150" width="150"> <image x="30" y="0" height="150" width="150" xlink:href="http://i.imgur.com/7Nlcay7.jpg"></image> </patte > </defs> <circle fill="url(#image)" st...
Plotting a 3d scatter/histogram from a dataframe - Python
Vote count: 0 I have created a pandas dataframe where my index are my x values, my column names are my y values and the values corresponding to a given x and y value in the dataframe (df.values[x][y]) are z values. How do I create a scatter and/or a histogram out of this? Above is the dataframe that...
ruby pagination with will_paginate
Vote count: 0 this more une post about! I read the will_paginate tutorial and the result was undefined method `total_pages' for #<Mongoid::Criteria:0x007f7c09428d80> class ServicesController < ApplicationController def index @services = Service.all.paginate(page: params[:page], per_page: 5) @organs ...