problem
stringlengths
26
131k
labels
class label
2 classes
After ruby update to 2.5.0, require 'bundler/setup' raise exception : <p>Call <code>rake</code> from rails app after ruby 2.5.0 update, does not work.</p> <pre><code>$ rake Traceback (most recent call last): 22: from ./bin/rake:4:in `&lt;main&gt;' 21: from ./bin/rake:4:in `require_relative' 20: from /Users...
0debug
static bool invalid_qmp_mode(const Monitor *mon, const mon_cmd_t *cmd) { bool is_cap = cmd->mhandler.cmd_new == do_qmp_capabilities; if (is_cap && qmp_cmd_mode(mon)) { qerror_report(ERROR_CLASS_COMMAND_NOT_FOUND, "Capabilities negotiation is already complete, command " ...
1threat
static av_always_inline void mc_luma_scaled(VP9Context *s, vp9_scaled_mc_func smc, vp9_mc_func (*mc)[2], uint8_t *dst, ptrdiff_t dst_stride, const uint8_t *ref, ptrdiff_t ref_stride, ...
1threat
pic_read(void *opaque, target_phys_addr_t addr, unsigned int size) { struct etrax_pic *fs = opaque; uint32_t rval; rval = fs->regs[addr >> 2]; D(printf("%s %x=%x\n", __func__, addr, rval)); return rval; }
1threat
No network interfaces on Debian 8 Lenovo install : <p>So I recently got the Lenovo x270, and installed Debian on it instead of the default Windows OS. I've come to find out WiFi, as well as ethernet are both shipped not working. I've tried to fix it, but nothing has worked so far. I switched from straight Debian 8 to K...
0debug
int64_t av_get_channel_layout(const char *name) { int i = 0; do { if (!strcmp(channel_layout_map[i].name, name)) return channel_layout_map[i].layout; i++; } while (channel_layout_map[i].name); return 0; }
1threat
static int qemu_chr_open_stdio(QemuOpts *opts, CharDriverState **_chr) { CharDriverState *chr; if (stdio_nb_clients >= STDIO_MAX_CLIENTS) { return -EBUSY; } if (stdio_nb_clients == 0) { old_fd0_flags = fcntl(0, F_GETFL); tcgetattr (0, &oldtty); fcntl(0, F_SET...
1threat
uint64_t helper_fre (uint64_t arg) { CPU_DoubleU fone, farg; fone.ll = 0x3FF0000000000000ULL; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); } else if (unlikely(float64_is_zero(farg.d))) { ...
1threat
Unable to login with email or mobile.Any help please? : I am trying to login with email or mobile(in php and mysql).But I am unable to login.Could anyone help me?Here is my code $sql = "SELECT * FROM tb_users WHERE (email='$loginEmailOrMobile' AND password='$loginPassword') OR (mobile_number='$loginEmailOrMobile...
0debug
int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVDictionary **options) { int ret = 0; AVDictionary *tmp = NULL; if (avcodec_is_open(avctx)) return 0; if ((!codec && !avctx->codec)) { av_log(avctx, AV_LOG_ERROR, "No codec provided to avcodec_open2(...
1threat
Node.js - What does “socket hang up” mean in simple words? : <p>I would like to know what socket hang up means in very simple words. </p>
0debug
Difference between vert.x and RxJava : <p>We are evaluating reactive programming frameworks for one of our projects. I just went through vert.x tutorials. I checked RxJava presentation a bit. RxJava seemed more close to CompletableFuture. But despite the underlying patterns, both RxJava and Vert.x give access to non bl...
0debug
each letter is node in linked-list, unknown size of word retrieved from user : program is supposed to take word from user (of unknown lenght) then create linked-list, each node should contain one character. It works with pre-declarated word but i am having a problem with "Stack around the variable 'str' was corrupted...
0debug
Prevent decimal and numbers after from being removed when using (int)$var : I have a JSON object with order information in. Within this object is an amount for example `"amount" : "82.95"` I have this within a variable called `$amount` and I am using it within an array by doing `(int)$amoun`t. The problem with this is ...
0debug
Where is redux store saved? : <p>I was looking into how secure a redux application can be, I am storing certain values in redux store i.e. user token etc.. and tried to see if someone else could gain access to them via an xss attack for example, I checked sessionStorage, localStorage, cookies and it is not there, as we...
0debug
static int virtio_blk_load_device(VirtIODevice *vdev, QEMUFile *f, int version_id) { VirtIOBlock *s = VIRTIO_BLK(vdev); while (qemu_get_sbyte(f)) { unsigned nvqs = s->conf.num_queues; unsigned vq_idx = 0; VirtIOBlockReq *req; if (nvqs...
1threat
In unity, how do I make it so that when all of my capsules (collectables) have been collected, my UI button appears? : I really need to do this this evening or a failing grade awaits. but part of the exercise im doing requires it I have these objects that the should be able to walk into, and once they've collected a...
0debug
static int audio_validate_settings (audsettings_t *as) { int invalid; invalid = as->nchannels != 1 && as->nchannels != 2; invalid |= as->endianness != 0 && as->endianness != 1; switch (as->fmt) { case AUD_FMT_S8: case AUD_FMT_U8: case AUD_FMT_S16: case AUD_FMT_U16: case...
1threat
DriveInfo *add_init_drive(const char *optstr) { DriveInfo *dinfo; QemuOpts *opts; MachineClass *mc; opts = drive_def(optstr); if (!opts) return NULL; mc = MACHINE_GET_CLASS(current_machine); dinfo = drive_new(opts, mc->block_default_type); if (!dinfo) { qem...
1threat
static int coroutine_fn bdrv_co_do_readv(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, BdrvRequestFlags flags) { if (nb_sectors < 0 || nb_sectors > (UINT_MAX >> BDRV_SECTOR_BITS)) { return -EINVAL; } return bdrv_co_do_preadv(bs, sector_num << BDRV_SEC...
1threat
How to show html string in text widget flutter : <p>How to show html tag string in flutter, i have tried a plugin and its not working. </p> <pre><code>new HtmlView( data: html, baseURL: "", // optional, type String onLaunchFail: (url) { // optional, type Function print("launch $url failed"); } <...
0debug
What does .equals() not work : I printed the 2 strings and they are literally identical, no whitespaces cause i replaced it. https://ideone.com/cw07LG Here it is compiled public class Palindrome{ public static boolean isPalindrome(String word){ int length; String opp...
0debug
int fw_cfg_add_file(FWCfgState *s, const char *filename, uint8_t *data, uint32_t len) { int i, index; if (!s->files) { int dsize = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS; s->files = g_malloc0(dsize); fw_cfg_add_bytes(s, FW_CFG_FILE_DIR, (ui...
1threat
what will be the logic in shell scripting : i have a test file. and suppose content is like this. i want to put this into an array separated by "semicolon" in shell script History is the discovery, collection, organization, analysis, and presentation of information about past events. History can also mean a continuo...
0debug
How to change docker installation directory in centos 7 with docker 1.13 version : <p>I have enclosed the docker details below,</p> <p>$ docker info</p> <pre><code>Containers: 3 Running: 3 Paused: 0 Stopped: 0 Images: 26 Server Version: 1.13.0 Storage Driver: overlay Backing Filesystem: xfs Supports d_type: fals...
0debug
c# open another form from current form button click : <p>I want to open another form on button click and it is image viewer form and i want to enter data on first form with reference as second form but not working, all controls are there on second form itself even in minimization , after closing that form only allowin...
0debug
Find regions of similar color in image : <p>I've been working on this problem for some time now with little promising results. I am trying to split up an image into connected regions of similar color. (basically split a list of all the pixels into multiple groups (each group containing the coordinates of the pixels tha...
0debug
Spark executors crash due to netty memory leak : <p>when running spark streaming app that consumes data from kafka topic with 100 partitions, and the streaming runs with 10 executors, 5 cores and 20GB RAM per executor, the executors crash with the following log:</p> <blockquote> <p>ERROR ResourceLeakDetector: LEAK: ...
0debug
font size depending on number of words : <p>I have vertically aligned <em>div</em> with <em>fixed height</em> (800px). The problem is that my div is dynamic and <em>font size</em> depends on number of words, for example <a href="https://i.stack.imgur.com/RpgbT.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
0debug
static int qcow_read_extensions(BlockDriverState *bs, uint64_t start_offset, uint64_t end_offset) { BDRVQcowState *s = bs->opaque; QCowExtension ext; uint64_t offset; #ifdef DEBUG_EXT printf("qcow_read_extensions: start=%ld end=%ld\n", start_offset, end_offset); ...
1threat
static void rocker_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = pci_rocker_init; k->exit = pci_rocker_uninit; k->vendor_id = PCI_VENDOR_ID_REDHAT; k->device_id = PCI_DEVICE_ID_REDHAT_ROCKER; ...
1threat
void qemu_thread_create(QemuThread *thread, void *(*start_routine)(void *), void *arg, int mode) { HANDLE hThread; assert(mode == QEMU_THREAD_DETACHED); struct QemuThreadData *data; qemu_thread_init(); data = g_malloc(sizeof *data); data...
1threat
static void gen_wait(DisasContext *ctx) { TCGv_i32 t0 = tcg_temp_new_i32(); tcg_gen_st_i32(t0, cpu_env, -offsetof(PowerPCCPU, env) + offsetof(CPUState, halted)); tcg_temp_free_i32(t0); gen_exception_err(ctx, EXCP_HLT, 1); }
1threat
static void gen_advance_ccount(DisasContext *dc) { gen_advance_ccount_cond(dc); dc->ccount_delta = 0; }
1threat
Git rebase, fix conflicts, then push is rejected : <p>When I <strong>rebase</strong>, and there are <strong>conflicts which I then resolve</strong>, I get the following message:</p> <blockquote> <p>hint: Updates were rejected because the tip of your current branch is behind</p> </blockquote> <hr> <p>We have 2 bran...
0debug
FirebaseFirestoreException: FAILED_PRECONDITION : <p>To get the data from the firestore collection for instance update I tried the below query.</p> <p>docRef.whereArrayContains().orderBy().limit()</p> <p>com.google.firebase.firestore.FirebaseFirestoreException: FAILED_PRECONDITION: The query requires an index. You ca...
0debug
av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) { MpegEncContext *s = &v->s; int i; int mb_height = FFALIGN(s->mb_height, 2); v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); v->forward_mb_plane = av...
1threat
Wrap long template literal line to multiline without creating a new line in the string : <p>In es6 template literals, how can one wrap a long template literal to multiline without creating a new line in the string?</p> <p>For example, if you do this:</p> <pre><code>const text = `a very long string that just continues...
0debug
Convert XML to JSON with NodeJS : <p>I'm trying to convert the following xml to json, thereby I need to get a mapping to the TS-tc-dt</p> <p>Here is the xml </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;TestScenario&gt; &lt;TestSuite name="TS_EdgeHome"&gt; &lt;TestCaseName name="tc_Login"...
0debug
i live my magento website but its show error : headers; headers already sent in /home/tantransh/public_html/test/app/Mage.php, line 766 Trace: #0 /home/tantransh/public_html/test/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 /home/tantransh/public_html/...
0debug
Your requirements could not be resolved to an installable set of packages in laravel 5.2 quickadmin : [enter image description here][1] [1]: http://i.stack.imgur.com/JEj9f.jpg please solve my problem.,., asup
0debug
What is 'nul' in batch file? : I was curious to learn what is `nul`. It is usually used: - When we want to hide output of a command. In this case, we say that "we redirected `STDOUT` and `STDERR` outout to nul (if we cpecify `2>&1`)". - When we want to create a new file. Then we usually use `type nul > newfile.txt`...
0debug
many global fct in cuda : can I write for example 2 global functions whose treat different operations, in the same source code !!! .... __global__ void Ker1(mpz_t *d,mpz_t *c,mpz_t e,mpz_t n ) { int i=blockIdx.x*blockDim.x + threadIdx.x; mpz_powm (gmp_cipher, gmp_actuel, e, n); ...
0debug
How can i visit my nodejs website without typing :8080 or :8000? : I have an ubuntu 16.04 server with plesk installed with nodejs because it is written in angular2. At the moment I'm runing the page with `http-server .` on my ubuntu server. When i'm typing the ip address with ip:8000 or www.page.de:8080 I can visit m...
0debug
Convert an upper to lower triangle matrix in r : <p>I looked inot several posts, but I still couldn't find a way to just transform an upper triangle matrix into a lower triangle matrix.</p> <p>I just want this: </p> <pre><code> 1 2 3 a 10 11 12 b 13 14 c 15 </code></pre> <p>To become this...
0debug
Rotate switched facet labels in ggplot2 facet_grid : <p>I would like to plot some barplots on top of each other using facet_grid:</p> <pre><code>library(ggplot2) df &lt;- group_by(mpg, manufacturer) %&gt;% summarise(cty = mean(cty), hwy = mean(hwy)) %&gt;% ungroup() df &lt;- melt(df, id.vars = "manufacturer") g...
0debug
Limitting session time : I need your help here. I have a Windows Server 2012 R2 on which a policy needs to be set. This policy should logoff a user if it is disconnected or idle for more than 2 hrs. One twist is, I have a user with name 'Invo' which should not get kicked out due to this policy. Any help is appre...
0debug
What is logic to construct a binay Tree? : I have a while which continuously takes integers until -1 entered. And those elements must be inserted into binary tree (Not BST). If BST we have a conditon to where to insert node. But how can I construct binay tree? I mean if nodes are 1,2,3,4,5,6...... 1 is root, 2,3 are...
0debug
static int commit_direntries(BDRVVVFATState* s, int dir_index, int parent_mapping_index) { direntry_t* direntry = array_get(&(s->directory), dir_index); uint32_t first_cluster = dir_index == 0 ? 0 : begin_of_direntry(direntry); mapping_t* mapping = find_mapping_for_cluster(s, first_cluster); in...
1threat
static int local_open(FsContext *ctx, V9fsPath *fs_path, int flags, V9fsFidOpenState *fs) { char buffer[PATH_MAX]; char *path = fs_path->data; fs->fd = open(rpath(ctx, path, buffer), flags | O_NOFOLLOW); return fs->fd; }
1threat
static int parse_numa(void *opaque, QemuOpts *opts, Error **errp) { NumaOptions *object = NULL; Error *err = NULL; { Visitor *v = opts_visitor_new(opts); visit_type_NumaOptions(v, NULL, &object, &err); visit_free(v); } if (err) { goto error; } ...
1threat
How to group by unique user ID and sort by latest messages ID? : <p>my message table</p> <pre><code>message_id | message_body_content | sender_user_id | receiver_user_id 1 | hello world | 1000 | 1200 2 | hello world 2 | 1001 | 1200 3 | hello world again ...
0debug
How does setTimeout work? : <p>-so i am obviously trying to get two functions to run automatically whilst on a timer using setTimeout. However i am not to sure how it works. All i can see when i search it up is it in a function. so how do i have it outside a function?</p> <pre><code>function ChangeImage() { if(pos...
0debug
How to tail a docker log from the current position in the log without seeing the whole file or waiting for it to traverse the whole file : <p>If you use the coreutils tail command in Linux you have a -f option that lets you follow a log file from the logs current position (it does not go to the very beginning of the fi...
0debug
C Delete Linked List By Reference? : <p>Brand new to C, tried other SO Answers that I found about this before posting, and saw that none of them were using a function and passing their list in by reference for deleting all item, but that is the way I want to implement it. Console is outputting </p> <blockquote> <p>...
0debug
int ff_h264_decode_ref_pic_list_reordering(H264Context *h) { int list, index, pic_structure, i; print_short_term(h); print_long_term(h); for (list = 0; list < h->list_count; list++) { for (i = 0; i < h->ref_count[list]; i++) COPY_PICTURE(&h->ref_list[list][i], &h->default_...
1threat
static void x86_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); X86CPU *cpu = X86_CPU(obj); X86CPUClass *xcc = X86_CPU_GET_CLASS(obj); CPUX86State *env = &cpu->env; FeatureWord w; cs->env_ptr = env; object_property_add(obj, "family", "int", x86_cpuid_version_get_fa...
1threat
static int wsvqa_read_header(AVFormatContext *s) { WsVqaDemuxContext *wsvqa = s->priv_data; AVIOContext *pb = s->pb; AVStream *st; unsigned char *header; unsigned char scratch[VQA_PREAMBLE_SIZE]; unsigned int chunk_tag; unsigned int chunk_size; int fps; st = avforma...
1threat
static int write_elf_loads(DumpState *s) { hwaddr offset; MemoryMapping *memory_mapping; uint32_t phdr_index = 1; int ret; uint32_t max_index; if (s->have_section) { max_index = s->sh_info; } else { max_index = s->phdr_num; } QTAILQ_FOREACH(memory_mapp...
1threat
Get input of switch control via headphone jack on iOS : <p>As a little holiday project I want to control an app via an accessibility switch which is connected via 3,5mm headphone jack to the iOS device.</p> <p>This is the switch and the plug:<a href="https://i.stack.imgur.com/63hTl.png" rel="noreferrer"><img src="http...
0debug
RECORD / NUMBER A FORMULA IN A CELL, NOT TO BE DELETED GOOGLE SPREADSHEET - APPSCRIPT : I'm new to this apps script and I'm trying to create a function that leaves a formula nested / recorded inside a cell since the database is used by people who are not experts in the formulation and this would prevent them from delet...
0debug
SCSIRequest *scsi_req_find(SCSIDevice *d, uint32_t tag) { SCSIRequest *req; QTAILQ_FOREACH(req, &d->requests, next) { if (req->tag == tag) { return req; } } return NULL; }
1threat
Creating a Behavior for a continuously measurable phenomenon : <p>I would like to create a <code>Behavior t a</code> from an <code>IO a</code>, with the intended semantics that the IO action would be run every time the behavior is <code>sample</code>d:</p> <pre><code>{- language FlexibleContexts #-} import Reflex.Dom ...
0debug
static void video_decode_example(const char *outfilename, const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int frame, got_picture, len; FILE *f; AVFrame *picture; uint8_t inbuf[INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; char buf[1024]; AVPacket avpkt; av_...
1threat
uri_resolve_relative (const char *uri, const char * base) { char *val = NULL; int ret; int ix; int pos = 0; int nbslash = 0; int len; URI *ref = NULL; URI *bas = NULL; char *bptr, *uptr, *vptr; int remove_path = 0; if ((uri == NULL) || (*uri == 0)) return NULL...
1threat
Changing a Spring Joint's resting length in Unity3d : <p>According to Spring Joint's documentation, a spring's resting length (the length at which the spring won't try to pull or push together the two bodies it connects) is the distance that was calculated between the two bodies as the joint was created.</p> <p>Howeve...
0debug
chrome not running an EventListener : I'm having an issue with chrome, I have tried to create a button that adds a new input tag when the button is pressed. Now the below code works totally fine on internet explorer however in chrome nothing happens at all. I also get no errors on the console the function just does...
0debug
static inline void RENAME(yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2, const uint8_t *src3, uint8_t *dst, long width, long height, long srcStride1, long srcStride2, long srcStride3, long dstStride) { long y,x,w,h; w=width/2; h=height; for(y=0;y<h;y++){ const uint8_t* yp=src1...
1threat
Pandas recalculate index after a concatenation : <p>I have a problem where I produce a pandas dataframe by concatenating along the row axis (stacking vertically). </p> <p>Each of the constituent dataframes has an autogenerated index (ascending numbers). </p> <p>After concatenation, my index is screwed up: it counts u...
0debug
how to select class name from button of span in below code as follows : how to select class name from button of span in below code as follows ``` <span class="input-group-btn-vertical"> <button class="btn btn-white bootstrap-touchspin-up " type="button">+</button> <button class="btn btn-white bootstrap...
0debug
c++ public vs private inheritancce : <p>I don't understand and i really don't get public vs private inheritance in classes. Suppose we have the following code:</p> <pre><code>class A { int A_a; protected: int A_b; public: int A_c; }; class B : public A { int B_a; protected: int B_b; public: int...
0debug
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { InputEvent *evt; evt = qemu_input_event_new_key(key, down); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(src, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else { ...
1threat
How to write Sqlite database in Fragment Android : while i am creating a database on android sqlite database with fragment if i i write inside the onViewCreated method couldn't write the database name and Listview findviewbyid get error i don't know.what i tried so i wrote below. cannot resolve the method openOr...
0debug
static void bench_undrained_flush_cb(void *opaque, int ret) { if (ret < 0) { error_report("Failed flush request: %s\n", strerror(-ret)); exit(EXIT_FAILURE); } }
1threat
Need resultset on following resulset in sql : I have result set as follows, **Employer_id Type Amount** 1 penalty 100 1 interest 120 2 penalty 50 2 interest 60 2 contribution 70 1 contribution 140 I need result as, **Employer_id penalty interest contribution** 1 100 120 140 2 50 60 70 Is it p...
0debug
Count words with the letter 'w' in them but only the(almost done) : <p>So the goal is to count the number of words in the sentence with the letter 'w', and I have written the code to count the number of w's but I can't get it to count the words in total. </p> <pre><code>items = ["whirring", "wow!", "calendar", "wry", ...
0debug
Java compare array to variable : Brand new to Java, I am in the process of writing a program that has an array initialized, as well as a variable that is holding a single integer. What I am trying to do is have my program check the array and then check the variable and if the variable integer is within my array sopln m...
0debug
2 declaration of $_POST not working : <p>I need to use 2 $_POST. Here's the code but it's not working.</p> <pre><code>if($_POST['grade'] == 'G1') &amp;&amp; ($_POST['district'] == 'D1') </code></pre> <p>Thanks in advance!</p>
0debug
Foreach as in array without looping php : i have code : <?php foreach($this->params as $key=>$val) { $this->rawRequest .= "&$key=$val"; } ?> how to $this->params as $key=>$val without looping?
0debug
static void sun4m_common_init(int ram_size, int boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, unsigned int machine, int max_ram) { ...
1threat
static void close_guest_eventfds(IVShmemState *s, int posn) { int i, guest_curr_max; if (!ivshmem_has_feature(s, IVSHMEM_IOEVENTFD)) { guest_curr_max = s->peers[posn].nb_eventfds; memory_region_transaction_begin(); for (i = 0; i < guest_curr_max; i++) { ivshmem_del_eventfd(...
1threat
int block_job_set_speed(BlockJob *job, int64_t value) { int rc; if (!job->job_type->set_speed) { return -ENOTSUP; } rc = job->job_type->set_speed(job, value); if (rc == 0) { job->speed = value; } return rc; }
1threat
which web services use develop the Real time application in Organization? : I know implements of web services into different ways but few are Open source & few are non-open source. Which side develop the web service Consumer side OR Provider side?
0debug
static void *rcu_read_perf_test(void *arg) { int i; long long n_reads_local = 0; rcu_register_thread(); *(struct rcu_reader_data **)arg = &rcu_reader; atomic_inc(&nthreadsrunning); while (goflag == GOFLAG_INIT) { g_usleep(1000); } while (goflag == GOFLAG_RUN) { ...
1threat
ssize_t migrate_fd_put_buffer(void *opaque, const void *data, size_t size) { FdMigrationState *s = opaque; ssize_t ret; do { ret = s->write(s, data, size); } while (ret == -1 && ((s->get_error(s)) == EINTR)); if (ret == -1) ret = -(s->get_error(s)); if (ret == -EAG...
1threat
static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id, qxl_async_io async) { if (async) { #if SPICE_INTERFACE_QXL_MINOR < 1 abort(); #else spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id, ...
1threat
ScrollView minHeight to take up all the space : <p>I have a <code>ScrollView</code> which content doesn't necessarily exceeds it's size. Let's say it's a form where, upon errors, it expands to add error messages and then it exceeds the <code>ScrollView</code> size and thus is why I'm using that scroll.</p> <p>The thin...
0debug
How to add "refs" dynamically with react hooks? : <p>So I have an array of data in and I am generating a list of components with that data. I'd like to have a ref on each generated element to calculate the height. I know how to do it with a Class component, but I would like to do it with React Hooks.</p> <p>Here is a...
0debug
Styling a php variable in css using the <p> tags : <p>I am having lots of trouble trying to style a php variable within a css file. I am coding a simple exercise type website, but am stumped on what to do. I have made a log in system and I want the user's username to appear in the corner every time they log in. Here is...
0debug
static int qcow2_create(const char *filename, QemuOpts *opts, Error **errp) { char *backing_file = NULL; char *backing_fmt = NULL; char *buf = NULL; uint64_t size = 0; int flags = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; PreallocMode prealloc; int version = 3; uint64_...
1threat
how to get specific string from multiple memo : i want to check specific string from multiple memo and if all of them check out then run a procedure but in my code sometimes the procedure runs and sometimes it doesn't and sometimes it runs only when a few have checked out here is my code `procedure TForm1.Timer14...
0debug
static void gen_jmp_tb(DisasContext *s, target_ulong eip, int tb_num) { gen_update_cc_op(s); set_cc_op(s, CC_OP_DYNAMIC); if (s->jmp_opt) { gen_goto_tb(s, tb_num, eip); s->is_jmp = DISAS_TB_JUMP; } else { gen_jmp_im(eip); gen_eob(s); } }
1threat
Laravel text going out of paragraph : <p>I wanna ask why my text goes out of paragraph? How can I fix it?</p> <p><a href="https://i.stack.imgur.com/r0pAm.png" rel="nofollow noreferrer">1 Photo</a></p> <p><a href="https://i.stack.imgur.com/PBaTV.png" rel="nofollow noreferrer">2 Photo</a></p> <p><a href="https://i.sta...
0debug
regex pattrn for date time validation : i m using this regex pattern for date time validation.. $regexp = "/^([0][1-9]|[12][0-9]|3[0-1])\/([0][1-9]|1[0-2])\/(\d{4}) ([0-9]|1[0-2])\:([0-5][0-9]) (am|pm)$/"; can anybody help where is the problem.
0debug
Visual Studio expected ';' after a function : <p>So, I'm trying to learn some basic C++, and I can't even get a function to work.</p> <pre><code>bool isInteger(std::string input) { try { std::stoi(input); return true } catch (...) { return false } } </code></pre> <p>Upo...
0debug
Link between specified EBS volume name and actual device name in Linux system : <p>I have EC2 instance with EBS volume attached, so that describe-instances command prints: </p> <pre><code> "DeviceName": "/dev/sdf", "Ebs": { "Status": "attached", "DeleteOnTermination": false, ...
0debug
Run Jest tests only for current folder : <p>I have Jest installed on my machine and typing <code>jest</code> from terminal results in tests from parent folers also getting executed. I want to run tests only from the current folder. </p> <p>For e.g. if I go to <code>c:/dev/app</code> in terminal and type <code>some-je...
0debug
How can we add 3% of amount to each account : <p>I would like to add 3% of total amount to each account</p> <p>Is there any mysql query that would calculate 3% of amount for each account and add the amount to that account </p> <p>Can I use a dynamic variable ?</p> <p>Any suggestions!</p>
0debug
I want to increase my cpu speed in laptop : <p>I want to download and install visual studio2017 and I saw it’s requirement tools and hardware. It needs 1.8ghz- processor , but my laptop cpu is 1.7 How can I increase my cpu speed and doesn’t visual work If I don’t chang it to 1.8ghz?</p>
0debug
Detecting Operation Sign in a String Java : <p>Currently I have a string where it signifies an expression (i.e., "2+4*8/2") and is there a way to convert this to a regular expression that is NOT a string so it can return 18?</p> <p>If not, is there a way to detect what kind of operator it is at a given character?</p>...
0debug