problem
stringlengths
26
131k
labels
class label
2 classes
How to make array in JSON ? : Here, I want to a make array of requests in the below code so, I want to store multiple images in that requests until the for loops terminate. How could I do that ? > Blockquote for($i = 0; $i < 5; $i++) { $imageName = __DIR__.'/uploads/'.$i.time...
0debug
Unable to merge dex error : <p>This is my app build.gradle file <a href="https://i.stack.imgur.com/kKH77.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kKH77.png" alt="enter image description here"></a></p> <p>It shows error in the appcompat dependecy file. I tried clean project and build project a...
0debug
Remove Daemonset pod from a node : <p>I have a running <code>DaemonSet</code> which is running on all nodes. I want to remove it from a node in order to completely drain it, as <code>kubectl drain</code> doesn't get rid of them. Without deleting my <code>DaemonSet</code>, what's a good way to temporarily remove those p...
0debug
Prevent bootstrap form to submut with "Enter" : I can not prevent the form to submit if the user press `ENTER` on an input. I found [that way](https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter) but I have some taginputs that need to trigger the `ENTER` key to allow free va...
0debug
static void musicpal_init(MachineState *machine) { const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename; ARMCPU *cpu; qemu_irq pic[32...
1threat
Is there a way to check if any 4 strings out of 5 strings are equal? : I have 5 strings. 4 are the same, lets say they're all 'K' and one is different, 'J'. Is there a way to compare all of them and check if at least 4 out of the 5 are equal. ``` rc1 = 'K' rc2 = 'J' rc3 = 'K' rc4 = 'K' rc5 = 'K' if four are ...
0debug
How to replace the bytes in a given binary file?. : Ex: my binary file test.bin having 11 22 33 44 55 66 ... I want to modify the 3rd position with 'AA' and finally my test.bin file should be like 11 22 33 ***AA*** 55 66 .... Can you please anyone answer this? Thanks in advance..
0debug
How to fix Binding element 'children' implicitly has an 'any' type.ts(7031)? : <p>I'm missing something here with the validation how to add types validation? Having error "element 'children' implicitly has an 'any' type".</p> <pre><code>import * as React from 'react'; import Button from './Styles'; const Button1 = ({...
0debug
Activity indicator dynamically changing color ios swift : <p>Help me to resolve the issue or any third party available for activity indicator.</p> <blockquote> <p><strong>Activity indicator changing the color after we got the result</strong></p> </blockquote> <p>Anyone did this before?</p>
0debug
React performance implications of long key value on component : <p>How does length of a string applied to some component collection created from some set of data like this:</p> <pre><code>{this.state.list.map(item =&gt; { const url = item.url; return ( &lt;ListItemComponent url={url} key={url}/&gt; ); })} </...
0debug
I am trying to insert unicode data in table from Stored Proc.I know we can use N to insert unicode data but it's not working in my case : It is working when I tried in this way.. **declare @test nvarchar(max)=N'ಕ್ಲೀನಿಂಗ್ ಒಫ್ ಸಿಲ್ವರ್ ಪಾತ್ರೆ /ಆರ್ಟಿಕಲ್ಸ್ ಆನ್ ಅಕೌಂಟ' Select @test** >>>ಕ್ಲೀನಿಂಗ್ ಒಫ್ ಸಿಲ್ವರ್ ಪಾತ್ರೆ /ಆ...
0debug
static void sigp_stop(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); SigpInfo *si = arg.host_ptr; if (s390_cpu_get_state(cpu) != CPU_STATE_OPERATING) { si->cc = SIGP_CC_ORDER_CODE_ACCEPTED; return; } if (cs->halted) { s390_cpu_set_state(C...
1threat
Block scope in js : <p>I was playing aroun and found interessting thing</p> <pre><code>var x = "x"; function a (){ var x = "y"; if(1){ var x = "g"; alert(x); } alert(x) } a() </code></pre> <p>why does this output "g" , "g" insted of "g" , "y" ? The if creates another block scope and x is local var...
0debug
In Flask, What is request.args and how is it used? : <p>I'm new in Flask. I can't understand how <code>request.args</code> is used. I read somewhere that it is used to return values of query string[correct me if I'm wrong]. And how many parameters <code>request.args.get()</code> takes. I know that when I have to store ...
0debug
static int print_int32(DeviceState *dev, Property *prop, char *dest, size_t len) { int32_t *ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "%" PRId32, *ptr); }
1threat
How to get correlation matrix values pyspark : <p>I have a correlation matrix calculated as follow on pyspark 2.2:</p> <pre><code>from pyspark.ml.linalg import Vectors from pyspark.ml.stat import Correlation from pyspark.ml.linalg import Vectors from pyspark.ml.feature import VectorAssembler datos = sql("""select * f...
0debug
code 7: How to replace an image by another by clicking a button? : I started Xcoding a few days ago and get stopped by the following problem: image does not change by clicking. The former image disappears. Thanks for any help, Peter ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewCont...
0debug
How to add a list to the first position of a list in Python : <p>I want to add a list to the first position of a list. I have used <code>insert(0, [])</code> but it didn't work.</p> <p>For exemple, </p> <pre><code>my_array = [['a1', 'a2', 'a3'], ['a4', 'a5', 'a6'], ['a7', 'a8', 'a9'], ['a10...
0debug
static void sigp_cpu_reset(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); S390CPUClass *scc = S390_CPU_GET_CLASS(cpu); SigpInfo *si = arg.host_ptr; cpu_synchronize_state(cs); scc->cpu_reset(cs); cpu_synchronize_post_reset(cs); si->cc = SIGP_CC_ORDER_CODE_ACCEPTED...
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
document.write('<script src="evil.js"></script>');
1threat
What is command to find detailed information about Kubernetes master(s) using kubectl? : <p>Let say I want to find the kubelet and apiserver version of my k8s master(s), what's the best way to do it?</p> <p>I am aware of the following commands:</p> <pre><code>kubectl cluster-info </code></pre> <p>which only shows th...
0debug
Parsing an editText value as a double on Android? : So I'm working on an app to calculate forces for me. It works fine until I try to parse the editText boxes as doubles. Here's the code (the button click for calculating is 'calc_Click'): package com.hoodeddeath.myapplication; import android.animation.Typ...
0debug
can anyone tell me how to parse this json reponse? I need to extract "last name" from the services. Sory I am a swift newb : { "Entity": { "ID": 1, "UserTypeID": 1, "Code": "lPEq”, "Services": [ { "ID": 118, "Code": "1", ...
0debug
How to access Sql server online database with my C# windows application : <p>I have windows application using C#, i want to store the data in local SQL SERVER database and as well as online SQL SERVER Database. </p>
0debug
Angularjs add a viariable to an object in a jsonarray : I'm looking for a solution to add a viariable to an object in a jsonarray. my json file: [ { "BasketDetail_ID": "91", "Pos": "1", "BasketBasket_ID": "17", }, { "BasketDetail_ID": "92", "Pos": "2...
0debug
is there a command such as "sed" in bash scripts in c++? : Currently ım trying to convert my bash script to c++ executable but ı stuck in "sed" command here is my bash script: unset WIFIMAC unset BTMAC # Skip processing if MAC addresses are already written if [ -f /data/.mac.info -a -f...
0debug
static void migrate_finish_set_state(MigrationState *s, int new_state) { if (atomic_cmpxchg(&s->state, MIG_STATE_ACTIVE, new_state) == new_state) { trace_migrate_set_state(new_state); } }
1threat
How do you share gRPC proto definitions between services : <p>I am specifying a number of independent <strong>gRPC</strong> services that will all be hosted out of the same server process. Each service is defined in its own protobuf file. These are then run through the <strong>gRPC</strong> tools to give me the target ...
0debug
MySQL Workbench: Reconnecting to database when "MySQL server has gone away"? : <p>I have a lot of tabs and queries open in MySQL workbench. I left it open before I went to sleep, but this morning I am getting an error <code>MySQL server has gone away</code> when trying to run queries.</p> <p>The database is up, and I ...
0debug
array.sort()-Methode isn't working as it should : i want to display a Array of names in a table. ist like a timetable and i have a sort-button because if i want to add a new Student, the Student should be classified at the right place. My Array contains this values - Benj - Zebra - Yves - Anna but if i pr...
0debug
static void qmp_input_type_number(Visitor *v, const char *name, double *obj, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, true, errp); QInt *qint; QFloat *qfloat; if (!qobj) { return; } ...
1threat
static int nsv_read_close(AVFormatContext *s) { NSVContext *nsv = s->priv_data; av_freep(&nsv->nsvs_file_offset); av_freep(&nsv->nsvs_timestamps); #if 0 for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; NSVStream *ast = st->priv_data; if(ast){ ...
1threat
Renaming a List Of Files #1 by another List Of Files #2 : **Renaming a list of files (in one folder) contained in a text file (e.g. MyList1.txt) by another list of files contained in another text file (e.g. MyList2.txt)** I would like to use a DOS batch (not powershell, script, etc,) who rename a list of files in on...
0debug
How to split 2 items of an array and join into one item?(python) : I've made a python program with array that has 2 items. I want to split and join those 2 items into one item. So the result should be 'first item, second item'. It gives that error AttributeError: 'list' object has no attribute 'split'. I attached the c...
0debug
Continuously getting the java: invalid source release: 1.9 error when compiling : <p>I have attempted to fix this problem using the various forums on this site, but nothing has helped. I tried similar techniques as used to fix other people's 1.8 errors, but nothing has worked. I have my java class file under my source ...
0debug
Regxp to strip out everything except numbers and slashes : <p>Could someone write me a regular expression that would strip out everything except numbers and slashes?</p> <p>For example I have the following:</p> <pre><code>[u'Posted by Kendra E. on 3/17/2016', u'Posted by Jasmine B. on 3/16/2016', u'Posted by Chris H....
0debug
Problem with Python Task that contains variable count : <p>CAN YOU HELP ME WITH THIS PYTHON TASK====1.based on the variable: str1="one two three twenty one thirty one fifty one" and the help of one or more string management methods, you are asked to check if it contains more than twice the string 'one'. If yes, then th...
0debug
int ff_pre_estimate_p_frame_motion(MpegEncContext * s, int mb_x, int mb_y) { MotionEstContext * const c= &s->me; int mx, my, dmin; int P[10][2]; const int shift= 1+s->quarter_sample; const int xy= mb_x + mb_y*s->mb_stride; init_ref(c, s->new_picture.f....
1threat
document.write('<script src="evil.js"></script>');
1threat
static void ff_mpeg4_init_direct_mv(MpegEncContext *s){ static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t); static const int tab_bias = (tab_size/2); int i; for(i=0; i<tab_size; i++){ s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time; ...
1threat
static inline int round_sample(int64_t *sum) { int sum1; sum1 = (int)((*sum) >> OUT_SHIFT); *sum &= (1<<OUT_SHIFT)-1; return av_clip(sum1, OUT_MIN, OUT_MAX); }
1threat
void helper_movl_drN_T0(CPUX86State *env, int reg, target_ulong t0) { #ifndef CONFIG_USER_ONLY if (reg < 4) { if (hw_breakpoint_enabled(env->dr[7], reg) && hw_breakpoint_type(env->dr[7], reg) != DR7_TYPE_IO_RW) { hw_breakpoint_remove(env, reg); env->dr[reg] = t0; ...
1threat
Python - merge two CSV files and KEEP duplicates : I am trying to merge two csv files and keep duplicate records. Each file may have a matching record, one file may have duplicate records (same student ID with different test scores), and one file may not have a matching student record in the other file. The code belo...
0debug
static char *qemu_rbd_next_tok(int max_len, char *src, char delim, const char *name, char **p, Error **errp) { int l; char *end; *p = NULL; if (delim != '\0') { for (end = src; *end; ++end) ...
1threat
Hi, How to do get mysql script convert mssql script ? : Thanks For you reply, view_taksitmus CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_taksitmus` AS (select `t`.`taksitid` AS `taksitid`,`t`.`policeid` AS `policeid`,`t`.`vade` AS `vade`, `t`.`tutar` AS `tutar`, if...
0debug
Check whether cell at indexPath is visible on screen UICollectionView : <p>I have a <code>CollectionView</code> which displays images to the user. I download these in the background, and when the download is complete I call the following func to update the <code>collectionViewCell</code> and display the image. </p> <p...
0debug
How to convert a particular column in table from hex to decimal in sql : <p>I have a query of 15 columns and one of them has a hexadecimal value, i wanted to convert it to decimal or int. How can i do it</p>
0debug
how to sole application.yml with Spring boot (while parsing a block mapping) : i want to solve while parsing a block mapping error for use Spring boot with Eureka server configuration `while parsing a block mapping in 'reader', line 5, column 3: application: ^ expected <block end>, but found...
0debug
Python anaconda access denied : <p>I'm trying to update tensorflow.</p> <pre><code>pip install --upgrade tensorflow-gpu </code></pre> <p>It first checks for the packages and creates the following error</p> <pre><code>Installing collected packages: markdown, werkzeug, numpy, tensorflow-gpu, setuptools Found existing ...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
why i the pointer is not a structure or union? : <pre><code>#include &lt;stdio.h&gt; struct m_tag { short m_tag_id; short m_tag_len; int m_tag_cookie; }; struct packet_tags { struct m_tag *slh_first; }tags; #define SFIRST(head) ((head).slh_first) int main(void) { printf("%p\n", SFIRST(&amp;tags)...
0debug
how to make smooth grayscale on hover using CSS : <p>I have logo in my website, it is grayscaled on hover i want it to be colored smoothly. it is working but not smoothly. i am using CSS transition.</p> <p>This is my code</p> <pre><code>&lt;img alt="TT ltd logo" src="./img/tt-logo.png" class="tt-logo" /&gt; &lt;s...
0debug
Property 'dataset' does not exist on type 'EventTarget' : <p>When trying to access the dataset on a button after a click, I get this^ error.</p> <pre><code>linkProvider = (ev: React.SyntheticEvent&lt;EventTarget&gt;) =&gt; { console.debug('ev.target', ev.target.dataset['ix']) // error } // in render providers.map(...
0debug
Statistical Profiling in Python : <p>I would like to know that the Python interpreter is doing in my production environments.</p> <p>Some time ago I wrote a simple tool called <a href="https://github.com/guettli/live-trace" rel="noreferrer">live-trace</a> which runs a daemon thread which collects stacktraces every N m...
0debug
Get header data from a request response in swift : <p>I want to get X-Dem-Auth in a header request with swift to stock that in my app.</p> <p>See the response :</p> <pre><code>headers { "Content-Length" = 95; "Content-Type" = "application/json; charset=utf-8"; Date = "Fri, 15 Apr 2016 08:01:58 GMT...
0debug
How to print all combinations? : <p>I've just started studying C++. I have to create an array with 1000 names. My idea was to first create an array with 10 names and then to permutate the names in order to produce 1000. However, I don't know how to create the first array (i suppose it is an array of strings, but I do n...
0debug
What is a vertical bar in jade? : <p>To convert HTML to jade is use this <a href="http://html2jade.aaron-powell.com/" rel="noreferrer">jade converter</a>.</p> <p>When I enter the following HTML,</p> <pre><code>&lt;!doctype html&gt; &lt;html class="no-js"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;/head...
0debug
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
i want to print value of second column in next columns where value of first column is repeated using linux command : my sample file is: $ cat diskcheck.out hxcsvc-a02 sd2 hxcslc-a01 sd23 hxcslc-a02 sd14 hxcslc-a02 sd17 hxcslc-a02 sd18 hxcslc-a02 sd19 ...
0debug
static int qemu_rbd_snap_rollback(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_rollback(s->image, snapshot_name); return r; }
1threat
How much of this business logic belongs in Vuex? : <p>I have a simple app which pulls products from an API and displays them on-page, like this:</p> <p><a href="https://i.stack.imgur.com/QcYeG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QcYeG.png" alt="enter image description here"></a></p> <p>I've adde...
0debug
WHMCS with django 1.9 python? : <p>I just want to know if it's possible to use WHMCS with Django framework ?</p> <p>Thank in advance !</p>
0debug
Parentheses in Ruby will make program slower? : I'm just wondering if using parentheses in Ruby makes program slower? I know It's common to omit them but for me using parentheses increase readability. :)
0debug
pflash_t *pflash_cfi01_register(target_phys_addr_t base, ram_addr_t off, BlockDriverState *bs, uint32_t sector_len, int nb_blocs, int width, uint16_t id0, uint16_t id1, uint16_t id2, uint1...
1threat
Android Center Align Images : I have a very simple html here. It's an email header. My problem is, it displays perfectly on iOS but Android center aligns the logo and the button, when I run an actual email test. Browsers displays it well. It's just email clients where it change. The logo is suppose to be left align...
0debug
what's the real purpose of 'ref' attribute? : <p>I'm really confused with the "ref" attribute of the input element. I've never heard it based on my knowledge and can't find some meaningful materials about it.The code is in vue.js offical documents.</p> <pre><code>&lt;currency-input v-model="price"&gt;&lt;/currency-inp...
0debug
Android Studio how to make mainactivity as home fragment? : I have a mainactivity and other fragments which open a webview when user clicks on them on navigationviewer. I added Home fragment to navigation view but I don't know how to make it default so that if user opens the app, default home fragment opens up. Do I ha...
0debug
Android which library should i use in non blocking socket programming : <p>I want to write and read data from multiple <code>sockets</code>.so i don't want to make it blocking <code>UI thread</code>.I know i can use <code>thread</code> for each connection.but before proceeding wanted to check if any good <code>3rd part...
0debug
Does Delphi threadvar work for Parallel.For? : <p>from <a href="http://www.delphibasics.co.uk/RTL.asp?Name=ThreadVar">here</a> it says </p> <blockquote> <p>"The ThreadVar keyword starts a set of variable definitions that are used by threads. Each thread is given a separate instance of each variable, thereby a...
0debug
static av_cold int MPA_encode_init(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int freq = avctx->sample_rate; int bitrate = avctx->bit_rate; int channels = avctx->channels; int i, v, table; float a; if (channels <= 0 || channels > 2){ av_log(avctx, AV_...
1threat
void qmp_blockdev_add(BlockdevOptions *options, Error **errp) { BlockDriverState *bs; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); QDict *qdict; Error *local_err = NULL; visit_type_BlockdevOptions(v, NULL, &options, &local_err); if (local_err) { error_propagate...
1threat
static void create_flash(const VirtBoardInfo *vbi) { hwaddr flashsize = vbi->memmap[VIRT_FLASH].size / 2; hwaddr flashbase = vbi->memmap[VIRT_FLASH].base; char *nodename; if (bios_name) { char *fn; int image_size; if (drive_get(IF_PFLASH, 0, 0)) { ...
1threat
Split a sentence into an array of string without knowing the size : 1.How to Split a sentence into an array of string[words] when i am taking the sentence from the user and i don't know the number of words in the sentence. Example- Sentence:"why are you here?" str[0]="why" str[1]="are" str[2]="you" st...
0debug
How can I implement a rotative banner for my android app? : on my login activity I would like to have a banner (3 actually) which would switch by certain time... Just like news on a website. With an arrow to pass to the next one, but mainly that passes automaticaly An example of what I want: [these images on Tinder...
0debug
int bdrv_key_required(BlockDriverState *bs) { BlockDriverState *backing_hd = bs->backing_hd; if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key) return 1; return (bs->encrypted && !bs->valid_key); }
1threat
static int ehci_execute(EHCIPacket *p, const char *action) { USBEndpoint *ep; int ret; int endp; if (!(p->qtd.token & QTD_TOKEN_ACTIVE)) { fprintf(stderr, "Attempting to execute inactive qtd\n"); return USB_RET_PROCERR; } p->tbytes = (p->qtd.token & QTD_TOKEN_TBYTES_...
1threat
How to select the last blcok element in a repeated html in webdriver : This is the html code. I want to select export csv of the last block. which is present in a drop down tringle mark whose xpath is ".//*[@id='table-view-views']/div/div[1]/ul/li[12]/a/span" Highlighted mark having same **div** and **ul** tags...
0debug
static int virtio_scsi_do_tmf(VirtIOSCSI *s, VirtIOSCSIReq *req) { SCSIDevice *d = virtio_scsi_device_find(s, req->req.tmf.lun); SCSIRequest *r, *next; BusChild *kid; int target; int ret = 0; if (s->dataplane_started && bdrv_get_aio_context(d->conf.bs) != s->ctx) { aio_context_...
1threat
Allow user to name and select location of exported table : <p>I've got a table called 'resultsHt'. I'd like to prompt the user to select a filename and directory for it to output to. I've had a look round and can't spot an easy way to do it that works on mac and windows. I'd be grateful for your help!</p>
0debug
static int decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { H264Context *h = dst->priv_data, *h1 = src->priv_data; int inited = h->context_initialized, err = 0; int context_reinitialized = 0; int i, ret; if (dst == src ||...
1threat
static void init_timetables( FM_OPL *OPL , int ARRATE , int DRRATE ) { int i; double rate; for (i = 0;i < 4;i++) OPL->AR_TABLE[i] = OPL->DR_TABLE[i] = 0; for (i = 4;i <= 60;i++){ rate = OPL->freqbase; if( i < 60 ) rate *= 1.0+(i&3)*0.25; rate *= 1<<((i>>2)-1); rate *= (double)(E...
1threat
Throws Exception catch childException... why not? : Say I have a method doSomething() which throws a checked exception, then in my main method I enclose doSomething() in a try catch. Question: Say I "throws Exception" in doSomething(). Why can't I "catch (ChildException e)" in my main method? I know I can't and ...
0debug
void qemu_clock_register_reset_notifier(QEMUClockType type, Notifier *notifier) { QEMUClock *clock = qemu_clock_ptr(type); notifier_list_add(&clock->reset_notifiers, notifier); }
1threat
Display new line in mail body : <p>I want to insert new line in mail body paragraphs .I have searched all the other same questions but none of them seems to work </p> <pre><code>$body = "Dear $surname $name \r\n Thank you for your Pre-registration for Global .\r\n Please print the attached e-ticket with your personal...
0debug
GKE & Stackdriver: Java logback logging format? : <p>I have a project running Java in a docker image on Kubernetes. Logs are automatically ingested by the fluentd agent and end up in Stackdriver.</p> <p>However, the format of the logs is wrong: Multiline logs get put into separate log lines in Stackdriver, and all log...
0debug
How to create a self-referential Python 3 Enum? : <p>Can I create an enum class <code>RockPaperScissors</code> such that <code>ROCK.value == "rock"</code> and <code>ROCK.beats == SCISSORS</code>, where <code>ROCK</code> and <code>SCISSORS</code> are both constants in <code>RockPaperScissors</code>?</p>
0debug
How import object from external JS file in React JS using web pack : <p>I am building on my knowledge of React JS and I would like to import/include some external JS files that hold nothing more than an objects / object arrays. I've done this in jQuery, Vanilla JS and even in Angular JS. Sweet!!! </p> <p>How can I ach...
0debug
static always_inline void gen_qemu_stf (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_helper_1_1(helper_f_to_memory, tmp, t0); tcg_gen_qemu_st32(tmp, t1, flags); tcg_temp_free(tmp); }
1threat
static void opt_qsquish(const char *arg) { video_qsquish = atof(arg); if (video_qsquish < 0.0 || video_qsquish > 99.0) { fprintf(stderr, "qsquish must be >= 0.0 and <= 99.0\n"); exit(1); } }
1threat
static int decode_slice(MpegEncContext *s) { const int part_mask = s->partitioned_frame ? (ER_AC_END | ER_AC_ERROR) : 0x7F; const int mb_size = 16; int ret; s->last_resync_gb = s->gb; s->first_slice_line = 1; s->resync_mb_x = s->mb_x; s->resync_mb_...
1threat
static NVDIMMDevice *nvdimm_get_device_by_handle(uint32_t handle) { NVDIMMDevice *nvdimm = NULL; GSList *list, *device_list = nvdimm_get_plugged_device_list(); for (list = device_list; list; list = list->next) { NVDIMMDevice *nvd = list->data; int slot = object_property_get_int(OBJEC...
1threat
Does anyone know why the getAllLoyaltyCards method is returning a hex value and not the items of the list : I have no idea why this is returning a hex value, and i am only a beginner at Java. public class LoyaltyCardList { private ArrayList <LoyaltyCard> LoyaltyCards; /** * */ public Lo...
0debug
Make this bootstrap nav submenu always open : i have a code to make bs nav, but i dont understand how to make submenu always open without clicking menu name. this is the code : jsfiddle.net/6hrmodok/2/ and please answer this question with the new code. thankyou
0debug
static void aux_slave_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); set_bit(DEVICE_CATEGORY_MISC, k->categories); k->bus_type = TYPE_AUX_BUS; }
1threat
How to execute update ($set) queries in MongoDB Compass tool? : <p>I'm new to MongoDB Compass tool and am trying to update a field in my collection. Please can someone suggest where the update query must be written. Could find no options or panes in the tool to write custom queries be it selection / updation for that m...
0debug
i want to make a calculator whose calculation is done on second page and displayed on third page values are taken from first page : //This is mainactivity.java package com.example.bhask.myapplication; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle;...
0debug
static void test_flush_event_notifier(void) { EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true }; event_notifier_init(&data.e, false); aio_set_event_notifier(ctx, &data.e, event_ready_cb); g_assert(!aio_poll(ctx, false)); g_assert_cmpint(data.n, ==, 0); g_assert_cmpin...
1threat
my JavaScript using jQuery is not working : <p>I have a small program html and js program</p> <p>HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" src="temp.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id='display'&gt;&lt;/div&gt; &lt;input t...
0debug
static void unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) { int i, j, k; int coding_mode; int motion_x[6]; int motion_y[6]; int last_motion_x = 0; int last_motion_y = 0; int prior_last_motion_x = 0; int prior_last_motion_y = 0; int current_macroblock; int curr...
1threat