problem
stringlengths
26
131k
labels
class label
2 classes
JavaScript Intl.DateTimeFormat.format vs Date.toLocaleString : <p>I would like to print a string representing a Date, using a specific timezone, locale, and display options.</p> <p>Which one of these should I use?</p> <ol> <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/D...
0debug
static int tap_set_sndbuf(TAPState *s, const char *sndbuf_str) { int sndbuf = TAP_DEFAULT_SNDBUF; if (sndbuf_str) { sndbuf = atoi(sndbuf_str); } if (!sndbuf) { sndbuf = INT_MAX; } if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1 && sndbuf_str) { qemu_error("T...
1threat
How to put log file in user home directory in portable way in logback? : <p>I would like to put log file into user home directory.</p> <p>How to do that in portable way, i.e. working on Windows, Linux and Mac?</p>
0debug
Can anyone tell the difference between Ubuntu server and lamp stack or server : I know that Ubuntu server is is for server and lamp is software for server which stands for Linux Apache MySQL php....my doubt is to host a site ..is it required to install lamp on Ubuntu server.or does Ubuntu server has all the features of...
0debug
Anroid Studion 3.4.2 error when compiling : [I am getting errors on the lines compiling message_text][1] [1]: https://i.stack.imgur.com/zVP7j.png
0debug
static int wav_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; int64_t left; AVStream *st; WAVDemuxContext *wav = s->priv_data; if (CONFIG_SPDIF_DEMUXER && wav->spdif == 0 && s->streams[0]->codec->codec_tag == 1) { enum AVCodecID codec; ret = ff_spd...
1threat
i am trying to insert some data in database using this code : i'm using this code to insert image into databse but some error keep popping plz help me out <?php if(isset($_POST ['insert_post'])) { $product_title=$_POST['product_title']; $product_cat=$_POST['product_cat']; $product_b...
0debug
write a java method insertNode which takes two integers int a and int b : Two given classes: public class Node { int data; Node next; Node(int d, Node n){ data = d; next = n; } } public class List{ Node header; } write a jav...
0debug
static int sdl_init_out (HWVoiceOut *hw, audsettings_t *as) { SDLVoiceOut *sdl = (SDLVoiceOut *) hw; SDLAudioState *s = &glob_sdl; SDL_AudioSpec req, obt; int shift; int endianess; int err; audfmt_e effective_fmt; audsettings_t obt_as; shift <<= as->nchannels == 2; ...
1threat
I am completely lost on how to start, let alone accomplish a coding project for school : <p>So, my java class is having this thing called stem challenge Wednesday, and my group decided to tackle the problem of misinformation. We wanted to create a program that will scan an inputted document and cross reference it on on...
0debug
ROUND Function - Round up to nearest whole number : <p>I want to be able to round up a number to the nearest whole - for example, 4.1 would round to 5, 4 would stay as 4.</p> <p>5.6 would round to 6, 5.01 would round to 6.00. any whole numbers would not round but stay the same.</p>
0debug
Windows Mobile Device center stops working after Windows 10 1703 upgrade : <p>i just installed new Windows 10 version (1703) and now i'm not able to connect any Windows CE device because Windows Mobile Device center 6.1 doesn't run. <a href="https://i.stack.imgur.com/1TRsz.png" rel="noreferrer"></a> I tried to reinstal...
0debug
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
I wanted to ask about how to prevent audio, video and image files from appearing on other websites and running it only on my own site : <p>I will simply explain I don't want audio, video, and images to work only on my site Whoever has this experience I hope to benefit us</p>
0debug
modify array with specific condition (JS) : Have an array with objects. Look like this: [{id:2},{id:3},{id:4},{id:9},{id:10},{id:11},] in result I want this: [{id:2,id:4},{id:9,id:11}] Have no idea how to delete middle values, and how to separate it when we don't have ids:5,6,7,8
0debug
Android - Refresh An Activity , but it should not clear previous selection areas : This is code of MainActivity languages = (Spinner) findViewById(R.id.spin_lang); languages.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View v...
0debug
Microservices: REST vs Messaging : <p>I heard Amazon uses HTTP for its microservice based architecture. An alternative is to use a messaging system like RabbitMQ or Solace systems. I personally have experience with Solace based microservice architecture, but never with REST. <br> Any idea what do various big league imp...
0debug
how to wrap a binary operator using modern C++ instead of macros : <p>I saw a macro wrapper for binary operator on <a href="http://craftinginterpreters.com/a-virtual-machine.html" rel="nofollow noreferrer">this site</a> like this:</p> <pre><code>#define BINARY_OP(op) \ do { ...
0debug
Is there a way to log in to discord using a python script? : <p>My goal is to be able to loging to Discord using a script and then be able to send messages to channels. I need it to communicate with a music bot automatically but if I write a bot for discord other bot's will ignore it so thats not an option. Does anyone...
0debug
What are best resources to understand concurrency in golang? : <p>I am new to go? Can someone specify resources for understanding concurrency using go? </p>
0debug
how to remove ads url / ads search url from search engine : <p>I am facing one issue on chrome search engine. Whenever I searched something it shows ads urls why? Please check below the image. Can I add an ad blocker extension? </p> <p><a href="https://i.stack.imgur.com/pnwBv.png" rel="nofollow noreferrer"><img src="...
0debug
IIS Rewrite rule - ignore for localhost : <p>I have the following rule which is working well for redirecting my www requests to the root.</p> <p>However I can't seem to turn it off for localhost. Here is what I have now:</p> <pre><code> &lt;rule name="CanonicalHostNameRule1"&gt; &lt;match url="(.*)" /&gt; ...
0debug
ReadLineState *readline_init(Monitor *mon, ReadLineCompletionFunc *completion_finder) { ReadLineState *rs = g_malloc0(sizeof(*rs)); rs->hist_entry = -1; rs->mon = mon; rs->completion_finder = completion_finder; return rs; }
1threat
Should I prevent from using position relative and absolute? : <p>I have a friend that deals with web a pretty much time, and he is saying that the standard is almost not using absolute/relative position, especially when you doing responsive design.</p> <p>I am totally beginner, and until now I use for positioning posi...
0debug
static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){ AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; int longs_pre_entry= avio_rl16(pb); int index_sub_type = avio_r8(pb); int index_type = avio_r8(pb); int entries_in_use = avio_rl32(pb); int chunk_id ...
1threat
static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { int...
1threat
def is_Monotonic(A): return (all(A[i] <= A[i + 1] for i in range(len(A) - 1)) or all(A[i] >= A[i + 1] for i in range(len(A) - 1)))
0debug
Java - code always throw NullPointerException : <p>This code throws a NullPointerException. </p> <pre><code>protected static Integer cost; public static int incCost(int value) { cost += value; }; </code></pre>
0debug
Android Chat Application using Openfire server and XMPP (SMACK) client : <p>So far, I have learnt that I need a Chat Server(Openfire) and a XMPP client with Smack Libraries to communicate with the server.So,</p> <ol> <li>Installed and configured Openfire.</li> <li>Now for the client part, I am really confused how to g...
0debug
JQuery - Is it possible to fire more effects after a callback has been used? : I would like to be able to use a callback in a stack of events, but not at the end. I tried to do it, but it seems the code escapes any effects after the callback has been called. $(this).animate({//animate image top:0 }, a...
0debug
How to skip files that have no data in them in folder? : <p>I have a folder, with 1000s of txt files. My code is working perfectly fine if there is data in the file. </p> <p>Is there anyway to build logic in my code to check if the file is empty, and if empty to skip to the next one? </p> <pre><code>import glob impo...
0debug
static inline void decode(DisasContext *dc, uint32_t ir) { if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { tcg_gen_debug_insn_start(dc->pc); } dc->ir = ir; LOG_DIS("%8.8x\t", dc->ir); if (dc->ir) { dc->nr_nops = 0; } else { LOG...
1threat
How to convert varchar to number : <p>I have character string as '00000625710' I want it as number 6257.10 how can I do that . I tried as follow <code>select to_number('00000002511','999999999.99')from dual;</code></p> <p>But didn't work . can any one help me in this . Thank you.</p>
0debug
Rspec 3.6, Rails 5 error: wrong number of arguments (given 2, expected 1) for `post` request : <p>I just started a new project in Rails 5, (my first, though I have several projects in Rails 4.x.) and am having trouble with controller specs. </p> <pre><code>describe RequestsController, :type =&gt; :controller do it ...
0debug
Vector with 1 2 3 4 5 2 3 4 5 6 3 4 5 6 7 4 5 6 7 8 5 6 7 8 9 with the commands rep() and seq()? : I'm having problem to create the vector `1 2 3 4 5 2 3 4 5 6 3 4 5 6 7 4 5 6 7 8 5 6 7 8 9` with the commands `rep()` and `seq()`. Could anyone be able to give me a hint?
0debug
MOOC Week 2, Exercise 36.1 : import java.util.Scanner; public class Pollo { public static void main(String[] args) { Scanner carne = new Scanner(System.in); System.out.println("Type numbers:"); int Numero = Integer.parseInt(carne.nextLine()); ...
0debug
static int oss_init_in (HWVoiceIn *hw, struct audsettings *as) { OSSVoiceIn *oss = (OSSVoiceIn *) hw; struct oss_params req, obt; int endianness; int err; int fd; audfmt_e effective_fmt; struct audsettings obt_as; oss->fd = -1; req.fmt = aud_to_ossfmt (as->fmt, as->endi...
1threat
TypeError: search.valueChanges.debounceTime is not a function : <p>I am just learning angular2. At the time of applying something at input changes, I am getting the error.</p> <p>app.ts:</p> <pre><code>export class AppComponent { form: ControlGroup; constructor(fb: FormBuilder) { this.form = fb.group...
0debug
Partialy reload my website Nginx? : I am currently working on the development of a platform and I was wondering how sites like Behance, Artsation and upwork do to partially reload their page. (When you click on a link, the page loads well but the menu does not move just like the footer). I first thought of Nginx but Ar...
0debug
static int tls_open(URLContext *h, const char *uri, int flags) { TLSContext *c = h->priv_data; int ret; int port; char buf[200], host[200]; int numerichost = 0; struct addrinfo hints = { 0 }, *ai = NULL; const char *proxy_path; int use_proxy; ff_tls_init(); av_url_...
1threat
How to icon them at the same level , help me please : How to icon them at the same level , help me please [view page ][1] [code source][2] [1]: https://i.stack.imgur.com/PoU96.png [2]: https://i.stack.imgur.com/0duVy.png
0debug
Why is my python script crashing on my server? : <p>Hey I currently run a python script on my windows server. After 10-24h the script crashes and I don't know why. Is there an easy opportunity to get to know where its coming from? I thought about using an IDE, but my server is probably to small and its kind of an overk...
0debug
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *in_picture, int *frame_size, AVOutputStream *audio_sync) { int nb_frames, i, ret; AVPicture *final_picture...
1threat
ADD README.TXT FILE TO ALL COMPRESSIONS WINRAR CMD PROGRAM : Example : @ECHO OFF for /D %%f in ("C:\directory_with_files_you_want_to_compress\ *") do copy "C:\directory_with_readme.txt\readme.txt" "%%f\" cd C:\directory_with_files_you_want_to_compress SET PATH=C:;C:\Program Files...
0debug
Python/Kivy : can i move from one TextBox to another TextBox by press enter button of keyboard : I have two file test.py and test.kv.<br/> I want to move from one TextBox to another TextBox by press enter key.I am new to python and kivy.Anyone can tell me It is possible or not? #test.py from kivy.uix.screen...
0debug
How to remove specific substrings from a set of strings in Python? : <p>I have a set of strings <code>set1</code>, and all the strings in <code>set1</code> have a two specific substrings which I don't need and want to remove. <br/> Sample Input: <code>set1={'Apple.good','Orange.good','Pear.bad','Pear.good','Banana.bad'...
0debug
static target_ulong h_protect(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { CPUPPCState *env = &cpu->env; target_ulong flags = args[0]; target_ulong pte_index = args[1]; target_ulong avpn = args[2]; hwaddr hpte; target_...
1threat
static inline uint64_t fload_invalid_op_excp(CPUPPCState *env, int op) { uint64_t ret = 0; int ve; ve = fpscr_ve; switch (op) { case POWERPC_EXCP_FP_VXSNAN: env->fpscr |= 1 << FPSCR_VXSNAN; break; case POWERPC_EXCP_FP_VXSOFT: env->fpscr |= 1 << FPSCR_VXSOFT; ...
1threat
Can we integrate JSF 2.0 + Spring 4.2.X + Spring Security 4.2.X : <p>I would like to know can we integrate Spring security 4.2.X with JSF 2.0. I am facing issue with JSP pring security tags for role wise access. If yes please suggest.</p>
0debug
static void gen_mfsri(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else int ra = rA(ctx->opcode); int rd = rD(ctx->opcode); TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; ...
1threat
Can I somehow build webassembly code *without* the emscripten "glue"? : <p>Can I somehow create a wasm file, that will work on its own as described <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports" rel="noreferrer">in MDN here</a> (by instatiating th...
0debug
Gensim word2vec in python3 missing vocab : <p>I'm using gensim implementation of Word2Vec. I have the following code snippet:</p> <pre><code>print('training model') model = Word2Vec(Sentences(start, end)) print('trained model:', model) print('vocab:', model.vocab.keys()) </code></pre> <p>When I run this in python2, i...
0debug
Dockerfile and dpkg command : <p>I'm trying to create a Dockerfile to install VuFind.</p> <p>This is my Dockerfile:</p> <pre><code>#Name of container: docker-vufind:3 # Pull base image FROM ubuntu:16.04 MAINTAINER xxx "xxx@mail.com" #Install latest patches RUN apt-get update &amp;&amp; apt-get install -y \ &am...
0debug
static int mov_read_smi(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; av_free(st->codec->extradata); st->codec->extradata = av_mallocz(atom.size + 0x5a + FF_INPUT_BUFFER_PAD...
1threat
Why does Go panic on writing to a closed channel? : <p>Why does Go panic on writing to a closed channel?</p> <p>While one can use the <code>value, ok := &lt;-channel</code> idiom for reading from channels, and thus the ok result can be tested for hitting a closed channel:</p> <pre><code>// reading from closed channel...
0debug
Determine if a list composed of anagram elements in Java 8 : <p>I want to determine if a list is anagram or not using Java 8.</p> <p>Example input:</p> <pre><code>"cat", "cta", "act", "atc", "tac", "tca" </code></pre> <p>I have written the following function that does the job but I am wondering if there is a better ...
0debug
How to create own database in redis? : <pre><code>There are 0 to 15 databases in redis. </code></pre> <p>I want to create my own database using redis-cli. Is there any command for it?</p>
0debug
A Python Program that picks something from a list : <p>Sorry If there is already a question of this but I didn't find it. So is there function that picks something from a list but with percents like we have a list with a soda, a soup and a water bottle so the program must pick one of these but the chance it would pick ...
0debug
static int foreach_device_config(int type, int (*func)(const char *cmdline)) { struct device_config *conf; int rc; TAILQ_FOREACH(conf, &device_configs, next) { if (conf->type != type) continue; rc = func(conf->cmdline); if (0 != rc) return rc; ...
1threat
how remove error while using variable "la" in scatter chart? : \\GPS coordinates obtain @Override public void onLocationChanged(Location location) { location.getLatitude(); location.getLongitude(); location.getAltitude(); location...
0debug
Change array elements to objects with key, value : <p>Can anyone tell me how to change this array in javaScript to the following one with objects having the same key 'name' ?</p> <pre><code>const myArray = ['mark', 'david', 'monica']; </code></pre> <p>Desired Output:</p> <pre><code>const myArray = [{name: 'mark'}, {...
0debug
void HELPER(access_check_cp_reg)(CPUARMState *env, void *rip, uint32_t syndrome) { const ARMCPRegInfo *ri = rip; int target_el; if (arm_feature(env, ARM_FEATURE_XSCALE) && ri->cp < 14 && extract32(env->cp15.c15_cpar, ri->cp, 1) == 0) { raise_exception(env, EXCP_UDEF, syndrome, except...
1threat
static int process_line(URLContext *h, char *line, int line_count, int *new_location) { HTTPContext *s = h->priv_data; char *tag, *p, *end; if (line[0] == '\0') return 0; p = line; if (line_count == 0) { while (!isspace(*p) && *p != '\0') ...
1threat
Execute command on host during docker build : <p>Is it possible to create <code>Dockerfile</code> that executes a command on host when image is being build?</p> <p><strong>Now I'm doing:</strong></p> <pre><code>./script_that_creates_magic_file.sh docker build . </code></pre> <p>with Dockerfile:</p> <pre><code>FROM ...
0debug
static void tcg_reg_alloc_start(TCGContext *s) { int i; TCGTemp *ts; for(i = 0; i < s->nb_globals; i++) { ts = &s->temps[i]; if (ts->fixed_reg) { ts->val_type = TEMP_VAL_REG; } else { ts->val_type = TEMP_VAL_MEM; } } for(i = s->nb_g...
1threat
static void fill_mbaff_ref_list(H264Context *h){ int list, i, j; for(list=0; list<2; list++){ for(i=0; i<h->ref_count[list]; i++){ Picture *frame = &h->ref_list[list][i]; Picture *field = &h->ref_list[list][16+2*i]; field[0] = *frame; for(j=0; j<3; ...
1threat
Calling of subclass methods in heritance : <p>I have a class Customer which inherits by class RichPerson and class PoorPerson..it is store in ArrayList cus... however , some of subclass methods are different and i'm unable to call the subclass methods when accessing Customer array list.. like cus.get(0).description.. <...
0debug
Is it possible to give AWT applications sharp taskbar icons in Windows 10 : <p>I'm trying to set the icon of a Java AWT application so it renders in native resolution on the Windows 10 taskbar (including when desktop scaling is set above 100%). It seems that by default, if an executable embeds an icon containing multi...
0debug
What is the most performant way for dynamic styling in React-Native? : <p> In React-Native, you can use <a href="https://facebook.github.io/react-native/docs/stylesheet" rel="noreferrer">Stylesheet</a> to create css-like stylesheets. The main reason of using <code>styleshee.create</code> in favor of plain js-objects is...
0debug
Unable to decode logic of this pattern : <p>I want to print a pattern, when the user input a no. 'N' it will print a pattern like below with all the outer arms of the pattern will contain 'N' '-'. </p> <pre><code> /\ / \ / /\ \ / / \ \ \ \ / / \ \/ / \ / \/ </code></pre> <p>I have tried...
0debug
static void read_sbr_channel_pair_element(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) { if (get_bits1(gb)) skip_bits(gb, 8); if ((sbr->bs_coupling = get_bits1(gb))) { read_sbr_g...
1threat
def average_Even(n) : if (n% 2!= 0) : return ("Invalid Input") return -1 sm = 0 count = 0 while (n>= 2) : count = count+1 sm = sm+n n = n-2 return sm // count
0debug
Force type conversion in python dataclass __init__ method : <p>I have the following very simple dataclass:</p> <pre><code>import dataclasses @dataclasses.dataclass class Test: value: int </code></pre> <p>I create an instance of the class but instead of an integer I use a string:</p> <pre><code>&gt;&gt;&gt; test...
0debug
When is it appropriate to curry a function, and when is it not? Why? : <p>How could I write a javascript function knowing whether it needs to be curried?</p>
0debug
Change another module state from one module in Vuex : <p>I have two modules in my vuex store.</p> <pre><code>var store = new Vuex.Store({ modules: { loading: loading posts: posts } }); </code></pre> <p>In the module <code>loading</code>, I have a property <code>saving</code> which can be set ...
0debug
static void json_emit_element(QJSON *json, const char *name) { if (json->omit_comma) { json->omit_comma = false; } else { qstring_append(json->str, ", "); } if (name) { qstring_append(json->str, "\""); qstring_append(json->str, name); qstring_app...
1threat
Is WebAPI Body.json async? : `Body.json` [returns a promise][1]. Is this method asynchronous to avoid blocking on reading large inbound data streams? If this is correct, does it do something like `setTimeout(sampleStream, 0)` repeatedly until the end of the stream is found? [1]: https://developer.mozilla...
0debug
int64 float64_to_int64_round_to_zero( float64 a STATUS_PARAM ) { flag aSign; int16 aExp, shiftCount; bits64 aSig; int64 z; aSig = extractFloat64Frac( a ); aExp = extractFloat64Exp( a ); aSign = extractFloat64Sign( a ); if ( aExp ) aSig |= LIT64( 0x0010000000000000 ); shif...
1threat
Unordered Random Numbers : <p>I have a problem. I'm trying to get 4 random numbers that will not be repeated and not ordered. For example (2,3,4,5) is not good, but (5,2,3,4) is ok. We've implemented an algorithm but something's wrong with it.</p> <pre><code> var needCreate = true; do { var lastIndex...
0debug
def find_length(string, n): current_sum = 0 max_sum = 0 for i in range(n): current_sum += (1 if string[i] == '0' else -1) if current_sum < 0: current_sum = 0 max_sum = max(current_sum, max_sum) return max_sum if max_sum else 0
0debug
Is it possible to make a facebookfriend by using the Facebook API? : <p>I'm trying to make a workflow go smoother. </p> <p>Already tried to Google it, but I've got nothing to show for it.</p> <p>Can you guys help me?</p>
0debug
Xcode - changing the indentation rules for switch statements : <p>When I write a Swift switch statement it indents the code like this:</p> <pre><code>switch foo { case 1: // stuff happens default: // other stuff happens } </code></pre> <p>I want it to indent like this:</p> <pre><code>switch foo { case 1:...
0debug
e1000_mmio_map(PCIDevice *pci_dev, int region_num, uint32_t addr, uint32_t size, int type) { E1000State *d = (E1000State *)pci_dev; DBGOUT(MMIO, "e1000_mmio_map addr=0x%08x 0x%08x\n", addr, size); cpu_register_physical_memory(addr, PNPMMIO_SIZE, d->mmio_index); }
1threat
Foobar - Test cases not passing - Disorderly escape (python) : 0/10 test cases are passing. Here is the challenge description: (to keep formatting nice - i put the description in a paste bin) Link to challenge description: [https://pastebin.com/UQM4Hip9][1] [1]: https://pastebin.com/UQM4Hip9 Here is ...
0debug
How to remove title bar in awesome window manager ver >4 : <p>I've recently upgraded my machine, and am now at awesome version 4.x. There is now a titlebar of sorts with close, ontop, floating, maximized, etc... buttons on right. Can I get rid of this? What config would I use to have this be universally turned off?<...
0debug
Javascript, take inputted string and print all possibilities. : I've been searching for ours all over the web, including here for a way to solve this project I have for homework this week. To answer your question, the professor gave us a book that in no way connects with the homework so my textbook has been all but use...
0debug
How to extract a specific list of files from a folder in Windows? : <p>I have a folder of around 3,000 music files of all the same type (.flac).</p> <p>I made an excel (and .txt) list of around 1,000 files in that folder that I want to move to a different folder.</p> <p>Is there a way to accomplish this without havin...
0debug
how should I pass the reference of an object to another object of the same class? : I have a three classes A , B and C. I had created an object of class B(say XYZ1) inside A and had instantiated it with some values. How should I create an object of Class B(say XYZ2) inside C and pass the reference of XYZ1 to the newl...
0debug
Grouping i.e. () is not working properly : <pre><code>"&amp; Help is available in the Library, ".match(/(i)/) </code></pre> <p>This should be returning all the matches for "i". Instead it's returning only 2.</p> <p><a href="https://i.stack.imgur.com/gm9SA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgu...
0debug
int ff_dirac_golomb_read_16bit(DiracGolombLUT *lut_ctx, const uint8_t *buf, int bytes, uint8_t *_dst, int coeffs) { int i, b, c_idx = 0; int16_t *dst = (int16_t *)_dst; DiracGolombLUT *future[4], *l = &lut_ctx[2*LUT_SIZE + buf[0]]; INIT_RESIDUE(res, 0, 0); #define...
1threat
Hi, can someone help me to display some information on joptionpane. : public class SimpleDialogueBox { public static void main(String[] args){ String name = JOptionPane.showInputDialog("Name"); String age = JOptionPane.showInputDialog("age"); ...
0debug
static int nut_read_packet(AVFormatContext *s, AVPacket *pkt) { NUTContext *nut = s->priv_data; StreamContext *stream; ByteIOContext *bc = &s->pb; int size, frame_code, flags, size_mul, size_lsb, stream_id; int key_frame = 0; int frame_type= 0; int64_t pts = 0; const int64_t fra...
1threat
int bdrv_reopen_prepare(BDRVReopenState *reopen_state, BlockReopenQueue *queue, Error **errp) { int ret = -1; Error *local_err = NULL; BlockDriver *drv; QemuOpts *opts; const char *value; bool read_only; assert(reopen_state != NULL); assert(reopen_stat...
1threat
How to add a gap in a line html : <p>I am in HTML, and I'm making a header for my website. I have a website title, followed by some links to various pages. By default, they are right next to each other, and I want them to be apart. I've tried the simple option of just adding multiple spaces, but it puts it as just 1 sp...
0debug
How to structure Firestore database in chat app? : <p>The simplest way of storing chat messages is probably this:</p> <pre><code>message: -message1 { "user1" "user2" "message" "date" } -message2 -message3 </code></pre> <p>When the app grows in size (a lot of messages), and operations on database are ...
0debug
Why does the site add code to my index at run-time : <p>I have a problem with my website. The problem is that the site adds code to my index file when running it.</p> <p>This is the code in my index file:</p> <pre><code>for(i = 0; i &lt; game.length; i++){ $('.games').append('&lt;div class="slide...
0debug
How to pass props to keyframes in styled-component with react? : <p>I have following code and I want to pass value of <code>y</code> from react component to <code>moveVertically</code> keyframe. Is it possible to do so ?</p> <pre><code>import React from 'react'; import styled, {keyframes} from 'styled-components';...
0debug
static void colo_compare_complete(UserCreatable *uc, Error **errp) { CompareState *s = COLO_COMPARE(uc); Chardev *chr; char thread_name[64]; static int compare_id; if (!s->pri_indev || !s->sec_indev || !s->outdev) { error_setg(errp, "colo compare needs 'primary_in' ," ...
1threat
Seperating text files : Im trying to read a text file called myfile.txt and copy lines 2,4,6 into a text file called even.txt and copy lines 1,3,5 into odd.txt.im new to progrmming and this is probably vry wrong.Any help woould be appriciated. int main() { FILE *fp; FILE *feven; F...
0debug
SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) { SwsContext *c; int i; int usesVFilter, usesHFil...
1threat