problem
stringlengths
26
131k
labels
class label
2 classes
static void vc1_sprite_flush(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *f = &s->current_picture.f; int plane, i; if (f->data[0]) for (plane = 0; plane < (s->flags&CODEC_FLAG_GRAY ? 1 : 3); plane++) for ...
1threat
Displaying the contents of a textfile in the cmd by typing in the filename in a java program? : Write a program that reads in a file and displays its contents. Get the input file name from the command line. For example, if your program is in the file Display.class, you would enter on the command line ...
0debug
Java null pointer Exception in android studio : <p>/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.anil.mynewapp, PID: 408 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.example.anil.mynewapp.SignupAuthentication.signupAuthentication(java.la...
0debug
static void dwt_decode97_float(DWTContext *s, float *t) { int lev; int w = s->linelen[s->ndeclevels - 1][0]; float *line = s->f_linebuf; float *data = t; line += 5; for (lev = 0; lev < s->ndeclevels; lev++) { int lh = s->linelen[lev][0], lv = s->linelen...
1threat
hwaddr ppc_hash32_get_phys_page_debug(CPUPPCState *env, target_ulong addr) { struct mmu_ctx_hash32 ctx; if (unlikely(ppc_hash32_get_physical_address(env, &ctx, addr, 0, ACCESS_INT) != 0)) { return -1; } return ctx.raddr & TARGET_PAGE_MASK; }
1threat
WAMP Server working with Laravel on Windows 7 Ultimate : <p>Hellow, My OS is Windows 7 Ultimate 64bit. I need install WAMP Server higher than php version 5.6.4 latest WAMP did not support with this OS. can you any body give me working download link to get suitable wamp server.</p>
0debug
void swri_resample_dsp_x86_init(ResampleContext *c) { int av_unused mm_flags = av_get_cpu_flags(); switch(c->format){ case AV_SAMPLE_FMT_S16P: if (ARCH_X86_32 && HAVE_MMXEXT_EXTERNAL && mm_flags & AV_CPU_FLAG_MMX2) { c->dsp.resample = c->linear ? ff_resample_linear_int16_mmxext ...
1threat
Set the precision for Decimal numbers in C# : <p>Is it possible to change the precision for Decimal numbers in C# globally ?</p> <p>In TypeScript I am using the framework <a href="https://github.com/MikeMcl/decimal.js/" rel="noreferrer">Decimal.js</a>, where I can change the precision of the Decimal operations globall...
0debug
static int decode_dvd_subtitles(DVDSubContext *ctx, AVSubtitle *sub_header, const uint8_t *buf, int buf_size) { int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos; int big_offsets, offset_size, is_8bit = 0; const uint8_t *yuv_palette = 0; uint8_t ...
1threat
conditional statement (truth table) formula on excel : [can you help me? .Please help me to make the formula for if P then Q(p=>q)][1] [1]: https://i.stack.imgur.com/8LC7R.png
0debug
c# File.Exists cannot find file : <p>How to correctly define if file exist or not?</p> <pre><code>string FilePath = Path.Combine(dir, "www", "index.html"); if (!File.Exists(FilePath)) { // get here anyway } string dir { get { string codeBase = Assembly.GetExecutingAssembly().CodeBase; ...
0debug
For each and every element want to add unique content:url(); : <p>When I hover over word it should shows an appropriate pict as background</p> <p>Considering to make it with js dataset but it still won't work</p> <pre class="lang-html prettyprint-override"><code> &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt...
0debug
Yii2/PHP/IIS7 - URL Rewrite and File Permissions (Pretty URL issue) : <p>I have a web.config file with the following text, although not relevant to my problem...</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;system.webServer&gt; &lt;rewrite&gt; &lt;rules&...
0debug
Send object with axios get request : <p>I want to send a get request with an object. The object data will be used on the server to update session data. But the object doesn't seem to be sent correctly, because if I try to send it back to print it out, I just get:</p> <p><code>" N; "</code></p> <p>I can do it with jQu...
0debug
Can I bundle the Visual Studio 2015 C++ Redistributable DLL's with my application? : <p>I've built a C++ application using Microsoft Visual Studio 2015 Community Edition. I'm using Advanced Installer to make sure that the <a href="https://www.microsoft.com/en-us/download/details.aspx?id=48145">Visual C++ Redistributabl...
0debug
Configuring GitKraken to push/fetch w/ Github : <p>I am trying to configure GitKraken with a particular repo I have on Github. As far as I can tell, once I give it my local project folder with the repo, it can see the remote. However, trying to push or pull gives me an error <code>Push/Fetch failed. could not connec...
0debug
Lists in Python - Each array in different row : <p>how can I create a new list with the following format.</p> <p>The 3 arrays inside each row should be in different rows.</p> <pre><code>a= [['111,0.0,1', '111,1.27,2', '111,3.47,3'], ['222,0.0,1', '222,1.27,2', '222,3.47,3'], ['33,0.0,1', '33,1.27,2', '33,3.47...
0debug
struct GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh = guest_file_handle_find(handle, errp); GuestFileSeek *seek_data = NULL; FILE *fh; int ret; if (!gfh) { return NU...
1threat
Linux - How to Remove Git Credentials : <p>I ran</p> <blockquote> <p>git config credential.helper store</p> </blockquote> <p>and ran</p> <blockquote> <p>git push origin master</p> </blockquote> <p>where I entered my credentials and they were saved.</p> <p>I read that they were stored in plaintext, and so now I...
0debug
static int movie_get_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; AVPacket pkt; int ret, frame_decoded; AVStream *st = movie->format_ctx->streams[movie->stream_index]; if (movie->is_done == 1) return 0; while ((ret = av_read_frame(movie->format_ctx...
1threat
static bool cmd_smart(IDEState *s, uint8_t cmd) { int n; if (s->hcyl != 0xc2 || s->lcyl != 0x4f) { goto abort_cmd; } if (!s->smart_enabled && s->feature != SMART_ENABLE) { goto abort_cmd; } switch (s->feature) { case SMART_DISABLE: s->smart_enabled = ...
1threat
Is there any way to reference other elements with Ruby's #map and #select? : I have an array of numbers, with I'd like to compare with its neighbours: a = [1, 2, 3, 90, 4, 5, 6 ..., 10] I'd like to remove any "too much different" items (ex.: 90). Is there a "map / select with index", by which I could r...
0debug
Apple PushKit didUpdatePushCredentials is never called on iOS 9+ : <p>I am developing a VoIP app for iPhone. To receive calls, Apple developed PushKit so developers can send VoIP notifications using APNS.</p> <p>Everything was working fine on iOS 8. When I updated to iOS 9, the <code>PKRegistryDelegate</code> does not...
0debug
Best way to get collect pounds or kilos in android from user? : <p>I am going to write a BMI app and I would like to allow the user to enter weight and height in either U.S. units or metric. I am not sure what is the best way to go about this because I would also like to be able for the user to save their preference. S...
0debug
Incorrect items sizing in layer-list on pre-lollipop : <p>I have a layer-list </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item android:right="2dp" android:left="2dp" android:bottom="2dp" android:top="2dp"&gt; &lt;bi...
0debug
static int v9fs_synth_opendir(FsContext *ctx, V9fsPath *fs_path, V9fsFidOpenState *fs) { V9fsSynthOpenState *synth_open; V9fsSynthNode *node = *(V9fsSynthNode **)fs_path->data; synth_open = g_malloc(sizeof(*synth_open)); synth_open->node = node; node->open_count...
1threat
static int escape124_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { int buf_size = avpkt->size; Escape124Context *s = avctx->priv_data; AVFrame *frame = data; GetBitContext gb; unsigned ...
1threat
Navigation Drawer item remains selected Android : <p>My navigation drawer keeps showing the last selected item.Is there any way to remove it.I want that if the user is at Home page, the navigation drawer items should be non-highlighted.</p> <p>I have tried </p> <pre><code>drawer.setSelected(false); </code></pre> <p>...
0debug
hello can soomebody help me with timing events in my simon memory game : http://codepen.io/furball/pen/egGPeZ?editors=0010hello can soomebody help me with timing events in my simon memory game I''ve tried using setTimeout but i dont know which events to time and how much time to set so that theyre distinguishable. ...
0debug
static int object_create(QemuOpts *opts, void *opaque) { const char *type = qemu_opt_get(opts, "qom-type"); const char *id = qemu_opts_id(opts); Object *obj; g_assert(type != NULL); if (id == NULL) { qerror_report(QERR_MISSING_PARAMETER, "id"); return -1; } ob...
1threat
Procedure is not working in the way it should? : <p>I've been told to write a procedure to find the last position of a substring in a string. It seems to be outputing false information and I'm not sure where I've gone wrong.</p> <p>Can anyone help?</p> <pre><code>def find_last(s, c): last_position = -1 while...
0debug
Ruby Prime number Sum : num = 1 last = 100 while (num <= last) condition = true x = 2 while (x <= num / 2) if (num % x == 0) condition = false break end x = x + 1 end if condition puts num.to_s end num = num + 1 end ...
0debug
static int serial_load(QEMUFile *f, void *opaque, int version_id) { SerialState *s = opaque; if(version_id > 2) return -EINVAL; if (version_id >= 2) qemu_get_be16s(f, &s->divider); else s->divider = qemu_get_byte(f); qemu_get_8s(f,&s->rbr); qemu_get_8s(f,&s-...
1threat
void ff_rv34dsp_init_neon(RV34DSPContext *c, DSPContext* dsp) { c->rv34_inv_transform = ff_rv34_inv_transform_noround_neon; c->rv34_inv_transform_dc = ff_rv34_inv_transform_noround_dc_neon; c->rv34_idct_add = ff_rv34_idct_add_neon; c->rv34_idct_dc_add = ff_rv34_idct_dc_add_neon; }
1threat
is sql server create dynamic table valued function? : Can any one explain this T-sql ode : select * from (select getdate() ) as func(param) you can copy & paste the code, and then run it
0debug
Retrofit 2.0 - How to get response body for 400 Bad Request error? : <p>So when I make a POST API call to my server, I get a 400 Bad Request error with JSON response.</p> <pre><code>{  "userMessage": "Blah", "internalMessage": "Bad Request blah blah", "errorCode": 1 } </code></pre> <p>I call it by </p> <p...
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
Sorting Excel VBA Macro : I'm looking for sorting a column in excel using a macro based on following criteria. I'm giving a sample below. Can you please let me know an algorithm to sort accordingly. [Sort Sample][1] [1]: https://i.stack.imgur.com/FPvXQ.jpg
0debug
int decode_luma_intra_block(VC9Context *v, int mquant) { GetBitContext *gb = &v->s.gb; int dcdiff; dcdiff = get_vlc2(gb, v->luma_dc_vlc->table, DC_VLC_BITS, 2); if (dcdiff) { if (dcdiff == 119 ) { if (mquant == 1) dcdiff = g...
1threat
Can this code be realigned? : <p>I have this code for a falling petal effect. The original code is not mine, I know nothing about coding beyond how to maybe change a few things like image (as I've done with this version of the code), but I'm wondering if it's possible to make it appear to fall on only the left side of ...
0debug
Angular pass resolve data to child-routes : <p>i have the following Component Structure</p> <ul> <li>project <ul> <li>edit-project</li> <li>sub-ressource1</li> <li>sub-ressource2</li> <li>sub-ressource3</li> </ul></li> </ul> <p>So my routing looks like this:</p> <pre><code>const childroutes = [ { path: '', ...
0debug
float32 float32_round_to_int( float32 a STATUS_PARAM) { flag aSign; int16 aExp; bits32 lastBitMask, roundBitsMask; int8 roundingMode; float32 z; aExp = extractFloat32Exp( a ); if ( 0x96 <= aExp ) { if ( ( aExp == 0xFF ) && extractFloat32Frac( a ) ) { return pr...
1threat
static void iter_func(QObject *obj, void *opaque) { QInt *qi; fail_unless(opaque == NULL); qi = qobject_to_qint(obj); fail_unless(qi != NULL); fail_unless((qint_get_int(qi) >= 0) && (qint_get_int(qi) <= iter_max)); iter_called++; }
1threat
BlockJobInfo *block_job_query(BlockJob *job) { BlockJobInfo *info = g_new0(BlockJobInfo, 1); info->type = g_strdup(BlockJobType_lookup[job->driver->job_type]); info->device = g_strdup(bdrv_get_device_name(job->bs)); info->len = job->len; info->busy = job->busy; info->pa...
1threat
How to add up items in check boxes in c#? : So I'm making a coffee shop (don't ask why :D) and I have 3 items right now with prices https://gyazo.com/8944d8097223667d44095b1c5db8ceeb and I made a list box which lists the ticked boxes. Now I want to create a label or something which says "Total cost:__" and the prices a...
0debug
Asm: Moving assembly instructions to specific address : <p>Well, I am trying to find an assembly instruction that moves whole instructions to a specific address(which is independent of the size of the instruction). If there is no such instruction, could anybody give me some ideas on how multithreading could be achieved...
0debug
how can i fix SyntaxError: cannot use absolute path on element : I'm getting the error when i define the showing variable. def crawl(name, state, page=1): params={'search_terms': name, 'geo_location_terms': state, 'page': page} data = requests.get(SEARCH_URL, params=params).text tree...
0debug
Android Emulator inside Android Studio too Slow : <p>The Android Emulator (inside Android Studio) that we use to run our developing app is too slow and as a consequence of that, it is very difficult for us to test the app every time, when we even make slightest changes to it.</p> <p>We have changed some configurations...
0debug
Brace-or-equal-initializers default value in child doesn't seem work : <p>I try understand what's going on here, why <code>bar</code> doesn't have default value for <code>name</code> property</p> <pre><code>#include &lt;string&gt; struct Foo { std::string name = "foo default value"; std::size_t number = 23; }...
0debug
Using HMAC SHA256 in Ruby : <p>I'm trying to apply HMAC-SHA256 for generate a key for an Rest API.</p> <p>I'm doing something like this:</p> <pre><code>def generateTransactionHash(stringToHash) key = '123' data = 'stringToHash' digest = OpenSSL::Digest.new('sha256') hmac = OpenSSL::HMAC.digest(digest, key, d...
0debug
How can I successfully store and load data from a game character? I'm not sure what's wrong : I was wrote a script that combines whale characters to create a new character. However, it is difficult to save and load data from a list of names, levels and locations of the newly created characters. Whale data does not s...
0debug
Insert 3d objects (.obj) in WPF project : <p>I'm beginer in WPF, and i need to insert 3d objects (.obj) in the project and do some animations on theme. I use Visual Studio 2015.</p> <p>Can you tell me the best practice? Thank you.</p>
0debug
i can add a data and i can only see through phpmyadmin. : <p>here is the front end of it. and this is the back end <a href="http://localhost/phpmyadmin/#PMAURL-6:sql.php?db=bims&amp;table=personal_info&amp;server=1&amp;target=&amp;token=8254c6ededd52ca5284d30cf084621b9" rel="nofollow">http://localhost/phpmyadmin/#PMAUR...
0debug
How to convert Any? to Data in swift : <p>I need to convert from type <code>Any?</code> to <code>Data</code>. </p> <p>something like this</p> <pre><code>func getItem(item:Any?) { let data = convertToData(item) } </code></pre>
0debug
Does Firefox have an offline throttling mode/disable network feature? : <p>I'm doing some front end work and I need to test how the program reacts when it loses a network connection. Firefox has a "Work offline" setting but that drops the connection for every tab -- I only want to disable the network connection for a s...
0debug
void qemu_iovec_concat_iov(QEMUIOVector *dst, struct iovec *src_iov, unsigned int src_cnt, size_t soffset, size_t sbytes) { int i; size_t done; assert(dst->nalloc != -1); for (i = 0, done = 0; done < sbytes && i < src_cnt; i++) { if (soffset ...
1threat
Delphi 10.How to format date time? : I have a question,how can I format this date-time in delphi `WED 16/11/2016 IT 15:26`.This is a value from XML and i want just 16/11/2016 15:26.Thank you.
0debug
Bypass Android's hidden API restrictions : <p>Starting with Android Pie, <a href="https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces" rel="noreferrer">access to certain hidden classes, methods and fields was restricted</a>. Before Pie, it was pretty easy to use these hidden ...
0debug
What is the difference between initState and a class constructor in Flutter? : <p>I read the documentation but it is not clear.</p> <p>It states "[initState is] Called when this object is inserted into the tree."</p> <p>When a widget is inserted into a tree, it means it has been created, which means the class constru...
0debug
static void device_set_bootindex(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { BootIndexProperty *prop = opaque; int32_t boot_index; Error *local_err = NULL; visit_type_int32(v, name, &boot_index, &local_err); if (local_err) { ...
1threat
int configure_filtergraph(FilterGraph *fg) { AVFilterInOut *inputs, *outputs, *cur; int ret, i, simple = !fg->graph_desc; const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter : fg->graph_desc; avfilter_graph_free(&fg->graph); if (!(fg->graph ...
1threat
exception 'NSInvalidArgumentException' NSHealthUpdateUsageDescritption : <p>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSHealthUpdateUsageDescription must be set in the app's Info.plist in order to request write authorization.'</p> <p>Info.plist has this entry</p> <pre><code>&lt;...
0debug
TaskStackBuilder.addParentStack not working when I was building a notification : <p>I did everything as the official docs writes.But when i navigate backwards,the MainActivity(parent) doesn't open.Instead, the application closes.</p> <p><strong>here is my code:</strong></p> <pre><code>Intent resultIntent = new Intent...
0debug
android studio logcat error ... how to resolve the following error : Could not find method android.widget.LinearLayout$LayoutParams.<init>, referenced from method android.support.design.widget.AppBarLayout$LayoutParams.<init>
0debug
static void select_vgahw (const char *p) { const char *opts; vga_interface_type = VGA_NONE; if (strstart(p, "std", &opts)) { if (vga_available()) { vga_interface_type = VGA_STD; fprintf(stderr, "Error: standard VGA not available\n"); exit(0); } else if (strsta...
1threat
void stream_start(BlockDriverState *bs, BlockDriverState *base, const char *base_id, BlockDriverCompletionFunc *cb, void *opaque, Error **errp) { StreamBlockJob *s; Coroutine *co; s = block_job_create(&stream_job_type, bs, cb, opaque, errp); if (!s) { ...
1threat
Why is this one line crashing my script? : I have a script that works fine when in a .pyw, but when converted to an .exe, I've found that this one single line seems to crash the program: `firstplan = subprocess.check_output(["powercfg", "-list"], shell=True ).split('\n')[3]` Does anybody have any idea why? If I c...
0debug
Revert a merge commit from a protected branch on GitHub.com : <p>We have protected our develop branch on GitHub so that nobody downstream can push their commit directly. The commits need to go through specific feature branch and get merged through a pull request.</p> <p>There came a scenario where a feature branch is ...
0debug
Angular 4 display current time : <h1>What is the correct (canonical) way to display current time in angular 4 change detection system?</h1> <p>The problem is as follows: current time changes constantly, each moment, by definition. But it is not detectable by Angular 4 change detection system. For this reason, in my op...
0debug
How to change default black color of Grafana : <p>As the Grafana Dashboard comes with Default black back ground color. It is possible to change the color to some other color of user choice?</p>
0debug
I dont understand why I am getting ArrayIndexOutOfBoundsException? : <p>I keep getting ArrayIndexOutOfBoundsException. I tried to resize all the arrays and traced my code but nothing seems to pop up to me!</p> <p>I am comparing the numbers between arr and brr. I am trying to print out the numbers that are in brr but n...
0debug
static void test_cancel(void) { WorkerTestData data[100]; int num_canceled; int i; test_submit_many(); for (i = 0; i < 100; i++) { data[i].n = 0; data[i].ret = -EINPROGRESS; data[i].aiocb = thread_pool_submit_aio(pool, long_cb, &data[i], ...
1threat
everytime i run my code i get the error. "JSON.typeMismatch(JSON.java:111)". how can I parse a JSON object wrapped with an array? here is my code : > package com.communications.dell.pullbw; > > import android.content.Context; import android.os.AsyncTask; import > android.support.v7.app.AppCompatActivity; import and...
0debug
static inline int get_chroma_qp(int chroma_qp_index_offset, int qscale){ return chroma_qp[av_clip(qscale + chroma_qp_index_offset, 0, 51)]; }
1threat
How to find average of unique rows in python : I want to find the average of unique values using data frames in python For example I have a dataset as follows [c1] [c2] foo 3.2 bar 4.3 foo 3.0 foo 2.3 bar 4.5 foo 1.9 bar 4.4 I want ou...
0debug
It needs to connect to a database, but it doesn't. : <pre><code>&lt;?php session_start(); $host="localhost"; $username="root"; $password=""; $db_name="registrering"; $tbl_name="users"; $conn = mysqli_connect($host, $username, $password, $db_name); if(!$conn) { die("Connection failed: " . mysqli_connect_error()); } ...
0debug
Check if webpage contains text : <p>I am getting a webpage using <code>file_get_contents();</code>:</p> <pre><code>$file = file_get_contents('http://example.com'); </code></pre> <p>How do I check if the webpage contains the text 'hello' or 'bye'</p>
0debug
Is there a way to make Swift be compiled ignoring the errors? : So, yeah. The title says everything, basically. If you, for example, are writing a class that is yet unused in your application and have errors in it, or if the compiler is just being dumb with all those safety measures, can you compile it anyway? Can you ...
0debug
phpMyAdmin AUTO_INCREMENT Uncontrolled Increase : I'm adding a new record using php to the table in the database, but the AUTO_INCREMENT value is getting ridiculously higher. This is for a new Linux server, running MySQL 5, PHP 7.6 and Apache 2. @$add_user = mysqli_query($conn, "INSERT INTO users(username, em...
0debug
OAuth2.0 implementation facing Request body has not been specified issue : I am seeing an error when i am executing my post call httpClient.executeMethod(post);It says 4800 [main] DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body has not been specified
0debug
Menu item goes to second activity but does not load content (Android Studio) : So I have a Main Activity with the default activity which has the menu feature. I went to the MainActivity.Java file and entered the code in the auto-generated 'if' statement for all buttons on the menu and when i run it nothing loads. I tr...
0debug
How to resolve Gradle plugin requires Studio 3.0 minimum : <p>I am getting <code>Error:This Gradle plugin requires Studio 3.0 minimum</code> when importing project<br> Project repo: <a href="https://github.com/chrisbanes/cheesesquare" rel="noreferrer">https://github.com/chrisbanes/cheesesquare</a><br> I had tried menti...
0debug
PPC_OP(update_nip) { env->nip = PARAM(1); RETURN(); }
1threat
xcode 8.3 framework not found FileProvider for architecture armv7 : <p>When I'm using xcode 9 beta 6 building a react-native project, it works fine. </p> <p>But after I change to xcode 8.3, it builds failed, and shows me these information: </p> <pre><code>ld: framework not found FileProvider for architecture armv7 cl...
0debug
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat
why the elements of array changed after sort,C++,C : the elements of the array changed ,and became some numbers which are never being input #include <stdlib.h> #include <string.h> #define MAX_SIZE 1000 int cmp(int a, int b) { return a>b; } void sort(int *data, int ...
0debug
Visitor *qmp_input_visitor_new(QObject *obj, bool strict) { QmpInputVisitor *v; assert(obj); v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.start_struct = qmp_input_start_struct; v->visitor.check_struct = qmp_input_check_struct; v->visitor.end_struct = qmp...
1threat
static void tracked_request_begin(BdrvTrackedRequest *req, BlockDriverState *bs, int64_t sector_num, int nb_sectors, bool is_write) { *req = (BdrvTrackedRequest){ .bs = bs, .sector_num = sect...
1threat
static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) { DVVideoContext *s = avctx->priv_data; DVwork_chunk *work_chunk = arg; int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, last_index; int y_stride, linesize; DCTELEM *block, *block1; int c_offset; u...
1threat
Andriod : How to Open Fragemnet2 Which is in Activity2 From Fragment Button in Activity1 : > I have Been Trying alot Unable to do it pls help out... I have Two > Fragments fragment1 and fragment2 Activity1 as Fragement1 -> in this > fragemnet one there is a Button on it. Onclick of that Button the > Fragemen...
0debug
Architect an API layer : <p>Broad, general question:</p> <p>We have an app that is quickly approaching legacy status. It has three clients: Windows app, browser (web site) and mobile. The data access layer is convoluted at best and has grown organically over the years.</p> <p>We want to re-architect the whole thing....
0debug
void json_start_array(QJSON *json, const char *name) { json_emit_element(json, name); qstring_append(json->str, "[ "); json->omit_comma = true; }
1threat
not able to call CFHTTP call in coldfusion : I am trying to call CFHTTP call from ColdFusion but it's not calling. <cfhttp url="https://apracareers.localhost/be/index.cfm?event=apm.ExecuteRuleAndActionInApmApi&testExecID=1CCDBEBA-3892-8ED2-F158-A42B9D79317F" method="POST" resolveurl="no" charset="utf-8" > <c...
0debug
Angular Mat Table Error: Missing definitions for header and row : <p>I am using MatTable from Angular Material 5.2.5. I trying to populate the table with data which is got through a server request.</p> <p>The UI</p> <pre><code> &lt;mat-table [dataSource]="dataSource"&gt; &lt;ng-container matColumnDef="number"&gt...
0debug
int do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data) { MigrationState *s = migrate_get_current(); const char *p; int detach = qdict_get_try_bool(qdict, "detach", 0); int blk = qdict_get_try_bool(qdict, "blk", 0); int inc = qdict_get_try_bool(qdict, "inc", 0); const char *u...
1threat
Combine to powerpoints slide by slide? : I'm trying to find a way to combine two big powerpoints slide by slide: PPT1: slide 1A - slide 2A - slide 3A - ... slide 100A PPT2: slide 1B - slide 2B - slide 3B - ... slide 100B --> PPT Merged: Slide 1A - Slide 1B - Slide 2A - Slide 2B - ... To be honest, I have no clu...
0debug
background Image gone compressed when keyboard is open : I am making signup page using this image background. [Background image][1] [1]: https://i.stack.imgur.com/huxGd.png It Look like: [Signup page][2] [2]: https://i.stack.imgur.com/XGvyJ.jpg but when i focus edittext and keyboard is opened, backgro...
0debug
How to properly close and reopen Room Database : <p>Hello I have 2 apps that rely on making and restoring the backups of the app's databases just by copying the databases files in and out the sdcard and am having a hard time figuring out how to reopen the Room Database singleton after closing it to make the databases' ...
0debug
JSON converted from JS can't be decoded by PHP : <p>I am sending array as POST request which is converted to JSON using <code>JSON.stringify()</code>.</p> <p>However, when I try to decode in PHP, it throws me some error.</p> <pre><code>// JS var arr1 = ['a', 'b', 'c', 'd', 'e']; JSON.stringify({data: arr1}) </code></...
0debug
How to change the size of R plots in Jupyter? : <p>I am wondering how to configure Jupyter to plot a smaller figure within R kernel.</p> <p>I have tried using <code>options(repr.plot.width = 1, repr.plot.height = 0.75, repr.plot.res = 300)</code>, but the result is kinda messy. It is changing the size of the plot R pr...
0debug