problem
stringlengths
26
131k
labels
class label
2 classes
How to geocode address by google maps iOS API? : <p>I found one way to send request:</p> <blockquote> <p>A Google Maps Geocoding API request takes the following form:</p> <p><a href="https://maps.googleapis.com/maps/api/geocode/outputFormat?parameters" rel="noreferrer">https://maps.googleapis.com/maps/api/geoco...
0debug
static int ra288_decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; float *out; int i, ret; RA288Context *ractx = avctx->priv_data; ...
1threat
Validate multiple textbox in javascript? : i want to validate name, email,zip code on button click, but it's showing only last error msg, not specific to the filed, i m wirtting this code in javascript & jquery. anyone please help us . thanks
0debug
How do i alter my Current code to read directly from the IDR register : <p>Modify the code for <strong>ReadJoystick()</strong> to read the <strong>IDR register</strong> directly for the ports associated with the joystick inputs. The aim is to minimise the number of reads to the register. The code in the template makes ...
0debug
Tabs for ios web browsing application (Swift 4) : How would I go about making a web browser application (in Swift) with tabs for multiple websites? I can not find any references or examples online to demonstrate this. I would greatly appreciate any help with this (:
0debug
SSL Certificates leading zeros are displayed in Windows but not Unix | ksh shell : <p>I'm trying to get the SSL serial number from a certificate but windows is displaying leading zeros but unix is not, I'm using openssl x509 in unix to extract the serial number, do you know why or how could solve this issue?</p> <p>Un...
0debug
Flexbox Header Footer Sidebar : <p>How can we make something like this using flexbox? <a href="https://i.stack.imgur.com/svF1J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/svF1J.png" alt="enter image description here"></a></p>
0debug
How do i add features like upload, preview and download in android cloud app : currently i am working on a cloud app with aws and i have successfully configured sign in and sign up process all i want to know is how to cach that data from cloud and preview it without downloading. please add scripts for that. Thanks
0debug
Do I need to scale my target variable in regression analysis? : I have a data which has some features (some kind of products, country in which it is sold etc.) and a Target Variable (the product's price in the country's local currency). So, do I have to scale my Target variable with respect to one common currency for r...
0debug
static int mmu_translate_asce(CPUS390XState *env, target_ulong vaddr, uint64_t asc, uint64_t asce, int level, target_ulong *raddr, int *flags, int rw) { CPUState *cs = CPU(s390_env_get_cpu(env)); uint64_t offs = 0; uint64_t origin; uint6...
1threat
having a pointer to pointer in main and create an array in other function : I have this : #include <stdio.h> #include <stdlib.h> void mad(int ***,int ,int ); int main(void){ int **x; int n,m; scanf("%d%d",&n,&m); mad(x,n,m); ...
0debug
how do I query array element in impala : I created a table in impala ,the have two columns , +-----------+---------------------+---------+ | name | type | comment | +-----------+---------------------+---------+ | unique_id | string | | | cmap | array<struct< | ...
0debug
int net_init_tap(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevTapOptions *tap; assert(opts->kind == NET_CLIENT_OPTIONS_KIND_TAP); tap = opts->tap; if (!tap->has_ifname) { error_report("tap: no interface name")...
1threat
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) { assert(con != NULL); con->ui_info = *info; if (!con->hw_ops->ui_info) { return -1; } timer_mod(con->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000); return 0; }
1threat
static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s) { int i, j; if (!avctx->channel_layout) { av_log(avctx, AV_LOG_WARNING, "No channel layout specified. The " "encoder will guess the layout, but it " ...
1threat
target_ulong helper_udiv(target_ulong a, target_ulong b) { uint64_t x0; uint32_t x1; x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = (b & 0xffffffff); if (x1 == 0) { raise_exception(TT_DIV_ZERO); } x0 = x0 / x1; if (x0 > 0xffffffff) { env->cc_src...
1threat
static void host_signal_handler(int host_signum, siginfo_t *info, void *puc) { int sig; target_siginfo_t tinfo; if (host_signum == SIGSEGV || host_signum == SIGBUS) { if (cpu_signal_handler(host_signum, info, puc)) return; } ...
1threat
int pci_piix3_xen_ide_unplug(DeviceState *dev) { PCIIDEState *pci_ide; DriveInfo *di; int i = 0; pci_ide = PCI_IDE(dev); for (; i < 3; i++) { di = drive_get_by_index(IF_IDE, i); if (di != NULL && !di->media_cd) { BlockBackend *blk = blk_by_legacy_dinfo(di); ...
1threat
Prevent "use strict" in typescript? : <p>When trying to load my app on an iOS device I get the following error;</p> <p><code>VMundefined bundle.js:1722 SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.</code></p> <p>This error occurred on iPhone 5s/6s + a couple of differen...
0debug
How can I manually read/write a PNG image file in C#? : There are already lots of classes and functions supplied with the .NET to manipulate Images including PNG. Like [Image, Bitmap, etc. classes][1]. But, if I want to manually read/write a PNG image as a binary file, what should I do? Where should I start? ...
0debug
int net_slirp_parse_legacy(QemuOptsList *opts_list, const char *optarg, int *ret) { if (strcmp(opts_list->name, "net") != 0 || strncmp(optarg, "channel,", strlen("channel,")) != 0) { return 0; } error_report("The '-net channel' option is deprecated. " "Please use '-...
1threat
static int xen_host_pci_get_resource(XenHostPCIDevice *d) { int i, rc, fd; char path[PATH_MAX]; char buf[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE]; unsigned long long start, end, flags, size; char *endptr, *s; uint8_t type; rc = xen_host_pci_sysfs_path(d, "resource", path, sizeof (path));...
1threat
How to mount a postgresql volume using Aws EBS in Kubernete : <ol> <li>I've created the persistent volume (EBS 10G) and corresponding persistent volume claim first. But when I try to deploy the postgresql pods as below (yaml file) :</li> </ol> <p><a href="https://i.stack.imgur.com/1bM88.png" rel="noreferrer">test-post...
0debug
static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { AVFilterBufferRef *outpicref = avfilter_ref_buffer(inpicref, ~0); AVFilterContext *ctx = inlink->dst; OverlayContext *over = ctx->priv; av_unused AVFilterLink *outlink = ctx->outputs[0]; inlink->dst->outputs[0]->out...
1threat
Angular2, HostListener, how can I target an element? can I target based on class? : <p>In Angular2, how can I target an element within the HostListener decorator?</p> <pre><code>@HostListener('dragstart', ['$event']) onDragStart(ev:Event) { console.log(ev); } @HostListener('document: dragstart', ['$ev...
0debug
HTML and JS, having input but want different output : I want to put a word in an input and have a changed output. For example, Input= Peter; Output= From Peter Parker My JS CODE: function impf1(){ var first = document.getElementById("imp1").value; var out1 = "print(" + first +")"; return out1...
0debug
Is there something like a backtrace to indicate which path a variable has reached to its current value? : <p>I have a source like this</p> <pre><code> //file1.cpp int var_1=getDB(" Table_name","column_name"); ... //file2.cpp int var2=func2(var_1); ... //filen.cpp int var_n=funcn(var_n_1); </code></pre> <p>In d...
0debug
TPMVersion tpm_tis_get_tpm_version(Object *obj) { TPMState *s = TPM(obj); return tpm_backend_get_tpm_version(s->be_driver);
1threat
TC6393xbState *tc6393xb_init(MemoryRegion *sysmem, uint32_t base, qemu_irq irq) { TC6393xbState *s; DriveInfo *nand; static const MemoryRegionOps tc6393xb_ops = { .read = tc6393xb_readb, .write = tc6393xb_writeb, .endianness = DEVICE_NATIVE_ENDIAN, .impl = { ...
1threat
static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) { bool page_aligned = false; unsigned int n, begin; const uint16_t block_size = s->blksize & 0x0fff; uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12); uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_...
1threat
what's an easy way to cast one object to another (same props) : <p>What's an easy way to cast one object to another when they have the same properties? For example: </p> <pre><code>public class Test1 { public string FirstName{ get; set; } public string LastName{ get; set; } } public class Test2 { public str...
0debug
calculate percentage with java : I have a form where I want the user to input a few fields and the form will calculate the total and percentage of goal. I'm new to java, and I don't know how to calculate a percentage. When I try parseint(total)/parseint(goal)*100 I get a NaN error. <html> <h...
0debug
Can I use annotations in java to perform some actions e.g. Upper casing of values coming from a form. : <p>I am starting with a utility projects which will give out of the box annotations to perform some tasks such as uppercasing, lowercasing, validating, performing some more trasnformation. As far I have seen that ann...
0debug
Why putting a macros argument in parentheses leads to an error? : <p>I have one very interesting question about preprocessor directives in c++.</p> <p>Consider the following macros and his usage:</p> <pre><code> #define FUNCTION(a, b) void (a)(int &amp;current, int candidate)\ {\ if ((current b candida...
0debug
Where to get msbuild for Linux : <p>I want to build a .net core project on Windows and Linux.</p> <p>For Windows I use MSBuild, simply downloaded the <code>Build Tools für Visual Studio 2017</code> from <a href="https://www.visualstudio.com/en/downloads/" rel="noreferrer">visualstudio.com</a>.</p> <p>But where do I g...
0debug
Taking a 2 or more digit number as char in c : i have to write a program which i take a number as a character then find its binary so i used this code [screenshotofmycode][1] but it only works for numbers from 0 to 9.. it should work on 2 or more digit numbers. I have to take the number as char because th...
0debug
def count_Set_Bits(n) : n += 1; powerOf2 = 2; cnt = n // 2; while (powerOf2 <= n) : totalPairs = n // powerOf2; cnt += (totalPairs // 2) * powerOf2; if (totalPairs & 1) : cnt += (n % powerOf2) else : cnt += 0 powe...
0debug
Rendering a pandas dataframe as HTML with same styling as Jupyter Notebook : <p>I would like to render a pandas dataframe to HTML in the same way as the Jupyter Notebook does it, i.e. with all the bells and wistles like nice looking styling, column highlighting, and column sorting on click.</p> <p><a href="https://i.s...
0debug
How to write sub quries in mysql : Here i joining three tables and taking count [MY SQL FIDDLE][1].In this query i want to take one more count like total_trip that means i already join trip_details tables, **in this table take all count that is total trip count**, i am not able to write sub query, if any one know kindl...
0debug
Timeout in async/await : <p>I'm with Node.js and TypeScript and I'm using <code>async/await</code>. This is my test case:</p> <pre><code>async function doSomethingInSeries() { const res1 = await callApi(); const res2 = await persistInDB(res1); const res3 = await doHeavyComputation(res1); return 'simle'...
0debug
How i can count "\n\n" in a string with python? : this ist my string: (info: i parse it with python from an array to string with str(myString) ) myString = "[('das ist ein Test', 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, ...
0debug
Adding OnCLick listener to the view in android : I am developing an android application in which I want to achieve this: [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/i3kfU.png The android layout xml code is given below: <RelativeLayout xmlns:android="http://schemas.android.com/...
0debug
when I ssh into RHEL7 AWS instance I get 'Permission denied (publickey,gssapi-keex,gssapi-with-mic)' : Ok so I know this question has been asked before. I tried everything that was posted in the closest related question and none of that worked. I was able to log in before but am not able to now. - I have tried ssh-i...
0debug
Sql programming logic- beginner level : I am a beginner in Sql programming. any pointers would help me. Say we have table 1, table 2 say for one Server ID column in table 1 you have many application ID columns corresponding in table 2 Filter out many application ID columns for one particular server ID, then ma...
0debug
Cannot use optional chaining on non-optional value of type 'Bool' : <p>Why I can't use c? 1 : 2 syntax in swiftui? Is there any solution? </p> <pre><code>import SwiftUI struct ContentView: View { var c: Bool = false var body: some View { Text("Hello World") .foregroundColor(c? .red : .blue) ...
0debug
Try Catch for error message in google maps api : <p>I an using javascript and am getting an message that I have exceeded my daily request quota for this API. Is there a way to capture this error message in a try catch block so when I go over my quota I can execute another piece of code. I have seen several similar po...
0debug
What exactly is a Set in COQ : <p>I'm still puzzled what the sort <strong>Set</strong> means in COQ. When do I use <strong>Set</strong> and when do I use <strong>Type</strong>?</p> <p>In Hott a <strong>Set</strong> is defined as a type, where identity proofs are unique. But I think in Coq it has a different interpret...
0debug
Android layout design : <p>I am developing app where i want circuler image. it will rotate as songs play. can anyone help me to develop this layout.</p> <p><a href="https://i.stack.imgur.com/cK6qY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cK6qY.png" alt="enter image description here"></a></p>...
0debug
How to stop form submission if email address is already available in MySQL db ? : <p>I have coded the following form with PHP &amp; MySQL as database. I want to prevent the form from submitting data, if email address already exists in database. I also want to disable the submit button, if email exists in database. </p>...
0debug
void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) { #if SPICE_INTERFACE_QXL_MINOR >= 1 qxl_send_events(qxl, QXL_INTERRUPT_ERROR); #endif if (qxl->guestdebug) { va_list ap; va_start(ap, msg); fprintf(stderr, "qxl-%d: guest bug: ", qxl->id); vfprintf(stderr, msg,...
1threat
static void tgen_andi(TCGContext *s, TCGType type, TCGReg dest, uint64_t val) { static const S390Opcode ni_insns[4] = { RI_NILL, RI_NILH, RI_NIHL, RI_NIHH }; static const S390Opcode nif_insns[2] = { RIL_NILF, RIL_NIHF }; uint64_t valid = (type == TCG_TYPE_I32 ? 0xffffffffull ...
1threat
I want to assign strings to the student constructor's parameters based on what is typed into the JOptionPane : I want to assign strings to the student constructor's parameters based on what is typed into the JOptionPane input boxes . I have the user inputted information set to go to a variable but when I try and use th...
0debug
Not Able to Get Index of Element in Array in JavaScript : <p>Can you please take a look at this code and let me know why I am not getting the index of each array element which is not 0 in this loop properly?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div clas...
0debug
av_cold int ff_h264_decode_init(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int ret; ret = h264_init_context(avctx, h); if (ret < 0) return ret; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(ui...
1threat
my code will not exicute the if/ elif part in this : so When I run this code(a portion of it) and I get to the word = input, it will run that and let me input my answer. But instead of doing the if / elif code, it will say exit code 0. I do not understand why this is happening so please help. I tried to remove code her...
0debug
Why does this loop only once? : <pre><code>while count &gt; 0: if count = 0: return n elif count &lt; 0: print(" ") # prints empty if n is below 0 else: count = count - 1 collect += math.ceil((n - 5)/2) return collect </code></pre> <p>The inputs are (1003, 3) - resul...
0debug
Cannot read property 'history' of undefined (useHistory hook of React Router 5) : <p>I am using the new useHistory hook of React Router, which came out a few weeks ago. My React-router version is 5.1.2. My React is at version 16.10.1. You can find my code at the bottom.</p> <p>Yet when I import the new useHistory from...
0debug
why file_get_content($url) return the empty string : Code: <?php $url = "oooff.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $curl_scraped_page = curl_exec($ch); curl_close($ch); echo $curl_scraped_page; ?> above code display the blank page why ...
0debug
react-router Redirect vs history.push : <p>I was reading <a href="https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux/examples" rel="noreferrer">react-router-redux examples</a> and I confused, what is the difference beetween:</p> <pre><code>import { Redirect } from 'react-router-dom' ...
0debug
uint32_t qemu_devtree_get_phandle(void *fdt, const char *path) { uint32_t r; r = fdt_get_phandle(fdt, findnode_nofail(fdt, path)); if (r <= 0) { fprintf(stderr, "%s: Couldn't get phandle for %s: %s\n", __func__, path, fdt_strerror(r)); exit(1); } return r...
1threat
I have an issue for getting the inserting multiple dropdown values. After submitting it gets a database error. : **View:** <select class="form-control" data-placeholder="Choose a Category" tabindex="1" name="venues[]" multiple > <option value="">Select One</option> <?php foreac...
0debug
uint64_t HELPER(paired_cmpxchg64_be)(CPUARMState *env, uint64_t addr, uint64_t new_lo, uint64_t new_hi) { uintptr_t ra = GETPC(); Int128 oldv, cmpv, newv; bool success; cmpv = int128_make128(env->exclusive_val, env->exclusive_high); newv = int128_make128...
1threat
Java Swing Error with format (I think) : I can't solve this, Note that I'm new to swing, thanks. http://prntscr.com/bpz2ve http://hastebin.com/oyucefasah.java
0debug
How to write a modal with a nested array in spring? : I am writing a new class in spring boot where I need to write a modal class in which there will be a sub modal classes(I mean an array with a nested arrays), but when I try to run it I am getting the sub modal class names as attributes not the real attributes which ...
0debug
static void qmp_output_add_obj(QmpOutputVisitor *qov, const char *name, QObject *value) { QStackEntry *e = QTAILQ_FIRST(&qov->stack); QObject *cur = e ? e->value : NULL; if (!cur) { qobject_decref(qov->root); qov->root = value; } else ...
1threat
static int vmdk_write_extent(VmdkExtent *extent, int64_t cluster_offset, int64_t offset_in_cluster, const uint8_t *buf, int nb_sectors, int64_t sector_num) { int ret; VmdkGrainMarker *data = NULL; uLongf buf_len; const uint8_t *write_buf = b...
1threat
Show records on userInput store PROCEDURE : <p>I want to show records based on user input.</p> <pre><code> CREATE PROCEDURE [dbo].[ShowRecords] @recordsToShow int AS BEGIN select top @recordsToShow * from usermaster END </code></pre>
0debug
Hi, Im trying to edit my blog (blogspot) very new to this I keep getting an error code that my xml must start and end with the same entity : </div> {/block:Answer} {block:PermalinkPage} <div style="margin-top:20px;">{block:Date} <b>Posted:</b> {Month} {DayOfMonth}, ...
0debug
START_TEST(vararg_string) { int i; struct { const char *decoded; } test_cases[] = { { "hello world" }, { "the quick brown fox jumped over the fence" }, {} }; for (i = 0; test_cases[i].decoded; i++) { QObject *obj; QString *str; ...
1threat
how to read 2d array with only semicolon in java : I hava an 2d array somthing like this int[][] arr1 = {,}; And i am trying to check no. of col and rows it contains.<br> I used below technique to calculate int rws=arr1.length,col=arr1[0].length; but getting the error `java.lang.ArrayIndexOut...
0debug
keycloak CORS filter spring boot : <p>I am using keycloak to secure my rest service. I am refering to the tutorial given <a href="http://slackspace.de/articles/authentication-with-spring-boot-angularjs-and-keycloak/" rel="noreferrer">here</a>. I created the rest and front end. Now when I add keycloak on the backend I g...
0debug
Display DIV's like Bee hive : <p>What is the right way to display DIV's as a sequence of box's with no space between them ? <a href="https://i.stack.imgur.com/aqxK4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aqxK4.png" alt="enter image description here"></a></p>
0debug
Cannot find any elements using Internet Explorer 11 and Selenium (any version) and IEWebDriver (any version) : <p>I've searched all over for an answer and I can't find any fix to my issue. I am trying to run my Selenium tests in IE11. All other browsers work fine (including Edge). A simple test as follows will cause th...
0debug
How to create nice-to-use type-checked aliases for primitive types in C++? : <p>I'm writing code where I'm creating multiple aliases for primitive types, e.g. <em>Address</em> and <em>Id</em> being <em>int</em>s.</p> <p>I want to avoid using Addresses and Ids together, e.g. in arithmetic operations.</p> <p>Thus I wou...
0debug
Handle 404 error with Express 4 : <p>I am using Express 4 and I have about 50 html pages. I'm trying to handle 404 errors but can't figure out how. I don't want to manually define all the routers within node. Is there a way to dynamically redirect to a 404 Jade template if a page doesn't exist?</p> <p>I tried this cod...
0debug
static int sap_write_close(AVFormatContext *s) { struct SAPState *sap = s->priv_data; int i; for (i = 0; i < s->nb_streams; i++) { AVFormatContext *rtpctx = s->streams[i]->priv_data; if (!rtpctx) continue; av_write_trailer(rtpctx); url_fclose(rtpctx->pb...
1threat
How do I reverse a sentence in python? : <p>I've been searching for a way to reverse sentences, but I can't seem to find one. I was hoping to find a way in Python; however, I'm not sure if there is a way to do it. If anybody knows of a way to do it, I would really appreciate the help.</p>
0debug
static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID expected_codec_id) { int max_frames, first_frames = 0, frames; const uint8_t *buf, *buf2, *end; enum AVCodecID codec_id = AV_CODEC_ID_AC3; max_frames = 0; buf = p->buf; end = buf + p->buf_size; for(; buf < end; buf++) { ...
1threat
int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset, int *num, uint64_t *cluster_offset) { BDRVQcowState *s = bs->opaque; unsigned int l2_index; uint64_t l1_index, l2_offset, *l2_table; int l1_bits, c; unsigned int index_in_cluster, nb_clusters; uint64_t nb_available, ...
1threat
what is the max line limit for uitextview in swift : I want to know that what is the maximum line limit to display text into uitextview. if the content is more than the max line number into uitextview that what is the alternative of uitextview to display text
0debug
static uint32_t get_cmd(ESPState *s, uint8_t *buf) { uint32_t dmalen; int target; dmalen = s->rregs[ESP_TCLO] | (s->rregs[ESP_TCMID] << 8); target = s->wregs[ESP_WBUSID] & 7; DPRINTF("get_cmd: len %d target %d\n", dmalen, target); if (s->dma) { s->dma_memory_read(s->dma_opaque,...
1threat
static void vfio_pci_reset(DeviceState *dev) { PCIDevice *pdev = DO_UPCAST(PCIDevice, qdev, dev); VFIODevice *vdev = DO_UPCAST(VFIODevice, pdev, pdev); if (!vdev->reset_works) { return; } if (ioctl(vdev->fd, VFIO_DEVICE_RESET)) { error_report("vfio: Error unable to reset ...
1threat
How to prevent RecyclerView item from blinking after notifyItemChanged(pos)? : <p>I currently have a recycler view whose data updates every 5 secs. To update the data on the list, I am using </p> <pre><code>notifyItemChanged(position); notifyItemRangeChanged(position, mList.size()); </code></pre> <p>Each time I call ...
0debug
SEAGLASS THEME FOR JAVA NO PAINTING : i had implemented a seaglass jar theme for my apllication, but the theme no works i had tried add it into diferentes places of my code but no one location works, someone who help me.. private void initialize() { frame = new JFrame(); frame.set...
0debug
JavaScript classes exist? : <p>I know classes do not exist in javascript. </p> <p>But, Is there any indirect way to create a class in javascript?</p> <p>what is the use of defining a class in javascript</p>
0debug
a function that takes a character (i.e. a string of length 1) and returns true if it is a vowel, false otherwise in javascript : below is my code for finding out if a character is a vowel or not. But when I run it, it doesn't print out true or false. Can someone please help me to see what I am doing wrong? BTW, I am ...
0debug
static void rtsp_cmd_teardown(HTTPContext *c, const char *url, RTSPHeader *h) { HTTPContext *rtp_c; rtp_c = find_rtp_session_with_url(url, h->session_id); if (!rtp_c) { rtsp_reply_error(c, RTSP_STATUS_SESSION); return; } close_connection(rtp_c); rtsp_re...
1threat
static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, ...
1threat
static void replication_start(ReplicationState *rs, ReplicationMode mode, Error **errp) { BlockDriverState *bs = rs->opaque; BDRVReplicationState *s; BlockDriverState *top_bs; int64_t active_length, hidden_length, disk_length; AioContext *aio_context; Error ...
1threat
Connecting to multiple CloudSQL instances using Cloud sql proxy? : <p>I'm attempting to use the cloud sql proxy to connect to 2 different cloud sql instances...</p> <p>In the docs I found a line about <code>Use -instances parameter. For multiple instances, use a comma-separated list.</code> but not sure how to make th...
0debug
static int bmdma_rw_buf(IDEDMA *dma, int is_write) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); IDEState *s = bmdma_active_if(bm); struct { uint32_t addr; uint32_t size; } prd; int l, len; for(;;) { l = s->io_buffer_size - s->io_buffer_index; i...
1threat
Converting non existing ASCII char to int in C : <pre><code>int i = 65537; char c = (char) i; printf("%d", c); </code></pre> <p>I'm getting "1" from that and I'm wondering why</p>
0debug
HTML Range Input Sliders disappear on mobile. Why? : <p>Why do HTML5 inputs of type range disappear on mobile? See <a href="http://www.html5tutorial.info/html5-range.php" rel="noreferrer">this</a> page, inspect as a mobile device. I'm working on a simple site with a form but need the form to work on mobile. Thanks!<...
0debug
need help to fix the compile error of erfc function vba code : Hi I tried to use erfc in my code but it gave me error. it says argument not optional . could you please help me fixing this problem I'm new to programming. an example on that is given below For j = 0 To 150 f = 1 For m = 1 To j ...
0debug
Build complex mustach with complex array : I have the following json : { "data":{ "page":{["x":1,"y":2],["x":1,"y":2],["x":1,"y":2]}, "page":{["x":2,"y":2],["x":1,"y":2],["x":1,"y":2]}, "page":{["x":3,"y":2],["x":1,"y":2],["x":1,"y":2]}, } } How can I print ...
0debug
Jquery check checkbox value then set checked : <p>I had a checkbox </p> <pre><code>&lt;input type="checkbox" name="paid" id="paid-change"&gt; </code></pre> <p>which will have value = "1" or "0".I want to check if checkbox value = "1" the checkbox will add checked status on it. Tks for your help!</p>
0debug
Android Studio - Firebase : I am building an android app using android studio, and using Firebase as a back-end system. I was trying for hours to find the reason why firebase wasn't working on the emulator of genymotion, however then after I uploaded the app to my personal phone, it worked perfectly. Any idea why fire...
0debug
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error) { const char *buf; const char *file = NULL; char devname[128]; const char *serial; const char *mediastr = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } media; int bus_id, unit_id; i...
1threat
static int shift_data(AVFormatContext *s) { int ret = 0, moov_size; MOVMuxContext *mov = s->priv_data; int64_t pos, pos_end = avio_tell(s->pb); uint8_t *buf, *read_buf[2]; int read_buf_id = 0; int read_size[2]; AVIOContext *read_pb; if (mov->flags & FF_MOV_FLAG_FRAGMENT) ...
1threat
static int process_input(int file_index) { InputFile *ifile = input_files[file_index]; AVFormatContext *is; InputStream *ist; AVPacket pkt; int ret, i, j; is = ifile->ctx; ret = get_input_packet(ifile, &pkt); if (ret == AVERROR(EAGAIN)) { ifile->eagain = 1; ...
1threat