problem
stringlengths
26
131k
labels
class label
2 classes
static void pc_q35_2_4_machine_options(MachineClass *m) { PCMachineClass *pcmc = PC_MACHINE_CLASS(m); pc_q35_2_5_machine_options(m); m->alias = NULL; pcmc->broken_reserved_end = true; pcmc->inter_dimm_gap = false; SET_MACHINE_COMPAT(m, PC_COMPAT_2_4); }
1threat
static int mov_write_video_tag(ByteIOContext *pb, MOVTrack* track) { int pos = url_ftell(pb); char compressor_name[32]; int tag; put_be32(pb, 0); tag = track->enc->codec_tag; if (!tag) tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id); if (!tag) tag = c...
1threat
static AHCIQState *ahci_boot(void) { AHCIQState *s; const char *cli; s = g_malloc0(sizeof(AHCIQState)); cli = "-drive if=none,id=drive0,file=%s,cache=writeback,serial=%s" ",format=raw" " -M q35 " "-device ide-hd,drive=drive0 " "-global ide-hd.ver=%s"; s-...
1threat
def upper_ctr(str): upper_ctr = 0 for i in range(len(str)): if str[i] >= 'A' and str[i] <= 'Z': upper_ctr += 1 return upper_ctr
0debug
Converting Text Files : <p>I have a text file containing these. I will load it in created form.</p> <pre><code>5JB01141570J4450901 1000 1051 2000 01161501B10G610M0350M200 0000006 </code></pre> <p>to produce this.</p> <pre><code>106262,5,JB,2015-01-14,70J4450901 ,1000 ,1051 ,2000...
0debug
converting from Date format to another in R : <p>I want to convert my date format from 1/10/2017 to 2017-10-1 format using R. I tried using different methods as writhing a function or using Chron. I'm a beginner so any help would be appreciated.</p> <p>note: if date is 1/8/2017 it should be converted to 2017-08-01</p>...
0debug
static uint32_t e1000e_macreg_read(e1000e_device *d, uint32_t reg) { return qpci_io_readl(d->pci_dev, d->mac_regs + reg); }
1threat
static void check_breakpoint(CPUState *env, DisasContext *dc) { CPUBreakpoint *bp; if (unlikely(!TAILQ_EMPTY(&env->breakpoints))) { TAILQ_FOREACH(bp, &env->breakpoints, entry) { if (bp->pc == dc->pc) { t_gen_raise_exception(dc, EXCP_DEBUG); dc->is_jmp...
1threat
How to get the value of every incrementation in the list combined? : Given the list of `[0, 10, 20, 5, 10, 30, 20, 35]`, how do I get the list of `[20, 25, 15]` for every incrementation of the values in the initial list? `[0, 10, 20]` turns into `[20]`, `[5, 10, 30]` turns into `[25]`, and `[20, 35]` turns into `[15]`.
0debug
connot impert flask into test file : i have running following code for test purpose my file name is app.py my code is from flask import flask app = flask (_name_) @app.route("/") def main(): return "Welcome!" if __name__ == "__main__": app.run() when i run this code . it gives error...
0debug
JavaScript === vs == for type checking : <p>Which of the following lines is correct?...</p> <pre><code>if (typeof value == 'boolean') { return value; } </code></pre> <p>... or ...</p> <pre><code>if (typeof value === 'boolean') { return value; } </code></pre> <p>I thought the double equal sign was a type of "soft co...
0debug
whenever i start my node server and type localhost:3000 it is giving me this error Any Help would Be Appreciable : i am new beginner in angular .i am using Visual Studio code tool and i am trying to create a server using nodejs i am trying to load my index.html file when a user sends requests to the server my js cod...
0debug
Pass a value to another screen : <p>I have a screen where the user can select an option (not a browse gallery as it does not do what is required).</p> <p>I want to pass the item the user has selected to the pre-made "DetailScreen1" which is used by the browse gallery. </p> <p>I looked at the browse screen but did not...
0debug
Firebase Performance: How many children per node? : <p>If a node has 100 million children, will there be a performance impact if I:</p> <p>a) Query, but limit to 10 results</p> <p>b) Watch one of the children only</p> <p>I could split the data up into multiple parents, but in my case I will have a reference to the c...
0debug
How to install latest version of openssl Mac OS X El Capitan : <p>I have used <code>brew install openssl</code> to download and install openssl v1.0.2f, however, it comes back saying:</p> <pre><code>A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem ...
0debug
static void RENAME(yuv2rgb555_1)(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *bguf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y) { const int16_t *ubuf0 = ubu...
1threat
C Simple RingBuffer - Multithreading - Finding Critical Sections : <p>so I wrote a simple C Ring Buffer that I'm now testing using multiple threads and I'm having a hard time trying to get the code to fail so that I can identify critical sections.</p> <p>Note: The code is in C, but i'm testing it in C++ files because ...
0debug
is there a way to make a custom window? not box like but custom shape [python] : <p><a href="http://i.stack.imgur.com/HrfwH.jpg" rel="nofollow">like this</a></p> <p>the green lady on the screen. that's how i want to make my program look like. how do i make that happen in python? just so you know i am new to python and...
0debug
void virt_acpi_setup(VirtGuestInfo *guest_info) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!guest_info->fw_cfg) { trace_virt_acpi_setup(); return; } if (!acpi_enabled) { trace_virt_acpi_setup(); return; } build_state = g_mallo...
1threat
static int calculate_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, bool *rebuild, void **refcount_table, int64_t *nb_clusters) { BDRVQcow2State *s = bs->opaque; int64_t i; QCowSnapshot *sn; int ret; if (!*refcou...
1threat
How to create struct which is composed of another : <p>I have a struct like so:</p> <pre><code>type Docs struct { Methods []string Route string } </code></pre> <p>and then I import that from another file like:</p> <pre><code>import tc "huru/type-creator" </code></pre> <p>and use it like so:</p> <pre><code>...
0debug
What is Kubernetes' Users for? : I'm studying Kubernetes now, and have a question about Kubernetes' Users. I learned how to create Users and how to limit access by Role, but when should I use it? I mean, if malicious user(not k8s user, but operating user) penetrate k8s server, they can switch administrator easily...
0debug
Macbook won't stay as using Python3 : When I change the alias for python using ***alias python='python3'*** in terminal, the python version will be changed to python3. But, when I close Atom and come back to the app later, it has gone back to python2. Can someone explain this please?
0debug
How to convert string to date format in java? : <p>How to convert string "Monday, 10 January 2017 | 04:58 PM" to a java.sql.Date 2017-01-10?</p>
0debug
Storybook JS Interaction Testing with Enzyme - State Changes being Overidden : <p>I am using storybook to visualize changes to React components after simulating user interaction with enzyme. As a small example, I want a story displaying a component after one of its button has been clicked.</p> <p>The issue I'm having ...
0debug
500 Internal Server Error when I do a Include : <p>I'm trying to do an include in php, but when I execute the form submit Internal Server Error appears. If I delete the include this error does not appears. </p> <p>I've tryed to change permissions and the owner of the forlders and files to www-data: but it doesn't work...
0debug
Cannot figure out "Unexpected token" in React : <p>I cannot figure out what the error means on line 42:18 Could someone explain, please.</p> <p><strong>Error Message:</strong></p> <blockquote> <p>Line 42:18: Parsing error: Unexpected token</p> </blockquote> <pre><code>render() { return ( &lt;div class...
0debug
MySQL Select records for each date in month even if records does not exist for specific date : <p>I have a table with records having created_date field. I want to select records for each date in current month, even if there is not record for any specific date.</p> <p>I want records as :</p> <p><div class="snippet" da...
0debug
MS access to sql migration issue : I have a sql query below select LTRIM(RTRIM(Sub string([Short Description],9,Len([Short Description])-8))) AS PolicyNumber from x table its giving error as this Msg 537, Level 16, State 3, Line 10 Invalid length parameter passed to the LEFT or SUBSTRING function.
0debug
Selecting sharepoint site language using powershell script : Is there a way or a script to get a list of the available languages for a sharepoint site in powershell?
0debug
Why Chrome on Linux shows "External protocol request" dialog for unknown protocol? : <p>I am creating a custom protocol handler for Google Chrome on Linux. My link looks like this:</p> <pre><code>&lt;a href="myprotocol:someargument"&gt;Trigger my app with param&lt;/a&gt; </code></pre> <p>I have noticed that if 'mypro...
0debug
Docker - Bash: IP: command not found : <p>I'm currently trying to set up a hyperledger fabric network using docker toolbox, based on the guide <a href="http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup.html?cm_mc_uid=81974749078914879942140&amp;cm_mc_sid_50200000=1488939665#starting-up-validating-p...
0debug
how to include js file with no error? : i want to separate my route file in nodejs i use restify framework and this is part of my code app.routes((app)=>{ require(__dirname + '/../routes/web.js') }) routes/web.js app.get('/', function (req, res, next) { console.log("object"); ...
0debug
void ff_weight_h264_pixels16_8_msa(uint8_t *src, int stride, int height, int log2_denom, int weight_src, int offset) { avc_wgt_16width_msa(src, stride, height, log2_denom, weight_src, offset); }
1threat
How to properly create package python : Say i have a folder named foo. Inside that folder is __init__.py, a folder called test, and a another python file called t1.py. Inside folder test is a python file called bar.py, and in that file I am trying to do something like: from foo import t1. And it gives me this error: Mo...
0debug
static bool less_than_7(void *opaque, int version_id) { return version_id < 7; }
1threat
Django insert default data after migrations : <p>I want my application to have default data such as user types. Whats the most efficient way to manage default data after migrations.</p> <p>it needs to handle situations such as after i add a new table it adds the default data for it. </p>
0debug
What's going wrong with my code for Euler Project #1? : <p>Can anyone tell me where it is my program is going wrong here? I just don't see it...</p> <pre><code>x_3 = [] i=0 while 3*i &lt; 1000: sum_3 = 3*i x_3.extend([sum_3]) i += 1 x_5 = [] j = 0 while 5*j &lt; 1000: sum_5 = 5*j j += 1 x_5.ex...
0debug
Why does this variable change in the code? : <p>I wrote a mergesort function in c++. In which a pass wrong value(array out of bound) of upper limit in function.</p> <pre><code>int a[]={6,5,2,4,6,78,88,76,33,44,54,212,344,56,677}; int n=sizeof(a)/sizeof(a[0]); printf("n=%d\n",n); merges(a,0,n); // if should be 'merge...
0debug
static void bdrv_raw_init(void) { bdrv_register(&bdrv_raw); bdrv_register(&bdrv_host_device); }
1threat
java bean drop game ball only going to right : The Ball only goes of to right Dependencies Std.java a marble picture and a background arena image thank you for the help I believe the issue to be in the transition from The LR method to the main game loop method i created a variable and it takes the LR method and ru...
0debug
static void test_visitor_in_native_list_uint16(TestInputVisitorData *data, const void *unused) { test_native_list_integer_helper(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U16); }
1threat
C - while operator in for loop initializer : <p>Why I cannot write smthng like this?</p> <pre><code>int i, size; int *arr; ... for(i = size - 1, while(arr[i] == 0) i--; i &gt;= 0; i--) { ... } </code></pre>
0debug
How to retrieve PHAsset from UIImagePickerController : <p>I'm trying to retrieve a PHAsset however PHAsset.fetchAssets(withALAssetURLs:options:) is deprecated from iOS 8 so how can I properly retrieve a PHAsset?</p>
0debug
How to add new row in dataframe : I have two dataframe that look like df1 V1 V2 V3 V4 rs200140498 chr1 861315 GG rs371217242 chr1 861329 AA rs200686669 chr1 861349 CC rs370046315 chr1 861357 CC rs374110379 chr1 861521 GG rs74045401 chr1 861530 GG rs377418...
0debug
What is reflect-metadata in typescript : <p>what are reflect-metadata and its purpose?</p> <p>What is syntax and purpose of using reflect-metadata?</p> <p>Can some one provide the example for better understanding of the same?</p> <p>How can be the reflect metadata helpful in implementing decorators in typescript.</p...
0debug
Encrypt String in .NET Core : <p>I would like to encrypt a string in .NET Core using a key. I have a client / server scenario and would like to encrypt a string on the client, send it to the server and decrypt it. </p> <p>As .NET Core is still in a early stage (e.g. Rijndael is not yet available), what are my options?...
0debug
Airflow DAG Run triggered, but never executed? : <p>I've found myself in a situation where I manually trigger a DAG Run (via <code>airflow trigger_dag datablocks_dag</code>) run, and the Dag Run shows up in the interface, but it then stays "Running" forever without actually doing anything.</p> <p>When I inspect this D...
0debug
static TCGv_i64 gen_subq_msw(TCGv_i64 a, TCGv b) { TCGv_i64 tmp64 = tcg_temp_new_i64(); tcg_gen_extu_i32_i64(tmp64, b); dead_tmp(b); tcg_gen_shli_i64(tmp64, tmp64, 32); tcg_gen_sub_i64(a, tmp64, a); tcg_temp_free_i64(tmp64); return a; }
1threat
React-Bootstrap add pull-right to Button : <p>I have the following JSX using React-Bootstrap:</p> <pre><code>&lt;Button bsStyle="danger pull-right" bsSize="small" onClick={() =&gt; {alert('do stuff')}}&gt; &lt;Glyphicon glyph="trash" /&gt; &lt;/Button&gt; </code></pre> <p>However this will show a warning in the c...
0debug
static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c, GetByteContext *gb) { int i, j, k; uint8_t *dst; uint32_t bits; uint32_t cur_size, cursor_w, cursor_h, cursor_stride; uint32_t cursor_hot_x, cursor_hot_y; int cursor_fmt; uint8_t *tmp; ...
1threat
Command to genarate result in xls/csv? : Below is the command to run the Soap UI project,after run I will be getting xml file results,that i needed in xls/csv Kindly some one help me. "/home/user/SmartBear/SoapUI-5.2.1/bin/testrunner.sh" -e$endpoint -rjf $resultfile $projectnew
0debug
void HELPER(cksm)(uint32_t r1, uint32_t r2) { uint64_t src = get_address_31fix(r2); uint64_t src_len = env->regs[(r2 + 1) & 15]; uint64_t cksm = 0; while (src_len >= 4) { cksm += ldl(src); cksm = cksm_overflow(cksm); src_len -= 4; src += 4; } ...
1threat
static int str_read_packet(AVFormatContext *s, AVPacket *ret_pkt) { AVIOContext *pb = s->pb; StrDemuxContext *str = s->priv_data; unsigned char sector[RAW_CD_SECTOR_SIZE]; int channel; AVPacket *pkt; AVStream *st; while (1) { if (avio_read(pb,...
1threat
How to access vector class array methods in c++ : <pre><code>class Bird{ public: void init(); Bird();//constructor void foo();//its defined somewhere }; int _tmain(int argc, _TCHAR* argv[]) { std::vector &lt;Bird&gt; B[51]; for (int i = 0; i &lt; 51; i++) B[i].foo(); } </code></pre> <p>i...
0debug
Writing to a spreadsheet with Python 2.65 : <p>I am trying to make some Python 3.6 code work in a Python 2.65 environment. I've made most of the corrections but I cannot import module <code>xlwt</code>. It imports <code>xlrd</code> just fine. I tried <code>openpyxl</code> but that was not available either. Does Python ...
0debug
Angular 4 - Route query params cause path match failure : <p>After searching multiple threads/questions on the various types of routing within Angular 4, I cannot resolve an issue linked to passing queryParams to an Angular 4 route.</p> <p>When passing either into the url </p> <pre><code>http://localhost/search;x=y <...
0debug
Deepcopy in React : <p>In reducers,we always use <code>Object.assign({},state,newState)</code> to save a state. But <code>assign()</code> doesn't support deepcopy,because this method only copy a reference of multi-level object. This is my code in program.</p> <p><div class="snippet" data-lang="js" data-hide="false" da...
0debug
SimpleDateFormat and Date object : <p>In my android app I retrieve from an api the current day as.</p> <pre><code> long dateTime = innerJSON.getLong("dt"); Date weekDay = new Date(dateTime * 1000L); SimpleDateFormat outFormat = new SimpleDateFormat("EEEE"); String day = outFormat.format(weekDay); </c...
0debug
static int v9fs_synth_readdir_r(FsContext *ctx, V9fsFidOpenState *fs, struct dirent *entry, struct dirent **result) { int ret; V9fsSynthOpenState *synth_open = fs->private; V9fsSynthNode *node = synth_open->node; ret = v9fs_synth_get_dentry(node, entry, result, synt...
1threat
static void audio_init (void) { size_t i; int done = 0; const char *drvname; VMChangeStateEntry *e; AudioState *s = &glob_audio_state; if (s->drv) { return; } QLIST_INIT (&s->hw_head_out); QLIST_INIT (&s->hw_head_in); QLIST_INIT (&s->cap_head); atexit...
1threat
2 place in the page with the same xpath : I want to insert a text to a filed. This filed xpath = "//*[@id='email']". This xpath is moved to 2 places in the web page. The first is not visible and the second is ok. I want to insert text to the second. I do it like this: String xpathOfElement = "//*[@id='email...
0debug
void ide_flush_cache(IDEState *s) { if (s->bs == NULL) { ide_flush_cb(s, 0); return; } s->status |= BUSY_STAT; block_acct_start(bdrv_get_stats(s->bs), &s->acct, 0, BLOCK_ACCT_FLUSH); s->pio_aiocb = bdrv_aio_flush(s->bs, ide_flush_cb, s); }
1threat
Keras Binary Classification - Sigmoid activation function : <p>I've implemented a basic MLP in Keras with tensorflow and I'm trying to solve a binary classification problem. For binary classification, it seems that sigmoid is the recommended activation function and I'm not quite understanding why, and how Keras deals w...
0debug
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, int flags, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
1threat
Angular2 Observables -- Replay : <p>I am trying to set up an Angular2 Observable that will replay the latest value.</p> <pre><code>import {Injectable} from 'angular2/core'; import {Observable} from 'rxjs/Observable'; @Injectable() export class RefinementService { refining: any; private r: any; constructor...
0debug
Fast algorithm for checking if binary arrays can be rotated to not have an elementwise sum over 1 : <p>Let's say I have a set of constant-length arrays containing only zeroes and ones. My goal is to find out whether, after any rotation of any of the arrays, the element-wise sums of the arrays will not exceed 1.</p> <p...
0debug
module is not defined and process is not defined in eslint in visual studio code : <p>I have installed eslint in my machine and i have used visual studio code i have certain modules and process to be exported When i try to use "module" or "process" it shows it was working fine before.</p> <pre><code>[eslint] 'module'...
0debug
SVG dominant-baseline not working in Safari : <p>I'm trying to position SVG text so that it site entirely above the y-location at which it is located. A dominant baseline of <code>text-after-edge</code> appears to be the appropriate setting for this.</p> <p>This works just fine in Chrome, but with Safari <code>text-af...
0debug
how to get an object (font style, font size, color, borders, lines, cell size) from excel using C#? : how to get an object (font style, font size, color, borders, lines, cell size) from excel using C#? PLEASE HELP! I don't where to start or how to start.
0debug
Changing the page title using the Angular 2 new router : <p>What's the right way to change the app page title in browser when using the <strong>new router</strong>?</p> <p>*Using Angular 2 CLI</p>
0debug
Following Java Tutorial - Need hep with errors : I've been following a java tutorials who has began learning via Sam's teach yourself java and although I have copied this to ensure I can run it before I begin to change and make it my own, it will not run and I am not sure why. I would appreciate if one of you guys/girl...
0debug
Python print module says the file name is not defined : <p>Working on a Head First Python book, 2010, I've encountered an exercise where I had to print a list into a specific file, and another list into another one. Did all the code, everything works, except for the print module which says the name of the file is not d...
0debug
What do with Async in node js : I have problem with async. Result of this code from pic should be: First:0 Second:2 Item ADD! First:1 Second:2 Item ADD! First:2 Second:2 Item ADD! And here script should stop. I know that code is to long but I can't put less. connection.query('...
0debug
static inline void gen_intermediate_code_internal(X86CPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUX86State *env = &cpu->env; DisasContext dc1, *dc = &dc1; target_ul...
1threat
How to open the current directory on Bash on Windows? : <p>I know that in the Mac OS10, people use the <code>open .</code> command to open the current directory.</p> <p>Does anybody please know the appropriate command to do the same task under Bash on Windows?</p> <p>Cheers!</p>
0debug
How do I import a mod with traits into rust? this function takes 1 parameter but 0 parameters were supplied : <p>How do I import a mod into rust? </p> <p>1) I have a file with these contents:</p> <pre><code>this_is_stupid.rs pub mod fix_me { use crate::InputData; pub trait Wow { fn findMe(&amp;self...
0debug
How do I auto-indent Python code in Visual Studio Code? : <p>I'm using Visual Studio Code (<em>not Visual Studio</em>) on Linux and I can't seem to find out how to turn on auto-indentation for Python. I've looked all over preferences, spent some time on Google, and can't find anything.</p> <p>Does anyone know how to d...
0debug
Practice project ideas for blockchain : <p>I have some knowledge on blockchain technologies like Ethereum, Hyperledger Fabric but I would like to have more dev experience apart from the tutorials that are provided on their websites.</p> <p>Are there any resources where there are some blockchain ideas to develop some s...
0debug
TeamCity fails to build projects using C# 7 : <p>TeamCity is throwing errors when I added new the output variable syntax in our latest code update:</p> <pre><code>if (Enum.TryParse(input, out MyProject.ClassificationType classification)) { result.Classification = classification; } </code></pre> <p>TeamCity threw ...
0debug
Merge from A to B directory updating b directory using system.IO c# : <p>I would like to compare two equal directories A and B with subdirectories. If I change, delete, or include directories or files in A, I need to reflect on B. Is there is any C # routine that does this? I have this routine but I can't move on. I w...
0debug
void vhost_dev_cleanup(struct vhost_dev *hdev) { int i; for (i = 0; i < hdev->nvqs; ++i) { vhost_virtqueue_cleanup(hdev->vqs + i); } memory_listener_unregister(&hdev->memory_listener); if (hdev->migration_blocker) { migrate_del_blocker(hdev->migration_blocker); error...
1threat
Reading Input from file : <p>How would I read in input from a file and save it to an array? For example the file contains:</p> <p>2</p> <p>1 1 2 3</p> <p>2 4 5</p> <p>Where the first number (2) represents the number of arrays need. The first number in the second line is the array ID followed by whatever should be i...
0debug
static int ffm_read_data(AVFormatContext *s, uint8_t *buf, int size, int header) { FFMContext *ffm = s->priv_data; AVIOContext *pb = s->pb; int len, fill_size, size1, frame_offset, id; int64_t last_pos = -1; size1 = size; while (size > 0) { redo: ...
1threat
static void omap_mpu_timer_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque; if (size != 4) { return omap_badwidth_write32(opaque, addr, value); } switch (addr...
1threat
android - ListView.setAdapter error: java.lang.NullPointerException : <p>I am getting error "java.lang.NullPointerException" by setting my adapter in ListFragment activity.</p> <p>Here is my code:</p> <pre><code>private List&lt;Music&gt; musicList; public View inflate; ListView searchList; public class SearchFragment...
0debug
static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int type, int length) { int buf_size = FFMAX(2*length, LEN_PRETTY_GUID) + 1; char *buf = av_malloc(buf_size); if (!buf) return; if (type == 0 && length == 4) { snprintf(buf, buf_size, "%"PRIi32, avio_rl32(...
1threat
How to remove div in cross site div? : <p>I have an iframe youtube video, where i want to remove an div element. I can do it in in the console as long I manually folded out the div which I am looking for, but otherwise i am not able to find it using <code>document.getElementByClassName()</code>..</p> <p>Is it possibl...
0debug
static void paio_cancel(BlockDriverAIOCB *blockacb) { struct qemu_paiocb *acb = (struct qemu_paiocb *)blockacb; int active = 0; mutex_lock(&lock); if (!acb->active) { TAILQ_REMOVE(&request_list, acb, node); acb->ret = -ECANCELED; } else if (acb->ret == -EINPROGRESS) { ...
1threat
How to use echo with PHP's array_reverse() Function : <p>I'm not a big fan of using print_r and I prefer to use echo all the time when I can so how can I use echo with PHPs array_reverse() function </p> <p>This how the docs look like most of the time online they use print_r all the time for example</p> <pre><code>&lt...
0debug
Does we need to change anything in usual webpage loader for loading an AMP (accelerate mobile page) webpage in Android? : This is my code. import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class Main extends Activity { private WebVi...
0debug
static void avc_biwgt_16width_msa(uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height, int32_t log2_denom, int32_t src_weight, int32_t dst_weight, in...
1threat
alert('Hello ' + user_input);
1threat
static int ahci_dma_prepare_buf(IDEDMA *dma, int is_write) { AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma); IDEState *s = &ad->port.ifs[0]; ahci_populate_sglist(ad, &s->sg); s->io_buffer_size = s->sg.size; DPRINTF(ad->port_no, "len=%#x\n", s->io_buffer_size); return s->io_buffer_si...
1threat
static void rtas_get_xive(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { struct ics_state *ics = spapr->icp->ics; uint32_t nr; if ((nargs != 1) || (nret != 3)) { rtas_st(rets...
1threat
Why does it show value 5150 and not 155? : <p>So im quite new to javascript and i tried making something simple as entering a value and add 150 to it but it wont show number + 150? Pictures below</p> <p><a href="https://i.stack.imgur.com/XjPJr.png" rel="nofollow noreferrer">Code</a></p> <p><a href="https://i.stack.im...
0debug
static void init_ppc_proc (CPUPPCState *env, ppc_def_t *def) { env->reserve = -1; env->nb_BATs = -1; env->nb_tlb = 0; env->nb_ways = 0; spr_register(env, SPR_PVR, "PVR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, SPR_NOACCESS, ...
1threat
int av_grab(AVFormatContext *s) { UINT8 audio_buf[AUDIO_FIFO_SIZE]; UINT8 audio_buf1[AUDIO_FIFO_SIZE]; UINT8 audio_out[AUDIO_FIFO_SIZE]; UINT8 video_buffer[1024*1024]; char buf[256]; short *samples; URLContext *audio_handle = NULL, *video_handle = NULL; int ret; AVCodecCont...
1threat
i got this error plz help Program type already present: android.support.v4.app.LoaderManager : When i am running my android app on my app the compiler gives this all error i got this error plz help Program type already present: android.support.v4.app.LoaderManager java.lang.RuntimeException: com.a...
0debug
python build-in method next act strange : [enter image description here][1] [1]: https://i.stack.imgur.com/0YdGV.png When I use a imported package, I use an object that it give to me. I found it have next method so I just try use next() build-in function to generate next item of it,but something is wrong. And...
0debug