problem
stringlengths
26
131k
labels
class label
2 classes
Why does Oracle add a hidden column here? : <p>We recently migrated a customer system to Oracle 12c and to the latest version of our product. This process includes running a number of migration scripts which mostly add or change tables. We noticed that adding a column to a table while also providing a default value, cr...
0debug
static MigrationState *migrate_init(Monitor *mon, int detach, int blk, int inc) { MigrationState *s = migrate_get_current(); int64_t bandwidth_limit = s->bandwidth_limit; memset(s, 0, sizeof(*s)); s->bandwidth_limit = bandwidth_limit; s->blk = blk; s->shared = inc; s-...
1threat
int ppcmas_tlb_check(CPUState *env, ppcmas_tlb_t *tlb, target_phys_addr_t *raddrp, target_ulong address, uint32_t pid) { target_ulong mask; uint32_t tlb_pid; if (!(tlb->mas1 & MAS1_VALID)) { return -1; } mask = ~(booke206_tlb_to_pa...
1threat
void cpu_alpha_store_fpcr (CPUState *env, uint64_t val) { int round_mode, mask; set_float_exception_flags((val >> 52) & 0x3F, &env->fp_status); mask = 0; if (val & FPCR_INVD) mask |= float_flag_invalid; if (val & FPCR_DZED) mask |= float_flag_divbyzero; if (val & FPC...
1threat
How to design nested 3 level json : <p>I have an object like below:</p> <pre><code>Parent: { Child1: [ {name:'grandchild1', value:'abc', checked:true}, {name:'grandchild2', value:'pqr', checked:false} ], Child2: [ {name:'grandchild3', value:'abcd', checked:false}, {name:'grandchild4', value:'pqrs', checked:true} ], pa...
0debug
What GPU computing can do? : <p>I almost know nothing about GPU computing. I already have seen articles written about GPU computing, say <a href="https://dl.acm.org/citation.cfm?id=1572769.1572796&amp;coll=ACM&amp;dl=ACM&amp;type=series&amp;idx=SERIES304&amp;part=series&amp;WantType=Proceedings&amp;title=GH" rel="nofol...
0debug
Parse retrieving value of nested object : Lets say i have object like this: var a = { b: { c: 1, d: 2 } } And i have saved this object in Parse. There are 100 objects, but with different c and d values. Can i do search searching only objects which contains d:2....
0debug
What exactly is an XML file? : <p>I've been working on various projects and have been seeing XML files pop up everywhere. </p> <p>I understand that XML stands for <em>Extensible Markup Language</em> and don't necessarily do anything themselves (other than describe data), but I'm curious why these files are so common a...
0debug
static int avi_write_ix(AVFormatContext *s) { AVIOContext *pb = s->pb; AVIContext *avi = s->priv_data; char tag[5]; char ix_tag[] = "ix00"; int i, j; assert(pb->seekable); if (avi->riff_id > AVI_MASTER_INDEX_SIZE) return -1; for (i = 0; i < s->nb_streams; i++) { ...
1threat
Find usage % of a directory in the disk : <p>How to find the % of disk space used by a directory using du command in linux. </p>
0debug
How to fix Time Limit Exceeded Error : For n (0 < n < 10^9), calculate this Eq re=(2^n)%1000000007 but for n=10^9 I take Time Limit Exceeded Error in online judge What can I do to solve this error ? int main() { int n,i,re=1; scanf("%d",&n); for(i=0; n>i; i++) re=(2*re)%1000000007; ...
0debug
static void gen_sse(CPUX86State *env, DisasContext *s, int b, target_ulong pc_start, int rex_r) { int b1, op1_offset, op2_offset, is_xmm, val; int modrm, mod, rm, reg; SSEFunc_0_epp sse_fn_epp; SSEFunc_0_eppi sse_fn_eppi; SSEFunc_0_ppi sse_fn_ppi; SSEFunc_0_eppt sse_f...
1threat
static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf, int do_search_pc, const uint8_t *searched_pc) { int opc, op_index, macro_op_index; const TCGOpDef *def; unsigned int dead_iargs; const TCGArg *ar...
1threat
static void usbredir_control_packet(void *priv, uint32_t id, struct usb_redir_control_packet_header *control_packet, uint8_t *data, int data_len) { USBRedirDevice *dev = priv; int len = control_packet->length; AsyncURB *aurb; DPRINTF("ctrl-in status %d len %d id %u\n", control_packet->s...
1threat
int qemu_global_option(const char *str) { char driver[64], property[64]; QemuOpts *opts; int rc, offset; rc = sscanf(str, "%63[^.].%63[^=]%n", driver, property, &offset); if (rc < 2 || str[offset] != '=') { error_report("can't parse: \"%s\"", str); return -1; } ...
1threat
Best way to read million line txt file while using multi processing to improve speed in python : So I'm running multiple functions, each function takes a section out of the million line txt file. Each function has a for loop that runs through every line in that section of million line file. It takes info from those lin...
0debug
How IdentityHashMap v get(key) methods woks in these below situation : import java.util.HashMap; import java.util.IdentityHashMap; import java.util.Map; public class IdentityHashMapExample { public static void main(String args[]){ // Created HashMap and IdentityHashMap objects ...
0debug
The policy failed legacy parsing : <p>I am trying to create IAM Role in AWS, but while I am creating I am facing error</p> <p>"We encountered the following errors while processing your request: Problem in attaching permission to role. Role will be created without permission. The policy failed legacy parsing "</p>...
0debug
static int dxva_get_decoder_guid(AVCodecContext *avctx, void *service, void *surface_format, unsigned guid_count, const GUID *guid_list, GUID *decoder_guid) { FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx); unsigned i, j; *decoder_guid = ff_GUID_NULL; for...
1threat
static int nprobe(AVFormatContext *s, uint8_t *enc_header, int size, const uint8_t *n_val) { OMAContext *oc = s->priv_data; uint32_t pos, taglen, datalen; struct AVDES av_des; if (!enc_header || !n_val) return -1; pos = OMA_ENC_HEADER_SIZE + oc->k_size; if ...
1threat
Windows 10 will not update until Samsung Easy Settings is manually uninstalled : <p>When I try to run the [Samsung] <strong>Easy Settings</strong> uninstall, Windows 10 blocks it from running saying that it is for a different version of Windows and might be unsafe.</p> <p>I can't seem to find any valid or manual solut...
0debug
static int cinvideo_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; CinVideoContext *cin = avctx->priv_data; int i, y, palette_type, p...
1threat
Why should a python variable of type list should be defined first before assigning a value? : <p><code>x = 2</code></p> <p>creates an integer variable. </p> <p><code>y.append(3)</code></p> <p>gives an error message (name 'y' is not defined). </p> <p>In the first one a variable <code>x</code> can be assigned a value...
0debug
How to insert image in azure cosmos db (Document DB) : <p>I am using <strong>xamarin</strong> with <strong>UWP</strong> and I want to insert an image into azure <strong>cosmos DB(Document DB)</strong>.</p> <p>So how can I achieve this?</p>
0debug
static void spapr_dt_rtas(sPAPRMachineState *spapr, void *fdt) { int rtas; GString *hypertas = g_string_sized_new(256); GString *qemu_hypertas = g_string_sized_new(256); uint32_t refpoints[] = { cpu_to_be32(0x4), cpu_to_be32(0x4) }; uint64_t max_hotplug_addr = spapr->hotplug_memory.base + ...
1threat
sklearn train_test_split on pandas stratify by multiple columns : <p>I'm a relatively new user to sklearn and have run into some unexpected behavior in train_test_split from sklearn.model_selection. I have a pandas dataframe that I would like to split into a training and test set. I would like to stratify my data by at...
0debug
static int find_real_tpr_addr(VAPICROMState *s, CPUX86State *env) { target_phys_addr_t paddr; target_ulong addr; if (s->state == VAPIC_ACTIVE) { return 0; } for (addr = 0xfffff000; addr >= 0x80000000; addr -= TARGET_PAGE_SIZE) { paddr = cpu_get_phys_page_debug...
1threat
the android phone does not vibrate what is the error here is the code : public void onReceive(Context arg0, Intent arg1) { mySQLiteAdapter.openToWrite(); Calendar ctaq = Calendar.getInstance(); SimpleDateFormat dfaq = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String crntdt = dfaq.format(ctaq.getTime(...
0debug
static int h261_probe(AVProbeData *p) { int code; const uint8_t *d; if (p->buf_size < 6) return 0; d = p->buf; code = (d[0] << 12) | (d[1] << 4) | (d[2] >> 4); if (code == 0x10) { return 50; } return 0; }
1threat
How can I mock an ES6 module import using Jest? : <p>I'm beginning to think this isn't possible, but I want to ask anyway.</p> <p>I want to test that one of my ES6 modules calls another ES6 module in a particular way. With Jasmine this is super easy --</p> <p>The app code:</p> <pre><code>// myModule.js import depend...
0debug
static void mps2_common_init(MachineState *machine) { MPS2MachineState *mms = MPS2_MACHINE(machine); MPS2MachineClass *mmc = MPS2_MACHINE_GET_CLASS(machine); MemoryRegion *system_memory = get_system_memory(); DeviceState *armv7m, *sccdev; if (!machine->cpu_model) { machine->cpu_mode...
1threat
void qmp_disable_command(const char *name) { QmpCommand *cmd; QTAILQ_FOREACH(cmd, &qmp_commands, node) { if (strcmp(cmd->name, name) == 0) { cmd->enabled = false; return; } } }
1threat
changing background colour when stringvariable is higher than 5 (tkinter/python) : my problem is that iam trying to change a background colour to change when the(string)variable is higher than 5. this is the code: colour_p1="White" kills_p1 = IntVar() kills_p1.set(0) def kill_count_p1(): ki...
0debug
static int mkv_write_attachments(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *dyn_cp, *pb = s->pb; ebml_master attachments; AVLFG c; int i, ret; if (!mkv->have_attachments) return 0; mkv->attachments = av_mallocz(sizeof(*mkv->attachments)); ...
1threat
static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea) { Aml *ssdt, *sb_scope, *dev; int mem_addr_offset, nvdimm_ssdt; acpi_add_table(table_offsets, table_dat...
1threat
return type must be 'bool' error c# : I have created application using xamarin android need to display and alert box , and based on the value selected I am doing some calculations. so on menu item click I have added below code. public override async Task<bool> OnOptionsItemSelected(IMenuItem item) { ...
0debug
How do i read a command line? : <p>In the program i need to have a way of reading a command line thats given to the program with the running of the program. so for example: </p> <p>"flying-postman.exe mail.txt boeing-spec.txt 23:00 –o itinerary.txt"</p> <p>so this line should firstly run the program(which is flying-p...
0debug
Splitting raw data into separate tables in VBA : using excel and VBA: I have a set of raw data in the following format: **Date | Product | Value** 30/10/2017 | A | 100 29/10/2017 | A | 100 28/10/2017 | A | 100 30/10/2017 | B | 100 29/10/2017 | B | 100 28/...
0debug
Excel - Find values that dont have a second value : This one is a bit complicated. Below is a sample data structure. Essentially, I am looking for a list of column A where there isn't a specific value in column B as well as any other value in Column B. Example: COLUMN A COLUMN B LEFT AL...
0debug
How to replace all non-NAN values with unity? : <p>I have a 3500*7500 matrix where I have NAN and other values. I want to basically convert all non-NAN values with 1.</p> <p>I can use ~isnan(mat) to convert NAN to 0 and non-NAN to 1. </p> <p>Is there a similar function to convert non-NAN values with 1 and leaving NAN...
0debug
static inline int get_bat(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong virtual, int rw, int type) { target_ulong *BATlt, *BATut, *BATu, *BATl; target_ulong BEPIl, BEPIu, bl; int i, valid, prot; int ret = -1; LOG_BATS("%s: %cBAT v " TARGET_FMT_lx "\n", __func__, ...
1threat
Making 'make clean' ask for confirmation : <p>Is there a way to make the command <code>make clean</code> require user confirmation? I mistakenly executed it and now I have to wait 6 hours for the build to complete again.</p> <p>The <code>Makefile</code>s were created by <code>cmake</code>.</p> <p>Desired workflow:</p...
0debug
Chrome Angular Unchecked runtime.lastError: The message port closed before a response was received : <p>I am getting the following error in Chrome on Mac (Version 71.0.3578.98) while accessing my angular app:</p> <p>targets/showTargetsByStream:1 Unchecked runtime.lastError: The message port closed before a response wa...
0debug
int egl_rendernode_init(const char *rendernode) { qemu_egl_rn_fd = -1; qemu_egl_rn_fd = qemu_egl_rendernode_open(rendernode); if (qemu_egl_rn_fd == -1) { error_report("egl: no drm render node available"); goto err; } qemu_egl_rn_gbm_dev = gbm_create_device(qemu_egl_rn_fd)...
1threat
void OPPROTO op_addw_EDI_T0(void) { EDI = (EDI & ~0xffff) | ((EDI + T0) & 0xffff); }
1threat
How to set the height of CKEditor 5 (Classic Editor) : <p>In CKEditor 4 to change the editor height there was a configuration option: <a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-height" rel="noreferrer">config.height</a>. </p> <p>How do I change the height of CKEditor 5? (the Classic Editor)</p>
0debug
Promise.all invoking array variable full of functions : <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>function getMyFunction(data) { return () =&gt; new Promise((resolve, ...
0debug
How can i find count of capital laters , small laters and worlds in prolog : I need to read a txt file and find the number of capital laters, small letters and the number of words.Which way can i follow to do this?
0debug
static av_cold int vqa_decode_init(AVCodecContext *avctx) { VqaContext *s = avctx->priv_data; unsigned char *vqa_header; int i, j, codebook_index; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; if (s->avctx->extradata_size != VQA_HEADER_SIZE) { av_log(s->avctx, AV_LOG...
1threat
static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder) { const char *codec_string = encoder ? "encoder" : "decoder"; AVCodec *codec; if(!name) return CODEC_ID_NONE; codec = encoder ? avcodec_find_encoder_by_name(name) : avcodec_find_...
1threat
error: expected ';', ',' or ') before numeric constant : <p>I am making a stack class, and trying to make an object of it and using it in another class. However, it mentions that there is an error. here's my code of intializing the stack object in the class:</p> <pre><code>class functions{ public: int m[5]; int c=0; s...
0debug
How to implement RowMapper using java lambda expression : <p>I had a working RowMapper code that maps database table row in to a java object. I wanted to change the implementation using lambda expression. However, I am always getting error; Code snippet as follows;</p> <pre><code>String queryString = "select * from pe...
0debug
C - series of if statements vs else if time messuring : I am sorry beforehand if my terminology is lacking. I wrote a code to demonstrate inefficiency of series of if statements vs else/if statements. And the results dont make any sense to me. It's a simple algorithm that goes through an array (100000000 of element...
0debug
How to count how many times a word appears in a list in python : <p>I have the following list in python</p> <pre><code>texts = [ ["great", "even", "for", "the", "non", "runner", "this", "sound", "track", "was", "brilliant"], ["cannot", "recommend", "as", "a", "former", "comrade", "i", "did", "not", "...
0debug
void show_banner(void) { fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d the FFmpeg developers\n", program_name, program_birth_year, this_year); fprintf(stderr, " built on %s %s with %s %s\n", __DATE__, __TIME__, CC_TYPE, CC_VERSION); fprintf(stderr, " con...
1threat
static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_length, int *consumed, int length){ int i, si, di; uint8_t *dst; int bufidx; h->nal_ref_idc= src[0]>>5; h->nal_unit_type= src[0]&0x1F; src++; length--; #if 0 for(i=0; i<length; i++) printf("%...
1threat
Copy multiple files from s3 bucket : <p>I am having trouble downloading multiple files from AWS S3 buckets to my local machine. </p> <p>I have all the filenames that I want to download and I do not want others. How can I do that ? Is there any kind of loop in aws-cli I can do some iteration ?</p> <p>There are couple ...
0debug
Docker: Looks something went wrong in step Looking for vboxmanage.exe : <p>I just installed Docker Toolbox on my windows 7 machine. After installing I run the Docker Quickstart terminal which displays the following message:</p> <p>Looks something went wrong in step nLooking for vboxmanage.exen... Press any key to cont...
0debug
Multithreading in C , Fİbonacci Program : I have newly started studying operating systems and creating processes/threads on Linux system by using C programming language(thats what is expected us to use) but I have some problems on the code that I've been trying to write: Here is my code written on an Ubuntu...
0debug
es6 spread operator - mongoose result copy : <p>I'm developping an express js API with mongo DB and mongoose.</p> <p>I would like to create an object in Javascript es6 composed of few variables and the result of a mongoose request and want to do so with es6 spread operator :</p> <pre><code>MyModel.findOne({_id: id}, ...
0debug
Converting RDD[Long, String, Long] to sql.DataFrame : <p>I have RDD[Long, String, Long] and i want to convert it to sql.DataFrame in order to execute spark sql on the data.</p> <p>Any insights?</p>
0debug
SQLite Database: Is there a way to put same data into 2 tables? : So this is the code for my database [First Photo][1] [2nd Photo][2] I tried making my first insert of data to be in the same tables but after i inserted the data, only the 1st table is being updated. And I also want to add 2 more rows to be used...
0debug
how to render/generate Dynamic HTML content in angular application . : Please help me . Situation : I am new to Angular and knows mostly theory concepts . Objective : Need to create a web based application with .net and angular perhaps angular version 2,4 or whatever. the angular app html page is dynamic is natur...
0debug
postgres and docker-compose : can't create a custom role and database : <p>I'am trying to create a simple postgreSQL container with a custum user and database. </p> <p>This is my docker-compose file : </p> <pre><code>version: '2' services: db.postgres: container_name: db.postgres image: postgres:10 envi...
0debug
static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **options) { TLSContext *c = h->priv_data; TLSShared *s = &c->tls_shared; int ret; if ((ret = ff_tls_open_underlying(s, h, uri, options)) < 0) goto fail; c->ssl_context = SSLCreateContext(NULL, s->listen ?...
1threat
static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt) { if(st->request_probe>0){ AVProbeData *pd = &st->probe_data; int end; av_log(s, AV_LOG_DEBUG, "probing stream %d pp:%d\n", st->index, st->probe_packets); --st->probe_packets; if (pkt) { ...
1threat
How to run a PowerShell script with verbose output? : <p>I'm wondering if there's a way to run a PowerShell script such that both the commands and the output of each line of the script are printed. For example, in Bash you would write <code>bash -x myscript</code> or place a <code>set -x</code> at the top of your scrip...
0debug
What is the difference between using 'this' keyword and var in a constructor function in JavaScript? : <p>I'm learning object concepts in JavaScript and have this doubt. Here is the link to the Bin <a href="http://jsbin.com/yoyepetewa/edit?js,console" rel="nofollow noreferrer">http://jsbin.com/yoyepetewa/edit?js,consol...
0debug
Cloundant : Error with running weatherreport to check cluster health : We have three node cluster setup and facing issue to run weather report command. By looking at error, it is clear that machine from where weatherreport utility is running not able to connect to other two machines. I have checked all machines and th...
0debug
How to show results of a map in two or more columns using react : <p>I think I have a simple question, but I can't get a solution to do this with react, I would like show results in two columns like:</p> <pre><code>item 1 | item 4 item 2 | item 5 item 3 | item 6 </code></pre> <p>I tried verify if array lenght is 0 or...
0debug
ER_TRUNCATED_WRONG_VALUE: Incorrect datetime value : <p>So i've recently completed an application for a study project. It's all good, and all I have left is putting the application to production.</p> <p>I'm using MySQL with Node.js(I know, we don't like that, but someone's gotta try it). I have a socket that adds a ch...
0debug
static ChannelElement *get_che(AACContext *ac, int type, int elem_id) { if (!ac->oc[1].m4ac.chan_config) { return ac->tag_che_map[type][elem_id]; } if (!ac->tags_mapped && type == TYPE_CPE && ac->oc[1].m4ac.chan_config == 1) { uint8_t layout_map[MAX_ELEM_ID*4][3]; int layou...
1threat
Parsing JSON object from String in Android : I am trying to parse the json object from the data at the end of the post using the following code but I seem to have problem converting the intial string to JSON and also extracting JSON object in the key values of "feed" and "entry". protected void JSONparse(String ...
0debug
static void raw_reopen_abort(BDRVReopenState *state) { g_free(state->opaque); state->opaque = NULL; }
1threat
int page_check_range(target_ulong start, target_ulong len, int flags) { PageDesc *p; target_ulong end; target_ulong addr; if (start + len < start) return -1; end = TARGET_PAGE_ALIGN(start+len); start = start & TARGET_PAGE_MASK; for(addr = start; addr < end; ...
1threat
suming two coloumns together (each cell separately) : Im using excel and ive just started using vba in excel. I need to add the values of column I, cells I6:I26 in sheet 1 to column D, cells D1:D21 in sheet 2. So if I6 = 4 and D1 = 6, and I press the ADD button, D6 will equal to 10. Same goes for the rest of the cell...
0debug
static void virtio_pci_dc_realize(DeviceState *qdev, Error **errp) { VirtioPCIClass *vpciklass = VIRTIO_PCI_GET_CLASS(qdev); VirtIOPCIProxy *proxy = VIRTIO_PCI(qdev); PCIDevice *pci_dev = &proxy->pci_dev; if (!(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_PCIE) && !(proxy->flags & VIRTIO_PCI_F...
1threat
Difference between frontend/backend and listen in haproxy : <p>Hopefully a simple question. I apologize if this has been covered before. I'm learning haproxy and overall seems very straightforward and simple. However I am curious what the difference is between using frontend/backend and listen config blocks? My ass...
0debug
qio_channel_websock_source_prepare(GSource *source, gint *timeout) { QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source; GIOCondition cond = 0; *timeout = -1; if (wsource->wioc->rawinput.offset) { cond |= G_IO_IN; } if (wsou...
1threat
Leaflet.js: Use ctrl + scroll to zoom the map & Move map with two fingers on mobile : <p>I'm using <a href="http://leafletjs.com/" rel="noreferrer">http://leafletjs.com/</a> ... is it possible to only: </p> <ol> <li><p>Use ctrl + scroll to zoom the map </p></li> <li><p>Move map with two fingers on mobile/tablet</p></l...
0debug
static int RENAME(epzs_motion_search)(MpegEncContext * s, int *mx_ptr, int *my_ptr, int P[10][2], int pred_x, int pred_y, uint8_t *src_data[3], uint8_t *ref_data[3], int stride, int uvstride, int16_t (*last_mv)[2], ...
1threat
static void add_xblock(DWTELEM *dst, uint8_t *src, uint8_t *obmc, int s_x, int s_y, int b_w, int b_h, int mv_x, int mv_y, int w, int h, int dst_stride, int src_stride, int obmc_stride, int mb_type, int add){ uint8_t tmp[src_stride*(b_h+5)]; int x,y; if(s_x<0){ obmc -= s_x; b_w += s_x...
1threat
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
static void dec_pattern(DisasContext *dc) { unsigned int mode; int l1; if ((dc->tb_flags & MSR_EE_FLAG) && !(dc->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK) && !((dc->env->pvr.regs[2] & PVR2_USE_PCMP_INSTR))) { tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP); ...
1threat
ASP.NET Core WebAPI default route not working : <p>I've followed several examples suggesting that to set my default route in an ASP.NET Core WebAPI project, I need to replace</p> <pre><code>app.UseMvc(); </code></pre> <p>with</p> <pre><code>app.UseMvc(routes =&gt; { routes.MapRoute( name: "default", ...
0debug
static int pci_ich9_ahci_init(PCIDevice *dev) { struct AHCIPCIState *d; d = DO_UPCAST(struct AHCIPCIState, card, dev); pci_config_set_vendor_id(d->card.config, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(d->card.config, PCI_DEVICE_ID_INTEL_82801IR); pci_config_set_class(d->card.config, ...
1threat
what's wrong with my return statement and static method : <p>This is not a homework question. It is one of my practices. Please help me understand where i did wrong. The original was static void changeArray, but i changed it to static int changeArray and inserted a return statement at the end, but it still won't update...
0debug
static void virtio_blk_rw_complete(void *opaque, int ret) { VirtIOBlockReq *req = opaque; trace_virtio_blk_rw_complete(req, ret); if (ret) { int p = virtio_ldl_p(VIRTIO_DEVICE(req->dev), &req->out.type); bool is_read = !(p & VIRTIO_BLK_T_OUT); if (virtio_blk_handle_rw_erro...
1threat
How to return from a forEach loop in Dart? : <p>I have this function</p> <pre><code> bool nameExists(players, player) { players.forEach((f) { if (f.data['name'].toLowerCase() == player.toLowerCase()) { return true; } }); return false; } </code></pre> <p>It always return false, even...
0debug
static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; static const uint8_t header_prefix444[] = { 0x00, ...
1threat
Regular Expression for Simple Maths Equation parser in Java : <p>Currently learning Java, and trying to parse a maths equation for valid inputs:</p> <p>For example, the user has to input integers in the form:</p> <p>Operand Operator Operand</p> <p>in that specific order, and the program would then need to be able to...
0debug
Angular universal redering only css and no html : I have an angular universal project up and running and it work correctly but in the page source of the browser I only see CSS outputted and no HTML. Am I missing something?
0debug
void usb_attach(USBPort *port, USBDevice *dev) { if (dev != NULL) { if (port->dev) { usb_attach(port, NULL); } dev->port = port; port->dev = dev; port->ops->attach(port); usb_send_msg(dev, USB_MSG_ATTACH); } else { ...
1threat
CUDA run solution with three.cu files : I have CUDA 8 and Visual Studio 2015. I would to run three cuda files from "CUDA by example" book (example is histogram). I have three cu. files: hist_cpu.cu hist_gpu_gmem_atomics.cu hist_gpu_shmem_atomics.cu I would to run it at the same time. All three f...
0debug
Why this InputStreamReader throws an exception : <p>When I compile this code in eclipse ,it throws a NullPointerException,but the code in the book is written in this way.Here is this code.</p> <pre><code> InputStream in = ClassLoader .getSystemResourceAsStream("javagames/filesandres/Test1.txt"); try { ...
0debug
How to check if ur form is already opned or not and close it : I have a form named as outobjects.cs it can luanch every 5 mins, So after I can luanch any of them I need to check if outobjects.cs open or not and close it.
0debug
static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUSH4State *regs) { struct target_rt_sigframe *frame; abi_ulong frame_addr; int i; int err = 0; int signal; frame_addr ...
1threat
'KeyPressEventArgs' does not contain defintion for KeyCode' error in visual studio : Im trying to make a key press event in visual studio windows forms but getting this error. Any ideas? ``` private void Form1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyCode = Keys.E) ...
0debug
eliminate line in stacked bar ggplot : <p>this graph is made by ggplots but I don't know how to eliminate the lines between the stacked bars (e.g. I want to combine two pink bars into one). </p> <p><a href="https://i.stack.imgur.com/YLG7U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YLG7U.png" ...
0debug
Can i do someting before view being generated using spring mvc jsp shiro : <p>I want to check session and add it's information to model, but i don't want to add code in every controller, so is there something I can use to solve this problem?</p>
0debug