problem
stringlengths
26
131k
labels
class label
2 classes
How do I specify a graphql type that takes multiple types? : <p>I want to create a graphql type that can return either an <code>Array of Integers</code> or <code>String</code>.</p> <p>I've already tried using union in the form <code>union CustomVal = [Int] | String</code>, but this returns an error.</p> <p>The schema...
0debug
how does fill-rule="evenodd" work on a star SVG : <p>I saw the following svg shape when i was trying to understand <code>fill-rule</code> in SVG </p> <pre><code>&lt;div class="contain-demo"&gt; &lt;svg width="250px" height="250px" viewBox="0 0 250 250"&gt; &lt;desc&gt;Yellow star with intersecting paths to demon...
0debug
What's the name of an OSX-like list object in Java FX in Windows? : I can't find an object with the same look and feel like this one here: [OSX list object][1] [1]: http://i.stack.imgur.com/noXe5.jpg
0debug
void gen_intermediate_code(CPUPPCState *env, struct TranslationBlock *tb) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext ctx, *ctxp = &ctx; opc_handler_t **table, *handler; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc;...
1threat
Create a function which takes in a float as input and returns a string containing a number : <p>Create a function called format_currency which takes in a float as input and returns a string containing the number with a $ in front of it, with 2 decimal places. </p> <p>i got no idea what i have done</p> <pre><code>def ...
0debug
static uint32_t rtl8139_io_readl(void *opaque, uint8_t addr) { RTL8139State *s = opaque; uint32_t ret; switch (addr) { case RxMissed: ret = s->RxMissed; DPRINTF("RxMissed read val=0x%08x\n", ret); break; case TxConfig: ret ...
1threat
How to capture time based on the sound of the pile hammer ? I am developing UWP app using C# app : How to capture time based on the sound of the pile hammer ? I am developing UWP app using C# app. Please see the below url. https://play.google.com/store/apps/details?id=com.bridge3&hl=en
0debug
PHP mysqli echo text elsewhere when typing : <p>Hi is there any way in PHP when if I start typing in a text field that whatever is being typed gets echoed out in real time somewhere else on a page?</p>
0debug
Python How to convert html text to csv? : I have this following HTML table in a text file (.txt), I want to convert it to the following format. Any help is appreciated. <td class="det" colspan="1" width="40%">Basic EPS (Rs.)</td> <td align="right" class="det">57.18</td> <td align="right" class="det">48...
0debug
static int mov_read_udta(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { uint64_t end = url_ftell(pb) + atom.size; while (url_ftell(pb) + 8 < end) { uint32_t tag_size = get_be32(pb); uint32_t tag = get_le32(pb); uint64_t next = url_ftell(pb) + tag_size - 8; ...
1threat
How to write properly an if statement in regards to a BooleanParameter in Jenkins pipeline Jenkinsfile? : <p>I'm setting a Jenkins pipeline Jenkinsfile and I'd like to check if a booleanparameter is set.</p> <p>Here's the relevant portion of the file:</p> <pre><code>node ("master") { stage 'Setup' ( ...
0debug
UWP get the names of app's assembly files at runtime : <p>I'm looking to display a list of the dll assemblies that our UWP references at build time during the running app. I can see these dependencies in the Debug\AppX folder. I've looked for them in the members of both Package and Assembly. Are they visible to the run...
0debug
JOINING 3 VIEWS AND USING VARIABLES : I have joined 3 views together to reflect a summary of each view per period When trying to use 'MC Total' to summarize all 3 it is reflecting as an integer Have tried multiple options to no avail Below are the results returned period_start_date|period_end_date|MC| D/MC|N/...
0debug
Is there a string formatting operator in R similar to Python's %? : <p>I have a url that I need to send a request to using date variables. The https address takes the date variables. I'd like to assign the dates to the address string using something like the formatting operator % in Python. Does R have a similar operat...
0debug
Finding characters in a sentence : <p>I want to make a program that can find characters in long string... . .</p> <pre><code>int i = 0; char buf[100]; char ch[10]; char *res; int len = 0; int j = 0; printf("Enter characters: "); while(1){ j = getchar(); if(j == '\n') break; ch[i++] = j; } ch[i] = '\0'; w...
0debug
Access to a pointer whose adress is in a String C : I want to make a memdump function that with fgets() gets the address from the keyboard to dump and then, using this function prints the contents of that adress in memory: void print_bytes(void *object, size_t size) { char * bytes = object; ...
0debug
i already set actionbar but getSupportActionBar() return null : If i go to another activity, it will crash and say my action bar is null i already set it but why it's still be null ? can someone help me ? i am beginner my manifest code: <manifest xmlns:android="http://schemas.android.com/apk/res/android" p...
0debug
How to write a function in JavaScript to show the longest string in an array : <p>This is my code so far and it doesn't seem to work. I could use some help.</p> <pre><code>function longestString(arr) { var longest =0; for (var i = 0; i &lt; arr.length; i++) { if (arr[i].length &gt; longest.length) { long...
0debug
Sorting data in Angular : <pre><code>&lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"&gt; &lt;/script&gt; &lt;style&gt; table{ border:2px solid black; border-collapse:collapse; font-family:Arial; } td{ border:2px solid black; padding:5px; } th{ ...
0debug
static void tcg_out_setcond_i32(TCGContext *s, TCGCond cond, TCGReg ret, TCGReg c1, int32_t c2, int c2const) { switch (cond) { case TCG_COND_LTU: case TCG_COND_GEU: break; case TCG_COND_EQ: case TCG_COND_NE: if (c2 ...
1threat
static int vtenc_cm_to_avpacket( AVCodecContext *avctx, CMSampleBufferRef sample_buffer, AVPacket *pkt, ExtraSEI *sei) { VTEncContext *vtctx = avctx->priv_data; int status; bool is_key_frame; bool add_header; size_t length_code_size; s...
1threat
void net_rx_pkt_set_protocols(struct NetRxPkt *pkt, const void *data, size_t len) { assert(pkt); eth_get_protocols(data, len, &pkt->isip4, &pkt->isip6, &pkt->isudp, &pkt->istcp); }
1threat
void block_job_enter(BlockJob *job) { if (job->co && !job->busy) { bdrv_coroutine_enter(blk_bs(job->blk), job->co); } }
1threat
TabView resets navigation stack when switching tabs : <p>I have a simple TabView: </p> <pre class="lang-swift prettyprint-override"><code>TabView { NavigationView { VStack { NavigationLink(destination: Text("Detail")) { Text("Go to detail") } } } ...
0debug
Combine two lists in a specific order : I am working in Python, and I want to combine two lists and have one list in the end, but in a specific way. Below I will just provide an example but the dataset I am working on is much bigger. List 1 1.1 1.1 1.1 1.1 1.2 1.2 1.2 1.2 List 2 2.1 ...
0debug
Route53 for AWS Elastic Search Domain gives certificate error : <p>I have create a AWS elastic search domain in Virginia and got a Endpoint url. </p> <p><a href="https://i.stack.imgur.com/Fzc67.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Fzc67.png" alt="enter image description here"></a></p> <p>Now I wa...
0debug
Can I store a set of strings of a multiple line using regex on java? : <p>If I have an input of</p> <pre><code>this is a string this is also a string i am a string </code></pre> <p>can i store them in an array like</p> <pre><code>[0] this is a string [1] this is also a string [2] i am a string </code></pre> <p>If s...
0debug
void replay_read_next_clock(ReplayClockKind kind) { unsigned int read_kind = replay_data_kind - EVENT_CLOCK; assert(read_kind == kind); int64_t clock = replay_get_qword(); replay_check_error(); replay_finish_event(); replay_state.cached_clock[read_kind] = clock; }
1threat
my sql error: please help as soon as possible : my code shows the following error: I did not understand how to correct it you have an error in your sql syntax , check the manual corresponds to your mysql server version for the right syntax to use near ')'at line 1 $query="insert into subjective_result(marks,roll_n...
0debug
If an Algorithm's running time can be expressed as function F(x)=√n+(logn)^2 , : If an Algorithm's running time can be expressed as function F(x)=√n+(logn)^2 , Then which one of the following is not a correct bound for the running time ? 1-O(n) 2-O(√n) 3-O((log)^2) 4-Omega(1)
0debug
static av_cold int decode_end(AVCodecContext *avctx) { ALSDecContext *ctx = avctx->priv_data; av_freep(&ctx->sconf.chan_pos); ff_bgmc_end(&ctx->bgmc_lut, &ctx->bgmc_lut_status); av_freep(&ctx->const_block); av_freep(&ctx->shift_lsbs); av_freep(&ctx->opt_order); av_freep(&ctx->s...
1threat
NOOB question about pandas in python 0.2.7 dataframe : Hello all thanks in advance for the help. Okay, So i know this is a stupid issue on my end but I can not figure it out for the life of me. What I am trying to do is take this output from pybaseball which is set in as a list. and put it into a csv file using pan...
0debug
Print JSON array through javascript : When importing data from a JSON file we get this array called "parcelshopSpecs.data.formatted_opening_times", which are opening times of a store: {2=>[09:00 - 22:00] 4=>[09:00 - 22:00] 6=>[10:00 - 18:00] 1=>[09:00 - 22:00] 5=>[09:00 - 20:00] 3=>[09:00 - 22:00] 0=>[09:00 - 22...
0debug
static void htab_save_first_pass(QEMUFile *f, sPAPRMachineState *spapr, int64_t max_ns) { int htabslots = HTAB_SIZE(spapr) / HASH_PTE_SIZE_64; int index = spapr->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); assert(spapr->htab_first...
1threat
The size of data types in C and Java? : <p>The size of the data type in C for example, int is 2 bytes, however the size of int in Java is 4 bytes, and the same for other data types as well. Why is the size of a data type double in Java?</p>
0debug
git lfs "objects" taking a lot of disk space : <p>I have a project with a lot of binaries (mostly pdfs) that I'm using git-lfs with. The project is about 60mb but I found that my .git/lfs/objects director is about 500mb. I presume these are cached versions of previous commits. Is there a way to gracefully delete the...
0debug
Alexa request validation in python : <p>I work on a service that will handle Alexa voice intents. I need to verify the signature of each request and I almost succeed. The only part that is not working is the validation of certificates chain.</p> <p>From the <a href="https://developer.amazon.com/public/solutions/alexa/...
0debug
I want to fetch time collumn from mysql database and to compare with current time. : I want to fetch time column from mysql database and to compare with current time. It should execute only if it matches with the current time. Please tell me a MySql query or php code to do this. I am new to php. [This is my Table]...
0debug
Guys i was trying to make a user editable polygon on Googlemap using ionic 3 like the image shown below , but not coming ...help me to do this : ## but i am getting only normal polygon line when my marker is placed on map..plz help me to solve this - @ionic/cli-utils : 1.19.2 - ionic (Ionic CLI) : 3.20.0 gl...
0debug
make edittext readonly which is empty : I want to create two editText in android both are editable when the user wants to put data in one editText the other automatically becomes read-only dynamically to show the result of that entered data?
0debug
static int flush_packet(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts, int64_t scr, int trailer_size) { MpegMuxContext *s = ctx->priv_data; StreamInfo *stream = ctx->streams[stream_index]->priv_data; uint8_t *buf_ptr; int size, payload_size, startcode, id, stu...
1threat
How to manually set focus on mat-form-field in Angular 6 : <p>I am new to angular ,In my application I have a mat-dialog in which I have two forms namely Login and SignUp.</p> <p>Once I open the dialog first time the auto focus is set on username field.problem is when I navigate to SignUp form on button click that fo...
0debug
2d array transform with key values : I have following 2D-Array. [['4470', '4753.5', '5682', '4440', '6113.5', '3661.5', '7555.3', '6090.3', '5147.3', '4296'], ['4468.5', '4742.5', '5297', '5501.8', '5061.3', '2933.5', '6367.5', '6053.8', '5654.3', '3793.3']] I want to tranform it with key values e.g. ...
0debug
xUnit Equivelant of MSTest's Assert.Inconclusive : <p>What is the xUnit equivalent of the following MSTest code:</p> <pre><code>Assert.Inconclusive("Reason"); </code></pre> <p>This gives a yellow test result instead of the usual green or red. I want to assert that the test could not be run due to certain conditions a...
0debug
FPDF - php output : <p>I installed FPDF to create pdf-docs through php.</p> <p>Even when I try to output a simple example code snippet, I get a page full of weird charactrers</p> <p>I have searched everywhere, and I can not find a solution. No errors are shown.</p> <p>Maybe someone has a key ... Thanks in advance.</...
0debug
mysql SELECT * FROM product WHERE id_product = relation1,relation2,relation3, : i have 2 table prodcut id_product,price,etc relation id,relation1,relation2,relation3,... i want get any product where id=relation1,... how to write it in sql ? SELECT * FROM product WHERE id_product = relation1,relation2,...
0debug
jquery form validation help requaired : i'm new to jQuery i made a form mixing html and jQuery, i would like to know how can i make some fields to "required"? here is the code btsample=$('<div id="sample" title="TITLE"/>').appendTo(ctrls).click(function(){$("#getsample").dialog("open")}) $('<div id="getsample...
0debug
Swift 3: Can not convert value of type 'int' to expected argument type 'DispatchQueue.GlobalQueuePriority' : <p><strong>Swift 3.0:</strong> Receiving error <code>Can not convert value of type 'int' to expected argument type 'DispatchQueue.GlobalQueuePriority'</code> on creating dispatch async queue </p> <pre><code>Di...
0debug
MySql Error- ASP.NET : <p>I am getting the following error while connecting to the MySql database in the wamp server.I have added the assemblies also. How can i fix the problem? Thanks a ton. Error: </p> <pre><code>Server Error in '/' Application. Parameter '@First__Name' must be defined. Description: An unhandle...
0debug
static int32_t scsi_unit_attention(SCSIRequest *req, uint8_t *buf) { if (req->dev && req->dev->unit_attention.key == UNIT_ATTENTION) { scsi_req_build_sense(req, req->dev->unit_attention); } else if (req->bus->unit_attention.key == UNIT_ATTENTION) { scsi_req_build_sense(req, req->bus->unit_a...
1threat
C# WPF Including many variables inside a Dictionary : I want to store inside a dictionary (name) many different variables (int, double, string, etc) that describes one object (name), like this: string ref = "BCB"; int voltage = 12; double watts = 60; double width ...
0debug
Java- Having trouble with the resulting totals : <p>I have to write a java program to print up the receipts, but I'm having trouble with the resulting final values. I don't know where I went wrong.. The total values should be: Room $799.50, Telephone $17.25, Meal $129.50, Tips $74.87, Tax $51.97, and Gross Transaction ...
0debug
static int shall_we_drop(AVFormatContext *s, int index) { struct dshow_ctx *ctx = s->priv_data; static const uint8_t dropscore[] = {62, 75, 87, 100}; const int ndropscores = FF_ARRAY_ELEMS(dropscore); unsigned int buffer_fullness = (ctx->curbufsize[index]*100)/s->max_picture_buffer; if(drops...
1threat
static int process_input(void) { InputFile *ifile; AVFormatContext *is; InputStream *ist; AVPacket pkt; int ret, i, j; int file_index; file_index = select_input_file(); if (file_index == -2) { poll_filters() ; return AVERROR(EAGAIN); } i...
1threat
C++ what is the difference of type * and type *& in function : <p>I have two function signatures in C++</p> <pre><code>void printArray(int* arrayPtr); void printArray(int*&amp; arrayPtr); </code></pre> <p>I understand the 1st function. It says the function takes in a arrayPtr argument which is of type that's a pointe...
0debug
C++: passing object reference as parameter gives error: no matching function for a call to class::function() : <p>Passing an object reference as parameter gives me the error:<br> <code>No matching function for a call to i2cController::i2cController</code></p> <p>I've also tried passing a pointer, and creating the i2cC...
0debug
EXCEL: Calculation is wrong, Rounding wrong : for som reason excel doesn't calculate correctly: Calculation = 4642,83 * (60,13-60,08) / 66,84 = 3,47... Excel = 3,40. It is really important that i calculates directly because it will be rounded. The first one is rounded to 4. the second one is rounded to 3 which...
0debug
Could the order of a list contained in a dictionary may vary? : I know that dictionaries may have a different order that the one which each key,value pair is inserted. my_dict = {} my_dict.update({'Nb': 2}) my_dict.update({'Nb': 1}) for keys,values in my_dict.items(): print(keys) ...
0debug
static int trim_filter_frame(AVFilterLink *inlink, AVFrame *frame) { AVFilterContext *ctx = inlink->dst; TrimContext *s = ctx->priv; int drop; if (s->eof) { av_frame_free(&frame); return 0; } if (s->start_frame >= 0 || s->start_pts != AV_NOPTS_VALUE) { ...
1threat
How to execute a matlab code for different files : I have this matlab code who read and load my csv files > `%% Initialize variables. filename = 'C:\Users\loubn\Documents\MATLAB\test\fichier1.csv'; delimiter = ','; to the end of the code and it work perfectly , i want to execut...
0debug
static int execute_command(BlockDriverState *bdrv, SCSIRequest *r, int direction, BlockDriverCompletionFunc *complete) { r->io_header.interface_id = 'S'; r->io_header.dxfer_direction = direction; r->io_header.dxferp = r->buf; r->io_header.dxfer_len = r->buflen; ...
1threat
std::variant reflection. How can I tell which type of value std::variant is assigned? : <p>I have a class called <code>foo_t</code> that has a member called <code>bar</code> which could be any one of the types <code>std::string</code>, <code>int</code>, <code>std::vector&lt;double&gt;</code>, etc. I would like to be ab...
0debug
int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd) { int64_t r = 0; av_assert2(c > 0); av_assert2(b >=0); av_assert2((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rnd&~AV_ROUND_PASS_MINMAX)!=4); if (c <= 0 || b < 0 || !((unsigned)(rnd&~AV_ROUND_PASS_MINMAX)<=5 && (rn...
1threat
R programming (extract same element matched with first column) : <p>I have below list:</p> <blockquote> <p>head(input)</p> </blockquote> <pre><code> V1 V2 V3 V4 V5 V6 1 A 1 2 3 4 5 2 B 1 2 NA NA NA 3 C 3 5 NA NA NA 4 D 3 NA NA NA NA 5 E 4 5 6 1 8 </code></pre> <p>and I would like to get ...
0debug
uint8_t* ff_AMediaCodec_getOutputBuffer(FFAMediaCodec* codec, size_t idx, size_t *out_size) { uint8_t *ret = NULL; JNIEnv *env = NULL; jobject buffer = NULL; JNI_GET_ENV_OR_RETURN(env, codec, NULL); if (codec->has_get_i_o_buffer) { buffer = (*env)->CallObjectMethod(env, codec->o...
1threat
static void scsi_write_same_complete(void *opaque, int ret) { WriteSameCBData *data = opaque; SCSIDiskReq *r = data->r; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); assert(r->req.aiocb != NULL); r->req.aiocb = NULL; if (r->req.io_canceled) { scsi_req_cancel_co...
1threat
How to write string to on pdf? : ı want to string write to pdf file .But my code dont work. //iTextSharp.text.Document d = new iTextSharp.text.Document(); //string dosya = (@"C:\Deneme.pdf"); //PdfWriter.GetInstance(d, new System.IO.FileStream(dosya, System.IO.FileMode.Create)); ...
0debug
Change mouse pointer in UWP app : <p>Is it possible to change or even hide the mouse-pointer in a UWP app? The only thing I can find is this :</p> <p>Windows.UI.Xaml.Window.Current.CoreWindow.PointerCursor = null;</p> <p>But in UWP, this doesn't work.</p>
0debug
Can't construct a query for the property, since the query selector wasn't defined : <p>Currently have this problem with a component in Angular 2 that exists of other components. The components of the 'main' component can exist multiple times in the hierarchy.</p> <p>But i am getting this error: <strong>"Can't construc...
0debug
Combine Two table datas : <p><a href="https://i.stack.imgur.com/yydiK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yydiK.jpg" alt="enter image description here"></a></p> <p>I have two table A and B, i need a report by combining these two tables and the output should be as below image. How can i a...
0debug
static void qmp_command_info(QmpCommand *cmd, void *opaque) { GuestAgentInfo *info = opaque; GuestAgentCommandInfo *cmd_info; GuestAgentCommandInfoList *cmd_info_list; cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo)); cmd_info->name = g_strdup(qmp_command_name(cmd)); cmd_info->enable...
1threat
how to replace a dataframe row with NaN if it doesn't contain a specific string : <p><a href="https://i.stack.imgur.com/3HDdv.png" rel="nofollow noreferrer">dataframe</a></p> <p>I am working with the data frame shown in the link above. I want to make all rows that do not contain the words 'Yes' or 'No' be replaced wi...
0debug
VSTO Word 2016: Squiggly underline without affecting undo : <p>I am working on a real-time language analysis tool that needs to highlight words to draw attention from the writer in Word 2016 using a VSTO add-in, written in .NET4.6.1 with C#. Think of the grammar/spelling check, which adds a squiggly line underneath a w...
0debug
Use Socket or webserver? : <p>I want to establish communication between set top box and an android phone. Is it better to use sockets or communicate via an embedded web server ?</p>
0debug
static void copy_bits(PutBitContext *pb, const uint8_t *data, int size, GetBitContext *gb, int nbits) { int rmn_bytes, rmn_bits; rmn_bits = rmn_bytes = get_bits_left(gb); if (rmn_bits < nbits) rmn_bits &= 7; rmn_bytes >>= 3; if ((rmn_bits = FF...
1threat
How to download build output files from jenkins UI console itself : <p>I am new Jenkins , using <b> jenkins 1.651.3 </b> War deployed on <b>Tomcat6</b><br> Is there any way to download Jenkins job’s output file ( my job produced a jar file ) from jenkins UI Console itself ? </p> <p>So, could anyone suggest me is...
0debug
Casting complex to real without data copy in MATLAB R2018a and newer : <p>Since <a href="https://www.mathworks.com/help/releases/R2018a/matlab/matlab_external/do-i-need-to-upgrade-my-mex-files-to-use-interleaved-complex.html" rel="noreferrer">MATLAB R2018a</a>, complex-valued matrices are stored internally as a single ...
0debug
Who can help but I got confused to Javascript : The document added another 3 link given in such a way that three Linck define three fruit and the fourth to erase selections, tell how to solve it. <html> <head> <script language="javascript"><!-- function FruitBox() { ...
0debug
static void vc1_decode_p_blocks(VC1Context *v) { MpegEncContext *s = &v->s; int apply_loop_filter; switch (v->c_ac_table_index) { case 0: v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; break; case 1: v->codingset = CS_HIGH_MOT_INTRA...
1threat
Convert letters to lowercase from an array in JS : <p>I have the following code:</p> <pre><code>var str = "abcabcABCABC" var chars = str.split(""); var lettersCount = {}; for (var i = 0; i &lt; chars.length;i++) { if (lettersCount[chars[i]] == undefined ) lettersCount[chars[i]] = 0; lettersCount[chars[...
0debug
static int intel_hda_send_command(IntelHDAState *d, uint32_t verb) { uint32_t cad, nid, data; HDACodecDevice *codec; HDACodecDeviceClass *cdc; cad = (verb >> 28) & 0x0f; if (verb & (1 << 27)) { dprint(d, 1, "%s: indirect node addressing (guest bug?)\n", __FUNCTION__); ...
1threat
String and dots filling : <p>Write a program (without using loops) which given a string, of size less than 5, and a positive integer less than 100, prints both of them with enough dots in between so that the whole string has 20 characters in them.</p> <p>I know that if I am not using loops I have to use print(..., sep...
0debug
static void adb_mouse_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); ADBDeviceClass *adc = ADB_DEVICE_CLASS(oc); ADBMouseClass *amc = ADB_MOUSE_CLASS(oc); amc->parent_realize = dc->realize; dc->realize = adb_mouse_realizefn; set_bit(DEVICE_CATEGORY_INPUT, ...
1threat
Abort called error in Linux when providing a huge input in C : <p>I have written a program in C to find if a pattern exists inside another pattern. Both the patterns are 2-D character arrays. To explain further, please consider the below case.</p> <p>Suppose pattern A is </p> <pre><code>1234567890 0987654321 111...
0debug
DB: "table" has no column named "name column" : <p>I've this problem when I was launching the app, it made me this error:</p> <pre><code>E/SQLiteLog: (1) table geophysics_table has no column named municipality E/SQLiteDatabase: Error inserting id_grid=1 culture_type= resolution_survey= soil_type= coordinates= finish_d...
0debug
FlatList not scrolling : <p>i have created a screen where I display a component that contains a FlatList. For some reason I can't scroll through the list. Someone who can spot my mistake and point me in the right direction?</p> <p><strong>render-function and style from my screen file:</strong></p> <pre><code>render()...
0debug
My Enemy Fall from Floor when i play button in unity : My Enemy Fallen from Floor and continously Fallen when i play button in unity where as my Transform Position x 0.03 y -0.459 z -0.1 Use Gravity is marked I'm new in unity plz don't laugh and negative point me.
0debug
Maximum element in a stack java : <p><a href="https://www.hackerrank.com/challenges/maximum-element" rel="nofollow noreferrer">https://www.hackerrank.com/challenges/maximum-element</a></p> <p>ques is to perform three queries 1-for adding elment to stack 2-for poping element 3-for printing max element link is posted ab...
0debug
Angular 4 - material 2 - md datepicker set first day of the week : <p>How to set first day of the week using material 2?</p> <p>Currently the default is sunday even if I set the locale to hu or anything else..</p>
0debug
Print out float/double variables for verification : I have the following scenario. A algorithm with A*B+C*D in floating-point variables calculation implemented in C++. However, in order to implement in hardware, we need to print out the A, B, C, D and golden output values from C++ simulation as a simulation pattern for...
0debug
static inline int hpel_motion(MpegEncContext *s, uint8_t *dest, uint8_t *src, int src_x, int src_y, op_pixels_func *pix_op, int motion_x, int motion_y) { int dxy = 0; int emu = 0; ...
1threat
How to ensure that a row does not equal "" in a dataframe? : I am pretty new to R, come from a Python background. I have loaded a dataframe as such: df = read.csv('data.csv', stringsAsFactors = FALSE, colClasses = colClass,na.strings = c("NA", "")) My objective is to ensure that there are no missing val...
0debug
Separate comma separate values in Oracle : <p>I have a database column which contains comma separated values. Is there any way to get the individual values from this column into different rows without using regular expression in Oracle.</p>
0debug
static void vmdaudio_loadsound(VmdAudioContext *s, unsigned char *data, uint8_t *buf, int silence) { if (s->channels == 2) { if ((s->block_align & 0x01) == 0) { if (silence) memset(data, 0, s->block_align * 2); else vmdaudio_decode_audio(s,...
1threat
Can someone explain why the range in the random.randint(0, len(messages) - 1) has a minus 1 at the end? The list has 9 values : import random messages = ['It is certain', 'It is decidedly so', 'Yes definitely', 'Reply hazy try again', 'Ask again later', ...
0debug
ENOSPC no space left on device -Nodejs : <p>I just built an application with expressJs for an institution where they upload video tutorials. At first the videos were being uploaded to the same server but later I switched to Amazon. I mean only the videos are being uploaded to Amazon. Now I get this error whenever I try...
0debug
add or modify contents of android app after publish : i want to publish an android app in the play store, the app should notify the users of any news or a new promotion. How can i add and modify the contents of app after being downloaded by users ? Thank you.
0debug
My app is unfortunately stopped. I am getting this error in Logcat. : FATAL EXCEPTION: main Process: org.example.easyparking, PID: 6371 java.lang.RuntimeException: Unable to st...
0debug
How do I add 10 arrays to a single array in c++? : Let's say I have these 10 previously declared arrays in my code. int arr1[] = {1,2,3,4,5,6,7,8,9,10}; int arr2[] = {1,2,3,4,5,6,7,8,9,10}; int arr3[] = {1,2,3,4,5,6,7,8,9,10}; int arr4[] = {1,2,3,4,5,6,7,8,9,10}; int arr5[] = ...
0debug
Extract specific string from URL : <p>I want to extract some string from this url </p> <p><a href="https://s3-ap-southeast-1.amazonaws.com/mtpdm/2019-06-14/12-14/1001_1203_20190614120605_5dd404.jpg" rel="nofollow noreferrer">https://s3-ap-southeast-1.amazonaws.com/mtpdm/2019-06-14/12-14/1001_1203_20190614120605_5dd404...
0debug