title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
I want to pop a modal when fname already exist in DB
<p><strong>Form:</strong></p> <pre><code>&lt;form class="form-horizontal" data-toggle="validator" method="post" role="form" id="enquiryForm"&gt; &lt;div class="form-group"&gt; &lt;label class="col-lg-2 control-label"&gt;Full Name :&lt;/label&gt; &lt;div class="col-lg-8"&gt; &lt;input type="text...
2
2,226
conda python 3.7 opencv import error libgnutls.so.30: undefined symbol: mpn_add_1, version HOGWEED_4
<p>I am facing problem while getting opencv to work with python 3.7 in Conda on Ubuntu 20.04.</p> <p>I get the following error when I try to import cv2 in python:</p> <pre><code>$ python Python 3.7.8 | packaged by conda-forge | (default, Jul 23 2020, 03:54:19) [GCC 7.5.0] on linux Type &quot;help&quot;, &quot;copyrigh...
2
1,036
What is a low impact way of checking if the internet is really slow in python?
<p>I have a python script which I run as a background process on my mac every 10 minutes. Basically, it downloads the latest image from a server and depending on my internet speed, it downloads a hi-res (20mb on 5Mb/s connections or better) or low-res (6mb on 5 to 1 Mb/s connections) version of the image. </p> <p>Thus...
2
1,041
append data to an existing csv file with data
<p>Below is the data i already have in my csv</p> <pre><code>ServerName Start Time End Time localhost 1599222660 1599222660 </code></pre> <p>now i have below data which needs to be added in this existing data</p> <pre><code>pl_AVERAGE pl_MAX pl_MIN rta_AVERAGE rta_MAX rta_MIN 0 0 0 0....
2
1,071
SparkSQL error: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
<p>I have installed Spark in windows machine(<strong>standalone</strong>) and trying to connect HDP 2.6 hive metastore which is available in VM using Spark app.</p> <p>I have used <strong>NAT</strong> as Network Adapter for <strong>HDP 2.6</strong> VM. While I am trying to connect hive metastore (<strong>HDP 2.6 VM</s...
2
2,180
Hibernate's session.connection Error: "Too many users"
<p>I am developing a Java web application using Hibernate, but there is a part of it where I want to use JDBC because I am creating look-up tables dynamically.</p> <p>After a few minutes of using my web app I get this error: </p> <blockquote> <p>com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data...
2
2,251
Getting error in Hartl's tutorial running "bundle exec rspec spec/requests/static_pages_spec.rb"
<p>I'm learning Ruby from Michael Hartl's tutorial. I'm following the steps one by one, but I can't get passed this one. When I input "bundle exec rspec spec/requests/static_pages_spec.rb" I get a very long error response as opposed to a simple "1 example, 0 failures". I changed the necessary code in the static pages d...
2
1,841
Maven Shading Multi-Module Aggregation and Inheritance
<h2>Context</h2> <p>I have an IntelliJ project with multiple modules. I am using the maven-shade-plugin to jar with dependencies whilst reducing jar size. The project structure is as follows;</p> <ul> <li>top-level parent (pom) (aggregates api and world-teleport) <ul> <li>api (inherits parent)</li> <li>world-telepor...
2
6,380
How to Use get_absolute_url() with a foreign key object in Django template
<p>Am relatively new to django and I have searched for this problem but couldn't find a solution. Forgive me if the solution is obvious but I just can't seem to get it right.</p> <p>So, this is the issue. I have two models <strong>Parishioner</strong> and <strong>Community</strong>. Parishioner has a many-to-one relat...
2
1,233
Flatten json documents in Java
<p>I am a novice in Java and I am looking for a way to flatten json documents.</p> <p>I have tried Object mapper but without success. I found this link but the results is not what I need :<a href="https://github.com/wnameless/json-flattener" rel="nofollow noreferrer">https://github.com/wnameless/json-flattener</a></p>...
2
1,345
Find the shortest path sum in a matrix. Is Dijkstra not optimal for this case?
<p>I am trying to solve <a href="https://projecteuler.net/problem=83" rel="nofollow">the following problem from project euler</a> (please take a look at description and the example in the link, but here is the short explanation).</p> <blockquote> <p>in the matrix, find the minimal path sum from the top left to the ...
2
1,620
Python/Kivy : `up` and `down` Keyboard interface on Tree View in kivy
<p>I want to use <code>up</code> and <code>down</code> Keyboard interface on <code>Tree View</code>.When i click on <code>name</code> then <code>Tree View</code> popup shows And <code>up</code>,<code>down</code> key working good.But i type something into <code>TextInput</code> for filter <code>row</code> after use <cod...
2
3,359
Spring boot oath2 Invalid access token
<p>I am trying a very simple example:</p> <pre><code>@Configuration @EnableAuthorizationServer public class AuthorizationServer extends AuthorizationServerConfigurerAdapter { @Override public void configure(ClientDetailsServiceConfigurer clients) throws Exception { clients.inMemory() ...
2
1,368
repeating animation using java.swingTimer
<p>I am writing the code of Game bean machine (Galton box) using animated graphics. I am using swing.Timer to make the red ball move, by letting the Timer object take an ActionListener.</p> <p>Here is the output: The red ball here is moving randomly : <a href="http://imgur.com/J9Xq0t5&amp;HIv1udp" rel="nofollow">http...
2
2,490
DynamicListView items disappear on drag & drop
<p>I followed this google tutorial and implemented a dynamic ListView for drag and drop <a href="https://www.youtube.com/watch?v=_BZIvjMgH-Q" rel="nofollow">https://www.youtube.com/watch?v=_BZIvjMgH-Q</a></p> <pre><code>listView = (DynamicListView) findViewById(R.id.listview); adapter = new StableArrayAdapter(this, R....
2
1,403
RecyclerView changes its scroll position when inside a ConstraintLayout
<p>I encountered an issue with <code>RecyclerView</code> when it is a child of a <code>ConstraintLayout</code>. Originally, the <code>RecyclerView</code> was somewhere deep in the view hierarchy of <code>Relative-</code>, <code>Frame-</code> and <code>LinearLeayout</code>s, and everything worked well until I decided to...
2
1,784
BatchWrite in AWS dynamo db skipping some items
<p>I am trying to write Items to AWS dynamo db using node SDK. The problem I am facing is that when I write batch items to AWS in <strong>parallel</strong> using threads, some of the items are not written to database. The number of items are written are random. For instance, If I run my code 3 times, at one time it wou...
2
1,724
Printing a pdf of more than 5000 pages takes longtime using Prawn pdf gem
<p>I am using prawn pdf gem to print pdf. </p> <p>I am formatting the data in to tables and then printing it to the pdf. I have around 5000 pages (about 50000 entries) to print and it takes forever. For small number of pages its quick ... Is there any way I can improve the speed of printing. </p> <p>Also, printing wi...
2
1,366
Build a slider based on the data returned from API call
<p>Need to build a slider (carousel) which should be based on the data returned from the API call. There are 3 values which I need to pull. <code>image</code>, <code>title</code> and <code>description</code>.</p> <p>It must be a <code>picture</code>, <code>heading</code>, and <code>description</code> (on each slide, p...
2
1,181
Problem with Html.Action call to action with [HttpGet] attribute
<p>I have just encountered a strange problem. I have fixed it, but I am hoping that you may be able to help me better understand what actually went wrong. I'll start with an explanation of what happened. The problem concerns a simple MVC3 RC1 app.</p> <p>In my app's master page there is a call to an action on a contro...
2
1,114
Exception occurs in Async task
<p>I am getting this exception. When, i'm trying to run my program. In my program i am executing an <code>AsyncTask</code> For each download and upload tasks, I have created new <code>AsyncTask</code> object and tried to run it in background. I tried to find my mistake. But i can't find where i am going wrong. Below ar...
2
10,844
Meteor autoform form is undefined
<p>I am trying to use a quickform to do method-update but whenever I type and submit the following errors appear in the console.</p> <pre><code>Uncaught TypeError: Cannot read property 'validation' of undefined Uncaught TypeError: Cannot read property 'autosave' of undefined Uncaught TypeError: Cannot read property 't...
2
2,509
Flutter: How to hide TableRow if the value is null or there is no value
<p>I have 2 JSON cases as follows</p> <p>Case 1: one value of "country" is null</p> <pre><code>[ { "id": 1, "continent": "North America", "country": "United States" }, { "id": 2, "continent": "Europe", "country": "Germany" }, { "id": 3, "continent": "Asia", "country": nul...
2
1,108
how to get required error and email pattern separately angular 4?
<p>I am implementing angular 4 reactive form validations. I have this layout of form</p> <p><a href="https://i.stack.imgur.com/k0i3v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k0i3v.png" alt="enter image description here"></a></p> <p>Here is my app.component.ts code </p> <pre><code>import { C...
2
1,283
Angular: How to style dynamically generated html?
<p>I have a generated element <code>sub</code> from this line of code with a <code>[sub]</code> property</p> <pre class="lang-html prettyprint-override"><code> &lt;li [displayMode]="displayMode" template-menu-item style="cursor: pointer" [routerLink]="['/request/checkoutReview']" icon="fa-shopping-cart" name="Che...
2
1,183
cakephp 3 upload photo with Josegonzalez/Upload
<p>I want to have some photos for my products and tried to use :</p> <pre><code>Josegonzalez/Upload.Upload </code></pre> <p>but I have some problem with this . The field that I specified for image is became required .</p> <p>and this is the error I get when leave the field empty :</p> <blockquote> <p>This field c...
2
1,635
Angular JS and Bootstrap - Setting multiple sub menus within submenus
<p>Let me start by saying I am very much in the beginning stages of learning to use Angular. I've done multiple searches, and seen multiple examples of setting up a menu with sub menus, but have found none for me to look at that have sub menus within sub menus.</p> <p>I'm also, as you may have noticed, not very good a...
2
5,773
get key position in onBindViewHolder firebase database
<p>I want to get key position in database.</p> <p>getting error: <code>getRef(position) : Cannot resolve method 'getRef(int)'</code> on</p> <pre><code>final String post_key = getRef(position).getKey(); </code></pre> <p>this is my code CustomPostAdapter</p> <pre><code>public class CustomPostAdapter extends RecyclerV...
2
2,458
Angular2 Material: Md-Menu opens below router outlet
<p>When using md-menu with @angular/material, said menu opens below my router outlet no matter how i stack the components. What am i missing here?</p> <p><strong>app.modules.ts</strong></p> <pre><code>import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsMo...
2
1,343
Runnable JAR file bad encoding with sockets
<p>I am currently trying to run a socket server that needs to receive messages with french characters such as "àéèîï" etc.</p> <p>So, here's the deal : when I execute my socket server in eclipse, the messages that I receive have the right encoding because I can see the accents in the console. But when I export my sock...
2
2,339
How to insert an element into a previously created element in xslt?
<p>I have several records from the DB for a corresponding record in a file.</p> <p>Example Record no. XML</p> <ol> <li><code>&lt;XML_FILE_HEADER file_name="sample.txt" /&gt;</code> </li> <li><code>&lt;XML_RECORD record_number="1" name="John Doe" Age="21"/&gt;</code> </li> <li><code>&lt;XML_RECORD record_number="2"...
2
1,413
RangeError (index): Invalid value: Valid value range is empty: 1
<p>after whole day of trying to solve this myself I had to come and ask for help.</p> <p>I'm trying to build this ListView.builder, it has fixed amount of itemCount. And its building Widgets using data retrieved from locally stored JSON file. </p> <p>I'm using Provider to pass that data around. The problem is, on app...
2
2,273
Conditionally hide button in cell of KendoUIGrid
<p>I have a Kendo UI Grid in which one column has a button, but I musgt hide the button depending on the row which the button is in (in this case first row and last row). </p> <p>How can I do that?</p> <p>My code is below.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"/&g...
2
1,705
Altering the class values or styles of cells in ui-grid
<p>I have several unique cases inside ui-grid where the cells of certain table contents need additional class, or even style rules assigned, so the appearance for these cells stands out compared to others. Looking through the official ui-grid documentation I found that it could be done with cellTemplate, but I couldn't...
2
1,630
"Meteor.userId can only be invoked in method calls" in Meteor Method test
<p>I'm learning Meteor following basic "Todo tutorial" from official website. I have problem with the "Testing" step. I have basic test of one Method, it looks like this:</p> <pre><code>if (Meteor.isServer) { describe('Tasks', () =&gt; { describe('methods', () =&gt; { const userId = Random.id()...
2
1,272
Problems with parallax header in react native
<p>Trying to write a parallax scroll view in react native. First off, this is what I have so far:</p> <p><a href="https://i.stack.imgur.com/Y58AU.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y58AU.gif" alt="enter image description here"></a></p> <p>The only problem, as you can see in the GIF abo...
2
1,254
How to check username and password match
<p>I'm trying to check if a users entered username and password matches an entry from the database using PDO, but for some reason cannot seem to get it working. </p> <p>The database table is called user_info and the rows from which i'm trying to grab the username and password from are <code>username</code> and <code>p...
2
1,039
What is the encrypted RSA PEM format from OpenSSL `genrsa`?
<p>I have some encrypted private keys and passphrases that I would like to load into .NET without OpenSSL, but I am having trouble finding the format and specification for them.</p> <p>I can parse and decode the binary data from PEM, and originally I was thinking I would get PKCS#8, but that seems to not be the case.<...
2
1,587
Angular Breadcrumb
<p>I am trying to implement breadcrumb in my personal project(Angular 7). But I am unable to implement it as expected. I have found lot of implementation but none of them worked for me.<br /></p> <p>My requirement when i enter the URL : <a href="http://localhost:4200/personal-projects/2/backlog" rel="nofollow noreferr...
2
1,845
php countdown server side
<p>i have a question about a javascript/php cron issue. well its not an issue per se but in my case it is. i have the below javascript that sets a cookie and counts down till the end of that cookie's time. in my case its 10 minutes. I also have a cron file that runs every 10 minutes. I would like to synchronize the cou...
2
1,344
Why can't I interrupt this particular boost::thread?
<p>I have two tests for interrupting a boost::thread. One works, the other doesn't. Can anyone tell me why?</p> <p><strong>Working:</strong></p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/thread.hpp&gt; #include &lt;boost/chrono.hpp&gt; #include &lt;unistd.h&gt; using namespace s...
2
1,313
C# MVC Export from DB to excel . Merge cells
<p>I know there are many topics on the issue, but my requirements are more specific.. I'm using EF to select records into my project, and then export them to Excel. I've used <a href="https://stackoverflow.com/questions/43136185/asp-net-core-return-excel-file-xlsx-directly-in-one-call-to-the-server-on-the?fireglass_rsn...
2
1,790
Error inflating class android.webkit.WebView
<p>I'm facing an unusual issue where i'm not able to use webview anywhere in my app. It is giving following exception.</p> <pre><code> Caused by: android.view.InflateException: Binary XML file line #35: Binary XML file line #35: Error inflating class android.webkit.WebView Caused by: android.view.InflateExcepti...
2
4,015
Compare many text files that contain duplicate "stubs" from the previous and next file and remove duplicate text automatically
<p>I have a large number of text files (1000+) each containing an article from an academic journal. Unfortunately each article's file also contains a "stub" from the end of the previous article (at the beginning) and from the beginning of the next article (at the end). </p> <p>I need to remove these stubs in preparati...
2
1,111
why a client side of tcp connection abruptly sends 5 TCP RST packets at once?
<p>the setup is the following:</p> <ul> <li>192.168.74.254 is a win 2008 server</li> <li>192.168.74.81 is an android client device (Lenovo N300 AiO)</li> </ul> <p>both interconnected by a HP V1910 switch and nothing more. </p> <p>The client device connects to the server, reads some data and stays connected to it, w...
2
1,921
mysql query taking more than 30 seconds
<p>Below is the output of "show full processlist" on my-sql command line. this query calculates the users total upload and download bandwidth for specified period of time. (the database is from freeradius). How can i make the query faster. [ Memory:150G , processr:8 centos 6.8]</p> <pre><code>15260415|radiusremote|...
2
3,493
PHP - How to access a deep array's contents, building the path to it dynamically
<p>I am trying to build a hierarchical array in PHP, from relational database contents that are stored using a closure table. For a given result, I will have the full path to the <code>LEAF</code> node, the below would look like my result set.</p> <p>1~root~the root node</p> <p>1~root~the root node>>>2~category1~Fir...
2
1,780
customvalidator for client side validation not working
<p>We have a form used by a number of our customers where someone can register on their web site. It's customizable in that the owner of the form can set a field to be shown or hidden on the form and also required. However, some fields if shown, require that another field be set for the form to be valid. So the vali...
2
1,115
Convert async function to RxJs Observable
<p>To prevent writing a certain amount of code, such as this example:</p> <pre class="lang-js prettyprint-override"><code> ... public getDataSet() : Observable&lt;any&gt; { return new Observable(observer =&gt; { if (this.dataset === undefined) { this.get().subscribe(data =...
2
1,027
Setting UTF-8 in MariaDB server ignores character_set_system
<p>I have the following <code>Dockerfile</code> definition file for a MariaDB server:</p> <pre class="lang-yaml prettyprint-override"><code>version: &quot;3.8&quot; ... services: database: command: [&quot;mysqld&quot;, &quot;--character-set-server=utf8mb4&quot;, &quot;--collation-server=utf8mb4_unicode_ci&quot;...
2
1,229
How to run RScript using crontab in Mac OSX
<p>I have searched around on how to do this on here and none have really solved my problem. Partially because i do not understand what is going on....unfortunately</p> <p>I have an Rscript I am trying to schedule to run every day called: <code>JASON.r</code></p> <p>the code inside the script is the following:</p> <p...
2
4,122
Android ListView row color
<p>I'm trying to change the row color of my listView in customAdapter. There's an array of integer that include 0 and 1, I'm trying to read from the array and change the color of rows like this:</p> <p>0 = white</p> <p>1 = yellow</p> <p>but it shows a yellow color in all rows. This is my CustomAdapter:</p> <pre><co...
2
1,288
Proper syntax for entry in Hiera yaml file
<p>The goal is to supply a default value for a parameter being passed to a defined resource type. I have successfully supplied defaults for class parameters using the automatic defaulting procedure that uses Hiera, but this mechanism does not work for defined types.</p> <p>Here is how I call Hiera in my defined type: ...
2
1,197
import data from external workbook that has matching row and column id
<p>This is my first time posting here</p> <p>I have an <strong>error</strong>: </p> <p><code>error 91 Object variable or With block variable not set</code></p> <p>on the line <code>r2Val = activSheet.Columns(1).Find</code>...</p> <p>I have been doing this for a month now and got stuck to the import part</p> <p>Thi...
2
1,921
KeyError: 'Message' in Jupyter Notebook
<p>I am new to machine learning and I am facing this issue.</p> <p>I have uploaded dataset with two columns and headings 'Message' and 'Priority'.</p> <p>when I run this command,I get this:</p> <pre><code>'df.columns' 'Index(['Message\tPriority'], dtype='object')' </code></pre> <p>But, when I run this command, I ...
2
1,109
Next.js - Typescript interface props pass down to component?
<p>I have an interface with defined props for my API data. The interface works if I am using the data directly inside the page where the interface usage is defined. But once I pass down the data to a component I get: <code>Binding element 'site' implicitly has an 'any' type.</code></p> <p>Basically, I want to know how ...
2
2,690
Objective-C memory management, xml parser and other non-trivial examples
<p>I know the basic principles about memory management (retain count, autorelease pools etc) in Cocoa, but once you go past simple retain/release, it's getting a bit more confusing. I couldn't find decent answers for those, as most tutorials cover simple scenarios. I would like to ask about best practices in how to wri...
2
2,335
Get live stats in XML with Wowza version 4
<p>I have this PHP script that gets stats from the Wowza Streaming Server version 4.</p> <p>The PHP script is working but I am only interested in the stats for the Live Streams and not the VOD Streams. How can my PHP script be improved my PHP script to it only gets the Live Streams?</p> <p>I could not find any XML va...
2
1,093
listview not updating in broadcast receiver onReceive
<p>as a test, I'm trying to set an icon when a text gets sent, but the icon isn't changing with the status. I put a log in the same call and the log is printing but the icon still doesn't update.</p> <p>I register the broadcast receivers in onResume:</p> <pre><code>smsSentReceiver = new BroadcastReceiver() { @Ov...
2
2,958
Trying to use JetBrains CLion, but Cmake - c++ compiler broken after cygwin install
<p>I have been trying to get JetBrains CLion IDE working, but I am running into a problem with Cmake and none of my research online has been helpful. I installed cygwin with the necessary packages (as stated <a href="https://blog.jetbrains.com/clion/2014/09/clion-answers-frequently-asked-questions/" rel="nofollow noref...
2
1,505
How to close a list menu on mouseout using jQuery
<p>I have the following scenario:</p> <pre><code>&lt;div class="dropMenuWrapper_content"&gt; &lt;img src="images/dropMenu.gif" class="menu_head_content" /&gt; &lt;ul class="menu_body_content scroll-pane" id="SmallDropDown"&gt; &lt;li&gt;&lt;a class="modalWindow cboxElement" href="http://mysite.com/service/0.aspx"&gt...
2
1,298
Unable to Compile class for JSP. Tomcat 7.0.82
<p>I have created a <code>war</code> file from a Java web project within Eclipse. It very rightly created a <code>classes</code> and <code>lib</code> folders in <code>WEB-INF</code> directory containing compiled sources and referenced libraries. When I deployed this project on Apache Tomcat 7.0.82, it runs fine for mos...
2
1,255
Can't connect to sql server managed instance from azure databricks
<p>I am trying to connect to an Azure Sql managed instance from databricks. I am using Scala to connect to it. The code I have copied from the <a href="https://docs.azuredatabricks.net/spark/latest/data-sources/sql-databases.html" rel="nofollow noreferrer">Microsoft web site</a></p> <p>My actual scala code : (I have c...
2
2,385
MOSS 2007, C#, Web Part - Log Retrievel using LinkButtons
<p>Technology: SharePoint/MOSS 2007 -- IDE: Visual Studio 2008 -- Language: C#</p> <p>I have created a SharePoint/MOSS 2007 web part that displays a list of log files. The log files are rendered on screen as LinkButtons. The LinkButtons are within a DataTable that is set as the data source of a SPGridView and bound...
2
3,524
JSP getParameterValues Returns Null
<p>Im using JSTL tags and EL to get the values out of my database. I added a checkbox to the data table on the U.I for the functionality of deleting a record. The problem is the String[] in the servlet always comes out as null and I have no idea why. I even tried dummy data in the 'value' attribute on the checkbox elem...
2
1,428
when I am doing Form Validations in Struts I am Getting org.apache.commons.validator.ValidatorException
<pre><code>When I am Doing Form validations In Struts I am Getting Exception: </code></pre> <p>org.apache.commons.validator.ValidatorException: No such validation method:<br> org.apache.struts.validator.FieldChecks.validateRequired<br> (java.lang.Object, org.apache.commons.validator.ValidatorActi...
2
1,183
Store pointers of different type in one array
<p>I want to store pointers to objects of different classes in one data-structure ( such as array, HashMap ... ). According to <a href="https://stackoverflow.com/questions/9526226/storing-multi-type-data-in-untyped-memory-space">this answer</a> I came out to following solution using untyped pointer <code>void*</code> a...
2
1,468
I'm getting a warning message in R I don't understand
<p>** When I train my SVM models I get this warning message: </p> <p>Warning message: In .local(x, ...): Variable(s) `' constant. Cannot scale data.</p> <p>Could someone shine some light on this warning? Is this something I should be concerned with? I was thinking the warning maybe because of my dummy variable codin...
2
1,317
nested while loop comparing two files, outside loop stops after one iteration, need to compare every line of files
<p>Firstly I apologise if my formatting here is incorrect, I am very new to writing scripts (3 days) and this is my first post on this site.</p> <p>I have two files which are tab separated, <code>File a</code> contains 14 columns, and <code>File b</code> contains 8 columns.</p> <p>One column in <code>File b</code> ha...
2
1,180
Update latitude and longitude overview_path google maps
<p>Hope someone can help me with a little problem I have with google maps API v3.</p> <p>I am developing a web page where you can select an origin and destination, and it calculates the route, and all the latitude and longitude coordinates, and I can move the markers.</p> <p>The problem is that when I move a marker, ...
2
2,170
"Unexpected character encountered while parsing value: S. Path '', line 0, position 0."
<p>I know there are already a lot of posts about this, but I couldn't find one to fix my problem. Btw I already checked if the encoding is wrong. Also, sometimes the Exception throws and sometimes not. If it doesn't throw, &quot;amd&quot; is &quot;Nothing&quot; in the debugger.</p> <p>Here is my code to deserialize the...
2
7,389
How to send data from my website to my Arduino netshield
<p>I want to for example turn LEDs on or off via website interface, but my main problem is that whenever I search for solutions every one is doing it via making the NetShield itself as the server and host the website from it, but I want to host the website on my own pc and when I click a button that action will send so...
2
2,259
How to store SMS with smslib?
<p>I need to store SMS (when they arrive to the GSM modem) in MySQL. </p> <p>I have read the docs, but it says to use the <em>smsserver</em> and the <em>conffile</em>. Then I read that I should use <em>database.java</em>. </p> <p>Can someone guide me on this? </p> <p>I am already using the <em>ReadMessages.java</em...
2
4,376
Spring Websocket with SockJS Connection Lost Issue
<p>I'm developing a web application using spring boot, angular cli and sockjs.</p> <p>WebSocket implementation:</p> <pre><code>@Configuration @EnableWebSocketMessageBroker public class WebSocketConfig extends AbstractSecurityWebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(Stom...
2
1,179
Interpolate and animate two svg path
<p>I have two svg path curves that I want to animate. I want that in 5 seconds <code>dPathBefore</code> becomes <code>dPathNow</code> with a smooth animation transition.</p> <p>That is my code:</p> <pre><code>const dPathBefore = 'M 50 350 Q 150 0 200 250 Q 250 350 300 250 C 350 200 450 250 400 350 Z' const dPathNow =...
2
3,218
GRPC/C++ - Server reads only the first message from the bidi stream
<p>I am using gRPC with C++. And I have an async server and sync client. The rpc is of type bidirectional stream.</p> <p>Here is how I send message with client:</p> <pre><code>class ConnectionService { public: ConnectionService(std::shared_ptr&lt;Channel&gt; channel) : stub_(Connection::NewStub(channel)...
2
1,988
Serializing Face Features for recognition in DLIB
<p>I am writing a dlib code to do face recognition on 1 to 1 basis.</p> <p>I followed the code sample in <a href="http://dlib.net/dnn_face_recognition_ex.cpp.html" rel="nofollow noreferrer">dlib samples</a> and did the following:</p> <pre><code>std::vector&lt;matrix&lt;rgb_pixel&gt;&gt; faces; for (auto face : detect...
2
2,503
making a square div within a row a vertical rectangle?
<p>I have created a responsivee grid layout and its all working wonderfully, however now the last thing I need to do is to make a couple of the squares rectangular. </p> <p>The ones I need to make rectangular are the top two squares in the second column of my grid and the last two squares in the bottom row of my grid....
2
2,108
Visual Studio New project wont run tests
<p>Visual Studio 2019 is not detecting or discovering NUNit nor MSTest unit tests at all. I installed it fresh just a week ago. The MS guide here <a href="https://docs.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2019&amp;tabs=mstest" rel="nofollow noreferrer">https://docs.microsoft.c...
2
1,410
MongoDB Client throws Wait Queue Full exception
<p>I am seeing an odd issue where The .NET client for MongoDB throws a <code>The wait queue for acquiring a connection to server 127.0.0.1:27017 is full.</code> exception.</p> <p>I have a semaphore that guards any call to MongoDB, with a size of 10. Meaning, there are never more than 10 concurrent calls to Mongo.</p> <...
2
2,040
Can I write Firestore query using if else statement?
<p>I want to build a method that can accommodate all cases of my query. </p> <p>so I want to search for an event from my events collection. it can be searched based on filter whether it is free events or not, and also if it needs to search specific event type or show all events regardless of the event type.</p> <p>I ...
2
1,296
Caused by: java.lang.NoSuchMethodError: org.elasticsearch.rest.BaseRestHandler
<p>I updated "elasticsearch" from 1.3 to 1.4 by using "yum", and I see this error message show up. What do you think the reason is?</p> <pre><code>[root@www3073gk elasticsearch]# ./bin/elasticsearch Failed to configure logging... org.elasticsearch.ElasticsearchException: Failed to load logging configuration at...
2
1,074
XSLT For-Each loop to get data from enumerated tags?
<p>I've been provided an SML file where the designer (not in my company, so I have no control over this) has created some data that I need to consume; but they setup enumerated tags, so I'm having a difficult time creating a loop to read the data. </p> <p>Their code looks like </p> <pre><code> &lt;Root&gt; &lt;...
2
1,287
How to show a dialog on icon click event inside a cell in Datatable?
<p>In My datatable custom directive, I have three action icons in a cell.</p> <pre class="lang-js prettyprint-override"><code>$(document).ready(function () { var oTable = $("#elem").dataTable({ 'bJQueryUI': false, 'sScrollY': '300px', 'bScrollInfinite': true, 'bSearchable': true, 'bScrollCollapse...
2
1,540
How do I read a text file to display in richedit and show a message when this succeeds?
<p>Below is my Perl code. I need help with:</p> <ol> <li><p>how to display the output into richedit when loading a text file containing a 100 line by line name list.</p></li> <li><p>after displaying the output in richedit then a small message window (popup window) will come out and tell me "your name list was successf...
2
1,198
Xampp mysql innodb recovery failed after pc crash
<p>So it's happened to me a few times that i have this issue. I didn't realised why it's happening i just know after restarting pc mysql won't start.</p> <p>So i was reinstalling xampp and messing around few times untill i got it work. Last time when it happened i looked at mysql.err file and noticed errors are about ...
2
1,271
Make the VennDiagram better by reducing the non-overlapping areas
<p>I have plotted the below venn diagram using the code.</p> <pre><code># Venn Diagram grid.newpage(); venn.plot4 &lt;- draw.quad.venn( area1 = 849, area2 = 7181, area3 = 1776, area4 = 6254, n12 = 0, n13 = 849, n14 = 0, n23 = 927, n24 = 6254, n34 = 0, n123 = 0, n124 = 0, n134 = 0, n234 = 0, n1234 = 0, ...
2
1,052
3D is not rendering in WPF Application
<p>I am trying to render 3D object using the below code. But when I run the application, nothing is displayed. It seems to be blank. Am I missing anything?</p> <pre><code>&lt;Page x:Class="SampleWpfApplication.DemoPage3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof...
2
2,717
Knexjs and es6 Try/Catch causing an Unhandled Promise Rejection Warning?
<p>I've been working on a new application that uses PostgreSQL and Knexjs as a query builder, but have been running into an issue I'm not sure how to handle.</p> <p>I have a route handler that looks like so:</p> <pre><code>export const getSingleUser = async(req, res) =&gt; { let respObj = { status: 'fail', ...
2
1,097
How to check in Python if cell value of pyspark dataframe column in UDF function is none or NaN for implementing forward fill?
<p>I am basically trying to do a forward fill imputation. Below is the code for that.</p> <pre><code>df = spark.createDataFrame([(1,1, None), (1,2, 5), (1,3, None), (1,4, None), (1,5, 10), (1,6, None)], ('session',"timestamp", "id")) PRV_RANK = 0.0 def fun(rank): ########How to check if None or Nan? ############...
2
4,234
Django generate bar code and save into image field
<p>I am able to generate the bar code and can save the image file in the root folder using this library <a href="https://pypi.org/project/python-barcode/" rel="nofollow noreferrer">python-barcode</a>. Now I am trying to generate the bar code image and save into the django image filed.</p> <p>Tryouts:</p> <pre><code>i...
2
1,592
Update with Yii2-dynamicforms (Nested dynamic forms)
<p>In my Yii 2 project, I have a Nested dynamic form working with <a href="https://github.com/wbraganca/yii2-dynamicform" rel="nofollow noreferrer">yii2-dynamicform</a> extension. I could make it work following the <a href="https://github.com/wbraganca/yii2-dynamicform/wiki/Nested-Forms-Example" rel="nofollow noreferre...
2
8,013
Adding value to singly-linked list
<p>I'm in a C++ data structures class and a recent homework assignment has been bugging me for days. It has to deal with working with singly-linked lists, and one of the methods we have to write has to do with adding values to the list.</p> <p>First off, we create the dummy node <code>head</code>:</p> <pre><code>temp...
2
1,079
Memory Organization in C++
<p>I have been reading about how memory is allocated in C++.</p> <p>A few resources to mention:</p> <p><a href="http://www.geeksforgeeks.org/memory-layout-of-c-program/" rel="nofollow noreferrer">http://www.geeksforgeeks.org/memory-layout-of-c-program/</a></p> <p><a href="http://duartes.org/gustavo/blog/post/anatomy...
2
1,548
Getting "Null pointer exception" at the time of executing maven project using selenium webdriver
<p>When my code is executing first it execute the <code>LoginTest.Java</code> class after that it goes to the <code>Main.Java</code> but in these I get the null pointer exception, its not reading get the driver in method. Can anyone please help me to resolve, I am beginner in this.</p> <p>Thanks in advance..!!</p> <p...
2
1,221
AWS Lambda Timeout when connecting to Redis Elasticache in same VPC
<p>Trying to publish from a Lambda function to a Redis Elasticache, but I just continue to get <code>502 Bad Gateway</code> responses with the Lambda function timing out.</p> <p>I have successfully connected to the Elasticache instance using an ECS in the same VPC which leads me to think that the VPC settings for my La...
2
1,657
Getting "org.openqa.selenium.TimeoutException" when waiting for an element to load using Selenium Java Test case
<p>My Java Selenium Test case works fine when run using chrome driver, however the exact same code fails when run using HeadLess HTML driver. </p> <p>I got the below java code using Katalon Selenium IDE.</p> <pre><code>import java.util.regex.Pattern; import java.util.concurrent.TimeUnit; import org.junit.*; import st...
2
2,465
CommandArgument Input string was not in a correct format
<p>When I want to read e.CommandArgument then I get error saying "Input string was not in a correct format.". My markup portion is like bellow:</p> <pre><code>&lt;asp:GridView ID="GridViewAllProducts" runat="server" AutoGenerateColumns="False" GridLines="None" AllowPaging="True" Width="100%" ...
2
3,441
Android FLAG_ACTIVITY_NEW_TASK not working
<p>I'm having an issue with calling startActivity() on an Intent from within my custom onClick Listener. The code compiles fine, but when it gets to that point in the execution, I get a nullPointerException.</p> <p><strong>Code</strong></p> <pre><code>private static class ProverbAdapter extends ArrayAdapter&lt;Strin...
2
2,046
Cholesky with ScaLAPACK
<p>I am trying to do a Cholesky decomposition via <a href="https://software.intel.com/en-us/node/521465" rel="nofollow noreferrer">pdpotrf()</a> of MKL-Intel's library, which uses ScaLAPACK. I am reading the whole matrix in the master node and then distribute it like in this <a href="https://andyspiros.wordpress.com/20...
2
1,626