problem
stringlengths
26
131k
labels
class label
2 classes
Is it possible to bind data without refersh page using knockout.js? : I have tried to rebind data with knockout.js and ajax but it wont be fix.
0debug
static void pl181_class_init(ObjectClass *klass, void *data) { SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass); DeviceClass *k = DEVICE_CLASS(klass); sdc->init = pl181_init; k->vmsd = &vmstate_pl181; k->reset = pl181_reset; k->no_user = 1; }
1threat
Testing Flutter code that uses a plugin and platform channel : <p>I have a flutter plugin which uses the platform channel to do some native work.</p> <p>How do I properly write tests for my application that requires this plugin?</p> <p>Unit tests only are good for pure dart functions. I don't believe Widget testing w...
0debug
visual studio project out of date do you want to rebuild? : <p>am new to visual studio and whenever i try to build and run my code on Vs2017 a dailog box appears displaying the message " your project is out of date do you want to rebuild?" after click rebuild its displays an error message even though there are no error...
0debug
static int ioreq_map(struct ioreq *ioreq) { int gnt = ioreq->blkdev->xendev.gnttabdev; int i; if (ioreq->v.niov == 0) { return 0; } if (batch_maps) { ioreq->pages = xc_gnttab_map_grant_refs (gnt, ioreq->v.niov, ioreq->domids, ioreq->refs, ioreq->prot); ...
1threat
static inline void RENAME(yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst, unsigned int width, unsigned int height, int lumStride, int chromStride, int dstStride) { RENAME(yuvPlanartoyuy2)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2); }
1threat
static void quantize_and_encode_band_cost_UQUAD_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
1threat
Reversing a Sentence without reversing Characters in JavaScript and Java : how do i reverse a sentence like "Hello World" to "World Hello" Not dlroW oleo Been search for an example on this forum the whole day
0debug
double av_get_double(void *obj, const char *name, const AVOption **o_out) { int64_t intnum=1; double num=1; int den=1; av_get_number(obj, name, o_out, &num, &den, &intnum); return num*intnum/den; }
1threat
Why do I get "base table or view not found" when trying to use sprintf? : <pre><code>$sql = sprintf( 'insert into $s ($s) values ($s)', $table, implode(', ', array_keys($parameters)), ':' . implode(', :', array_keys($parameters)) ); try { $statement = $this-&gt;pdo-&gt;prepare($sql); $statement-...
0debug
static int sub2video_prepare(InputStream *ist) { AVFormatContext *avf = input_files[ist->file_index]->ctx; int i, w, h; w = ist->dec_ctx->width; h = ist->dec_ctx->height; if (!(w && h)) { for (i = 0; i < avf->nb_streams; i++) { if (avf->streams[i]->codec->code...
1threat
'which' command outputs nothing in Ubuntu : <p>I want to figure out path of the executable command, but <code>which</code> says nothing. Why ? So and when it's usual case for <code>which</code>to return nothing about command's path. path is hidden/inaccessible for some types of executables or ...</p> <pre><code>which ...
0debug
How to get lineno of "end-of-statement" in Python ast : <p>I am trying to work on a script that manipulates another script in Python, the script to be modified has structure like:</p> <pre><code>class SomethingRecord(Record): description = 'This records something' author = 'john smith' </code></pre> <p>I use ...
0debug
c# : How to call mehods with same name but in different classes? : I am writing C# script in Unity ``` public class something1 : MonoBehaviour { public void Dosomething(){ } } public class something2 : MonoBehaviour { public void Dosomething(){ } ...
0debug
Span doesn't work : How i can change code? nodeValue is a string type and it's also write <span> in replace word! walk(document.body); function walk(node) { var child, next; switch ( node.nodeType ) { case 1: case 9: case 11: child = node.firstChild; while ( child ) { ...
0debug
Stopping .bat files dinamically using java : I need to write a Java app in which I have several .bat files which run in continuous loops. I have 4 of them, and only one of them can run at one time. I need to stop the other 3. Something like if condition -stop the other 3 .bat files ( well normally one of...
0debug
static int decode_b_picture_primary_header(VC9Context *v) { GetBitContext *gb = &v->s.gb; int pqindex; if (v->profile == PROFILE_SIMPLE) { av_log(v->s.avctx, AV_LOG_ERROR, "Found a B frame while in Simple Profile!\n"); return FRAME_SKIPED; } v->bfraction = vc9_bf...
1threat
discord.js message not defined (nodejs How to fix this issue what i have) : Before i ask this question i checked into simlar overflow questions and could not find an answer to my question. So this is what i want to do. I get live data from a telnet connection, i get the data live in the console window. In a line i...
0debug
pass values between pages jquery php : I used this code to get value of multiple checkbox I want any one to guide me to a tutorial that can show me how to do it withour refreshing page this is my code <form action="#" method="post"> <input type="checkbox" name="check_list[]" value="C/C++"><label>C/C++<...
0debug
Layout_alignParentRight and others aren't working on my Android Studio : I'm simply trying to do the first app-making lesson on Udacity with making a birthday card app. It asks me to put "From yourName" on the birthday card to the bottom right. I tried using android:layout_alignParentRight and android:layout_alignParen...
0debug
issue with positional arguments in pthon : I am having a problem with following block of python. class Person: def __init__(self, firstName, lastName, idNumber): self.firstName = firstName self.lastName = lastName self.idNumber = idNumber def printPerson(self): print("Name:", self.lastName + ","...
0debug
Angular testing async pipe does not trigger the observable : <p>I want to test a component that uses the async pipe. This is my code:</p> <pre><code>@Component({ selector: 'test', template: ` &lt;div&gt;{{ number | async }}&lt;/div&gt; ` }) class AsyncComponent { number = Observable.interval(1000).take(3) ...
0debug
PostgreSQL, trigrams and similarity : <p>Just testing PostgreSQL 9.6.2 on my Mac and playing with Ngrams. Assuming there is a GIN trigram index on winery field.</p> <p>The limit for similarity (I know this is deprecated):</p> <pre><code>SELECT set_limit(0.5); </code></pre> <p>I'm building a trigram search on 2,3M ro...
0debug
How to make this manual and automatic? : <p>I have this code, and it basically changes the text and image on the user's screen. I would like to do this manually with the click event. but I can't, can anyone help me? please</p> <pre><code>let i = 0; let img = 0; let images = [ '...', '...', '...', '...', '......
0debug
How to open new view from collection view controller : <p>I am new to iOS and struggling in opening new view controller from collection view.</p> <p>Can anyone help me in how to open new view controller and pass date so i can change text of lable in another view.</p>
0debug
How to ignore a particular directory or file for tslint? : <p>The IDE being used is WebStorm 11.0.3, the tslint is configured and works, but, it hangs because it tries to parse large *.d.ts library files. </p> <p>Is there a way to ignore a particular file or directory?</p>
0debug
static void fdctrl_start_transfer (fdctrl_t *fdctrl, int direction) { fdrive_t *cur_drv; uint8_t kh, kt, ks; int did_seek; fdctrl->cur_drv = fdctrl->fifo[1] & 1; cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[2]; kh = fdctrl->fifo[3]; ks = fdctrl->fifo[4]; FLOPPY_DPRINT...
1threat
top: 'include' filter delimiter is missing : <p>I'm trying to filter top's output by command, but when I type <code>O</code>, then</p> <pre><code>COMMAND?apache2 </code></pre> <p>I get the following error:</p> <pre><code>'include' filter delimiter is missing </code></pre> <p>I've looked at the top man page, but can...
0debug
Re-run the current function when the function is a variable : <p>I have a function named <code>test</code> which is inside the main func.</p> <pre><code>//stuff func main() { var test = func() { if (/*some condition from main*/) { return test() } } val := test() } </code></pre> <p>When i run thi...
0debug
Github showing (develop) branch behind master by x commits : <p>I have been searching for the answer to this problem but have not found a solution or explanation. </p> <p>We just switched to Github for our repo and are still trying to find the best way to use it in a team environment. Our current workflow is like this...
0debug
static inline void gen_op_eval_fbl(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_xori_tl(cpu_tmp0, cpu_tmp0, 0x1); tcg_gen_and_tl(dst, dst, cpu_tmp0); }
1threat
Segementation error when inserting more than 30 000 dataset into BST : I'm currently working on a program that should generate at least 100000 URL(www.google.com.my) and insert them into Binary Search Tree(BST) and hash tables.I got both of them quite right but when I try to insert 100000 URLs into BST I get the follow...
0debug
static void handle_keyup(DisplayState *ds, SDL_Event *ev) { int mod_state; if (!alt_grab) { mod_state = (ev->key.keysym.mod & gui_grab_code); } else { mod_state = (ev->key.keysym.mod & (gui_grab_code | KMOD_LSHIFT)); } if (!mod_state && gui_key_modifier_pressed) { ...
1threat
Remove element from collection during iteration with forEach : <p>Recently, I wrote this code without thinking about it very much:</p> <pre><code>myObject.myCollection.forEach { myObject.removeItem($0) } </code></pre> <p>where <code>myObject.removeItem(_)</code> removes an item from <code>myObject.myCollection</code>...
0debug
can I start the code from a certain line in C++? : <p>Basically I want the code to go back and start again from a certain line after it's done something. For example, I have a menu where you can choose an action and if everything is finished in that action I want it to display the menu again.</p> <p>Here's some rough ...
0debug
Powershell, compare data table object to date time variable : I am trying to compare the current date/time to a date time located in the first row of a data table filled from an sql query. $datatable | out-host Shows this... LastRunDate ————————- 3/28/2019 1:22:01 PM I need to compare that one cell to the...
0debug
static void nvme_rw_cb(void *opaque, int ret) { NvmeRequest *req = opaque; NvmeSQueue *sq = req->sq; NvmeCtrl *n = sq->ctrl; NvmeCQueue *cq = n->cq[sq->cqid]; block_acct_done(bdrv_get_stats(n->conf.bs), &req->acct); if (!ret) { req->status = NVME_SUCCESS; } else { ...
1threat
Proxy requests to a separate backend server with vue-cli : <p>I am using <code>vue-cli</code> <code>webpack-simple</code> template to generate my projects, and I'd like to proxy requests to a separate, backend server. How can this be easily achieved? </p>
0debug
How to set a default value for a Flow type? : <p>I have defined a custom Flow type</p> <pre><code>export type MyType = { code: number, type: number = 1, } </code></pre> <p>I want the <code>type</code> parameter to default as <code>1</code> if no value is present. However, Flow is complaining with <code>Unexpected...
0debug
static void aarch64_cpu_set_pc(CPUState *cs, vaddr value) { ARMCPU *cpu = ARM_CPU(cs); cpu->env.pc = value; }
1threat
Disable python import sorting in VSCode : <p>I am trying to disable vscode from formatting my python imports when I save my file. I have some code that must run in between various imports so order is important, but every time I save it just shoves the imports to the top.</p> <p>I tried putting </p> <pre><code>"editor...
0debug
Having trouble while solving an array problem that produces an infinite loop.Please show me the way out. Thank you : Ask the user for a number between 1 and 9. If the user does not enter a number between 1 and 9, repeatedly ask for an integer value until they do. Once they have entered a number between 1 and 9, print t...
0debug
int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) { int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val, pos, is_intra, mc_type, mv_x, mv_y, col_mask; uint8_t col_flags[8]; int32_t prev_dc, trvec[64]; uint32_t cbp, sym, ...
1threat
static void qvirtio_9p_pci_stop(QVirtIO9P *v9p) { qvirtqueue_cleanup(v9p->dev->bus, v9p->vq, v9p->qs->alloc); qvirtio_pci_device_disable(container_of(v9p->dev, QVirtioPCIDevice, vdev)); g_free(v9p->dev); qvirtio_9p_stop(v9p); }
1threat
What would be a good approach for developing front-end for ios apps? : <p>I'm new to ios app development. I was told to do the front-end development for an app, which has already been designed by a graphic designer. My question is that what language or tool do I need to learn or use in order to build the front-end for ...
0debug
How does setting the height of elemets html and body to 100% help me in setting the height of an element to the device's screen height? : [I tumbled upon this question here][1] [1]: http://stackoverflow.com/questions/12172177/set-div-height-equal-to-screen-size Look at the answer, He put the height of the b...
0debug
build_hash_table (const sparc_opcode **opcode_table, sparc_opcode_hash **hash_table, int num_opcodes) { int i; int hash_count[HASH_SIZE]; static sparc_opcode_hash *hash_buf = NULL; memset (hash_table, 0, HASH_SIZE * sizeof (hash_table[0])); memset (hash_co...
1threat
static int bdrv_inactivate_recurse(BlockDriverState *bs, bool setting_flag) { BdrvChild *child, *parent; int ret; if (!setting_flag && bs->drv->bdrv_inactivate) { ret = bs->drv->bdrv_inactivate(bs); if (ret < 0) { return ret; ...
1threat
FBSDKCorekit.h, FBSDKCopying.h file note found using Cocoapods : <p>For some odd reason after adding an unrelated pod I have been receiving an error message during the build process that indicates FBSDKCorekit.h, FBSDKCopying.h and FBSDKButton.h files are not found. I have followed countless suggestions changing proper...
0debug
How to select message list from mysql table? : [This is the table][1] [1]: https://i.stack.imgur.com/w6Jvm.png I want to select the username from **to** and **from** col in a single col and the result should be grouped by that single col. And My user id (**admin**) should not be included in the list.
0debug
After mac os sierra update facing scrolling issue with Java applications like Intellij : <p>After the recent update, Mac os Sierra, to my Macbook pro, I'm facing scrolling issues with all Java applications like Intellij IDEA community edition.</p> <p>The scrolling in the editor panes are extremely fast. The unit of s...
0debug
Fit mixture of Gaussians with fixed covariance in Python : <p>I have some 2D data (GPS data) with clusters (stop locations) that I know resemble Gaussians with a characteristic standard deviation (proportional to the inherent noise of GPS samples). The figure below visualizes a sample that I expect has two such cluster...
0debug
static int posix_aio_process_queue(void *opaque) { PosixAioState *s = opaque; struct qemu_paiocb *acb, **pacb; int ret; int result = 0; int async_context_id = get_async_context_id(); for(;;) { pacb = &s->first_aio; for(;;) { acb = *pacb; if (!...
1threat
static void gen_stswx(DisasContext *ctx) { TCGv t0; TCGv_i32 t1, t2; gen_set_access_type(ctx, ACCESS_INT); gen_update_nip(ctx, ctx->nip - 4); t0 = tcg_temp_new(); gen_addr_reg_index(ctx, t0); t1 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t1, cpu_xer); tcg_gen_andi_i32...
1threat
Can getDrawable() throw a NullPointerException? : <p>I have a class extending ImageView. In it, I have a function that calls <code>getDrawable().getIntrinsicWidth();</code>. I have about 100 000 installs, and I have 10 reports of this line producing a nullpointerexception. I can't reproduce this, but would still like t...
0debug
static void pic_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { HeathrowPICS *s = opaque; HeathrowPIC *pic; unsigned int n; n = ((addr & 0xfff) - 0x10) >> 4; PIC_DPRINTF("writel: " TARGET_FMT_plx " %u: %08x\n", addr, n, value); if (n ...
1threat
How to remove gap between Header navigation bar and slider revolution in wordpress website : <p>How to remove the gap between the Header navigation bar and slider revolution in WordPress website.</p>
0debug
C - Char to hexa : <p>I have str:</p> <pre><code>char *str = "lala"; </code></pre> <p>Now, I would like convert any chars in str to hexadecimal, example:</p> <pre><code>str = convert(str); print str: 0x6C 0x61 0x6C 0x61 ^ l ^ a ^ l ^ a </code></pre> <p>How I can do that ?</p>
0debug
static int virtio_net_device_exit(DeviceState *qdev) { VirtIONet *n = VIRTIO_NET(qdev); VirtIODevice *vdev = VIRTIO_DEVICE(qdev); int i; virtio_net_set_status(vdev, 0); unregister_savevm(qdev, "virtio-net", n); if (n->netclient_name) { g_free(n->netclient_name); ...
1threat
static void fic_draw_cursor(AVCodecContext *avctx, int cur_x, int cur_y) { FICContext *ctx = avctx->priv_data; uint8_t *ptr = ctx->cursor_buf; uint8_t *dstptr[3]; uint8_t planes[4][1024]; uint8_t chroma[3][256]; int i, j, p; for (i = 0; i < 1024; i++) { planes[0][...
1threat
how can i check how website storing password in database in laravel? : <p>I have to create a simple php page which update user's password in database, i've to enter password in same encrypted format in which website storing it in. I don't know much about working of laravel. Password stored in database is "$2y$10$pFYa/r...
0debug
Why in C++ do static_cast<unsigned> of negative numbers differ if the number is constant or not : <p>What's the C++ rules that means <strong>equal</strong> is <em>false</em>?. Given:</p> <pre><code>float f {-1.0}; bool equal = (static_cast&lt;unsigned&gt;(f) == static_cast&lt;unsigned&gt;(-1.0)); </code></pre> <p>E.g...
0debug
I'm using several condition in my code but does not checked all condition : I'm using several condition in my code but does not checked all condition , how i resolved it? sample of my code if (securityCodeET.getText().toString().equals("1234")&& accountNoET.getText().toString().trim().length() != 0) when i ...
0debug
static int advanced_decode_i_mbs(VC9Context *v) { int i, x, y, cbpcy, mqdiff, absmq, mquant, ac_pred, condover, current_mb = 0, over_flags_mb = 0; for (y=0; y<v->height_mb; y++) { for (x=0; x<v->width_mb; x++) { if (v->ac_pred_plane[i]) ac_pred = get_...
1threat
vue.js - not defined on the instance but referenced during render : <p>I am loading a template that references a client side js file with my code like so:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.1/vue.js"&gt;&lt;/script&gt; &lt;l...
0debug
Facebook login on localhost - connection not secure : <p>I am adding a Facebook login to our React project, using Facebook Javascript SDK. I followed this <a href="https://developers.facebook.com/docs/facebook-login/web" rel="noreferrer">tutorial</a>.</p> <p>When I click the login button which I added to the page, fol...
0debug
def even_position(nums): return all(nums[i]%2==i%2 for i in range(len(nums)))
0debug
Delphi 10. String not compiling properly (No crash, Possibly a glitch?) : Today I stumbled upon something mysterious. This line of code: showmessage(menuMain.player[2] + ' ready!'); Generates this message (For example menuMain.player[2] = Player): > Player But if I put code this way (For example menuM...
0debug
static int ftp_read(URLContext *h, unsigned char *buf, int size) { FTPContext *s = h->priv_data; int read, err, retry_done = 0; av_dlog(h, "ftp protocol read %d bytes\n", size); retry: if (s->state == DISCONNECTED) { if (s->position >= s->filesize) return 0; ...
1threat
Div style according to the place of CSS : <p>I have the following HTML file:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; #aDiv{ width:300px; height:100px; background-color:blue; } &lt;/style&gt; &lt;!--link rel="stylesheet...
0debug
def square_perimeter(a): perimeter=4*a return perimeter
0debug
How to make variable $ works both as object $ and function $()? : <p>jQuery's variable <strong>$</strong> for example works both as object and function.</p> <pre><code>// You can access object properties such as $.fn; // or $.isReady; // You can also call the function $ such as follows $(); </code></pre> <p><strong>H...
0debug
Laravel does not read env variables : <p>Did anyone has issues with <code>env</code> variables? For some reason, helper <code>env('VARIABLE')</code> returns <code>null</code> every time I use it. It happened very unexpectedly and I dont really know the reason. Restarting the apache/IDE/computer does not work.</p>
0debug
Car Dealer Management Software : <p>For learning purposes Im thinking of Creating a management software for car dealers, but before I get into the designing/planning stage im gathering requirements. Would anyone be able to add something to my current req list? </p> <p>Here is what I have so far </p> <ol> <li>Differen...
0debug
Selection does not contain a main type - Eclipse, Java : <p>I'm trying to work on a homework assignment. We're given a bunch of files, and the first step in the instructions says that I need to run one of the Java files that we're given, which acts as a testing file.</p> <p>Here is the file,</p> <pre><code>import org...
0debug
Fortran OMP Parallel Do : as of lately i have been reading and playing around with omp parallel do's in fortran (f95). However i still haven't figured out how the parallel do would be used in a code like the one beneath, `I=1 DO WHILE I<100 A=2*I B=3*I C=A+B A(I)=C I=I+1 END DO...
0debug
Touch ID Implementation : <p>Login credentials of my app will expire in a certain period of time. I'm planning to enable touch ID login for the app as well. My question is how the UI logic should be implemented to accomplish this?</p>
0debug
Koin vs Kodein - Dependency Injection what you prefer? Kotlin : <p>What dependency injection for Android with Kotlin do you prefer? I have started using Kodein but i don't want to lose my time if Koin it's better.</p> <p>I have read this presentation <a href="https://www.kotlindevelopment.com/koin-vs-kodein/" rel="nor...
0debug
void rgb32tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { unsigned i; unsigned num_pixels = src_size >> 2; for(i=0; i<num_pixels; i++) { dst[3*i + 0] = src[4*i + 2]; dst[3*i + 1] = src[4*i + 1]; dst[3*i + 2] = src[4*i + 0]; } }
1threat
GooglePlay - wrong signing key for app bundle : <p>I've just now started using app bundles. I've set the two certificates in the <code>App signing</code> section of the dashboard (signing certificate and upload certificate).</p> <p>I've built an app bundle and signed it with the upload certificate, but when I upload t...
0debug
How do i parse this response so I ONLY GET THE NAME AND bot ID : I'm trying to just parse this so that I only get the name and bot_id I used json.loads and did things like for item in response: print item['bot_id'] Right now I'm just most concerned with getting the bot_id def view_bot_ids(): ...
0debug
static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, data_reg2, r0, r1, rbase, bswap; #ifdef CONFIG_SOFTMMU int mem_index, s_bits, r2, addr_reg2; uint8_t *label_ptr; #endif data_reg = *args++; if (opc == 3) data_reg2 = *args++; el...
1threat
Laravel is too slow : <p>I just set this page in the routing file <code>web.php</code>:</p> <pre><code>Route::get("/speedtest","SpeedController@speed_test"); </code></pre> <p>Here is the speed test function:</p> <pre><code>public function speed_test(){ return view("speedtest"); } </code></pre> <p>That returns <...
0debug
import math as mt def get_Position(a,n,m): for i in range(n): a[i] = (a[i] // m + (a[i] % m != 0)) result,maxx = -1,-1 for i in range(n - 1,-1,-1): if (maxx < a[i]): maxx = a[i] result = i return result + 1
0debug
Need help defining the getPrice method in this subclass : //I am trying to determine how I should define the getPrice method. The shirts can range from Small to XXXL and the price varies. The price is determined by the size: $22.99 for XXL or XXXL, and $19.99 for all other sizes. There are two other classes that I ha...
0debug
static void gen_exception(int excp) { TCGv tmp = new_tmp(); tcg_gen_movi_i32(tmp, excp); gen_helper_exception(tmp); dead_tmp(tmp); }
1threat
static void vfio_start_irqfd_injection(SysBusDevice *sbdev, qemu_irq irq) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev); VFIOINTp *intp; if (!kvm_irqfds_enabled() || !kvm_resamplefds_enabled() || !vdev->irqfd_allowed) { goto fail_irqfd; } QLIST_FOREACH(intp, &v...
1threat
int spapr_vio_send_crq(VIOsPAPRDevice *dev, uint8_t *crq) { int rc; uint8_t byte; if (!dev->crq.qsize) { fprintf(stderr, "spapr_vio_send_creq on uninitialized queue\n"); return -1; } rc = spapr_vio_dma_read(dev, dev->crq.qladdr + dev->crq.qnext, &byte, 1); if (...
1threat
Sequencing of function parameter destruction : <p>According to C++14 [expr.call]/4:</p> <blockquote> <p>The lifetime of a parameter ends when the function in which it is defined returns.</p> </blockquote> <p>This seems to imply that a parameter's destructor must run before the code which called the function goes on...
0debug
CSS - Change image height, using only it's URL : Say... in html we have only: img src="IMAGE-URL" And you need to change image size in CSS, without adding classes or id... How to write in style sheet something like "IMAGE-URL height: 100px" ? Is it possible?
0debug
Simple PHP contact form with Firebase hosting : <p>I'm trying to test out if PHP works from my Firebase hosting using the following:</p> <p>(index.html)</p> <pre><code>&lt;form action="welcome.php" method="post"&gt; &lt;input type="submit"&gt; &lt;/form&gt; </code></pre> <p>(welcome.php)</p> <pre><code>&lt;?php ...
0debug
No UseDatabaseErrorPage() extension method in Net Core 3.0 : <p>I have created Net Core 3.0 app and following code that worked in 2.2 now is not.</p> <pre><code>app.UseDatabaseErrorPage(); </code></pre> <p>Looks like in 3.0 class <code>DatabaseErrorPageExtensions</code> does not exist within <code>Microsoft.AspNetCor...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
How to refresh the page after a ServiceWorker update? : <p>I've consulted a lot of resources on Service Workers:</p> <ul> <li><a href="https://jakearchibald.com/2014/using-serviceworker-today/#updating-your-serviceworker" rel="noreferrer">Updating your ServiceWorker</a></li> <li><a href="https://ponyfoo.com/articles/s...
0debug
JavaScript: What's the difference between a positive look ahead and a non-capturing group? : <p>If I get it right then a positive look ahead ( ?= ) as well a non-capturing group ( ?: ) are used for to excluse a part of the string in the final match-results. </p> <p><strong>What is the difference between the a lookahea...
0debug
The particularity of map() and forEach() : <p>What is the particularity (specificity) of map() vs forEach in JavaScript ?</p> <p>They work fine identically !</p> <pre><code> &lt;script type="text/javascript"&gt; "use strict"; const array1 = [12, 3, 7]; const array2 = []; const dispEls=(el, idx, array1) =&gt...
0debug
static int mpc7_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t *bits; in...
1threat
need to fix a bootstrap 3 layout : On bootstrap 3,I can't make the layout how I want to and I can't see why. My HTML : <div class="container"> <div id="row1" class="row"> <div class="col-lg-4 col-lg-push-8 col-md-4 col-md-push-8 col-sm-push-8 col-sm-4"> <div class="round...
0debug
Should my Django site's main page be an app? : <p>I have finished reading the Django official tutorial which teaches how to create a simple polls app, which is the way they chose to teach beginners the Django basics. My question is, now that I know how to make a simple app and want to create my own website (using Djang...
0debug