problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
Pip install - Python 2.7 - Windows 7 : <p>I download the get-pip.py from <a href="https://pip.pypa.io/en/stable/installing/" rel="noreferrer">https://pip.pypa.io/en/stable/installing/</a> . Then i changed path in: system-variable environment into : C:\Python27\ArcGIS10.3\Lib\site-packages
after that i tried to run in ... | 0debug |
Difficulty dynamically adding a border around a div using Javascript : <p>We have a "Terms and Conditions" checkbox, and when "Place Order" is clicked, among other things, I want to validate that Terms&Conditions is checked, and if not, add a thin red border around the surrounding div. I am unable to get the follo... | 0debug |
In Xamarin XAML, how do I set a Constraint on a RelativeLayout using a Style? : <p>I am struggling to work out the XAML syntax to apply constraints to a <code>RelativeLayout</code> using a <code>Style</code>.</p>
<p>The first piece of Xamarin XAML below shows a pair of nested <code>RelativeLayout</code> elements used ... | 0debug |
Create TypeFaceSpan from TypeFace below SDK version 28 : <p>I found a way to <code>create</code> <code>TypeFaceSpan</code> from <code>TypeFace</code> like this :</p>
<pre><code>fun getTypeFaceSpan(typeFace:TypeFace) = TypeFaceSpan(typeFace)
</code></pre>
<p><strong>But</strong> this API is <strong>allowed</strong> on... | 0debug |
Can' solve the error in raspberry pi : i'm new to raspberry pi and wrote a simple led blink program:
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO,setmode(GPIO.BOARD)
GPIO.setup(3,GPIO.OUT)
while True:
GPIO,output(3,1)
time... | 0debug |
static int init(AVCodecParserContext *s)
{
H264Context *h = s->priv_data;
h->thread_context[0] = h;
return 0;
} | 1threat |
static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)
{
#ifdef HAVE_MMX
if(c->flags & SWS_ACCURATE_RND){
... | 1threat |
static MpegTSService *mpegts_add_service(MpegTSWrite *ts, int sid,
const char *provider_name,
const char *name)
{
MpegTSService *service;
service = av_mallocz(sizeof(MpegTSService));
if (!service)
return NULL;... | 1threat |
Oracle data types variations : <p>I'm a new beginner to Oracle ,I'm so confused about the data types .</p>
<hr>
<p>I don't know the difference between :</p>
<ul>
<li><code>INT</code>,<code>INTEGER</code>,<code>NUMBER</code></li>
<li><code>CHAR</code>,<code>CHAR VARYING</code> ,<code>CHARACTER</code>,<code>CHARACTER ... | 0debug |
bad request response to fetch REST API : I have built an API and app that uses that API. When I POST method via Postman it works fine but when I try fetch via app I get bad request 400 status response. What am I doing wrong?
here is my js code:
const myForm = document.getElementById('loginForm');
m... | 0debug |
How to serialize into Json C# DateTime value? : <p>I have an object <strong>model</strong> that contains <strong>DateTime</strong> property.
This object is being serialized into Json format by calling</p>
<blockquote>
<p>return Json(model);</p>
</blockquote>
<p>as a result, I am getting this string </p>
<blockquot... | 0debug |
how to view structure of blade template use PHPStorm? : `.php` could view structure of html but `.blade.php` couldn't in PHPStorm.how to use blade and view structure of html at the same time? | 0debug |
Extract text from specific HTML tag : <p>I'm coding little script and I've faced this problem</p>
<p>now I have this HTML code</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"... | 0debug |
Xcode 9 - failed to emit precompiled header : <p>I have a project in Objective-C as well as in swift by taking <code>MyProjectName-Bridging-Header.h</code> and i also configured the Objective-C Bridging Header.
Also i have added 'MyprojectName-Swift.h' in .pch file.</p>
<p>This works fine on xcode 8.2 but when i buil... | 0debug |
Angular 2 creating reactive forms with nested components : <p>My requirement is that I need to create a form with nested components.
I am creating components for each form field means for textbox there will
be one component, for radio button there will be another component like wise.<br>
<code><form [formGroup]="myF... | 0debug |
static enum AVPixelFormat webp_get_format(AVCodecContext *avctx,
const enum AVPixelFormat *formats)
{
WebPContext *s = avctx->priv_data;
if (s->has_alpha)
return AV_PIX_FMT_YUVA420P;
else
return AV_PIX_FMT_YUV420P;
}
| 1threat |
How to import gRPC empty and Google api annotations proto : <p>I am trying to use Google Cloud Endpoints to make a gRPC based api that can <a href="https://cloud.google.com/endpoints/docs/transcoding" rel="noreferrer">transcode incoming REST requests</a>. I am following <a href="https://github.com/GoogleCloudPlatform/p... | 0debug |
void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size)
{
MemoryRegion *mr = g_malloc(sizeof(*mr));
isa_mmio_setup(mr, size);
memory_region_add_subregion(get_system_memory(), base, mr);
}
| 1threat |
How to create a self contained .Net core application? : <p>I created an asp.net core on .Net core and planned to publish it on a Windows server. I don't want to install anything on the server so I want the application be self contained. </p>
<p>I selected the menu "Build-> Publish MyApp" and then created File system b... | 0debug |
VBA EXCEL LAST ROW INDEX ON ANOTHER WORKBOOK : This is part of a code i wrote under VBA Excel but it doesnt work
what im trying to do is create a loop on a sheet of another workbook but the last row index line of code seems not be working
I hope to find a solution with your interactions
[PLEASE CLICK HERE TO ... | 0debug |
How to get the local timezone from the system using nodejs : <p>Is there a way to obtain the local timezone from the system (eg:- ubuntu) using nodejs? </p>
<p>I used moment.js to extract the date and time values. But couldn't find a way to extract the timezone as well. </p>
| 0debug |
Why the input "abc!!!" but the output is not "abc+++"? : <p>I researching about input/output file.Below code relate some functions such as: fgetc(),fgets(),fputs(). i don't know why it does not work exactly as i want.Thank you so much ! Below is my code:</p>
<pre><code>#include <stdio.h>
int main()
{
FILE *fp... | 0debug |
How would I get the amount of business days in a month with LocalDate - Java : How would I go about getting the number of business days in a month with LocalDate? I've never used java.time before so I don't know all of its workings. I've been looking on this site to no avail along with searching for an answer. I also d... | 0debug |
static void ram_save_cleanup(void *opaque)
{
RAMState **rsp = opaque;
RAMBlock *block;
memory_global_dirty_log_stop();
QLIST_FOREACH_RCU(block, &ram_list.blocks, next) {
g_free(block->bmap);
block->bmap = NULL;
g_free(block->unsentmap);
block->unsen... | 1threat |
int av_append_packet(AVIOContext *s, AVPacket *pkt, int size)
{
int ret;
int old_size;
if (!pkt->size)
return av_get_packet(s, pkt, size);
old_size = pkt->size;
ret = av_grow_packet(pkt, size);
if (ret < 0)
return ret;
ret = avio_read(s, pkt->data + old_size, size);... | 1threat |
How to link HTML CSS and PHP together? : <p>I created a new PHP project using Netbeans and i have some trouble referencing the very same css file to all my links in the project.</p>
<p>This is what I have:
<a href="https://i.stack.imgur.com/32huH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/32huH... | 0debug |
Java: Cannot find symbol but typing is correct : <p>I made a class <code>Operator</code> and a method called <code>compare</code>. However, when call this method in my program, I always got error message </p>
<p><code>InfixToPostfix.java:17: error: cannot find symbol
System.out.println(compare(op,op1))... | 0debug |
static void qmp_output_type_str(Visitor *v, const char *name, char **obj,
Error **errp)
{
QmpOutputVisitor *qov = to_qov(v);
if (*obj) {
qmp_output_add(qov, name, qstring_from_str(*obj));
} else {
qmp_output_add(qov, name, qstring_from_str(""));
}
... | 1threat |
static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
st = avformat_new_stream(c->fc, NULL);
if (!st) return AVERROR(ENOMEM);
st->id = c->fc->nb_streams;
sc = av_mallocz(sizeof(MOVStreamContext));
if (!sc) return ... | 1threat |
Error in bind_rows_(x, .id) : Argument 1 must have names using map_df in purrr : <p>I'm using the spotifyr package to scrape spotify audio features for every song of specific albums in my dataset. My issue is that my dataset consists of some artists that are not on spotify -- so they shouldn't be returning any values. ... | 0debug |
JS Cannot read property "length" of undefined : <p>I'm trying to create an object using a given string where each word has a property stating its length. </p>
<pre><code>var strings = {};
function findLongestWord(str) {
var splitStr = str.split(" ");
for (var i = 0; i <= str.length; i++){
strings[splitS... | 0debug |
Compilation on Linux - In function '_start': (.text+0x20): undefined reference to 'main' : <p>I want to compile a series of cpp files on Linux. Using CentOS 7, in the Konsole, I type "g++ -std=c++11 main.cpp canvas.cpp patch.cpp utils.cpp", and I get an error: </p>
<pre><code>/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../... | 0debug |
What does authSource means in mongo database url? : <p>i am trying to connect to my mongo database with following connection string</p>
<pre><code>var Mongo_url = 'mongodb://MyUSer:tech@localhost:27017/chatme?authSource=admin';
</code></pre>
<p>I am getting error as </p>
<pre><code> assertionError: null == { [Mong... | 0debug |
Best practice for passing enum params in Web API : <p>I have a RESTful Web API project, and I have 2 different Enum scenarios that I'm unsure of re best practice.</p>
<p><strong>Scenario 1 : Straightforward Enum Param</strong></p>
<p>My API method requires a parameter called <code>ruleType</code>, with valid values b... | 0debug |
static void test_acpi_dsdt_table(test_data *data)
{
AcpiSdtTable dsdt_table;
uint32_t addr = le32_to_cpu(data->fadt_table.dsdt);
test_dst_table(&dsdt_table, addr);
ACPI_ASSERT_CMP(dsdt_table.header.signature, "DSDT");
g_array_append_val(data->tables, dsdt_table);
}
| 1threat |
How do i convert a binary int into a string? : <p>I'm looking to convert an integer representation of binary into a string. i'm not allowed to use bitwise operations.
when i converted the decimal integer value into that integer binary representation, i could've put the digits in a string and reverse, but i'm searching ... | 0debug |
static void vmxnet3_pci_realize(PCIDevice *pci_dev, Error **errp)
{
DeviceState *dev = DEVICE(pci_dev);
VMXNET3State *s = VMXNET3(pci_dev);
int ret;
VMW_CBPRN("Starting init...");
memory_region_init_io(&s->bar0, OBJECT(s), &b0_ops, s,
"vmxnet3-b0", VMXNET3_PT_REG... | 1threat |
This program crashes : I made up some program that view the 7*7 table of powered by....
It's work, but from some reason the program crash at the end of the program.
My compiler is GCC and I'm using C99.
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <str... | 0debug |
Creating multiple checkbox that needs to be send to database as 1 or 0 : Creating question multiple checkbox and I need to send two possible cases 1 or 0 to the database but instead it always sends the last one I click as 1 all the others 0. So for ex. if if click check the first one and the last I want to send to the... | 0debug |
static int mlib_YUV2ABGR420_32(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
assert(srcStride[1] == srcStride[2]);
mlib_VideoColorYUV2A... | 1threat |
i cant remove underline : <p>bold-normal,italic-normal working but underline-none not working? why?How fix first example with change styles parameters.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><html... | 0debug |
v-model doesn't support input type="file" : <p>I can not use <code>v-model</code> with file input, Vue says I must use <code>v-on:change</code>. Ok so I can use <code>v-on:change</code>, but how can I bind the "content" of the input file to a <code>data</code> property?</p>
<p>Let's say I want to bind it in a componen... | 0debug |
jquery click funtion order : I would like to know how can I change the background-image of another div element, when I click on it. I would like to see images one after another in order but what I get is the last one. Here is some code:
$(document).ready(function () {
// console.log('ready!');
$('.right')... | 0debug |
static void vfio_err_notifier_handler(void *opaque)
{
VFIOPCIDevice *vdev = opaque;
if (!event_notifier_test_and_clear(&vdev->err_notifier)) {
return;
}
error_report("%s(%04x:%02x:%02x.%x) Unrecoverable error detected. "
"Please collect any data... | 1threat |
How can I INSERT the value of TotalPrice by calculating automatically by (quantity*price) from Items table and Order table : CREATE TABLE Items(
ID INT IDENTITY(1,1) PRIMARY KEY,
Name VARCHAR(50),
Price FLOAT
)
CREATE TABLE Customers
(
Id INT IDENTITY(1,1) PRIMARY KEY,
Name VARCHAR(50),
[Address] VARCHAR(200... | 0debug |
Flexbox: Two elements on top of each other in flex-direction: row : <p>I am trying to achieve the following:</p>
<p><img src="https://i.stack.imgur.com/5qoEy.jpg" alt=""></p>
<hr>
<p>My first attempt was to use a helper div (green):</p>
<p><img src="https://i.stack.imgur.com/BTKTg.jpg" alt=""></p>
<p><a href="http... | 0debug |
how to find edge from data in excel : If I have this data :
'data for id_books that user_id borrowed
user_id id_book book
1 55 physic
2 55 physic
2 55 physic
3 ... | 0debug |
static int flic_decode_frame_15_16BPP(AVCodecContext *avctx,
void *data, int *got_frame,
const uint8_t *buf, int buf_size)
{
FlicDecodeContext *s = avctx->priv_data;
GetByteContext g2;
int pixel_ptr;
unsigne... | 1threat |
FormData append item in array : <pre><code> public List<Region> Regions { get; set; }
</code></pre>
<p>in model called News.An Region Model is</p>
<pre><code>public class Region
{
public int Id { get; set; }
public string Name { get; set; }
public static Region Parse(DataRow row)
... | 0debug |
comparing two big lists(More than 1 Lack) in java : I want to compare two big string lists faster in java which are not of equal size.
I want to know is there any better way to improve performance.
I see performance issue in
List<String> list1 = 1 Lack records and
List<String> list2 = 100 ... | 0debug |
static void pci_init_wmask(PCIDevice *dev)
{
int i;
int config_size = pci_config_size(dev);
dev->wmask[PCI_CACHE_LINE_SIZE] = 0xff;
dev->wmask[PCI_INTERRUPT_LINE] = 0xff;
pci_set_word(dev->wmask + PCI_COMMAND,
PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
... | 1threat |
Looking for a light-weight cross-platform C threading library : <p>I wanted to use OpenMP for this, but it is not appropriate for my purposes: creating my own thread pool.</p>
<p>So, this needs to be C89 code with, of course, platform specific code for windows and unices.</p>
<p>I need this for a C only library, so n... | 0debug |
ASP/C#/SQL - Checkbox List - Store multiple values in database where checked : I have a checkboxlist.
<asp:CheckBoxList ID="cbBowelSounds" runat="server">
<asp:ListItem Text=" <span style=font-weight:normal;>1 Quadrant</span>" Value="1 Quadrant" />
<a... | 0debug |
can someone help me I can't get rid of that typeerror:'tuple' object is not callable : <p><a href="http://i.stack.imgur.com/o7muZ.png" rel="nofollow">screenshot</a></p>
<p>I don't know how to have the right thing, like whats descriped in the picture
thank you</p>
| 0debug |
static int target_restore_sigframe(CPUARMState *env,
struct target_rt_sigframe *sf)
{
sigset_t set;
int i;
struct target_aux_context *aux =
(struct target_aux_context *)sf->uc.tuc_mcontext.__reserved;
uint32_t magic, size, fpsr, fpcr;
uint64_t pstat... | 1threat |
Is there a definitive *nix command line tool for inspecting protocol buffers? : <p>I'm looking for a command-line utility that will, at a minimum, render binary protobuf data in human-readable form. Filtering and selection options (along the lines of <code>cut</code> for text) would be nice, but the primary object is ... | 0debug |
static int yop_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
YopDecContext *s = avctx->priv_data;
int tag, firstcolor, is_odd_frame;
int ret, i, x, y;
uint32_t *palette;
if (s->frame.data[0])
avctx->release_buffer(avc... | 1threat |
Can this design be made with just CSS? : <p><a href="https://i.stack.imgur.com/7DTnG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7DTnG.png" alt="enter image description here"></a> <a href="https://i.imgur.com/D69glPV.png" rel="nofollow noreferrer">https://i.imgur.com/D69glPV.png</a> - I'm trying ... | 0debug |
void qmp_blockdev_open_tray(const char *device, bool has_force, bool force,
Error **errp)
{
if (!has_force) {
force = false;
}
do_open_tray(device, force, errp);
}
| 1threat |
static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = NULL;
struct iscsi_url *iscsi_url = NULL;
struct scsi_task *task = NULL;
struct scsi_inquiry_standard *inq = NULL;
s... | 1threat |
static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
AVStream *st, RMStream *ast, int read_all)
{
char buf[256];
uint32_t version;
int ret;
version = avio_rb16(pb);
if (version == 3) {
int header_size = avio_rb16(pb);... | 1threat |
aio_read_f(int argc, char **argv)
{
int nr_iov, c;
struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx));
BlockDriverAIOCB *acb;
while ((c = getopt(argc, argv, "CP:qv")) != EOF) {
switch (c) {
case 'C':
ctx->Cflag = 1;
break;
case 'P':
ctx->Pflag = 1;
ctx->pattern = parse_pattern(o... | 1threat |
List-initialization of an array without temporaries - not working in GCC : <p>Consider the following contrived example</p>
<pre><code>struct A {
A(int) {}
A(const A&) = delete;
~A() {}
};
struct B {
A a[2] = {{1}, {2}};
};
int main() {
B b;
}
</code></pre>
<p>It compiles fine in <strong>clan... | 0debug |
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
{
AVPacket out_pkt = { 0 }, flush_pkt = { 0 };
AVStream *st = s->streams[stream_index];
uint8_t *data = pkt ? pkt->data : NULL;
int size = pkt ? pkt->size : 0;
int ret = 0, got_output = 0;
if (!pkt) {
... | 1threat |
How to update S3 bucket with expire date using AWS CLI : <p>I would like to update the S3 bucket with the new content(create a folder within a bucket). What is the <code>--expires</code> date format. I didn't find any examples using <code>AWS CLI</code> on google. Can someone please help me on this thing? </p>
<p>S... | 0debug |
How do I get the private key for a GoDaddy certificate so I can install it on Ubuntu 14+? : <p>The cert I have from StartSSL comes with a key file. But from GoDaddy, I get only the 2 .crt files. GoDaddy's instructions are for CentOS and explicitly do not work for Ubuntu.</p>
<p>How do I export the private key ... or... | 0debug |
sql server query with joins : want to write a one single query that return table names,no of rows,table size,date table created and modified,table created by? i have 4 tables in my database.please help me out
--my database
CREATE TABLE Branch(
Br_ID int IDENTITY (1,1)PRIMARY KEY,
Name varchar(255),
Desp varchar (2... | 0debug |
C: Evaluation of pointer arihmetic: When is an operation done? : <pre><code>void add( int a, int b) {
a += b;
}
void sub( int *a, int* b) {
*a -= *b; }
void mul( int a, int *b) {
a *= *b;
}
void div( int *a, int b) {
*a /= b; }
int a = 2, b = 3;
sub( &a, &a );
add( a, b );
div( &a... | 0debug |
static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, const AVPacket *pkt)
{
AVCodecInternal *avci = avctx->internal;
int ret;
av_assert0(avci->compat_decode_consumed == 0);
*got_frame = 0;
avci->compat_decode = 1;
if (avci->compat... | 1threat |
Dynamic href tag React in JSX : <pre><code>// This Javascript <a> tag generates correctly
React.createElement('a', {href:"mailto:"+this.props.email}, this.props.email)
</code></pre>
<p>However, I'm struggling to recreate it in JSX</p>
<pre><code><a href="mailto: {this.props.email}">{this.props.email}</... | 0debug |
static int mov_write_wave_tag(AVIOContext *pb, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0);
ffio_wfourcc(pb, "wave");
if (track->enc->codec_id != AV_CODEC_ID_QDM2) {
avio_wb32(pb, 12);
ffio_wfourcc(pb, "frma");
avio_wl32(pb, track->tag);
}
... | 1threat |
how to fix it python flask we application error for internal server? : <p>I code in python using flask frame work to built an application But it showing internal server error while redirecting to the next page.
the log in page contain the path which going to redirect to the next
page.so how to fix that problem.
This ... | 0debug |
cursor.execute('SELECT * FROM users WHERE username = ' + user_input) | 1threat |
Qeustion about the consumption of memory in OpenCV : Cross post [here](http://answers.opencv.org/question/178949/problem-about-the-consumption-of-memory/)
***
I have such simple code:
//OpenCV 3.3.1 project
#include<opencv.hpp>
#include<iostream>
using namespace std;
using namespace cv;
... | 0debug |
void bdrv_set_dirty_tracking(BlockDriverState *bs, int enable)
{
int64_t bitmap_size;
if (enable) {
if (bs->dirty_tracking == 0) {
int64_t i;
uint8_t test;
bitmap_size = (bdrv_getlength(bs) >> BDRV_SECTOR_BITS);
bitmap_size /= BDRV_SECTORS_PER_... | 1threat |
insert a node at nth position in c ; whats wrong in this : Node* InsertNth(Node *head, int data, int position) {
int i;
struct Node *h=head;
struct Node *p=(struct Node *)malloc(sizeof(struct Node));
p->data=data;
for(i=0;i<position ;i++){
h=h->next;
}
p->next=h;
h=p;
if(position=... | 0debug |
db.execute('SELECT * FROM products WHERE product_id = ' + product_input) | 1threat |
Determine array type based on signature : Based on the signature, determine if the array is most likely perfect sized or oversized.
I know perfect sized arrays are used when the size of the array is known, otherwise an oversized array is used, but I don’t know how to determine the array type based on a signature.
F... | 0debug |
Get first and second element satisfying a CSS path : <p>Let's say I have a CSS path:
<code>.event__participant.event__participant--away</code>
How can I get the first element satisfying that path? Or second element? Or X element? I'm using selenium and I don't want to be getting all 100+ of them. <code>:nth-type-of</co... | 0debug |
int kvm_on_sigbus(int code, void *addr)
{
#if defined(KVM_CAP_MCE)
if ((first_cpu->mcg_cap & MCG_SER_P) && addr && code == BUS_MCEERR_AO) {
uint64_t status;
void *vaddr;
ram_addr_t ram_addr;
target_phys_addr_t paddr;
vaddr = addr;
if (qemu_ram_add... | 1threat |
XML Comparison which having attributes in SQL server : I'm having two XML strings in two seperate tables.
**ROOT**
**Node ID=** 1
**name** vignesh **/name**
**street** 1211 **/street**
**/Node**
**Node ID=** 2
**name** ram **/name**
**street** 333 **/street**
**/Node**
**/ROOT**
---... | 0debug |
missing composer.json file while installing composer for laravel : I am new to laravel. i am trying to install composer for laravel but getting this error:
Composer could not find a composer.json file in C:\xampp\htdocs
To initialize a project, please create a composer.json file as described in the https://... | 0debug |
How to ask user to input an integer number only : I want to ask the user to input only intiger, which will be stored in a variable,, and when user inputs a string, then ask again to input a number, not string.
Thanks
| 0debug |
Desecion trees ended up with same given tree after gain/split computation? : I was given a decision tree with sample data in class to solve. After computing the gaining/splitting tree with the sample data provided, I ended up with the same tree that was in the question.
What does that mean?
Can someone explain wha... | 0debug |
static int bitplane_decoding(uint8_t* data, int *raw_flag, VC1Context *v)
{
GetBitContext *gb = &v->s.gb;
int imode, x, y, code, offset;
uint8_t invert, *planep = data;
int width, height, stride;
width = v->s.mb_width;
height = v->s.mb_height >> v->field_mode;
stride = v->s.mb_s... | 1threat |
How do I write logs from within Startup.cs : <p>In order to debug a .net core app which is failing on startup, I would like to write logs from within the startup.cs file. I have logging setup within the file that can be used in rest of the app outside the startup.cs file, but not sure how to write logs from within the ... | 0debug |
void gic_set_priority(GICState *s, int cpu, int irq, uint8_t val)
{
if (irq < GIC_INTERNAL) {
s->priority1[irq][cpu] = val;
} else {
s->priority2[(irq) - GIC_INTERNAL] = val;
}
}
| 1threat |
how to scroll PDF which is inside iframe in selenium java : here is the tag of document place under
<iframe height="900" width="100%" src="/attachments/download/Attachment.pdf" title="document"/> | 0debug |
Creating Piano with C# part 2 : <p>In relation to my previous question I posted, I am creating a c# piano which will display a keyboard which when clicking on a music key will display a music note shape and output a music sound. However, I encountered another problem. When I click on a music key it outputs the required... | 0debug |
static void to_json(const QObject *obj, QString *str, int pretty, int indent)
{
switch (qobject_type(obj)) {
case QTYPE_QINT: {
QInt *val = qobject_to_qint(obj);
char buffer[1024];
snprintf(buffer, sizeof(buffer), "%" PRId64, qint_get_int(val));
qstring_append(str, buffe... | 1threat |
static int pcm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *src = avpkt->data;
int buf_size = avpkt->size;
PCMDecode *s = avctx->priv_data;
int sample_size, c, n, ret, samples_per_block;
uint8_t *... | 1threat |
Pointer offset causes overflow : <p>The following results don't make any sense to me. It looks like a negative offset is cast to unsigned before addition or subtraction are performed.</p>
<pre><code>double[] x = new double[1000];
int i = 1; // for the overflow it makes no difference if it is long, int or short
int j ... | 0debug |
static void scsi_hd_realize(SCSIDevice *dev, Error **errp)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
blkconf_blocksizes(&s->qdev.conf);
s->qdev.blocksize = s->qdev.conf.logical_block_size;
s->qdev.type = TYPE_DISK;
if (!s->product) {
s->product = g_strdup("QEMU HARDDIS... | 1threat |
Compile error when using std::cout between if/elseif statements : <p>I was wondering why I get a compile error when I try to use std::cout in between, say, an if statement and else if statement.
For example:</p>
<pre><code>if (condition)
{body}
std::cout << "hello world" << std::endl;
else if (condition)
{... | 0debug |
[] = (), () = (), and {} = () 'assignments' : <p>I was surprised to find the following, in Python 3, the first two raise nothing:</p>
<pre><code>>>> [] = ()
>>> () = ()
>>> {} = ()
File "<stdin>", line 1
SyntaxError: can't assign to literal
</code></pre>
<p>In Python 2.7, only the f... | 0debug |
Use & to create a pointer to member : I'm trying to create a function that takes in a string, the reverses it, which is all being done in main. Here's what I have so far.
#include <cstring>
#include <iostream>
#include <string>
std::string str = "zombie";
void Reverse... | 0debug |
static inline void RENAME(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0,
const uint16_t *buf1, const uint16_t *ubuf0,
const uint16_t *ubuf1, const uint16_t *vbuf0,
const uint16_t *vbuf1, const ... | 1threat |
Spring WebFlux, how can I debug my WebClient POST exchange? : <p>I am having trouble understanding what I've done wrong in constructing my WebClient request. I would like to understand what the actual HTTP request looks like. (e.g., dumping the raw request to console)</p>
<pre><code>POST /rest/json/send HTTP/1.1
Host:... | 0debug |
static void report_unavailable_features(FeatureWord w, uint32_t mask)
{
FeatureWordInfo *f = &feature_word_info[w];
int i;
for (i = 0; i < 32; ++i) {
if (1 << i & mask) {
const char *reg = get_register_name_32(f->cpuid_reg);
assert(reg);
fprintf(stderr, ... | 1threat |
void ff_flac_compute_autocorr(const int32_t *data, int len, int lag,
double *autoc)
{
int i, j;
double tmp[len + lag + 1];
double *data1= tmp + lag;
apply_welch_window(data, len, data1);
for(j=0; j<lag; j++)
data1[j-lag]= 0.0;
data1[len] = 0.0;
... | 1threat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.