Using Okhttp to get a json file but need to add a username and password
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
9:48
Vote count: 0 I am trying to log into server to receive a json file back. But the server needs a use ame and pass word. I don't know how to add that into my build. I looked at a lot of sources but I ca ot figure it out what to add to my builder. Thank you very much for any help Here is my OkhttpHand...
Marklogic Optimistic locking using XCC API
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
9:48
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
8:23
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
8:23
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
8:23
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
7:17
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
7:17
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
7:17
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?
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
5:52
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
5:52
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...
Titanium HealthKit Module - Cant create StatisticsQuery with Cumulative & Separate by source
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
5:52
Vote count: 0 Im trying to create a Ti.Healthkit.StatisticsCollection where I can fetch number of steps taken, grouped per day. The thing is that I also need all sources, so I can filter ("manually") all steps added through Apple Health (manually) and other sources than the device and apple watch. S...
javaFX ComboBox not returning values
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
4:36
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
4:36
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...
Why Can´t I apply String[x] to a string which is equals to serialport.readexisting()?
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
4:36
Vote count: 0 I got a little program which uses the event handler to read a serial port. I got a really big string which is then assignated to a variable (string) Then I wanted to recover certain chars from it, But I got The index is out of range error. I got confused by it since the values that I w...
Unable to write date to file
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
3:32
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
3:32
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
3:32
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
1:24
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
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
1:24
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 ...
UglifyJS2 breaks dependency injection in Angular.js application
◷
تاریخ انتشار:
1395/1/13
|
ساعت:
1:24
Vote count: 0 I have an Angular.js application, that I want to minify. First of all, I've setup a certain gulp pipeline in order to handle a otations and minifications automatically. In order to check how well implicit a otations work, I've added a otations using ngA otate and then ran application w...