problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
av_cold void ff_dsputil_init_armv5te(DSPContext *c, AVCodecContext *avctx)
{
if (avctx->bits_per_raw_sample <= 8 &&
(avctx->idct_algo == FF_IDCT_AUTO ||
avctx->idct_algo == FF_IDCT_SIMPLEARMV5TE)) {
c->idct_put = ff_simple_idct_put_armv5te;
c->idct_add ... | 1threat |
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
{
uint8_t *buffer;
int max_buffer_size = s->max_packet_size ?
s->max_packet_size : IO_BUFFER_SIZE;
int filled = s->buf_end - s->buffer;
ptrdiff_t checksum_ptr_offset = s->checksum_ptr ? s->checksum_ptr - s->buffer... | 1threat |
Can someone explain this html switch code to me? : // I don't really understand the switch here, from what I know the switch function is supposed allow me to write certain cases and each case is supposed to redirect me to a function, this is an example from my college slides, are the cases numbered "1234","12345", "123... | 0debug |
static void sbr_qmf_synthesis(DSPContext *dsp, FFTContext *mdct,
float *out, float X[2][38][64],
float mdct_buf[2][64],
float *v0, int *v_off, const unsigned int div)
{
int i, n;
const float *sbr_qmf_window = div ? s... | 1threat |
static int dss_read_metadata_date(AVFormatContext *s, unsigned int offset,
const char *key)
{
AVIOContext *pb = s->pb;
char datetime[64], string[DSS_TIME_SIZE + 1] = { 0 };
int y, month, d, h, minute, sec;
int ret;
avio_seek(pb, offset, SEEK_SET);
re... | 1threat |
getElementById works only in Firefox : No much to say, my script works fine in Firefox but its not in Chrome or IE or Opera
var ids = ['id1','id2'];
function myfunction() {
for (var i = 0; i < ids.length; i++) {
var x = document.getElementById(ids[i]);
if (x.style.disp... | 0debug |
Visual Studio 2017 RC - Prerelease has ended : <p>I get the following message and cannot proceed to do any other work within Visual Studio 2017 RC : This prerelease has ended. This prerelease has expired. Thank you for your participation. Upgrade to the latest version of this product to keep working without interruptio... | 0debug |
Compile and use ABI-dependent executable binaries in Android with Android Studio 2.2 and CMake : <p>I'm testing out the new Android Studio C/C++ building via CMake through stable gradle (<a href="http://tools.android.com/tech-docs/external-c-builds" rel="noreferrer">http://tools.android.com/tech-docs/external-c-builds<... | 0debug |
Two similar programs both have errors on final line : <p>I have written two similar programs for my programming class. I have shared the code for both programs due to them being similar in nature and both have compiler issues on the final line with return0; For the first string of code the error I receive is "expe... | 0debug |
Double requirement given when trying to use pip install pandas : <p>I want to build a Docker container using a Dockerfile containing <code>pip install -r requirements.txt</code>. pandas==0.22.0 is included in this requirements.txt file. Untill two days ago, the Docker container was perfectly build. Starting from yester... | 0debug |
static void test_qemu_strtoul_full_max(void)
{
char *str = g_strdup_printf("%lu", ULONG_MAX);
unsigned long res = 999;
int err;
err = qemu_strtoul(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, ULONG_MAX);
g_free(str);
}
| 1threat |
void ff_hevc_luma_mv_mvp_mode(HEVCContext *s, int x0, int y0, int nPbW,
int nPbH, int log2_cb_size, int part_idx,
int merge_idx, MvField *mv,
int mvp_lx_flag, int LX)
{
HEVCLocalContext *lc = s->HEVClc;
MvField *tab_... | 1threat |
NSDictionary use : <p>I need some kind of help with an explanation to understand how use a NSDirectory, i don´t know if is possible to insert a NSString or NSDictionary's data from a class "A" in another NSDictionary in class B</p>
<p>Class A </p>
<pre><code>String
NSString *TwitterToken = accessTokenTwt;
NSString *t... | 0debug |
What's the advantage of using case classes? : <p>Sometimes I see people using standalone case classes for general purposes, instead of pattern matching, for example,</p>
<pre><code>case class Employee(id: Int, name: String, age: Int, city: String)
</code></pre>
<p>What's the advantage using case classes like this ove... | 0debug |
static void acpi_align_size(GArray *blob, unsigned align)
{
g_array_set_size(blob, (ROUND_UP(acpi_data_len(blob), align) +
g_array_get_element_size(blob) - 1) /
g_array_get_element_size(blob));
}
| 1threat |
Im trying to create tabbed fragments on android studio : The error Im getting is firstly, Im trying to convert my Main Activity from a class to a fragment, so that my Navigation drawer will work on the page. However the problem here is `cannot resolve method `getSupportMenuInflater().` I believe I may have left somethi... | 0debug |
Project builds but can't publish : <p>I have an MVC project that for an uknown reason refuses to publish to a local folder in the PC.</p>
<p>The log says the following:</p>
<pre><code>3>------ Publish started: Project: Admin, Configuration: Release Any CPU ------
3>Connecting to D:\Deploys...
3>Project "Admi... | 0debug |
Laravel Nova display user-friendly resource name : <p>Let's say that I have a resource called "Resource_test". When I'm displaying that resource in Nova, that resource name (or "label") displays the name as-is which obviously isn't very user-friendly.</p>
<p>Is it possible to rename the "label" to "Resource Test" (wit... | 0debug |
Adding 2 array `type`s in Golang : <p>I have a <code>type</code> called <code>EmployeeList</code> which is just an array of <code>Employee</code> structs. </p>
<p>If I have to add/combine <code>EmployeeList</code> objects, I thought I could add them as follows</p>
<pre><code>package main
import (
"fmt"
)
type Emp... | 0debug |
connection.query('SELECT * FROM users WHERE username = ' + input_string) | 1threat |
Update a variable in Python 3 : <p>I'm trying to update a multiplicative value to a variable.</p>
<p>I know that I can do += and -= for addition and subtraction and *= for multiplication, but I don't fully grasp the entirety of that type of operation. Can someone point me to the documentation that covers this? I can... | 0debug |
Work Items, Pull Requests menu not visible in Visual Studio : <p>I'm using VSTS and Visual Studio enterprise on two different machines (both VS2015U3 on Win10). The project has a git-repository. On one machine I do have all expected menu's (<a href="https://www.visualstudio.com/en-us/docs/connect/work-team-explorer" re... | 0debug |
How to get text from input and set position? : I have a
<input type="text">
How can I get text from this input and how can I set position of this text? | 0debug |
static int mov_read_tkhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
int i;
int width;
int height;
int display_matrix[3][3];
AVStream *st;
MOVStreamContext *sc;
int version;
int flags;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_st... | 1threat |
Java arraylist project String and Ints : <p>I have to make a project using an array list and reading data from a file
The file will contain input that looks something like this: </p>
<p>4</p>
<p>34 F</p>
<p>23 M</p>
<p>32 M</p>
<p>43 F</p>
<p>The 4 refers to how many racers there are; the numbers represent that r... | 0debug |
static inline void RENAME(rgb16tobgr24)(const uint8_t *src, uint8_t *dst, int src_size)
{
const uint16_t *end;
const uint16_t *mm_end;
uint8_t *d = (uint8_t *)dst;
const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
__asm__ volatile(PREFETCH" %0"::"m"(*s):"memory");
m... | 1threat |
SQL query for calculate cont of orders for each day : <p>Have a table:</p>
<pre><code>order_id | time_order
1 | 2018-10-10 12:22:05
2 | 2018-10-11 05:22:05
4 | 2018-10-12 07:22:05
5 | 2018-10-12 15:25:05
...
</code></pre>
<p>I need to calculate orders count for each day in time interval and make a string like $str = ... | 0debug |
Flutter - Displaying two ListViews on one screen : <p>I'm trying to add a horizontal <code>listView.builder</code> on top of another vertical <code>listView.builder</code>. Both <code>listViews</code> should have <code>text</code> on top of both.</p>
<p>This is what I've made so far, <strong>only the top horizontal</s... | 0debug |
how to remove duplicate elements from an array of arrays in PHP : <pre><code>"2017-08-31":["5948a0dd21146a43fdcfef5a","5948a0dd21146a43fdcfef5a"]
"2017-08-22":["5948a0dd21146a43fdcfef5a"]
"2017-08-09":["59461ceae6179b19403c6a19","59461ceae6179b19403c6a19"]
"2017-08-08":["59461ceae6179b19403c6a19","59461ceae6179b19403c6... | 0debug |
gboolean qcrypto_hash_supports(QCryptoHashAlgorithm alg G_GNUC_UNUSED)
{
return false;
}
| 1threat |
static int parse_netdev(DeviceState *dev, const char *str, void **ptr)
{
NICPeers *peers_ptr = (NICPeers *)ptr;
NICConf *conf = container_of(peers_ptr, NICConf, peers);
NetClientState **ncs = peers_ptr->ncs;
NetClientState *peers[MAX_QUEUE_NUM];
int queues, i = 0;
int ret;
queues = qemu_find... | 1threat |
The value x assigned to y is never used in android switch statement? : [![simple calculator in android][1]][1]
[1]: https://i.stack.imgur.com/DLJSC.png
The value operandOneValue+opearndTwoValue assigned to 'resultValue' is never used?I can't figure out the error? | 0debug |
How to graph tf.keras model in Tensorflow-2.0? : <p>I upgraded to Tensorflow 2.0 and there is no <code>tf.summary.FileWriter("tf_graphs", sess.graph)</code>. I was looking through some other StackOverflow questions on this and they said to use <code>tf.compat.v1.summary etc</code>. Surely there must be a way to graph a... | 0debug |
static int block_save_iterate(QEMUFile *f, void *opaque)
{
int ret;
DPRINTF("Enter save live iterate submitted %d transferred %d\n",
block_mig_state.submitted, block_mig_state.transferred);
ret = flush_blks(f);
if (ret) {
blk_mig_cleanup();
return ret;
}
... | 1threat |
How to get latest offset for a partition for a kafka topic? : <p>I am using the Python high level consumer for Kafka and want to know the latest offsets for each partition of a topic. However I cannot get it to work. </p>
<pre><code>from kafka import TopicPartition
from kafka.consumer import KafkaConsumer
con = Kafka... | 0debug |
Converting String to Char with If/Else Statement : <p>I'm really new to programming and I've been searching for days for a solution to this lab I'm working on. The lab is pretty simple and I believe I have the logic down, however when executing my code, I'm not getting the desired results. The program asks for input of... | 0debug |
How to search only in currently open files in vscode? : <p>I usually work on larger projects with many files that would contain the search query. So I would open the files I want to modify and do a find/replace across all currently opened files. Can this be done in vs code?</p>
<p>The feature I'm looking for is implem... | 0debug |
Admin Pannel Url For Magento,Php Website? : [This is the website][1]
I have to fix some problems in this website through backend. I have user name and password for admin but not login url for Admin Pannel...
Any help would be great...
Thanks...
[1]: https://www.garamloha.com/ | 0debug |
static void sha512_transform(uint64_t *state, const uint8_t buffer[128])
{
uint64_t a, b, c, d, e, f, g, h;
uint64_t block[80];
uint64_t T1;
int i;
a = state[0];
b = state[1];
c = state[2];
d = state[3];
e = state[4];
f = state[5];
g = state[6];
h = state[7... | 1threat |
Testing React Select component : <p><a href="https://github.com/JedWatson/react-select" rel="noreferrer">https://github.com/JedWatson/react-select</a></p>
<p>I would like to use React-Select react component, but I need to add tests.</p>
<p>I've tried several options I found with google, but nothing seems to work. I h... | 0debug |
pip for python3.5 broken Ubuntu 16.10 : <p>I'm experiencing a strange issue with the pip(3).</p>
<p>I'm receiving this error when I performed any pip command like pip --version(or pip3 --version):</p>
<pre><code>Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip im... | 0debug |
int load_vmstate(const char *name, Error **errp)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int ret;
AioContext *aio_context;
MigrationIncomingState *mis = migration_incoming_get_current();
if (!bdrv_all_can_snapshot(&bs)) {
error_setg(errp,
... | 1threat |
from itertools import groupby
def modified_encode(alist):
def ctr_ele(el):
if len(el)>1: return [len(el), el[0]]
else: return el[0]
return [ctr_ele(list(group)) for key, group in groupby(alist)] | 0debug |
Function returning blank string : <p>This function keeps on returning a blank string.</p>
<pre><code> public String getRandomWord() {
int id = (int)(Math.random())*(numberOfRows())+1;
SQLiteDatabase db = this.getReadableDatabase();
Cursor res = db.rawQuery( "select word from words where id="+i... | 0debug |
Downgrade the android version cause error : <p>Developer, I am learning to develop xamarin.android application
I am just downgraded the my app android version from 7.0 to 4.3 to run the app on my mobile so it causes this error</p>
<p>also, refer some tutorials for beginners </p>
<p><a href="https://i.stack.imgur.com/... | 0debug |
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
{
SmackVContext * const smk = avctx->priv_data;
uint8_t *out;
uint32_t *pal;
GetBitContext gb;
int blocks, blk, bw, bh;
int i;
int stride;
if(buf_size == 769)
... | 1threat |
static void test_visitor_in_bool(TestInputVisitorData *data,
const void *unused)
{
bool res = false;
Visitor *v;
v = visitor_input_test_init(data, "true");
visit_type_bool(v, NULL, &res, &error_abort);
g_assert_cmpint(res, ==, true);
}
| 1threat |
Java equivalent to C++ arrow : <p>I understand that --> in C++ is the equivalent to . in Java.</p>
<p>The following C++ code</p>
<pre><code>SLList *prevList;
prevList = this->rest()->prevList;
</code></pre>
<p>Can be converted in Java code like this:</p>
<pre><code>SLList prevList;
prevList = this.rest().prev... | 0debug |
TS - Only a void function can be called with the 'new' keyword : <p>I am getting this weird error from TypeScript:</p>
<blockquote>
<p>"Only a void function can be called with the 'new' keyword."</p>
</blockquote>
<p><strong>What?</strong></p>
<p><a href="https://i.stack.imgur.com/bKAUT.png" rel="noreferrer"><img ... | 0debug |
How to remove Duplicated Elements in List in Java (All Element do not stay any one) : List<Integer> list = new ArrayList<>(1,2,1,3,5);
//output will be [2,3,5] without 1 | 0debug |
static const struct URLProtocol *url_find_protocol(const char *filename)
{
const URLProtocol **protocols;
char proto_str[128], proto_nested[128], *ptr;
size_t proto_len = strspn(filename, URL_SCHEME_CHARS);
int i;
if (filename[proto_len] != ':' &&
(strncmp(filename, "subfile,", 8) |... | 1threat |
Order of Instantiation : <p>A question I'm having trouble finding the answer to: When my class is instantiated, in what order are it's members instantiated.</p>
<p>For example, can I set a member to the value of a member lower in the declaration order? (See code example.)</p>
<pre><code>// Can I do the following:
cl... | 0debug |
void clear_blocks_dcbz128_ppc(DCTELEM *blocks)
{
POWERPC_TBL_DECLARE(powerpc_clear_blocks_dcbz128, 1);
register int misal = ((unsigned long)blocks & 0x0000007f);
register int i = 0;
POWERPC_TBL_START_COUNT(powerpc_clear_blocks_dcbz128, 1);
#if 1
if (misal) {
memset(blocks, 0, sizeo... | 1threat |
Cannot import keras after installation : <p>I'm trying to setup <code>keras</code> deep learning library for <code>Python3.5</code> on Ubuntu 16.04 LTS and use <code>Tensorflow</code> as a backend. I have <code>Python2.7</code> and <code>Python3.5</code> installed. I have installed <code>Anaconda</code> and with help o... | 0debug |
How can I reduce search time looking for a list in a list of lists? : <p>I have a list containing many lists each of length between 60 and 120. I want a faster way than linear search to look through the list for finding the index of the array which has values close to the inputted array.</p>
| 0debug |
how to delete all column data excluding id(foreign key) and license column : mysql> SELECT * FROM calls;mysql> SELECT * FROM calls;
+----+------------+---------+--------+
| id | date | user_id |license |
+----+------------+---------+--------+
| 1 | 2016-06-22 | 1 | he |
| 2 | 2016-06-22 | NULL... | 0debug |
regex pattern 1,3,30,32,40-50,60 : <p>Regex pattern that accepts this example</p>
<pre><code>1,3,30,32,40-50,60
</code></pre>
| 0debug |
c++ How to convert String to int (ascii code to value); : <p>i have been trying to make a program that checks if a national identification number is valid how ever i have run into a issue and i can't find an answer anywhere.
I am using a string to store the users input of the identification code and i need to somehow... | 0debug |
Helm Subchart order of execution in an umbrella chart : <p>I have an umbrella chart with multiple sub-charts, I simply want to make sure that subchart1 runs before subchart2, etc. How can we define the order of subchart execution?</p>
<p>Seems like hook-weights only apply relative to the chart that declares them.</p>
| 0debug |
static inline void dv_decode_video_segment(DVVideoContext *s,
uint8_t *buf_ptr1,
const uint16_t *mb_pos_ptr)
{
int quant, dc, dct_mode, class1, j;
int mb_index, mb_x, mb_y, v, last_index;
DCTELEM *block, *block1;
... | 1threat |
Variable inside setTimeout says it is undefined, but when outside it is defined : <p>I have a class. I need to do some http work inside of a timeout. The problem I am faceing is the http variable inside the timeout keeps saying it is undefined.</p>
<pre><code>export class MyClass {
http:Http:
constructor(pri... | 0debug |
how would i return a instance of interface Infocard? : i am currently doing an assignment for my computer science course, however i have ran into a road block preventing me advancing any further. i am trying to return the InfoCard interface and i am unsure as to how.
public interface IInfoCardFactory
... | 0debug |
Why SpriteKit Show threat in app delegate class when run the app? : <p>When I add elements from one array to another then remove all the elements from the first one ---> Xcode makes crash(open AppDelegate class)</p>
| 0debug |
what is the difference between jax-rpc and jax-ws web services? : <p>what is the difference between jax-rpc and jax-ws web services?</p>
<p>How to migrate legacy code using jax-rpc to jax-ws?</p>
| 0debug |
How to extract key value from a JSON response in Java Language? : {"reservation_upto": {"lng": 78.0098161, "lat": 27.1752554, "code": "AGC", "name": "AGRA CANTT"},
"debit": 3,
"doj": "28-05-2018",
"to_station": {"lng": 78.0098161, "lat": 27.1752554, "code": "AGC", "name": "AGRA CANTT"},
"response_code": 200,
"boar... | 0debug |
void mcf_fec_init(NICInfo *nd, target_phys_addr_t base, qemu_irq *irq)
{
mcf_fec_state *s;
qemu_check_nic_model(nd, "mcf_fec");
s = (mcf_fec_state *)qemu_mallocz(sizeof(mcf_fec_state));
s->irq = irq;
s->mmio_index = cpu_register_io_memory(mcf_fec_readfn,
... | 1threat |
Is my understanding of async-await correct? : <p>I've read at least a dozen articles on it and I think I finally understand. Critique my following explanation.</p>
<p>If I use the <code>async</code> keyword inside a function, it signals <strong>to the caller of the function</strong> that when it reaches the <code>awai... | 0debug |
I can't create an iTunes Connect user with an email containing a plus sign : <p>I used to be able to add or be added as a user to an iTunes Connect team with an email containing a plus sign. This was convenient because I was able to be part of multiple iTunes Connect teams with the same Gmail email address (emails sent... | 0debug |
Upgrade Expo CLI have unknown error --assetPlugins : <p>I upgrade to latest Expo CLI 2.19.2 and tried upgrade my expo application using SDK 33. </p>
<p>When I called expo start, i have a message saying: </p>
<blockquote>
<p>Opening DevTools in the browser... (press shift-d to disable) error: unknown option `--asset... | 0debug |
Copy files from one folder to another remotely in power-shell : Context :
I want to copy few files from one folder from F: drive to H: drive on a remote machine using power-shell, how to achieve this ?
For example :
My remote server is 143.56.23.99
User name : jyoti
Password: Test123#
Source... | 0debug |
Session variables in PHP not appearing : <p>I have read all the questions concerning this but I'm still at a loss.
Using a test script like this</p>
<pre><code>// PAGE 1
<?php session_start();
echo var_dump($_SESSION) . "<br>";
$_SESSION[‘session_var’] = "stuff";
$PHPSESSID = session_id();
echo session_id() .... | 0debug |
What are the scenarios where we can use Actionresult in MVC? : <p>I know that actionresult is the base class which is inherited by ViewResult,JsonResult etc. but I want to know under what circumstances we can call ActionResult directly.</p>
| 0debug |
static int ogg_restore(AVFormatContext *s, int discard)
{
struct ogg *ogg = s->priv_data;
AVIOContext *bc = s->pb;
struct ogg_state *ost = ogg->state;
int i;
if (!ost)
return 0;
ogg->state = ost->next;
if (!discard){
for (i = 0; i < ogg->nstreams; i++)
... | 1threat |
Long click remove item from android listview : <p>What I should write in the <code>onItemLongClick</code> function to remove an item from the listview on long click. Below is the code:</p>
<pre><code>public class Favorites extends AppCompatActivity {
DBConnection db = new DBConnection(this);
@Override
protected void... | 0debug |
static bool cmd_write_pio(IDEState *s, uint8_t cmd)
{
bool lba48 = (cmd == WIN_WRITE_EXT);
if (!s->bs) {
ide_abort_command(s);
return true;
}
ide_cmd_lba48_transform(s, lba48);
s->req_nb_sectors = 1;
s->status = SEEK_STAT | READY_STAT;
ide_transfer_start(s, s-... | 1threat |
int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
const uint8_t *buf, int buf_size) {
GetBitContext gb;
int w = c->w / 16, h = c->h / 16;
int x, y;
uint8_t *y1 = f->data[0], *y2 = f->data[0] + 8 * f->linesize[0];
uint8_t *u = f->data[1], *v = f->data[2... | 1threat |
Split a string in python on a floating point number, if no floating point number found, split it on a number : <p>I have a list of strings and I want to split each string on a floating point number. If there is no floating point number in the string, I want to split it on a number.
It should only split once and return ... | 0debug |
What does ###PSLOC signify in PSD1 localization files : <p>In every almost every Microsoft project that uses localization files there is the text <code>###PSLOC</code>
before and after the block of resource strings. Here is an example:</p>
<pre><code>ConvertFrom-StringData @'
###PSLOC
MyString=This is a string.
###PSL... | 0debug |
C++ error: expected unqualified-id @ first bracket "{" : <pre><code>#include <iostream>
using namespace std;
int main();
{ union numbericUnion
{
int intValue;
long longValue;
double doubleValue;
};
numbericUnion myUnion;
myUnion.intValue = 3;
cout << myUnion.intValue << endl;
myUnion... | 0debug |
Git Hub Clone All Branches At Once : <p>I'm trying to clone an entire repository onto my machine using linux. I used </p>
<pre><code>git clone <url>
</code></pre>
<p>I then went into the folder where it was downloaded and typed</p>
<pre><code>git branch
</code></pre>
<p>in the terminal. It's only showing ... | 0debug |
static int gen_neon_zip(int rd, int rm, int size, int q)
{
TCGv tmp, tmp2;
if (size == 3 || (!q && size == 2)) {
return 1;
}
tmp = tcg_const_i32(rd);
tmp2 = tcg_const_i32(rm);
if (q) {
switch (size) {
case 0:
gen_helper_neon_qzip8(tmp, tmp2);
... | 1threat |
onBackPressed finish() not working in android studio : I used below code to close activity after back button pressed.
```
@Override
public void onBackPressed()
{
super.onBackPressed();
finish();
}
```
after 5 time pressed it worked
how to solve it
| 0debug |
static int scan_mmco_reset(AVCodecParserContext *s, GetBitContext *gb)
{
H264PredWeightTable pwt;
int slice_type_nos = s->pict_type & 3;
H264ParseContext *p = s->priv_data;
H264Context *h = &p->h;
int list_count, ref_count[2];
if (h->pps.redundant_pic_cnt_present)
get_ue... | 1threat |
Why does my while loop never end in my number guess game in C++? : <p>I am very new to programming and i am just messing around to try getting this guess a number game working, why once you guess the correct number or run of of lives does it continue?
Thanks!</p>
<pre><code> int rand_number{5};
int guess_numbe... | 0debug |
How to add video from camera roll to app on Xcode (Swift) : <p>I want users to be able to import a video from their camera roll, edit it, then save the video to their camera roll. How can I do this?</p>
| 0debug |
static int lvf_probe(AVProbeData *p)
{
if (AV_RL32(p->buf) == MKTAG('L', 'V', 'F', 'F'))
return AVPROBE_SCORE_EXTENSION;
return 0;
}
| 1threat |
How to use more than 1 or 2 conditions in php if statements? : <p>I want to output as per Condition, as I mentioned in the code. But I have 3 more conditions, That is - Medium, Large, and Extra large. These all are services. can I mention all four conditions at a time and the output should be relivent!</p>
<p>Here is... | 0debug |
not able to click the Deployment link : not able to click the Deployment link button through selenium
Hi guy's One more help required now i want to click on Environment button .please see the inspect code and share your knowledge to solve my issue .
<a title="Deployments, Level 1, 2 of 6" class="tree_link"... | 0debug |
static int dump_init(DumpState *s, int fd, bool has_format,
DumpGuestMemoryFormat format, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
if (has_format && f... | 1threat |
How write a program to prompt the user to to enter to enter time in seconds. The program then displays it in minutes and seconds : **//what I have done so far**
int seconds, minutes;
Console.Write("Seconds: ");
seconds = int.Parse(Console.ReadLine());
minutes = seconds / 60... | 0debug |
static int request_samples(AVFilterContext *ctx, int min_samples)
{
MixContext *s = ctx->priv;
int i, ret;
av_assert0(s->nb_inputs > 1);
for (i = 1; i < s->nb_inputs; i++) {
ret = 0;
if (!(s->input_state[i] & INPUT_ON))
continue;
if (av_audio_fifo_size(s-... | 1threat |
Room + cannot find implementation DB + DB_Impl does not exist : <p>I am getting following error while running application</p>
<pre><code>java.lang.RuntimeException: cannot find implementation for com.abc.db.abdDB. abcDB_Impl does not exist
</code></pre>
<p>My build.gradle has following configuration:</p>
<pre><code>... | 0debug |
static int decompress_p(AVCodecContext *avctx,
uint32_t *dst, int linesize,
uint32_t *prev, int plinesize)
{
SCPRContext *s = avctx->priv_data;
GetByteContext *gb = &s->gb;
int ret, temp, min, max, x, y, cx = 0, cx1 = 0;
int backstep = linesize - av... | 1threat |
static void int_to_int16(int16_t *out, const int *inp)
{
int i;
for (i=0; i<30; i++)
*(out++) = *(inp++);
}
| 1threat |
Is the line inside the group correct? : What is the difference between these two codes:
#define check 0
int main(void)
{
#if check
this is a normal line
#endif
return 0;
}
and this one:
int main(void)
{
/*
this is a normal line
*/
... | 0debug |
Round Timespan Seconds : <p>Round timespan seconds I also need do same with .Hours and .Minutes</p>
<p>This:</p>
<pre><code>1.53994 second
</code></pre>
<p>to:</p>
<pre><code>1 second
</code></pre>
| 0debug |
static av_noinline void FUNC(hl_decode_mb)(const H264Context *h, H264SliceContext *sl)
{
const int mb_x = sl->mb_x;
const int mb_y = sl->mb_y;
const int mb_xy = sl->mb_xy;
const int mb_type = h->cur_pic.mb_type[mb_xy];
uint8_t *dest_y, *dest_cb, *dest_cr;
int linesize, uvlinesize ... | 1threat |
static int mkv_write_native_codecprivate(AVFormatContext *s,
AVCodecParameters *par,
AVIOContext *dyn_cp)
{
switch (par->codec_id) {
case AV_CODEC_ID_VORBIS:
case AV_CODEC_ID_THEORA:
return put_xiph_codecpriv(s,... | 1threat |
Make a condition on const wchar_t* : <p>how can i make a condition with const wchar_t*?I have tried
<code>
const wchar_t* password
if (L"xyz" == password)
{...}
</code>
but it's not working </p>
<p>thank you</p>
| 0debug |
@Generated annotation using gradlew + dagger : <p>I'm confronting a weird issue using gradlew(4.10.2) + dagger(2.18).</p>
<p>The problem is when I call: </p>
<pre><code>./gradlew :app:compileDebugAndroidTestKotlin
</code></pre>
<p>The build fails with:</p>
<blockquote>
<p>Task :Common:compileDebugJavaWithJavac F... | 0debug |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.