problem
stringlengths
26
131k
labels
class label
2 classes
Create a copy of object, then deleted an element only from the copy, not the original : <p>How do I make <code>obj2</code> the same as <code>obj1</code> but not affected by the deletion?</p> <p>Currently the <code>name: 42</code> entry will be deleted from both objects.</p> <p>Is it because of hoisting - that is, the...
0debug
MANIFEST.MF (The system cannot find the path specified) : <p>I am trying to create the project as set out in the tutorial "<a href="http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/" rel="noreferrer">http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/<...
0debug
different result when using stream and parallelStream for redusing same array of data? : I used reduce with stream and also parallelStream on the same array with same Lambda Expression and I expected the same result but the output is different. I don't Understand why!? following is the code: System.out....
0debug
How to add progress bar over dialog : <p>Whenever I want to show progress bar into my app, I call this method and this method adds ProgressBar into my layout. </p> <p><strong>Problem :</strong> I want to show this progress bar over Dialog, but Dialog is always shown above. What can be done for this situation?</p> <pr...
0debug
How to achieve behavior of setTimeout in Elm : <p>I'm writing a web game in Elm with lot of time-dependent events and I'm looking for a way to schedule an event at a specific time delay.</p> <p>In JavaScript I used <code>setTimeout(f, timeout)</code>, which obviously worked very well, but - for various reasons - I wan...
0debug
static int spapr_create_pci_child_dt(sPAPRPHBState *phb, PCIDevice *dev, void *fdt, int node_offset) { int offset, ret; char nodename[FDT_NAME_MAX]; pci_get_node_name(nodename, FDT_NAME_MAX, dev); offset = fdt_add_subnode(fdt, node_offset, nodename); ret...
1threat
How to call a function on append-icon click in Vuetify.js? : <p>I need the <code>append-icon="close"</code> to call <code>@click="clearSearch()"</code></p> <p>Right now I'm implementing it with a dedicated button:</p> <pre><code> &lt;v-text-field v-model="search" class="search" label="search" ...
0debug
static void filter(AVFilterContext *ctx) { IDETContext *idet = ctx->priv; int y, i; int64_t alpha[2]={0}; int64_t delta=0; Type type, best_type; int match = 0; for (i = 0; i < idet->csp->nb_components; i++) { int w = idet->cur->video->w; int h = idet->cur->video->...
1threat
In while, i'm expected that in every loop it will take an another (next one) char. but switch satatement working just for once. how can i repair this? : // this code should take every char and see if its 'A' or 'T'. Then if it takes an'A' it should ignore the next 'A'characters until it takes an 'T'. it kinda like matc...
0debug
Unable to push files to git due to: failed to push some refs : <p>I have a directory that i want to turn into a git project.</p> <p>I created a new project in gitlab and then i did the following:</p> <pre><code>git init git remote add origin git@gitlab.com:a/b/c.git git add . git commit -m "Initial commit" git push -...
0debug
let my function work always when my app is off : actually i am developing an alarm so i need to retrieve times from database the code explain how i iterate my database and retrieve hour and minutes and then set it in calendar how can i let that function working always and always looping in my database to compare wit...
0debug
When to use const with objects in JavaScript? : <p>I recently read about ES6 <code>const</code> keyword and I can understand its importance when having something like this:</p> <pre><code>(function(){ const PI = 3.14; PI = 3.15; // Uncaught TypeError: Assignment to constant variable })(); </code></pre> <p>So...
0debug
How to correctly use Vue JS watch with lodash debounce : <p>I'm using lodash to call a debounce function on a component like so:</p> <pre><code>... import _ from 'lodash'; export default { store, data: () =&gt; { return { foo: "", } }, watch: { searchStr: _.debounc...
0debug
PHP performance difference conditions of if statement : <p>Hey quick question anyone knows if there is any performance difference between these 2 codes (PHP-7):</p> <pre><code>public function isActive() : bool { if ($cond1) { if ($cond2) { return true; } } return false; } </cod...
0debug
Getting "guard body may not fall through" error when setting up Google Analytics on iOS Project (in Swift) : <p>I am getting the following error when trying to archive my build on XCode:</p> <blockquote> <p>/Users/AppDelegate.swift:18:9: 'guard' body may not fall through, consider using 'return' or 'break' to exit...
0debug
How to check array size in c++ avoiding empty spaces : <p>I am making a password program, when you input a password from a character array and i want to check if all the array spaces are used. If c++ auto fills empty brackets how can i evaluate?</p>
0debug
static void openpic_update_irq(OpenPICState *opp, int n_IRQ) { IRQSource *src; bool active, was_active; int i; src = &opp->src[n_IRQ]; active = src->pending; if ((src->ivpr & IVPR_MASK_MASK) && !src->nomask) { DPRINTF("%s: IRQ %d is disabled\n", __func__, n_IRQ); ...
1threat
Reverse a string in C++ with string(name.rbegin(),name.rend()); : string is = "text"; string(is.rbegin(),is.rend()); I have found this method for reversing a string but I don't understand how it works. Can you provide me with an explanation?
0debug
static void ohci_sysbus_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = ohci_realize_pxa; set_bit(DEVICE_CATEGORY_USB, dc->categories); dc->desc = "OHCI USB Controller"; dc->props = ohci_sysbus_properties; dc->reset = usb_ohci_reset_sysb...
1threat
how to use spring annotations like @Autowired or @Value in kotlin for primitive types? : <p>Autowiring a non-primitive with spring annotations like</p> <pre><code>@Autowired lateinit var metaDataService: MetaDataService </code></pre> <p>works.</p> <p>But this doesn't work:</p> <pre><code>@Value("\${cacheTimeSeconds...
0debug
static int svq1_encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { SVQ1Context * const s = avctx->priv_data; AVFrame *pict = data; AVFrame * const p= (AVFrame*)&s->picture; AVFrame temp; int i; if(avctx->pix_fmt != PIX_FMT_YUV410P){ av_log(...
1threat
-how to get the contents of a class or id, with a url that leads to the page in question! "sorry for my english :p" : I would like to retrieve the content of a (class), and I would like to recover it just with the url, kind I give the url and he gives me the content of a class I hope you understand what I want to say...
0debug
static BlockDriverState *bdrv_new_open(const char *filename, const char *fmt, int flags, bool require_io, bool quiet) { BlockDriverState *bs; BlockDr...
1threat
How do i make tab button clickable? : I am trying to make my navigation bar clickable. For example when a user clicks data a data web page opens up. But in my code i am unable to do so. When i click the tab button nothing happens. Can someone help me so that when i click the tab button shows the content? Note i am usin...
0debug
How can I compute element-wise conditionals on batches in TensorFlow? : <p>I basically have a batch of neuron activations of a layer in a tensor <code>A</code> of shape <code>[batch_size, layer_size]</code>. Let <code>B = tf.square(A)</code>. Now I want to compute the following conditional on each element in each vecto...
0debug
how to get full access to printer using python or java? : can we use python or java (my priority is python) to write a program that run on raspberry pi and have control over our printer, i.e. just by pushing a button on raspberry pi, the printer do the nozzle check, or head cleaning. is it possible ? and what langu...
0debug
Mysql selecting hour range : [![DB][1]][1] How can I Select all start time that is >= 8:00:00 and < 16:00:00? [1]: https://i.stack.imgur.com/Fz4mT.png
0debug
Pattern for rich error handling in gRPC : <p>What is the pattern for sending more details about errors to the client using gRPC?</p> <p>For example, suppose I have a form for registering a user, that sends a message</p> <pre><code>message RegisterUser { string email = 1; string password = 2; } </code></pre> <p>w...
0debug
How to create a complex side-by-side bar chart with SE bars in R Studio : I am creating a side-by-side bar chart with Standard Error bars from a Two-way ANOVA table in R studio. The complete version of bar chart should look like this: [example bar chart][1] The data we are working with is in Excel: [Raw Data][2] ...
0debug
Protractor - ScriptTimeoutError: asynchronous script timeout: result was not received in 20 seconds : <p>I'm new to Protractor and I am trying to run my script. </p> <pre><code>describe('Navigator homepage', function() { it('should proceed to login', function() { browser.get('url'); }) it('Clicks the proceed button',f...
0debug
Array to sort worlds by word class in a text : <p>How can I make a script that sorts words in a text field by word class. Verb and adjectives etc. </p> <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 prett...
0debug
Replicare rows in Matrix : I ve a Matrix A<- DOG. 4 CAT. 3 MOUSE. 6 PIG. 1 HORSE. 9 Names of animals are rownames Now I 've the matrix B <- A1. A2. A3. A4. A5. A6. AGE. 16. 15. 4. 9. 11. 12 ...
0debug
static int theora_decode_header(AVCodecContext *avctx, GetBitContext gb) { Vp3DecodeContext *s = avctx->priv_data; s->theora = get_bits_long(&gb, 24); av_log(avctx, AV_LOG_INFO, "Theora bitstream version %X\n", s->theora); if (s->theora < 0x030200) { s->flipped_image =...
1threat
Do I always need to call URL.revokeObjectURL() explicitly? : <p>I'm using blob to download files, Problem is I want to keep Object URL even after downloading the file, without making major changes in code base. </p> <p>So one of the option is not to call <code>URL.revokeObjectURL();</code></p> <p>Is it safe to dep...
0debug
COUNT(*) Includes Null Values? : <p><a href="https://msdn.microsoft.com/en-us/library/ms175997.aspx" rel="noreferrer">MSDN</a> documentation states:</p> <blockquote> <p>COUNT(*) returns the number of items in a group. This includes NULL values and duplicates.</p> </blockquote> <p>How can you have a null value in ...
0debug
mips assembly code to shift the bit programming : <p>Read in your Student ID and save it to a register, and read in the number “10010000x” as the initial memory address. Then shift your student ID number to the right one bit at a time, and save it to the memory address which is 4 bytes increment from the pre...
0debug
Add header to CSV without loading CSV : <p>Is there a way to add a header row to a CSV without loading the CSV into memory in python? I have an 18GB CSV I want to add a header to, and all the methods I've seen require loading the CSV into memory, which is obviously unfeasible. </p>
0debug
why it is not giving output in c/c++? : #include<stdio.h> /*I want to find pairs with given sum such that elements of pair are in different rows.*/ int main() { int a[5][5]={{-1,2,3,4}, {5,3,-2,1}, {6,7,2,-3}, {2,9,1,4}, {2,1,-2,0}}; int sum=11...
0debug
appending from a list of listts : <p>I have the following list:</p> <pre><code>beerlist = [['', 'beer', 'uerige-doppel-sticke', '46158', ''], ['', 'beer', 'schumacher-1838er', '211568', ''], ['', 'beer', 'schlussel-stike', '53106', '']] </code></pre> <p>and I would like to iterate through the list and print...
0debug
av_cold int ff_mpv_common_init(MpegEncContext *s) { int i; int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1; if (s->encoding && s->avctx->slices) nb_slices = s->avctx->slices; if (s-...
1threat
window.location.href = 'http://attack.com?user=' + user_input;
1threat
Not able to hide div if it conatin text : Hello Everyone I need help I have two div inside li and two buttons I want to hide button if second_div class div is present or it contain text please help I have tried various solution hasclass not working <li> <div class="first_div"></div> <button></butto...
0debug
static void test_bmdma_no_busmaster(void) { QPCIDevice *dev; void *bmdma_base, *ide_base; uint8_t status; dev = get_pci_device(&bmdma_base, &ide_base); PrdtEntry prdt[4096] = { }; status = send_dma_request(CMD_READ_DMA | CMDF_NO_BM, 0, 512, ...
1threat
Color change agter swift migration to swift 4.2 : I upgraded my swift project to swift 4.2 and a very strange change occurred. The white color of my button became blue. In the story board, the color remains white but when I run the application, the color turns blue. I do not know what I have to do so any one with guida...
0debug
In CodeIgniter, how To display a view page in a particular div element : I am working on a project using codeIgniter. I got stuck in a UI part. I need to display a view page inside a div element, but instead of displaying in the div either it is getting displayed in the new tab or nothing is working. <!-- begin snip...
0debug
pre-increment and post-increment in C : <p>First of all, I would like to apologize, if this question has been asked before in this forum. I searched, but could't find any similar problem.</p> <p>I am a beginner in C. I was going through a tutorial and came across a code, the solution of which I can't understand. </p> ...
0debug
static void tcg_out_bpcc(TCGContext *s, int scond, int flags, int label) { TCGLabel *l = &s->labels[label]; int off19; if (l->has_value) { off19 = INSN_OFF19(tcg_pcrel_diff(s, l->u.value_ptr)); } else { off19 = *s->code_ptr & INSN_OFF19(-1); tcg_out_reloc(s, s...
1threat
static int rtsp_write_packet(AVFormatContext *s, AVPacket *pkt) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; fd_set rfds; int n, tcp_fd; struct timeval tv; AVFormatContext *rtpctx; int ret; tcp_fd = url_get_file_handle(rt->rtsp_hd); while (1) { FD_ZERO(...
1threat
How can i minimize this code? because excel said it has more than 64 conditions. thank you : note: those texts equivalent to $C$1 is a dropdown list.[see picture for reference][1] =IF($C$1="","",IF($C$1="AGLAYAN 1",T4,IF($C$1="AGLAYAN 2",AI4,IF($C$1="ALABEL",AX4,IF($C$1="BABAK 1",BM4,IF($C$1="BABAK 2",CB4,IF($C$1="BAN...
0debug
SSRS report definition is newer than Server : <p>I created some reports in Visual Studio 2015 with all the latest updates. However, when I try to deploy the reports I get this message:</p> <blockquote> <p>The definition of this report is not valid or supported by this version of Reporting Services.<br> 11:40:28 Er...
0debug
Can't using windows form : I'm making a simple app, but when i'm adding a windows form, i see a error. I trie modify ".NET desktop development" and add "C++/CLI support" but it wont work. [1]: https://i.stack.imgur.com/fzSE5.png Anyone help me please !!!
0debug
How to solve unhandled NameError in Python : <p>So while running the codes on the following error is generated. It says that the NameError is left unhandled by the user code.</p> <p>The error:</p> <pre><code>Traceback (most recent call last): File "D:\3rd sem\Object Oriented Programming\Lab\VS\PythonApplication1\Pyth...
0debug
Insert Query Not working at a particular time of the day in VS 2015! Exact same time everyday. : A Windows application using Winforms and MYSQL SERVER in VS 2015. Project works fine at all times except from 10:00AM to 1:00PM CST. ======= $During this time of the day every other query like DELETE/UPDATE works but Ins...
0debug
IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive) { DeviceState *dev; dev = qdev_create(&bus->qbus, drive->media_cd ? "ide-cd" : "ide-hd"); qdev_prop_set_uint32(dev, "unit", unit); qdev_prop_set_drive_nofail(dev, "drive", blk_bs(blk_by_legacy_din...
1threat
Just Happened ... it was working fine ... issue with Android Studio 2.3.3 : Iam getting the following error... I am new at this and hate to mess with the gradle or any file ... can anyone please help... the errors: " The SDK platform tools version (25.0.6) is too old to check APIs compiled with API 26; ple...
0debug
static int mpc7_decode_init(AVCodecContext * avctx) { int i, j; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t buf[16]; static int vlc_inited = 0; if(avctx->extradata_size < 16){ av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size)...
1threat
on_host_init(VSCMsgHeader *mhHeader, VSCMsgInit *incoming) { uint32_t *capabilities = (incoming->capabilities); int num_capabilities = 1 + ((mhHeader->length - sizeof(VSCMsgInit)) / sizeof(uint32_t)); int i; QemuThread thread_id; incoming->version = ntohl(incoming->version); if...
1threat
How many intermediate steps should you use when programming? : <p>I am not new to programming and can solve most my daily programming problems alone, but I have a question, which will most likely be closed in a few minutes/hours. But still, I am interested in what you guys have to say about this.</p> <p>Let's look at ...
0debug
C++ program to compute the surface area and volume of a cylinder using two separate functions : <pre><code>#include&lt;stdio.h&gt; #include&lt;iostream&gt; using namespace std; class Calculate //class form { int r,h ; public: void getdata() //input data { cout&lt;&lt;"Enter the radius and height";...
0debug
static void x86_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); X86CPU *cpu = X86_CPU(dev); X86CPUClass *xcc = X86_CPU_GET_CLASS(dev); CPUX86State *env = &cpu->env; Error *local_err = NULL; static bool ht_warned; if (xcc->kvm_required && !kvm_enabled()) { ...
1threat
static int decode_plane(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, const uint8_t *data, int32_t data_size, int32_t strip_width) { Cell curr_cell; int num_vectors; num_vectors = bytestream_get_le32(...
1threat
If statement issue prints all the phrases : <p>Here is the code. I want to write a different phrase that needs to be printed according to the Q1 response but the program doesn't work properly and prints all the phrases. </p> <pre><code>print ('Pet animals') #choose an animal print ('A. Dog') print ('B. Cat') print ('...
0debug
static always_inline int isnormal (float64 d) { CPU_DoubleU u; u.d = d; uint32_t exp = (u.ll >> 52) & 0x7FF; return ((0 < exp) && (exp < 0x7FF)); }
1threat
av_cold int MPV_encode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; int i; int chroma_h_shift, chroma_v_shift; MPV_encode_defaults(s); switch (avctx->codec_id) { case CODEC_ID_MPEG2VIDEO: if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT...
1threat
static int decode_byterun(uint8_t *dst, int dst_size, const uint8_t *buf, const uint8_t *const buf_end) { const uint8_t *const buf_start = buf; unsigned x; for (x = 0; x < dst_size && buf < buf_end;) { unsigned length; const int8_t value = *buf++; if...
1threat
static void external_snapshot_prepare(BlkActionState *common, Error **errp) { int flags = 0, ret; QDict *options = NULL; Error *local_err = NULL; const char *device; const char *node_name; const char *snapshot_ref; const char *...
1threat
static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, long width, long height, long lumStride, long chromStride, long dstStride) { RENAME(yuvPlanartoyuy2)(ysrc, usrc, vs...
1threat
struct pxa2xx_state_s *pxa255_init(unsigned int sdram_size, DisplayState *ds) { struct pxa2xx_state_s *s; struct pxa2xx_ssp_s *ssp; int iomemtype, i; s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s)); s->env = cpu_init(); cpu_arm_set_model(s->env...
1threat
ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.8.0 but 3.8.2 was found instead : <p>I ran</p> <pre><code>ng version </code></pre> <p>and got the following output:</p> <pre><code>Angular CLI: 9.0.3 Node: 12.16.1 OS: win32 x64 Angular: 9.0.2 ... animations, common, compiler, compiler-cli, core, form...
0debug
target_phys_addr_t cpu_get_phys_page_debug(CPUState *env, target_ulong addr) { return addr; }
1threat
static void virtio_gpu_reset(VirtIODevice *vdev) { VirtIOGPU *g = VIRTIO_GPU(vdev); struct virtio_gpu_simple_resource *res, *tmp; int i; g->enable = 0; QTAILQ_FOREACH_SAFE(res, &g->reslist, next, tmp) { virtio_gpu_resource_destroy(g, res); } for (i = 0; i < g->conf.max_o...
1threat
windows form application sequential ShowDialog()s : well i have a funny problem with closing dialog forms. here is the problem: I run application and open second form (through menu strip) as `showdialog();` and then from second form open third form. when i open third form by `button 1` and then close it everything ...
0debug
How do I open an external url in flutter web in new tab or in same tab : <p>I have a simple web app I have created with flutter web. I would like to know how I can open new an <code>external url</code> either in a <code>new tab</code> or in <code>the same tab</code> in my flutter web app. say I want to open the url <a ...
0debug
How to Copy Rows from one CSV to other CSV File using python : I'm trying to coping rows from one CSV to other and trying to remove row after being copied from the first file.. please see the code it's working for only copy specific rows from one csv to other import csv import os File1 = 'in.csv' ...
0debug
React - Call parent method in child component : <p>I have a parent and child compoents and I want to call a parent method in the child component like this:</p> <pre><code>import Parent from './parent.js'; class Child extends React.Component { constructor(props) { super(props); }; click() { ...
0debug
How to increment the counter inside a Liquid for loop? : <p>I am struggling to figure out how to increment the index variable within a for loop in Liquid/Jekyll. Currently, I have something along the lines of </p> <pre><code>{% for i in (0..num_posts) %} {% if i &lt; some_value %} do_thing {% else %} ...
0debug
Difference between Dense(2) and Dense(1) as the final layer of a binary classification CNN? : <p>In a CNN for binary classification of images, should the shape of output be (number of images, 1) or (number of images, 2)? Specifically, here are 2 kinds of last layer in a CNN:</p> <pre><code>keras.layers.Dense(2, activa...
0debug
My application crashed : import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; public class MainActivity extends AppCompatActivity { EditText a; @Override protected void onCreate(Bundle savedInstanceState) { ...
0debug
Using images in responsive web design : <p>What is the correct method to use an image for different sizes. Like Thumbnail, Large Devices, Medium Devices and Small Devices? Mainly I'm using Bootstrap. I have used .img-responsive class. Is there any easy way to use the same image for these different screen sizes except c...
0debug
Hiding Duplicate Toolbars Items in Eclipse : <p>I don't know how, but my STS has got duplicate toolbars items and I am not sure how to remove them. Here is how my duplicated toolbar looks like.</p> <p><a href="https://i.stack.imgur.com/KMPku.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KMPku.png" alt="ent...
0debug
convert String to Util date in "dd-MMM-yyyy" fromat : <p>I am working in Eclipse . I have string date = "12-DEC-2016" </p> <p>now i want to convert it into util date in same format. Please help me with this query.</p>
0debug
How can I instantiate a lambda closure type in C++11/14? : <p>I'm <a href="https://stackoverflow.com/questions/55708180/lambda-closure-type-constructors">aware</a> that there's no default constructor for lambda closure type. But does that mean it's impossible to instantiate it after it being passed as a template parame...
0debug
static void spapr_msi_setmsg(PCIDevice *pdev, hwaddr addr, bool msix, unsigned first_irq, unsigned req_num) { unsigned i; MSIMessage msg = { .address = addr, .data = first_irq }; if (!msix) { msi_set_message(pdev, msg); trace_spapr_pci_msi_setup(pdev->na...
1threat
void ide_init2(IDEBus *bus, DriveInfo *hd0, DriveInfo *hd1, qemu_irq irq) { IDEState *s; static int drive_serial = 1; int i, cylinders, heads, secs; uint64_t nb_sectors; for(i = 0; i < 2; i++) { s = bus->ifs + i; s->bus = bus; s->unit = i; ...
1threat
How to change a td without it's id? : Actually i'm trying to make something "strange" i have a row in a table where i have the head of the row and 96 td item. Each row is clickable by the following function $("#table tr").click(function(){}); Now by getting a value from 0 to 96 i need to get the td in ...
0debug
Is it faster to concatenate a string or an array in JavaScript? : <p>Which is faster?</p> <pre><code>var str = ''; for(var i=0; i&lt;1000; i++) { str += i; } </code></pre> <p>or</p> <pre><code>var arr = []; for(var i=0; i&lt;1000; i++) { arr.push(i); } var str = arr.join(''); </code></pre> <p>I ask because...
0debug
mysql query with conditions check : I have a table where it contains user details. Now I need to execute a mysql query which satisfies the below conditions There are two tables 1) user table - which contains userid,name,firstname, 2) category table - which containts categoryid, category type, assinged userid No...
0debug
mpi c++ you want to treat each number with each number separately : i have problem with mpi c++. i have array `int tab = [1,2,3,4,5,6,7,8,9,10,11]` I want to divide the tables due to the number of processes if I have two processes, divide eg one process [1,2,3,4,5,6] two process [7,8,9,10,11] if i hav...
0debug
type A requires that type B be a class type swift 4 : <p>the following code gives me a compile error </p> <blockquote> <p>'WeakReference' requires that 'ServiceDelegate' be a class type</p> </blockquote> <pre><code>protocol ServiceDelegate: AnyObject { func doIt() } class SomeClass() { // compile error occ...
0debug
Pop to root view controller from modal : <p>I am trying to pop to the root view controller using the following code:</p> <pre><code>self.navigationController!.popToRootViewController(animated: true) </code></pre> <p>This usually works, but I get an error when trying to use this code when the current view is a modal. ...
0debug
External files in Airflow DAG : <p>I'm trying to access external files in a Airflow Task to read some sql, and I'm getting "file not found". Has anyone come across this?</p> <pre><code>from airflow import DAG from airflow.operators.python_operator import PythonOperator from datetime import datetime, timedelta dag = D...
0debug
ThreadPool *aio_get_thread_pool(AioContext *ctx) { if (!ctx->thread_pool) { ctx->thread_pool = thread_pool_new(ctx); } return ctx->thread_pool; }
1threat
solution architecture in c# where winforms and asp.mvc share business logic and Data access : <p>I have a c# winforms solution which includes the below projects:-</p> <ol> <li>UI Layer</li> <li>BLL</li> <li>DataModel</li> <li>DAL</li> </ol> <p>Now, i want to create a asp.mvc UI within the same above solution, for the...
0debug
static void svq3_add_idct_c(uint8_t *dst, int16_t *block, int stride, int qp, int dc) { const int qmul = svq3_dequant_coeff[qp]; int i; if (dc) { dc = 13 * 13 * (dc == 1 ? 1538U* block[0] : qmul * (block[0] >> 3) / 2); ...
1threat
A weird output ? : I am new to the C.Sc course and we are taught C program. I was trying some of the basic stuff. Currently I am learning User-Defined-Function. The following code is the one I was trying with. I know it is pretty simple but I am not able to understand why it is producing such weird output. ...
0debug
can i make android app using only html and css : <p>Please tell whether I can make an app using HTML and CSS only and <strong>NO</strong> javascript . I am not aware of any programming languages but I have an idea of making an android application. So I want to make it however and please also suggest for if I could make...
0debug
I am trying to do basic addition in c++ but large numbers are showing : <p>I am tryimg to do basic addition in c++ but a large number shows instead of the number thats suposed to show.</p> <pre><code>#include &lt;iostream&gt; using namespace std; int main() { int x; int y; int sub = x + y; cout&lt;&...
0debug
Angular 6 - WebSocket is closed before the connection is established : <p>Everytime I start my application I get this. I don't use SSL and I am connecting to localhost:4200.</p> <p>WebSocket is closed before the connection is established</p> <p>What would cause this?</p> <p><a href="https://i.stack.imgur.com/xt2Fv.p...
0debug
static int mov_read_dac3(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; enum AVAudioServiceType *ast; int ac3info, acmod, lfeon, bsmod; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; ast = (enum AVAudioServiceType*)ff_stream_new_...
1threat
static av_cold int hap_init(AVCodecContext *avctx) { HapContext *ctx = avctx->priv_data; int ratio; int corrected_chunk_count; int ret = av_image_check_size(avctx->width, avctx->height, 0, avctx); if (ret < 0) { av_log(avctx, AV_LOG_ERROR, "Invalid video size %dx%d.\n", ...
1threat