problem
stringlengths
26
131k
labels
class label
2 classes
how to add json file and print in console : i am new to ios. And this is my first post. I know how to create a dummy json data and to print them in console.like below code: NSArray *jsonObject; jsonObject = @[@{@"Id1":@"mad", @"people1":@"300"}, @{@"Id2...
0debug
Error while running code through TestNg : <p>Getting configuration error while running the below code. Due to which i am unable to do further actions. Could someone please help me to run script.</p> <p>========================================================================<br> package Flipkart;</p> <pre><code>...
0debug
Predicate where condition is not working in IQueryable but working after converted IQuaryable to ToList() : This is not working **IQueryable<Items> items = Repository.GetItems(orderNo).Where(predicate);** This is working **IQueryable<Items> items = Repository.GetItems(orderNo).ToList().Where(predicate).AsQuery...
0debug
How to show image using <input> : <p>I want to be able to have my user input an image into the webpage. As soon as they have imported the file from their computer the image should show in the img.</p> <pre><code>&lt;body&gt; &lt;img id="myImage" height="200px" width="200px"&gt; &lt;input type="file" id="ImageI...
0debug
static BlockDriver *find_hdev_driver(const char *filename) { int score_max = 0, score; BlockDriver *drv = NULL, *d; QLIST_FOREACH(d, &bdrv_drivers, list) { if (d->bdrv_probe_device) { score = d->bdrv_probe_device(filename); if (score > score_max) { s...
1threat
Google Speech API + Flex API : <p>This might be considered a very broad question but, I am trying to introduce speech into a web application built using Flex API. My initial plan is to introduce something like the Google homepage with a text box and a mic icon which will trigger the speech api on click.</p> <p>Having ...
0debug
Form Closing when i press "c" when focus is on Radio Button or Check Box : Form is closing when I press "c" when the focus is on the radio button or checkbox. In the below form I have two buttons which named as Ok and Cancel(with Shortcut as "c") and two radio buttons. I put the focus on radio button and press "c" t...
0debug
void bitmap_set_atomic(unsigned long *map, long start, long nr) { unsigned long *p = map + BIT_WORD(start); const long size = start + nr; int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); unsigned long mask_to_set = BITMAP_FIRST_WORD_MASK(start); if (nr - bits_to_set > 0) { ato...
1threat
Email Markup It does not show the button in the subject line on gsuite, in Gmail is working : I did Email Markup tests in Gmail with positive results, but in gsuite gmail (company) the same script does not show the button in the subject line. I do not know if it is related, but before setting up Dkim registration in...
0debug
xilinx_axidma_data_stream_push(StreamSlave *obj, unsigned char *buf, size_t len, uint32_t *app) { XilinxAXIDMAStreamSlave *ds = XILINX_AXI_DMA_DATA_STREAM(obj); struct Stream *s = &ds->dma->streams[1]; size_t ret; if (!app) { hw_error("No stream app data!\...
1threat
static void uart_send_breaks(UartState *s) { int break_enabled = 1; qemu_chr_fe_ioctl(s->chr, CHR_IOCTL_SERIAL_SET_BREAK, &break_enabled); }
1threat
writing to mySQL with html and php : <p>Have been using these codes and not sure why they wont write to my database. Can't access the servers tonight but this is terribly irritating please help!</p> <p>HTML:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet...
0debug
static inline void downmix_3f_to_mono(float *samples) { int i; for (i = 0; i < 256; i++) { samples[i] += (samples[i + 256] + samples[i + 512]); samples[i + 256] = samples[i + 512] = 0; } }
1threat
static void rtas_nvram_store(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { sPAPRNVRAM *nvram = spapr->nvram; hwaddr offset, buffer, len;...
1threat
static int slirp_hostfwd(SlirpState *s, const char *redir_str, int legacy_format, Error **errp) { struct in_addr host_addr = { .s_addr = INADDR_ANY }; struct in_addr guest_addr = { .s_addr = 0 }; int host_port, guest_port; const char *p; char buf[256]; int is_udp...
1threat
quic sort char array in c : I copy a int array quick sort algorithmn from http://www.comp.dit.ie/rlawlor/Alg_DS/sorting/quickSort.c Then change it to char array quick sort algorithmn. Here is the code extern void quickSortChar(char a[], int left, int right) { int j; if (left < right) {...
0debug
i have string as 'abc def ghi' in one column and one row but i want output abc def ghi one by one like down in one column and one row : 1. 'abc def ghi' but we want out put like in sql server 1. abc def ghi
0debug
What are the real time usage of Filter concept in Java Servlet? : <p>I am new to servlets, Help me understand Filter concept in real time?</p>
0debug
Deep copy of list with objects in Kotlin : <p>I am new to kotlin and I am trying to make a copy of a list of objects.The problem I am having is that when I change items in the new copy, the old list gets changed as well. This is the object:</p> <pre><code>class ClassA(var title: String?, var list: ArrayList&lt;ClassB&...
0debug
static av_always_inline int normal_limit(uint8_t *p, int stride, int E, int I) { LOAD_PIXELS return simple_limit(p, stride, 2*E+I) && FFABS(p3-p2) <= I && FFABS(p2-p1) <= I && FFABS(p1-p0) <= I && FFABS(q3-q2) <= I && FFABS(q2-q1) <= I && FFABS(q1-q0) <= I; }
1threat
static void xhci_events_update(XHCIState *xhci, int v) { XHCIInterrupter *intr = &xhci->intr[v]; dma_addr_t erdp; unsigned int dp_idx; bool do_irq = 0; if (xhci->usbsts & USBSTS_HCH) { return; } erdp = xhci_addr64(intr->erdp_low, intr->erdp_high); if (erdp < intr->e...
1threat
Angular2 How to get reference of HTML elements generated dynamically : <p>I have this inputs generated dynamically:</p> <pre><code> &lt;div *ngFor="let cell of column; let i = index;"&gt; &lt;!-- Material design input--&gt; &lt;md-input id="my-input-{{i}}"&gt; &lt;/md-input&gt; &lt;/di...
0debug
int qcow2_alloc_clusters_at(BlockDriverState *bs, uint64_t offset, int nb_clusters) { BDRVQcow2State *s = bs->opaque; uint64_t cluster_index, refcount; uint64_t i; int ret; assert(nb_clusters >= 0); if (nb_clusters == 0) { return 0; } do { cl...
1threat
What is this carbon,boron,argon , which is used for nodejs? : <p>I am just curious, what is <code>carbon, boron, argon</code> which is used while describing versions of <code>nodejs</code>?</p>
0debug
How to make an angular application take arguments from command line? : <p>I have an AngularJS application in which my code looks something like this:</p> <pre><code>myApp = angular.module('myApp', [ 'ui.router', 'ngMaterial', 'ngMessages' ] ); myApp.constant('CONSTANTS', (function() { // Define your...
0debug
How to create my specific MySLQ select? : i have 2 DB tables Table1 [US_name1 : US] [US_name2 : US] [US_name3 : US] [UK_name1 : UK] [UK_name2 : UK] [DE_name1 : DE] [DE_name2 : DE] ... and the Table2 ... [2014-05-01 : US_name1 : 150] [2014-05-01 : US_name2 : 3...
0debug
What does the ? and : mean in this statement in Java? : <p>What exactly does this mean? </p> <pre><code>String path = selectedPath.equals("/") ? "/" : selectedDir; </code></pre> <p>What I think it is saying is set path to the selectedPath if it equals "/" and if it doesn't set the path to selectedDir.</p>
0debug
static int halfpel_interpol(SnowContext *s, uint8_t *halfpel[4][4], AVFrame *frame){ int p,x,y; for(p=0; p < s->nb_planes; p++){ int is_chroma= !!p; int w= is_chroma ? s->avctx->width >>s->chroma_h_shift : s->avctx->width; int h= is_chroma ? s->avctx->height>>s->chroma_v_shift : s...
1threat
Print last 20 bash history using python and save in pdf file : <p>This code print all the bash history but i have to print last 20 bash history.How can i do that?</p> <pre><code>import fpdf pdf = fpdf.FPDF(format='letter') pdf.add_page() pdf.set_font("Arial", size=14) for history in open('.bash_history'): pdf.wr...
0debug
HTTP 404 resource not found when project run on server on spring tool suite : <p>It was all working fine until I made some changes that I can't seem remember in order to revert. I changed the the dynamic web module version and the java version to their latest respective versions in project facets. Then I made some chan...
0debug
static inline void tcg_out_rld(TCGContext *s, int op, TCGReg ra, TCGReg rs, int sh, int mb) { assert(TCG_TARGET_REG_BITS == 64); sh = SH(sh & 0x1f) | (((sh >> 5) & 1) << 1); mb = MB64((mb >> 5) | ((mb << 1) & 0x3f)); tcg_out32(s, op | RA(ra) | RS(rs) | sh | mb); }
1threat
Rotating every 3 bits of integer in C++ : <p>Note the following may have exactly the same solution if x is any positive integer, but for the exact problem at hand:</p> <p>Choose an integer 0 &lt; n &lt; 11. Let x be an integer whose binary representation is given by pasting together up to n of the 3-bit strings: 001, ...
0debug
document.getElementById('input').innerHTML = user_input;
1threat
int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MJpegDecodeContext *s = avctx->priv_data; const uint8_t *buf_end, *buf_ptr; ...
1threat
Where to get poi final jar for xssf? : <p>I have downloaded poi -3.14 jar from Maven repository but it was having all packages for hssf where I need xssf for xlsx format. Where should I download xssf jar.</p>
0debug
How to convert an IP binary address into a decimal in C#? : <p>I'm looking for a function that will convert "10011101.11001001.01001100.00000000" to "157.201.76.0" </p>
0debug
Laravel 5 - Check if date is today : <p>I'm creating a timeline and I'm nearly finished. I want that the color of the date for each timeline event is the same beside if the date is "today".</p> <p>So I need something like: </p> <pre><code>@if($event[$i]-&gt;created_at-&gt;format('d.m.Y') == *code or variable that say...
0debug
How to enable Gzip Compression in php : <p>i have developed a website in PHP . I want to enable gzip compression to reduce response time of website.how can i do it . </p>
0debug
Is Tomcat a HTTP server or a servlet container? : When I download Tomcat it seems to be both a HTTP server and a servlet container. Can I use TomCat with a different HTTP server than the one built-in in TomCat ?
0debug
Extracting quoted part from string : <p>I am trying following code to extract quoted part from a string: </p> <pre><code>package main import ("fmt") func main(){ var oristr = "This is a \"test string\" for testing only" var quotedstr = "" var newstr = "" var instring = false fmt.Println(oristr) ...
0debug
Angularjs 2 Quickstart : I have tried the angular2 5 Min quickstart from https://angular.io/docs/ts/latest/quickstart.html. All Files were created by copy & past because i am lazy and because of possible faults. I preferred the typescript version. At the end, i must compile and start with "nmp start". i do this as admi...
0debug
def cube_Sum(n): sum = 0 for i in range(0,n) : sum += (2*i+1)*(2*i+1)*(2*i+1) return sum
0debug
static uint64_t bonito_ldma_readl(void *opaque, hwaddr addr, unsigned size) { uint32_t val; PCIBonitoState *s = opaque; val = ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)]; return val;
1threat
Is there possible way to download files if we only know the directory name? : We have following requirements. Two zip files and Two images are in https://example.com/directory. (Since index.php file is avlable in this directory we don't know the file names of those files). Is there any possible way to find names ...
0debug
Truncated Android SDK package paths from sdkmanager CLI : <p><code>./sdkmanager --list &gt; tmp.txt</code> gives me a .txt file like this:</p> <pre><code>Installed packages: Path | Version | Description | Location ------- | ------- | ------- | ------- tools | 25.2.3 | Android SDK...
0debug
Store a values from HTML input into a php variable using javascript : <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html" /&gt; &lt;meta name="author" content="gencyolcu" /&gt; &lt;title&gt;Untitled 8&lt;/title&gt; &lt;/head&gt; &lt;body&gt; ...
0debug
void ff_acelp_weighted_filter( int16_t *out, const int16_t* in, const int16_t *weight_pow, int filter_length) { int n; for(n=0; n<filter_length; n++) out[n] = (in[n] * weight_pow[n] + 0x4000) >> 15; }
1threat
React native: How to combine external and inline styles? : <p>This is a part of a _renderRow-function. I have some basic styles for a button, and also a style that is read from a variable on the row. In this example it's '#f00' but it could be a variable, like thisColor. How can I combine an external style with an inli...
0debug
How to read JSon boolen and number values? : I send a JSon object to server by creating as : var input_array =self.input_value(); myJson={ request_type:1, //send request for problem 1 list_empty: 0, //1 is empty, 0 is not empty data_list:[] }; for(...
0debug
Is it possible to convert String to ResultSet in jsp? : <p>How can I convert List to Result Set. Is it possible to do this conversion?</p>
0debug
static av_cold int movie_common_init(AVFilterContext *ctx) { MovieContext *movie = ctx->priv; AVInputFormat *iformat = NULL; int64_t timestamp; int nb_streams = 1, ret, i; char default_streams[16], *stream_specs, *spec, *cursor; char name[16]; AVStream *st; if (!movie->file_na...
1threat
K&R Word Couting program in C 1.5.4 : I am referring K&R for learning C. I am not getting the desired output for the following code. #include<stdio.h> #define IN 1 #define OUT 0 main() { int c,nl,nw,nc, state; nl = nc = nw = 0; state = OUT; while ((c=getcha...
0debug
how we can create a multiple spinner with my SQL database value in android : i am working with a project with multiple snipers in a single app , which fetches data from my SQL database and shown in snippers. If any one knows please help.thank you
0debug
jQuery Event wenn Besucher inaktiv oder sehr aktiv : Ich suche nach einem jQuery Script das bei inaktive Besucher Besuchern ausgelΓΆscht wird. - Wenn der Benutzer seine Maus nicht mehr bewegt - Wenn die Maus aus dem Vieport geht - Wenn er die halbe Seite gescrollt hat - wenn er nach oben scrollt Geht das un...
0debug
Credentials in pip.conf for private PyPI : <p>I have a private PyPI repository. Is there any way to store credentials in <code>pip.conf</code> similar to <code>.pypirc</code>?</p> <p>What I mean. Currently in <code>.pypirc</code> you can have such configuration:</p> <pre><code>[distutils] index-servers = custom [cus...
0debug
static void virtio_setup(uint64_t dev_info) { struct schib schib; int ssid; bool found = false; uint16_t dev_no; enable_mss_facility(); if (dev_info != -1) { dev_no = dev_info & 0xffff; debug_print_int("device no. ", dev_no); blk_schid.ssid = (...
1threat
JAVA-Selenium Error Unique Scenario Pls Take a Look : While working on code written in JAVA to automate clicking of a search button on a certain website, i have come across an interesting problem. This is what is happening - The java code runs in loops and locates plus clicks the search button on every iteration.T...
0debug
static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg) { Picture *pic = NULL; int64_t pts; int i, display_picture_number = 0, ret; const int encoding_delay = s->max_b_frames ? s->max_b_frames : (s->low_delay ? 0 : 1); int dire...
1threat
static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) { AVStream *stream = ist->st; AVCodecParameters *par; AVCodecContext *dec_ctx; char val_str[128]; const char *s; AVRational sar, dar; AVBPrint pbuf; const AVCodec...
1threat
how do I use angular cli on a Windows Server in a Jenkins build batch command : <p>before installing Jenkins I ran this: <strong>npm install -g @angular/cli</strong></p> <p>but I also have this in devDependencies in the package.json for the project: </p> <p><strong>"@angular/cli": "1.0.0-beta.32.3"</strong>,</p> <hr...
0debug
Extracts incomplete cases from a data set in r : <p>from this example: </p> <pre><code> ## x ## v1 v2 v3 ##1 90 55 NA ##2 NA 45 8 ##3 85 NA 5 ##4 NA 33 7 ##5 55 30 4 ##6 60 20 3 ##7 75 15 2 ##8 80 23 6 # ici is where Incomplete case indicator ici=(function (x) ...
0debug
static int bdrv_inherited_flags(int flags) { flags |= BDRV_O_PROTOCOL; flags |= BDRV_O_CACHE_WB | BDRV_O_UNMAP; if (flags & BDRV_O_SNAPSHOT) { flags &= ~BDRV_O_RDWR; } flags &= ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING); return flags; }
1threat
static int mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; int i, start_code; AVPicture *picture = data; *d...
1threat
how to past value from textview to a variable for others activities in android : i having problem to assign a Text-view result[from database] to a new variable. Text-view retrieve data from database no issue. Now issue is i need to link the value in the Text-view to a new variable. Then use button function for my n...
0debug
Noobie learning but plz help ,,, while loop : public static void main (String [] args){ double x = 100;**strong text** while (x < 500 && x % 17 == 0 && x % 9 == 0 ){ System.out.println(x); x++ ; Hello i am trying t...
0debug
UWP: ListView ItemClick not work : <p>I have to do a Master/Detail in UWP</p> <p>1- If you're in Laptop:</p> <p>The responsible GridView of show the data of this person appear. So when you select a item is binded to ViewModel.</p> <pre><code>&lt;ScrollViewer x:Name="ScrollLista" Grid.Column="0" Grid.Row="1"&gt; ...
0debug
Update Typescript in Angular2 project : <p>I have an Angular2 project using Typescript, in Visual Studio. I want to update Typescript from 1.8 to 2.0.x. In my system I have updated typescript and <code>tsc -v</code> logs <code>Version 2.0.10</code> The package.json, among others, contains</p> <pre><code>"devDependenci...
0debug
Setter for class within a class : i have a Sheet class which contains two attributes and each is a class 1. summary (class) 2. data (class) summary and data has 1 attribute,df, which is a dataframe my question is, am i right to say that since summary and data are classes: 1. I shouldn't store summary and dat...
0debug
How can I specify where my local developer's service fabric cluster is created? : <p>My problem: I am learning Service Fabric, and doing simple tutorials, and the local cluster is filling up my C drive. I run the projects in Visual Studio. It first creates a cluster in a folder SfDevCluster. That takes up 842 MB of spa...
0debug
Which of the following are valid C++ variable names? : <p>9index, break, user_name, CONSTANT, _member</p> <p>Got this wrong on a test and I'm wondering where I can find the right answer. Would be highly appreciated. Thanks!</p>
0debug
Can chrome headless browser be used to save the complete web page with resources? : <p>I am looking to use the chrome headless browser to replicate the 'Save As' functionality to save the complete web page with all its resources. Is there a way to do this? I tried the --print-to-pdf and --screenshot options and looking...
0debug
Multiple Classes in 1 file only 1 Class accesable : I have Multiple Classes in 1 file. I have to put them all in 1 file because of Compay standard for the programm im Writing something for. Is there some way to only make 1 Class in the file accesable? Nobody needs to see the other classes.
0debug
Function using PHP that converts a base 36 string to a base 10 integer : <p>Can someone show me how I would write a php function that converts a base 36 string to a base 10 integer without using the base convert function </p> <p>the function should work like this </p> <pre><code>echo base36_to_base10('614qa'); //prin...
0debug
java swing- jtable cell rendere : I design a system by Java Swing. I have a tablet called sick and this tablet has a column called status which has two values,one is open and onother is closed values. My question is that when the value of the column is open I want to change color to blue and when it is closed i want to...
0debug
void kvm_arm_reset_vcpu(ARMCPU *cpu) { memmove(cpu->cpreg_values, cpu->cpreg_reset_values, cpu->cpreg_array_len * sizeof(cpu->cpreg_values[0])); if (!write_list_to_kvmstate(cpu)) { abort(); } }
1threat
savewidget from htmlwidget in R , cannot save html file in another folder : <p>I have a map leaflet that I want to save in an html file in a specific folder. I am using Windows 7.</p> <p>I tried the following :</p> <pre><code>library(htmlwidgets) saveWidget(map_leaflet, file="ressources/test.html") library(htmlwidge...
0debug
void ppc_hash64_unmap_hptes(PowerPCCPU *cpu, const ppc_hash_pte64_t *hptes, hwaddr ptex, int n) { if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { g_free((void *)hptes); } else if (!cpu->env.external_htab) { address_space_unmap(CPU(cpu)->as, (void *)h...
1threat
angular2, typescript, extract an array from object : I'm having an issue trying to extract an array from an object. The strcuture is as follows: [] 0: Array(4) 0: 0 1: 5 2: 500 3: (5) [{…}, {…}, {…}, {…}, {…}] I've tried object.keys, for and foreach loops but I h...
0debug
static void numa_add(const char *optarg) { char option[128]; char *endptr; unsigned long long value, endvalue; int nodenr; optarg = get_opt_name(option, 128, optarg, ',') + 1; if (!strcmp(option, "node")) { if (get_param_value(option, 128, "nodeid", optarg) == 0) { ...
1threat
Algorithm to correct misspelled product names from excel file : <p>Hi I am fairly new to python and am looking to write a script that can correct misspelled product names.</p> <p>As part of my job I receive excel files with product names and prices, sometimes those product names can be misspelled. This can mean switch...
0debug
void axisdev88_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; CRISCPU *cpu; CPUCRISState *env; DeviceState...
1threat
int fread_targphys(target_phys_addr_t dst_addr, size_t nbytes, FILE *f) { uint8_t buf[4096]; target_phys_addr_t dst_begin = dst_addr; size_t want, did; while (nbytes) { want = nbytes > sizeof(buf) ? sizeof(buf) : nbytes; did = fread(buf, 1, want, f); cpu_physical_memory_write_rom(dst_addr...
1threat
Link does not work without http:// protocols (php) : I use php and I have an input that the user types in a link to his website and the link should appear for others to view it or open it. I'm testing the input and the problem is the link does not work unless I types either http:// or https:// before the mentioned URL ...
0debug
static int get_whole_cluster(BlockDriverState *bs, VmdkExtent *extent, uint64_t cluster_offset, uint64_t offset, bool allocate) { uint8_t whole_grain[extent->cluster_sectors * 512]; if (bs->backing_hd) { int ret; ...
1threat
static void pcnet_ioport_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { PCNetState *d = opaque; if (addr < 16 && size == 1) { return pcnet_aprom_writeb(d, addr, data); } else if (addr >= 0x10 && addr < 0x20 && size == 2) { ...
1threat
SVG How do increase width using animateTransform? : I have a <rect> that need to expand its WIDTH using animateTransform based on a given value, the <rect> should change colors as follows - if <rect> value is 0 - 29 <rect>'s {fill:red;} - if <rect> value is 30-49 <rect>'s {fill:blue;} - if <rect> value is 50 -...
0debug
how to add class from java script without removing class from css : im new in javascript, i got problem with javascript from callmenick $(document).ready(function() { $( '.dropdown' ).hover( function(){ $(this).children('.sub-menu').slideDown(200); }, function(){ ...
0debug
simple login php not working : <p>Created a simple login form but it doesnt seem to work.It always opens the admin page. </p> <pre><code>$username=$_POST["username"]; $password=$_POST["password"]; if(mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password'",$con)){ session_start(); $_SESSI...
0debug
av_cold void ff_dsputil_init_ppc(DSPContext *c, AVCodecContext *avctx) { const int high_bit_depth = avctx->bits_per_raw_sample > 8; if (!high_bit_depth) { switch (check_dcbzl_effect()) { case 32: c->clear_blocks = clear_blocks_dcbz32_ppc; break; case 1...
1threat
Instantiating the base class member by creating the object in the derived class Method : <p>when i am trying to instantiate the base class member by creating an object in the derived class method it should be accessed by c.Id instead getting an error</p> <pre><code>public class RetailCust : Customer { public void ...
0debug
static void sh7750_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t mem_value) { SH7750State *s = opaque; uint16_t temp; switch (addr) { case SH7750_BCR1_A7: case SH7750_BCR4_A7: case SH7750_WCR1_A7: case SH7750_WCR2_A7: case SH7750_WCR3_A7: case SH...
1threat
Azure: Pricing of deployment slots for an Azure App Service : <p>Azure: Pricing of deployment slots for an Azure App Service.</p> <p>Using an S1 App Service Plan, my web site has up to 5 slots for web app staging. How are those slots charged? Are they billed only if used? Included in the S1 fee? or something else.</...
0debug
static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) { int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits; #if defined(CONFIG_SOFTMMU) uint32_t *label1_ptr, *label2_ptr; data_reg = *args++; addr_reg = *args++; mem_index = *args; s_bits = op...
1threat
Can one connect an USB-hub to the ethernet port? : <p>My system:<br> 2x USB 2.0<br> 1x 1000MBit Ethernet<br> Wifi<br> OS: Linux</p> <p>I want to connect an usb-hub, but plugging it into the usb 2.0 is super slow. Is there a possibility to connect the usb-hub to the ethernet port? I am anyway only using Wifi for Intern...
0debug
def count_even(array_nums): count_even = len(list(filter(lambda x: (x%2 == 0) , array_nums))) return count_even
0debug
static void sdp_parse_fmtp_config(AVCodecContext * codec, void *ctx, char *attr, char *value) { switch (codec->codec_id) { case CODEC_ID_MPEG4: case CODEC_ID_AAC: if (!strcmp(attr, "config")) { int len = hex_to_da...
1threat
Remove 'search' option but leave 'search columns' option : <p>I would like to remove 'global search' option from my application, but leave 'column search' option. Any ideas? I've tried different paramethers like <code>searching=FALSE, filtering='none'</code>... None of this works properly. </p> <p>My code:</p> <p><co...
0debug
How to decode javascript error : <p>I am downloading file by clicking on link from ExtJS grid column. </p> <p>After download When I go back to my Application page I am getting one notification by</p> <p><strong>The operation failed due to a system error. Please try again.</strong> </p> <p>In fiddler I am checking</p...
0debug
av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans) { int n = 1 << nbits; int i; const double theta = (trans == RDFT || trans == IRIDFT ? -1 : 1)*2*M_PI/n; s->nbits = nbits; s->inverse = trans == IRDFT || trans == IRIDFT; s->sign_convention...
1threat
Use a variable to set string length : I am working on a scanning system to make edits to very long strings. For the scanning I am using a string to contain the current letters being checked. I need to set the length of the string "scanSet" to the length of the variable "stringLength". The variable "stringLenght" is a c...
0debug