id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23532000 | Uncaught TypeError: Cannot read property 'options' of null
And my javascript function:
<script language="JavaScript" type="text/javascript">
function appendlistbox(){
var select = document.getElementById("listboxstock");
select.options[select.options.length] = new Option("myobject", "index");
... | |
doc_23532001 | def number_group(number):
if number > 0:
return "Positive"
elif number < 0:
return "Negative"
else:
"Zero"
print(number_group(10)) #Should be Positive
print(number_group(-5)) #Should be Negative
print(number_group(0)) #Should be Zero
A: Don't forget the return statement:
def number_group(number):
... | |
doc_23532002 | My current code is not working.
using UnityEngine;
using UnityEngine.UI;
public class NewBehaviourScript : MonoBehaviour
{
public InputField Field;
public void Start ()
{
Field.onValueChanged.AddListener(delegate{ApplyCurrencyFormat();});
}
public void ApplyCurrencyFormat ()
{
... | |
doc_23532003 | /* platform.service.js */
import { Injectable, Inject, PLATFORM_ID } from '@angular/core';
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
@Injectable({
providedIn: 'root'
})
export class PlatformService {
constructor(
@Inject(PLATFORM_ID) private platformId: Object
) {
... | |
doc_23532004 | Each of them can be developper AND/OR manager AND/OR commercial
No other role will be created in the futur.
To optimise my database, Should I create one table with the following boolean fields :
is_developper
is_manager
is_commercial
Or should a create another table "roles" and a N-N table to join them ?
| |
doc_23532005 | hello
*
*Block sites through SNI filtering in Korea.
(HTTPS site block)
*I can't tell Korean customers to use vpn.
server status
*
*1 IP and 1 site exist
*Apache,php in use
My certificate is...
https://example.com (blocked)
https://example.net (Not blocked, redirect to example.com)
question
Can the SNI header b... | |
doc_23532006 | I have a form where I type a keyword into a textbox that search among those .txt files when I click the button called "search".
For every match the entire line surrounding the keyword is then written into the richtextbox preceded by the fullpath of the related txt file.
I would like to know if there's a way to make th... | |
doc_23532007 | Router.onBeforeAction(function() {
var self;
self = this;
authToken = Session.get('authToken');
if (!authToken) {
this.redirect('login');
this.next();
} else {
Meteor.call('validateAuthToken', authToken, function (error, result)) {
if (result) {
self.n... | |
doc_23532008 | One spec details that single quotes are not allowed, and the other has a script which is essential to the banner. Without the script, there is no point serving the banner in the first place.
So the question is, is there a way to write this script using only double quotes?
<script>
document.write('<script src="' +... | |
doc_23532009 | public class BenchmarkRunner {
@Test
public static void main(String argv[]) throws Exception
{
org.openjdk.jmh.Main.main(argv);
}
}
It doesnt matter if I annotate the class or method:
@Warmup(iterations = 5, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 5, timeUnit = TimeUnit.MIL... | |
doc_23532010 | But, it is unchecked when set to false.
So, 0 and false behaved the same in version 12, appearing as unchecked, but differently in version 13.
In this example, workOrderDtiConstraint.ESCALATED is the field used. When set to 0, the box is checked, when set to false, it is unchecked.
<ng-container matColumnDef="escalate... | |
doc_23532011 | The main problem I am looking into now is one of the add-ins is saving the path incorrectly, it is saving it as such: C:\David\\File.txt
The part of the application that deals with file io tries to ensure the file exists prior to doing stuff with a File.Exists(path) call. This call is returning true even for the above ... | |
doc_23532012 | The problem is that i dont know how big content inside that element will be, sometimes it will be long content, sometimes small, that is minor problem..
This is screenshoot what i need to make
Now when someone click on ACTION i need this
Can this be done by boostrap JS, or need some custom JS and css
Here if similar... | |
doc_23532013 | I have a GWTP web app that runs perfectly fine in dev mode either from eclipse or from the command prompt running mvn gwt:run.
Now i try to deploy it to Tomcat 7 locally. I ran gwt:compile and copied the zip file (after renaming it to .war) to the webapps folder. The app is listed in Tomcat's manager gui. But when i tr... | |
doc_23532014 | Following : https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sagemaker_workforce
it working fine
main.tf
resource "aws_sagemaker_workforce" "workforce" {
workforce_name = "workforce"
cognito_config {
client_id = aws_cognito_user_pool_client.congnito_client.id
user_pool = aws_cogn... | |
doc_23532015 | Any help is greatly appreciated.
Thanks!!
NSPredicate *parentPredicate1 = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings)
{
return [evaluatedObject[@"parent_id"] isEqual:@"1"];
}];
NSPredicate *parentPredicate2 = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictiona... | |
doc_23532016 | I am using c# as programing language and .net framework 3.5.
Thanks.
A: This article on MSDN Forum shows how to read and write image data in MS ACCESS.
You will have to use Image data type for the photo field. While inserting convert the data into byte array and pass as parameters.
A: something like this should help... | |
doc_23532017 | Delete button works but add doesn't, how to debug this guys?
private void FillDataGrids()
{
formLoaded = false;
voziloBindingSource.DataSource = r.DohvatiSvaVozila();
djelatnikBindingSource.DataSource = r.DohvatiSveDjelatnike();
formLoaded = true;
}
I don't know what code to pos... | |
doc_23532018 | $(document).ready(function(){...});
but I am not sure about the most reliable approach in plain js.
Clearly
window.onload = ...
is not proper solution, because it would overwrite previous declaration.
What I am trying to do is to insert an iframe into a div after the page is loaded, but maybe there are actually bette... | |
doc_23532019 | Here are the matrices:
Matrix A : Score attempt in a football match
John Mike Luc
2010 20 30 25
2011 13 22 18
2012 10 20 14
Matrix B : Number of Games
John Mike Luc
2010 10 15 12
2011 5 8 7
2012 2 8 3
The following code work... | |
doc_23532020 |
import os
import sys
sys.path.append('/usr/bin/python')
vs
os.environ['PYTHONPATH'] = '/usr/bin/python'
I am running a script as a cron job and want to set PYTHONPATH environ variable to '/usr/bin/python' for the script to be run. What is the correct way of of the two mentioned in the snippet above?
A: Updating... | |
doc_23532021 | The application runs fine in-memory using docker, but I can't manage to change to MySQL.
I did some research, and managed to write this docker-compose.yml:
version: '3.3'
services:
#service 1: definition of mysql database
db:
image: mysql:latest
container_name: mysql-db2
environment:
- MYSQL_ROOT_PASS... | |
doc_23532022 | It doesn't seem to want to paste into a text field in google chrome however.
display dialog "What is the list? (Artist, Song Title, Artist, Song Title)" default answer "Frank Sinatra, My Way, Elvis, Blue Christmas"
set user_input to text returned of result
set {myTID, AppleScript's text item delimiters} to {AppleScrip... | |
doc_23532023 | The the original xml is here and This is an example of each story.
<news:NewsResult>
<news:Title>Essex Police/Fire</news:Title>
<news:Url>http://www.gloucestertimes.com/local/x2118804357/Essex-Police-Fire</news:Url>
<news:Source>Gloucester Daily Times</news:Source>
<news:Snippet>ESSEX — ... | |
doc_23532024 | For example:
-------------------
MainClass
-------------------
-------------------
+Main()
______
+Othermethod()
______________
-------------------
Should I keep the line under the othermethod() or I should remove it and keep it only under the main method?
A: The static operations of a class, whether main() o... | |
doc_23532025 | i have a adjacency matrix "adj(2d vectors)" + i have a char vector in name color and i have a int glist
i'm having a problem with the following function
for(list<int>::iterator it = glist.begin(); it != glist.end(); it++)
{
int x =0;
for(int i=0;i<adj.at(*it).size();i++){
if(color.at(adj.at(*it... | |
doc_23532026 | const handleSignUp = () => {
auth
.createUserWithEmailAndPassword(email, password)
.then(userCredentials => {
console.log(userCredentials.user.uid)
const user = userCredentials.user;
console.log('Registered with:', user.email);
setDoc(doc(db, "users", "LA"), {
name: "L... | |
doc_23532027 |
I need the emoji actually to show itself like an emoji.
What I did to make the emoji in PyCharm:
<a:currency_symbol:832506821675057173>
Code:
@commands.command(pass_context=True, aliases=['bal'])
async def balance(self, ctx):
id = str(ctx.message.author.id)
embed = discord.Embed(title="CatsyBot Ec... | |
doc_23532028 | I'm using now the last nusoap (should be compatible with php 5.3.18) and translating the code from SoapClient to nusoap_client.
This code use SoapClient and works perfectly
$s_WSPROTOCOL = 'https';
$s_WSHOSTNAME = 'xxxxxxxx.yyyyyy.tdl';
$s_WSPORT = '';
$s_WSPATHNAME = 'webservices/service.asp?WSDL';
$s_WSTIPOO... | |
doc_23532029 | But for some case if second app's main activity launches another activity and it finish the main activity then how I can send result to first app's main activity from second app's another activity?
A: Let's assume that you have three activities - A in the first app and B and C in the second app.
I see two possible sce... | |
doc_23532030 | The scenario: I've got a text box, with fancy typeahead. Beside that, I have a button to append the newly found value into a second field. I use the second field to drive a repeat control showing all values chosen to date. Code below
The result: To test this, type 'ab' in the field, and select any choice, then cli... | |
doc_23532031 | import argparse
parser = argparse.ArgumentParser(allow_abbrev=True)
parser.add_argument('-data', default=True, type=bool, help='uses the history file')
args = parser.parse_args(sys.argv[1:])
From the command line, I typed: python myscript.py -data False
Also variations with single & double quotes around False. When I ... | |
doc_23532032 | Now, by default, we see one line per commit - the first line of the commit message. However, some of us write multi-line commit messages in which the first line doesn't say much.
Is it possible to somehow get git to print content from additional lines, in the TODO editor? I don't mind the exact format, I just need to ... | |
doc_23532033 | The problem arises when I'm trying to work with the html below.
<tr>
<td>
<table class="EPSBResultGrid" cellspacing="0" rules="cols" border="1" style="border-color:DarkGray;border-collapse:collapse;">
<tbody><tr class="EPSBResultGridHeader"... | |
doc_23532034 | Here's a small example of the input:
{
"type": "FeatureCollection",
"features": [
{
"id": 16683828,
"properties": {
"facility": "hallway"
},
"type": "Feature",
"geometry": {
"type": "Path",
"coordinates": [
[
0,
379.64,
... | |
doc_23532035 | Now I understand what break and labels do but I can't wrap my head around why the value ends up being 55 at the end?
Ok so the for loop with var i will loop 4 times then at 5 it breaks out to label:outermost and same with j so the first iteration i = 4 and j = 4 and num = 2. I guess this part confuses me.. at what poin... | |
doc_23532036 | Goal:
Add script to my Ruby app which can read a local JSON file, parse it to a Ruby hash, and access the properties within it.
System: CentOS 7
File: Locally saved /tmp/valid.json file:
{
"firstName": "John",
"lastName": "Smith",
"isAlive": true,
"age": 27,
"address": {
"streetAddress": "21 2nd Street",
... | |
doc_23532037 |
Thanks!
A: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}" >
<TextView
android:id="@+id/textView2"
android:lay... | |
doc_23532038 | Sub py_launcher_8()
Dim wsh As Object
Set wsh = VBA.CreateObject("WScript.Shell")
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 1
Dim errorCode As Long
errorCode = wsh.Run("C:/Users/belose/PycharmProjects/week2/venv/Scripts/python.exe" & " " ... | |
doc_23532039 | Content-Type:text/html
I would like to use it to host CSS and JS script files. Is it possible to have the browser ignore the content type and load the file as CSS or JS when using:
<link rel="stylesheet" href="css/main.css">
A: Is there no way you can override the content type from the file itself? E.g. if you put ... | |
doc_23532040 | <div id="parent" style=height:"100%">
<div id="mainbody"></div>
<div id="footer"></div>
</div>
I want the footer div to be pinned at the bottom of the screen, and mainbody top be on top. There may be a lot of vertical content in mainbody, so I want the scroll bar to only show in the mainbody div. Here is a cru... | |
doc_23532041 | I am clicking upload button and then we select a file that need to be uploaded.Then the upload button is changed to change and name of selected file is displayed next to it.But if we are having a big file name i want to limit the file name characters to about 50.How to achieve this ?
<div class="span5">
<div cl... | |
doc_23532042 | Data at begining
Next, I have to create new feature isMale by using where()
This feature should show gender by value(0 and 1), if gender is "female" than isMale equals to 0, and analogical gender="male" than isMale=1
And this feature should swap my "Gender" or just concatenate to my dataset
I don't get how to use whe... | |
doc_23532043 | 1>I have successfully made chunks of 10 secs with one m3u8 file by this command-
ffmpeg -i song.mp3 -c:a aac -b:a 64k -vn -hls_time 10 -hls_list_size 0 abc.m3u8
2>Tried this command also
MP4Box -dash 10000 -frag 1000 -rap -segment-name myDash -subsegs-per-sidx 5 -url-template test.mp4
But not able to make .m4s chunks w... | |
doc_23532044 | You see the problem arises when I try to pass the range of values under "Products". Right now I'm having to pass the arguments manually as the number of products may vary with clients, as you can see below.
Link to a sample sheet
Following is my sample code-
*
*Code.gs
function doGet(e){
const tmpl = HtmlService... | |
doc_23532045 | **Routing Error**
No route matches [GET] "/"
I honestly do not know how to debug this
This is what's in the index file
<% @snippet.each do |snippet| %>
<h2><%= snippet.title %></h2>
<%end%>
And for my routes:
Josegomez::Application.routes.draw do
resources :snippets
Here is the video I been following it requires you... | |
doc_23532046 | #define MYCHAR_1 0xC3
#define MYCHAR_2 0xB6
(These are the two bytes that form the UTF-8 character "ö")
Is it possible to create a macro that takes the prefix (in this example "MYCHAR") and yields the string "\xC3\xB6"? (i.e. "ö")
In other words can the C-preprocessor create a static string (or array) out of static ar... | |
doc_23532047 | struct product_t
{
char *product;
int id;
float price;
struct product_t *next;
};
I'm asked to make a create function as given below:
struct product_t *createProduct(char *data, int id)
so I thought of creating a new struct called data with pointers referring to the product struct:
struct data {
... | |
doc_23532048 | I don't mean an actual popup window, just the image popping out or blowing up in the screen.
So if my html code looks something like:
<p id="item1">item1 text</p>
<p id="item2">item2 text</p>
<p id="item3">item3 text</p>
When I mouse over the text “item1 text” on the HTML page, I want an image called “image1” to popup... | |
doc_23532049 | id,name,text,sth
1,"John","Text with 'c,o,m,m,a,s' and \"",qwerty
2,Bob,"",,sth
after parsing, I'd like to have in the set the same text as in input instead of:
id,name,text,sth
1,John,Text with 'c,o,m,m,a,s' and \",qwerty
2,Bob,null,null,sth
that element
"John" will parsed to string "John" ( instead of John )
"" -... | |
doc_23532050 | Thanks
A: No, there is nothing built in to do this, you would need to roll your own.
| |
doc_23532051 | Error Context: {
"body": {
"error": {
"code": 500,
"message": "[DATABASE_ERROR]: Attempt to read the ConditionOrderEntity of this template resulted in too many rows (2) for project [0000000000]",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500
}
}
| |
doc_23532052 | With phonegap
It is like a turorial in how to read Quran
I want it to keep the progress the user nad made and resume it when reopen
Any help or clue?
A: You can Store the last page visited in a cookie and redirect to that after the app loads
Demo -- visit a page re-click run
https://jsfiddle.net/Ldgz38s4/
Code
//check... | |
doc_23532053 | Something like this:
public class MyObjectModel
{
public int Variable1 {get;set;}
public int VariableN {get;set;}
}
Let's say variable1 holds the value of a count and I know that the count will never get to become very large (ie. number of upcoming appointments for a certain day). For now, I've put these data t... | |
doc_23532054 | var items = [{{type:t1,text:"abc"},{type:t2,data:"123"}}]
and view models:
function T1VM(t1) { ... }
function T2VM(t2) { ... }
How can I use the mapping plugin to map items to an observable array of matching view models?
A: It was too easy!
var mapping = {
create: function (options) {
if (options.data.ty... | |
doc_23532055 | The problem I am facing is when the user presses the HTML button the Raycast is happening as well that is because my Raycast code runs on the event 'ontouchstart'
This is unwanted behaviour for what I am trying to do.
I have tried using 'ontouchend' to detect Raycast instead, but that also doesn't solve the problem, I ... | |
doc_23532056 | My understanding so far
SCNTechnique can be configured with a sequence of render passes. A render pass allows for injection of a vertex and a fragment shader. These shaders are written in Metal. The Metal Shading Language Specification describes what inputs/outputs are supported for these two.
The vertex shader is call... | |
doc_23532057 | I want to convert it to Thu Mar 24 22:00:00 pm. How can I do that using SimpleDateFormat?
A: Look at this page and try this:
SimpleDateFormat dateFormat = new SimpleDateFormat("E MMM d hh:mm:ss aa");
String formattedDate = dateFormat.format(new Date());
System.out.println(formattedDate);
*
*E stands for a day as w... | |
doc_23532058 | String wsUrl = "https://218.17.179.67:8443/QhicPos/doService?wsdl";
String method = "doPosRequest";
QName qName = new QName("http://service.pos.qhic.com/", method);
HttpsURLConnection.setDefaultSSLSocketFactory(TrustAnyFactory.getInstance().getSslContext().getSocketFactory());
HostnameVerifier allH... | |
doc_23532059 | button working fine:
<Button Grid.Row="0" Grid.Column="4" x:Name="btnIdDav" Padding="10" Margin="3" TextColor="#FFF" BackgroundColor="#565C5A" Clicked="btnIdDav_Clicked" WidthRequest="45">
<Button.ImageSource>
<FontImageSource FontFamily="{StaticResource FontAwesomeSolidOTF}" Glyph="" Color="#fff"/>
... | |
doc_23532060 | bathroom = response.xpath(“.//div[1][contains(., 'Baños’)]/text()").extract_first()
And I get this error:
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
I've tried the solutions given in these other similar questions:
Filtering out certain bytes in python
Scrapy ... | |
doc_23532061 | Because the button always exist, using following code does not help.
wait.until {
driver.find_element(:id => 'changeStatus')
}
How can i ask webdriver to wait for 5 seconds before checking the button text after clicking.
A: You should be able to do a wait and look for the text instead
wait.until {
driver.find_e... | |
doc_23532062 | I have done to classify the email as spam or nonspam according to the email's subject. For my second task, I have to classify the emails as spam or nonspam according to the time. If the email gets received on ('Friday and 'Saturday') it should be classified as spam. Otherwise nonspam. I literally don't have any idea ho... | |
doc_23532063 | package pcsettingfirstpj;
public class Sequential {
private static int sequential(int[] data, int target){
int i;
for (i = 0; i < data.length; i++)
if (data[i] == target) return i;
return -1;
}
public static void main(String[] args) {
// TODO Auto-generated me... | |
doc_23532064 | The HttpContext.Request returns all other parts of the URL except the querystring.
With this url https://localhost:44394/Trackers/Create?Place=Vision_College
and this Model
[BindProperties(SupportsGet = true)]
public partial class Tracker
{
[FromQuery(Name = "Place")] //populates it from the query
... | |
doc_23532065 | from pdf2image import convert_from_path
from PIL import Image, ImageChops
import cv2
import numpy as np
from shapely.geometry import Polygon
import svgwrite
import json
from defcon import Font
import ufo2ft
from fontTools import svgLib
I have a svg file looks like the image below this sentence(The image is upside-down... | |
doc_23532066 | I am just having a problem with not being able to validate the input because it is undefined.
**If my HTML is needed I will post, but i think this can be solved without it.
function fnValidation()
{
var validator = /^[a-zA-Z]*$/; //regex
var input = document.getElementById("fn").innerHTML;
... | |
doc_23532067 | But when I import it and try to use it says its methods are undefined.
Here is the code
service.ts
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class Service {
public publicMethod() {}
}
component.ts
import { Service } from 'path/to/service';
import { Component } from '@a... | |
doc_23532068 | #in user.py
class User(object):
def __init__(self, first_name: str, last_name: str):
self.first_name = first_name
self.last_name = last_name
def create_full_name(self):
return f'{self.first_name} {self.last_name}'
#in conftest.py
@pytest.fixture(scope='function')
def normal_user():
... | |
doc_23532069 | This command doesn't provide my custom index, only system ones.
$ curl -XGET localhost:9200/_cat/indices?pretty | grep 2019.10.17
What should I do to create index and restore/push logs to it?
Is it the issue of logstash or Elasticsearch?
Looks like logstash.
| |
doc_23532070 | In my folder I have files like lesson1.mp4, lesson2.mp4, lesson3.mp4 ... and so on. And in the text file, I have the new names 1-newname, 2-newname, 3-newname (separated by a newline).
First, I change the directory and store the variable in file and then I use file.readlines() to separate line by line.
import os
os.ch... | |
doc_23532071 | int Integer;
public void Test() {
Console.WriteLine(Integer);
}
If I change int Integer to int Integer { get; set; }, the code that uses it stays unchanged. Is there any case when I need to change calling code?
The same question about readonly fields and get-only properties.
EDIT: I clarified my question. Also, tak... | |
doc_23532072 | The request makes it to bar, executes but because the apache server does not add any CORS headers, the browser says the request failed.
The CORS documentation on MDN explains that the browser Javascript doesn't know the specifics of the failure, it just knows that the response failed.
My question is, does the respons... | |
doc_23532073 | This app has been containerized to windows container and deployed on Azure app service webapp as containers.
It has option to mount Azure files storage as persistent storage volume to the container.
So I have mapped the mount to point the upload directory. The idea is when user upload the file, it will go to Azure File... | |
doc_23532074 | public class Locations_ByUser : AbstractIndexCreationTask<LocationModel>
{
public Locations_ByUser()
{
Map = locations => from location in locations
select new { location.UserId };
}
}
I am registering the index with the following code
protected ... | |
doc_23532075 | My problem occurs when I enter 7 or more values; the values that go beyond the buffer size are still used as the program runs in a loop, constatly filling up buf with what is left in stdin (at least, that is how I think it is working).
#define SIZE 8
char *readLine(char *buf, size_t size) {
printf("$ ");
fgets... | |
doc_23532076 | I would like to color cells depending on the value of numtype. For example, if numtype = 'abc', the nummin cell will be lightblue and nummax will be lightred. So i would expand this for other possible values of numtype and set colors for nummin/nummax accordingly.
I found documentation for exceljs at https://github.c... | |
doc_23532077 | <asp:ListView runat="server" ID="FullInfoListView">
<LayoutTemplate>
<table class="tablestripe" width="100%">
<asp:Placeholder runat="server" ID="itemPlaceholder" />
</table>
</LayoutTemplate>
<ItemTemplate>
<tr valign="top" class="eventrow1">
<td colspan="2">... | |
doc_23532078 | Here is a gif which shows what I am talking about:
https://imgur.com/a/hnYLTyA
A: *
*Use Stack to position the drawer on top of calculator screen.
*Use Positioned for the drawer and set its left parameter according to the amount that it's pulled.
*Set the left parameter of the drawer to the end of the screen init... | |
doc_23532079 | MSI (s) (F8:C4) [12:39:26:183]: Executing op: CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (F8:F8) [12:39:26:188]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI7B14.tmp, Entrypoint: WriteIIS7ConfigChanges
Writ... | |
doc_23532080 | [product_categories ids="135, 214, 244, 1958, 72, 205, 43, 559, 73, 1033, 69, 2009, 1365, 1250, 462, 346, 1649, 1344, 1379, 1373" orderby="id"]
to display Woocommerce product categories on a Wordpress site. It works, but I need the categories to be displayed in the order that they're listed in the ids quotations. I k... | |
doc_23532081 |
"{"error": "(1305, u'PROCEDURE tbl_user.sp_createUser does not exist')"}.
I see it in terminal, but can't seem to get my app to find it. I have a hunch the stored procedure is in the wrong database, but I can't find any clear instructions on how to confirm which DB my procedure is in.
I've tried looking at all the ... | |
doc_23532082 | I'd like to display this information into a lightbox of some sort. I've researched the lightbox2 and colorbox modules but it seems that those are mainly used for media.
Has anyone done this and/or are there any suggestions as to how I can accomplish this?
A: The calendar module has a popup option built in. If you'd l... | |
doc_23532083 |
Printing description of error.some.instance_type:
expression produced error: error: /var/folders/k8/ppsgsylx27b5061mkcw9c7n40000gn/T/./lldb/4446/expr7.swift:1:65: error: use of undeclared type 'Builtin'
Swift._DebuggerSupport.stringForPrintObject(Swift.UnsafePointer(bitPattern: 0x101b94360)!.pointee)
What is 'Bui... | |
doc_23532084 | DECLARE @Customers TABLE (Customer_Name VARCHAR(20), Residence_State VARCHAR(20), Move_In_Date DATE)
INSERT INTO @Customers VALUES
('Rachel', 'Wisconsin', '2010-01-01'),
('Rachel', 'Nevada', '2012-06-03'),
('Rachel', 'Arizona', '2018-02-01'),
('Chad', 'Texas', '2010-01-01'),
('Chad', 'Idaho', '2012-04-15'),
('Chad', '... | |
doc_23532085 | When I connect my device (Moto G4 plus) running Android 7 - it receives the FCM message which is sent via the FCM API by a separate server app. I can process the data in the FCM message on the code running on the device.
However the emulators in Android Studio (API 24, 25) DO NOT receive the message at all. The emulato... | |
doc_23532086 | I want to create a dropdown in a splunk dashboard based on the first field (A).
So my problem here, is first, how to extract the first string before semicolon.
And Second, how to use that field dynamically in the dropdown
| |
doc_23532087 | I'm deploying on Azure and therefore would like to look up the credentials from Azure app settings in code on app startup.
Is there a way to configure Elmah emails declaratively in code rather than using the <errorMail> tag?
A: The best way to do this is by overriding the SendMail method of Elmah's ErrorMailModule, as... | |
doc_23532088 | Thanks
Code1 : with Main method
import javax.swing.*;
import javax.swing.text.MaskFormatter;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.*;
import java.awt.image... | |
doc_23532089 | Currently php pages don't see Unicode 'get' arguments. The pages see the arguments as question marks, although we added <META http-equiv="Content-Type" content="text/html; charset=utf8">
See sample here.
Many thanks!
A: Output the strings trough utf8_encode();
| |
doc_23532090 | join p in db.Users on e.ParentID equals p.Id
select new ViewEmployees
{
EmployeeName = e.Name,
... | |
doc_23532091 | This is a line from my stored procedure:
SET @AdIDNumber = PARSENAME(REPLACE(@AdIDNumber, '-', '.'), 1);
ADIDNumber is a parameter being passed into this stored procedure. I'm trying to get the last component of the ADIDNumber nvarchar separated by '-'. I am getting the following error:
Conversion failed when convert... | |
doc_23532092 | TestID | Logic | Criterion_1 | Criterion_2 | ... | Criterion N
---------------------------------------------------------------------------------------
101 | 1 AND 2 | Apple | California | ... | Space Quest 6
102 | (1 OR 2) AND (3 OR 5 OR 6) | Banana | New Jer... | |
doc_23532093 | Is there any problem if all computers are running simultaneously?
And what about SQL Server connection pools?
Note that when I try to find active connections of my database on SQL Server using this command:
sp_who
I found more than 20 active connection .
Does this cause a problem ?
A: For Windows 7 runing SQL Server... | |
doc_23532094 | I need that flash is worked permanently, regardless of outside light.
In order to accomplish it i have changed one line of code:
private void setAutoFlash(CaptureRequest.Builder requestBuilder) {
if (mFlashSupported) {
// requestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_O... | |
doc_23532095 | import cv2
import numpy as np
img = cv2.imread('\\home\\gaiarsa\\matrix\\poste.jpg')
gray = cv2.imread('\\home\\gaiarsa\\matrix\\poste.jpg', 1)
sift = cv2.xfeatures2d.SIFT_create()
dummy = np.zeros((1,1))
kp = sift.detect(gray, None)
img = cv2.drawKeypoints(gray, kp,dummy, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KE... | |
doc_23532096 | Logging the EXTRA_STATE and EXTRA_STATE_RINGING it gives me the same response that they are both "RINGING" I have also tried comparing it directly to the text "RINGING"
In OnReceive
Log.d("DebugData", intent.getExtras().getString(TelephonyManager.EXTRA_STATE));
Log.d("DebugData", TelephonyManager.EXTRA_... | |
doc_23532097 | var contactDetails = context.contacts
.Where(s=>s.contact_code == contactCode)
.Join(context.accounts, s => s.)
It will not list down the properties after "."
Any Idea? I have import the using System.Linq too.
A: var contactDetails = (from con in context.contac... | |
doc_23532098 | Is it possible to dynamically create previous and next buttons in a jquery dialog box?
I have a list of links, and I would like to click on a link and have a dialog box open. In that dialog box would have a previous and next button that when clicked on would close the current dialog box and open the previous or next it... | |
doc_23532099 | 1.In app/views/participations/show.html.erb
I would like to make a call like this to return prefered exam_center's city field which kept under the exam_centers table:
<%= @participation.exam_center_preference %>
But it's only returning the ID. I need to fetch the exam_center's "city" field with this ID number.
2.In ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.