problem
stringlengths
26
131k
labels
class label
2 classes
static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width, unsigned x, unsigned y, unsigned w, unsigned h) { int i; int step = 3; dst += segment_width * (step * x + y * dst_linesize); w *= segment_width * step; h *= segment_wi...
1threat
Could not execute onclick function using jquery : The onclick event is unable to execute using Jquery. I am explaining my code below. <input type="checkbox" id="carsval" value="1" name="carsval" <?php if($isCar==1){echo 'checked="checked"';} ?> > <script type="text/javascript"> $(document...
0debug
How do you pass variables to pageQuery : <p>I have this page in Gatsby:</p> <pre><code>import React from 'react' import Link from 'gatsby-link' import IntroPartial from '../partials/themes/intro' export default class ThemeTemplate extends React.Component { render(){ const theme = this.props.pathContext.theme ...
0debug
Javascript trigger submit button : <p>I already tried to googled it but nothing helped me.<br> I want to trigger the following button: </p> <pre><code>&lt;input class="btn btn_large btn_green" value="Go" type="submit"&gt; </code></pre> <p>If the element would be an id this would work like a charm: </p> <pre><code>...
0debug
abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8) { abi_long ret; struct stat st; struct statfs stfs; void *p; #ifdef D...
1threat
static void gif_copy_img_rect(const uint32_t *src, uint32_t *dst, int linesize, int l, int t, int w, int h) { const int y_start = t * linesize; const uint32_t *src_px, *src_pr, *src_py = src + y_start, *dst_py = dst + y_start; const ...
1threat
static int vb_decode_framedata(VBDecContext *c, const uint8_t *buf, int offset) { uint8_t *prev, *cur; int blk, blocks, t, blk2; int blocktypes = 0; int x, y, a, b; int pattype, pattern; const int width = c->avctx->width; uint8_t *pstart = c->prev_frame; uint8_t *pend = c->prev_...
1threat
jquery onclick submit not working properly : <p>I am new to stackoverflow.</p> <p>I am using jQuery for an application. Because of some reasons the onclick submit is not working to change the color of the submit button.</p> <p>Here's a minimal demonstration of my problem.</p> <p><div class="snippet" data-lang="js" d...
0debug
void qemu_system_vmstop_request(RunState state) { vmstop_requested = state; qemu_notify_event(); }
1threat
void virtio_blk_data_plane_destroy(VirtIOBlockDataPlane *s) { if (!s) { return; } virtio_blk_data_plane_stop(s); blk_op_unblock_all(s->conf->conf.blk, s->blocker); error_free(s->blocker); object_unref(OBJECT(s->iothread)); qemu_bh_delete(s->bh); g_free(s); }
1threat
connect and withRouter issue : <p>I am using Redux and React for my project. I have some Routes in App.js. I also use the connect function in react-redux in my project. To prevent update blocking issue, I usually wrapped my component in this way</p> <pre><code>withRouter(connect(mapStateToProps, mapDispatchToProps)(Ap...
0debug
Changing the www. part of the url : This may be simple, but im not sure how I can change my sites www. To something else. For example: www.netflix.com help.netflix.com Please let me know how I can change it for a specific directory. Thanks
0debug
int decode_luma_residual(const H264Context *h, H264SliceContext *sl, GetBitContext *gb, const uint8_t *scan, const uint8_t *scan8x8, int pixel_shift, int mb_type, int cbp, int p) { int i4x4, i8x8; int qscale = p == 0 ? sl->qscale :...
1threat
General function for two List<> : I have two List<> with the same field that I need to edit. How to write a common function for these lists? public List<?> CutField(List<?> list) { foreach(var element in list) { element.Field = // ; } return List<?>; ...
0debug
Will CLR check the whole inheritance chain to determine which virtual method to call? : <p>The inheritance chain is as follows:</p> <pre><code>class A { public virtual void Foo() { Console.WriteLine("A's method"); } } class B:A { public override void Foo() ...
0debug
How do you create this same background effect on this page? : <p>Follow the link: <a href="http://andersnoren.se/themes/hitchcock/" rel="nofollow noreferrer">enter link description here</a></p> <p>Thank you!</p>
0debug
static void omap_pin_cfg_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque; uint32_t diff; if (size != 4) { return omap_badwidth_write32(opaque, addr, value); } ...
1threat
NOt able to check empty string : #include<cstdio> #include<cstring> using namespace std; int main() { int t,l; char a[22]; a[0]='0'; for(t=1;t<=20;t++) { l=1; scanf("%s",a+1); if(strlen(a)>1) l=strlen(a); printf("%d\n",l...
0debug
how to refresh cloud firebase database ..sometimes it shows old values : when i open the page sometimes it shows old values of cloud firebase so for that i need when activity opens firstly it should refresh and then proceed. I tried to refresh it but its not working.. mfirestore.collection("Design1").addSnapshotList...
0debug
Teamcity trigger build on new branch without a new commit : <p>I'm using TeamCity 2017.1.4 along with GitVersion.</p> <p>The teamcity project itself consists of many build configurations the first of which is to run GitVersion and then all subsequent steps take a snapshot dependency on this step and pull the version f...
0debug
static void usbredir_log_data(USBRedirDevice *dev, const char *desc, const uint8_t *data, int len) { int i, j, n; if (dev->debug < usbredirparser_debug_data) { return; } for (i = 0; i < len; i += j) { char buf[128]; n = sprintf(buf, "%s", desc); for (j...
1threat
Can anyone help to create Regular expression to extract a value from the string response : Please help to find the regular expression to extract the Value Tag from the following response <CustomFieldList><CustomField><Name>OFFER_META_DATA</Name><Value>SE7gOMOEOfvKjka8b+8k4SqccKEAB8ZjUqDl0Mv7OZeKEITd0l2rAFAL1XAxgzE8...
0debug
static av_cold int tta_decode_init(AVCodecContext * avctx) { TTAContext *s = avctx->priv_data; int total_frames; s->avctx = avctx; if (avctx->extradata_size < 22) return AVERROR_INVALIDDATA; init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8); if (show_...
1threat
static long gethugepagesize(const char *path, Error **errp) { struct statfs fs; int ret; do { ret = statfs(path, &fs); } while (ret != 0 && errno == EINTR); if (ret != 0) { error_setg_errno(errp, errno, "failed to get page size of file %s", path)...
1threat
Rstudio on MAC OS X EI Capitan Package "Rsymphony" for " image not found"How can I solve it Thanks for any answer : Rstudio on MAC OS X EI Capitan cannot library the Package "Rsymphony" ,for the reason "Reason: image not found" , How can I solve the thorny problem? Thanks for any answer...
0debug
How to include a CDN to VueJS CLI without NPM or Webpack? : <p>I'm new on VueJS ans Webpack. I've created a project with VueJS CLI and trying to work with it. I need to insert an CDN to my code.</p> <p>When working with standard HTML, CSS &amp; JS solutions, I'd include CDNs like this: </p> <p><div class="snippet" da...
0debug
void mips_r4k_init (ram_addr_t ram_size, int vga_ram_size, const char *boot_device, DisplayState *ds, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { char buf[1024]; unsigned long bio...
1threat
static void nfs_process_read(void *arg) { NFSClient *client = arg; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLIN); nfs_set_events(client); aio_context_release(client->aio_context); }
1threat
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size) { int id; if (size < 14) return AVERROR_INVALIDDATA; id = avio_rl16(pb); codec->codec_type = AVMEDIA_TYPE_AUDIO; codec->channels = avio_rl16(pb); ...
1threat
How can I get the user to type multiple inputs? : <p>I want to write a simple code to find the area of a triangle using the formula: A=(1/2)b(h) where b is the base and h is the hieght. How can I ask the user to enter 2 inputs, b and h?</p>
0debug
Forcing operator_ (underscore) : <p>This question is <em>for fun</em>, I know that I cannot define <code>operator_</code>.</p> <p>However, I'd <strong>really</strong> like to "bend" this rule, having something like the following as valid (with <em>valid</em> being loosely defined!).</p> <pre><code>T result = somevar ...
0debug
static int dxva2_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const VC1Context *v = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_picture_context *ctx_p...
1threat
static void send_framebuffer_update_raw(VncState *vs, int x, int y, int w, int h) { int i; uint8_t *row; row = ds_get_data(vs->ds) + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds); for (i = 0; i < h; i++) { vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds)); ...
1threat
Arrange the data in matlab : <p>I have 16500 rows and 1 column data in my file. I want 1st 50 rows data in 1st column then next 50 rows data in 2nd column likewise continue for my all data set. How can I do this in matlab.</p>
0debug
How to read text file and insert to database vbsript : I have lot of text file with content below: LOG_NAME=LOGX1245; LOT_NO=NA; STEP=NA; NO=CS84E869500115; TIME_START=20190506 094715; TIME_END=20190506 094715 I need to read the text file and insert to database. The column name is t...
0debug
How to add a new audio (not mixing) into a videos using ffmpeg (Batch Processing)? : <p>I'm looking for a solution to add a new audio (not mixing) into a multiple videos using ffmpeg.</p> <p>I have 3 directories:</p> <p><strong>1</strong>. <strong>videos</strong> (contains *.mp4 videos)</p> <p><strong>2</strong>. <s...
0debug
Why does this code using fork() work? : <p>I've this code that executes some code depending of if the active process is the parent or the child process in an infinite loop:</p> <pre><code>pid_t childPID; childPID=fork(); while (1) { if (childPID &gt;=0) { if (childPID==0) { [do ch...
0debug
App crashes on "startActivity(intent);" : <p>I want to start a new Activity in the "inntent()" function used in the "buttonn()" function. The app works fine but when I click the button to trigger the intent the app crashes everytime. I've tried different ways to start the intent and changed some things in the Manifest ...
0debug
Xcode 8 provisioning profile won't download : <p>I recently updated to Xcode 8 and as I click on "download" option next to provisioning profile in Xcode/Preferences/Accounts/View Details menu it changes to gray and does not download. After restarting Xcode the download button is again clickable and the problem persists...
0debug
how to convert string with format HH:MM:SS to NSDate objective c? : Stored time in the string format HH:MM:SS from json responce. I want to convert it NSDate for local notification. tried NSString *datestr = @"21:00:00"; NSDateFormatter *dateformat = [[NSDateFormatter alloc]init]; [dateformat ...
0debug
void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num) { uint64_t r; switch (num) { case 0x500: qemu_mutex_lock_iothread(); r = s390_virtio_hypercall(env); qemu_mutex_unlock_iothread(); break; case 0x44: r = 0...
1threat
Getting Boolean from ResultSet : <p>ResultSet#getBoolean seems to return false when it's null.<br> Is there an easy way to get a <code>Boolean</code> (not <code>boolean</code>) from a <code>ResultSet</code>?</p>
0debug
How to Catch Invalid Type error during mapping of JSON Result to Realm object : <p>I have a realm Model like</p> <pre><code>class User: Object { @objc dynamic var _id : String? = "" @objc dynamic var deviceCount = 0.0 @objc dynamic var message : String? @objc dynamic var user_name : String? @objc d...
0debug
select n rows, evaluate a condition, swap the columns if met using R : <p>I have a situation that I am curious to know how R can handle efficiently. let's say I have a data set that has two columns-V1 and V2. Now, I want a way to evaluate column V1 and check in 3 rows at a time (i.e rows 1 to 3, then 4 to 6 and so on) ...
0debug
Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored' : <p>I received these errors when i started new project in android studio.</p> <blockquote> <p>Error:(1) Error retrieving parent for item: No resource found that matches ...
0debug
Return makes integer from pointer without a cast (simple for loop) : <p>Why does this C code return the warning in the title?</p> <pre><code>char n_zeroes(int n) { char str[n]; int i; for (i = 0; i &lt; n; i++) { str[i] = '0'; } return str; } </code></pre>
0debug
static void puv3_load_kernel(const char *kernel_filename) { int size; assert(kernel_filename != NULL); size = load_image_targphys(kernel_filename, KERNEL_LOAD_ADDR, KERNEL_MAX_SIZE); if (size < 0) { hw_error("Load kernel error: '%s'\n", kernel_filename); } ...
1threat
def no_of_subsequences(arr, k): n = len(arr) dp = [[0 for i in range(n + 1)] for j in range(k + 1)] for i in range(1, k + 1): for j in range(1, n + 1): dp[i][j] = dp[i][j - 1] if arr[j - 1] <= i and arr[j - 1] > 0: dp[i][j] += dp[i // arr[j - 1]][j - 1] + 1 return dp[k][n]
0debug
static void aux_bus_class_init(ObjectClass *klass, void *data) { BusClass *k = BUS_CLASS(klass); k->print_dev = aux_slave_dev_print; }
1threat
static int64_t try_fiemap(BlockDriverState *bs, off_t start, off_t *data, off_t *hole, int nb_sectors, int *pnum) { #ifdef CONFIG_FIEMAP BDRVRawState *s = bs->opaque; int64_t ret = BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start; struct { struct fiemap fm; ...
1threat
how bad is it to use empty div and is there a difference between empty div and span as block elements? : <p>Well, as the title says: is it consider as bad practice to use empty divs to style the page? of course if it's performance wise(instead of using images for example).</p> <p>And second question is: is there any d...
0debug
int attribute_align_arg avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt) { int ret; if (!avcodec_is_open(avctx) || !av_codec_is_decoder(avctx->codec)) return AVERROR(EINVAL); if (avctx->internal->draining) return AVERROR_EOF; if (!avpkt || !avpkt->size) { ...
1threat
How to deploy a create-react-app to a web host (ex. Siteground)? : <p>I'm building a react project using create-react-app and am trying to figure out how to deploy my code to my hosting server on Siteground. </p> <p>Does anyone know the best way to do this? Do I import my build folder through FTP? Can I automate the...
0debug
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; ...
1threat
Compare string and array c++ : <p>Im trying to compare the character count of a string with the index elements of an array, but am having trouble. For example, if the userInput equals XX, the output should be:</p> <p>XX is not in the array at position 0.</p> <p>XX is in the array at position 1.</p> <p>XX is not in t...
0debug
error "Could not get BatchedBridge, make sure your bundle is packaged properly" on start of app : <p>Trying to create a react-native project on Android 4.4.2 I get this error screen</p> <p><a href="https://i.stack.imgur.com/WGu6C.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WGu6C.png" alt="said error"></a...
0debug
Typescript: How to export a variable : <p>I want to open 'file1.ts' and write: </p> <pre><code>export var arr = [1,2,3]; </code></pre> <p>and open another file, let's say 'file2.ts' and access directly to 'arr' in file1.ts: </p> <p>I do it by: </p> <pre><code>import {arr} from './file1'; </code></pre> <p>However, ...
0debug
Grails security without spring : <p>Can someone provide code for registering account,loggin in and out from an account but without spring?</p>
0debug
CORS not working with route : <p>I have an issue with an endpoint on my web api. I have a POST method that is not working due to:</p> <blockquote> <p>Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="htt...
0debug
How to set ENV var in Heroku preview app postdeploy script : <p>I want to set the <code>HOST</code> env var to <code>$HEROKU_APP_NAME.herokuapps.com</code> on a preview app. It doesn't look like I can do this in <code>app.json</code> since this is a computed value. </p> <p>I was hoping to do it in a "postdeploy" scr...
0debug
bool migrate_rdma_pin_all(void) { MigrationState *s; s = migrate_get_current(); return s->enabled_capabilities[MIGRATION_CAPABILITY_RDMA_PIN_ALL]; }
1threat
static int vorbis_parse_audio_packet(vorbis_context *vc) { GetBitContext *gb = &vc->gb; FFTContext *mdct; unsigned previous_window = vc->previous_window; unsigned mode_number, blockflag, blocksize; int i, j; uint8_t no_residue[255]; uint8_t do_not_decode[255]; vorbis_mapping *ma...
1threat
Modify values in a key values pers using Python : <p>I have a text file with key value pairs, for example: </p> <pre><code>#Version number Version=20 #Mode name Mode=Slow list=false type=8475 </code></pre> <p>Using python, Is there an easy way to update several values in this text file or I should do a search &amp;...
0debug
Node --experimental-modules - Error: Cannot find module : <p>I am getting an error when trying to import a local file, though no problem when using npm packages.</p> <h1>server.js</h1> <pre><code>import express from 'express' import next from 'next' import apis from './src/server/api' </code></pre> <h1>api.js</h1> ...
0debug
static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels, ptrdiff_t pitch) { uint32_t bit_cache; uint8_t *list[63]; uint32_t *dst; const uint32_t *codebook; int entries[6]; int i, j, m, n; int stages; unsigned mean; ...
1threat
How to rename a root field in json string without affecting inner fields of same name using regexp in golang? : <p>I have a json raw string </p> <pre><code>{"id":"xxx","person":{"id":"yyy","name":"abc"},"box":{"id":"zzz"}} </code></pre> <p>I want to rename the field "id" in root to "uuid" without affecting the inner ...
0debug
def all_Characters_Same(s) : n = len(s) for i in range(1,n) : if s[i] != s[0] : return False return True
0debug
static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int k...
1threat
Apache Kafka Producer Broker Connection : <p>I have a set of Kafka broker instances running as a cluster. I have a client that is producing data to Kafka:</p> <pre><code>props.put("metadata.broker.list", "broker1:9092,broker2:9092,broker3:9092"); </code></pre> <p>When we monitor using tcpdump, I can see that only the...
0debug
In Influxdb, How to delete all measurements? : <p>I know <code>DROP MEASUREMENT measurement_name</code> used to drop single measurement. How to delete all measurements at once ?</p>
0debug
Getting the "Invalid module instantiation" in my FIR Verilog code - URGENT : So, my code is a sequential structure, 8 constant taps, 8 bit FIR. I used a memory to save all the input*taps, but I keep getting and error while trying to save these multiplications. I compilated it on Modelsim and got "syntax error". After, ...
0debug
R Macro with Iteration through URL : Having a problem creating a macro variable within an API call in R. I am trying to loop through a vector of zip codes and make an API call on that vector iteratively. Pretty unfamiliar with iterating through a R list that needs to be macro'd out. Familiar with sas macros where I'...
0debug
NPM: ENOENT: no such file or directory, rename : <p>I was using gulp on the project, then i decide to deleted all the dev dependencies to switch to webpack, but every time i try to install using npm is get this error:</p> <pre><code>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents)...
0debug
git: "Updates were rejected because the tip of your current branch is behind.." but how to see differences? : <p>I just finished working on a piece of code. Wanted to push and got the already famous:</p> <blockquote> <p>hint: Updates were rejected because the tip of your current branch is behind hint: its remote c...
0debug
int av_write_frame(AVFormatContext *s, AVPacket *pkt) { int ret = compute_pkt_fields2(s, s->streams[pkt->stream_index], pkt); if(ret<0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS)) return ret; ret= s->oformat->write_packet(s, pkt); if(!ret) ret= url_ferror(s->pb); return ...
1threat
argument of type 'int' is not iterable when I use tuples : I am getting this error when I run my program and I have no idea why. The error is occurring on the line that says:"if prt in migration_p[j][0] and dst in migration_p[j][1]" ``` migration_p = [(1, 3), (2, 4), (3, 3)] link = {(1, 2): 200, (1, 3): 50, (2, 3)...
0debug
How to use a GraphQL schema for JSON Schema-like data validation? : <p>We're looking into using GraphQL for version 2 of a headless CMS we're developing.</p> <p>In version 1 of this CMS, we used JSON Schema to validate each document against a schema before being saved in the database -- for example, if it's a blog art...
0debug
Fill textbox with cell value based om id : <p>I need the corresponding invoice id to be on the invoice frame called frmTrade and the rest of the data in the other textboxes..</p> <p>I am by no means an expert so any help is appreciated. I only succeeded in coloring the relevant id's red.</p> <p>No error messages, but...
0debug
How to Transfer a number in an array from one position to another in python 3.x : so I am new to coding and I would like to know how to transfer a number for example: [1,0,2,3,4] remove the one and transfer the one to two's position like [0,0,1,3,4]
0debug
static void gen_mtsr_64b(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_const_tl(SR(ctx->opcode)); gen_helpe...
1threat
I want to display none div on page reloaload or refresh e.g."loader", but I am not able to do this : http://w3programmer.cf Please visit My demo website and solution me. I want to only first time loaded this div/element. When user reload or refresh this page 2nd time this div I need to display:none;
0debug
Can someone explain me what do these operators mean in C#? : <p>Here are operators I need help with:</p> <p>% (for example A%B)</p> <p>!= (a%b != 0)</p> <p>&amp;(&amp;&amp;)</p> <p>I'm very new to C# , so please try to explain me as simple as possible.</p>
0debug
How to convert a swift string to an array? : <p>Would it be possible to loop through each character in the string, and then place each character into an array?</p> <p>I'm new to swift, and I'm trying to figure this out. Could someone write a code for this?</p>
0debug
static int pvf_read_header(AVFormatContext *s) { char buffer[32]; AVStream *st; int bps, channels, sample_rate; avio_skip(s->pb, 5); ff_get_line(s->pb, buffer, sizeof(buffer)); if (sscanf(buffer, "%d %d %d", &channels, &sample_rate, &bps) ...
1threat
void helper_evaluate_flags_alu_4(void) { uint32_t src; uint32_t dst; uint32_t res; uint32_t flags = 0; src = env->cc_src; dst = env->cc_dest; switch (env->cc_op) { case CC_OP_SUB: res = dst - src; break; case CC_OP_ADD: res = dst + src; break; default: res = env->cc...
1threat
how to store reading data in array to use it in loop : i'm facing a problem with looping throw the file array this is the code code for reading public static ArrayList<String> readData(int colNo) { Scanner sca; try { sca = new Scanner(new File("txt1.txt")); while(sca...
0debug
static void arith2_normalise(ArithCoder *c) { while ((c->high >> 15) - (c->low >> 15) < 2) { if ((c->low ^ c->high) & 0x10000) { c->high ^= 0x8000; c->value ^= 0x8000; c->low ^= 0x8000; } c->high = c->high << 8 & 0xFFFFFF | 0xFF; c->v...
1threat
How can i use For Loop initialize value start depend by the condition : [enter image description here][1] For Loop k initialize value assign if char[i] = ' ' get space then K value is assign i -1 ,Otherwise k value is start k = i value, my first condition is work if char of array get space, But when not get ...
0debug
XPATH - Selection TD next to the selected xpath table which contains SPAN : I have searched through the forums for an answer but nothing found looks at exactly what I need to do. At the moment I'm using the following XPath to locate a value in a table //table[1]/tbody/tr/td[15]/span This searches each row ...
0debug
My pl sql code is not working: : This is my code: CREATE OR REPLACE PROCEDURE log(repname in varchar2) AS PACKAGE_NAME VARCHAR2,START_TIME DATE, END_TIME DATE,STATUS; BEGIN SELECT PACKAGE_NAME ,PRCS_START_TIME ,PRCS_END_TIME,STATUS FROM CONTCL_OWNER.PROCESSLOG WHERE PACKAGE_NAME LIKE R...
0debug
VSCode hot reload for flutter : <p>I've just started playing with Flutter in VSCode. I also installed the Dart Plugin. Running the demo app I read in the terminal <a href="https://i.stack.imgur.com/hgdP1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hgdP1.png" alt="enter image description here"></a></p> <...
0debug
void vnc_disconnect_finish(VncState *vs) { int i; vnc_jobs_join(vs); vnc_lock_output(vs); vnc_qmp_event(vs, QAPI_EVENT_VNC_DISCONNECTED); buffer_free(&vs->input); buffer_free(&vs->output); #ifdef CONFIG_VNC_WS buffer_free(&vs->ws_input); buffer_free(&vs->ws_output); #en...
1threat
QDict *qdict_get_qdict(const QDict *qdict, const char *key) { return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT)); }
1threat
static void simple_varargs(void) { QObject *embedded_obj; QObject *obj; LiteralQObject decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(1), QLIT_QINT(2), QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(32), QLIT_QINT(4...
1threat
Shell script to compare file names(without extension) in a directory : <p>My requirement is I will have xml and pdf files like pairs.(e.g.,file1.xml, file1.pdf and file2.xml,file2.pdf) in same folder.</p> <p>I need to check for xml files which are not having pdf pair and move them to different folder.(e.g., if file3.x...
0debug
T-SQL Allow users to only execute stored procdures : For my database assignment I have to allow users to only execute stored procedures, I know how to allow a user to only execute a single stored procedure but not all within the database.
0debug
how to select a cell that matches another cell value vba : <p>Does anyone know how i might select any cell in a range that matches another? for Example:</p> <p>comparing range ("A9:A200") to range("B9")</p> <p>if say range ("A10") is "bellingham" and range ("B9") is also bellingham </p> <p>I want A10 to be the activ...
0debug
How to enable exit only backpress activity twice in Android studio? : I m using Android studio to code a Wordpress based news application. To make things faster I have bought a template which served most of needs. But in the app when i press back button on home or any first level screens it exits from the app. How can...
0debug
What is the main usage of index.d.ts in Typescript? : <p>I have seen some projects declaring all the types in <code>index.d.ts</code>. So that the programmer do not need to explicitly import the type from other files.</p> <pre><code>import { TheType } from './somefile.ts' </code></pre> <p>Is that the correct usage of...
0debug
static void send_msg(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMIInterface *s = ibs->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s); IPMIRcvBu...
1threat