problem
stringlengths
26
131k
labels
class label
2 classes
int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation) { const int isRgb = isBGR(c->dstFormat); const int bpp = fmt_depth(c->dstFormat); int i; uint8_t table_Y[1024]; uint32_t *table_32 = 0; uint16_t *table_16 = 0; ...
1threat
static ssize_t block_crypto_init_func(QCryptoBlock *block, size_t headerlen, Error **errp, void *opaque) { struct BlockCryptoCreateData *data = opaque; int ret; data->size +...
1threat
Need Help having trouble on normalizing the table. Could you please check it? : I'm new to sql currently using server 2008 R2 and I was hoping that you guys can check if the tables are normalized because I always had the assumption that my work has its flaws or I'm just being paranoid. If the tables are not normaliz...
0debug
Why shouldn't I extend an instance initialized by Struct.new? : <p>We have a legacy codebase where rubocop reports some of these errors which I never could wrap my head around:</p> <blockquote> <p>Don't extend an instance initialized by <code>Struct.new</code>. Extending it introduces a superfluous class level and...
0debug
vb.net How to extract text from the textbox : <p>In the textbox I have</p> <p>external.xx.fbcdn.net/safe_image.php?d=AQBitTwGIFdSUoa1&amp;url=http%3A%2F%2Fapi-download.com%2Fgatekeeper%2FW3siZSI6MTQ5OTkyNTc4MSwiZCI6InNodXR0ZXJzdG9jay1tZWRpYSIsImsiOiJwaG90b1wvNDE3NDM0NDQzXC9tZWRpdW0uanBnIiwibSI6MH0sIlBZRG5JV2RoM2FhU09M...
0debug
QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, int fail_if_exists) { QemuOpts *opts = NULL; if (id) { if (!id_wellformed(id)) { qerror_report(QERR_INVALID_PARAMETER_VALUE, "id", "an identifier"); error_printf_unless_qmp("Identifiers consist of letters, dig...
1threat
static void memory_region_oldmmio_write_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned...
1threat
This classic asp page is throwing "internal server 500 error". Please help me on this : **Connection file-** <% Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open "abc","ID","Password" conn.commandtimeout=120`enter code here` Set RS = Server....
0debug
static void scsi_disk_emulate_unmap(SCSIDiskReq *r, uint8_t *inbuf) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint8_t *p = inbuf; int len = r->req.cmd.xfer; UnmapCBData *data; if (r->req.cmd.buf[1] & 0x1) { goto invalid_field; } if (len < 8) ...
1threat
Is there another way to do this without using macro define? : <p>i have write a function like this </p> <pre><code>int funA(){ //this define is to do something with a,b....z #define _MyMacro_ do{\ a....\ b,a...\ z....\ ...\ }while(0); int a; char b; .... float z; .... if(condition){ _MyMacro_; } else if(condition2...
0debug
static void coroutine_fn mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = s->common.bs; int64_t sector_num, end, sectors_per_chunk, length; uint64_t last_pause_ns; BlockDriverInfo bdi; char backing_filename[1024]; int ret = 0; ...
1threat
static int decode_delta_block (bit_buffer_t *bitbuf, uint8_t *current, uint8_t *previous, int pitch, svq1_pmv_t *motion, int x, int y) { uint32_t bit_cache; uint32_t block_type; int result = 0; bit_cache = get_bit_cache (bitbuf); bit_cache >>= (32 - 3); block_type = block_type_tab...
1threat
How to delete string with no specific character pattern? : <p>I think what I want to do is a fairly common task but I've found no reference on the web.</p> <p>I have a list of names, with the following pattern</p> <p>'first name middle name last name last seen 10 months ago"</p> <p>I want to keep only the names, to ...
0debug
How to use Moment.JS to check whether the current time is between 2 times : <p>Say the current time is <code>09:34:00</code> (<code>hh:mm:ss</code>), and I have two other times in two variables:</p> <pre><code>var beforeTime = '08:34:00', afterTime = '10:34:00'; </code></pre> <p>How do I use Moment.JS to check wh...
0debug
static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int version = get_byte(pb); int lang; if (version > 1) return -1; get_be24(pb); if (version == 1) { ...
1threat
Need Guide to Use the parseInt Function : <p><a href="https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/" rel="nofollow noreferrer">https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-the-parseint-function/</a></...
0debug
void ff_avg_h264_qpel8_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avg_width8_msa(src, stride, dst, stride, 8); }
1threat
Hello guys! How can i write my php code to send e-mail on form_submit? : dear friends, 1st of all i'd like to say i'm a beginner and i'm assigning tasks to myself. I built a HTML page in which i added a form. It looks like this: <body background="images/backgr.jpg" bgProperties="fixed" style="background-attac...
0debug
static void tcg_out_brcond32(TCGContext *s, TCGCond cond, TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, int small) { tcg_out_cmp(s, arg1, arg2, const_arg2, 0); tcg_out_jxx(s, tcg_cond_to_jcc[cond], label_index, small); }
1threat
using write() in python and python turtle : I want to use an input parameter in my pyton code, but instead being asked in the python editor toolbox the user should be prompted in Python turtle Graphics window. I believe that this should be done by build-in write(), but have no idea how to implement it.
0debug
Python Delete not working : <p><strong><em>I don't know Syntax Error. and if can't delete then rollback data.maybe you can advise me</em></strong></p> <pre><code>#!/usr/bin/python import mysql.connector conn= mysql.connector.connect(host='localhost',user='user',passwd='pwd',db='dest') cursor = conn.cursor() sql = "...
0debug
Keyboard cannot present view controllers warning : <p>When tapping the "Passwords" button at the top of the keyboard for login/password Autofill, this warning prints to the console log:</p> <pre><code>Keyboard cannot present view controllers (attempted to present &lt;UIKeyboardHiddenViewController_Autofill: 0x10a618e9...
0debug
void cpu_physical_memory_write_rom(target_phys_addr_t addr, const uint8_t *buf, int len) { int l; uint8_t *ptr; target_phys_addr_t page; MemoryRegionSection *section; while (len > 0) { page = addr & TARGET_PAGE_MASK; l = (page + TARGET_PA...
1threat
void helper_ldmxcsr(CPUX86State *env, uint32_t val) { env->mxcsr = val; update_sse_status(env); }
1threat
Script to resolve mathematical expressions step by step : <p>I would like to create a script similar to <a href="http://www.minimath.net/index.htm" rel="nofollow noreferrer">http://www.minimath.net/index.htm</a></p> <p>There is a library PHP or JavaScript that solves a mathematical expression showing all the steps?</p...
0debug
static int bit_allocation(IMCContext *q, IMCChannel *chctx, int stream_format_code, int freebits, int flag) { int i, j; const float limit = -1.e20; float highest = 0.0; int indx; int t1 = 0; int t2 = 1; float summa = 0.0; int iacc = 0; int summer ...
1threat
static void qemu_event_increment(void) { SetEvent(qemu_event_handle); }
1threat
R - linear regression get n value : <p>I am performing linear regressions in R using the lm function. How do I get the n value for my results? </p> <p>I'm doing summary(lm(y ~ b1 + b2)) </p> <p>Thanks! </p>
0debug
How private and protected is implemented in C++ : <p>Internal mechanism of private and protected keywords in C++. How they restrict member variables accesses.</p>
0debug
How to set icons based on a condition in sap.m.column : var col5 = new sap.m.Column("col5", { width:"auto", header: new sap.m.Label({text:"Late"}), footer: new sap.ui.core.Icon({ src : { path: "Late", formatter: function(approved){ ...
0debug
JSON convert with Javascript : <p>I have a json file like as below</p> <pre> [{ "id": 2, "name": "Ali", "records":[{ "type": "L", "total": 123 }, { "type": "P", "total": 102 }] },{ "id": 3, "name": "Mete", "records":[{ "type": "O", "total"...
0debug
How to insert multiple rows in once laravel 5.3 : I want to insert an array with an id : blade.php [enter image description here][1] `<tr> <td class="text-left">{{$count}}</td> <td class="text-left"><img src="{{ asset('/' . $data->image_file) }}" class="img-circle" width="35px" height="35px"/></td> <...
0debug
Kotlin and android lint checks : <p>I am really loving to code android apps in Kotlin recently - but I really miss lint. Anyone knows how to get this back ( at least partially ). Is there a project that adapts the android java lint rules to kotlin? AFAIK lint is not running on bytecode only so there needs to be some ma...
0debug
static int socket_open_listen(struct sockaddr_in *my_addr) { int server_fd, tmp; server_fd = socket(AF_INET,SOCK_STREAM,0); if (server_fd < 0) { perror ("socket"); return -1; } tmp = 1; setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, &tmp, sizeof(tmp)); if (b...
1threat
static void sparc_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); SPARCCPU *cpu = SPARC_CPU(obj); CPUSPARCState *env = &cpu->env; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); if (tcg_enabled()) { gen_intermediate_code_init(env); } }
1threat
Is there a way to combine Docker images into 1 container? : <p>I have a few Dockerfiles right now.</p> <p>One is for Cassandra 3.5, and it is <code>FROM cassandra:3.5</code></p> <p>I also have a Dockerfile for Kafka, but t is quite a bit more complex. It is <code>FROM java:openjdk-8-fre</code> and it runs a long comm...
0debug
Reliability issues with Checkpointing/WAL in Spark Streaming 1.6.0 : <h1>Description</h1> <p>We have a Spark Streaming 1.5.2 application in Scala that reads JSON events from a Kinesis Stream, does some transformations/aggregations and writes the results to different S3 prefixes. The current batch interval is 60 second...
0debug
C++'s Class Problems : <p>I am asking you a question from the C ++ class. When you look at the C + + course videos, why are they using the voids(functions) that people use outside of class. Can someone explain this to me?</p> <p>example:</p> <pre><code>void example::example1() { // code stuff } </code></pre>
0debug
distribution from percentage with R : <p>I have distribution of parameter (natural gas mixture composition) expressed in percents. How to test such data for distribution parameters (it should be gamma, normal or lognormal distribution) and generate random composition based on that parameters in R?</p>
0debug
VBA code to find and select a multiple cells in a range that contains a certain string : I want to look for a string "GAS CYLINDERS" in range "B17:B29" and if a cell contains the given string, goto to column "H"(from "B") of the same row of the cell which contains the string then, select it.I want it to loop till row 2...
0debug
How to send a HTTP request from Google Cloud Functions (nodeJS) : <p>This is probably a simple question but I'm new to cloud functions/Node programming and haven't found the right documentation yet. </p> <p>How do I write a Google cloud function that will receive a HTTP request but then send a HTTP request to a diffe...
0debug
Cannot fetch data from mongo with java : i trying to fetch some data from mongo with netbeans but i get this error java.lang.IllegalStateException: state should be: open I have tried everything. This is the line that crashes: Document doctor = doctors.find(new Document("doctor_name", DocName.getText())...
0debug
How do i enable LAN settngs : I tried to input proxy server address in proxy setting and saved it,but after closing that window all the setting got restored to previous versions,when i tried to search in LAN settings i found that the LAN settings is Disabled.When i searched on Internet i found that to make any changes...
0debug
node http-server to respond with index.html to any request : <p>I have installed <code>http-server</code> globally.</p> <p>I launch it from <strong>myDir</strong> on localhost port 8080. In <strong>myDir</strong> I have <code>index.html</code>.</p> <p>If I request (from the browser) <code>http://localhost:8080/</code...
0debug
static void cpu_exec_nocache(int max_cycles, TranslationBlock *orig_tb) { unsigned long next_tb; TranslationBlock *tb; if (max_cycles > CF_COUNT_MASK) max_cycles = CF_COUNT_MASK; tb = tb_gen_code(env, orig_tb->pc, orig_tb->cs_base, orig_tb->flags, max_cycl...
1threat
void qmp_drive_mirror(const char *device, const char *target, bool has_format, const char *format, enum MirrorSyncMode sync, bool has_mode, enum NewImageMode mode, bool has_speed, int64_t speed, Error **errp) { BlockDriver...
1threat
Docker pull error : x509: certificate has expired or is not yet valid : <p>Description of problem:</p> <p>I'm trying to pull ubuntu from the public registry with this command :</p> <pre><code>docker pull ubuntu </code></pre> <p>And then i got this results (the previous command was working yesterday) :</p> <p>"Error...
0debug
Iterating through an array in javascript? : <p>OK so here's my array...</p> <pre><code>var cars = new Array("Golf", "Audi", "Merc", "Mini"); </code></pre> <p>I am trying to simply iterate through it... simple eh? errrr. I have tried...</p> <pre><code>for (var i=0; i &lt; cars.lenght(); i++) { document....
0debug
I cannot ignore pycache and db.sqlite on Django even though it refers them at .gitignore : <p>I'd like to ignore the changes of pycache and db.sqlite of Django project. I refer them at <code>.gitignore</code>,however git catches the variation of them. Could you tell me what is problem if you know it? I attached my .git...
0debug
static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp) { Error *local_err = NULL; bool vsmt_user = !!spapr->vsmt; int kvm_smt = kvmppc_smt_threads(); int ret; if (!kvm_enabled() && (smp_threads > 1)) { error_setg(&local_err, "TCG cannot support more than 1 thread/co...
1threat
SQLite: How do i search multiple values : I have two autocomplettextview and 3 columns in my table col1,col2,col3. col1 is primary key table look like this: | col1 | col2 | col3 | ----------------------------------------- | 1 | store1 |apple,pineapple,mango | | 2 | sto...
0debug
Python Requests - How to use system ca-certificates (debian/ubuntu)? : <p>I've installed a self-signed root ca cert into debian's <code>/usr/share/ca-certificates/local</code> and installed them with <code>sudo dpkg-reconfigure ca-certificates</code>. At this point <code>true | gnutls-cli mysite.local</code> is happy, ...
0debug
error CS0019: Operator `==' cannot be applied to operands of type `method group' and `string' : I can't figure out how to fix this error. please help me! the error is located on the arrow void CheckCurrentLevel() { for(int i = 1; i < LevelAmount; i++) { ---> if (SceneManager.LoadScene == "Level" + i)...
0debug
how to make a script converting to radians the degree,seconds,minutes? : <p>I am using python and I am having trouble making a script converting an angle with the degree,minutes,seconds given in radiant.</p> <p>I already tried a few things but I am pretty new so I need help</p>
0debug
void cpu_x86_update_cr3(CPUX86State *env) { if (env->cr[0] & CR0_PG_MASK) { #if defined(DEBUG_MMU) printf("CR3 update: CR3=%08x\n", env->cr[3]); #endif tlb_flush(env); } }
1threat
static int megasas_ctrl_get_info(MegasasState *s, MegasasCmd *cmd) { PCIDevice *pci_dev = PCI_DEVICE(s); struct mfi_ctrl_info info; size_t dcmd_size = sizeof(info); BusChild *kid; int num_ld_disks = 0; uint16_t sdev_id; memset(&info, 0x0, cmd->iov_size); if (cmd->iov_size < dc...
1threat
In Xcode/SWIFT - how to store various types of data each day? : I want to store in CoreData various information each day as following: day1: string, integer, integer, double, Boolean day2: string, integer, integer, double, Boolean day3: .... up to several months. I plan to do save it in CoreData due to the am...
0debug
How I redirect dynamic url with query string in php? : <p>I need to redirect dynamic URL like this "<a href="https://test.com?user=abc@gmail.com" rel="nofollow">https://test.com?user=abc@gmail.com</a>" to "<a href="https://test.com" rel="nofollow">https://test.com</a>" </p>
0debug
Issue regarding designing UI : I am having problem designing below UI. [text1] [inputBox1] [text2] [inputBox2] [text3] [inputBox3] text1, text2, text3 can be variable length. So if length of text increases, there width should increases and input box moves towards right. If text is much longer, than ...
0debug
static void vhost_virtqueue_stop(struct vhost_dev *dev, struct VirtIODevice *vdev, struct vhost_virtqueue *vq, unsigned idx) { int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx); stru...
1threat
START_TEST(vararg_number) { QObject *obj; QInt *qint; QFloat *qfloat; int value = 0x2342; int64_t value64 = 0x2342342343LL; double valuef = 2.323423423; obj = qobject_from_jsonf("%d", value); fail_unless(obj != NULL); fail_unless(qobject_type(obj) == QTYPE_QINT); q...
1threat
PCIBus *i440fx_init(PCII440FXState **pi440fx_state, int *piix3_devfn, qemu_irq *pic) { DeviceState *dev; PCIBus *b; PCIDevice *d; I440FXState *s; PIIX3State *piix3; dev = qdev_create(NULL, "i440FX-pcihost"); s = FROM_SYSBUS(I440FXState, sysbus_from_qdev(dev)); b = pci_bus_new(...
1threat
static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer, struct in_addr my_ip) { AVFormatContext *avc; AVStream avs[MAX_STREAMS]; int i; avc = avformat_alloc_context(); if (avc == NULL) { return -1; } av_metadata_set2(&av...
1threat
void bdrv_set_read_only(BlockDriverState *bs, bool read_only) { bs->read_only = read_only; }
1threat
Changing assigned user in sql using SelectOneMenu primeface : I have been searching for similar issue but I could not find any. so here is the thing I am trying to create a web application that deals with HR stuff, like employee requests (Resign, loan, vacation, etc..) I am using primeface and I have the followi...
0debug
static av_cold int vp8_init(AVCodecContext *avctx) { VP8Context *ctx = avctx->priv_data; const struct vpx_codec_iface *iface = &vpx_codec_vp8_cx_algo; struct vpx_codec_enc_cfg enccfg; int res; av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str()); av_log(avctx, AV_LOG_VERBOSE, "%s...
1threat
How to switch class for div using js? : <p>I've done this using jquery, but can't do it with js.</p> <p>Look at my code: </p> <p>https:// jsfiddle. net/88pd6zj0/</p> <p>It's working only with first class = "html", but not working with another. I've tried change "querySelector" on "querySelectorAll" - and it's worki...
0debug
static void encode_quant_matrix(VC2EncContext *s) { int level, custom_quant_matrix = 0; if (s->wavelet_depth > 4 || s->quant_matrix != VC2_QM_DEF) custom_quant_matrix = 1; put_bits(&s->pb, 1, custom_quant_matrix); if (custom_quant_matrix) { init_custom_qm(s); put_vc2_ue_u...
1threat
How to detect if App has gone in or out of App Standyby Mode ( Android M+) : <p>If the device is in DOZE IDLE or IDLE_MAINTENANCE mode, these events can be received if we register a broadcast receiver for "<strong>android.os.action.DEVICE_IDLE_MODE_CHANGED</strong>". But this receiver is not working when making App to ...
0debug
static int quantize(CinepakEncContext *s, int h, AVPicture *pict, int v1mode, int size, int v4, strip_info *info) { int x, y, i, j, k, x2, y2, x3, y3, plane, shift; int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; int *codebook = v1mode ? info->v1_codebook : info->v4_codebook; int64_t tot...
1threat
static int mmap_init(AVFormatContext *ctx) { int i, res; struct video_data *s = ctx->priv_data; struct v4l2_requestbuffers req = { .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, .count = desired_video_buffers, .memory = V4L2_MEMORY_MMAP }; res = ioctl(s->fd, VIDIOC_REQBUF...
1threat
NodeJs Express send 403 and render : <p>How can I send a error 403 and render a page with 'you have no rights to visited this page' message?</p> <p>I have now this: </p> <pre><code>res.send(403,"You do not have rights to visit this page"); </code></pre> <p>but I want to render a HTML page instead a basic text</p> <...
0debug
In Java How to convert a numeric string to a Char : I have to convert a numeric string into an asc ii char. The charAt method does not work here. I have a string string c =4; How do i convert it to its sac ii char.
0debug
How can i replace an empty line with a specific text using bash script? : <p>Hi I am having a text file . the file has some lines without text . I would like to replace these lines with some specific text .</p> <p>log.txt </p> <pre><code>{"id":0,"manufacturer":"cheverlot","model":"AC 3000ME 1002","description":"Culpa...
0debug
Hi i have my code which gives me an out out but it will not graph ,here is the code (Matlab) : Hey i have written this code and it will not plot , I run it with a 0:.5:100 and get a blank graph in matlab. as well this is a inclined plane friction problem. I need to create an animation in matlab that shows the blocks sl...
0debug
is there any package to extract particular keyword in python : I have comments like "the product name with ch12345 and tp12345 " there are so many comments like this. my query is to extract keywords starts with ch and tp followed by two or three-digit number.
0debug
React, why use super(props) inside of ES6 class constructor? : <p>I realize the super keyword can be used to call functions in a parent component. However, I'm not totally clear why you would use the super keyword in the example below - just passing it whatever props are being passed to the constructor. </p> <p>Can so...
0debug
Remove a named volume with docker-compose? : <p>If I have a docker-compose file like:</p> <pre><code>version: "3" services: postgres: image: postgres:9.4 volumes: - db-data:/var/lib/db volumes: db-data: </code></pre> <p>... then doing <code>docker-compose up</code> creates a named volume for <code>d...
0debug
static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; AVFrame *pic; int i, ret; int chroma_h_shift, chroma_v_shift; av_pix_fmt_get_chroma_sub_sample(avctx->pix_fmt,...
1threat
Xcode 11: Canvas does not show up : <p>I´m trying to get the new Canvas feature from Xcode 11 running, but the Canvas won´t show up. What am I doing wrong?</p> <p>I just created a new default project (single view app), compiled it and activated 'Editor > Editor and Canvas'. I can navigate to each file in the project, ...
0debug
static void vtd_handle_gcmd_qie(IntelIOMMUState *s, bool en) { uint64_t iqa_val = vtd_get_quad_raw(s, DMAR_IQA_REG); trace_vtd_inv_qi_enable(en); if (en) { if (vtd_queued_inv_enable_check(s)) { s->iq = iqa_val & VTD_IQA_IQA_MASK; s->iq_size = 1UL << (...
1threat
How to make a regex? : I need to make a regex which matches with pattern like:- 1.data1,data2 2.data1 but not with data1&data2 or any other special character apart from ','. I have tried few like flag_regex = new RegExp("[a-zA-Z0-9].*,.*[a-zA-Z0-9]*"); but its only matches with first pattern not the secon...
0debug
Pyspark Joining dataframes with multiple rows on the second dataframe : I want to join a dataframe "df_1" with "df_2" on a column named "TrackID". df_1: cluster TrackID 1 a_1 2 a_1 3 a_2 1 a_3 df_2: TrackID ...
0debug
static int coroutine_fn blkreplay_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int count, BdrvRequestFlags flags) { uint64_t reqid = request_id++; int ret = bdrv_co_pwrite_zeroes(bs->file->bs, offset, count, flags); block_request_create(reqid, bs, qemu_coroutine_self()); qemu_corouti...
1threat
static int mkv_write_chapters(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; ebml_master chapters, editionentry; AVRational scale = {1, 1E9}; int i, ret; if (!s->nb_chapters || mkv->wrote_chapters) return 0; ret = mkv_add_seekhead_...
1threat
static int send_solid_rect(VncState *vs) { size_t bytes; vnc_write_u8(vs, VNC_TIGHT_FILL << 4); if (vs->tight_pixel24) { tight_pack24(vs, vs->tight.buffer, 1, &vs->tight.offset); bytes = 3; } else { bytes = vs->clientds.pf.bytes_per_pixel; } vnc_write(vs,...
1threat
save all the effect of a webpage forever : <p>Suppose i have a webpage having a button, and when i press the button it will create another button bellow that.Now i want to save the effect, that means when i will open the webpage again it will direct show the button bellow the button. How can i store this effect in data...
0debug
static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVIContext *avi = s->priv_data; ByteIOContext *pb = &s->pb; uint32_t tag, tag1, handler; int codec_type, stream_index, frame_period, bit_rate, scale, rate; unsigned int size, nb_frames; int i, n; AVStream *st; ...
1threat
Mainactivity appears to exist twice or more after restarting app : I have an app with an activity sending a broadcast to another activity. Everything appears to be fine. But if I close my app and open it again, this broadcasts seems to get send more than once. In fact it gets send as often I reopened the app. If I p...
0debug
static int ioh3420_initfn(PCIDevice *d) { PCIBridge* br = DO_UPCAST(PCIBridge, dev, d); PCIEPort *p = DO_UPCAST(PCIEPort, br, br); PCIESlot *s = DO_UPCAST(PCIESlot, port, p); int rc; int tmp; rc = pci_bridge_initfn(d); if (rc < 0) { return rc; } d->config[PCI_R...
1threat
void css_queue_crw(uint8_t rsc, uint8_t erc, int chain, uint16_t rsid) { CrwContainer *crw_cont; trace_css_crw(rsc, erc, rsid, chain ? "(chained)" : ""); crw_cont = g_try_malloc0(sizeof(CrwContainer)); if (!crw_cont) { channel_subsys.crws_lost = true; return; } c...
1threat
Appending bullet point sentences to main sentence using python : <p>I have a paragraph which is like in the following format, </p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry; (a) It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages; and ...
0debug
Java swing: cannot open popup frame from JTable : <p>My current project is simple email client. Now im done main window with list of messages from inbox. Next step is open new window with message from click on Jtable with list of messages. But Im getting this exception when click on row in table: </p> <pre><code>22 Te...
0debug
How to change the colour of the 'Cancel' button on the UISearchBar in Swift : <p>I have added a <code>UISearchBar</code> to the top of my <code>PFQueryTableViewController</code>. I have changed the colour of the searchBar to be the colour of my app, but in doing this, it seems to have also changed the colour of the 'Ca...
0debug
def check_identical(test_list1, test_list2): res = test_list1 == test_list2 return (res)
0debug
void pp_postprocess(const uint8_t * src[3], const int srcStride[3], uint8_t * dst[3], const int dstStride[3], int width, int height, const QP_STORE_T *QP_store, int QPStride, pp_mode *vm, void *vc, int pict_type) { int mbWi...
1threat
Issue with Garbage Collection : <p>I have code some what like</p> <pre><code>class HappyGarbage01 { public static void main(String args[]) { HappyGarbage01 h = new HappyGarbage01(); h.methodA(); /* Line 6 */ } Object methodA() { Object obj1 = new Object(); Object [] ob...
0debug
why doesn't input = charArray.ToString() return a string? : <p>I'm writing a program that takes a string as input and reverses it. In doing so I came across a behavior that I'm not understanding. </p> <p>Why doesn't this return a string? Instead it returns System.Char[].</p> <pre><code>using System; public static cl...
0debug
I want to load(play) the video only when the Marker(HIRO Pattern) is hovered in-front of my webcam : I am using A-Frame. I am trying to augment a Video(mp4) when the pattern or marker(HIRO) is hovered in front of my webcam, the video should be loaded or played on the marker. Now The issue with this code is when the pa...
0debug
string not compared in the second activity : i need the string from editText from mainactivity so that i can compare the value and show the desired image in the next..but only the else part is working in the second activity. i tried this code but it didnt work.. private Button b1; static EditText et; ...
0debug