problem
stringlengths
26
131k
labels
class label
2 classes
def minimum_Length(s) : maxOcc = 0 n = len(s) arr = [0]*26 for i in range(n) : arr[ord(s[i]) -ord('a')] += 1 for i in range(26) : if arr[i] > maxOcc : maxOcc = arr[i] return n - maxOcc
0debug
How can i return two integer from function : <p>I want create a function and return two integers: i and c. How can i do this? Thanks in advance</p> <pre><code>a++ ; if(i == 288){ a = 0 ; i-- ; b++ ; c++ ; } if(c == 5000) { i = 0 ; c = 0 ; } if(a == 1 ){ P2OUT = 0xFF ; a = 0 ; } if (b == 1){ P2O...
0debug
How can I get the events for a Facebook page? : <p>Using the latest version (2.12) of the Facebook API I'm trying to get (public) events for a page, using the Graph API Explorer.</p> <p>However, I can't seem to get it working:</p> <p><a href="https://i.stack.imgur.com/Xy0JG.png" rel="noreferrer"><img src="https://i.s...
0debug
static void mpc8_parse_seektable(AVFormatContext *s, int64_t off) { MPCContext *c = s->priv_data; int tag; int64_t size, pos, ppos[2]; uint8_t *buf; int i, t, seekd; GetBitContext gb; avio_seek(s->pb, off, SEEK_SET); mpc8_get_chunk_header(s->pb, &tag, &size); if(tag != TA...
1threat
I need the html table for the following table structure. Can any one help me? : I need the html table for the following table structure. [Table structure][1] [1]: https://i.stack.imgur.com/DRC8d.png
0debug
void css_generate_css_crws(uint8_t cssid) { if (!channel_subsys.sei_pending) { css_queue_crw(CRW_RSC_CSS, CRW_ERC_EVENT, 0, cssid); } channel_subsys.sei_pending = true; }
1threat
Enter age javascript error : <p>Can anyone tell me what's wrong with this specific code and how can I fix it? Thanks in advance. </p> <pre><code>&lt;script language=javascript type="text/javascript"&gt; toDays(21); function toDays(years) { var time; time = 365*years; return time; } document.write(...
0debug
static int buf_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, int size) { QEMUBuffer *s = opaque; return qsb_write_at(s->qsb, buf, pos, size); }
1threat
How link INPUT button display:none behavior with the label : I would link an INPUT display: none button to a label so that when I click on the label, I want to have the same behavior of my hidden INPUT button. How do you do that? Thank you in advance for your answer. Below my html5 code <label for="model1"...
0debug
i have an unidenified problem with my code : i am trying to fetch a json. while the code used to work i changed it a little and now it doesn't work. the code is supposed to exchange money. it's my first time posting so i really don't know what to do. i have almost zero experience. i am posting it because i need it for ...
0debug
const uint8_t *get_submv_prob(uint32_t left, uint32_t top) { if (left == top) return vp8_submv_prob[4 - !!left]; if (!top) return vp8_submv_prob[2]; return vp8_submv_prob[1 - !!left]; }
1threat
SQL Server: Cannot execute existing scalar function from within table-valued function : <p>I created this scalar function, without any problems.<br> But I can't execute it from another function (inline table-valued).</p> <pre><code>USE [test] GO /****** Object: UserDefinedFunction [dbo].[NameFromEnumerationID] Sc...
0debug
Is there any way to have text size change with window size? : <p>I need <code>font-size</code> to be relative to the windows size. Is there any way that I can do that?</p>
0debug
I need help to put url in javascript code in framwork codeignitor. see following code. Kindly reply me I need this one. : $.ajax({ url:"....???.....", method:"POST", data:{from_date:from_date, to_date:to_date}, success:function(data) ...
0debug
HI there i am trying to use the friend function but I am unable to access the private data members of my 2nd class : Hello there I am trying to access the private members of the class through the friend function here below my code is code is in complete #include<iostream> #include<string> #include<fs...
0debug
Is it possible to use OAuth 2.0 without a redirect server? : <p>I'm trying to create a local Java-based client that interacts with the SurveyMonkey API.</p> <p>SurveyMonkey requires a long-lived access token using OAuth 2.0, which I'm not very familiar with.</p> <p>I've been googling this for hours, and I think the a...
0debug
using PowerShell Compare row with next row in CSV : how to compare the line with next line and delete the duplicate. a. if the record before is different. (i.e. the column B change) b. and if the other of the record before changes (i.e. the column C change) either a or b condition happen the line will be keep , if t...
0debug
Can't run unit tests in Xcode 8 with earlier unit test configuration : <p>I ran into this issue after upgrading to Xcode 8. When running the tests I get this error at run time:</p> <p><code>/Users/&lt;me&gt;/work/&lt;appname&gt;/Build/Intermediates/&lt;appname&gt;.build/Debug-iphonesimulator/&lt;appname&gt;UnitTests.b...
0debug
How to typecast a struct field in Go lang : My struct: type User struct { FirstName string `json:"firstname, omitempty" validate:"required"` LastName string `json:"lastname, omitempty" validate:"required"` NumberofDays int `json:"numberofdays, string" validate:"min=0,max=100"` } Value for Numbero...
0debug
void machine_register_compat_props(MachineState *machine) { MachineClass *mc = MACHINE_GET_CLASS(machine); int i; GlobalProperty *p; if (!mc->compat_props) { return; } for (i = 0; i < mc->compat_props->len; i++) { p = g_array_index(mc->compat_props, GlobalProperty *,...
1threat
Convert csv to parquet file using python : <p>I am trying to convert a .csv file to a .parquet file.<br> The csv file (<code>Temp.csv</code>) has the following format </p> <pre><code>1,Jon,Doe,Denver </code></pre> <p>I am using the following python code to convert it into parquet</p> <pre><code>from pyspark impor...
0debug
Angular - DialogRef - Unsubscribe - Do I need to unsubscribe from afterClosed? : <p>I got asked by one of my colleagues if we need to unsubscribe from the afterClosed() Observable of a Dialog.</p> <p>We are using the takeUntil pattern to unsubscribe from all Observables on ngOnDestroy().</p> <pre><code>this.backEvent...
0debug
static void read_tree(GetBitContext *gb, Tree *tree) { uint8_t tmp1[16], tmp2[16], *in = tmp1, *out = tmp2; int i, t, len; tree->vlc_num = get_bits(gb, 4); if (!tree->vlc_num) { for (i = 0; i < 16; i++) tree->syms[i] = i; return; } if (get_bits1(gb)) { ...
1threat
void vnc_write(VncState *vs, const void *data, size_t len) { buffer_reserve(&vs->output, len); if (buffer_empty(&vs->output)) { qemu_set_fd_handler2(vs->csock, NULL, vnc_client_read, vnc_client_write, vs); } buffer_append(&vs->output, data, len); }
1threat
What is ** in Java? : What does the following statement mean? INT_MAX**1/3 For context I saw this in an Android coding challenge, where it also treats `2^11` as meaning '2 to the power of 11' (instead of 2 XOR 11), so it is possible it's pseudocode
0debug
want sql query for this senario : tbl_employee empid empname openingbal 2 jhon 400 3 smith 500 tbl_transection1 tid empid amount creditdebit date 1 2 100 1 2016-01-06 00:00:00.000 2 2 200 1 2016-01-08 00:00:00.000 3 2 100 2 ...
0debug
AudioContext how to play the notes in a sequence : <p>I have followed this <a href="http://marcgg.com/blog/2016/11/01/javascript-audio/" rel="noreferrer">tutorial</a> and come up with that code:</p> <pre><code>context = new AudioContext(); play(frequency) { const o = this.context.createOscillator(); const g = ...
0debug
static int on2avc_decode_band_types(On2AVCContext *c, GetBitContext *gb) { int bits_per_sect = c->is_long ? 5 : 3; int esc_val = (1 << bits_per_sect) - 1; int num_bands = c->num_bands * c->num_windows; int band = 0, i, band_type, run_len, run; while (band < num_bands) { band_type = ...
1threat
How to covert java into Kotlin. : I have this issue to convert java into kotlin in Android Studio if someone can help. > final EditText etAge = (EditText()) findViewById(R.id.etAge) I need to convert this into kotlin and i doesn't know a way to convert it easily.
0debug
What is Callback URL in Facebook webhook page subscription? : <p>I'm trying to stream the real time public feeds using Facebook Web-hook API. Here I'm trying to set up a page subscription in Web-hook console. There is a field called Callback URL. What is this URL about?</p> <p>I have also tried going through the docum...
0debug
static int parse_vtrk(AVFormatContext *s, FourxmDemuxContext *fourxm, uint8_t *buf, int size, int left) { AVStream *st; if (size != vtrk_SIZE || left < size + 8) { return AVERROR_INVALIDDATA; } st = avformat_new_stream(s, NULL); ...
1threat
static inline void write_back_motion(H264Context *h, int mb_type){ MpegEncContext * const s = &h->s; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride; int list; if(!USES_LIST(mb_type, 0)) fill_rectangle(&s->current_picture.ref_in...
1threat
Is it possible to open a specific app page by mail link? : <p>I'm developing an hybrid application by using Angular and Ionic and I need to setup a "reset password" flow: once the user clicks on a "reset password" button they receive a mail link to reset.</p> <p>If the mail link is clicked and the user has the app ins...
0debug
static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + stream_index; AVIOContext *bc = s->pb; int64_t pts = AV_NOPTS_VALUE; int i; ...
1threat
React - What's the best practice to refresh a list of data after adding a new element there? : <p>I am building a simple todo list. I have a form for adding a new todo list item and under it are listed all items in the todo list. When I add a new item through a form, I want to refresh the list of existing todo list ite...
0debug
How can handle principal/mirror status in for-each and switch condition in powershell : i am new in powershell i have one query # Load SMO extension [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null; # Servers to check #$sqlservers = @("$svr","$svr\$...
0debug
How to convert String e.g. "01/01/2019" to date in Java 8 : <p>I'm trying to use Java 8's DateTimeFormatter to turn strings such as "17/01/2019" into dates of exactly the same format.</p> <p>I'm currently using:</p> <pre><code>DateTimeFormatter format = DateTimeFormatter.ofPattern("dd/MM/yyyy", Locale.ENGLISH); Loca...
0debug
def find_even_Pair(A,N): evenPair = 0 for i in range(0,N): for j in range(i+1,N): if ((A[i] ^ A[j]) % 2 == 0): evenPair+=1 return evenPair;
0debug
int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan) { const char *sock; const char *group; int port, mode; sock = qemu_opt_get(opts, "sock"); group = qemu_opt_get(opts, "group"); port = qemu_opt_get_number(opts, "port", 0); mode = qemu_opt_get_numbe...
1threat
static gboolean vtd_hash_remove_by_page(gpointer key, gpointer value, gpointer user_data) { VTDIOTLBEntry *entry = (VTDIOTLBEntry *)value; VTDIOTLBPageInvInfo *info = (VTDIOTLBPageInvInfo *)user_data; uint64_t gfn = info->gfn & info->mask; return (entry->dom...
1threat
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
void helper_memalign(uint32_t addr, uint32_t dr, uint32_t wr, uint32_t mask) { if (addr & mask) { qemu_log("unaligned access addr=%x mask=%x, wr=%d\n", addr, mask, wr); if (!(env->sregs[SR_MSR] & MSR_EE)) { return; } env-...
1threat
Keras confusion about number of layers : <p>I'm a bit confused about the number of layers that are used in Keras models. The documentation is rather opaque on the matter.</p> <p>According to Jason Brownlee the first layer technically consists of two layers, the input layer, specified by <code>input_dim</code> and a hi...
0debug
void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features) { int i, config_size = 0; host_features |= (1 << VIRTIO_NET_F_MAC); for (i = 0; feature_sizes[i].flags != 0; i++) { if (host_features & feature_sizes[i].flags) { config_size = MAX(feature_sizes[i].end, config_siz...
1threat
static int usbredir_get_bufpq(QEMUFile *f, void *priv, size_t unused) { struct endp_data *endp = priv; USBRedirDevice *dev = endp->dev; struct buf_packet *bufp; int i; endp->bufpq_size = qemu_get_be32(f); for (i = 0; i < endp->bufpq_size; i++) { bufp = g_malloc(sizeof(struct bu...
1threat
Where can I find documentation on the pyparsing module? : <p>I am working through some code to integrate Anaconda environments with ArcGIS. The tutorial I'm following makes use of the pyparsing module. I'd like to better understand the module but am having difficulty finding a good overview of the commands within it. W...
0debug
static void decode_micromips32_opc (CPUMIPSState *env, DisasContext *ctx, uint16_t insn_hw1, int *is_branch) { int32_t offset; uint16_t insn; int rt, rs, rd, rr; int16_t imm; uint32_t op, minor, mips32_op; uint32_t cond, fmt, cc; insn = lduw_cod...
1threat
static int cudaupload_query_formats(AVFilterContext *ctx) { static const enum AVPixelFormat input_pix_fmts[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE, }; static const enum AVPixelFormat output_pix_fmts[] = { AV_PIX_FMT_CUDA, AV_PIX_FMT_NONE,...
1threat
Mod Rewrite - htaccess - Making a "masked/pretty" query string to be sent to a Perl script (RewriteRule RewriteCondition) : I have tried for two days to no avail. I tried and modded every RewriteRule and Condition example I could find. This sounds so simple but, not for me. Very frustrated. I know it is possible to ...
0debug
document.write('<script src="evil.js"></script>');
1threat
Please Help I am getting Segmentation Fault in this code : > Question---**Interseting Merge Sort Input--abc//first string > def//second string Output-- adbecf Input 2-- abc > defgh Output adbecfgh...
0debug
static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model, const char *name, int restricted, const char *vnetwork, const char *vhost, const char *vhostname, const char *tftp_export, const char *b...
1threat
Is it possible to show warnings instead of errors on ALL of eslint rules? : <p>As the title says, would it be possible for eslint to show warnings instead of errors on ALL of the rules? I'm using Standard JS, if that information is relevant. </p> <p>Thanks!</p>
0debug
NSAttributedString tail truncation in UILabel : <p>I'm using <a href="https://github.com/michaelloistl/ContextLabel" rel="noreferrer">ContextLabel</a> to parse @ , # and URL's. This is the best solution i found, cause it sizes correctly and dont affect performance. It firstly parses string at input and than converts it...
0debug
Jest beforeAll() share between multiple test files : <p>I have a Node.js project that I'm testing using Jest. I have several test files that have the same setup requirement. Previously, all these tests were in one file, so I just had a <code>beforeAll(...)</code> that performed the common setup. Now, with the tests ...
0debug
Slow SecureRandom initialization : <p>Suppose you do simple thing:</p> <pre><code>public class Main { public static void main(String[] args) { long started = System.currentTimeMillis(); try { new URL(args[0]).openConnection(); } catch (Exception ignore) { } Syste...
0debug
webpack loaders and include : <p>I'm new to webpack and I'm trying to understand loaders as well as its properties such as test, loader, include etc.</p> <p>Here is a sample snippet of webpack.config.js that I found in google.</p> <pre><code>module: { loaders: [ { test: /\.js$/, loader: 'bab...
0debug
VS 2017 immediate window shows "Internal error in the C# compiler" : <p>I use Visual Studio 2017 (15.6.6). When debugging, I try to evaluate simple expressions like <code>int a = 2;</code> in the immediate window. An error</p> <blockquote> <p>Internal error in the C# compiler</p> </blockquote> <p>is thrown.</p> <p...
0debug
How to reference .Net standard in T4 file? : <p>I have a .Net standard 2.0 library. In this library I have a T4 file. The file contains these rows.</p> <pre><code>&lt;# foreach (MessageType enumValue in Enum.GetValues(typeof(MessageType))) { var name = Enum.GetName(typeof(Messag...
0debug
static int sdp_read_header(AVFormatContext *s, AVFormatParameters *ap) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; int size, i, err; char *content; char url[1024]; content = av_malloc(SDP_MAX_SIZE); size = get_buffer(s->pb, content, ...
1threat
I am trying to consolidate information from Sheet1(supplier) to master Sheet1 and Sheet2(supplier) to MasterSheet2 : Friends ,need Some Help on VBA(Macros for excel) While trying to Copy SupplierFile1,File2(sheet2) to Masterfile(Sheet2) After Using Dir to Access the supplier file and copying the data from sheet2 ...
0debug
int ff_default_query_formats(AVFilterContext *ctx) { return default_query_formats_common(ctx, ff_all_channel_layouts); }
1threat
Finding a faster way of checking characters in js : <p>I'm trying to make something that gives an output based on your input. I would like it to take every letter and produce something with the next letter in the alphabet. So if I entered "Hello" it would produce "Ifmmp". The only way I can think to do this is with a s...
0debug
WebContentNotFound on refreshing page of SPA deployed as Azure Blob Static Website with CDN : <p>I have a SPA (built with angular) and deployed to Azure Blob Storage. Everything works fine and well as you go from the default domain but the moment I refresh any of the pages/routes, index.html no longer gets loaded and i...
0debug
How to add the view in browser option back into Visual Studio 2017 context menu? : <p>I've just upgraded to VS 2017 and unless I'm missing something the view in browser option on the right click menu seems to have vanished.</p> <p>Anyone know how to get it back?</p>
0debug
Runable caller does not terminate : I'v made a runable which download a big file and called it in onCreate. But it seems like onCreate is waiting for the runable to terminate. Can any one tell me what is wrong? private Handler Download_taskHandler = new Handler(); Download_taskHandler.postDelayed(Download_task,...
0debug
Importing postman collection in python : <p>I have received a of postman collection. It is basically a set of json files describing REST API calling methods in detail.</p> <p>Now I would like to get rid of postman and use python libraries for these api calls e.g. requests</p> <p>How to read the structured postman dat...
0debug
emulator: ERROR: A snapshot operation for 'Nexus_4_API_27' is pending and timeout has expired. Exiting : <pre><code>emulator: ERROR: A snapshot operation for 'Nexus_4_API_27' is pending and timeout has expired. Exiting... </code></pre> <p>I am getting this error when I am trying to open emulator from <strong>command-l...
0debug
Formatting Joda Time LocalDate to MMddyyyy : <p>I am attempting to format a desired joda time LocalDate type to a mmddyyy format and I am running into trouble and not sure how to proceed. I've tried a couple different things so far and had no luck.</p> <p>So I pretty much want to take a date like 04-15-2016 and get a ...
0debug
when i press on bottom part of the button not working? : [![enter image description here][1]][1] I made a custom view xib file with 2 buttons and i call it in my view controller but when I press the buttons the bottom part is not clickable only when I press the top part as in the image .. how can i resolve it? thanks...
0debug
void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; unsigned long pc; int ret; saved_env = env; ret = cpu_arm_handle_mmu_fault(env, addr, is_write, mmu_idx); if (unlikely(ret)) { ...
1threat
static int usb_ehci_initfn(PCIDevice *dev) { EHCIState *s = DO_UPCAST(EHCIState, dev, dev); uint8_t *pci_conf = s->dev.config; int i; pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20); pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00); pci_set_byte(&pci_conf[PCI_INTERRUPT_P...
1threat
Unhandled rejection SequelizeUniqueConstraintError: Validation error : <p>I'm getting this error:</p> <pre><code>Unhandled rejection SequelizeUniqueConstraintError: Validation error </code></pre> <p>How can I fix this?</p> <p>This is my models/user.js</p> <pre><code>"use strict"; module.exports = function(sequeliz...
0debug
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { int i, ret = 0; if (!avpkt->data && avpkt->size) { av_log(avctx, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n"); r...
1threat
Composer update memory limit : <p>I need to run composer update at my hosting so I log in with ssh and try to run comand:</p> <pre><code>composer update </code></pre> <p>inside /www folder where I have laravel and composer instalation</p> <p>but I get error: <a href="https://i.stack.imgur.com/FGC01.png" rel="norefer...
0debug
How to pad all strings in a comma separated set of strings : <p>Is there a way to pad each individual string in a comma separated string in one shot?</p> <p>I can split the comma separated string, go through each string and pad it (with 0, for 3 character) and join the array elements again but not sure if it can be do...
0debug
create-react-app, installation error ("command not found") : <p>I have installed create-react-app exactly as instructed on the facebook instruction page (<a href="https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.html" rel="noreferrer">https://facebook.github.io/react/blog/2016/07/22/cr...
0debug
I don't know why my code won't run for no reason : I have been studying programmin for 3 months and I don't have a lot of experience so my question maybe silly for someone. This code I wrote in order to read the number in reverse won't run and there is no syntac errors. public class fdujfdryujhftyh { public stat...
0debug
int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, void *logctx, int is_nalff, int nal_length_size, enum AVCodecID codec_id) { int consumed, ret = 0; const uint8_t *next_avc = buf + (is_nalff ? 0 : length); pkt->nb_nals = 0...
1threat
Spring/Postman Content type 'application/octet-stream' not supported : <p>I'm using Postman to send the following request: <a href="https://i.stack.imgur.com/RYHai.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RYHai.png" alt="enter image description here"></a></p> <p>My controller looks like this:</p> <pr...
0debug
void helper_lret_protected(int shift, int addend) { helper_ret_protected(shift, 0, addend); #ifdef CONFIG_KQEMU if (kqemu_is_ok(env)) { env->exception_index = -1; cpu_loop_exit(); } #endif }
1threat
PHP PROXY GRABBER CHECKER WITH CURL BULK FREE PROXIES : **I am No PHP expert and I am learning all I can. Self-taught so far. Over time I am more and more understanding the logic of code. My code of choice is PHP and Curl. I like it much more than anything else I have played with.** This is a proxy gra...
0debug
DateDiff return different result for each timezones : <p>I have problem with PHP DateDiff, i dont understand why each timezone returns different results, for example in this case Prague return 0 month, and US return 1 month.</p> <p>What do this difference and how i return 1 month (instead 30 days, when i adding 1 mont...
0debug
Two constructor calls inside one constructor in C# : <p>I know how to call another constructor for a constructor from the same class or the base class, but how can I do both at once? Here is an example of what I am looking to achieve, noting that in a real case we might want to do something more complex than just set a...
0debug
static void dec_div(DisasContext *dc) { unsigned int u; u = dc->imm & 2; LOG_DIS("div\n"); if (!(dc->env->pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK) && !((dc->env->pvr.regs[0] & PVR0_USE_DIV_MASK))) { tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP); t_gen_raise_exc...
1threat
getting the most 32 significant bits from unsigned long long error : <p>I am trying to store the most significant 32 bits that is stored in unsigned long long into unsigned int. I can simply use the code below I got from Stack Overflow:</p> <pre><code>uint64_t temp; uint32_t msw, lsw; msw = (temp &amp; 0xFFFFFFFF00000...
0debug
static int ff_vp56_decode_mbs(AVCodecContext *avctx, void *data, int jobnr, int threadnr) { VP56Context *s0 = avctx->priv_data; int is_alpha = (jobnr == 1); VP56Context *s = is_alpha ? s0->alpha_context : s0; AVFrame *const p = s->frames[VP56_FRAME_CURRENT]; int ...
1threat
I need to rename files based on a matching string in another file : <p>I have a list of files like this</p> <pre><code>186866-Total-Respondents.csv 343764-Total-Respondents.csv 415612-Total-Respondents.csv 761967-Total-Respondents.csv </code></pre> <p>And I want to rename them by matching the first string of numbers ...
0debug
Load reCAPTCHA dynamically : <p>There are several ways to load reCAPTCHA using javascript such as below:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Loading captcha with JavaScript&lt;/title&gt; &lt;script src="https://code.jquery.com/jquery-1.12.0.min.js"&gt;&lt;/script&gt; &lt;script type='text/j...
0debug
C++ , while loop wont continue : while (Day == 1); { cout << Day << " "; userNum = Day / 2; cin >> Day; } Hi guys , int Day and Day = 20. I don't get why the loop doesn't work , any help and if possible with explanation . Thanks
0debug
Transpiling Array.prototype.flat away with @babel? : <p>I inadvertently introduced a backwards compatibility issue in my React app by using <code>Array.prototype.flat</code>. I was very surprised this didn't get resolved by transpiling - I thought this would result in es2015 compatible code.</p> <p>How can I get Babel...
0debug
Free function that gives a lexicographically bigger string each time : <p>I am implementing a toy db, and I need a <em>free</em> function that gives me a lexicophgraically bigger string each time it's called. It's for naming segment files. </p> <p>Let's assume I have a max of 1000 files, and I'd prefer if the string w...
0debug
static void do_tb_flush(CPUState *cpu, void *data) { unsigned tb_flush_req = (unsigned) (uintptr_t) data; tb_lock(); if (tcg_ctx.tb_ctx.tb_flush_count != tb_flush_req) { goto done; } #if defined(DEBUG_FLUSH) printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\...
1threat
static void vertical_filter(unsigned char *first_pixel, int stride, int *bounding_values) { int i; int filter_value; for (i = 0; i < 8; i++, first_pixel++) { filter_value = (first_pixel[-(2 * stride)] * 1) - (first_pixel[-(1 * stride)] * 3) + (fir...
1threat
Java - text not showing when for() is executing : Below is the example demonstrates that the text ("A","B","C" and "testing in progress...") for each Label and TextArea will not showing when a for() is executing. It will shows simultaneously once for() is finished....! Any solution to overcome this 'phenomenon'? ...
0debug
Why I could not access localhost folder by using Xampp? : <p>my Xampp is working fine.ports are like this <code>Apache:81,MySql:3307</code>.But I could not access localhost by typing <code>http://localhost</code></p> <p>Then get this error <a href="https://i.stack.imgur.com/ZoCUX.png" rel="nofollow noreferrer">error</...
0debug
Trying to pass value through Forms, but not working correctly : Dim form As New Mainuser(TextBox1.Text) For some reason, even though TextBox1 exists, it still says it's not declared. Also, in my other part of the code, `Mainuser.Show()`, it says can not be simplified. Here is my full code if you want to help ...
0debug
Print the following 1 2 3 4 Bus 6 7 8 9 bUs 11 12 13 14 buS : <pre><code>Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(i=1; i&lt;=n; i++) { if(i%3==2 &amp;&amp; i%5==0) { System.out.println("Bus"); } if(i%3==1 &amp;&amp; i%5==0) { System.out.println("bUs"); } if(...
0debug
HOW TO FREE a MALLOC'd attribute of a STACK ALLOCATED STRUCT : typedef struct { int s; ... char* temp_status; ... } param; pararm MQK; MQK.temp_status = (char*) malloc(sizeof(char)*14); ... free(&(MQK.temp_status)); <<< ERROR // E R R O R R E P O R T // ...
0debug
Excel VBA: Split Numbers and Text from a string into Columns : <p>I have a column in my excel in the following format:</p> <pre><code>Column A 1.2kg 100ml 2m 200 </code></pre> <p>I need to run the VBA to split the numbers and text separately into two columns as:</p> <pre><code>Column A | Column B 1.2 | kg 100 ...
0debug