problem
stringlengths
26
131k
labels
class label
2 classes
Neo4j+apoc: Is there an apoc-function for importing word-doc? : Neo4j+apoc: Is there an apoc-function for importing word-doc ? I try to import the text as a chain of nodes parsing some simple layout tags.
0debug
i can,t show my array in java script why? : i have a simple code in java script.i was going to create code to add some first name ,last name and age of students from client by click on "Add Student"button. and show the list of students that just added by click on "Show Students" button. add action is successfully....
0debug
static void vvfat_refresh_limits(BlockDriverState *bs, Error **errp) { bs->request_alignment = BDRV_SECTOR_SIZE; }
1threat
Powershell: How to loop through a text file (running a command) in batches of 500 : I have a very large exported list in text and i need to go through each of the entries and run a command using the entry. But i wish to do this in batches of 500 - as i need to allow processing time. What I do not understand is how i...
0debug
Cant find the image links to images on the website in html I bought. I own it, but where is it? : <p>I can't find the link in the html to 3 images on the front page of my website. The black spy on green background and the two black graphs on green background. The website is here : home.alphaphoner.com it's a template I...
0debug
static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) { MXFContext *mxf = arg; MXFPartition *partition; UID op; uint64_t footer_partition; uint32_t nb_essence_containers; int err; if (mxf->partitions_count+1 >= UINT_MAX / siz...
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
void ff_avg_h264_qpel8_mc33_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_8x8_msa(src + stride - 2, src - (stride * 2) + sizeof(uint8_t), stride, dst, strid...
1threat
What is "Trident" in my user agent string refer too? : <p>According to UserAgentString.com my user agent string: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko</p> <p>Does this mean that I'm using IE 11 with an IE 7 user agent? UserAgentString.com stats that "Trident" is the layout engine for Int...
0debug
Date Regex with special character as optional pre element : <p>Date Regex with special character as optional pre element</p> <p>I need a date regex for YYYY-MM-DD, plus the following four case: </p> <pre><code>1978-12-20 &gt;1978-12-20 &gt;=1978-12-20 &lt;1978-12-20 &lt;=1978-12-20 </code></pre> <p>How can I allow t...
0debug
static void usb_hub_handle_attach(USBDevice *dev) { USBHubState *s = DO_UPCAST(USBHubState, dev, dev); int i; for (i = 0; i < NUM_PORTS; i++) { usb_port_location(&s->ports[i].port, dev->port, i+1); } }
1threat
How can i generate a random large image file using c# code? : <p>I have a requirement to generate 100s of thousands of random but unique image files (.jpeg/tiff/png) with the following criteria and drop it into a folder of choice :</p> <p>Generated file to be with a given resolution, size (eg. 100mb each) but can be a...
0debug
static av_cold int mov_text_encode_init(AVCodecContext *avctx) { static const uint8_t text_sample_entry[] = { 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0...
1threat
Focus input after redux dispatch finished : <p>I am dynamically creating list of inputs with React and Redux. After clicking a button an input is added to the end of list. I need to focus last added input. I tried this code but it focuses penultimate input</p> <pre><code>const mapDispatchToProps = (dispatch, ownProps)...
0debug
Can someone explain to me how this program works? : <p>I am having trouble understanding how to program below works and I would appreciate someone explaining to me how exactly it runs. </p> <pre><code>public static void main(String[] args) { //Enter two number whose GCD needs to be calculated. Scanner scanner...
0debug
static int iv_decode_frame(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { Indeo3DecodeContext *s = avctx->priv_data; unsigned int image_width, image_height, chroma_width, chroma_height; unsigned long flags, cb_offset, data_size, ...
1threat
void helper_set_cp15(CPUState *env, uint32_t insn, uint32_t val) { uint32_t op2; uint32_t crm; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: if (arm_feature(env, ARM_FEATURE_XSCALE)) break; if (arm_feature(env, ARM_FEATURE...
1threat
How to organize variable which has connection with two objects : <p>In my code, there is a class Func, which denote a function. The class FuncSet is a collection of some functions in class Func. There are two objects FuncSet set1 and FuncSet set2. </p> <p>Now I would like to make up a variable which is a 2D matrix and...
0debug
Javascript Generate Array of Hours in the Day Starting with Current Hour : <p>Hi I'm trying to generate an array of every hour of the day. However, I want it to start with the current hour. </p> <p>For example, </p> <p><strong>if the current time is 2:00 pm, the array should start:</strong></p> <p>['1400', '1500', '...
0debug
Why should use Version Control software rather a wordprocessor : <p>A word-processor has most if not all the features of a version control software without the gobbledegook and the complexity. You can set a word-processor to always keep history and probably save as versions every time you save. You could have an online...
0debug
ObjectClass *object_class_dynamic_cast(ObjectClass *class, const char *typename) { TypeImpl *target_type = type_get_by_name(typename); TypeImpl *type = class->type; ObjectClass *ret = NULL; if (type->num_interfaces && type_is_ancestor(target_type, type_inte...
1threat
static void lx_init(const LxBoardDesc *board, MachineState *machine) { #ifdef TARGET_WORDS_BIGENDIAN int be = 1; #else int be = 0; #endif MemoryRegion *system_memory = get_system_memory(); XtensaCPU *cpu = NULL; CPUXtensaState *env = NULL; MemoryRegion *ram, *rom, *system_io; Driv...
1threat
Unable to Change Icon on Click() : <p>I have this HTML </p> <pre><code>&lt;li&gt;&lt;button class="btn-link glyphicon @(I._tp_favourite == 0 ? "glyphicon-heart-empty" : "glyphicon-heart")" style="text-decoration:none;" onclick="Fav(@I._id, @I._tp_favourite)" id="FavButton"&gt;&lt;/button&gt;&lt;/li&gt; </code></pre> ...
0debug
static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr) { int level, pred, code; uint16_t *dc_val; if (n < 4) code = get_vlc2(&s->gb, dc_lum.table, DC_VLC_BITS, 1); else code = get_vlc2(&s->gb, dc_chrom.table, DC_VLC_BITS, 1); if (code < 0 || code > 9 )...
1threat
How to return different value in Mockito based on parameter attribute? : <p>The class that I test receive a client wrapper:</p> <p>The tested class (snippest)</p> <pre><code>private ClientWrapper cw public Tested(ClientWrapper cw) { this.cw = cw; } public String get(Request request) { return cw.getClient().g...
0debug
Change background color of ListTile upon selection in Flutter : <p>I've made a <code>ListView</code> in Flutter, but now I have some <code>ListTiles</code> in this <code>ListView</code> that can be selected. Upon selection, I want the background color to change to a color of my choice. I don't know how to do that. In <...
0debug
How do I get a website to change from two columns to one column with responsive design? : <p>I am making a simple web design where, on a web page, the logo and description are in the top right corner. The three images of bottles I have are in the bottom left corner.</p> <p>I want to make the website responsive, but I ...
0debug
static int nvme_start_ctrl(NvmeCtrl *n) { uint32_t page_bits = NVME_CC_MPS(n->bar.cc) + 12; uint32_t page_size = 1 << page_bits; if (n->cq[0] || n->sq[0] || !n->bar.asq || !n->bar.acq || n->bar.asq & (page_size - 1) || n->bar.acq & (page_size - 1) || NVME_CC_MPS(n->bar.cc) < ...
1threat
How to replace all occurrences of a sub string in kotlin : <p>How to replace a part of a string with something else in Kotlin?</p> <p>For example, changing "good morning" to "good night" by replacing "morning" with "night"</p>
0debug
Can't parse my string into a JSON object in javascript : I am working on a parser for a text file. I am trying to parse some strings into JSON objects so I can easily display some different values on a webapp page (using flask). I am passing the strings into my html page using jinja2, and trying to parse them JSON obje...
0debug
Install mysqldump on Ubuntu 14.04 : <p>I have trouble installing the mysqldump utility on a Ubuntu Server. I tried with <code>apt-get install mysqldump</code> but i get <code>E: Unable to locate package mysqldump</code>. </p> <p>I tried googling but couldn't find any quality information of the installation of mysqldum...
0debug
Exception thrown at 0x00000000 in Project3.exe: 0xC0000005: Access violation executing location 0x00000000. occurred : i get this error tring to draw a tringle(?) with opengl i dont know why glew 2.1.0 glfw3.2.1 win32 iam new and its my first time posing in overflow #include <gl\glew.h> ...
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
Jquery Event in JS : <p>I have a script to select form options. How can I change the document ready function to Javascript instead of using Jquery? </p> <pre><code>$(document).ready(function () { function FormFill() { if { var el1 = document.getElementsByName("FormOption1")[0]; ...
0debug
How to update the mapping in Elasticsearch to change the field datatype and change the type of analyzers in string : <p>While trying to update the mapping I get the following error:</p> <pre><code>{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [timestamp] of different type, current_type ...
0debug
How do I disable the border on bootstrap 4 cards : <p>A grey outline keeps appearing on the img section of my bootstrap card, which I would like to remove. <a href="https://i.stack.imgur.com/sIpIR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sIpIR.png" alt="Bootstrap card"></a></p> <pre><code> &lt;!-...
0debug
Can git be made to mostly auto-merge XML order-insensitive files? : <p>When merging Lightswitch branches, often colleagues will add properties to an entity I also modified, which will result in a merge conflict, as the new XML entries are added to the same positions in the lsml file.</p> <p>I can effectively always so...
0debug
How close the connection PDO PHP? : <p>I'm trying to close the connection in my class and I wonder if it is correct.</p> <p>My public function disconnect(); close connection.</p> <p>Class Connection:</p> <pre><code>&lt;?php class Connection{ private static $instance; public static function getInstance(){ ...
0debug
static int ogg_read_header(AVFormatContext *avfcontext, AVFormatParameters *ap) { OggContext *context = avfcontext->priv_data; ogg_packet op ; char *buf ; ogg_page og ; AVStream *ast ; AVCodecContext *codec; uint8_t *p; int i; ogg_sync_init(&context->oy) ; b...
1threat
Swift Remove Object from Realm : <p>I have Realm Object that save list from the JSON Response. But now i need to remove the object if the object is not on the list again from JSON. How i do that? This is my init for realm</p> <pre><code>func listItems (dic : Array&lt;[String:AnyObject]&gt;) -&gt; Array&lt;Items&gt; { ...
0debug
PATCH and PUT Request Does not Working with form-data : <p>I am using Laravel to create a RESTFUL application and I test the application with Postman. Currently, there is an issue for <code>PATCH</code> or <code>PUT</code> if the data sent from Postman with form-data.</p> <pre><code>// Parameter `{testimonial}` will b...
0debug
Python Tuple in Java XMLRPC : <p>I'm trying to pass python tuple over java xmlrpc. Here is library what I'm using: <a href="https://github.com/gturri/aXMLRPC" rel="noreferrer">XMLPRC Java Libray</a></p> <p>I'm using odoo framework on server and <a href="https://www.odoo.com/documentation/10.0/api_integration.html" rel...
0debug
How to disable spell checking in Sublime Text 3? : <p>I tried the following settings, but all it did was make things progressively worse.</p> <pre><code>"spell_check": false, "dictionary": "", "spelling_selector": "", </code></pre> <p>I don't understand the default value of <code>spelling_selector</code>, but maybe t...
0debug
void qemu_mutex_lock(QemuMutex *mutex) { EnterCriticalSection(&mutex->lock); assert(mutex->owner == 0); mutex->owner = GetCurrentThreadId(); }
1threat
long do_rt_sigreturn(CPUPPCState *env) { struct target_rt_sigframe *rt_sf = NULL; target_ulong rt_sf_addr; rt_sf_addr = env->gpr[1] + SIGNAL_FRAMESIZE + 16; if (!lock_user_struct(VERIFY_READ, rt_sf, rt_sf_addr, 1)) goto sigsegv; if (do_setcontext(&rt_sf->uc, env, 1)) goto...
1threat
Sorting an Vector of Objekts : I am new at C++. I want to sort an Vector "Konten" of type vector Konto. I've searched for a soulution but when i try to compile my code i get the error message: Fehler C2678 Binärer Operator "=": Es konnte kein Operator gefunden werden, der einen linksseitigen Operanden vom Typ "cons...
0debug
static void tgen_andi(TCGContext *s, TCGType type, TCGReg dest, uint64_t val) { static const S390Opcode ni_insns[4] = { RI_NILL, RI_NILH, RI_NIHL, RI_NIHH }; static const S390Opcode nif_insns[2] = { RIL_NILF, RIL_NIHF }; uint64_t valid = (type == TCG_TYPE_I32 ? 0xffffffffull ...
1threat
static char *sysbus_get_fw_dev_path(DeviceState *dev) { SysBusDevice *s = sysbus_from_qdev(dev); char path[40]; int off; off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev)); if (s->num_mmio) { snprintf(path + off, sizeof(path) - off, "@"TARGET_FMT_plx, s-...
1threat
how can i rebuild npm modules in angular? : <p>I have some changes in one of my <strong>npm modules</strong> in my angular project but it has no effect in my build version.</p> <p>can anyone help me?</p>
0debug
Android Application Craches on version 6 (Marshmallow) : I am building an Android Application with API 23. But on Marshmallow my app gets crashed as it launches. The error message I got is as follows: E/DropboxRealtime: null InputStream java.io.IOException: null InputStream at xjr.a(:com.google.android.gm...
0debug
Need help pivot columns to rows sql server with count : This is what I am trying to achieve in SQL server but no luck. I have table as below ID Start Dt End Dt Count 1 3/1/2016 6/1/2016 3 This is what I need, If Count column is 3 then I need to generate three rows ID Start Dt End Dt Count 1 3/1/2016 4/...
0debug
static int blk_root_inactivate(BdrvChild *child) { BlockBackend *blk = child->opaque; if (blk->disable_perm) { return 0; } if (!blk->dev && !blk->name[0]) { return -EPERM; } blk->disable_perm = true; if (blk->root) { bdrv_child_try_set_per...
1threat
static void update_pam(PCII440FXState *d, uint32_t start, uint32_t end, int r, PAMMemoryRegion *mem) { if (mem->initialized) { memory_region_del_subregion(d->system_memory, &mem->mem); memory_region_destroy(&mem->mem); } switch(r) { case 3: ...
1threat
AVFilter *avfilter_get_by_name(const char *name) { int i; for (i = 0; registered_avfilters[i]; i++) if (!strcmp(registered_avfilters[i]->name, name)) return registered_avfilters[i]; return NULL; }
1threat
BusState *qdev_get_child_bus(DeviceState *dev, const char *name) { BusState *bus; LIST_FOREACH(bus, &dev->child_bus, sibling) { if (strcmp(name, bus->name) == 0) { return bus; } } return NULL; }
1threat
static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) { AVDictionary **meta_in = NULL; AVDictionary **meta_out; int i, ret = 0; char type_in, type_out; const char *istream_spec = NULL, *ostream_spec = NULL; int idx_in = 0, idx_o...
1threat
What is the meaning of Event consumes in JavaFX : <p>I was trying to understand <a href="http://docs.oracle.com/javase/8/javafx/events-tutorial/processing.htm#CEGJCICG" rel="noreferrer">Event Handling in JavaFX</a> and there I found this line.</p> <blockquote> <p>The route can be modified as event filters and event ...
0debug
static ssize_t qio_channel_websock_writev(QIOChannel *ioc, const struct iovec *iov, size_t niov, int *fds, size_t nfds, ...
1threat
What are "Ambient Typings" in the Typescript Typings tool? : <p>I hear the term "ambient" used to describe type definitions downloaded with the <a href="https://github.com/typings/typings">typings</a> tool. What does that mean, though?</p> <p>I can't seem to find a straightforward definition of it or the <code>--ambie...
0debug
query sum two Different table : [enter image description here][1] [1]: https://i.stack.imgur.com/bZDlo.jpg i have two different ork3 ork2 k3 k1 k11 k1 1 a 2 a 4 b 3 b 5 c 4 c 3 a 7 a 3 a 1 b k1 sum(k3) sum(k11) (sumk3-sumk11) ...
0debug
Android Studio: Gradle sync failed: Could not HEAD '...'. Received status code 502 from server: Bad Gateway : <p>After update Android Studio to latest version (3.1) and gradle version in my project I get an error (the link is always different):</p> <pre><code>12:54 Gradle sync started 12:56 Gradle sync failed: Co...
0debug
why my android name has a erro in manifest layout? : <activity android:name=".MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent....
0debug
Facebook Messenger Bot - How to disable bot and allow human to chat : <p>so this is something I've been trying to think through for about 16 hours. I am coding with PHP / CuRl / etc - the bot works and everything is fine. My current issue is figuring out how to disable the bot and allow a human to begin chatting with t...
0debug
Find last iteration of foreach loop in laravel blade : <p>In blade template i use last() method to find last iteration of foreach loop:</p> <pre><code>@foreach ($colors as $k =&gt; $v) &lt;option value={!! $v-&gt;id !!} {{ $colors-&gt;last()-&gt;id==$v-&gt;id ? 'selected':'' }} &gt; {!! $v-&gt;name !!} &lt;/option&...
0debug
Share article from webapp to native facebook : <p>If I want to share some string from a mobile web page, is there any way to launch user's native facebook app to share ?</p>
0debug
static int vp3_decode_init(AVCodecContext *avctx) { Vp3DecodeContext *s = avctx->priv_data; int i; s->avctx = avctx; s->width = avctx->width; s->height = avctx->height; avctx->pix_fmt = PIX_FMT_YUV420P; avctx->has_b_frames = 0; dsputil_init(&s->dsp, avctx); s->q...
1threat
def maximum_Sum(list1): maxi = -100000 for x in list1: sum = 0 for y in x: sum+= y maxi = max(sum,maxi) return maxi
0debug
How to make page redirect using javascript : I want to redirect the html page to another html page and link that html page to text editor. if i change the text in text editor i want that changes in redirected html page by using java script
0debug
Failed to create the host-only adapter - windows 10, docker, virtualbox : <p>I've recently run into this problem after having used docker toolbox without a problem for a while.</p> <p>Started happening after windows update?</p> <p>Windows 10 Home - 64</p> <p>Uninstalled and reinstalled Docker toolbox</p> <p>Uninsta...
0debug
void page_set_flags(target_ulong start, target_ulong end, int flags) { target_ulong addr, len; #if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS assert(end < ((target_ulong)1 << L1_MAP_ADDR_SPACE_BITS)); #endif assert(start < end); assert_memory_lock(); start = start & TARGET_PAGE_M...
1threat
Please explain the output to this code: : <pre><code>#include&lt;stdio.h&gt; void main() { if(0xA) if(052) if('\xeb') if('\012') //what do the above 3 statements mean? printf("Hello World!") else; else; else; else; } </code></pre> <p>Output: Hello World!</p> <...
0debug
static BlockDriverAIOCB *qcow_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { QCowAIOCB *acb; acb = qemu_aio_get(bs, cb, opaque); if (!acb) return NULL; acb->hd_aiocb = NULL; acb...
1threat
Can someone help me solve this syntax error? : <p>Hi I am trying the code below on a php page. I keep getting syntax error due to the single quotes around the parameter 'London' of the function openCity() shown below.</p> <pre><code>echo '&lt;button class="tablinks" onclick="openCity(event, 'London')"&gt;London&lt;/bu...
0debug
How to fix button clicked not updating but others do : <p>I'm making a math game. Every time I click a button a new question should appear with different results to choose from.</p> <p>However every time I click the button which I think is the result it doesn't update the text but the others do.</p> <p>See github: <a...
0debug
How much entities has Stackoverflow? : I'm studying Computer Engineering and this year my second-rate . and i decide to make this site's ER diagrams. so, I can't know how many entities are has this site ?
0debug
there is an error after open directory in python, can someone help me fix this problem? : import os import time import send2trash import datetime from tkinter import filedialog from tkinter import * import tkinter as tk root = tk.Tk() date = input("Enter your date: ") ...
0debug
int av_opt_set_dict(void *obj, AVDictionary **options) { AVDictionaryEntry *t = NULL; AVDictionary *tmp = NULL; int ret = 0; while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) { ret = av_opt_set(obj, t->key, t->value, 0); if (ret == AVERROR_OPTION_NOT_FOUND) ...
1threat
Regular Expression to find all except digits and decimals : <p>the regular express <code>/\D/g</code> identifies all non numeric characters and the following code will replace the letter 'q' and decimal '.' in <code>str</code> and result in <code>10025</code></p> <pre><code> var str = "10q0.25"; var result = str.r...
0debug
How to check if app user is in Google Play Beta Testing : <p>I understand that the Google Play Beta feature allows me to distribute APKs to a closed user group, but I also need to be able to verify if the people logging in after download using Google Login are also in the beta program of my app, in order to make sure t...
0debug
New option in GCC 5.3: -fno-semantic-interposition : <p>GCC 5.3 has added a new option: <code>-fno-semantic-interposition</code></p> <blockquote> <p>A new -fno-semantic-interposition option can be used to improve code quality of shared libraries where interposition of exported symbols is not allowed.</p> </block...
0debug
Filter out array values that result in errors : <p>Basically I have 2 data structures. For simplicity lets suppose they are both 1 dimensional arrays. Assuming all functions are defined correctly, I want to do something like </p> <pre><code>Array1.delete_if(Array2.find(element in array 1) results in error) </code></pr...
0debug
static int virtio_read_many(ulong sector, void *load_addr, int sec_num) { struct virtio_blk_outhdr out_hdr; u8 status; out_hdr.type = VIRTIO_BLK_T_IN; out_hdr.ioprio = 99; out_hdr.sector = sector; vring_send_buf(&block, &out_hdr, sizeof(out_hdr), VRING_DESC_F_NEXT); ...
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
Spring Boot: Wrapping JSON response in dynamic parent objects : <p>I have a REST API specification that talks with back-end microservices, which return the following values:</p> <p>On "collections" responses (e.g. GET /users) :</p> <pre><code>{ users: [ { ... // single user object data ...
0debug
website is showing up as part text and part html on pc : I was searching for c programs on the net and i landed on this program- <http://www.c4learn.com/c-programs/calculating-area-of-circle-using.html> I opened it on my phone and it opened properly but it shows some part text and some part html on my pc. I wa...
0debug
how to Read all Whatsapp Messages using Python or JAVA with the new whatsapp protocols and settings : I want to read all the whatsapp messages from the backup taken from the Windows phone and write those messages in document or in the iphone. I have read many questions, that were limited to crypt5 only as the whatsa...
0debug
static int rv10_decode_packet(AVCodecContext *avctx, uint8_t *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int i, mb_count, mb_pos, left; init_get_bits(&s->gb, buf, buf_size*8); #if 0 for(i=0; i<buf_size*8 && i<100; i++) printf("%d", get_bits...
1threat
Please help on Arduino : I wrote a program for Arduino for object avoiding using three ultrasonic sensors but it is giving error in compile. Can anyone suggest why is the error coming and how I can resolve it: int trigPin = 6;<br/> int echoPin = 7;<br/> int trigPin = 8;<br/> int echoPin = 9;<br/> int trigPin = 1...
0debug
Unable to properly do a While Loop : <p>I am trying to do a while loop. I have been trying for a long time, but still cannot figure this out. </p> <pre><code>#include &lt;iostream&gt; #include &lt;iomanip&gt; #include &lt;cmath&gt; using namespace std; int main() { char input; double voltage, current; while ((input ...
0debug
static int hnm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; Hnm4VideoContext *hnm = avctx->priv_data; int ret; uint16_t chunk_id; if (avpkt->size < 8) { if ((ret = ff_get_buffer(avctx, frame, ...
1threat
static void fw_cfg_data_mem_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { fw_cfg_write(opaque, (uint8_t)value); }
1threat
Size Image widget to parent height but overflow width : <p>I would like to create an Image widget that sizes to the height of it's parent, but then overflows the width of the parent based on the aspect ratio of the displayed image. I've tried <code>FittedBox</code> and a combination of <code>LayoutBuilder</code> and <c...
0debug
How to use preg_match in phone numbers - PHP : Hello everyone? I'm not a very regular programmer and I need your help. I would like to add a phone number in a registration form, users will need to input username, email, phone number and password. All these fields will be REQUIRED including the phone number. I'm based i...
0debug
static void virtio_9p_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); V9fsVirtioState *v = VIRTIO_9P(dev); V9fsState *s = &v->state; if (v9fs_device_realize_common(s, errp)) { goto out; } v->config_size = sizeof(struct virtio_9p_confi...
1threat
TypeError: Super expression must be null or a function, not undefined with Babeljs : <p>I'm currently trying to make multiple-files inheritance in ES6, with node.JS and Babel (I'm using Babel to convert the code from ES6 to ES5 'cause Node don't implement ES6 right now). I'm using import/export to "link" the differents...
0debug
How to check if coordinate inside certain area Python : <p>Lets say I have 2 kind of coordinate, first called <code>center_point</code> and second called <code>test_point</code>. I want to know if <code>test_point</code> coordinate is inside near or not to <code>center_point</code> coordinate by applying <code>radius</...
0debug
Protobuf import failure : <p>Does anyone know where I can find an example of a gRPC protobuf file that imports from a different file and uses a protobuf message in a return? I can't find any at all.</p> <p>I have a file...</p> <pre><code>syntax = "proto3"; package a1; import "a.proto"; service mainservice { rpc DoS...
0debug
Running PHP SoapServer behind a proxy : <p>I'm attempting to run both a PHP SoapClient and a SoapServer (for Magento) behind a proxy, where the only network traffic allowed out is via the proxy server.</p> <p>I have got this working with the client as so:</p> <pre><code>$client = new SoapClient('https://www.domain.co...
0debug
Splitting a fasta file on the basis of header information : <p>I am new to scripting. Could you help me in finding my way to separate sequences based on the information in the header for example i have fasta file like this</p> <blockquote> <p>ERR1897927.533;barcodelabel=R40_1193R_F61_799F; GTAGTCCTAGCCCTAAACGATGGA...
0debug
can anyone tell me what is wrong with my code? im trying to find the sum of the first n integer value, im quite a beginner : #include <iostream> using namespace std; int num(int n){ for(int i= 1 ; i<=n ; i++){ int sum=0; sum += i; cout<<sum; } } i guess this part is ...
0debug