id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23500800 | XAML:
<Canvas Margin="0" Name="CanvasContainer">
<Canvas Margin="0" Name="FirstCanvas" Background="White">
<Image Name="FirstImage" Opacity="1" Margin="0,0,0,0" Canvas.Left="0" Canvas.Top="0" Source="someImage.png" />
</Canvas>
<Canvas Margin="0" Name="SecondCanvas" Background="DarkOrange">
... | |
doc_23500801 | I get an error from Zend Framework Saying "Unable to load 'Propel' Module"
Here is my setup.
In my application.config.php
return array(
'modules' => array(
'Application',
'Propel' // Module I am trying to add
),
'module_listener_options' => array(
'config_glob_paths' => array(
'config/autoloa... | |
doc_23500802 | The problem most likely lies in how I am using the random class.
import java.io.*;
import java.util.*;
import java.util.Arrays;
public class ReadAndWrite {
public static void main(String[] args) {
Random ran = new Random();
int i_data = 0;
int[] sort = new int[100];
File file = new File("Test4");
i... | |
doc_23500803 | arr1 = ['1', 'x', '0', 'x']
arr2 = ['2', '5']
I want to replace the 'x' in the first array, with the numbers in the second array in the exact order so I would obtain something like this:
arr3 = ['1', '2', '0', '5']
I have no idea where to start. I've tried with concat() and slice() but with no result.
A: Iterate ar... | |
doc_23500804 | Example:
use Getopt::Long;
my ($mount_point, $sub_dir, $database_name, $database_schema);
# Populate variables from the command line:
GetOptions(
'mount_point=s' => \$mount_point,
'sub_dir=s' => \$sub_dir,
'database_name=s' => \$database_name,
'database_schema=s' => \$database_sch... | |
doc_23500805 | Train=tensorflow.data.Dataset.from_tensor_slices(([x1_train,x2_train], y_train)).batch(batch_size)
Error:
Train=tensorflow.data.Dataset.from_tensor_slices(([x1_train,x2_train], y_train)).batch(batch_size)
return ops.EagerTensor(value, ctx.device_name, dtype)
ValueError: Can't convert non-rectangular Python sequence to... | |
doc_23500806 | I already tried making method in template class, but I don't want it. People generally do not use this solution.
//....
//Linked List code
//.....
void func1(slist<T> s){
for (int i = 0; i < 1000; i++) {
s.push_(i);
}
} // this part is problem of my code.
int main() {
int i;... | |
doc_23500807 | 1-2-3
4-5-6
7-8-9
10-11-12
13-14-15
So that I have 3 columns and 5 rows of images. I know i have to loop through the images to get them but how do i build them into rows so that there are 3 images in each row. Im using simple javascript not jquery or any other framework. Help would be really appreciated.
A: Edit: ... | |
doc_23500808 | Here's my Jsfiddle:
http://jsfiddle.net/huskydawgs/0zfwf2dk/37/
Here's my HTML:
<div class="resources-box">
<div class="column-resources-box">
<a href="http://en.wikipedia.org/wiki/Apple"><img alt="Apples" height="73" src="http://www.hapadesign.com/images/apples.jpg" width="193" /></a>
<h4 class... | |
doc_23500809 | See screenshot (badges marked with red circles).
A: The badges are textures – you can find them in the /MapResources folder of the StyleEditor.
Inside that folder they are separated on “base style” basis: DayStyle, NightStyle and Common – if you have a style specific texture that you want to use (e.g. change the high... | |
doc_23500810 | SELECT *
FROM MasterTable AS [t0]
Outer APPLY UfnGetDetail([t0].x, [t0].y, z) AS [t2]
...
A: Ok, it works with something like this
var query = from mt in db.MasterTable
let detailResult = db.UfnGetDetail(mt.x, mt.y, z).SingleOrDefault()...
A: Have you tried this:
from mt in dc.MasterTable
select d... | |
doc_23500811 | The data is encrypted with the bank's public key, and is signed with our private key.
Using our own public key for encryption, I am successfully able to decrypt and verify the signature on a file generated with the code below. Gnupg can decrypt and verify the file just fine.
However, the bank is unable to decrypt the ... | |
doc_23500812 | I'm looking to import a data table from a website that does not appear to have an API. The table is broken down to various images and text. The goal is to have all of the content available in a table to then reference for other sheets.
Issue
When I pull in the data, I get some of the text, none of the other images, an... | |
doc_23500813 | i have tried browserstack ,browserling
no code
browserstack ,browserling and also other provides limited access and also not giving into latest version
A: MS provides free VM images for testing IE starting from version 8. You should install VM software to your Ubuntu system and then take the required image from here. ... | |
doc_23500814 | What I want is pretty simple: I store video files in the bucket and I want them to be exclusively downloadable from my webiste.
My approach is to block everything by default, and then add allow rules:
*
*Give full rights to root and Alice user.
*Give public access to files in my bucket from only specific referers (... | |
doc_23500815 | Here is my code:
void ExtendedWebView::contextMenuEvent(QContextMenuEvent *event)
{
qDebug() << "called";
m_copyAction->setEnabled(!selectedHtml().isEmpty());
m_contextMenu->setVisible(true);
m_contextMenu->exec(event->globalPos());
}
When I make right-click on the widget, it takes no effect - no menu ... | |
doc_23500816 | query = user_collection.aggregate([
{
"$project": {
"_id": 0
}
},
{
"$match": {
"a": search_data['a'],
"b": search_data['b'],
}
}
])
A: If you are only doing a match and project, you... | |
doc_23500817 | Here is the form's HTML:
<form id="list">
<select name="navigation">
<option value="index.html">Projects</option>
<option value="#"> </option>
</select>
</form>
Here is the JS (located in another file):
var navigation = [
{"title": "1", url: "1.html"},
{"title": "2", url: "2.html"}... | |
doc_23500818 | When I run the App on my iPhone with the locale setting 'Germany' I expect 'Favorites' to be translated into german like it's working in the iBooks App. But this is not the case. Do I have to make some extra adjustments in Xcode for that?
Thanks
Martin
| |
doc_23500819 | Below is the simple service.
import { Injectable } from '@angular/core';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import { CloudDate } from './cloudDate';
import { Clouding } from './clouding';
@Injectable()
export class CloudingService {
// Observable string sources
private cloudingAnnouncedSource ... | |
doc_23500820 | CAknInformationNote* note = new (ELeave) CAknInformationNote;
note->ExecuteLD(callLogs);
I perfectly run on emulator (show all call-logs on note) but nothing shows up when run on the actual device (a Nokia N73). Any ideas?
A: i think you should use some kind of file logging(you can even use RFile) and see till what p... | |
doc_23500821 | PHP Parse error: syntax error, unexpected '$email' (T_VARIABLE) in /home/elephants/js/emailauto.php on line 30
Here is the emailauto.php script
<?php
$admin_email = "email@gmail.com";
$name = $_POST['name'];
$email = $_POST['email'];
$address = $_POST['address'];
$carrier = $_POST['carrier'];
$yes = $_POST['yes'];
... | |
doc_23500822 |
A: You need to call Invoke-CimMethod to invoke the proper method of the StdRegProv WMI class for that, e.g. like this:
$computer = 'remotehost'
$hive = [uint32]'0x80000002' # HKLM
$subkey = 'SOFTWARE\Foo'
$value = 'bar'
$data = 'baz'
Invoke-CimMethod -Computer $computer -Namespace 'root/cimv2' -Class 'S... | |
doc_23500823 |
A: I think that 'thread of instruction' refers to just code and the way it flows round the functions, procedures, loops and conditionals. 'Thread of control' refers to execution by kernel thread with its own program counter/stack. One 'thread of instruction' can have many 'threads of control' executing its code.
| |
doc_23500824 | static float Price;
static int quantity;
static float amount;
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
String order;
switch(order) {
case Starter:
quantity = sc.nextInt();
System.out.println("Do ... | |
doc_23500825 | function someFunc(windowObj) { windowObj.someOtherFunc(); }
Now, I want to call this function onclick of a hyperlink, but the following code does not send the window object.
<a href='#' onclick='someFunc(this.window)'>Test</a>
and this doesn't work either:
<a href='#' onclick='someFunc(this)'>Test</a>
I understand ... | |
doc_23500826 | I'm trying to deploy an MVC website to Azure, and in this particular project the web deploy receives a Socket Error 10054 and gives up after 10 attempts saying it was Unable to write data to the transport connection. It makes varying progress in between the socket failures but never completes within the 10 attempts.
I ... | |
doc_23500827 | sprite kit engine. when i use the code the game freezes and a bit later all the nodes that were in its radius disappeared.
I wanted to used the following code:
var field = SKFieldNode.vortexField()
field.exclusive = true
field.enabled = true
field.minimumRadius = 50
field.region = S... | |
doc_23500828 | I'm trying to recreate the textviews within the TableRows (note that there's padding and the second text view is right aligned). Also, I'm trying to recreate additional entries because they are dynamic:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
... | |
doc_23500829 | function TEST
{
$ScriptBlock =
{
param (
$BackupPath ="Z:\1\2\",
[array]$DBN, #= @("1", "2", "3"),
$ServerInstance = "10.10.10.10"
)
Foreach ($DBName in $DBN)
{
write-host "$($DBName)"
}}}
I then call this function:
$DBN = @("1", "2", "3")
TEST -ArgumentList (,$DBN)
I've tried various methods but it can't loop t... | |
doc_23500830 | Action
async restoreDeletedCours({ commit }, cours) {
let response = await Axios.post("/dashboard/school/cours/restoreDeletedCours", cours);
let crs = response.data.data;
if (response.status == 200 || response.status == 201) {
commit("REMOVE_COURS_FROM_DELETED_LIST", crs);
commit("RESTORE_SCHOOL_DELETED_... | |
doc_23500831 | Current Flow:
Emulator -> Gettimeofday -> Trap -> Emulate() -> GLIBC -> update the time struct() -> back to Emulator
Trying to achieve :
Kernel/TSC/TImer -> update time_memory();
Emulator -> Gettimeofday -> read time_memory();
First, I'm not 100% sure how logical it is to think something like this but still I feel it's... | |
doc_23500832 | Basically, The site checks to see if you've scrolled past a certain point and then sets the class on an element, causing it to have extra transformations or animations.
In Chrome 23.x, There is no issue with the code;
But in Webkit based browsers on Mac, and Chrome 27.x+ (Lowest I've gotten reports of the bug) in other... | |
doc_23500833 | emails = re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+", file)
Now, i'd like to remove all punctuation marks from this *.txt, because there is also some text in it.
I have removed the punctuation marks with
output = re.sub(r'^\w\s', '', file)
but this function also removes the punctuation marks from the email a... | |
doc_23500834 | Possible Duplicate:
Getting content using wikipedia API
Using PHP, how do I get the first paragraph of a Wikipedia article with the MediaWiki API?
This is mainly an XML-related question.
I'm trying to do this using the MediaWiki API.
I've managed to get a response in XML format (can change to JSON if easier), and I s... | |
doc_23500835 | HTML
<div ng-controller="new_report_ctrl" class="list">
<form id="report" name="report" method="post">
<label class="item item-input item-stacked-label">
<ion-list ng-repeat="item in accounts">
<ion-checkbox ng-model="account_number">{{item.account_number}}</ion-checkbox>
</ion-list>
<label clas... | |
doc_23500836 | Here is my class:
require 'json'
class Webhook
attr_accessor :customer_id, :response, :event_type
ACCEPTED_EVENTS = ["customer.subscription.deleted", "invoice.payment_succeeded", "invoice.payment_failed"]
def initialize(json = nil)
if json
@response = JSON.parse(json, symbolize_names: true)
@cu... | |
doc_23500837 | java.lang.IllegalStateException: AutoConfigure cycle detected between org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration and org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
All of the projects which I am injecting in my main project are built on spring-boot 2.1.3
What can ... | |
doc_23500838 | Normally I would print out a block using the following:
<?php
$block = module_invoke('block', 'block_view', 'ID');
print render($block['content']);
?>
I've tried:
<?php
$block = module_invoke('block', 'block_view', 'easy_breadcrumb');
print render($block['content']);
?>
It doesn't specify an ID in t... | |
doc_23500839 | path = 'public/MIN-1234';
path = path.split('/');
return path.join( process.cwd(), ...path);
I expect to :
c:\CODE\public/MIN-1234
but got:
`publicC:\CODEMIN-1234`
what??
A: The comments under your question provide some valuable guidance for something you are doing incorrectly. Specifically you seem to think yo... | |
doc_23500840 | <a href="http://example.com/image1.jpg">image1</a>
<a href="http://example.com/image2.jpg">image2</a>
<a href="http://example.com/image3.jpg">image3</a>
<a href="http://example.com/image4.jpg">image4</a>
<a href="http://example.com/image5.jpg">image5</a>
<a href="http://example.com/image6.jpg">image6</a>
<a href="http:... | |
doc_23500841 | var map = L.map('map').setView([39.5, -105.5], 7);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Ima... | |
doc_23500842 | Looks like to me the MSXML parser (I hope thats the one .Net is been using) is a very unforgiving parser.
I have no control over the server. Some how I have to work around this problem. So, I was thinking of writing a SoapExtension as describe here
So my question is, can I hook a parser before Deserialize stage and co... | |
doc_23500843 | My ServiceStack service handles route parameters that often contain periods ie:
/people/search/b.j./upton. Initially, asp.net/ServiceStack would throw a "404 - Not Found" exception when it encountered this route. I tried encoding %2E the periods with no luck but eventually resolved the issue after seeing some related... | |
doc_23500844 |
Uncaught TypeError: Cannot read property 'length' of undefined.
Here's a plunkr: http://plnkr.co/edit/vLbDAarzpbT3qk0aNw12?p=preview
I used the exact same code (copied & pasted) for the modal/alert buttons in and outside of the aside.
<button type="button" class="btn btn-default" data-animation="am-fade-and-scale" da... | |
doc_23500845 | I have 2 issues.
1. It won't play on iphone/ipad. I have put in the direct path to the video on my iphone and it plays fine so I don't think it is an issue with how it was encoded. But just in case I exported a mov file from flash and then used miro to convert it to a mp4. Also I have tried with and without the poster ... | |
doc_23500846 | When I ran it locally it worked (System.loadLibrary("lpsolver"))
But now I am trying to upload it to an amazon server which is running tomcat.
I can't get the tomcat server to load class library correctly.
Tried to include it in all kind of different locations and loading it but non seemed to work.
Any idea how I can a... | |
doc_23500847 |
How would I go about doing this?
A: This should work:
df = pd.read_csv('file.csv')
lst = df.loc[df['Speed'] > 10, 'No. Plat'].tolist()
A: is this what you are after?
df.loc[df.Speed>10, 'No. Plate'].tolist()
| |
doc_23500848 |
*
*Can/should I use a singleton to maintain and expose the list to the activities and background tasks? (I'm familiar with thread synchronization issues and am prepared to deal with that.)
*Can/should I use the IntentService class (two separate instances for the work I need to carry out) or is there a better way? D... | |
doc_23500849 | (URL: https://www.lego.com/sv-se/service/buildinginstructions/75060)
<div class="c-card__inner">
<div
class="c-card__img o-inline-img o-inline-img--contain o-inline-img--inset o-ratio o-ratio--four-three o-ratio--fit-vert"
data-cy="bi-product-img"
style="background-image: url("https://www.lego.com/cdn/pro... | |
doc_23500850 | string s = string.Format("{0} - ({1})", myparam1, myparam2);
A: String formatted = String.format("%s - (%s)", myparam1, myparam2);
A: Err... String.format seems like a pretty good candidate. Who would have thought? :-)
There is also MessageFormat.format.
A: Accepted answer is correct. I would just like to add the ... | |
doc_23500851 | but I'm stuck on how to add that... Im assuming I have to use one of the methods from the string class but I'm not exactly sure which one or how to do it?
package userinput.java;
import java.util.Scanner;
public class UserinputJava {
public static void main(String[] args)
{
Scanner userInput = new Scanner... | |
doc_23500852 | main_collective = mcollective
collectives = mcollective
libdir = /usr/share/mcollective/plugins
logger_type = console
loglevel = warn
# Plugins
securityprovider = psk
plugin.psk = unset
connector = rabbitmq
plugin.rabbitmq.pool.size = 1
plugin.rabbitmq.pool.1.host = myserver
plugin.rabbitmq.pool.1.port = 61613
plu... | |
doc_23500853 |
A:
Yes it is possible to make rest api using wordpress
Create Custom Plugin for you rest api
Make a file and add this code in plugin and then activate the plugin from wp-admin
/*
Plugin URI: http://www.test.com/
Description: Develope Rest API for mobile interaction
Author: test
Version: 1.1.1
Aut... | |
doc_23500854 | Cheers
A: Here's a link to an blog describing how to do this:
Hack Your Own Custom NetBeans Project Templates
| |
doc_23500855 | This works fine in that I can pass the Vec<Media> around.
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rusted_cypher;
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
use std::fmt::Debug;
use rusted_cypher::GraphClient;
use... | |
doc_23500856 | Dim nowTime As DateTime = Now.ToShortTimeString
The above code shows time in the format
hh:mm:ss
I want it in the format
hh:mm
The Date Time Picker shows date like this
5/ 1/2011
(There is a space before 5 and before 1)
Dim nowTime As DateTime = Now.ToShortTimeString
The above code shows Date like this
5... | |
doc_23500857 | PyTMX but, doc says:
Finally, there is no save feature. Once the map is loaded, it will be up to you to provide a way to save changes to the map. I've used the pickle module with good results.
tmxlib where doc says:
Saving is equally easy:
>>> map.save('saved.tmx')
>>> map_as_string = map.dump()
But pip installatio... | |
doc_23500858 | #include<iostream>
#include<cstdio>
using namespace std;
class node{
node* next;
char data;
public:
node(char x){
data=x;
next=NULL;
}
node(){
data='~';
next=NULL;
}
node* get_next_node(){
return next... | |
doc_23500859 | I saw this image online and was wondering how to go about these types of animation. I think this is a very useful technique that can be used in maps, presentations, etc and was curious about it.
The image:
*
*http://i.imgur.com/zaSxkLI.gif
I Researched these questions:
*
*Flood Fill in Python
*How to flood-fill ... | |
doc_23500860 |
Here my custom options
var options = {
width: 500, height: 240,
legend : 'none',
vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight: '100'}},
hAxis: { title: 'Percentage', textStyle: { color: '#005500', fontSize: '12', paddingRight: '100', marginRight: '1... | |
doc_23500861 | I have a text document that looks, for example, like this:
This is a
TEXT DOCUMENT with
SOME capitalized words
BUT NOT all of them are
ALL CAPS
iPhone
What I would like is to parse this document and match only whole words made up of only uppercase letters, like so:
TEXT DOCUMENT
SOME
BUT NOT
... | |
doc_23500862 | Original
Value
0130509667,0130509791,0130509824,0130509811,0130503549,0130503547,0130509323,0130509320,0130509145,0130509315
Output
Value
0130509667
0130509791
0130509824
0130509811
0130503549
0130503547
0130509323
0130509320
0130509145
0130509315
Please advise and let me kno... | |
doc_23500863 | The idea is that apart from the app, there should be some sort of admin panel, similar to what Django provides, that will let my clients upload products, manage users and so on. Is there some kind of package, that would automatically generate the admin modules and views for me, the way Flask-Admin does?
Thanks a lot!
... | |
doc_23500864 | for example i have 2 columns in my products listing page and i've made multiple categories and i'm showing the products category wise that's all ok.
but i don't know to make get other category value to filter them according to the category wise.
i want to show my filter on mobiles = ram, storage, battery etc.
in the ca... | |
doc_23500865 | Our problem is that updates that access the table that contains general information about the characters take a long time for some reason and then timeout.
Processlist: http://i.imgur.com/Fr0kD.png
The characters updates contain about 30 more fields and end with WHERE id = ?.
Layouts of the tables that appear in the pr... | |
doc_23500866 | I have created the example in bootply
A: The issue with your layout is that in order to center your 3 columns, you would have to offset the left column by 1.5 (half of the leftover columns):
// 12 Column Layout, 3 columns of col-md-3, offset of 1.5 needed (which isn't a class)
12 - (3 + 3 + 3) = 3 / 2 = 1.5
Since th... | |
doc_23500867 | What does it mean and why is it needed to branch to current PC address?
A: A branch to the current address will be generated by, for example,
while(1);
or
for(;;);
in C. Both of these loops run forever, doing nothing.
Why would you want this? Well, in production code, you probably wouldn't. But in example or test... | |
doc_23500868 | (This only applies if the box's edges are aligned with the coordinate axes.)
If the vertices are (x1,y1,z1),(x2,y1,z1),(x1,y2,z1),⋯,(x2,y2,z2), then any point (x,y,z) is inside the box if and only if
x1<x<x2
and
y1<y<y2
and
z1<z<z2
In other words, the point's coordinates are between the vertices' coordinates.
Now I go... | |
doc_23500869 | I know I can use Post-Receive Hooks to get a buzz on my server, that's easy enough, what I don't know how to do yet is get the PHP script to download the latest version of the entire repository from github?
Is there an API to do this, or is there perhaps a direct link to the always latest version of a repository zipped... | |
doc_23500870 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path id="theEl" d="M0 0, L 0 500, L 600 500, L 600 0" stroke="black" stroke-width="10"/>
</svg>
If I want to change it I know that this would be enough:
document.getElementById('theEl').setAttribute( 'd', 'M0 0, L 0 200, L 200 200, L 600 0' );
But what if we wan... | |
doc_23500871 | abc
aaa
vvv
ttt
bbb
then last entry is again from beginning.Any help thx in advance!
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
if(tableView == tableAttendeeList)
{
static NSString *cellName=@"AttendeeCell";
UITableViewCell *... | |
doc_23500872 | when I enter an input the page change to an empty page and nothing happen. I know my error is from the line of the array $findemail and downward.
am I using the $cursor in the right way and if so am I accessing the $findemail in the right way using $d['email'] to compare it with $email
<?php
//Include libraries
requir... | |
doc_23500873 | var client = new SmtpClient
{
Host = "stmp.gmail.com",
Port = 465,
UseDefaultCredentials = false,
DeliveryMethod = SmtpDeliveryMethod.Network,
Credentials = new NetworkCredential("email@gmail.com", "password"),
EnableSsl = true,
... | |
doc_23500874 | First, I used some packages to set the way my references would be shown.
% Bibliografia
\usepackage[round]{natbib}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=black,
urlcolor=blue,
citecolor=black
}
In the of the code, I wrote these lines to create the references list.
\bibliographystyl... | |
doc_23500875 | function function1() {
var html = "";
html += '<div>';
html += '<button type="button" id="button1">Click Me</button>';
html += '</div>';
$("#element").html(html).done(function2());
}
function function2() {
$("#button1").prop("disabled", true);
}
However this does not work and the console ... | |
doc_23500876 | If I were to do this in ant I'd set a variable and then put an if expression into the element. How do I do the equivalent in maven?
Thank you!!!
MG
A: I assume this js minimization is done by a plugin that you execute in the <build><plugins> part of your project's pom?
Then your requirement sounds like something that... | |
doc_23500877 | When, for example, I go to "https://api.vineapp.com/timelines/graph" in Google Chrome I get a response:
"{"code": 100, "data": "", "success": false, "error": "You must be logged in to perform this action."}"
but when I do the same from the desktop Internet Explorer I get "400: bad request".
I get the same error on IE... | |
doc_23500878 | from mysql request it's working fine but when I assigned the value from curl request, I face this problem.
here my code so far:
foreach ($arr->data as $datas) {
foreach ($datas->location as $locations) {
$item_id = json_encode($locations->item_id) . "\n";
$area_id = json_encode($loca... | |
doc_23500879 | Here is a sample div:
<div class="item" data-orderNo="457748322" data-dateOrdered="12/17/2014">
... Order Details ...
</div>
I am able to filter them by order number with this code:
$('#orderNumberFilter').keyup(function () {
var orderNo = $(this).val();
if (orderNo == "") {
$(".item").removeClass( "... | |
doc_23500880 | I have a number of different ES6 Classes that are interchangeable and have the same interface. I'm trying to make a system that is extensible and pluginable, so the classes available won't be known at design time.
I want to have a variable which defines the name of the class that I want to create an instance of. So eff... | |
doc_23500881 | 1.Existing pricing table with custom date-dependent pricing windows:
id | prod id | start | stop | price
-----+---------+------------+------------+-----------
1 | 65210 | 2012-01-01 | 2013-01-01 | 5.00
2 | 54841 | 2012-02-05 | 2013-03-01 | 15.00
3 | 51518 | 2012-01-01 | 2013-0... | |
doc_23500882 | LauncherImpl.launchApplication(WindowMain.class, WindowMainPreloader.class,
new String[]{...});
I prefer to start it from code, like above, instead of using a deploy configuration, because I don't want the graphical interface to start every time I start the application, but only after some code that has computed that... | |
doc_23500883 | sum:
68
78
25
45
85
Index:
0
1
2
3
4
I did bubble sort on sum and got as:
25
45
68
78
85
Now, I need to know sort index array with respect to the sum array. So, my output of array should be:
2
3
0
1
4
How can I do that?
A: I'd recommend you sort the index array instead, and have the compariso... | |
doc_23500884 | =INDEX(B3;M3,MODE(MATCH(B3;M3,B3;M3,0)))
However, I'm doing this for multiple variables and don't want to make a separate subset sheet/file for each one so hope this is possible. I'm attempting to use the following formula but get an error message that hightlights the MODE function:
=INDEX((B3;F3;J3),MODE(MATCH(B3;F3;... | |
doc_23500885 | Screenshots of the error msgs are here-
[1]: http://i.imgur.com/xLvz3.png "top"
[2]: http://i.imgur.com/cJHPK.png "bottom"
Model/Post.php
<?php
class Post extends AppModel {}
Controller/PostsController.php
<?php
class PostsController extends AppController {
public $helpers = array(’Html’, ’Form’);... | |
doc_23500886 | test1.js
@Component({
selector: 'app-root',
...
})
export class AppComponent {}
So, I want to get "app-root" from test1.js
test2.js
var selector = "#selector"
function() {}
In the test2.js, i want replace "#selector" by "app-root".
I know how to replace a string by another string in a file:
gulp.src('test2.js... | |
doc_23500887 | Added later:
I've been able to make this work by handling the DragLeave event. In it I create a file in a temporary directory with the selected name and the contents pulled from SQL Server. I then put the path to the file into the object:
var files = new string[1];
files[0] = "full path to temporary file";
var dob = ... | |
doc_23500888 | I want to save a string in my Settings view
& retrieve its content in the MainPage
Here's my code, but i'm getting an error:
Settings.xaml.cs :
var settings = IsolatedStorageSettings.ApplicationSettings;
settings.Add("setPlan", "This is my text that i want to retreive");
MainPage.xaml.cs:
var location ... | |
doc_23500889 | public class MainActivity extends AppCompatActivity{
ImageView imageView;
Matrix matrix=new Matrix();
Float scale=1f;
ScaleGestureDetector SGD;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ma... | |
doc_23500890 | I need to send HTML to the server, have the server convert the HTML to a PDF, send that PDF back to the client, and then download the PDF using client-side code.
I have to do it this way because I'm using client-side routing, so the only way I can access my endpoint that should perform this action is via a GET Request ... | |
doc_23500891 | Here is the code:
int contar_palabra(const char *nombre_file, const char *palabra){
/*variables locales*/
FILE *file;
char buffer[50];
int bytes_leidos, contador = 0, comparar, cerrar, i;
/*Abrimos el archivo para lectura*/
file = fopen(nombre_file, "r");
/*Verificamos que se haya abierto correctamente*/
if (... | |
doc_23500892 | <dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.5.8</version>
</dependency>
And when I first create my client:
AmazonS3 s3 = new AmazonS3Client(Config.AWS_CREDENTIALS);
I get an exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at co... | |
doc_23500893 | Submit for Login Review
Some of the permissions below have not been approved for use by Facebook.
The permissions they refer to are listed below this message:
****** will receive the following info: your public profile, email address,
birthday, website and personal description.
The latter permissions do not map to th... | |
doc_23500894 | For example, I have a debug module that I can use to manipulate system state from the console, and I have a web tool that allows admins to inspect and change the system. Some of the methods that are designed for their consumption (but are implemented in modules all over the system) are fine for occasional use, but wou... | |
doc_23500895 | How can I manage this??
This is activity 1:
private static final String MY_PREFERENCES = "mespreferences";
TextView txt;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.detail_offre);
ToggleButton precedent = (ToggleButton)findViewBy... | |
doc_23500896 | var ToDoForm = React.createClass({
getInitialState: function() {
return {text: '', submittedValue: ''};
},
handleChange: function(event) {
this.setState({text: event.target.value});
},
handleSubmit: function(e) {
e.preventDefault();
this.setState({submittedValue: this.state.... | |
doc_23500897 | Inside of it, there are plenty of id=(...)" and I require one of them
So I am asking, how could I get an array with all the strings that come after "id=" and before the " " "?
I made some tries such as :
var startsWith = "id="
var endsWith = "\""
var between = fullString.slice(fullString.indexOf(startsWith), fullstring... | |
doc_23500898 |
A: As for any bundle, you can create a folder named Support inside the directory:
XYZ.app/
Info.plist
XYZ
Icon.png
Support/
SomeHelper
| |
doc_23500899 | There is no data in the Bluemix Dashboard "Monitoring" and "logging" tab. Also nothing displays when I do "cf ic logs {containerId}"
Can you please help me on how to debug this?b
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.