problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
What are enum Flags in TypeScript? : <p>I'm learning TypeScript using <a href="https://basarat.gitbooks.io/typescript/content/docs/enums.html" rel="noreferrer">this ebook</a> as a reference. I've checked the <a href="https://www.typescriptlang.org/docs/handbook/enums.html" rel="noreferrer">TypeScript Official Documenta... | 0debug |
static av_cold int init_buffers(SANMVideoContext *ctx)
{
av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
if (!ctx->version)
av_fast_padde... | 1threat |
Amazon Redshift Grants - New table can't be accessed even though user has grants to all tables in schema : <p>I have a bit of a funny situation in Amazon Redshift where I have a user X who has grant select on all tables in schema public, but once a new table is created, this grant doesn't seem to apply to the new table... | 0debug |
static void cqueue_free(cqueue *q)
{
av_free(q->elements);
av_free(q);
}
| 1threat |
Grant drop permission on storedprocedure to user : How do I Grant drop permission of storeprocedure in sql server to user via script.
I tried the following but it does not work
use XpressFeed_Dev
GRANT DROP ON procedure::getPartyDuns TO "INT\svc-w-corerefdata-de";
use XpressFeed_Dev
ALTER AUTHORIZATION ON [... | 0debug |
static void gen_compute_eflags_p(DisasContext *s, TCGv reg)
{
gen_compute_eflags(s);
tcg_gen_shri_tl(reg, cpu_cc_src, 2);
tcg_gen_andi_tl(reg, reg, 1);
}
| 1threat |
returning numpy arrays via pybind11 : <p>I have a C++ function computing a large tensor which I would like to return to Python as a NumPy array via <a href="https://github.com/pybind/pybind11" rel="noreferrer">pybind11</a>. </p>
<p>From the documentation of pybind11, it seems like using <a href="http://en.cppreference... | 0debug |
def float_to_tuple(test_str):
res = tuple(map(float, test_str.split(', ')))
return (res) | 0debug |
static void memcard_write(void *opaque, target_phys_addr_t addr, uint64_t value,
unsigned size)
{
MilkymistMemcardState *s = opaque;
trace_milkymist_memcard_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_PENDING:
s->regs[R_PENDIN... | 1threat |
Python: Check if dataframe column contain string type : <p>I want check if columns in a dataframe consists of strings so I can label them with numbers for machine learning purposes. Some columns consists of numbers, I dont want to change them. Columns example can be seen below:</p>
<pre><code>TRAIN FEATURES
Age ... | 0debug |
static int vtd_irte_get(IntelIOMMUState *iommu, uint16_t index,
VTD_IRTE *entry)
{
dma_addr_t addr = 0x00;
addr = iommu->intr_root + index * sizeof(*entry);
if (dma_memory_read(&address_space_memory, addr, entry,
sizeof(*entry))) {
VTD_DPRINTF... | 1threat |
SQl Query - how can I write this query : Spent a while on this still cant quite get it. I have some rows in a table like this:
uuid, pos (R|S|N), number (1-10), account (string), xtype (string)
A unique row is identified by uuid, pos, number
I am trying to write a query that can find occurrences of:
sa... | 0debug |
Close a form from another form [Pascal] : Let's say I have two forms "Form1" and "Form2".
Form1 contains two buttons, one that creates and displays Form2 and a button to close Form2.
To create Form2 i use:
Form2 := TForm2.Create (Self);
Form2.Show;
How do I close Form2 from Form1? | 0debug |
How to adjust width of the th as per the td width using css : <p>I have a table using <code>display:block</code> for <code>thead</code> and <code>tbody</code>. if the data in <code><td></code> increases, the <code><th></code> also needs to increase the width but now it won't works like that....Because of <c... | 0debug |
def check_isosceles(x,y,z):
if x==y or y==z or z==x:
return True
else:
return False | 0debug |
Html5 help needed, Can't fathom the inline and div elements : [Code screenshot][1]
[Website screenshot][2]
[1]: https://i.stack.imgur.com/6g0g4.png
[2]: https://i.stack.imgur.com/KG0nW.png
I'm trying to put the mailing list button to the right side of the address. I am just starting out and this has... | 0debug |
Woocommerce : Add to cart with custom meta data : Hi is there a way to add a custom meta data to a single cart product?
<br/><br/>
**Example:**
**custom_price = 99.99**<br/>
**custom_reference_meta = REF0019**<br/>
<br/><br/>
href=”http://yourdomain.com/?<b>add-to-cart</b>=25&<b>custom_price=</b>99.99&<b>custom... | 0debug |
The lambda expression is unused : <p>While using Android's <code>Switch</code>, I was attaching a <code>setOnCheckedChangeListener</code> to it and got this warning </p>
<blockquote>
<p>The lambda expression is unused. If you mean a block, you can use 'run {...}'</p>
</blockquote>
<p>Here' the code snippet:</p>
<p... | 0debug |
void ff_mjpeg_encode_picture_header(AVCodecContext *avctx, PutBitContext *pb,
ScanTable *intra_scantable,
uint16_t intra_matrix[64])
{
int chroma_h_shift, chroma_v_shift;
const int lossless = avctx->codec_id != AV_CODEC_ID_MJPEG;
... | 1threat |
void tcg_func_start(TCGContext *s)
{
tcg_pool_reset(s);
s->nb_temps = s->nb_globals;
memset(s->free_temps, 0, sizeof(s->free_temps));
s->nb_labels = 0;
s->current_frame_offset = s->frame_start;
#ifdef CONFIG_DEBUG_TCG
s->goto_tb_issue_mask = 0;
#endif
s->gen_op_buf[0]... | 1threat |
static void decode_mb(MadContext *t, int inter)
{
MpegEncContext *s = &t->s;
int mv_map = 0;
int mv_x, mv_y;
int j;
if (inter) {
int v = decode210(&s->gb);
if (v < 2) {
mv_map = v ? get_bits(&s->gb, 6) : 63;
mv_x = decode_motion(&s->gb);
... | 1threat |
static void filter_edges_16bit(void *dst1, void *prev1, void *cur1, void *next1,
int w, int prefs, int mrefs, int parity, int mode)
{
uint16_t *dst = dst1;
uint16_t *prev = prev1;
uint16_t *cur = cur1;
uint16_t *next = next1;
int x;
uint16_t *prev2 = pari... | 1threat |
How can i fix the terminated console : I am trying to do cipher game. Our teacher said it will be 2 mode. First mode will be normal mode which is one of the quote will be choosen randomly. Second mode is the test mode which is you will choose a quote. In the test mode i cant go further because it says terminated i dont... | 0debug |
Find items, related to article by name : <p>I have an article (title, body) stored in mysql, and i have about 1M rows (name) stored in mysql and indexed with elasticsearch. How can i find rows, which names are found (100% match of name) in article title or body? Thanks for any suggetions.</p>
| 0debug |
Debug both javascript and c# in ASP.NET Core MVC using VS Code : <p>Is there a way to set breakpoints and debug javascript and c# at the same time in VS Code (on macOS)?</p>
<p>I have installed the <a href="https://code.visualstudio.com/blogs/2016/02/23/introducing-chrome-debugger-for-vs-code" rel="noreferrer">chrome ... | 0debug |
libstdc++.so.6: version `GLIBCXX_3.4.20' not found : <p>To upload the raw-reads > 2GB to SRA on Genebank, I installed aspera connect plug-in on ubuntu 16.04. But the plug-in did not pop up as indicated by the instruction on the genebank SRA portal. </p>
<p>I got this error on the terminal as I initializing the plug-i... | 0debug |
creating a matching card game (javascript) : I want to create a matching card game and I have an issue in showing the images that suppose to be hidden. When I click on a card, the path of the image will show instead of the actual image.
here is all the codes I have wrote:
<!DOCTYPE html>
<html>
... | 0debug |
Submitting forms without server side scripts : <p>I would like to be able to submit forms without server side scripts. Is this possible? I want it to be like prompt, where the user's input is stored in a variable. Is there a way to make it so whenever the user clicks the submit button, whatever they entered in the form... | 0debug |
second largest digit in array : <p>We have to use an array as input and are supposed to output the second maximum element in it.</p>
<p>For instance if our input is a[]=10 20 30 40 50 60 70, the program should return 60. I've heard it's a very basic problem but I am new to java programming and can't figure it out.</p>... | 0debug |
Not able to parse when String has dot : <p>I am trying to convert <code>String temp = 129.70</code> to number.</p>
<p><strong>I tried:</strong></p>
<pre><code>String decimalNumber= "-129.70";
System.out.println(Integer.parseInt(decimalNumber));
</code></pre>
<p>But it is giving me exception <code>Exception in thread... | 0debug |
Wrong value gets stored in the list : <p>This should store [1,2,3,4,5] in the list but it stores [1,1,1,1,1] instead:</p>
<pre><code>l=[0]*5
for x in range(5):
y=1
l[x] = y
y+=1
print (l)
</code></pre>
| 0debug |
Connect with .net core to SSAS : <p>I'm trying to connect Microsoft SQL Server Analysis server ( SSAS ) from .net core. At first I tried using <code>Microsoft.AnalysisServices.AdomdClient</code>, but it's not compatible with .net core.</p>
<p>Is there a way to reach SSAS and fetch some data in any other way using .net... | 0debug |
Error: Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat : <p>After upgrading to Android Studio 3.1, I started to get following error during build. Project uses multidex and DX is enabled by default as you would notice in the error. I tried to check dependency graph to... | 0debug |
void swri_resample_dsp_init(ResampleContext *c)
{
#define FNIDX(fmt) (AV_SAMPLE_FMT_##fmt - AV_SAMPLE_FMT_S16P)
c->dsp.resample_one[FNIDX(S16P)] = (resample_one_fn) resample_one_int16;
c->dsp.resample_one[FNIDX(S32P)] = (resample_one_fn) resample_one_int32;
c->dsp.resample_one[FNIDX(FLTP)] = (resample_... | 1threat |
stack_array in C++ Core Guidelines : <p>The C++ Core Guidelines mention something called a <a href="https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Res-stack"><code>stack_array</code></a>. Its usage looks like:</p>
<pre><code>const int n = 7;
int m = 9;
void f()
{
std::array<int, n... | 0debug |
Hide all li elements matching string : <p>I have a list that I want to hide all li elements containing a certain text. Lets say it looks like this: </p>
<pre><code><ul>
<li>text historical</li>
<li>text</li>
<li>text</li>
<li>text</li>
<li>text... | 0debug |
void vnc_tls_client_cleanup(VncState *vs)
{
if (vs->tls.session) {
gnutls_deinit(vs->tls.session);
vs->tls.session = NULL;
}
g_free(vs->tls.dname);
}
| 1threat |
Nodejs request: HPE_INVALID_HEADER_TOKEN : <p>I receive <code>HPE_INVALID_HEADER_TOKEN</code> on a certain page using <code>request</code> module. From what I've found on Google, this is caused by an incorrect / malformed server response, however the latter is not under my control. Can I configure request to ignore inv... | 0debug |
static inline int gen_intermediate_code_internal(TranslationBlock * tb,
int spc, CPUSPARCState *env)
{
target_ulong pc_start, last_pc;
uint16_t *gen_opc_end;
DisasContext dc1, *dc = &dc1;
int j, lj = -1;
memset(dc, 0, sizeof(DisasContext));
dc->tb = tb;
pc_start = tb->pc;
... | 1threat |
void palette8torgb15(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette)
{
unsigned i;
for(i=0; i<num_pixels; i++)
((uint16_t *)dst)[i] = ((uint16_t *)palette)[ src[i] ];
}
| 1threat |
Most Pythonic way to declare an abstract class property : <p>Assume you're writing an abstract class and one or more of its non-abstract class methods require the concrete class to have a specific class attribute; e.g., if instances of each concrete class can be constructed by matching against a different regular expre... | 0debug |
i want to get only the decimal value of the numbers divided by 200 : i want to get only the decimal value of the total. Per example
X=900
Y=200
Q=X/Y = 4.50 // I want to get .50 from results
| 0debug |
Class grouping in C# : My question seems weird and maybe not understandable. Sorry for my bad english.
I have 3 classes called SmallStick, LongStick and OldShovel.
Now I want a list of these classes in one class.
Here are sample codes:
My "Item" Classes:
public class SmallStick : IItem
{
... | 0debug |
What is the difference between AssetImage and Image.asset - Flutter : <p>In my application, I use these 2 classes but I don't know which one I should prioritize.</p>
<pre><code>Image.asset('icons/heart.png')
AssetImage('icons/hear.png')
</code></pre>
<p>Maybe there is one who fetches the image faster.</p>
| 0debug |
How do you swap character in an array in C#? : <pre><code>for (int i = 0; i < s.Length -1; i++)
{
temp = s[i]; // no errors here
s[i] = s[j]; //Property or indexer string.this[int] cannot be assigned to -- it is read only
s[j] = temp; //Property or indexer string.this[int] cannot be assigned to -- it is read o... | 0debug |
static int v9fs_synth_mknod(FsContext *fs_ctx, V9fsPath *path,
const char *buf, FsCred *credp)
{
errno = EPERM;
return -1;
}
| 1threat |
static int flv_write_trailer(AVFormatContext *s)
{
int64_t file_size;
AVIOContext *pb = s->pb;
FLVContext *flv = s->priv_data;
int i;
for (i = 0; i < s->nb_streams; i++) {
AVCodecContext *enc = s->streams[i]->codec;
if (enc->codec_type == AVMEDIA_TYPE_VIDEO &&
... | 1threat |
Organization db for blog posts with Mysql and Php : <p>I intend to write a blog for life stories. I will post my photos and text and share it with other people. At the very beginning there was a question, how to organize a database?
I'm going to do so in the article would be a photo and text.
While there is an option i... | 0debug |
List<comma-separated strings> => List<string>? : <p>Trying to come up with a LINQy way to do this, but nothing's coming to me.</p>
<p>I have a List<> of objects which include a property which is a comma-separated list of alpha codes:</p>
<pre><code>lst[0].codes = "AA,BB,DD"
lst[1].codes = "AA,DD,EE"
lst[2].codes =... | 0debug |
int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force)
{
uint64_t features;
int r;
if (devfd >= 0) {
hdev->control = devfd;
} else {
hdev->control = open("/dev/vhost-net", O_RDWR);
if (hdev->control < 0) {
return -errno;
}
}
r = ... | 1threat |
from math import tan, pi
def perimeter_polygon(s,l):
perimeter = s*l
return perimeter | 0debug |
Reuse image built by one service in another service : <p>Let's say I have this project structure:</p>
<pre><code>proj/
├── docker
│ └── myservice
│ └── Dockerfile
└── docker-compose.yml
</code></pre>
<p>And this is my <code>docker-compose.yml</code>: </p>
<pre><code>version: '3'
services:
master:
b... | 0debug |
How to implement two methods one from each interfaces which contain more method definition? : <pre><code>interface Ia
{
void m1();
void m2();
}
interface Ib
{
void m3();
void m4();
}
</code></pre>
<p>Here how to implement m1, and m3 in a class?</p>
| 0debug |
static inline void RENAME(bgr16ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
int i;
assert(src1==src2);
for(i=0; i<width; i++)
{
int d0= ((uint32_t*)src1)[i];
int dl= (d0&0x07E0F81F);
int dh= ((d0>>5)&0x07C0F83F);
int dh2= (dh>>11) + (dh<<21);
int d= d... | 1threat |
static void ppc_core99_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
const char *boot_device = machine-... | 1threat |
void hid_reset(HIDState *hs)
{
switch (hs->kind) {
case HID_KEYBOARD:
memset(hs->kbd.keycodes, 0, sizeof(hs->kbd.keycodes));
memset(hs->kbd.key, 0, sizeof(hs->kbd.key));
hs->kbd.keys = 0;
break;
case HID_MOUSE:
case HID_TABLET:
memset(hs->ptr.queue, 0, ... | 1threat |
static void cmd_read_toc_pma_atip(IDEState *s, uint8_t* buf)
{
int format, msf, start_track, len;
uint64_t total_sectors = s->nb_sectors >> 2;
int max_len;
if (total_sectors == 0) {
ide_atapi_cmd_error(s, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT);
return;
}
max_len = ... | 1threat |
static int jpeg2000_read_bitstream_packets(Jpeg2000DecoderContext *s)
{
int ret = 0;
int tileno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
Jpeg2000Tile *tile = s->tile + tileno;
if (ret = init_tile(s, tileno))
return ret;
s->g = tile... | 1threat |
How to instantiate a class within an C++ implementation file? : <p>I am trying to make use of some features of a third-party tool written in C++ and thought to just create a make file and include the sources of the tool. That was easy enough, but then I ran into some class declarations that were nested in an implementa... | 0debug |
Youtube-dl add metadata during audio conversion : <p>Sorry if this question is misguided. I'm using youtube-dl to download song videos as mp3's before adding them to itunes. The problem is that the videos dont seem to contain the metadata in there. I read what i could about --add-metadata option but from what i underst... | 0debug |
static void qio_channel_socket_dgram_worker_free(gpointer opaque)
{
struct QIOChannelSocketDGramWorkerData *data = opaque;
qapi_free_SocketAddressLegacy(data->localAddr);
qapi_free_SocketAddressLegacy(data->remoteAddr);
g_free(data);
}
| 1threat |
void qjson_finish(QJSON *json)
{
json_end_object(json);
}
| 1threat |
'router-outlet' is not a known element in angular2 : <p>I've just created a new angular project using the Angular CLI and scaffolded a new route and I am getting error as :</p>
<p>'router-outlet' is not a known element</p>
<p>Can anyone help me ?</p>
| 0debug |
static int asf_read_header(AVFormatContext *s)
{
ASFContext *asf = s->priv_data;
ff_asf_guid g;
AVIOContext *pb = s->pb;
int i;
int64_t gsize;
ff_get_guid(pb, &g);
if (ff_guidcmp(&g, &ff_asf_header))
return AVERROR_INVALIDDATA;
avio_rl64(pb);
avio_rl32(pb);
... | 1threat |
Grovy ALM HpQC - How to fill ST_ACTUAL design step field : i try to update HpQC result from SOAP-UI groovy script
but i'm currently unable to modify ST_ACTUAL field of design Step,
only to read the current value
for my try, i have 2 steps under a test
Could you help to solve my issue and tell me where i'm wrong
... | 0debug |
Create matrix from predefined cells in Excel/VBA : Good afternoon,
i'm quite new to VBA and Excel and i'm having the following problem.
I have a function that requires a symetric matrix as input to calculate the eigenvalue [=MEigenvalueMax (A1: C3)]. However, I have the data for the matrix in different cells. My qu... | 0debug |
How to remove the last comma in comma separated prime numbers within a range in C? : I have the code for finding prime numbers within a range.
The problem is to remove the last comma.
#include<stdio.h>
int main()
{
int a,b,i,x,c,f=1;
scanf("%d%d",&a,&b);
for(x=a;x<=b;(x++,... | 0debug |
How to run code after a delay in Xamarin Android : <p>I'm trying to show some code after a delay in my Android app.<br>
The Java code for doing this is something like this: </p>
<pre><code>new Handler().postDelayed(new Runnable()
{
@Override
public void run()
{
// your code that you want to delay here
... | 0debug |
Select to End/Beginning of Line in Visual Studio Code : <p>In most editors (including Visual Studio proper), I can use Shift+End to select all of the text from the cursor location to the end of the current line, and Shift+Home to select all text up to the beginning of the line.</p>
<p>These shortcuts don't seem to wor... | 0debug |
How do I prevent my page to reload or refresh on submitting the html form (textarea) on a button click? Please help me out. Thank you. : Here is the form------>
<form method="post">
<label class="left margin-left-10">Involve in discussion</label>
<br>
<textarea name="chat" placeholder="Write..... | 0debug |
static void omap_uwire_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_uwire_s *s = (struct omap_uwire_s *) opaque;
int offset = addr & OMAP_MPUI_REG_MASK;
if (size != 2) {
return omap_badwidth_write16(opaque, addr, value... | 1threat |
iscsi_aio_discard(BlockDriverState *bs,
int64_t sector_num, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = iscsilun->iscsi;
IscsiAIOCB *acb;
struct unmap_list list[1];
acb = q... | 1threat |
why cant i get the input through scanf on this program?apparently program is skipping all scanf lines? : why this program doesnt take input ?
#include<stdio.h>
struct student{
int rollno;
char name[10];
float marks;
};
struct student s;
void main()
{
scanf("\n enter roll no \t %d",&s.rollno... | 0debug |
PPC_OP(setlr)
{
regs->lr = PARAM1;
RETURN();
}
| 1threat |
Plot an ellipse with python 2.7 knowing the equation Ax^2 + Bxy + Cy^2 + Dx +Ey = 1 : I have this equation, which define an ellipse.
7.91x^2 + -0.213xy + 5.46y^2 -0.031x -0.0896y = 1
Of the general form: `Ax^2 + Bxy + Cy^2 + Dx +Ey = 1`
Can you give a script to simply plot it ?
I am using python 2.7 -- ... | 0debug |
No module named tensorflow in jupyter : <p>I have some imports in my jupyter notebook and among them is tensorflow:</p>
<pre><code>ImportError Traceback (most recent call last)
<ipython-input-2-482704985f85> in <module>()
4 import numpy as np
5 import six.moves.cop... | 0debug |
Endienness conversion between Little and Big : <p>does java have a function to make a direct conversion between Little and BigEndien?</p>
| 0debug |
BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs, Error **errp)
{
ImageInfo **p_image_info;
BlockDriverState *bs0;
BlockDeviceInfo *info = g_malloc0(sizeof(*info));
info->file = g_strdup(bs->filename);
info->ro = bs->read_only;
info->drv... | 1threat |
Is it possible to make Key Counter in Python? : <p>I want to make a key counter in Python. For example:
If I click "a" it will print "1", if I clicked next key it will print "2" ...</p>
<p>Can I make it in pygame? </p>
| 0debug |
static inline float32 ucf64_itos(uint32_t i)
{
union {
uint32_t i;
float32 s;
} v;
v.i = i;
return v.s;
}
| 1threat |
static void process_command(GAState *s, QDict *req)
{
QObject *rsp = NULL;
int ret;
g_assert(req);
g_debug("processing command");
rsp = qmp_dispatch(QOBJECT(req));
if (rsp) {
ret = send_response(s, rsp);
if (ret) {
g_warning("error sending response: %s", s... | 1threat |
static int avi_read_idx1(AVFormatContext *s, int size)
{
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
int nb_index_entries, i;
AVStream *st;
AVIStream *ast;
unsigned int index, tag, flags, pos, len, first_packet = 1;
unsigned last_pos= -1;
int64_t idx1_pos, first_pac... | 1threat |
How to return a Boolean from @ReactMethod in React Native? : <p>I want to return a Boolean from @ReactMethod in reactNative Android application.</p>
<p>But when I make method similar to </p>
<pre><code>@ReactMethod
public boolean retBoolean() {
return true;
}
</code></pre>
<p>and call it from JS component ,it return... | 0debug |
import re
regex = '^[aeiouAEIOU][A-Za-z0-9_]*'
def check_str(string):
if(re.search(regex, string)):
return ("Valid")
else:
return ("Invalid") | 0debug |
PHP CSS table page number position problems : I have a problem with page numbers showing in footer on table here is my PHP CODE
<tfoot>
<tr>
<th colspan="5">Page</th>
<?php
$sql = "SELECT COUNT(ID) AS total FROM Settings";
... | 0debug |
Error: evaluation nested too deeply: infinite recursion / options(expressions=)? in R on Mac : <pre><code>sum <- function(data){
sum(data)
}
median <- function(data){
median(data)
}
floor <- function(data){
floor(data)
}
evaluate <- function(func, dat){
func(dat)
}
</code></pre>
<p>This is my cod... | 0debug |
Removing ActionBar : <p>I'm looking forward to removing the ActionBar of a certain activity by changing the styles name value to Theme.AppCompat.Light.NoActionBar,but all that's doing is making the ActionBar disappear across all other Activities.Please Help!</p>
| 0debug |
Template and std::sort : I have this:
template <typename T1, typename T2>
struct coords {
T1 x;
T2 y;
};
std::vector<coords<int, int>> pixels;
and i want to sort each value pair of coords seperately using std::sort or any other function that can handle it.... | 0debug |
static int dca_parse(AVCodecParserContext *s, AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
DCAParseContext *pc1 = s->priv_data;
ParseContext *pc = &pc1->pc;
int next, duration, sample_rate;
if (s... | 1threat |
void palette8torgb32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
{
long i;
for(i=0; i<num_pixels; i++)
{
#ifdef WORDS_BIGENDIAN
dst[3]= palette[ src[i]*4+2 ];
dst[2]= palette[ src[i]*4+1 ];
dst[1]= palette[ src[i]*4+0 ];
#else
dst[0]= palette[ ... | 1threat |
How to send text to other user in same app : <p>Guys.. I am developing an app based on 20 questions concept. i need to send Question as text to other user and other user will respond to that Question in yes or No by pressing yes No button.. This must be online app and questions and answers history will be stored in dat... | 0debug |
optiminzing the query and export : below code gives the result but it take 5 min's to execute, after which I need export data to text. there are 12 lakhs records and it does not get export even after 9 hours. could you please help in optimizing the query and improving the execution performance and also help in getting ... | 0debug |
VSCode format curly brackets on the same line c# : <p>When using the Format Document command I'd like to change how the code formats.
I'm completely new to VSCode and I'm still having trouble navigating the settings, so easy to understand replies would be very helpful.
Currently the code is formatting like this:</p>
<... | 0debug |
How can i pass values using .html(data) on javascript? : On javascript i have the following code:
if (id == 'Log') {
$('#fileList').html(data);
Depending by the ID, i open a new html page. The problem is i need the ID even on the other html page. How can i pass the id to the othe... | 0debug |
Output in SVG format : <p>Does anyone have examples of how to output in SVG format? I did a search on the boards and didn't get anything to return.</p>
<p>My output contest numbers.</p>
<p>I'd like to write string of numbers, like 1,2,3 on a middle of page.</p>
| 0debug |
int ff_spatial_idwt_init2(DWTContext *d, IDWTELEM *buffer, int width, int height,
int stride, enum dwt_type type, int decomposition_count,
IDWTELEM *temp)
{
int level;
d->buffer = buffer;
d->width = width;
d->height = height;
d->stride = ... | 1threat |
Unable to align background color in html and css : I am a beginner to website design and development and also learning it. As a beginner i creating a site which is old bbc news website from the following archive link http://web.archive.org/web/20140402131524/http://www.bbc.co.uk/news/uk
so i am stcked at watch/listen... | 0debug |
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
{
int isv34, unsync;
unsigned tlen;
char tag[5];
int64_t next, end = avio_tell(s->pb) + len;
int taghdrlen;
const char *reason = NULL;
AVIOContext pb;
unsigned char *buffer = NULL;
int b... | 1threat |
window.location.href = 'http://attack.com?user=' + user_input; | 1threat |
Web apps without HTML or Javascript using WebAssembly and Dart? : <p>With the introduction of WebAssembly (<a href="https://webassembly.org/" rel="nofollow noreferrer">https://webassembly.org/</a>) it will be possible to run a web app in a web browser by using Dart without using Javascript and HTML at all?</p>
| 0debug |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.