problem
stringlengths
26
131k
labels
class label
2 classes
I am having trouble making my site responsive. I need it to fit any and all screens. Can someone help please? Thanks : Here is the CSS and HTML that I am working with. I already tried at @media only screen. I will copy and paste my html and css down below. Again I need a way to make the webpage fit all screens...
0debug
UIImagePickerController present quite slow : My phone has about 2000 photos. When i present UIImagePickerController, it will take about 3~4 seconds. So how to optimize this operation. Thank you.
0debug
How to upgrad to a major version of symfony with composer : I've an old symfony project and here is composer.json : { "name": "symfony/framework-standard-edition", "license": "MIT", "type": "project", "description": "The \"Symfony Standard Edition\" distribution", "autoload": { ...
0debug
static inline void RENAME(bgr24ToY)(uint8_t *dst, uint8_t *src, long width) { #ifdef HAVE_MMX asm volatile( "mov %2, %%"REG_a" \n\t" "movq "MANGLE(bgr2YCoeff)", %%mm6 \n\t" "movq "MANGLE(w1111)", %%mm5 \n\t" "pxor %%mm7, %%mm7 \n\t" "lea (%%"REG_a", %%"REG_a", 2), %%"REG_b"\n\t" ASMALIGN16 ...
1threat
Java Parsing strings : <p>I got .txt file with nationalities and phone numbers in different formats and all these in single quote symbols, also it contains empty lines (''): </p> <pre><code>'' 'French' '1-500' '0345134123' '' '' 'German' etc </code></pre> <p>after I parse with the help of <code...
0debug
find where in the code an http request was made using chrome dev tools : <p>Is there any way using chrome dev tools to find where an http request (ajax) was made? I have a large project with many requests happening in different files. There's a particular request that I want to be able to inspect, I've found it on the ...
0debug
static int mov_read_replaygain(MOVContext *c, AVIOContext *pb, int size) { int64_t end = avio_tell(pb) + size; uint8_t *key = NULL, *val = NULL; int i; for (i = 0; i < 2; i++) { uint8_t **p; uint32_t len, tag; if (end - avio_tell(pb) <= 12) break; ...
1threat
How to edit and save text files (.py) in Google Colab? : <p>I cloned a github repo using <code>!git clone https://github.com/llSourcell/Pokemon_GAN.git</code>. I wanted to modify a .py file inside Colab. So i used <code>%load filename.py</code> as suggested here (<a href="https://stackoverflow.com/questions/2103437...
0debug
static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) { int cond; TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32); TCGv r_tmp2 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fph0 = tcg_temp_local_new(TCG_TYPE_I32); TCGv fp1 = tcg_temp_local...
1threat
Javascript - nested dictionary from array of strings separated with dots : <p>I have to <strong>translate</strong> an array <strong>to</strong> nested dictionary.</p> <p>In case i have a string array. each string combined from numbers that seprated by dots, and each number means a key in the translated dictionary. (ex...
0debug
static inline void gen_sync_flags(DisasContext *dc) { if (dc->tb_flags != dc->synced_flags) { tcg_gen_movi_tl(env_flags, dc->tb_flags); dc->synced_flags = dc->tb_flags; } }
1threat
Javascript say "document" is not defined : I have a book studing javascript but brackets say's: document is not defined. In this code: `var btnMenu = document.getElementById('btn-menu'); var nav = document.getElementById('nav'); btnMenu.addEventListener('click'), function(){ nav.classList.toggle('show'); })...
0debug
Safely deleting unused coded: What are all the ways a macro can be called? (Excel-VBA) : I want to remove some code I believe is unused in a specific Excel VBA Project. I think I've checked all the places that macros can be hiding, but I want to be absolutely sure the workbook won't try to a call certain sub after I de...
0debug
ConstraintLayout - proportional width/height to self? : <p>I'm trying to figure out how to achieve the following behaviour using constraint layout:</p> <ol> <li>Place a view in the center of the ConstraintLayout parent</li> <li>Make the view width to be half of the parent's width</li> <li>Make the view height equals t...
0debug
Randint and if statements in python: error : correctPath = random.randint(1,2,3) if chosenPath == str(correctPath): print("Thank you for your help") print("this has been altered for creative purposes") elif chosenPath != str(correctPath): print("Thanks in advance.") else: ...
0debug
Why is this html program gives an output like this? : <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;h1&gt;This is heading 1&lt;/h1&gt; &lt;h2&gt;This is heading 2&lt;/h2&gt; &lt;h3&gt;This is heading 3&lt;/h3&gt; &lt;h4&gt;This is heading 4&lt;/h4&gt; &lt;h5&gt;This is heading 5&lt;/h5&gt; &lt;h6&gt;Th...
0debug
Android Error:Execution failed for task ':app:transformClassesWithDexForDebug'. (Android.banker.A2af7 trojen detected) : Android studio showing this error : Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: java.io.FileNotFoundException: C:...
0debug
How to debug PS4 internet browser : <p>We noticed our site is not rendered as expected on PS4 browser, is there a way to debug it or get a console?</p> <p>I know that the PS4 browser is WebKit based so I wonder is there similar debug tools like chrome or safari have?</p>
0debug
static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory, hwaddr base, qemu_irq timerirq, qemu_irq alarmirq, omap_clk clk) { struct omap_rtc_s *s = (struct omap_rtc_s *) ...
1threat
how can i connet the sql on c# and using the command of Adapter : private void button2_Click(object sender, EventArgs e) { OleDbConnection cnn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\bbbde\Database2.mdb"); cnn.Connection...
0debug
how to get output of count variable ? : <?php $count=0; class My extends Thread { private $myid; // ini_set('max_execution_time', 0); //echo date("Y-m-d H:i:s")."<br/>"; public function __construct($id) { $this->myid = $id; } public function run() { for($t=0;$j+$t<=100;$t+=10){ //...
0debug
What's the use of the "with" statement in Python? : <p>While programming in Python, sometimes I need to launch functions and object methods, something like this:</p> <pre><code>obj1.launch_method1(); // object method do_something(); // general function obj1.launch_method2(); // object method </code></pre> <p>U...
0debug
my app always crashes everytime i click friends fragment,allusers activity and settings activity referring to same error : following is the code package com.example.convo; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; ...
0debug
static int usb_net_handle_statusin(USBNetState *s, USBPacket *p) { int ret = 8; if (p->len < 8) return USB_RET_STALL; ((le32 *) p->data)[0] = cpu_to_le32(1); ((le32 *) p->data)[1] = cpu_to_le32(0); if (!s->rndis_resp.tqh_first) ret = USB_RET_NAK; #ifdef TRAFFIC_DEBUG ...
1threat
Quicksort a dict to an OrderedDict : <p>In python, how do I quick sort a nested dictionary into an OrderedDict? For example:</p> <pre><code>{'susan': {'number': '5', 'fav_color': 'yellow'}, 'josh': {'number': '1', 'fav_color': 'blue'}, 'casey': {'number': '11', 'fav_color': 'orange'}} </code></pre> <p>I want to sort ...
0debug
PHP - How do facebook change the facebook/message/username to facebook/message/username2 on the same page? : <p>I'm trying to create a real-time chat on my website. One of the functions I want to imitate is how <a href="http://facebook.com/messages/" rel="nofollow">facebook.com/messages</a> changes not only content of ...
0debug
Recursive code, Whats wrong here : public static int power(int x, int y){ if(y>0){ x = x*x; power(x,y-1); } return x; } The method should return the value of x^y but it is not working, can someone tell me what is wrong here?
0debug
how to convert the date format 'YYYY-MM-DD' to ddMMyy in pyspark? : <p>I tried to convert the date format 2018-07-12 to ddMMyy using to_date but i get null after converting the dateformat</p> <pre><code>df = spark.createDataFrame([('2018-07-12',)], ['Date_col']) df = df.withColumn('new_date',to_date('Date_col', 'ddMM...
0debug
mysqli multi query sepperation : I know you can run multiple queries with mysqli_multi_query but i have a problem. For a registration page i want to perform 2 checks and then an insert. Check1 = Does username exist? Check2 = Email already been used? If both checks are negative then do the insert query. But h...
0debug
How to redirect after selecting 2 selections to specific page? : I'm doing work on my website and hung up on a code Please check the below link to understand what i'm trying to say http://matchpoint.finetiger.com/classes-programs/ Shell RD - Fitness and Training :- example.com Mill Basin - Fitness and Training ...
0debug
Copy lines and replace beginning of some lines : <p>I have a file containing lines of the form</p> <pre><code>this is block 1 a 1 2 3 this is block 2 a 3 1 9 this is block 3 a 10 2 32 ... </code></pre> <p>I would like to copy some of the lines and replace the beginning so that it becomes:</p> <pre><code>this is bloc...
0debug
Slack icon not visible any more in notification area : <p>Not sure why but since recently, the <code>Slack</code> icon in bottom right notification area (Windows 10) isn't visible anymore despite Slack app being checked in "Select which icons appear on the taskbar" section. Consequently I need to keep <code>Slack</code...
0debug
Installing basemap on Mac / Python : <p>I'm having trouble to get the basemap to work in Python in my Mac.</p> <p>I keep receiving:</p> <pre><code> from mpl_toolkits.basemap import basemap ImportError: No module named basemap </code></pre> <p>What I did:</p> <pre><code>brew install gdal brew install gets export ...
0debug
import re def num_position(text): for m in re.finditer("\d+", text): return m.start()
0debug
why is Inline SQL a bad thing to include in an application : <p>I have been doing some research on SQL to boost my knowledge on the topic, I have came across quite a few people saying that Inline SQL is a bad thing but no one is saying why, I was hoping someone could help me to understand; Why inline SQL within an appl...
0debug
static int xface_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { XFaceContext *xface = avctx->priv_data; ProbRangesQueue pq = {{ 0 }, 0}; uint8_t bitmap_copy[XFACE_PIXELS]; BigInt b = {0}; int i, j, k, ret = 0; con...
1threat
import re def camel_to_snake(text): str1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', text) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', str1).lower()
0debug
when a python script is executed inside a python script, i donot get the complete output : when a python script is executed inside a python script, i donot get the complete output. os.system('python -u capture.py > capture.log &') where capture.py will capture the packets and feeds this to capture.log. Capture...
0debug
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { AVFormatContext *s = of->ctx; AVStream *st = ost->st; int ret; if (!of->header_written) { AVPacket tmp_pkt = {0}; if (!av_fifo_space(ost->muxing_queue)) { int new_size = FFMIN(2 *...
1threat
How to delete the latest added book? : <p>I don't know how to delete the latest book that we added on this source code. I want to make a stack implementation program. So if we delete a book, the program will delete the last-added book, not the first-added book like in my source code below. I'm not too understand with s...
0debug
How to find the factors of all the numbers in a list in python 3? : <p>I have been trying to find the factors of all the numbers in a list. I have written my code but it does not work at all. I am new to Python and would appreciate any help. Here's my code:</p> <pre><code>n = [3,4,5] for i in n: if i%n == 0: ...
0debug
static int mmubooke206_get_physical_address(CPUState *env, mmu_ctx_t *ctx, target_ulong address, int rw, int access_type) { ppcmas_tlb_t *tlb; target_phys_addr_t raddr; int i, j, ret; ret = -1; raddr = ...
1threat
HOW to copy many rows in the same time? : <p>i have huge data.</p> <p>HOW to copy many rows in the same time?</p> <p>where the rows, that i want, are repeated in systematic approach for each four rows. please, see the figure.</p> <p>thank you in advance for any help. <a href="http://i.stack.imgur.com/w5mnC.jpg" rel=...
0debug
Custom font size for Text in SwiftUI : <p>I have a label in my view that I want to use the system font size in medium, with a size of 21 points.<br> I created a custom extension to re-use the font created:</p> <pre><code>extension Font { static var primaryButton: Font { return Font.custom("SFUIDisplay-Ligh...
0debug
fill textview text color when accroding to getting perectage : Hi I have to show progress in the number Text-view text itself.Is their any such built in API to paint characters as in the below image? [enter image description here][1] [1]: https://i.stack.imgur.com/BqyaE.png
0debug
how can I store a variable(Int) permanently after app closes and Display it? : I am trying to store a variable named *total* which holds the number of rows in UItableView. Since the user types strings for UITableView, the variable is *listTable* which is String array. I have my *total* as total = listTable.count ...
0debug
static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type) { H264Context *h = &svq3->h; int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s...
1threat
static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info, int *need_next_header, int *new_frame_start) { int err; union { uint64_t u64; uint8_t u8[8]; } tmp = { av_be2ne64(state) }; AC3HeaderInfo hdr, *phdr = &hdr; GetBitContext gbc; init_get_bits(&gb...
1threat
How to reference an instance of another class? : <p>sorry for the stupid question but I really cant solve it myself and can't find a fitting solution.</p> <p>I have multiple classes: MusicCollection,Albums and Songs. In each is an ArrayList and a bunch of methods to store new albums via a GUI class. Now I built anoter...
0debug
static const uint8_t *parse_opus_ts_header(const uint8_t *start, int *payload_len, int buf_len) { const uint8_t *buf = start + 1; int start_trim_flag, end_trim_flag, control_extension_flag, control_extension_length; uint8_t flags; GetByteContext gb; bytestream2_init(&gb, buf, buf_len); ...
1threat
In Pandas, whats the equivalent of 'nrows' from read_csv() to be used in read_excel()? : <p>Want to import only certain range of data from an excel spreadsheet (.xlsm format as it has macros) into a pandas dataframe. Was doing it this way:</p> <pre><code>data = pd.read_excel(filepath, header=0, skiprows=4, nrows=...
0debug
VBA Excel - Pop up message when value between two values : <p>I am looking for a code that will pop up a message box when a value (ie in cell A1) is not between the value of two seperated cell values. For instance, display a pop message when the value A1 is lower than A2 or if higher then A3; Can anyone help me with th...
0debug
void qmp_block_job_pause(const char *device, Error **errp) { BlockJob *job = find_block_job(device); if (!job) { error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; } trace_qmp_block_job_pause(job); block_job_pause(job); }
1threat
Automation using selenium (java) : <p>I want to check if my filter is resulting into empty grid(not rows). The GUI doesn't have any table to check empty rows. It's getting data at run time. Can somebody please help? Thanks.</p>
0debug
what is the difference between the 2 cases; in java strings? : <p>why do these statements give different answers?</p> <pre><code>String s1="hello world"; String s2="hello world"; System.out.println(s1.equals(s2));//true System.out.println(s1 == s2);//true </code></pre> <p>2nd case;</p> <pre><code>String s1=new ...
0debug
What really is constant? Definition : <p>I'm getting a little confused about constant. It says here in Programming Principles and Practice Using C++ book that you cannot give a new value to constant.</p> <pre><code>constexpr int max = 17; int val = 19; max+2 </code></pre> <p>but this code is confusing me. max+2, that...
0debug
I must make a bootstrap page : I must urgently make a webpage using Bootstrap. These are the requirements: "1 page in bootstrap. We have attached a hand made sketch. The page will have a list. In each list, there will be a title, 8 text fields in the group of 2 divided into 4 parts. For example, FirstName: Ora...
0debug
Access to headers in request-promise get response : <p>I am complete newbie to JS world. I am trying to write a test case that tests user's actions on a site. I am using request-promise module to test the asyn calls. I could not find any api documentation for request-promise. How do I get access to status code of the...
0debug
TGraphic.Draw(Canvas, Rect) does not work : I need to insert an image into an ImageList. The image is in a descendant of TGraphicControl (see source code below). The insertion seems to work. However, I get only a white rectangle in the ImageList: function InsertCloudImageIntoImageList(AdvCloudImage1: TAdvCloudIm...
0debug
void ff_hevcdsp_init_x86(HEVCDSPContext *c, const int bit_depth) { int mm_flags = av_get_cpu_flags(); if (bit_depth == 8) { if (EXTERNAL_MMX(mm_flags)) { if (EXTERNAL_MMXEXT(mm_flags)) { if (EXTERNAL_SSSE3(mm_flags) && ARCH_X86_64) { EPEL_LI...
1threat
Which is better Mysql vs Mysqli in php : <p><strong>which is better to use Mysql or Mysqli and in what conditions?</strong> I want to start a project that requires a database just wanted to know which of the two is better</p>
0debug
static void vnc_client_read(VncState *vs) { ssize_t ret; #ifdef CONFIG_VNC_SASL if (vs->sasl.conn && vs->sasl.runSSF) ret = vnc_client_read_sasl(vs); else #endif ret = vnc_client_read_plain(vs); if (!ret) { if (vs->disconnecting) { vnc_disconnect_finish(...
1threat
Python: setting type of numpy structure array : I have a numpy structured array where I need to control the data types of the individual elements. This is my example: y array([(True, 144.0), (True, 86.0), (True, 448.0), (True, 76.0), (True, 511.0), (True, 393.0), (False, 466.0), (Fals...
0debug
ES6 in JShint - .jshintrc has esversion, but still getting warning (using atom) : <p>I am using atom, and I've tried several different jshint packages and they all give a warning which says </p> <pre><code>"template literal syntax' is only available in ES6 (use 'esversion: 6')" </code></pre> <p>I created a top level ...
0debug
static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst, const uint8_t *src, int w, int left) { int i; if (s->bps <= 8) { if (w < 32) { for (i = 0; i < w; i++) { const int temp = src[i]; dst[i] = temp - ...
1threat
GenericList *visit_next_list(Visitor *v, GenericList **list, Error **errp) { if (!error_is_set(errp)) { return v->next_list(v, list, errp); } return 0; }
1threat
static int spapr_check_htab_fd(sPAPRMachineState *spapr) { int rc = 0; if (spapr->htab_fd_stale) { close(spapr->htab_fd); spapr->htab_fd = kvmppc_get_htab_fd(false); if (spapr->htab_fd < 0) { error_report("Unable to open fd for reading hash table from KVM: " ...
1threat
Constructor in Java - Scanner Class : import java.util.Scanner; public class Tutorials { public static void main(String[] args) { Car Vehicle = new Car(); Vehicle.supboys(); } } import java.util.Scanner; public class Car { private String Veh...
0debug
static void escc_mem_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { SerialState *serial = opaque; ChannelState *s; uint32_t saddr; int newreg, channel; val &= 0xff; saddr = (addr >> serial->it_shift) & 1; channel = (addr >> (...
1threat
Visual Studio Code (Windows) Not Detecting Global NPM Modules : <p>I'm experiencing an issue where Visual Studio Code in Windows 10 is not able to detect globally installed NPM packages within the Integrated Terminal.</p> <p>For example, if the windows command prompt I install <code>@angular/cli</code> via command <co...
0debug
Passing a listener to a custom Fragment in Android : <p>I'm creating a view pager in my app and using a class that extends Fragment on it. When I create an instance I can pass all the elements (an image, text, etc) and store it with the Bundle to use it in the onCreate. But I can't store a listener for the button in th...
0debug
I can not have more than one attribute : Am trying to write "onClick" attribute to different classes using java script. window.onload=function (){ document.getElementsByClassName("sg")[0].setAttribute("onClick", "ga('send', 'event', { eventCategory: 'Submit a form', eventAction: 'Click', eventLabel: 'Contact form s...
0debug
Cannot read property 'bind' of undefined. React.js : <p>I'm making list using onsenui and react. but I cannot call a bind from onchanged.</p> <p>I couldn't figure out.... Does anyone can solve this?</p> <p>this is my code. I'd like to call handlechanged method from input item. But then, Cannot read property 'bind' o...
0debug
Why does just importing OpenCV cause massive CPU usage? : <p>I noticed something very odd in trying a motion detector for Raspberry Pi:</p> <p>Removing the camera logging from the script, makes it use almost 0 CPU:</p> <pre><code>#from gpiozero import MotionSensor #import cv2 from datetime import datetime from time i...
0debug
static AHCIQState *ahci_boot_and_enable(void) { AHCIQState *ahci; ahci = ahci_boot(); ahci_pci_enable(ahci); ahci_hba_enable(ahci); return ahci; }
1threat
static int decode_slice_header(H264Context *h){ MpegEncContext * const s = &h->s; int first_mb_in_slice, pps_id; int num_ref_idx_active_override_flag; static const uint8_t slice_type_map[5]= {P_TYPE, B_TYPE, I_TYPE, SP_TYPE, SI_TYPE}; int slice_type; int default_ref_list_done = 0; s...
1threat
def comb_sort(nums): shrink_fact = 1.3 gaps = len(nums) swapped = True i = 0 while gaps > 1 or swapped: gaps = int(float(gaps) / shrink_fact) swapped = False i = 0 while gaps + i < len(nums): if nums[i] > nums[i+gaps]: nums[i], n...
0debug
SQLite App Crashing when I try to get data : When I click Show button, App will crash. I am following a guide and just changing names here and there but for some reason, it keeps crashing. please help me understand why this is happening. This is my CustDbAdapter CODE: public class CustDbAdapter { public ...
0debug
PHP: How can I get the input of HTML time input : <p>I am new to PHP. I have a PHP file(form1.php) with an HTML form. I would like to get the value of an input box(type=time), save it to PHP variable and transfer it to another PHP page without clicking the submit button. How can I access the input and do this with just...
0debug
static int open_input_stream(HTTPContext *c, const char *info) { char buf[128]; char input_filename[1024]; AVFormatContext *s; int buf_size, i, ret; int64_t stream_pos; if (c->stream->feed) { strcpy(input_filename, c->stream->feed->feed_filename); buf_size = FFM_...
1threat
static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt) { if(st->codec->codec_id == CODEC_ID_PROBE){ AVProbeData *pd = &st->probe_data; av_log(s, AV_LOG_DEBUG, "probing stream %d\n", st->index); --st->probe_packets; pd->buf = av_realloc(pd->buf, pd->buf...
1threat
Cant use a Variable for both fields(Text and Selecteditem) : Wanted to use Disk.Diskvolume as a Global Variable so it contains the things from Listbox1, when making the same Variable as a text for a label It throws an error that says: "Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (...
0debug
Trouble with *ngIf in Angular 2 (TypeScript) : <p>I am using Angular 2 beta (TypeScript). I met a weird problem. I tried Chrome, Firefox, Opera, all same results.</p> <p>When I click the "Toggle" button, it can successfully show/hide the text "Hello World!".</p> <p>When I send the command from another browser using s...
0debug
static int usb_serial_initfn(USBDevice *dev) { USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev); s->dev.speed = USB_SPEED_FULL; if (!s->cs) { error_report("Property chardev is required"); return -1; } qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_rea...
1threat
How to round to 1 decimal place using Java : <p>I am trying to round to the nearest decimal value, however, this line of code keeps returning a number between 0 and 1, I also want the output to be between 1 and 10. Where am I going wrong?</p> <pre><code>power[i] = rng.nextDouble(); </code></pre>
0debug
importing a method from a class in another code : <p>I want to import a specific method of a class in a file to another file of course in the same directory, so i tried this following way</p> <pre class="lang-py prettyprint-override"><code>from file1 import Class1 from file1 import Class1.method </code></pre> <p>it d...
0debug
static int vc1_decode_i_block_adv(VC1Context *v, int16_t block[64], int n, int coded, int codingset, int mquant) { GetBitContext *gb = &v->s.gb; MpegEncContext *s = &v->s; int dc_pred_dir = 0; int i; int16_t *dc_val; int16_t *ac_val, *ac_val2; int ...
1threat
void migrate_decompress_threads_join(void) { int i, thread_count; quit_decomp_thread = true; thread_count = migrate_decompress_threads(); for (i = 0; i < thread_count; i++) { qemu_mutex_lock(&decomp_param[i].mutex); qemu_cond_signal(&decomp_param[i].cond); qemu_mutex_un...
1threat
static void rng_egd_finalize(Object *obj) { RngEgd *s = RNG_EGD(obj); if (s->chr) { qemu_chr_add_handlers(s->chr, NULL, NULL, NULL, NULL); } g_free(s->chr_name); rng_egd_free_requests(s); }
1threat
static int coroutine_fn bdrv_aligned_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; int ret; int64_t sector_num = offset >> BDRV_SECTOR_BITS; unsigned int nb_sectors = bytes >> BDRV_SE...
1threat
c# method with unlimited params or method with an array or list? : <p>I recently learned that you can create some method with unlimited parameters, for example:</p> <pre><code>SomeMethod(params int[] numbers); </code></pre> <p>but my question is, what's the difference between that and just creating a method that rece...
0debug
Sequelize instance methods not working : <p>I am trying to use Sequelize's instance method to validate a password on login attempt. I have defined the User model as :</p> <pre><code>var User = sequelize.define('User',{ id:{ type:DataTypes.BIGINT, autoIncrement: true, allowNull: false,...
0debug
Fix incomplete character string for year "2016" from "0016" in R : <p>I've tried to find another question like this one but there doesn't seem to be one out there... My question is simple:</p> <p>I have a data frame that looked like this but I want the format to read YYYY-MM-DD:</p> <pre><code>&gt; df$Date Date...
0debug
static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_malloc0(sizeof(WinCharState)); s->hcom = fd_out; chr->opaque = s; chr->chr_write = win_chr_write; return chr; }
1threat
void ff_lzw_decode_tail(LZWState *p) { struct LZWState *s = (struct LZWState *)p; while(!s->eob_reached) lzw_get_code(s); }
1threat
MySQL select where JSON field property has value : <p>How to write a basic MySQL query that has a WHERE on a property within a JSON data-type field? I don't see basic where clause q for json fields on SO.</p> <p>Something like this, but of course these dont work:</p> <pre><code>SELECT * from my_table where meta_data-...
0debug
static int usbnet_can_receive(VLANClientState *nc) { USBNetState *s = DO_UPCAST(NICState, nc, nc)->opaque; if (is_rndis(s) && !s->rndis_state == RNDIS_DATA_INITIALIZED) { return 1; } return !s->in_len; }
1threat
text field in matrix layout in sap ui5 : i can not able to place text field in matrix layout please check below code and please suggest how to check xml code errors? evary time i am stucking in design part with xml code please suggest me how to overcome that. enter code here <core:View xmlns:core="sap.u...
0debug
making the xpath for dynamic button class where ID and name are present : below is the inspected content ,Kindly help me in locating the Checkout button. <div class="col-xs-12 hidden-sm col-sm-6 top-padding-mini bottom-offset-mini"> <button ng-class="continueDellMetricsClass" ng-click="continu...
0debug
Printing top n value with If-else condition using range() function in Python : I want to Print top 10 element from a list: top=10 test=[1,1,1,2,3,4,5,6,7,8,9,10,11,12,13] for i in range(0,top): if test[i]==1: top=top+1 else: print(...
0debug