problem
stringlengths
26
131k
labels
class label
2 classes
static void do_attach(USBDevice *dev) { USBBus *bus = usb_bus_from_device(dev); USBPort *port; if (dev->attached) { fprintf(stderr, "Warning: tried to attach usb device %s twice\n", dev->devname); return; } dev->attached++; port = TAILQ_FIRST(&bus->f...
1threat
static void vmport_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = vmport_realizefn; dc->no_user = 1; }
1threat
Get highest range from the overlapping ranges : <p>I have a file with ranges. I want the highest ranges from the list and remove other small overlapping ranges:</p> <pre><code>chr1A 77568 86766 chr1A 203138 204427 chr1A 204428 222994 chr1A 204428 206534 chr1A 206538 207965 chr1A 207967 213097 chr1A ...
0debug
static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; pkt_type_t pkt_type; int pkt_len; while (!url_feof(pb)) { int track_type, track_id, ret; int field_nr; int stream_index; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { ...
1threat
How can i replace special characters by regex and objective c : Helle everyone. Now i want to replace special character as - _ and i want to use regex to replace it. Please help me. Thank you so much.
0debug
How to mock a Kotlin singleton object? : <p>Given a Kotlin singleton object and a fun that call it's method</p> <pre><code>object SomeObject { fun someFun() {} } fun callerFun() { SomeObject.someFun() } </code></pre> <p>Is there a way to mock call to <code>SomeObject.someFun()</code>?</p>
0debug
Linux: Can't get home directory of user which contains whitespace : <p>I register standard user from GUI in CentOS 7(Shambala). From vipw file I changed its the users content<br> <code>sha mbala:x:1001:1001:sha mbala:/home/sha mbala:/bin/bash</code><br> and now I'm having trouble with entering in home directory with<br...
0debug
How fix attr/colorError in Android studio : org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed C:\Users\Jarup\.gradle\caches\transforms-1\files-1.1\card-form-3.5.0.aa...
0debug
static QDict *monitor_parse_arguments(Monitor *mon, const char **endp, const mon_cmd_t *cmd) { const char *typestr; char *key; int c; const char *p = *endp; char buf[1024]; QDict *qdict = qdict_new(); ...
1threat
def find_gcd(x, y): while(y): x, y = y, x % y return x def get_gcd(l): num1 = l[0] num2 = l[1] gcd = find_gcd(num1, num2) for i in range(2, len(l)): gcd = find_gcd(gcd, l[i]) return gcd
0debug
Select prices the last 5 rows of the table : i would like to know how could i get the last 5 rows and only show the prices that has the same value. Here is an example of my Table IDPRICES | PRICES <br/> 39 | 500 <br/> 38 | 300 <br/> 37 | 100 <br/> 36 | 200 <br/> 35 | 500 now ...
0debug
Implement Row Limit in sql data fetch : <p>In SQL Server, I want to restrict users to fetch all the data from the table. For example, If user execute, "select * from table", it will show only 100 rows, although i have millions of rows in table, so that it will not impact my production. I have more then 1000 tables in m...
0debug
Explanation stored procedure : I Am trying to understand a stored procedure, but i don't get it. I'm totally new to stored procedures. I have ordered a book about t-sql but it didn't arrived yet. I'm litterally stuck. Can someone please explain to me what the following stored procedure, exactly does? [Stored proc...
0debug
static int vpc_create(const char *filename, QEMUOptionParameter *options) { uint8_t buf[1024]; struct vhd_footer *footer = (struct vhd_footer *) buf; QEMUOptionParameter *disk_type_param; int fd, i; uint16_t cyls = 0; uint8_t heads = 0; uint8_t secs_per_cyl = 0; int64_t total_se...
1threat
How to mock new Date() in java using power mockito : <p>I am currently have a requirement where in, need to mock new Date() to a specific date for all the test cases.</p> <pre><code>@Before public void setUp() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date NOW = sdf.p...
0debug
static uint32_t m5206_mbar_readb(void *opaque, target_phys_addr_t offset) { m5206_mbar_state *s = (m5206_mbar_state *)opaque; offset &= 0x3ff; if (offset >= 0x200) { hw_error("Bad MBAR read offset 0x%x", (int)offset); } if (m5206_mbar_width[offset >> 2] > 1) { uint16_t val; ...
1threat
av_cold void ff_fft_init_arm(FFTContext *s) { if (HAVE_NEON) { s->fft_permute = ff_fft_permute_neon; s->fft_calc = ff_fft_calc_neon; s->imdct_calc = ff_imdct_calc_neon; s->imdct_half = ff_imdct_half_neon; s->mdct_calc = ff_mdct_calc_neon; s->permut...
1threat
int coroutine_fn bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { int64_t ret = bdrv_get_block_status(bs, sector_num, nb_sectors, pnum); if (ret < 0) { return ret; } return (ret & BDRV_BLOCK_ALLOCATED); }
1threat
static inline TranslationBlock *tb_find_fast(void) { TranslationBlock *tb; target_ulong cs_base, pc; uint64_t flags; #if defined(TARGET_I386) flags = env->hflags; flags |= (env->eflags & (IOPL_MASK | TF_MASK | VM_MASK)); flags |= env->intercept; cs_base = env->segs[R_CS]...
1threat
How to covert a string to time stamp in java? : Here is my code, SimpleDateFormat format = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss"); Date dft = (Date) format.parse("16-MAY-2018 09:30:22"); I am getting below exception > java.text.ParseException: Unparseable date: "16-MAY-2018 09:30:22" I have ...
0debug
Problems creating custom txt names in C : I am having trouble creating custom filenames in C. The goal is to use custom files to print data to for separate entities. My current code for the printing to the file is: ``` void output(int t, double rx[], double ry[], double rz[], double vx[], double vy[], double vz[], ...
0debug
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/logging/LogFactory : <p>Similar questions have need asked already. But this one seems to be more complicated than previous ones because of changes in compatibility of Android Platforms.</p> <p>Here is my error log from Pixel and Pixel2 which are...
0debug
void qemu_put_be16(QEMUFile *f, unsigned int v) { qemu_put_byte(f, v >> 8); qemu_put_byte(f, v); }
1threat
Nginx location configuration (subfolders) : <p>lets say I've a path like:</p> <pre><code>/var/www/myside/ </code></pre> <p>that path contains two folders... let's say <code>/static</code> and <code>/manage</code></p> <p>I'd like to configure nginx to have an access to:</p> <p><code>/static</code> folder on <code>/<...
0debug
av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans) { int n = 1 << nbits; int ret; s->nbits = nbits; s->inverse = trans == IDFT_C2R || trans == DFT_C2R; s->sign_convention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1; if (nbits < 4 ||...
1threat
static int vp9_raw_reorder_make_output(AVBSFContext *bsf, AVPacket *out, VP9RawReorderFrame *last_frame) { VP9RawReorderContext *ctx = bsf->priv_data; VP9RawReorderFrame *next_output = last_frame, *next_display = l...
1threat
Unable to resolve module 'AccessibilityInfo', when trying to create release bundle : <p>I am running </p> <pre><code>react-native bundle --platform windows --dev false --entry-file index.windows.js --bundle-output windows/app/ReactAssets/index.windows.bundle --assets-dest windows/app/ ReactAssets/ </code></pre> <p>co...
0debug
How to instantiate and apply directives programmatically? : <p>I know that in ng2 we have <code>ComponentFactoryResolver</code> that can resolve factories that we can apply to a <code>ViewContainerRef</code>.</p> <p>But, is there something similar for directives? a way to instantiate them and apply them to the project...
0debug
static int split_init(AVFilterContext *ctx, const char *args, void *opaque) { int i, nb_outputs = 2; if (args) { nb_outputs = strtol(args, NULL, 0); if (nb_outputs <= 0) { av_log(ctx, AV_LOG_ERROR, "Invalid number of outputs specified: %d.\n", nb_outputs);...
1threat
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet) { ProresContext *ctx = avctx->priv_data; uint8_t *orig_buf, *buf, *slice_hdr, *slice_sizes, *tmp; uint8_t *picture_size_pos; PutBitContext pb; int x, y, i, mb, q = 0; ...
1threat
void qbus_create_inplace(BusState *bus, BusInfo *info, DeviceState *parent, const char *name) { char *buf; int i,len; bus->info = info; bus->parent = parent; if (name) { bus->name = qemu_strdup(name); } else if (parent && parent->id) { ...
1threat
static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, long src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memory"); __as...
1threat
static void qmp_input_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, name, true)); if (!qstr) { error_setg(errp, QERR_INVALID_PARAMETER_TYPE, nam...
1threat
C++ - Repeat std::getline() as user integer input? : <p>How to repeat std::getline() as user number input like this method:</p> <pre><code> std::string num; std::cout &lt;&lt; "How many subjects you want to sum: "; std::getline (std::cin,num); </code></pre> <p>Then take user number input and repeat std::getline(...
0debug
static void sp804_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { sp804_state *s = (sp804_state *)opaque; if (offset < 0x20) { arm_timer_write(s->timer[0], offset, value); return; } if (offset < 0x40) { arm_time...
1threat
Error message after successfully pushing to Heroku : <pre><code>remote: Verifying deploy... done. fatal: protocol error: bad line length character: fata error: error in sideband demultiplexer </code></pre> <p>This just randomly started showing up. My changes are being saved in git and pushing successfully to Heroku. I...
0debug
INSERT into MySQL database with JavaScript but without Node.js : <p>I want to <code>INSERT</code> data into my MySQL database.</p> <p>After some research I found out I can use something called <code>Node.js</code> to do this.</p> <p>But it seems to complicated for this small thing I want to do.</p> <p>Is there a way...
0debug
Ruby Regex - get persons name : <p>Given consistent strings like this:</p> <pre><code>Manual stage: &lt;b&gt;Release&lt;/b&gt; by &lt;a href="https://test/builds/browse/user/a0123456"&gt;Joe Bloggs&lt;/a&gt; Changes by &lt;a href="https://test/builds/browse/user/b234556"&gt;John Doe&lt;/a&gt; </code></pre> <p>is t...
0debug
static void vhost_dev_sync_region(struct vhost_dev *dev, MemoryRegionSection *section, uint64_t mfirst, uint64_t mlast, uint64_t rfirst, uint64_t rlast) { uint64_t start = MAX(mfirst, rfirst); uint64_t en...
1threat
How to iterate over files in an S3 bucket? : <p>I have a large number of files (>1,000) stored in an S3 bucket, and I would like to iterate over them (e.g. in a <code>for</code> loop) to extract data from them using <code>boto3</code>.</p> <p>However, I notice that in accordance with <a href="http://boto3.readthedocs....
0debug
Extracting the first number after ']' in R : I would like to extract the first number after ']' in a character vector > dput(dense[1:8]) c(" 481 denseSlack[0,SMITH]", " 0 0 ", " 482 denseSlack[0,JOHNSON]", " 1 ...
0debug
BlockAIOCB *bdrv_aio_flush(BlockDriverState *bs, BlockCompletionFunc *cb, void *opaque) { trace_bdrv_aio_flush(bs, opaque); Coroutine *co; BlockAIOCBCoroutine *acb; acb = qemu_aio_get(&bdrv_em_co_aiocb_info, bs, cb, opaque); acb->need_bh = true; acb->req.error = -EINPROGRESS;...
1threat
When bulding a CNN, I am getting complaints from Keras that do not make sense to me. : <p>My input shape is supposed to be 100x100. It represents a sentence. Each word is a vector of 100 dimensions and there are 100 words at maximum in a sentence. </p> <p>I feed eight sentences to the CNN.I am not sure whether this me...
0debug
static int vcr1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { VCR1Context *const a = avctx->priv_data; AVFrame *const p = data; const uint8_t *bytestream = avpkt->data; const uint8_t *bytestream_end = bytestream + avpk...
1threat
database connection issue with PHP : Issue Is with the database connection for a open source Project(php). Everything works fine apart from the database connection required for login.Following is the error that can be seen after login. Warning: require_once(../mysqli_connect.php): failed to open stream: No such fil...
0debug
How to get rid of ArrayIndexOutOfBoundsException: 3 : <p>I am new in Java and try to understand how it works two dimensional arrays, and i encounter this erros. Thanks</p> <p>public class Main {</p> <pre><code>public static int n, m, a[][]; public static void main(String []args){ Scanner sc=new Scanner(System.in...
0debug
How to run a specific maven test class from the terminal? : <p>I have a maven project with junit tests classes. I want to run a tests in a specific class . how can i do that from the terminal ? for example i have a test spring junit test class named AccountServiceImplTest under the package com.openmind.service.impl ...
0debug
static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; int width, height, vo_ver_id; skip_bits(gb, 1); s->vo_type = get_bits(gb, 8); if (get_bits1(gb) != 0) { vo_ver_id = get_bits(gb, 4); ...
1threat
React/RCTBridgeDelegate.h' file not found : <p>I have created a new project called auth using react-native init auth at terminal.When i tried to run the project using react-native run-ios. The build failed and gave a error 'React/RCTBridgeDelegate.h' file not found.</p> <p>Tried to update the react native version</p> ...
0debug
Android Error [java.lang.NullPointerException: 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference] : <p>I have my main which contain a menu drawer with some fragments. Then a host page before to display the main. I have some errors about that <code>Attempt to invoke vi...
0debug
Adding data to datable from a dialog box - jsf - primafaces : i'm new to JSF and having this problem of adding data to my datatable from a dialog box. I click on a commandButton "add" , a dialog box should appear and then i should save the data entries , but when i check them i find them empty - (datatble single row se...
0debug
remove html tags from the json response in android : Hi from the below response want to remove <p> <br> unwanted tags and blank spaces and want to bold display heading should be bold can any one help me String termsnconditions=listSalesStageOpportunity.get(position).getTermsnconditions(); Resonse : "<p...
0debug
Delete the last Char of a PHP String : <p>My Problem : i cant delete the last char of a string : </p> <pre><code> foreach($_POST['checkbox'] as $item) { $string .= $item.', '; } $markte=rtrim($string ,", "); </code></pre>
0debug
How do I check whether a scanned integer is indeed an integer? : <p>I'm pretty new to Java, I program in C# which is very similar, but I have some troubles defending my code in java.</p> <p>I'd like to defend my code against illegal input such as string,char,special char.</p> <p>I want every time an input other than ...
0debug
build_rsdt(GArray *table_data, BIOSLinker *linker, GArray *table_offsets, const char *oem_id, const char *oem_table_id) { AcpiRsdtDescriptorRev1 *rsdt; size_t rsdt_len; int i; const int table_data_len = (sizeof(uint32_t) * table_offsets->len); rsdt_len = sizeof(*rsdt) + table_dat...
1threat
"This version of C:\TURBOC3\BIN\TCC.EXE is not compatible with the version of Windows you're running. : <p>I have downloaded zip file of Turbo C++ 3.2 for my windows 10 64-bit. I can not run it in cmd because it gives mentioned error. But it perfectly runs in turbo c++. I have set environment variables. what should i d...
0debug
CPUState *ppc405ep_init (target_phys_addr_t ram_bases[2], target_phys_addr_t ram_sizes[2], uint32_t sysclk, qemu_irq **picp, int do_init) { clk_setup_t clk_setup[PPC405EP_CLK_NB], tlb_clk_setup; qemu_irq dma_irqs[4], gpt_irqs[5], m...
1threat
How to store the output of a command in a variable at the same time as printing the output? : <p>Say I want to <code>echo</code> something and capture it in a variable, at the same time I see it in my screen.</p> <pre><code>echo "hello" | tee tmp_file var=$(&lt; tmp_file) </code></pre> <p>So now I could see <code>hel...
0debug
static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) { int width = pixman_image_get_width(vd->guest.fb); int height = pixman_image_get_height(vd->guest.fb); int x, y; struct timeval res; int has_dirty = 0; for (y = 0; y < height; y += VNC_STAT_RECT) { for (x = 0; x...
1threat
Should we do nil check for non optional variables : I have a function abc as follows and I should throw an error when the arguments passed are empty of nil,, should I check for nil too? or only empty is enough ? public func abc(forURL serviceUrl:String,serviceID:String, error:inout Error? )throws ->[AnyHashable ...
0debug
whats does if(variable ) means in c language? : I m currently preparing for gate , I have come across a question #include<stdio.h> main() { static int var=6; printf("%d\t",var--); if(var) main(); } output is 6 5 4 3 2 1 i wanna know why it terminated after 1??
0debug
static void aarch64_numa_cpu(const void *data) { char *cli; QDict *resp; QList *cpus; const QObject *e; cli = make_cli(data, "-smp 2 " "-numa node,nodeid=0 -numa node,nodeid=1 " "-numa cpu,node-id=1,thread-id=0 " "-numa cpu,node-id=0,thread-id=1"); qtest_start...
1threat
How to share extensions and settings with VS Code stable and insider build? : <p>I have installed both the versions of VS Code stable and insiders build on my machine.</p> <p>But the problem is that insiders are not showing all the settings and extensions I am using in the stable version.</p> <p>So, how to share all ...
0debug
what's wrong in SELECT STATEMENT? : im using this code to get the last number in a fields where date of fields is today date: cn.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Application.StartupPath & "\bysys.mdb") rs.Open("Select max(snum) From tblbill where idate = #" & Format(Today.Date...
0debug
ElidedSemicolonAndRightBrace expected : <p>I have the following code ("codes" is an array variable):</p> <pre><code>Arrays.asList(codes) .stream() .filter(code -&gt; code.hasCountries()) .sorted() .toArray() ); </code></pre> <p>The compiler gives me the following error:</p> <b...
0debug
Any idea how I could structure my project? : <p>I've been teaching python courses for a while and I've started doing my own project to practice with the knowledge I learned. The problem is when it comes to structuring that I'm a little lost since I've always programmed on the web.</p> <p>My project is about a virtual ...
0debug
When I should use render: h => h(App)? : <p>By the <a href="https://vuejs.org/v2/guide/render-function.html" rel="noreferrer">docs</a> I do not fully understand when I should use <code>render: h =&gt; h(App)</code> function.</p> <p>For example I have very simple Vue app:</p> <pre><code>import Vue from 'vue' import Ap...
0debug
Load data from the database to mat-table when click Next page : <p>I am using angular 7 with spring boot, and i am use mat-table, i don't want load for example all the data from database in one load, i want to load data just when click on next page in mat-table. and This image for my mat-table.</p> <p><a href="https:/...
0debug
static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end, const char *in, int x1, int y1, int x2, int y2) { char c, *param, buffer[128], tmp[128]; int len, tag_close, sptr = 1, line_start = 1, an = 0, end = 0; SrtStack stack[16]; stack[0].tag[0]...
1threat
multiple condition in ternary operator in jsx : <pre><code>&lt;div style={{'backgroundColor': status === 'approved' ? 'blue' : 'black'}}&gt; &lt;/div&gt; </code></pre> <p>black is the default color but what if I want to add the 3rd condition? </p> <p>status can be 'approved', 'rejected', 'pending' or more.</p>
0debug
Rstudio and Google Drive Syncing Problems: "The process cannot access the file because it is being used by another process" : <p>So I'm using RStudio and storing my files on Google Drive (the version with folders on your system, acting like Dropbox). I'm using it because it provides a lot more space for free than Dropb...
0debug
Check if a row in one data frame exist in another data frame : <p>I have a data frame A like this:</p> <p><a href="https://i.stack.imgur.com/uu12A.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uu12A.png" alt="enter image description here"></a></p> <p>And another data frame B which looks like this:</p> <p...
0debug
Which is better Theano? : **I want to install Theano on my windows 8.1 x64 machine. I already have anaconda (latest 64 bit) with python 2.7.x version.** **I have two options of installing:** # Option 1 : from pip pip install Theano **And** # Option 2 : Bleeding edge from git pip i...
0debug
golang if initialization statement scoped to inner if block. Why? : <p>I've found a bug in my code</p> <pre><code>func receive() (err error) { if v, err := produce(); err == nil { fmt.Println("value: ", v) } return } </code></pre> <p>Error is never returning from this function, but I was absolutel...
0debug
def check_none(test_tup): res = any(map(lambda ele: ele is None, test_tup)) return (res)
0debug
Background Fetch at Specific Time : <p>I am looking for solution to get data in background mode even app is terminated. There are lots of tutorials and answers available for this questions, but my questions is different than other. I haven't find any proper solution on stackoverflow, so posted this question.</p> <p>I ...
0debug
Undefined Reference to deck::array1 in c++ : <p>I have header file in which I have static function which are public and i have a private static array. In my c++ file file i am calling my array from one of this static function and getting error "UNDEFINED REFERENCE TO abc::ARRAY". why I am getting this error? When I rem...
0debug
e1000_receive(NetClientState *nc, const uint8_t *buf, size_t size) { E1000State *s = DO_UPCAST(NICState, nc, nc)->opaque; struct e1000_rx_desc desc; dma_addr_t base; unsigned int n, rdt; uint32_t rdh_start; uint16_t vlan_special = 0; uint8_t vlan_status = 0, vlan_offset = 0; uin...
1threat
int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, const void *pp, unsigned pp_size, const void *qm, unsigned qm_size, int (*commit_bs_si)(AVCodecContext *, D...
1threat
static target_long monitor_get_tbu (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return cpu_ppc_load_tbu(env); }
1threat
Very strange error : class SignUp: UIViewController { @IBOutlet weak var buttonNameTxt: UITextField! @IBOutlet weak var buttonEmailTxt: UITextField! @IBOutlet weak var buttonPwdTxt: UITextField! override func viewDidLoad() { super.viewDidLoad() } @IBAction func buttonSignIn(_ sender: UIButton){ let userm...
0debug
JavaScript Regex that matches words starting with a dot, that do not end with a (. : <p>I am trying to write a regex that matches JavaScript properties only, for a highlight plugin.</p> <ol> <li>It should start with a dot but not include it </li> <li>It should match any word that contains: [_$A-z]</li> <li>The word ca...
0debug
C# CS0136/CS0165 Errors Text-Based RPG : <p>I'm currently making a test text-based RPG, I'm currently on the currency system and I am receiving an error. I'm not sure why.</p> <pre><code>for (int gold; gold &lt;= 10; gold++){ if (gold == 10) { break; Console.WriteLine("You now have " + gold + " Gold Pieces"); } } ...
0debug
static void ffserver_apply_stream_config(AVCodecContext *enc, const AVDictionary *conf, AVDictionary **opts) { AVDictionaryEntry *e; if ((e = av_dict_get(conf, "VideoBitRateRangeMin", NULL, 0))) ffserver_set_int_param(&enc->rc_min_rate, e->value, 1000, INT_MIN, I...
1threat
static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW) { #ifde...
1threat
MacOS Catalina UDID Copy for iPhone : <p>How to copy UDID of the iPhone?</p> <p><a href="https://i.stack.imgur.com/w8ZvE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w8ZvE.png" alt="enter image description here"></a></p> <p>I want to register my iPhone as a tester within the Apple store account. So follo...
0debug
Allign Main Slider image to center : I work on small project , and have one little problem that dont know how to resolve myself. I have Image Gallery with many images but want active image, to be showed into center , without change resolution or image width/height ratio. Link from issue [here][1]. Login is user / passw...
0debug
Why am i getting the wrong output? (Python random number generator calculator) : <p>This program is suppose to generate two random numbers and have the user input the result. If the user input is correct, then the program will print 'You are correct!' If wrong, the program will print 'You are wrong!' However, when t...
0debug
static inline void downmix_3f_1r_to_dolby(float *samples) { int i; for (i = 0; i < 256; i++) { samples[i] += (samples[i + 256] - samples[i + 768]); samples[i + 256] += (samples[i + 512] + samples[i + 768]); samples[i + 512] = samples[i + 768] = 0; } }
1threat
static void kqemu_record_pc(unsigned long pc) { unsigned long h; PCRecord **pr, *r; h = pc / PC_REC_SIZE; h = h ^ (h >> PC_REC_HASH_BITS); h &= (PC_REC_HASH_SIZE - 1); pr = &pc_rec_hash[h]; for(;;) { r = *pr; if (r == NULL) break; if (r->pc =...
1threat
Using Jackson to map object from specific node in JSON tree : <p>Is it possible to have Jackson's <code>ObjectMapper</code> unmarshall only from a specific node (and 'down') in a JSON tree?</p> <p>The use case is an extensible document format. I want to walk the tree, and then publish the current path to an extensible...
0debug
static void trigger_page_fault(CPUS390XState *env, target_ulong vaddr, uint32_t type, uint64_t asc, int rw) { CPUState *cs = CPU(s390_env_get_cpu(env)); int ilen = ILEN_LATER; int bits = trans_bits(env, asc); if (rw == 2) { ilen = 2; } DP...
1threat
Missing template arguments before 's' C++ : <p>Well I am doing an assignment but not sure what my problem is </p> <p>this is my assignment</p> <p>Instructions You have two parts to this assignment. The parts are related, but different in their implementation. To better understand the assignment itself, it may be he...
0debug
Making an HTML string from a React component in background, how to use the string by dangerouslySetInnerHTML in another React component : <p>I'm trying to render LaTeX strings in a React project. Although I use the <code>react-mathjax</code> React components, I want to get an HTML string made from the LaTeX strings in ...
0debug
What's the data type of this variable? : <pre><code>Dim FilesA As String() Dim FilesB() As String </code></pre> <p>What is the data type for FilesA? What is the difference between above two declarations? Can they be used interchangeably?</p>
0debug
Problem with Loop In Python loop is not defined : <p>my loop won't work</p> <pre><code>Loop = True while loop: print ("hi") #should constanly print hi </code></pre> <p>NameError: name 'loop' is not defined</p>
0debug
static void trim_aio_cancel(BlockAIOCB *acb) { TrimAIOCB *iocb = container_of(acb, TrimAIOCB, common); iocb->j = iocb->qiov->niov - 1; iocb->i = (iocb->qiov->iov[iocb->j].iov_len / 8) - 1; iocb->ret = -ECANCELED; if (iocb->aiocb) { bdrv_aio_cancel_async(iocb->aiocb); ...
1threat
How to change date format of a date inside a string? : <p>I have a string "Hello please change the date from 04/24/2017 by putting month in the middle"</p> <pre><code>class Paragraph: @staticmethod def change_date_format(paragraph): return None print(Paragraph.change_date_format('Hello please change ...
0debug
static int decode_user_data(MpegEncContext *s, GetBitContext *gb){ char buf[256]; int i; int e; int ver, build, ver2, ver3; char last; for(i=0; i<255; i++){ if(show_bits(gb, 23) == 0) break; buf[i]= get_bits(gb, 8); } buf[i]=0; e=sscanf(buf, "DivX...
1threat
Does an exception handler passed to CompletableFuture.exceptionally() have to return a meaningful value? : <p>I'm used to the <a href="https://github.com/google/guava/wiki/ListenableFutureExplained" rel="noreferrer"><code>ListenableFuture</code></a> pattern, with <code>onSuccess()</code> and <code>onFailure()</code> ca...
0debug