problem
stringlengths
26
131k
labels
class label
2 classes
why can't return assignment statement : <p>In IDLE, I write a function and intend to return a value. but it can't return</p> <pre><code>&gt;&gt;&gt; def grade(value): if value &gt; 100: return (value=100) if value &lt;0: return (value=0) SyntaxError: invalid syntax </code></pre> <p>why can't ...
0debug
how to select 1 date field with 3 tags : Good day, i'm making query that select 1 datefield 3 times. `select t1.datefield date_1, t1.datefield date_3, t1.datefield date_3 from table t1 where t1.datefield BETWEEN TO_DATE('01/07/2016', 'dd/mm/yyyy') AND TO_DATE('31/07/2016', 'dd/mm/yyyy')` i need date_1 between July...
0debug
Nested constexpr-if statement in discarded branch is still evaluated? : <p>It appears to me that a constexpr-if statement that is inside the discarded branch of another constexpr-if statement is evaluated in MSVC (version 15.7.3).</p> <p>Consider the following code:</p> <pre><code>#include &lt;tuple&gt; #include &lt;...
0debug
powershell generate word list from two csv files and export to csv : I'm trying to use powershell to import two csv files, one csv is called accts and one is called names. The accts file has 8 numbers and the names files has 4 names. I need to output a combination where the end goal is to output a list of 32 words with...
0debug
static uint64_t malta_fpga_read(void *opaque, hwaddr addr, unsigned size) { MaltaFPGAState *s = opaque; uint32_t val = 0; uint32_t saddr; saddr = (addr & 0xfffff); switch (saddr) { case 0x00200: val = 0x00000000; break; ...
1threat
When using insert statement using array is giving error : Sqlserv php eoor when inserting using array oprtion ARRAY PREPRATION foreach ($data as $rs) { $params []="({$rs->hd},'{$rs->dvn}',{$rs->mth},{$rs->yr},{$rs->stid},{$rs->prcd},'{$rs->prnm}',{$rs->prte},{$rs->ssl},{$rs->clsk},1)"; } INSERT INTO STAT...
0debug
Difference between deep copy and shallow copy : <p>I am not able to get understand what is difference between deep copy and shallow copy. Please make me understand with the simple example. Thanks</p>
0debug
Copying variable contents to clipboard while debugging in Visual Studio Code : <p>I'm debugging in Visual Studio Code and I have a JSON object that I would like to copy as text to the clipboard. </p> <p>Is this possible inside of Visual Studio Code?</p>
0debug
START_TEST(unterminated_escape) { QObject *obj = qobject_from_json("\"abc\\\""); fail_unless(obj == NULL); }
1threat
static int assigned_device_pci_cap_init(PCIDevice *pci_dev) { AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, pci_dev); PCIRegion *pci_region = dev->real_device.regions; int ret, pos; pci_set_byte(pci_dev->config + PCI_CAPABILITY_LIST, 0); pci_set_word(pci_dev->config + PCI_STATUS...
1threat
How to use axios instead of ajax in datatable? : <p>I want to use axios to fetch data and load them to datatable. It is possible if I load all the data and render to datatable. But, what I want is load page number specific data. I don't want to load all the data at once it makes slow data loading. In short, I want to i...
0debug
Shows connection is closed even if connection.open is present : This is the function to access the database; the connection string is perfect - There is another Function similar to this and it works fine. Please help me fix this ASAP. `Friend Shared Function AddMember(member As Object) As Task(Of Integer) ...
0debug
Git. How to download new project file? : for example, in a project by another developer a new file was added. How using TortoiseGit I can download the file to your local repository?
0debug
static int usb_host_read_file(char *line, size_t line_size, const char *device_file, const char *device_name) { FILE *f; int ret = 0; char filename[PATH_MAX]; snprintf(filename, PATH_MAX, device_file, device_name); f = fopen(filename, "r"); if (f) { fgets(line, line_size, f); ...
1threat
static void bonito_spciconf_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { PCIBonitoState *s = opaque; uint32_t pciaddr; uint16_t status; DPRINTF("bonito_spciconf_writel "TARGET_FMT_plx" val %x \n", addr, val); assert((addr&0x3)==0); ...
1threat
can we have nested ? : operator in C language. explain if yes, then how : <p>I am learning to code in C language with my friend and my friend asks me Can we have nested ?: operator in C language? If yes, please send an easy describing it too.</p>
0debug
static void dmg_close(BlockDriverState *bs) { BDRVDMGState *s = bs->opaque; g_free(s->types); g_free(s->offsets); g_free(s->lengths); g_free(s->sectors); g_free(s->sectorcounts); g_free(s->compressed_chunk); g_free(s->uncompressed_chunk); inflateEnd(&s->zstream); }
1threat
How to count the numbers of records in a table : <p>What are 3 ways to get a count of the number of records in a table?</p>
0debug
static int build_feed_streams(void) { FFServerStream *stream, *feed; int i; for(stream = config.first_stream; stream; stream = stream->next) { feed = stream->feed; if (!feed) continue; if (stream->is_feed) { for(i=0;i<stream->nb_streams;i++)...
1threat
How to compare randomly generated number with user entered number at run time in C? : <p>I am making Bubble game in c where randomly some numbers are generating on the console window and user need to enter that numbers appearing on the screen or console window and I need to compare that user input and random generated ...
0debug
@SuppressWarnings vs @SuppressLint : <p>Can anyone explain to me the differences between <code>@SuppressWarnings</code> and <code>@SuppressLint</code>? When we should use one over another? </p> <p>I've read the documentation, but still don't get the differences. Explain using an example/sample code will be much apprec...
0debug
My dud keeps falling through barrier : in unity i made a test sprite with this script but my dud falls through the ground when i jump fast or at random but stays on wail he is moving slow but falls through wen jumping/landing fast. Any help will be appreciated :) using UnityEngine; using System.Collec...
0debug
Comparing records in one table to another for large databases in PHP : <p>I have two tables in MySQL database. Lets say there are 1800 records in table 1 and 20000 records in table 2. Now I want to compare each record in table 1 to table 2 and update some fields in table 2 for the records that are matched. </p> <p>I w...
0debug
void vnc_disconnect_finish(VncState *vs) { int i; vnc_jobs_join(vs); vnc_lock_output(vs); vnc_qmp_event(vs, QAPI_EVENT_VNC_DISCONNECTED); buffer_free(&vs->input); buffer_free(&vs->output); buffer_free(&vs->ws_input); buffer_free(&vs->ws_output); qapi_free_VncClient...
1threat
static inline void gen_neon_mull(TCGv_i64 dest, TCGv a, TCGv b, int size, int u) { TCGv_i64 tmp; switch ((size << 1) | u) { case 0: gen_helper_neon_mull_s8(dest, a, b); break; case 1: gen_helper_neon_mull_u8(dest, a, b); break; case 2: gen_helper_neon_mull_s16(dest, a, b); break; case 3...
1threat
flutter how can I create circle animation like this? : I'd like to implement circle animation for profile picture like instagram story something like [this][1]. How can I achieve this? [1]: https://www.youtube.com/watch?v=GDmR8jZWb04
0debug
warning: URGENT: building for watchOS simulator but linking object file built for iOS : <p>While integrating my java library converted by j2objc I'm receiving this message.</p> <blockquote> <p>ld: warning: URGENT: building for watchOS simulator, but linking in object file (/Users/admin/Documents/j2objc/dist/lib/...
0debug
static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size, int sample) { if (size <= 14) return; if (!queue->samples || queue->len >= queue->size) { HintSample *samples; samples = av_realloc(queue->samples, sizeof(HintSampl...
1threat
In python, is math.acos() faster than numpy.arccos() for scalars? : <p>I'm doing some scientific computing in Python with a lot of geometric calculations, and I ran across a significant difference between using <code>numpy</code> versus the standard <code>math</code> library.</p> <pre><code>&gt;&gt;&gt; x = timeit.Tim...
0debug
Writing Unit Tests in Visual Studio Code : <p>I am new to using the Visual Studio Code in place of visual studios and i feel a little lost to how i can set up my program to include unit test. </p> <p>I created a c# console app and i would like to create a test file in which i can test my main program for the console a...
0debug
Xcode lldb error: can't print out Swift variable - get "$__lldb_injected_self.$__lldb_wrapped_expr_x" instead : <p>Sometimes, when trying to print out a variable in the debugger, the following error message is displayed:</p> <pre><code>error: warning: &lt;EXPR&gt;:12:9: warning: initialization of variable '$__lldb_err...
0debug
how to direct to a HTML page using a cookie? : <p>i'm working on a site currently that has a 15 second intro on the index.html - with a skip button (that leads to main.html) - and was wondering if it is possible to use a cookie to store info on user and thereby directing them straight to the main page on their second ...
0debug
App not compatible with buildpack - Heroku : <p>When I run <code>git push heroku master</code> this is what I get:</p> <pre><code>C:\Users\Emanuele-PC\Desktop\project-mm-beta&gt;git push heroku master Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing obj...
0debug
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; int buf_index; s->flags= avctx->flags...
1threat
Counting the no of elements in a data structure, printing the count for each position and decrement the iteration using recursion : Various signal towers are present in a city.Towers are aligned in a straight horizontal line(from left to right) and each tower transmits a signal in the right to left direction.Tower A sh...
0debug
How to check if device orientation is landscape left or right in swift? : <pre><code> if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) { print("landscape") } if UIDeviceOrientationIsPortrait(UIDevice.currentDevice().orientation){ print("portrait") } </code></pre> <...
0debug
How to develop multiplayer game using Bluetooth : <p>Really I am new in game development. I have not any idea how to design the games for Android with Multiplayers. I searched a lot for that but did not get good tutorials. Kindly any expert suggest to me below things:</p> <p>1) How to develop games in Android? Which b...
0debug
void qemu_set_version(const char *version) { qemu_version = version; }
1threat
static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) { int ret, i; int tp_index = 0; s->bit_index = 8; if (tile->poc.nb_poc) { for (i=0; i<tile->poc.nb_poc; i++) { Jpeg2000POCEntry *e = &tile->poc.poc[i]; ret = jpeg2000_decode_packet...
1threat
How to create a template string to output object contents ? : <p>I have array of objects like this:</p> <pre><code>var students = [ { name : "Mike", track: "track-a", points : 40, }, { name : "james", track: "track-a", points : 61, }, ] students.forEach(myFunction); function my...
0debug
What is a good alternative for static stored properties of generic types in swift? : <p>Since static stored properties are not (yet) supported for generic types in swift, I wonder what is a good alternative.</p> <p>My specific use-case is that I want to build an ORM in swift. I have an <code>Entity</code> protocol whi...
0debug
static void decode_init_vlc(H264Context *h){ static int done = 0; if (!done) { int i; done = 1; init_vlc(&chroma_dc_coeff_token_vlc, CHROMA_DC_COEFF_TOKEN_VLC_BITS, 4*5, &chroma_dc_coeff_token_len [0], 1, 1, &chroma_dc_coeff_token_bits[0], 1,...
1threat
Chrome DevTools: paused before potential out-of-memory crash : <p>In latest Chrome DevTools I can see a new information:</p> <p><a href="https://i.stack.imgur.com/65KAN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/65KAN.png" alt="enter image description here"></a></p> <p>Now, I'm not sure how to use this...
0debug
Visitor *validate_test_init(TestInputVisitorData *data, const char *json_string, ...) { Visitor *v; va_list ap; va_start(ap, json_string); data->obj = qobject_from_jsonv(json_string, &ap); va_end(ap); g_assert(data->obj != NULL); data->qiv = qmp_in...
1threat
React Native Make View "Hug" the Top of the Keyboard : <p>Let's say I have a view that is positioned absolute at the bottom of the screen. This view contains a text input. When the text input is focused, I want the bottom of the view to touch the top of the keyboard. </p> <p>I've been messing around with KeyboardAvoid...
0debug
Angular2 detect change in service : <p>I have one component in Angular2 which is changing a "lang" class variable in my service translate.service.ts. In another component I am fetching a dict with the translation on init. If the first component changes the services language later, I want to refetch the dict in the seco...
0debug
ios 13 - Custom SearchBar with UISearchBar _searchField not working : <p>Before Xcode-11-Beta (ios13) below code for custom searchbar value for key to get textField working fine. Now getting below crash log.</p> <blockquote> <p>'NSGenericException', reason: 'Access to UISearchBar's _searchField ivar is prohibited. T...
0debug
Multi Threading in API in C# : <p>I'm trying to create an Web Service that runs an asynchronous function with .Net Core Framework.</p> <p>This function must be executed in its own thread and return a new value that will be sent to the proper caller. The service must be listening for other calls while my async function...
0debug
How do I delete/remove an app from a Firebase project? : <p>Where is the delete/remove button???</p> <p>Attached is a screenshot of what I want to do.</p> <p><a href="https://i.stack.imgur.com/43ioI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/43ioI.png" alt="firebase app delete"></a></p>
0debug
javascript regex to c# : I have a regex for validating Email Ids. ^(([\w]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$ I need to convert it C# format.Can any one help?What are the change...
0debug
static void virtio_ccw_bus_class_init(ObjectClass *klass, void *data) { VirtioBusClass *k = VIRTIO_BUS_CLASS(klass); BusClass *bus_class = BUS_CLASS(klass); bus_class->max_dev = 1; k->notify = virtio_ccw_notify; k->vmstate_change = virtio_ccw_vmstate_change; k->query_guest_notifiers = v...
1threat
static vscsi_req *vscsi_find_req(VSCSIState *s, uint32_t tag) { if (tag >= VSCSI_REQ_LIMIT || !s->reqs[tag].active) { return NULL; } return &s->reqs[tag]; }
1threat
R: Writing list with elements of different classed into a text file : How to write a list of different class variables into a text file consequently using R base functions? `write` and `cat` can't handle data.frames and `write.table` is specific to tables only. None of them handles lists properly. Sample list: ...
0debug
static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int dummy=0; switch(c->dstFormat) { #ifdef HAVE_MMX case IMGFMT_BGR32: { asm vola...
1threat
how to check wether a form input has file laravel? : <p>I want to check whether form has file or not of it has I want to upload it to server and save path if not then ignore and run old dB saved path query </p>
0debug
Submit Form With Added JSON Data : <p>I have a form on a webpage and I also have some JSON data in Javascript, how do I use JQuery to append the JSON data on form post? Here are some example:</p> <pre><code>&lt;form action="server.cshtml"&gt; &lt;/form&gt; &lt;script&gt; var data = { data1: "aaa", ...
0debug
static void flat(WaveformContext *s, AVFrame *in, AVFrame *out, int component, int intensity, int offset, int column) { const int plane = s->desc->comp[component].plane; const int mirror = s->mirror; const int c0_linesize = in->linesize[ plane + 0 ]; const int c1_linesize = in->li...
1threat
Printing ArrayList<String> into output? : <p>So, i have ArrayList which i store animals in.</p> <pre><code>private ArrayList&lt;Animal&gt; catalog = new ArrayList&lt;&gt;(); </code></pre> <p>Now, i need to print the catalog into my output when i press 4 into my output.</p> <pre><code>case 4: System.o...
0debug
static void do_video_stats(OutputStream *ost, int frame_size) { AVCodecContext *enc; int frame_number; double ti1, bitrate, avg_bitrate; if (!vstats_file) { vstats_file = fopen(vstats_filename, "w"); if (!vstats_file) { perror("fopen"); exit(1); ...
1threat
React Navigation: How to update navigation title for parent, when value comes from redux and gets updated in child? : <p>I'm using <a href="https://github.com/react-community/react-navigation" rel="noreferrer">react-navigation</a> and have a StackNavigator with a <strong>ParentScreen</strong> and a <strong>ChildScreen...
0debug
Remove elements before they are added to the DOM : <p>A series of <code>.cell</code> elements are created on <code>document</code> load. They are only useful if also an <strong><code>img</code></strong> is added within them. I need to keep them from being created because they are linked to the creation of other <code>l...
0debug
tsconfig.json for project with `src` and `tests` : <p>I've got a (desired) structure like this:</p> <pre><code>- tsconfig.json - src - app.ts - tests - appTest.ts - appTest.js - dist - app.js </code></pre> <p>If there was no <code>tests</code> folder, a tsconfig.json like this would work fine:</p> <p...
0debug
int main() { int rt, rs; int achi, acli; int dsp; int acho, aclo; int resulth, resultl; int resdsp; achi = 0x05; acli = 0xB4CB; rs = 0xFF06; rt = 0xCB00; resulth = 0x04; resultl = 0x947438CB; __asm ("mthi %2, $ac1\n\t" "mtlo %3, ...
1threat
Is it possible pause & resume for Retrofit multipart request? : <p>We are using Retrofit multi-part for file uploading process.</p> <p>We want pause/resume when file uploading. </p> <p>I want to know its possible or not?</p> <p><strong>Code for multi-part file upload</strong></p> <pre><code> RequestBody requestFil...
0debug
Javascript Date Library that uses online API? Rather than client machine? : I'm writing a node.js package that I want to distribute. I want a function to run at a certain time... but I don't want to use any of the popular JS libraries because they use the client's machine to determine date - rather I don't want this to...
0debug
Python3 - TypeError: module.__init__() takes at most 2 arguments (3 given) : <p>Please don't mark as duplicate, other similar questions did not solve my issue.</p> <p>This is my setup</p> <pre><code>/main.py /actions/ListitAction.py /actions/ViewAction.py </code></pre> <p>Main.py:</p> <pre><code>from actions import...
0debug
PageView: Disable the default scrolling and replace it with Tap event : <p>If I have a <code>PageView</code>, how can I disable the default scroll behavior (swiping) and make it such that the next item is scrolled into view by tapping on a button instead?</p>
0debug
static void output_client_manifest(struct VideoFiles *files, const char *basename, int split) { char filename[1000]; FILE *out; int i, j; if (split) snprintf(filename, sizeof(filename), "Manifest"); else snprintf(filename, sizeof(filename...
1threat
A list in the column header with ASP NET and Linq : <p>I have this structure <a href="https://i.stack.imgur.com/3Uf14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Uf14.png" alt="enter image description here"></a></p> <p>and i want to get the following result <a href="https://i.stack.imgur.com/R...
0debug
Codepipeline: Insufficient permissions Unable to access the artifact with Amazon S3 object key : <p>Hello I created a codepipeline project with the following configuration:</p> <ul> <li>Source Code in S3 pulled from Bitbucket.</li> <li>Build with CodeBuild, generating an docker image and storing it into a Amazon ECS r...
0debug
I want to achieve similar background in react native but do not know how to do it? : <p><a href="https://i.stack.imgur.com/U40DM.png" rel="nofollow noreferrer">Here is the backround what i wanted to achieve</a></p>
0debug
document.write('<script src="evil.js"></script>');
1threat
JavaScript - Split words into letters and save them to an array : <p>I have this code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Bad Grammar Generator&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="text" id="userIn"&gt; &lt;inp...
0debug
static void t_gen_lsr(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); t_31 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shr_tl(d, a, b); tcg_gen_movi_tl(t_31, 31); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tc...
1threat
search regex for Notepad++ : I am looking to create a regex for searching Notepad++ I have a notepad page with thousands of random codes such as: 415615610230 151156125611 161651651516 511111115165 I need to search the entire notepad for multiple codes with once search I know the regex would look like (4...
0debug
random array without repeat failed : <p>how to generate unique array item using fisher yate shuffle method? I found below code but doesn't worked.</p> <pre><code>function shuffle(array) { var i = array.length, j = 0, temp; while (i--) { j = Math.floor(Math.random() * (i+1)); ...
0debug
why am I getting null results?Please give me a solution : User Table (users): id,email,password Post table (posts) : id,user_id,title,body //here i am using Post Model My User Model contains: public function posts(){ return $this->hasOne('App\Post'); }
0debug
void palette8torgb16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette) { unsigned i; for(i=0; i<num_pixels; i++) ((uint16_t *)dst)[i] = ((uint16_t *)palette)[ src[i] ]; }
1threat
static void main_loop(void) { int r; #ifdef CONFIG_IOTHREAD qemu_system_ready = 1; qemu_cond_broadcast(&qemu_system_cond); #endif for (;;) { do { #ifdef CONFIG_PROFILER int64_t ti; #endif #ifndef CONFIG_IOTHREAD tcg_cpu_exec(); #endif #ifdef CONFIG_PROF...
1threat
what is the best from/email validation method in php? : <p>I know there is a best method which called "PREG MATCH" in php programming language. I want to know is there any other method in php for validation? and which is the best? what method I practice as a pro php developer? Thank you all :)</p>
0debug
Can I group * things from this data? : <p>I got data with ASCII form. </p> <p>I ran it with R, and these data have * marked when it is under other condition.</p> <p><a href="https://i.stack.imgur.com/UW0wJ.png" rel="nofollow noreferrer">enter image description here</a></p> <p>V1, V2, V3, V4, V5 don't mean anything d...
0debug
Overload method for unique_ptr and shared_ptr is ambiguous with polymorphism : <p>Coding stuff after taking the hint from my <a href="https://stackoverflow.com/questions/53444116/ownership-with-a-physical-representation">previous question</a>'s answer, I ran into an issue with overloading Scene::addObject.</p> <p>To r...
0debug
Why does SyntaxNode.ReplaceNode change the SyntaxTree options? : <p>I'm trying to replace nodes within a syntax tree in Roslyn, and it's just about working, but with an annoyance which feels it <em>shouldn't</em> be a problem.</p> <p>The syntax tree is generated from a script, and I want the result to be a script-base...
0debug
def pair_OR_Sum(arr,n) : ans = 0 for i in range(0,n) : for j in range(i + 1,n) : ans = ans + (arr[i] ^ arr[j]) return ans
0debug
static void visit_nested_struct_list(Visitor *v, void **native, Error **errp) { visit_type_UserDefNestedList(v, (UserDefNestedList **)native, NULL, errp); }
1threat
Adjacency matrix of graph in c++ ( getting error while using malloc ) : #include <iostream> #include <cstdlib> using namespace std; class graph{ int v,e,**adj; public: graph(); }; graph::graph(){ graph *g = (graph*)malloc(sizeof(graph)); if(g){ cout << " e...
0debug
void ide_bus_reset(IDEBus *bus) { bus->unit = 0; bus->cmd = 0; ide_reset(&bus->ifs[0]); ide_reset(&bus->ifs[1]); ide_clear_hob(bus); if (bus->dma->aiocb) { #ifdef DEBUG_AIO printf("aio_cancel\n"); #endif bdrv_aio_cancel(bus->dma->aiocb); bus->dma->aioc...
1threat
static int decode_0(AVCodecContext *avctx, uint8_t code, uint8_t *pkt) { PAFVideoDecContext *c = avctx->priv_data; uint32_t opcode_size, offset; uint8_t *dst, *dend, mask = 0, color = 0, a, b, p; const uint8_t *src, *send, *opcodes; int i, j, x = 0; i = bytestream2_get_byte(&c->gb); ...
1threat
whats wrong in this ? im getting a[0-9]=0000?Any help will be appreciated : public class HexaDecimal { public String binary(String s) { String[] a= {"0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"}; String k=""; for(int i=0;i<=s.length...
0debug
how to display the link content as hyperlink link text name using html code. : how to display the link content as hyperlink link text name using html code. example <a href="file:///C:\Users\jy\Documents\data.xlsx">textname</a> i want the text name to show the value or data follow cell C9 value in the data.xls...
0debug
static void parse_option_number(const char *name, const char *value, uint64_t *ret, Error **errp) { char *postfix; uint64_t number; number = strtoull(value, &postfix, 0); if (*postfix != '\0') { error_setg(errp, QERR_INVALID_PARAMETER_VALUE, name, "a numb...
1threat
static void monitor_find_completion(Monitor *mon, const char *cmdline) { char *args[MAX_ARGS]; int nb_args, len; if (parse_cmdline(cmdline, &nb_args, args) < 0) { return; } #ifdef DEBUG_COMPLETION for (i = 0; i < nb_args; i++) { m...
1threat
static uint32_t qpi_mem_readw(void *opaque, target_phys_addr_t addr) { return 0; }
1threat
Curl error tlsv1 alert protocol version : <p>The following curl request returns an error. Can someone explain what is going wrong and how to correct it. I already tried to force curl to use different ssl versions (--sslv3 and --sslv2) but this did not work.</p> <pre><code>curl.exe --GET "https://www.expert.nl/" --verb...
0debug
static int upload_texture(SDL_Texture *tex, AVFrame *frame, struct SwsContext **img_convert_ctx) { int ret = 0; switch (frame->format) { case AV_PIX_FMT_YUV420P: if (frame->linesize[0] < 0 || frame->linesize[1] < 0 || frame->linesize[2] < 0) { av_log(NULL, AV_LOG_ERROR, ...
1threat
static av_cold int prores_encode_init(AVCodecContext *avctx) { int i; ProresContext* ctx = avctx->priv_data; if (avctx->pix_fmt != PIX_FMT_YUV422P10LE) { av_log(avctx, AV_LOG_ERROR, "need YUV422P10\n"); return -1; } if (avctx->width & 0x1) { av_log(avctx, AV_LOG_ER...
1threat
How to put a song in android? : <p>I have a game and I want to put a background song. I read that you have to put an mp3 in the raw folder, but I don't know where is it. Thanks.</p>
0debug
SwiftUI: NavigationLink not working if not in a List : <p>I guess it might be a bug in beta 3 as the NavigationView is all broken. But a view like that:</p> <pre><code>struct GenreBadge : View { @EnvironmentObject var store: Store&lt;AppState&gt; let genre: Genre var body: some View { NavigationLi...
0debug
static void x86_cpu_parse_featurestr(CPUState *cs, char *features, Error **errp) { X86CPU *cpu = X86_CPU(cs); char *featurestr; FeatureWord w; FeatureWordArray plus_features = { 0 }; FeatureWordArray minus_features = { 0 }; CPUX86State *e...
1threat
SCSS formatter for angular 5 : <p>In our angular 5.2 project, we keep getting the below errors in scss files,</p> <p><a href="https://i.stack.imgur.com/B9cED.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B9cED.png" alt="SCSS erros related to spaces"></a></p> <p>do we have a VS code plugin OR a Sc...
0debug