problem
stringlengths
26
131k
labels
class label
2 classes
Unknown ending signal when using debugger gdb : <p>I have installed GDB on Mac OS X and to test that it works I have used this following C program. </p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main(int argc, char *argv[]) { int *my_array = (int *) malloc(5 * sizeof(int)); int i; ...
0debug
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int sample_size, c, n; short *samples; const uint8_t *src, *src8, *src2[MAX_CHANNELS]; u...
1threat
htmlagilitypack getting a value from a specific child node : I have an html and using htmlagilitypack with c#. I need to get a specific child node value. I need to get the text of the child "strong/em" in the html. how can i get it? <!-- begin snippet: js hide: false --> <!-- language: lang-html --> <div ...
0debug
How to fix "Use Of Unassigned local variable in citra" when citra is defined? (with Object Oreinted Programming, bools, and switch statements) : <p>Recently I was attempting to make an advanced choose your own adventure game to practice my fresh new C# skills but I have came across a powerful error that is preventing m...
0debug
Creating a loop and calculateing average at the end : I'm a beginner when it comes to programming and coding, so please excuse me if i ask any silly or obvious questions. I just started out learning Python and got an assignment which has one question i'm just not sure how to start with it. The question goes as follows:...
0debug
Access arraylist from another class inside main class : <p>I don't have any idea on how to make this since i'm a new in java. I want to display all my objects in the arraylist of my TimeSlot class into the main class. I've tried few ways like using for (int = 0; i &lt; bookingList.size(); i++) but still can't work. I'm...
0debug
Proper filenames in iOS project : <p>I've been told during a job assignment review, that I used weird filenames in my iOS project.</p> <p>I've added a picture of my project tree. Could you explain me what's weird about these names or if there are any flaws in the tree structure?</p> <p>Thanks</p> <p><a href="https:/...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
Error in def_main(), excecute takes 1 positional argument, but two was given. If I give only 1 argument the same result : def execute_command(cmd): f = open(log.name, "w") try: subprocess.Popen(cmd, 0, f, f) except WindowsError: cmd[0] = cmd[0] + ".com" subprocess.Popen(cmd, 0...
0debug
Track multiple users live location on the map in android : I'm searching for the track live location of the multiple users. Like Ola cabs and Uber Taxi live location. I try to find so many things but didn't find anything. I also try with the Pubnub. but not success on it. Thanks in advance.
0debug
Could anyone help me to install Intel package fortran in Mac OS Catalina? : <p>I have downloaded the installation file from the link below but after finishing installation I am not seeing anything to open the application. <a href="https://software.intel.com/en-us/fortran-compilers/choose-download" rel="nofollow norefe...
0debug
'Could not load file or assembly 'System.Web.Helpers' or one of its dependencies : <p>I'm getting the follow error when trying to run my ASP.NET project. Can anyone advise?</p> <pre><code>Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does no...
0debug
New warning when building android app with gradle : <p>Yesterday it was fine, today it shows this warning when I clean or build the project:</p> <blockquote> <p>WARNING: Ignoring Android API artifact com.google.android:android:2.1_r1 for appDebug WARNING: Ignoring Android API artifact com.google.android:android:...
0debug
How to add a mask over background image in activity? : <p>I want to add an image as a background of an activity, and I want to add another image .png over it</p>
0debug
i m coding in c#.net. i am using service based database. i am getting an error while inserting a record. textbox1 is a varchar type : private void button2_Click_1(object sender, EventArgs e) { SqlConnection cn = new SqlConnection(global::CFMSApp.Properties.Settings.Default.CFMSConnectionString); ...
0debug
I am using fat arrow function in php : $mul2 = fn($x) => $x * 2; $mul2(3); I am getting an error at => Error- Unexpected => How do I resolve the error.
0debug
av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp) { #if HAVE_YASM int cpu_flags = av_get_cpu_flags(); #define init_fpel(idx1, idx2, sz, type, opt) \ dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \ dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \ dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0...
1threat
static int adb_mouse_request(ADBDevice *d, uint8_t *obuf, const uint8_t *buf, int len) { MouseState *s = ADB_MOUSE(d); int cmd, reg, olen; if ((buf[0] & 0x0f) == ADB_FLUSH) { s->buttons_state = s->last_buttons_state; s->dx = 0; s->dy =...
1threat
How to fix "Parse error: syntax error, unexpected '}" : <p>I'm working with if statements, and I cannot seem to find where I'm going wrong, I'm fairly new to PHP so If someone can maybe guide me in the right direction it would be awesome, thanks.</p> <p>I've tried to rewrite the whole code, and experimented by adding ...
0debug
Connot write a file : I have the following code: import csv import operator import sys with open('countryInfo.csv','r', encoding='utf-8') as csvfile: reader = csv.DictReader(csvfile, delimiter='\t') result = sorted(reader, key = lambda d: float(d['population']),reverse = Tr...
0debug
how to solve prime number program? : I'm trying to print all the prime numbers between 2 and 100, but i'm getting only 2 & 3. I've tried every possible alternates, and it comes up with different error or different output. ```class vision{ ```public static void main(String args[]){ ```boolean flag=true; ```for(...
0debug
static int vc1_decode_b_mb_intfr(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; int mqdiff, mquant; int ttmb = v->ttfrm; int mvsw = 0; int mb_has_coeffs = 1; int dmv_x, ...
1threat
why i cant write just meter instead of "meter' in python 2.7.14? : i use python 2.7.14.....i wrote this code in python andriod Qpython3 version....but when i used it in python 2.7.14 the programme accepts strings with these " " or ' ' .......in Qpython3 i just had to to write meter....here i have to write "meter" ......
0debug
Server only receiving null string from client? : <p>So I have a basic client/server c++ program. Right now, when the client connects to the server I want the server sends a "Hello, world" message and the client to respond "Hello, server" just to make sure I am sending and relieving messages correctly. </p> <p>When I r...
0debug
static void usb_host_auto_check(void *unused) { struct USBHostDevice *s; int unconnected = 0; usb_host_scan(NULL, usb_host_auto_scan); QTAILQ_FOREACH(s, &hostdevs, next) { if (s->fd == -1) { unconnected++; } } if (unconnected == 0) { ...
1threat
static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; GetBitContext gb; HuffContext h[4] = { { 0 } }; VLC vlc[4] = ...
1threat
VBScript: Reading and Writing text file when condition are meet : I have a text file Sample.txt with that contains thousands of records. See below. I have created vbscript that accept input box for the cut-off record. In this example I inputted 10005 as the cut-off record. The script will then read all records after ...
0debug
int ff_thread_can_start_frame(AVCodecContext *avctx) { PerThreadContext *p = avctx->thread_opaque; if ((avctx->active_thread_type&FF_THREAD_FRAME) && p->state != STATE_SETTING_UP && (avctx->codec->update_thread_context || (!avctx->thread_safe_callbacks && avctx->get_buffer != avcode...
1threat
target_ulong do_load_msr (CPUPPCState *env) { return #if defined (TARGET_PPC64) ((target_ulong)msr_sf << MSR_SF) | ((target_ulong)msr_isf << MSR_ISF) | ((target_ulong)msr_hv << MSR_HV) | #endif ((target_ulong)msr_ucle << MSR_UCLE) | ((target_ulong)msr_vr ...
1threat
Winston: Attempt to write logs with no transports : <p>I'm trying to set up an access log and an error log for my express server using Winston, but I seem to be doing something wrong.</p> <p>Here is my attempt at a config file:</p> <pre><code>const winston = require('winston'), fs = require('fs'); const tsFormat...
0debug
Can't access open cart Admin from iphone : <p>I have installed opencart on my server and everything seems to be working fine except for the fact that I can't access the admin dashboard through my iphone. It works fine on my PC, on a Mac, and on an android Phone like a Galaxy note 4.</p> <p>I can't seem to find any inf...
0debug
Difference between MappingProxyType and PEP 416 frozendict : <p>While <code>frozendict</code> <a href="https://www.python.org/dev/peps/pep-0416/#rejection-notice" rel="noreferrer">was rejected</a>, a related class <code>types.MappingProxyType</code> was added to public API in python 3.3.</p> <p>I understand <code>Mapp...
0debug
static void dec_divu(DisasContext *dc) { int l1; LOG_DIS("divu r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1); if (!(dc->features & LM32_FEATURE_DIVIDE)) { qemu_log_mask(LOG_GUEST_ERROR, "hardware divider is not available\n"); t_gen_illegal_insn(dc); return; } l1 = ...
1threat
what is the difference between "FCM(Fuzzy C Means)" and "GMM(Gaussian Mixture Model)"? : I am having pattern recognition class. My teacher need us to find out the difference between FCM and GMM,but I think this two clusting algorithm have no similarity.Hoping someone who knows could help me.
0debug
static int protocol_client_auth(VncState *vs, uint8_t *data, size_t len) { if (data[0] != vs->auth) { VNC_DEBUG("Reject auth %d because it didn't match advertized\n", (int)data[0]); vnc_write_u32(vs, 1); if (vs->minor >= 8) { static const char err[] = "Authentication f...
1threat
Why does developer tools have a different server response time to a profiler? : I have enabled a PHP profiler, well magento, but it is still a profiler. The results show pretty decent server response times, but on the chrome developer tools the time is much higher. Profiler: [![magento-profiler-server-response...
0debug
AVD3D11VAContext *av_d3d11va_alloc_context(void) { AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext)); res->context_mutex = INVALID_HANDLE_VALUE; return res; }
1threat
i got this error : Parse error: syntax error, unexpected ';' : <p>please help me with this error i could not find the solution. here's the code :</p> <pre><code>public function store_image($id) { $db = connection(); $if ($db-&gt;connect_errno == 0) { $sql = "SELECT * from car where id='$id'"; $...
0debug
int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; FrameDecodeData *fdd = (FrameDecodeData*)frame->private_ref->data; NVDECFrame *cf = NULL; int ret; ctx->bitstream_len = 0; ctx->nb_slices = 0; if (fdd->hw...
1threat
static uint64_t mv88w8618_eth_read(void *opaque, target_phys_addr_t offset, unsigned size) { mv88w8618_eth_state *s = opaque; switch (offset) { case MP_ETH_SMIR: if (s->smir & MP_ETH_SMIR_OPCODE) { switch (s->smir & MP_ETH_SMIR_ADDR) { ...
1threat
static void show_parts(const char *device) { if (fork() == 0) { int nbd; nbd = open(device, O_RDWR); if (nbd != -1) close(nbd); exit(0); } }
1threat
How to make sublists comprised of unique values from a larger list - python : <p>I have a large list that I want to divide into smaller lists with unique values.</p> <pre><code>BigList = [2, 1, 0, 2, 2, 1, 2, 1, 0, 3, 0, 1, 3] </code></pre> <p>How do I divide it into smaller lists of unique values, which were origina...
0debug
static int select_voice(cst_voice **voice, const char *voice_name, void *log_ctx) { int i; for (i = 0; i < FF_ARRAY_ELEMS(voice_entries); i++) { struct voice_entry *entry = &voice_entries[i]; if (!strcmp(entry->name, voice_name)) { *voice = entry->register_fn(NULL); ...
1threat
Using the ‘stage’ step without a block argument is deprecated : <p>When building a Jenkins pipeline job (Jenkins ver. 2.7.4), I get this warning:</p> <pre><code>Using the ‘stage’ step without a block argument is deprecated </code></pre> <p>How do I fix it?</p> <p>Pipeline script snippet:</p> <pre><code>stage 'Works...
0debug
Sort Array based on value in java : <p>Peace and blessing be upon you.</p> <p>Say I have:</p> <pre><code>int[] array = {1,3,5,2,9,7,0}; </code></pre> <p>Simply wanna sort this as:</p> <pre><code>{0,1,2,3,5,7,9}; </code></pre>
0debug
how to align text width in android Textview : i want to align text in My TextView like this [![enter image description here][1]][1] and my current appearance of text is like [![enter image description here][2]][2] [1]: https://i.stack.imgur.com/dVTQ0.png [2]: https://i.stack.imgur.com/wmloh.jpg how ...
0debug
Making A Window With C : <p>I have been using the below code to make a simple window within C. When Compiling a get the error C4133, ive brought up the error in visual online but unable to resolve. (Apologies this is badly written) </p> <pre><code>#include &lt;windows.h&gt; const char g_szClassName[] = "myWindowClas...
0debug
static inline int check_ap(CPUARMState *env, int ap, int domain_prot, int access_type, int is_user) { int prot_ro; if (domain_prot == 3) { return PAGE_READ | PAGE_WRITE; } if (access_type == 1) prot_ro = 0; else prot_ro = PAGE_READ; switch (ap) { ...
1threat
static uint32_t vmsvga_value_read(void *opaque, uint32_t address) { uint32_t caps; struct vmsvga_state_s *s = opaque; switch (s->index) { case SVGA_REG_ID: return s->svgaid; case SVGA_REG_ENABLE: return s->enable; case SVGA_REG_WIDTH: return s->width; ...
1threat
how do i get a word in a string depending of there last 2 words php : so i have this string and i want to output all of the words that ends in "ly". $desi = "DESIDERATA Go placidly amid the noise and the haste, and remember what peace there may be in silence. As far as possible, without surrender, be on good ...
0debug
Antiforgery tokens are reusable : <p>We use ASP.NET MVC's default Antiforgery technique. Recently a security company did a scan of a form and made note that they could use the same <code>_RequestVerificationToken</code> combination (cookie + hidden field) multiple times. Or how they put it: <em>"The CSRF token in the b...
0debug
How to use xmltodict to get items out of an xml file : <p>I am trying to easily access values from an xml file.</p> <pre><code>&lt;artikelen&gt; &lt;artikel nummer="121"&gt; &lt;code&gt;ABC123&lt;/code&gt; &lt;naam&gt;Highlight pen&lt;/naam&gt; &lt;voorraad&gt;231&lt;/voorraad&gt; &...
0debug
static void test_qemu_strtoull_invalid(void) { const char *str = " xxxx \t abc"; char f = 'X'; const char *endptr = &f; uint64_t res = 999; int err; err = qemu_strtoull(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert(endptr == str); }
1threat
int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int ignore_truncation) { AVBufferRef *sps_buf; int profile_idc, level_idc, constraint_set_flags = 0; unsigned int sps_id; int i, log2_max_frame_num_minus4; SP...
1threat
AVStream *av_new_stream(AVFormatContext *s, int id) { AVStream *st; int i; #if LIBAVFORMAT_VERSION_MAJOR >= 53 AVStream **streams; if (s->nb_streams >= INT_MAX/sizeof(*streams)) return NULL; streams = av_realloc(s->streams, (s->nb_streams + 1) * sizeof(*streams)); if (!streams...
1threat
void ff_h264_pred_direct_motion(H264Context * const h, int *mb_type){ MpegEncContext * const s = &h->s; int b8_stride = h->b8_stride; int b4_stride = h->b_stride; int mb_xy = h->mb_xy; int mb_type_col[2]; const int16_t (*l1mv0)[2], (*l1mv1)[2]; const int8_t *l1ref0, *l1ref1; cons...
1threat
static void zynq_init(QEMUMachineInitArgs *args) { ram_addr_t ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; Ob...
1threat
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
Javascript insert element at nth index in array, insertion elements from another array : <p>I have 2 Javascript arrays:</p> <pre><code>['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'] ['a', 'b', 'c'] </code></pre> <p>I need to insert elements of second array into the first array every 4th or nth index ...
0debug
What HTML element for semantic sidenotes? : <p>I like to add responsive sidenotes to my blog posts. Responsive as in: hidden on small viewports, visible in the margin on wide viewports.</p> <p>When hidden on small screens, a visible element ('link') is needed indicating there's more to read. My solution for this so fa...
0debug
MigrationState *tcp_start_outgoing_migration(Monitor *mon, const char *host_port, int64_t bandwidth_limit, int detach, int blk, int inc) { struct sockaddr...
1threat
How get the value from pushpin image in google maps : When I search for a place it will display the locations along with the number in the map pointer. but I want to print that number which I could not get the number. because it is showing as an image which does not have value attribute in the HTML page.. See the attac...
0debug
How to change a property on an object without mutating it? : <pre><code>const a = {x: "Hi", y: "Test"} const b = ??? // b = {x: "Bye", y: "Test"} // a = {x: "Hi", y: "Test"} </code></pre> <p>How can I set x to "Bye" without mutating a?</p>
0debug
Why do we need locks for threads, if we have GIL? : <p>I believe it is a stupid question but I still can't find it. Actually it's better to separate it into two questions:</p> <p>1) Am I right that we could have a lot of threads but because of GIL in one moment only one thread is executing?</p> <p>2) If so, why do we...
0debug
Attempt to invoke virtual method when displaying TOAST? : <p>when you click a button in my activity it starts/displays a <code>DatePickerDialog</code>. When the user selects a date and clicks "ok" i want to run an <code>AsyncTask</code> in the original class (the activity where the button was clicked). Everything works...
0debug
I am getting absurd values for the variable 'credits' : <pre><code>#include &lt;stdio.h&gt; int main (void) { int hist,geo,phy,chem,bio; int credits=0; printf("Enter marks in history : "); scanf("%d",&amp;hist); if(hist&gt;40) credits =10; else printf("No credits awarded for history"); printf("Credits obtained is %...
0debug
static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { #if defined(TARGET_I386) cpu_synchronize_state(s->c_cpu); s->c_cpu->eip = pc; #elif defined (TARGET_PPC) s->c_cpu->nip = pc; #elif defined (TARGET_SPARC) s->c_cpu->npc = pc + 4; #elif defined (TARGET_ARM) s->c_cpu->regs[15] = pc; ...
1threat
static const unsigned char *seq_decode_op1(SeqVideoContext *seq, const unsigned char *src, unsigned char *dst) { const unsigned char *color_table; int b, i, len, bits; GetBitContext gb; unsigned char block[8 * 8]; len = *src++; if (len & 0x80) { switch (len & 3) { case...
1threat
Read appsettings.json in Main Program.cs : <p>First of all my main purpose is to setup the IP and Port for my application dynamically.</p> <p>I'm using <code>IConfiguration</code> to inject a json config file, like some tutorial mentioned.</p> <p>However, I can't retrieve the configuration in Program.cs, because my <...
0debug
why my python app exist immediately after show graph diagram? : I use below code to show a data graph but the graph window is just shown for one second then the application exists. Below is my code. Is there anything wrong with it? import seaborn as sns import pandas as pd import matplotlib.pyplot as p...
0debug
iOS 11 Navigation bar large title have black color when push on pop view controller : <p>I have a problem with the new navigation bar for iOS 11.</p> <p>In root view set new navigation by code: </p> <pre><code>if (@available(iOS 11.0, *)) { self.navigationController.navigationBar.prefersLargeTitles = YES; sel...
0debug
static void m5206_mbar_writew(void *opaque, target_phys_addr_t offset, uint32_t value) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; int width; offset &= 0x3ff; if (offset >= 0x200) { hw_error("Bad MBAR write offset 0x%x", (int)offset); } widt...
1threat
How To Create Associative Array In EcmaScript : <p>I want to create an associative array within the constructor. But the below code throws error. Uncaught TypeError: Cannot set property 'num' of undefined</p> <pre><code>class Validate{ constructor(){ this.name['num'] = ['one','two']; } display()...
0debug
I want to close this android dialogbox after click on listitem : button2.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { final AlertDialog.Builder alertDialog = new AlertDialog.Builder(PersonalizeSettingsActivity.this); LayoutInflater infl...
0debug
What Linux-Hosted Web Language/Framework is most like asp.net mvc 5+ : <p>I know this is the kind of question that usually gets deleted, but I have to find some answers. I want to build a project in a new technology more suitable to hosting on a Linux server, but I like the way things are done in ASP.NET MVC. I've look...
0debug
I am using azure devops , and getting unknown field "imagePullPolicy" in io.k8s.api.core.v1.PodSpec while doing helm install : 2019-07-05T09:56:41.1837910Z Error: validation failed: error validating "": error validating data: ValidationError(Deployment.spec.template.spec): unknown field "imagePullPolicy" in io.k8s.api....
0debug
static int encode_frame(AVCodecContext *avctx, uint8_t *buf, int buf_size, void *data) { int tileno, ret; J2kEncoderContext *s = avctx->priv_data; s->buf = s->buf_start = buf; s->buf_end = buf + buf_size; s->picture = data; s->...
1threat
static struct ioreq *ioreq_start(struct XenBlkDev *blkdev) { struct ioreq *ioreq = NULL; if (QLIST_EMPTY(&blkdev->freelist)) { if (blkdev->requests_total >= max_requests) { goto out; } ioreq = g_malloc0(sizeof(*ioreq)); ioreq->blkdev = blkdev; ...
1threat
find if a backslash exists in a string Go : <p>I have a string like this:</p> <p><code>id=PS\\ Old\\ Gen</code></p> <p>and I would to build a regex to find out if it contains a backslash; one after the other. So in this case, the regex should find 2 occurances as there are 2 <code>\\</code>.</p> <p>I tried building ...
0debug
React Native styling with conditional : <p>I'm new to react native. I'm trying to change the styling of the TextInput when there is an error.</p> <p>How can I make my code not as ugly?</p> <pre><code>&lt;TextInput style={touched &amp;&amp; invalid? {height: 40, backgroundColor: 'white', borderRadius: 5,...
0debug
static int dirac_unpack_prediction_parameters(DiracContext *s) { static const uint8_t default_blen[] = { 4, 12, 16, 24 }; static const uint8_t default_bsep[] = { 4, 8, 12, 16 }; GetBitContext *gb = &s->gb; unsigned idx, ref; align_get_bits(gb); idx = svq3_get_ue_golomb(gb...
1threat
Is it possible to continuing running JavaScript code after a redirect? : <p>So, on my website, a user types in a subject they want the gist of, then after searching, it redirects them to a Wikipedia API displaying the general idea of the subject. However, there's a bunch of information about the API that gets in the wa...
0debug
Unable to run python script on Windows computer. I am able on Ubuntu computer : <p>I am unable to successfully run my python script (a simple text-based game) using cmd prompt on my Windows machine. It throws an error on the first "print" statement as I don't have the string enclosed in brackets. I have the entire Pyth...
0debug
static void lsi_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { LSIState *s = opaque; lsi_reg_writeb(s, addr & 0xff, val); }
1threat
Illegal instruction (core dumped) neural network : I have a 3-layed neural network, and I keep getting the above error. I tried the fix here: http://stackoverflow.com/questions/10354147/find-which-assembly-instruction-caused-an-illegal-instruction-error-without-debu And that actually did fix something because before...
0debug
av_cold int swri_rematrix_init(SwrContext *s){ int i, j; int nb_in = av_get_channel_layout_nb_channels(s->in_ch_layout); int nb_out = av_get_channel_layout_nb_channels(s->out_ch_layout); s->mix_any_f = NULL; if (!s->rematrix_custom) { int r = auto_matrix(s); if (r) ...
1threat
Installed a package with Anaconda, can't import in Python : <p>Forgive me but I'm new to python. I've installed a package (theano) using <code>conda install theano</code>, and when I type <code>conda list</code>, the package exists</p> <p>However, when I enter the python interpreter by running <code>python</code>, and...
0debug
static int parallels_open(BlockDriverState *bs, int flags) { BDRVParallelsState *s = bs->opaque; int i; struct parallels_header ph; bs->read_only = 1; if (bdrv_pread(bs->file, 0, &ph, sizeof(ph)) != sizeof(ph)) goto fail; if (memcmp(ph.magic, HEADER_MAGIC, 16) || (le32_t...
1threat
new operator allocates more size than declared . WHY : <p>I am using codeblocks 16.01. And here in the code given below I have used new operator and declared array - pointer .</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main() { int *p = new int[2]; for(int i=0; i&lt;10;i++) { cout&...
0debug
String Error when using system.out.println : <p>HERE IS MY CODE</p> <pre><code>import java.util.Scanner; //needed to use Scanner for input public class Pandora { public static void main(String[] args) { //Declare variables String lastName = ""; String newChannel = ""; int Selection=0; //Create a Scanner object Scan...
0debug
Force not working in non-interactive mode : <pre><code>Deleting folder 'C:\agent\_work\2\a\Foo\_PublishedWebsites\Foo\sourcejs' Remove-Item : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available. At C:\agent\_work\2\s\Build\Deployment\PrepareWebsites.ps1:29 char:2 + Remove-Item ...
0debug
nginx v1.10.2 Passenger 403 : Multiple virtual hosts on my workstation, just stopped working. Upon an update of `nginx` to v1.10.2 and a new `Passenger` `locations.ini` file pointer in the `nginx.conf` file, I'm getting `403 Forbidden` permissions errors on all of these vhosts. No clue what to look at. passeng...
0debug
document.getElementById('input').innerHTML = user_input;
1threat
conversion of integers to roman numerals (python) : I understand there were many similar questions being asked on this topic.But I still have some doubts need to be clear def int_to_roman(input): if type(input) != type(1): raise TypeError, "expected integer, got %s" % type(input) ...
0debug
No output on console after ctrl^D? : From K&R ansi c, section 1.5.3: the line count program is replicated exactly in clion. I'm using Mngw64. There's no output on console when the getchar() comparison is made with EOF. it wotks fine with other characters. Using CTRL^D exits the program with 'code 0' without any output...
0debug
How to pass data between components in angular : <pre><code>&lt;div class="container-fluid fill"&gt; &lt;app-navbar&gt;&lt;/app-navbar&gt; &lt;div class="container fill"&gt; &lt;div class="row padding"&gt; &lt;div class="col-md-3 "&gt; &lt;app-sidebar&gt;&lt;/app-sidebar&gt; &lt;/div&gt; &lt;div cla...
0debug
cut the text length as the screen gets smaller : I want the text length to shrink when the screen gets smaller `<div class="dress-card hvr-bob"> <div class="dress-card-head"> <img class="dress-card-img-top" src="img/rdr2.jpg" alt=""> </div> <div clas...
0debug
static void block_job_defer_to_main_loop_bh(void *opaque) { BlockJobDeferToMainLoopData *data = opaque; AioContext *aio_context; aio_context_acquire(data->aio_context); aio_context = blk_get_aio_context(data->job->blk); if (aio_context != data->aio_context) { aio_conte...
1threat
onResume() and onPause() for widgets on Flutter : <p>Right now, a widget only has initeState() that gets triggered the very first time a widget is created, and dispose(), which gets triggered when the widget is destroyed. Is there a method to detect when a widget comes back to the foreground? and when a widget is about...
0debug
static void virtio_ccw_device_plugged(DeviceState *d) { VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(d); SubchDev *sch = dev->sch; sch->id.cu_model = virtio_bus_get_vdev_id(&dev->bus); css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, d->hotplugged, 1); }
1threat