problem
stringlengths
26
131k
labels
class label
2 classes
static void tcp_chr_tls_init(CharDriverState *chr) { TCPCharDriver *s = chr->opaque; QIOChannelTLS *tioc; Error *err = NULL; if (s->is_listen) { tioc = qio_channel_tls_new_server( s->ioc, s->tls_creds, NULL, &err); } else { tioc = qio...
1threat
System.Web.Mvc.HttpPostAttribute vs System.Web.Http.HttpPostAttribute? : <p>In my Web API project which is based on the ASP.NET MVC, I want to use the <code>HttpPost</code> attribute. When I've added that onto the action, The IntelliSense suggests me these two namespaces:</p> <ul> <li><strong>System.Web.Mvc.HttpPostAt...
0debug
static void gen_add_carry(TCGv dest, TCGv t0, TCGv t1) { TCGv tmp; tcg_gen_add_i32(dest, t0, t1); tmp = load_cpu_field(CF); tcg_gen_add_i32(dest, dest, tmp); dead_tmp(tmp); }
1threat
Java Scanner Input , there are no compilation errors neither successfull input : The Following code is a simple java program where i am just getting an input of a student details but the program doesnt do anything it just stays like this no compilation error or does not take any input import ja...
0debug
How to use boostrap scrollspy on angular 7 project? : I have transform basic html page with boostrap scrollspy component and my nav doesn't work (no change when page scroll). I have install boostrap 4 with the command below : npm install boostrap There is no change on page scroll or when i clic on menu the...
0debug
Fetch categories list from SQL Server 2008 : <p>I have below table structure in SQL Server 2008:</p> <ol> <li>Article (stores articles)</li> <li>Category (stores category) </li> <li>ArticleToCategory (stores article and category reference since one article can be tagged to multiple category). </li> </ol> <p>Now i wan...
0debug
The input line is too long when starting kafka : <p>I'm trying to run Kafka message queue on Windows.</p> <p>I'm usin this tutorial - <a href="https://dzone.com/articles/running-apache-kafka-on-windows-os" rel="noreferrer">https://dzone.com/articles/running-apache-kafka-on-windows-os</a></p> <p>When i try to run it w...
0debug
I Want upload Zip file on Google Drive but using C Sharp Windows Application (Frame Work 4.0 VS 2010) : [1]: https://i.stack.imgur.com/8r5i7.png credential = GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, ...
0debug
Is it possible to load and unload jdk and custom modules dynamically in Java 9? : <p>I am beginner in JPMS and can't understand its dynamism. For example, in current JVM instance <code>moduleA.jar</code> is running. <code>moduleA</code> requires only <code>java.base</code> module. Now, I want </p> <ol> <li>to load dyn...
0debug
void do_icbi (void) { uint32_t tmp; #if defined(TARGET_PPC64) if (!msr_sf) T0 &= 0xFFFFFFFFULL; #endif tmp = ldl_kernel(T0); T0 &= ~(ICACHE_LINE_SIZE - 1); tb_invalidate_page_range(T0, T0 + ICACHE_LINE_SIZE); }
1threat
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask, bool queuing) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; USBDevice *dev; USBEndpoint *ep; if (!(td->ctrl & TD_CTRL_ACTIVE)) return TD_RESULT_NEXT...
1threat
Angular Dialog: No component factory found for DialogModule. : <p>Trying to make a dialog using feature model in angular 6. But I'm getting this error:</p> <blockquote> <p>No component factory found for DialogModule. Did you add it to @NgModule.entryComponents?</p> </blockquote> <p>Everyone keeps saying to use </p>...
0debug
Database connections : My program wont launch, I'm getting an error I don't know how to fix. Please advise I've googled the error Error 1: Severity Code Description Project File Line Suppression State Error Unable to copy file "obj\Debug\KarateStock.exe" to "bin\Debug\KarateStock.exe". The process cannot acc...
0debug
void blkconf_geometry(BlockConf *conf, int *ptrans, unsigned cyls_max, unsigned heads_max, unsigned secs_max, Error **errp) { DriveInfo *dinfo; if (!conf->cyls && !conf->heads && !conf->secs) { dinfo = drive_get_by_blockdev(conf->bs); ...
1threat
Install Android App Bundle on device : <p>I built my project using the new Android App Bundle format. With APK files, I can download the APK to my device, open it, and immediately install the app. I downloaded my app as a bundle (.aab format) and my Nexus 5X running Android 8.1 can't open the file. Is there any way to ...
0debug
Scrap the stackflow user data : import requests from bs4 import BeautifulSoup import pandas as pd import csv url='https://stackoverflow.com/users' response= requests.get(url) html=response.content soup= BeautifulSoup(html, 'html.parser') all_table= soup.find("table") l=len(soup.find_all('div', cl...
0debug
How to delete an undesirable row from pandas dataframe : <p>I have pandas dataframe for exemple like :</p> <pre><code>id column1 column2 1 aaa mmm 2 bbb nnn 3 ccc ooo 4 ddd ppp 5 eee qqq </code></pre> <p>I have a list tha...
0debug
How to insert a sleep/pause before the next method is called in android? : <p>In an android app I have a layout, and when the user presses a button a different layout is shown (in the same activity). But instead to show the different layout right away, I want to put in a small delay (ca. 0.5 seconds). How to do that be...
0debug
script tag in PHP function - expecting statment : Im trying to use javascript code in PHP function, but I get error - expecting statement code: function subscribe_request($phone ){ <script src="js/subscrie.js" type="text/javascript"> //something </script> }
0debug
How to work with xml and java (android) : <p>How do I make something in xml, and change the value of it in Java?</p> <p>ex:</p> <pre><code>&lt;TextView android:text="Hello World!" android:textSize="50dp" android:layout_marginTop="27dp" android:id="@+id/textView" android:editable="true" android...
0debug
How to use auto layout so my app fits all screen sizes in swift : [I want it to look like this on all iphones][1] [But when I switch to a larger size phone it does this, it also looks ugly on smaller phones as well.][2] [1]: https://i.stack.imgur.com/LYwQm.png [2]: https://i.stack.imgur.com/rPbbF.png
0debug
How can I re-write this strcpy() function using pointers only? : <p>this is strcpy code</p> <pre><code>char *strcpy(char *dest, const char* src) #endif { char *ret = dest; while (*dest++ = *src++) ; return ret; } </code></pre> <p>I tried to implement it using swap method and pointers only</p> <pr...
0debug
static void cmd_seek(IDEState *s, uint8_t* buf) { unsigned int lba; uint64_t total_sectors = s->nb_sectors >> 2; if (total_sectors == 0) { ide_atapi_cmd_error(s, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT); return; } lba = ube32_to_cpu(buf + 2); if (lba >= total_sectors...
1threat
grep: input dictionary file. Recursively search DIR for dictionary terms, output found filenames to a file named after dictionary_term : I have a dictionary file: `dictionary.txt` it contains the following example IP addresses: ` 1.1.1.1 2.2.2.2 3.3.3.3 ` There are many `IP_files.iplists` within this dire...
0debug
Why flexible array member must be at end of struct but struct with flexible array not? : <p>Some struct with flexible array:</p> <pre><code>struct SomeArray { unsigned length; int array[]; }; </code></pre> <p>This code gcc (ver. 4.9.2) compiling with no errors:</p> <pre><code>struct s1{ unsigned length; SomeArray so...
0debug
static void raw_refresh_limits(BlockDriverState *bs, Error **errp) { BDRVRawState *s = bs->opaque; struct stat st; if (!fstat(s->fd, &st)) { if (S_ISBLK(st.st_mode) || S_ISCHR(st.st_mode)) { int ret = hdev_get_max_transfer_length(bs, s->fd); if (ret > 0 && ret <= BDR...
1threat
how to print incorrect questions? : <p>I am making a quiz in python and i want to know how i can display the incorrect questions at the end of the quiz. For example i have a 10 question quiz and i get 3 wrong, so i want to those questions to be displayed in the program and give me the option to re take them.</p> <p>He...
0debug
R make new columns from uniqe values in column dynamically : <p>I want to create new columns based on unique values in one column dynamically. Original:</p> <pre><code>id, category 1, a 2, b 3, c 4, b </code></pre> <p>New:</p> <pre><code>id, category, a, b, c 1, a, 1, 0, 0 2, b, 0, 1, 0 3, c, 0, 0, 1 4, b, 0, 1, 0 <...
0debug
How to check if used paginate in laravel : <p>I have a custom view and in some functions, I used <code>paginate</code> and other functions I don't use <code>paginate</code>. now how can I check if I used <code>paginate</code> or not ?</p> <pre><code>@if($products-&gt;links()) {{$products-&gt;links()}} @endif // n...
0debug
static int vhdx_create_bat(BlockDriverState *bs, BDRVVHDXState *s, uint64_t image_size, VHDXImageType type, bool use_zero_blocks, uint64_t file_offset, uint32_t length) { int ret = 0; uint64_t data_file_offset; uint64_t ...
1threat
iOS ytplayer API not working properly : I have embedded youtube in my application using ytplayer helper library for iOS the main issue I am facing right now is that I have embedded the multiple instances of ytplayer within scrollview and its loosing its not calling the changestate playback properly. the problem occurs ...
0debug
void vmstate_unregister(DeviceState *dev, const VMStateDescription *vmsd, void *opaque) { SaveStateEntry *se, *new_se; QTAILQ_FOREACH_SAFE(se, &savevm_handlers, entry, new_se) { if (se->vmsd == vmsd && se->opaque == opaque) { QTAILQ_REMOVE(&savevm_handlers, se...
1threat
int mips_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n) { MIPSCPU *cpu = MIPS_CPU(cs); CPUMIPSState *env = &cpu->env; target_ulong tmp; tmp = ldtul_p(mem_buf); if (n < 32) { env->active_tc.gpr[n] = tmp; return sizeof(target_ulong); } if (env->CP0_...
1threat
static void bdrv_qed_invalidate_cache(BlockDriverState *bs) { BDRVQEDState *s = bs->opaque; bdrv_qed_close(bs); memset(s, 0, sizeof(BDRVQEDState)); bdrv_qed_open(bs, NULL, bs->open_flags, NULL); }
1threat
postgres: how to create a table by loading a .sql file : In SQLite you can do sqlite3 i.db < x.sql where `x.sql` is a `create table` statement and `i.db` is the database What is the equivalent in PostgresSQL ?
0debug
How to update XML file in java : <p>I am new to java and I would like to update the dates to existing xml file but not sure ho to do it lets say the file is File.xml and I need to change the date in: So I need to update the start and end date. Thanks</p>
0debug
Passing data without ending a function C# (Creating a facebook's wall) : <p>Hey i am supposed to do a user activity log for a forum on each user profile (something similar to facebook's wall), i tried to make some huge database request but the efficiency is disappointing so i have to find another way to do this. So i'v...
0debug
Dispalying ads on browsers protected by Adblock : <p>I understand that people don't want to see ads but as a developer I would like to make money from ads on my site. How to add an ads to my site so Adblock will not block my content ?</p>
0debug
Bit hack: Expanding bits : <p>I am trying to convert a <code>uint16_t</code> input to a <code>uint32_t</code> bit mask. One bit in the input toggles two bits in the output bit mask. Here is an example converting a 4-bit input to an 8-bit bit mask:</p> <pre><code>Input Output ABCDb -&gt; AABB CCDDb A,B,C,D are indi...
0debug
static bool check_overwrapping_aiocb(BDRVSheepdogState *s, SheepdogAIOCB *aiocb) { SheepdogAIOCB *cb; QLIST_FOREACH(cb, &s->inflight_aiocb_head, aiocb_siblings) { if (AIOCBOverwrapping(aiocb, cb)) { return true; } } QLIST_INSERT_HEAD(&s->inflight_aiocb_head, aiocb...
1threat
New Line in Gmail App for iOS using URL Scheme : <p>We are working on an iOS app and we happen to be using the Gmail app's URL Scheme to compose a new email for the user. We figured out most of it, however we are having some trouble adding new lines in the body of the email. So far our URL looks like this: </p> <p><co...
0debug
static void xics_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = xics_realize; dc->props = xics_properties; dc->reset = xics_reset; }
1threat
static uint64_t memory_region_dispatch_read1(MemoryRegion *mr, hwaddr addr, unsigned size) { uint64_t data = 0; if (!memory_region_access_valid(mr, addr, size, false)) { return -1U; } if (!mr->...
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
How to login with AWS CLI using credentials profiles : <p>I want to setup multiple AWS profiles so that I can easily change settings and credentials when jumping between projects.</p> <p>I've read the AWS documentation but it's quite vague about how to select what profile you want to use when logging in.</p> <p>When ...
0debug
How to convert numbers like 902.1 or 902 to 900 in php : <p>Anyone knows how i can convert How to convert numbers like 902.1 or 902 to 900 in php..i have tried both ceil and floor like below but still same issue</p> <pre><code>$amount = 902.1 $amount2 = floor($amount); return $amount2; returns 902 </code></pre...
0debug
How to configure Google Java Code Formatter in Intellij IDEA 17? : <p>In the latest versions of IntelliJ IDEA it seems that it isn't possible to import code style files like <a href="https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml" rel="noreferrer">intellij-java-google-style.xml</a>.</...
0debug
static void scsi_read_complete(void * opaque, int ret) { SCSIGenericReq *r = (SCSIGenericReq *)opaque; int len; if (ret) { DPRINTF("IO error ret %d\n", ret); scsi_command_complete(r, ret); return; } len = r->io_header.dxfer_len - r->io_header.resid; DPRINTF("D...
1threat
What is the git clone --filter option's syntax? : <p>The Git 2.17 <a href="https://github.com/git/git/blob/master/Documentation/RelNotes/2.17.0.txt" rel="noreferrer">changelog</a> describes this option:</p> <blockquote> <ul> <li>The machinery to clone &amp; fetch, which in turn involves packing and unpacking ob...
0debug
static int coroutine_fn bdrv_co_do_copy_on_readv(BdrvChild *child, int64_t offset, unsigned int bytes, QEMUIOVector *qiov) { BlockDriverState *bs = child->bs; void *bounce_buffer; BlockDriver *drv = bs->drv; struct iovec iov; QEMUIOVector bounce_qiov; int64_t cl...
1threat
How to remove # from URL in Aurelia : <p>Can anybody please explain in step by step manner, how can we remove # from URL in Aurelia</p>
0debug
PyODBC : can't open the driver even if it exists : <p>I'm new to the linux world and I want to query a Microsoft SQL Server from Python. I used it on Windows and it was perfectly fine but in Linux it's quite painful.</p> <p>After some hours, I finally succeed to install the Microsoft ODBC driver on Linux Mint with uni...
0debug
I want to write a macro to copy the full row from sheet1 to sheet 2 only if the column C is marked as Y? : I am new to macros and wanted to learn the same. I want to write a macro to copy the full row from sheet1 to sheet 2 only if the column C is marked as Y. I have three sheets in a workbook and I want to copy al...
0debug
can someone explain me why we use parentheses around conditions in javaScript : **can someone explain me why we use parentheses around conditions in javaScript** for an example if we take the below code Ex: **if(5 > 4) {}** ---------------- in the above code i need to know why we use parentheses around the **...
0debug
Widget rebuild after TextField selection Flutter : <p>I'm developping a Flutter App that needed to have a form. So when the user open the app, a Splash Screen appear before the form that have the following code : </p> <pre><code>import 'package:flutter/material.dart'; import '../model/User.dart'; import './FileManager...
0debug
ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *ast, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; assert (rm->audio_pkt_cnt > 0); if (st->codec->codec_id == CODEC_ID_AAC) av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub...
1threat
React-native JS Debugger issues with CORS — iOS : <p>I am having an issue with the react-native JS debugger on the iOS. The error occurs when I try to debug my app using the JS Debugger tool. I tried different solutions around the web with no success. Has anyone come across this error and managed to fix it?</p> <p>Rep...
0debug
static uint32_t nvdimm_get_max_xfer_label_size(void) { uint32_t max_get_size, max_set_size, dsm_memory_size = 4096; max_get_size = dsm_memory_size - sizeof(NvdimmFuncGetLabelDataOut); max_set_size = dsm_memory_size - offsetof(NvdimmDsmIn, arg3) - sizeof(Nv...
1threat
databricks scala: how to substring a variable string : suppose I have a variable var variable="[123]" how to substring only get 123 without the [] Thanks, in scala language
0debug
Anyone know why this href isn't firing the javascript in Internet Explorer? : Can anyone tell me why this href wouldn't be firing the javascript in IE11? Works in all other browsers. <a href="<%# "javascript:checkSelection('UserSImageSelectionByCategory.aspx?PartialPath=" + base64Encode((string)...
0debug
static int mov_open_dref(AVIOContext **pb, const char *src, MOVDref *ref, AVIOInterruptCB *int_cb, int use_absolute_path, AVFormatContext *fc) { if (ref->nlvl_to > 0 && ref->nlvl_from > 0) { char filename[1024]; const char *src_path; int i, l; ...
1threat
Seaborn boxplot + stripplot: duplicate legend : <p>One of the coolest things you can easily make in <code>seaborn</code> is <code>boxplot</code> + <code>stripplot</code> combination:</p> <pre><code>import matplotlib.pyplot as plt import seaborn as sns import pandas as pd tips = sns.load_dataset("tips") sns.stripplot...
0debug
static int usb_xhci_initfn(struct PCIDevice *dev) { int i, ret; XHCIState *xhci = DO_UPCAST(XHCIState, pci_dev, dev); xhci->pci_dev.config[PCI_CLASS_PROG] = 0x30; xhci->pci_dev.config[PCI_INTERRUPT_PIN] = 0x01; xhci->pci_dev.config[PCI_CACHE_LINE_SIZE] = 0x10; xhci->pci_dev.confi...
1threat
static void win_chr_readfile(CharDriverState *chr) { WinCharState *s = chr->opaque; int ret, err; uint8_t buf[1024]; DWORD size; ZeroMemory(&s->orecv, sizeof(s->orecv)); s->orecv.hEvent = s->hrecv; ret = ReadFile(s->hcom, buf, s->len, &size, &s->orecv); if (!ret) { er...
1threat
static void do_video_out(AVFormatContext *s, OutputStream *ost, AVFrame *in_picture, float quality) { int ret, format_video_sync; AVPacket pkt; AVCodecContext *enc = ost->st->codec; int nb_frames; double sync_ipts, d...
1threat
Which of the following is not equivalent to others? : <p>Which of the following is not equivalent to the other two? Please tell me when it isn't output different from the other two.</p> <pre><code> while (i&lt;10) {...} for (;i&lt;10:) {...} do {...} while (i&lt;10); </code></pre> <p>I'll appreciate it for your a...
0debug
ports for openvpn and websockets : <p>this will sound a silly question.... but id like to know the following. i was going to install a freeswitch voip server on small intel nuc and on another intel nuc (nucs are small low powered desktop like units ) i planned to install openvpn to be used as a very useful vpn for when...
0debug
Convert the data frame having month, year and count columns to time series [r] : I have a data frame with columns `month, year, count`.[dataset][1] Now how can I convert this data frame to time series(from `data frame` class to `ts` class). So that final output should be like this [enter image description here][2]. ...
0debug
void qemu_anon_ram_free(void *ptr, size_t size) { trace_qemu_anon_ram_free(ptr, size); if (ptr) { munmap(ptr, size); } }
1threat
How to do a tekken/street fighter like slider/bar Unity3D : Hi I am trying to create a health bar which transition from healthValueX to healthValueY over time. Curently I am decreasing the value like this: void Update () { myVar-= 100 * Time.deltaTime; slider.value = myVar; } and the...
0debug
Can't always set React Native breakpoints in Chrome : <p>While debugging my React Native app in Chrome, I'm often unable to set breakpoints in the Sources tab. When I click on a line of code to add the breakpoint, a breakpoint is added instead to the next function declaration line in my module.</p> <p>This doesn't ha...
0debug
when I write findAll it says: findAll is not defined : <p>I am trying to write my first data scraping code. However, this happens whenever I try and find all the tr tags in the html:</p> <p>I wrote: match = findAll("tr",{"class":"match"}) This comes up: NameError: name "findAll" is not defined.</p>
0debug
av_cold int ff_huffyuv_alloc_temp(HYuvContext *s) { int i; if (s->bitstream_bpp<24 || s->version > 2) { for (i=0; i<3; i++) { s->temp[i]= av_malloc(2*s->width + 16); if (!s->temp[i]) return AVERROR(ENOMEM); s->temp16[i] = (uint16_t*)s->temp[i...
1threat
def remove_odd(str1): str2 = '' for i in range(1, len(str1) + 1): if(i % 2 == 0): str2 = str2 + str1[i - 1] return str2
0debug
void cpu_loop(CPUS390XState *env) { CPUState *cs = CPU(s390_env_get_cpu(env)); int trapnr, n, sig; target_siginfo_t info; target_ulong addr; while (1) { cpu_exec_start(cs); trapnr = cpu_s390x_exec(cs); cpu_exec_end(cs); switch (trapnr) { case EXCP...
1threat
Java : If inside method is throwing error, shouldn't the outside method also throw error? : <p>Say,</p> <pre><code>public String testing() { caller.call(); } Class Caller { public void call() throws Exception1 { } } </code></pre> <p>that is, is say, call() can throw Exception1, do I have to add same thr...
0debug
C# how to catch Exeption : I am new in `C#` programming and I don't understand this problem. using (WebClient wc = new WebClient()) { try{ wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-fo...
0debug
How is Anaconda related to Python? : <p>I am a beginner and I want to learn computer programming. So, for now, I have started learning Python by myself with some knowledge about programming in C and Fortran.</p> <p>Now, I have installed Python version 3.6.0 and I have struggled finding a suitable text for learning Pyt...
0debug
Custom Package in main golang : <p>Package main no look my package.</p> <p>Struct project: </p> <p><img src="https://sun9-23.userapi.com/c853528/v853528063/d2aa5/OnQlmJvxd4s.jpg" alt="struct"></p> <p>Sunrise.go have name package <code>sunrise</code></p> <p>Sunrise.go have function;</p> <pre><code>func getSunriseCo...
0debug
PHP error " Undefined variable: mysql_fetch_assoc" : <p>I'm recieving the above error when I try to run this code, I have tried multiple solutions, using fetch_array too: <pre><code>$conn = mysql_connect('localhost', '-----', '-----','-----') or die('Error connecting to mysql'); $sql = "SELECT * FROM Subject"; $...
0debug
Sort array of string values without converting it into integer in ruby : I have an array of string having integer values and I want to sort it but without converting it into integer, I want to do it in Ruby, Please suggest how can I do that? Ex- array = ["0934", "123", "934", "0123"] and expected output is ...
0debug
VBScript RegEx - Non capturing group getting captured in full match : **Sample string =** dadasd_37=12abc_dadasd_asdasdasd_asdas_asd **My regex =** `(?:_37=)([^_]+)` **What i am trying to get=** 12abc (anything that starts with 37= and the word ends with _). However, the full match is still coming as _37=12abc
0debug
static void superh_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); SuperHCPU *cpu = SUPERH_CPU(obj); CPUSH4State *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); env->movcal_backup_tail = &(env->movcal_backup); if (tcg_enabled()) { sh4_translate...
1threat
VBA excel programming : [![output sheet][1]][1] [![The sheet from which data has to be dumped.][2]][2] There is an excel sheet with ItemId and ItemName.For a single ItemID there are 4-5 ItemName.The data from this sheet needs to be dumped into another sheet using VBA Excel Programming. The sheet in which the d...
0debug
Docker-compose hangs on Attaching to : <p>I have an issue when running docker-compose up. It hangs on attaching to and I cannot access my web app on <code>localhost:4200</code>.</p> <p><strong>docker-compose.yml:</strong></p> <pre><code>version: '2' # specify docker-compose version # Define the services/containers t...
0debug
static int qcow2_update_options(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; QemuOpts *opts = NULL; const char *opt_overlap_check, *opt_overlap_check_template; int overlap_check_template = 0; uint64_t l2_cache...
1threat
static void usb_mtp_handle_reset(USBDevice *dev) { MTPState *s = USB_MTP(dev); trace_usb_mtp_reset(s->dev.addr); #ifdef __linux__ usb_mtp_inotify_cleanup(s); #endif usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects)); s->session = 0; usb_mtp_data_free(s->data_in); s->data_in = NU...
1threat
static void quorum_aio_finalize(QuorumAIOCB *acb) { BDRVQuorumState *s = acb->common.bs->opaque; int i, ret = 0; if (acb->vote_ret) { ret = acb->vote_ret; } acb->common.cb(acb->common.opaque, ret); if (acb->is_read) { for (i = 0; i < s->num_children; i++) { ...
1threat
Modify second column of ls -l in a directory : I am trying to modify the number following the permissions, which appears in the second column of ls -l: drwxrwxrwx 1 ddel-rio ddel-rio 512 nov 15 20:27 test0 I want the 1 to be a 2, I've researched the hard links but I still can't solve it.
0debug
window.location.href = 'http://attack.com?user=' + user_input;
1threat
Hangman Assignment: Need help revealing the secret word : <p>I have a school assignment and in hangman you reveal the word slowly as the user guesses and I am having trouble with that.</p> <p><strong>For example, this is what I want (ex. applesauce):</strong></p> <p>guess: 'a'</p> <p>display: 'a*****a***'</p> <p>gu...
0debug
Int32.Parse vs Int32.TryParse : <p>People have been suggesting to use Int32.TryParse but I found out that in case of any string such as "4e",it would give me output 0(i would directly print my input),whereas Int32.Parse would give an Exception. Is there a side to using TryParse which I am not able to see? Any help wo...
0debug
Cant export service from module 'it was neither declared nor imported' : <p><br/> I am trying to export an Service from one of my modules but i only get the following error:</p> <pre><code>ERROR Error: Uncaught (in promise): Error: Can't export value ConfirmDialogService from SharedModule as it was neither declared n...
0debug
static void string_cleanup(void *datap) { StringSerializeData *d = datap; visit_free(string_output_get_visitor(d->sov)); visit_free(d->siv); g_free(d->string); g_free(d); }
1threat
static void coroutine_fn bdrv_discard_co_entry(void *opaque) { DiscardCo *rwco = opaque; rwco->ret = bdrv_co_discard(rwco->bs, rwco->sector_num, rwco->nb_sectors); }
1threat
print variable after closing the file in perl : Below code works fine but I want $ip to be printed after closing the file. use strict; use warnings; use POSIX; my $file = "/tmp/example"; open(FILE, "<$file") or die $!; while (<FILE>) { my $lines = $_; if ($lines =~ m/address/...
0debug
enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags) { if (bps > 64U) return AV_CODEC_ID_NONE; if (flt) { switch (bps) { case 32: return be ? AV_CODEC_ID_PCM_F32BE : AV_CODEC_ID_PCM_F32LE; case 64: return be ? AV_CODEC_ID_PCM...
1threat
int ff_eac3_parse_header(AC3DecodeContext *s) { int i, blk, ch; int ac3_exponent_strategy, parse_aht_info, parse_spx_atten_data; int parse_transient_proc_info; int num_cpl_blocks; GetBitContext *gbc = &s->gbc; if (s->frame_type == EAC3_FRAME_TYPE_DEPENDENT) { avpriv_r...
1threat
Coping a row from sheet to another based on whether the candidate is accepted or rejected : <p>Now, I'm trying to create a semi automated tool in google sheets for hiring (self-use). I need a code to copy the whole row based on whether the candidate is (Accepted or Rejected) if the candidate is accepted I want to copy ...
0debug
Can i store a Map<String, Object> inside a Shared Preferences in dart? : <p>Is there a way that we could save a map object into shared preferences so that we can fetch the data from shared preferences rather than listening to the database all the time. actually i want to reduce the amount of data downloaded from fireba...
0debug