title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Positioning issue using jQuery Cycle
<p>I've built a slideshow using the jquery Cycle plugin, each image spans the width of the page (liquid layout) and has an accompanying caption. I need the caption to sit over the image and hence I'm using <code>position: absolute</code> in my CSS. However, as per some blog posts and Stack answers I've read, Cycle over...
3
1,205
parsing timestamp from mysql to csv using java
<p>i have a mysql db, and i have one table which has many columns including a timestamp one. i want to read the table and write it to a csv file. then i will read from the csv file the data and insert it in another db and table. all these are done through java. I can read the table date and the timestamp from the first...
3
1,251
Use Generics for Return Type and Parameter
<p>I am writing a lot of unit tests and due to the specifics of our framework, each one needs this mock which uses <code>DbSet</code> and some type. The only difference is the type, so I would like to avoid repeating the same method many times and if possible have one (maybe) generic method. Using EF 6, .Net 4.7.1</p> ...
3
1,330
Django==2.1 , setting DEBUG to False results in 500 server error
<p>I have the following <code>settings.py</code> file for my django project: </p> <pre><code>""" Django settings for framework project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of set...
3
2,117
Error on insert statement in VBA CODE
<p>Why is this giving me an error Operation is not allowed when the object is closed. Its works fine for a Select statement or delete statement.The insert statement take only a few seconds on toad.</p> <p>Error occurs at --> <code>do while not showList.eof</code> </p> <p>Code is:</p> <pre><code>Option Explicit D...
3
1,901
Calling Controller Class and passing value
<p>I am trying to create a menu using <code>&lt;ui&gt;&lt;li&gt;&lt;/li&gt;&lt;/ui&gt;</code> tags. I am reading from an XML file and storing it in a List of(menu) object.</p> <p><strong><em>Menu Object:</em></strong></p> <pre><code>Public Class MenuVM #Region "Properties" Public Property ID As Integer Publi...
3
2,084
"jQuery requires a window with a document" on jquery $get
<p>Why does this error happen when it try to use jquery? This code was working before but I don't even know what did I do for this error to happen. I tried to search about it and nothing I looked up makes sense or it's about this jsdom or whatever that I don't use. Exception is thrown on the 1st line in the try catch. ...
3
1,486
Unable to expand collapsed navbar in Bluemix deployed app
<p>I am deploying a very simple node.js application in bluemix. I am using ejs and bootstrap to create a navbar at the top. It works on my local version of the code, but when I push it to bluemix and deploy, the navbar doesn't expand. Interestingly the source code for both apps as seen by the browser is exactly the s...
3
1,043
Search function in PHP works with numeric values but doesn't work with letters/words
<p>People can order links at my platform and these get stored in two different tables, eg wp_project and wp_articles. The reason for this is that when people place an order for 1 link one project row gets created and one article row gets created.</p> <p>However if a client orders 10 links there will be one project ent...
3
1,569
How can I get Backbone router + Kendo UI Mobile (tabstrip) to work together?
<p>How can I get Backbone router + Kendo UI Mobile (tabstrip) to work together?</p> <p>I am just getting started with Backbone and have been looking at using it with a UI. I was able to do this with Backbone and jQuery Mobile (JQM) by disabling JQM's routing as outlined in this post: <a href="http://coenraets.org/blog...
3
1,269
ObjectOutputStream, ObjectInputStream. Cannot cast to ConcurrentHashMap
<p>My client sends a public key to the server. The server puts the public key and the client's ip address in a ConcurrentHashMap and returns the ConcurrentHashMap back to the client. The public key and client's ip is stored in <code>public ConcurrentHashMap&lt;Key,String&gt; list = new ConcurrentHashMap&lt;Key,String&g...
3
1,517
How to adjust navigation design for different browsers?
<p>I am a noob when it comes to web design. I downloaded a template to create a site with but My navigation bar looks great in Chrome but is not positioned correctly in FireFox and a part of it is not positioned correctly in IE. Below is my code. I am not sure if this template was like this at the start or after I star...
3
1,255
Compare two values in dictionarys python
<p>Pretty new to the python language and ran in to a problem. Is it possible to compare values in dictionaries?</p> <p>I've made two api calls and need to check if the id:s are same and then return all deals</p> <p>My code:</p> <pre><code> company_response = get_api_data(headers=headers, url=url) company_d...
3
1,401
Flutter: bloc test problem with comparing expected and actual
<p>I have tests like the below:</p> <pre class="lang-dart prettyprint-override"><code> blocTest( 'emits [ViewData.loading and ViewData.loaded] when GetRepositories is added', build: () { when( () =&gt; useCase.getRepositories(), ).thenAnswer((_) async =&gt; Right(rep...
3
2,406
Extract a JSON array items to a single column separated with comma
<p>Struggling to find an answer to the below JSON problem. I would like to display the entire <code>SKU/Quantity</code> list in the <code>&quot;shipmentItems&quot;</code> array to their respective column with a comma-separated value. My example below only allows me to display the first SKU/quantity from the array but, ...
3
1,500
R: ggplot2 grouped bar plot is not in order
<p>I've encountered the problem that my <code>ggplot2</code> grouped bar chart is not in the order implied by my dataframe (i. e. Other, Medical &amp; Health, IT, Industrial and respectively MM Levered, Leverage Effect, ..., Combination R/M Effect).</p> <p>In the following I will provide you with my current ggplot2-Cod...
3
2,297
Why equal number comparison is returning false?
<p>I have an application in NodeJs with Express, where I get two values:</p> <p>One is an <code>INTEGER</code> type from Google BigQuery. The other is an <code>int autoincrement length 11</code> id from MySql via Sequelize.</p> <p>They are equal values, but when I compare the two I got false:</p> <pre><code>laboratorio...
3
4,723
Why reference properties works only through context
<p>I have two classes Order and OrderDetail:</p> <pre><code> public class Order : Entity { public Order(KitchenAppContext context) : base(context) { } public Order() : base() { } public DateTime Date { get; set; } public Guid MenuId { get; set; } public virtual Menu Menu { get; s...
3
1,376
Why doesn't PHP send the email?
<p>I am trying to send an email message with data collected from an html form.</p> <p>Here is the form:</p> <pre><code>&lt;form action="estimate.php" action="post"&gt; &lt;fieldset&gt; &lt;input type="text" name="name" value="FULL NAME" onfocus="if (this.value=='FULL NAME') this.value='';"/&gt; &l...
3
1,380
Bootstrap two columns bug with panel-body class?
<p>I created a 2 columns bootstrap layout (one for menu, and one for content). It works well, but if I put a bootstrap panel (.panel-body precisely) it does a weird stuff (look at <a href="http://i.stack.imgur.com/wGUKs.png" rel="nofollow">http://i.stack.imgur.com/wGUKs.png</a>);</p> <p>HTML:</p> <p><div class="snipp...
3
1,173
Create a view integrating previous views in SQL
<p>I created three views in my new database using data from AdventureWorks2014. All three views compile and save just fine, there are no problems with them. However, when I try to make one full view including all three, nothing seems to be working.</p> <p>Views <code>creation</code>, <code>creation2</code> and <code>c...
3
1,178
Checking for only one group of columns values to be present in dataframe
<p>I had asked a similar scenario in below question ,and thought based on the answer I could figure out the solution, but I am lost . <a href="https://stackoverflow.com/questions/53945345/checking-for-only-column-value-to-be-present-in-dataframe/53945573#53945573">Checking for only column value to be present in datafra...
3
17,407
Microsoft graph send mail android java
<p>I've been trying to send an email through an app that I've created in java but I'm getting 424 Error during Http request whenever I try to send the email I'm currently just using Microsoft's demo code for the request.</p> <pre><code>IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvide...
3
2,523
Image Checkbox List is not work properly
<p>Please Look at the URL: <a href="http://www.supereleman.com/test/2.html" rel="nofollow">http://www.supereleman.com/test/2.html</a></p> <p>When ı click the text, checkbox is selected. But (reverse of this) when ı clicked to image, text and image have not been clicked..</p> <p>What must ı do for when ı clicked to i...
3
5,496
TextInputLayout Render error with gradle 2.3.x
<p>I upgraded to Gradle 2.3.2 in my project using Android studio. Prior to 2.3.x I had no issues. The following xml segment used to work fine. Now it fails in Render mode in Android studio. It compiles and runs fine on my emulator and test devices, but I can not longer view the xml in preview. </p> <h2>XML</h2> ...
3
1,954
LibGDX - StillModel with textures
<p>I have read this article: <a href="https://code.google.com/p/libgdx-users/wiki/GenericTextureBinding" rel="nofollow noreferrer">https://code.google.com/p/libgdx-users/wiki/GenericTextureBinding</a> And tried to use it. I am using complex .obj(airplane) and 10 textures. Seems to me everything goes as expected, but I ...
3
2,200
Handling with session cookie lifetime and log in process. PHP
<p>I have a login page which displays a login dialog once it has loaded. Login dialog's just a <code>JQuery</code> dialog that uses an <code>Ajax call</code>. Something like that:</p> <pre><code>$(function() { var _width = $.browser.msie ? 316 : 'auto'; var loginDialog = $('#loginDialog'); loginDialog.dia...
3
1,573
CubeHash. Pure PHP implementation. Multibyte block issue (CubeHash160+16/32+160-256)
<p>I'm newbie in cryptography.</p> <p>I'm trying to implement CubeHash hashing function on pure PHP. I've ported some JS-version (32-bit) to PHP (64-bit), but I'm not able to implement CubeHash with param <code>b</code> when it is grater than 1 (block size is grater than 1 byte).</p> <p>Please, help me.</p> <p>run onli...
3
5,901
zf2 view helper factory / service locator parameters
<p>I have a view helper that acts as a factory by returning an entity-specific renderer.</p> <p>I would like the factory to implement the FactoryInterface and MutableCreationOptionsInterface, so i can return different renderers depending on the type of object passed to it, eg:</p> <pre><code>$serviceLocator-&gt;get('...
3
1,277
implement Backpropagation from scratch with gradient checking|| error during graident checking
<p>#Implementing Forward propagation, Backpropagation and Gradient checking #code to compute forward propogation based on computational graph</p> <pre><code> def forward_propagation(x, y, w): '''In this function, we will compute the forward propagation ''' # X: input data point, note ...
3
3,593
C# string encoding issue via mocked HttpResponseMessage
<p>I am trying to test fetching data from a remote API. I setup the HttpClient as follows:</p> <pre><code>HttpClient httpClient = SetupHttpClient((HttpRequestMessage request) =&gt; { FileStream file = new FileStream(&quot;API_Data.json&quot;), FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(...
3
3,365
Unable to fetch Vault Token for Pod Service Account
<p>I am using Vault CSI Driver on Charmed Kubernetes v1.19 where I'm trying to retrieve secrets from Vault for a pod running in a separate namespace (<code>webapp</code>) with its own service account (<code>webapp-sa</code>) following the steps in the <a href="https://www.hashicorp.com/blog/retrieve-hashicorp-vault-sec...
3
2,455
unit-tests SyntaxError: Unexpected token {
<p>I get this error:</p> <pre><code>D:\nginx\ibdrweb\webapps\ibdr-document-2\doc-app\sources\forms\dynamic-form\lus\lus.js:1 import { Tools } from "@ShareUtils/tools"; ^ SyntaxError: Unexpected token { at Module._compile (internal/modules/cjs/loader.js:721:23) at Object.Module._extensions..js (internal...
3
1,111
How does accordion collapse doesn't toggle on button click
<p>The images are like this 1. On page load.<img src="https://i.stack.imgur.com/BIPBI.jpg" alt="On page laod, collapseTwos is active"> 2. When click on collapseTwos button i.e (next) ,the collapseTwos doesn't toggle.<img src="https://i.stack.imgur.com/odfih.jpg" alt="collapseTwos doesn&#39;t toggle"></p> <p>The live e...
3
5,396
Zend Framework Custom form element gets repeated
<p>I've got a strange problem.</p> <p>I created a custom form element. I created it with two select-form-elements to select a time (00:00). </p> <p>The strange things is that when i use it once in a form its ok, but when i use it a second time (because an appointment has a beginning and an end time) the first one is ...
3
1,347
How to control what setAdapter shows?
<p>I am trying to create a Music Player (learning). I retrieved the songs from SD card which include song's name and its path, which is stored in ArrayList&lt; HashMap&lt; String, String>>.</p> <p>MainActivity.java</p> <pre><code>public class MainActivity extends AppCompatActivity { ListView listView; @Ove...
3
1,936
Change props of external component dynamically
<p>I'm new to VueJS and unfortunately I can't figure out how to change the <code>:leftImage</code> and <code>:rightImage</code> props of this external component <a href="https://www.npmjs.com/package/vue-compare-two-images-component/v/1.0.4" rel="nofollow noreferrer">vue-compare-two-images-component</a>. It's working t...
3
1,066
New Activity not starting on click event?
<p>I hope you are doing well, I ma having a problem, I am trying to clikc a button in my main activity and move to an other activity, but it is not working, I see that the layout changes but does not take me to where I want, it give me an empty screen, here is my MainActivity : </p> <pre><code>public class MainActivit...
3
2,858
How to compare two Web Service Descriptions (wsdl)?
<p>I builds a file <code>Service.dll</code> from a Web service for use. Now, i want to auto update file <code>Service.dll</code> for time Web service changed. Current, my approach is save WSDL that is used to describe web services into <code>Service.dll</code> resource then compare WSDL in this resource with WSDL i got...
3
1,832
Order between @ControllerAdvice and custom Aspect
<h1>tl;dr</h1> <p>How can I define the order of custom aspects and the <code>@ControllerAdvice</code>?</p> <h1>Detailed description</h1> <p>I want to decorate various methods (like normal REST-Calls or a <code>@JmsListener</code>) with MDC information on controller-level.</p> <p>The idea is: I, as a developer, don't ha...
3
1,157
why sometimes UI in my pages sometimes appears sometimes does not appear?
<p>i've little problem <br/></p> <p>why sometimes UI in page.jsf, appears sometimes does not appear... <br/> and i didn't get any error in there<br/></p> <p>i'm using : <br/></p> <p>netbeans 6.9.1 <br/> JSF 2.0 <br/> primefaces 3.1.1 <br/> springframework 3.0.2 <br/> glassfish server 3.0 <br/></p> <p>i means : i ca...
3
2,619
Component doesn't receive props
<p>In my <strong>home</strong> component I read a user's name and then I check if it's valid (axios returns an user if the name is correct). If it is valid and I click the button I want to display <strong>Dashboard</strong> component. The problem is even if the name is valid Dashboard <strong>doesn't receive the props<...
3
1,025
Not work android application after connect sqlite database
<p>I am developing sample android application with connecting sqlite database. I can't see real interface it because of error displaying. Not display any thing for it and some time display also is not responded. It is not displaying any error but android device display image <a href="https://i.stack.imgur.com/aaoih.png...
3
3,022
sqlite3 in python 2.7: Comparing DB values with CSV values
<p>I have this code, it reads a csv file for the 2 first columns and appends a list from each row.</p> <pre><code> with open(self.selected_file[0], 'rb') as csv_file: itemids = [] csv_reader = csv.reader(csv_file, delimiter=',', quotechar="\"") for row in csv_...
3
1,111
Image carousel onmouseover data-slide-to
<p>I have an image carousel written using HTML and PHP. This image carousel consist of 2 parts - main carousel (bigImgCarousel) and thumbnails (mCustomScrollbar).</p> <p>The thumbnail section named "mCustomScrollbar" showing the thumbnails of the images in the carousel. When the user clicks on the thumbnail, the main ...
3
2,348
Java Buffer - Cannot send object with length bigger than 20kb
<p>I don't know why, but cannot send objects with length bigger than 20,000 bytes. I like length of buffer is lower than remaining. How can I fix that? Using Grizzly and Ambassador libraries. While sending small values everything is ok.</p> <p>System outputs</p> <ol> <li>[05:44:04 INFO]: 14480</li> <li>[05:44:04 INFO...
3
1,291
Java Array : Unable to store new values into an array
<p>I am getting battery values from a drone. I am able to display the new battery value on JLabel. However, when I am trying to store these battery values into an int array, it is only store the very first battery value on the array. The subsequent array values will only fill up with the first battery value. </p> <p>I...
3
1,195
Why is my Progress HUD not displaying as expected
<p>I'm trying to develop a 'passwordless' registration form using a QRCode. The background processing works (can authenticate user), but noting happens visually until the registration is complete and the user is redirected to the apps main ViewController, however, A progress dialog with spinner is supposed to appear ...
3
1,789
Why doesn't my text color change to white again?
<p><img src="https://i.stack.imgur.com/ov85Z.png" alt="text color"></p> <p>The picture's worth a thousand words.<br> I used a <code>JLabel</code> to create my GUI <strong>after</strong> adding the gradient background.<br> I used <code>setPaint(gr)</code> to change the color to the required gradient and then used <code...
3
1,556
Event Handler not getting triggered on Youtube Iframe Video State change
<p>I need the Carousel to stop when someone click the video to play it. As per the docs, I need to use $('.owl-carousel').trigger('stop.owl.autoplay');</p> <p>The Youtube video is embedded via iframe. I refered: <a href="https://stackoverflow.com/questions/24964232/how-to-fire-function-on-embedded-youtube-iframes-...
3
1,458
Ordering value in DataFrame based on pre-defined percentage groups
<p>I have the following sample dataframe</p> <pre><code>df = pd.DataFrame({'ID': [11, 12, 16, 19, 14, 9, 4, 13, 6, 18], 'Value': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}) </code></pre> <p>to which I add the percentage of the <code>Value</code> using </p> <pre><code>df['Percent Value'] = df.reset_index()[...
3
1,060
My css style background-color in a specific situation does not work
<p>I've coded this:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ...
3
1,580
php Ajax - Pretty URL for Dependent Dropdown search result with .htaccess
<p>It takes me a few paragraphs to explain this problem. I apologize for any inconvenience this may have caused you. I tried hard and researched a lot to solve the following problems, but so far I couldn't find solutions. </p> <p>I am working on a directory creation project (using php, mysql, ajax and jquery) and curr...
3
1,340
How do I get a summary table from a custom function to react to user input of variables?
<p>This is my first attempt at using Shiny. </p> <p>I have a simulated patient-level dataset with 4 variables: </p> <ul> <li><em>group</em>: Categorical, takes on values A, B and C. Represents 3 different treatment types that were used in the study.</li> <li><em>week</em>: Numeric variable, takes on values 1, 4, 8.Re...
3
2,016
Close the dropdown menu if the user clicks on the second dropdown link
<p>I have a navigation bar with multiple drop downs. So when I click on the first link it opens the drop down, but when I click on the second link, the first drop down doesn't close. (so I want to close the drop down menu if the user clicks on second link)</p> <p><div class="snippet" data-lang="js" data-hide="false" d...
3
2,240
Libcurl - how can you explain this behavior curl_multi_poll
<p>This is my third question about curl_multi_poll, but now I seem to have done everything according to the rules:</p> <pre><code>#include &lt;iostream&gt; #include &lt;curl.h&gt; int main() { curl_global_init(CURL_GLOBAL_ALL); CURLM* CURLM_ = curl_multi_init(); CURL* CURL_ = curl_easy_init(); cu...
3
1,399
Pandas: Replace index values(int) in column with column values (string) of another dataframe matching the index values
<p>df1</p> <pre><code> STATION NAME LAT LON LAT_rad LON_rad BEAUFORT 32.400 -80.633 0.565487 -1.407311 CONWAY HORRY COUNTY AIRPORT 33.828 -79.122 0.590410 -1.380939 HUSTON/EXECUTIVE 29.800 -95.900 0.520108 -1.673771 ELIZABETHTO...
3
1,483
Android RecyclerView Grid center items horizontally and vertically without scolling
<p>I want to display RecyclerView Grid items in the middle of the screen (Both horizontally and verically) and when the items expand, the view doesn't scroll, however it should resize the elements to fit the new available screen size. I hope this image tells what I want in a short message:</p> <p><a href="https://i.s...
3
1,071
Is there any elegant way to create irregular DatetimeIndex?
<p>Suppose that I have a list of trading dates: <code>[20180104, 20180105, 20180108, 20180109]</code>. There are two trading periods for each day: <code>[09:30, 11:30]</code> and <code>[13:00, 15:00]</code>. And I want to create a <code>pd.DatetimeIndex</code> include all trading intervals of frequency 30 minutes and c...
3
1,235
application crash when I used layout_toRightOf in android
<p><strong>Layout</strong> </p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#e6e6e6"&gt; &lt;RelativeLayout android:layout_width="fill_parent" andr...
3
2,698
NGINX 2 domains on the same IP, want to redirect both to HTTPS
<p>I have 2 domains running on my server, NGINX just proxies them to node apps. I have a certificate for one, but for the other I'm just using cloudflare to provide HTTPS. I want to ensure that when users visit either domain, they always get redirected to the HTTPS version of the domain, without a www. This is my curre...
3
1,562
how to run this bakefile (.bkl)
<p>I have the following bakefile (WinSparkle.bkl)</p> <pre><code>toolsets = vs2008 vs2010 vs2012 vs2013; if ( $toolset == vs2008 ) SUFFIX = ""; if ( $toolset == vs2010 ) SUFFIX = "-2010"; if ( $toolset == vs2012 ) SUFFIX = "-2012"; if ( $toolset == vs2013 ) SUFFIX = "-2013"; vs2008.solutionfile = Win...
3
1,836
How to use groupby + transform instead of pipe?
<p>Let's say I have a dataframe like this</p> <pre><code>import pandas as pd from scipy import stats df = pd.DataFrame( { 'group': list('abaab'), 'val1': range(5), 'val2': range(2, 7), 'val3': range(4, 9) } ) group val1 val2 val3 0 a 0 2 4 1 b 1 ...
3
1,440
How can i solve the problem from the book road to react at page 78 ? I keep getting undefine for one of the methods in the table component
<pre><code>import React, { Component } from 'react'; import './App.css'; const list = [ { title: 'React', url: 'https://facebook.github.io/react/', author: 'Jordan Walke', num_comments: 3, points: 4, objectID: 0, }, { title: 'Redux', url: 'https://github....
3
1,324
HERE-maps Not allowed to start service Intent
<p>I am building navigation app using HERE-Maps and <a href="https://github.com/heremaps/here-android-sdk-examples/tree/master/positioning" rel="nofollow noreferrer">this Github</a> example, I replicated most of the code, I created new credentials for my app and followed steps written in documentation. But my code is c...
3
6,692
Triangles and Cubic Polynomials?
<p>Given 2 cubic equations of the form (A∗X^3+B∗X^2+C∗X) find out how many obtuse triangles could be formed from the roots of the 2 equations.</p> <p>Note that only positive roots could be a triangle side, so any triangle should be formed of 333 positive roots (sides).</p> <p>Input Constraints:</p> <p>1≤T≤10^6</p> ...
3
1,160
Multiple navbar configuration?
<p>I'm new to css and i'm doing a simple project, I have put 2 navbars in my website. First navbar is the default one. The second one passes on top of that when I click a button in the 1st navbar. Due to poor configuration of the css file I have overridden the below one. Some links are not working (login link). How do ...
3
5,591
HandleSubmit in Redux Form & React Native - No Values Print Out
<p>I'm having a problem with Redux Form when I try to <code>handleSubmit</code>, nothing prints out in the console.</p> <p>Here is my code:</p> <pre><code>const renderTextInput = field =&gt; { const { meta: { touched, error }, label, secureTextEntry, maxLength, keyboardType, placeholder, ...
3
1,470
Optimisation Multiple Constraints - Using CVXOPT
<p>I am trying to solve a linear algebra problem: an optimisation problem and I am using CVXOPT. I've split the problem into 3 components</p> <p>In its simplest form, The general formulation for CVXOPT is</p> <p>Minimize 1/2xTPx+qTx</p> <p>subject to Gx≤h</p> <p>and Ax=b.</p> <p><strong>1st problem component</strong> F...
3
1,175
You are given a list of names and a list of email addresses. How would you automatically assign the 'best' email?
<p>I am having a bit of trouble in terms of runtime for an algorithm that matches names with the most likely email address. The function itself works well (in that it pairs the name and email address correctly), but the runtime is so grand that it is difficult to implement on large data sets. I am a beginner at coding ...
3
1,449
can not retrieve property of object from an objectID passed by html form
<p>I am using the mean stack (mongo/mongoose, ember, angular, node).</p> <p>The database includes 2 schemas</p> <pre><code>var ChildSchema = new Schema({ childName: { type: String, required: true, trim: true } }); var ParentSchema = new Schema({ parentName: { type: Stri...
3
1,795
need some advice in threading
<p>I have an app which can download images from a website, </p> <p>it runs perfectly, but there is only one thing that annoys me, it is CPU intensive.</p> <p>here is my code, could anyone give any advice how to handle this?</p> <p>thank you so much!</p> <p>Task.java</p> <pre><code>public class Task implements Runn...
3
3,966
Is there any way to clear displayed data on listview that receive from php under OnItemSelectedListener?
<p>I am doing an Android APP that display data (receive from php) according by day (I have a spinner for that).</p> <p>Now when I select second day, the data of first day will keep, is that anyway to clear that before display second day data ?</p> <p>Example:</p> <pre><code>=When I click first day= [Spinner] - day ...
3
2,216
Optimise query (Indexing, EXPLAIN) Mysql
<p>Based on an advise from another developer here on stackoverflow, I have updated my query as below, but I still need to optimise it further. Can someone guide my on how best I can apply indexing to the query.</p> <p>See Query Below:</p> <pre><code>SELECT a.id, a.user_unique_id, a.loan_location, a.ippis, a....
3
1,483
How to use NestedScrollView into CollapsingToolbarLayout on Android
<p>In my application I should use <code>NestedScrollView</code> into <code>CollapsingToolbarLayout</code>.<br> In this <code>NestedScrollView</code> I show many views and data but not scrolled in <code>NestedScrollView</code> and not show all of views!<br></p> <p><strong>My XML codes:</strong></p> <pre><code> &lt;...
3
13,892
cannot fetch data from already created sqlite database in android studio.logcat shows the successfull opening of database.but can't fetch data
<p>i created a database "dbase" in SQLiteManager and saved in assets folder.the DB contain 1 table"comments" with id(primary ket,integer,autoincrement)ane comment (text) fields.Logcat shows the error:</p> <p>My activity class is:</p> <pre><code>import android.app.Activity; import android.database.Cursor; import andro...
3
1,740
reverse proxy on AppEngine (restlet 2.1) : 404 - client protocol missing
<p>Trying to get Restlet going on AppEngine to use as a reverse proxy for a 3rd party json/xml service.</p> <ul> <li>AppEngine version 1.5.5 </li> <li>Restlet GAE edition 2.1RC1</li> </ul> <p>I setup Restlet in my web.xml like this :</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;​RestletServlet&lt;/s​ervlet-nam...
3
1,779
Trouble with HTML Contact Form PHP Not Sending Emails to Gmail
<p>I've created a simple contact form that should be sending emails via php to me however, when I attempt to send/submit the form I continue to get the &quot;message failed&quot; output and have confirmed nothing is coming to my gmail inbox.</p> <p>I have gone into my host server (heartland) and tried updating the Php....
3
1,463
Super slow user provisioning with errors in the log of Azure AD Connect Provisioning Agent
<p>I am having trouble with the Azure AD Connect Provisioning Agent recently. The user provisioning can take 2 hours and the status goes to Quarantine sometimes because of timeout. Eventually the sync succeeds but I would like to find out why it takes so long and the causes of errors.</p> <p>In the log of the agent (C:...
3
5,299
trying to create a directory in my bitnami odoo 9 stack through filezilla on my google cloud compute engine but getting a permission denied message
<p>Hi All on stackoverflow,</p> <p>I have been trying to figure out how to create a directory in my bitnami odoo 9 stack through filezilla on my google cloud compute engine but getting a permission denied message when trying to create a new directory in location:</p> <p>/opt/bitnami/apps/odoo/lib/odoo-9.0rc20160209-p...
3
1,381
apache2 redirect not adding trailing /
<p>Okay so I am having a little difficulty with my site, I created a sub-domain and it points to the correct folder /var/www/html/pathfinder/ but it does not create the trailing slash www.example.com </p> <p>that causes an issue because then it attempts to load css files at www.example.comcss/file.css </p> <p>I am us...
3
1,669
add banner with mobfox
<p>In my xml i have write this code and i have use the publisher id test :</p> <pre><code>&lt;LinearLayout android:id="@+id/LinearLayout2" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;Button android:id="@+id/b1" ...
3
1,210
Background Slider
<p>I want a background slider behind my menu and logo, but I don't get it.</p> <p>I see no pictures of the slider so I hope someone can help me with this problem</p> <p>So I hope someone's can help me</p> <pre><code>&lt;link href='http://fonts.googleapis.com/css?family=Lato:400,900italic,700|Prata|Qwigley' rel='styl...
3
1,098
Every time i try to install a new package i get gyp err syntax error
<p>I was installing firebase, before this I tried installing yarn add react-router-dom, this same thing happened I had to create new project and copy all files again to new project , one thing I noticed was this happened after adding the project to github, before I added the project to the github repository, if i inst...
3
2,499
TensorFlow CNN get error - no attribute Droupout
<p>The experiment is carried out on Windows 10 Pro Intel (R) Core (TM) i5-4590 CPU @ 3.3 GHz, based on the platform of Anaconda with Spyder Python 3.7.150, it is programming through the Python language and Python library function.</p> <p>I get the error message:</p> <blockquote> <p>File "C:/Users/HSIPL/Desktop/Face...
3
4,038
Not able to send image via POST api
<p>I have a requirement where I need to select an image from phone library/camera and upload to server via POST api. I am able to load the image from the library but getting an error while sending the image using the post request</p> <p>My HTML Code:</p> <pre><code>&lt;p (click)=&quot;selectImage()&quot;&gt;Add an atta...
3
1,060
The pygame code and the error is mentioned below:
<p>Here is a source code of my <strong>space-arcade pygame</strong>. It's a quite simple one and doesn't shoots bullets. Only that we can move the player with the obstacles being moved as well. However, <strong>the limit for the spaceship (player) to move in the screen has been set from x = 0 to x = 765 and from y = 20...
3
1,397
Build error occurred | reason: certificate has expired, when deploying on netlify
<p>I am deploying my site on netlify but facing this error so long.</p> <p>Could it be API error, SSL certificate error or Any build error? <strong>I am not getting the exact issue arises here.</strong></p> <p>Here is error logs</p> <pre><code>1:55:08 PM: 2. Build command from Netlify app ...
3
1,139
Form1 is being captured even after hiding it
<p>I'm developing a snipping tool application using c#. When the capture button in Form1 is clicked, I'm hiding Form1 and taking screenshot of background screen, but the problem is in the screenshot the Form1 window is showing even though I'm executing this.Hide(); statement first and then taking the screenshot. Please...
3
4,258
How use OnClickListener in Fragments
<p>This is my code. I'm still learning android studio. I want to show a toast when the button is clicked but when I run the application and click the button it does nothing. (this is a Fragment). Does anyone know how to fix this? I tried putting "onClick" method in the xml(<code>android:onClick="onClick"</code>) then t...
3
1,137
How to implement coffeescript to work after a 401 ajaxerror?
<p>I'm building a reddit/angellist clone. I want to be able to upvote and downvote without the page reloading. I've the ajax setup via the votescontroller:</p> <pre><code>respond_to do |format| format.html { redirect_to request.referer } format.js end </code></pre> <p>and then in the upvote.js.erb:</p> <pre>...
3
1,056
Clipping path point animation on scroll not working in Safari
<p>I am currently working on a project where the background of the site has 3 masked images, and when the user scrolls, the points of these images move with the scroll. I can get it working well in Chrome, but just can't get it to play nice with any other browser. Due to time constraints, I am currently only required t...
3
2,278
Getting EXC_BAD_ACCESS for recursive function with return type - Objective-C
<p>I have following scenario:</p> <p>5 UIWebViews - 1 for question and other 4 are for options. Each load html string retrieved from local database. But before loading that html string, I'm customizing it, in order to have custom css, math formula,applying base64 encoded images, etc. as follows :</p> <pre><code>[self...
3
1,290
How do you make a checkbox checked by default in Kivy?
<p>I have created two checkboxes in a .KV file (one for default settings and one for custom keywords) and I am trying to get the default box to be checked when the GUI opens this window initially. I am able to get the default value output to be set correctly however, I can't get the actual checkbox to visually show it ...
3
3,052
can liferay read schema with public synonym
<p>I am setting up a new Liferay v6.2 in our development server. We don't have full access to our database so we asked our DB admin to create new schema for us. She told she couldn't create a new one due to space limitation. We have an existing schema that we use for our old liferay portal version (no longer being used...
3
1,625
I have a Point-in-Time SQL insert prodecure that requires some speed up
<p>I have two SQL insert procedures in Azure Data Factory. First one is to insert changes and the second is for inserting new rows in case they are found to be not existing in the new CSV files. Especially the second insert procedure is too slow of a process.</p> <p>As background, there are around 50-100 thousand dail...
3
2,172
Error : [kapt] java.lang.IllegalArgumentException: @androidx.room.ColumnInfo does not define an element defaultValue()
<p>My gradle contain these dependencies</p> <pre><code>implementation 'androidx.room:room-runtime:2.1.0' annotationProcessor 'androidx.room:room-compiler:2.1.0' kapt "androidx.room:room-compiler:2.2.0-alpha01" </code></pre> <p>And My model class is</p> <pre><code> @Entity(tableName = "SubjectDetail") public c...
3
1,600
If loops on Excel for multiple options
<p>I have the below code set up to draft an email based on the value in column B which works fine. (If there is any text in column A it will run this) </p> <p>Column B could have any of 25 options which are on the <code>Statuses</code> worksheet also, alongside the relevant email address relating to each option which ...
3
1,322
Sending Android speech recognition text to another activity
<p>I'm currently try to use speech recognition in my android app. Essentially, I have a main activity, a loading activity, and a text display activity. When the button in main activity is pressed the microphone is turned on and then it transitions to the loading activity where it shows a gif with bouncing dots indicate...
3
1,066
magento duplicate block twice in page sales order view
<p>I have an installation of <code>magento 1.9.2.1</code>, I have a duplicate block rendering in some pages this is the code used in my custom theme <code>sales.xml</code>:</p> <pre><code>&lt;sales_order_view translate="label"&gt; &lt;label&gt;Customer My Account Order View&lt;/label&gt; &lt;update handle="cus...
3
1,368