title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How do I set continuation tokens for Cosmos DB queries sent by document_client objects in Python?
<p>I have an API that retrieves documents based on keywords that appear in document fields. I would like to paginate results so that I can return documents to a client sending a request, as well as allowing them to request more documents if they want. The query itself only takes a second or so in the browser when I am ...
1
1,188
0x00 in a binary file VB.NET
<p><strong>UPDATED BELOW</strong></p> <p>I am reading a Binary file using BinaryReader in VB.NET. The structure of each row in the file is:</p> <pre><code> "Category" = 1 byte "Code" = 1 byte "Text" = 60 Bytes Dim Category As Byte Dim Code As Byte Dim byText() As Byte Dim chText() As Char ...
1
1,090
What's the possible cause of this Core Data crash
<p>First of all, I'm sorry I can't figure out a better title for this question.</p> <p>This is a crash that I can not repeat myself but happened to users many times. I'm using HockeyApp(<a href="https://github.com/TheRealKerni/QuincyKit/" rel="nofollow">QuincyKit</a>) to collect crash reports. So I can't debug this pr...
1
2,355
System.ArgumentException: Illegal characters in path
<p>I am trying to decrypt an encrypted file, however I am getting the <code>System.ArgumentException: Illegal characters in path.</code> error in line 4 of the above method (StreamReader...). Can anyone tell me why this exact error is happening? I dont have any path being passed the method where error is occuring howev...
1
1,668
Using stateProperties and hasStateChanged to implement undo / redo in fabric.js
<p><strong>Edit:</strong> The scope of this question has shifted a bit. Please see updates below.</p> <p><strike>I've been working on an undo/redo of sorts for fabric.js (see <a href="http://jsfiddle.net/phxqt3wh/" rel="noreferrer">fiddle</a>). Though rather naive, it's working for the most part (for adding / removing...
1
1,471
Process.Start cmd.exe won't run cmd file that is passed as agument when running in IIS
<p>I've been searching and experimenting all morning with this one and I'm stumped. I have an aspx page running in IIS and calling the following c# function. I'm trying to have it run a cmd file and return the output from the cmd file. I've experimented with the five different options in the code below:</p> <pre><c...
1
1,448
How to remove single module from the jar file in gradle Android Studio
<p>How can i remove the single package from the jar file.</p> <p><a href="https://i.stack.imgur.com/9hFm6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9hFm6.png" alt="the package hierarchy "></a></p> <p>I have two SDK's from diffent vendors and both the SDK's have <strong>google.gson</strong> pa...
1
1,263
Adding Toolbar to ConstraintLayout
<p>When I try to add <code>ToolBar</code> to <code>ConstraintLayout</code> nothing is shown in the component tree and I get the following error :</p> <pre><code>java.lang.NoClassDefFoundError: android/support/constraint/R$styleable at android.support.constraint.ConstraintLayout$LayoutParams.&lt;init&gt;(Constraint...
1
1,452
Running Target after files are published to FileSystem
<p>I am trying to create publish profile which would copy all published files to various folders. Unfortunately I read that's not possible to do it directly through <code>publishUrl</code> and it's advised to publish to one folder from which to copy all the files. I managed to write the copy target functionality, but t...
1
2,069
Adding text to Image using HTML5 / CSS
<p>I tried to make a banner for my website I'm creating, but when I add it to my website, it turns out really bad with the text. I'm wondering if I can add text to my banner using HTML5 and / or CSS. </p> <p>HTML:</p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="...
1
1,998
Change return types for Spring openapi-generator-maven-plugin generated interfaces
<p>I've managed to generate the interfaces from a .yaml open-api descriptor file, but, as in the question title, I'd love to change the response type of those interfaces from ResponseEntity to my own types. Basically instead of the interface having this signature:</p> <pre><code> ResponseEntity&lt;Void&gt; clearCache(...
1
1,266
Android: How to have list of checkbox with image in AlertDialog
<p><img src="https://i.stack.imgur.com/Zpvtm.png" alt="enter image description here"></p> <p>I need my AlertDialog like the above image but <strong>WITH Checkbox</strong></p> <p>I had checked this <a href="https://stackoverflow.com/questions/3211927/android-image-inside-single-select/3281239#3281239">Post</a> and i h...
1
4,780
Plotting drm in DRC package - multiple model plot
<ol> <li>Curves in DRC package not fitting correctly on plot</li> <li>Broken = TRUE graphical parameter appearing outside the plot</li> <li>Applying type = "confidence" yields an error</li> </ol> <p>Hi all,</p> <p>I am having trouble plotting a drm in the R package DRC. </p> <p>My data comprises of three variables; ...
1
4,808
RabbitMQ fails to start with persistence storage on Kubernetes. Permission denied error
<p>I have a rabbit mq pod and I configured to use a persistence storage incase of pod restart/deletion by mounting a volume.</p> <p>I configured everything but not able to get through this error:</p> <pre><code>/usr/lib/rabbitmq/bin/rabbitmq-server: 42: /usr/lib/rabbitmq/bin/rabbitmq-server: cannot create /var/lib/ra...
1
1,296
Keep Activity running in background
<p>I have a counter app. It counts things over a long period of time(2-3hrs). During the majority of the time, for 10-15, maybe 30 minute increments), the app remains in power down state in my pocket. After this long duration Android decides i am not using it and shuts it down. So i lose all my counts.</p> <p>What is ...
1
1,497
No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored' in VS 2015
<p>All the sudden I started receiving the following error when building Cordova application in VS 2015. The upgrade / deletion of packages in Android SDK lead to this issue.</p> <pre><code>platforms\android\build\intermediates\res\merged\debug\values-v24\values-v24.xml:3 : AAPT: Error retrieving parent for item: No re...
1
8,897
How to create fluid semantical layout with Twitter Bootstrap using LESS?
<p>I want to create fluid layout using LESS and without using Bootstrap grid clasess like .span6 on html code. How can I do this? When I wrote without LESS I create layout like this:</p> <pre><code>&lt;div class="container-fluid"&gt; &lt;div class="row-fluid" id="header"&gt; &lt;div class="span4 block"&gt; ...
1
1,545
Spring SimpleJdbcCall Oracle sql/pl - Unable to determine the correct call signature - multiple procedures/functions/signatures
<p>I have a stored procedure in a package which has it defined with three different method signatures in the same package. They vary by only a few parameters (each calls the next with a few default values). I've over-simplified the list of columns for the sake of brevity here. I have about 55 fields in the procedure...
1
1,204
Extjs4, File uplaod
<p>I'm tring to post file to server using Extjs4.1 filefield.</p> <p>but an error occur, it say result is undefined. :(</p> <p><img src="https://i.stack.imgur.com/ma516.png" alt="enter image description here"></p> <p>In form,</p> <p>without filefield, it works fine.'</p> <p>This is the form. and it load OK. the e...
1
1,965
rails carrierwave backgrounder with delayed jobs taking too much time to upload
<p>I am using carrierwave and carrierwave backgrounder(<a href="https://github.com/lardawge/carrierwave_backgrounder" rel="nofollow">https://github.com/lardawge/carrierwave_backgrounder</a>) with delayed job for uploading file in a background.whernver i try to upload my file, it uploads successfully and i can see that ...
1
1,602
The .NET Core SDK cannot be located
<p>In vscode on my macbook running macos big sur i'm not able to use c# with the dotnet core in vs code, i keep getting this error(link to a picture down below). I tried countless things including appending the path that goes to the core to the bash_profile and uninstalling and reinstalling but nothing worked, please l...
1
4,493
How to set ScrollView in Activity with Multiple ListView(s)?
<p>This is my actual Activity : <img src="https://i.stack.imgur.com/zAuyz.png" alt="enter image description here"></p> <p>In this Activity I set All the ListView(s) dynamically and programmatically. As you can see, the problem I have is The 1st ListView takes the place she needs and the second ListView try to keep sh...
1
5,331
ProGuard Can't Read android-support-v13.jar(;;;;;;!META-INF/MANIFEST.MF) (Duplicate zip entry [android-support-v13.jar:])
<p>I've been trying to get <code>ProGuard</code> to run the past 2 days, just can't get past this problem.</p> <p><strong>Full error</strong></p> <blockquote> <p>java.io.IOException: Can't write [/PATH_TO_POJECT/build/intermediates/classes-proguard/release/classes.jar] (Can't read [/PATH_TO_POJECT/build/intermediat...
1
4,869
quote marks in sql causing problems
<p>I have a simple html input textbox in a very simple form. the information form this form is transmitted to a mysql database with an sql string.</p> <p>Everything works slick, except when someone types " or '. I don't want to limit the users as to what they can type.</p> <p>Should I do a find and replace to the str...
1
3,226
Removing white spaces from string line and using it in an array
<p>I was looking through the old posts but I cannot find the very specific answer how to replace the white space in the string and then use it as an array.</p> <p>The input file consists the lines:</p> <pre><code>-rw-r--r-- 1 myuser admin 315279199 May 12 02:46 2016_05_12_backup.tar.gz -rw-r--r-- 1 myuser admin...
1
1,054
How can I control what is shown in the notification bar in the package audio_service for FLutter
<p>I am trying to figure out where can I change what is shown in the notification bar in the audio_service package. More specifically, can you tell me where can I remove the slider (the seek bar) from the notification bar? ( it is not shown until you expand the bar ). Or to improve it, by adding the current position an...
1
7,132
Flutter auto_route_generator not building, FormatException: Not an instance of List
<p>I'm trying to run Flutter pub run build_runner build, to generate a router.g.dart file for navigation.</p> <p>I've run a build_runner clean, a whole project clean then build but no luck. Im following a tutorial, he just seems to run it exactly with the code I have and its fine. No one else in the comments seem to ha...
1
1,237
Doctrine 2 conditional multiple row update with QueryBuilder
<p>The question has some answers on SO, but non of them seems to help accomplish, actually, a simple task.</p> <p>I need to update multiple rows based on condition in one query, using Doctrine2 QueryBuilder. Most obvious way is supposed to be wrong:</p> <pre><code>$userAgeList = [ 'user_name_a' =&gt; 30, 'use...
1
1,192
Can not Use Node, Mocha & Babel@7.x.x Together
<p>I've Installed Node@10.x.x, Mocha@6.x.x &amp; Babel@7.x.x. I'm trying to run some mocha tests in ES6 standard with running <code>npm test</code> but I get the following error:</p> <pre><code>&gt; test@1.0.0 test G:\Ebooks\16 [Test]\test2 &gt; mocha --require @babel/register G:\Ebooks\16 [Test]\test2\test\index.spec...
1
1,801
using fetch api function to get data from MongoDB and display them in node.js
<p>I have a node application which inserts different types of courses into mongodb and displays them onto the web page directly from the database. i want to use the fetch() api function to get the data from mongodb by passing the data into json format and then displaying them using the ejs engine</p> <pre><code>mongoo...
1
1,108
ReactJS: Need to change card styling using onClick function
<p>I know this will need a refactor later to separate things out into their own components, but I'm up against a time crunch at the moment and need to wire this up as is. I used array.map() to create card elements from a JSON object I'm using for testing purposes. I'm attempting to use an onClick function on a card <co...
1
4,679
No mapping found for HTTP request with URI [/HelloWeb/WEB-INF/jsp/hello.jsp]
<p>I tried to to load a simple example of spring mvc with a simple jsp but failed with the following error: <strong><em>No mapping found for HTTP request with URI [/HelloWeb/WEB-INF/jsp/hello.jsp]</em></strong> I'm using Spring 3.2.2. I really appreciate your help here. I tried several thing but still it seems that I ...
1
1,073
Gson (Json) parse exception
<p>I'm getting an exception while parsing a JSON with Gson. </p> <p>The following is the exception :</p> <pre><code>com.google.gson.JsonParseException: The JsonDeserializer StringTypeAdapter failed to deserialize json object {"CGLIB$BOUND":true,"CGLIB$CONSTRUCTED":true,"CGLIB$CALLBACK_0":{"interfaces":[{}],"construct...
1
2,426
How to Expand a Polygon Until One of the Borders Reaches a Point
<p>I have code to expand the polygon, it works by multiplying the xs and ys by a factor then re centering the resultant polyon at the center of the original.</p> <p>I also have code to find the value for the expansion factor, given a point that the polygon needs to reach:</p> <pre><code>import numpy as np import iter...
1
1,137
Unable to turn off eslint no-unused-expressions
<p>I have created an app with create-react-app and I have applied the airbnb rules. The app also contains redux and flow.</p> <p>The following code is throwing the no-unused-expressions error in eslint:</p> <pre><code>const reducer = (state: string = '', action: Action) =&gt; { switch (action.type) { // c...
1
1,331
checkPermission error while using PermisionDispatcher
<p>This is my first post in stackoverflow so please dont hate me if I say something wrong!</p> <p>I am trying to adapt this tutorial <a href="https://developers.google.com/maps/documentation/android-api/current-place-tutorial" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android-api/curre...
1
4,432
Hibernate + H2 Database + SpringBoot: Pre-existing tables in database are always dropped & re-created upon start, even for hbm2ddl = validate
<p>I have a problem regarding the proper setup of a database. The behavior I observe is what I would excpect for "hbm2ddl.auto = create-drop" or "ddl-auto = create-drop." However, I explicitly set "hbm2ddl.auto = validate" and deleted ddl-auto (and tried every other combination of these two and validate), but still get...
1
1,796
PHP Fatal error: Call to undefined function mysqli_stmt_get_result()
<p>I keep getting the error PHP Fatal error: Call to undefined function mysqli_stmt_get_result(). I am using PHP version 5.6 and have enabled the extension mysqlind in my hosting provider c panel but I can't figure out why I am still getting this error. I have researched and found every time that I need to have mysqli...
1
1,387
Declaring an array of constant with Verilog
<p>first i want to apologize for my ignorance,this question may be stupid for many of you..but i am a newbie in the domain of Hw dev<br> I am trying to turn a software function into a hardware accelerator... in the C code we use an array of integer to calculate a certain value as shown here </p> <pre><code>uint k[64]...
1
1,271
Delphi HTTPRIO: Error after soap request with certificate signed
<p>I'm having a hard time trying to figure out what is goint wrong.</p> <p>I got this message:</p> <pre><code> Debugger Exception Notification Project Project9.exe raised exception class ERemotableException with message 'System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt;...
1
9,002
Problems installing Pandas and yfinance with python 3.9 on my mac
<p>I am trying to use the python -m pip install yfinance command to install yfinance. The command is referencing the python 3.9.0</p> <p>When I try to do this, I receive the following:</p> <pre><code>Collecting yfinance Using cached yfinance-0.1.55.tar.gz (23 kB) Collecting pandas&gt;=0.24 Using cached pandas-1.1....
1
8,764
laravel 4 installation problems
<p>i have been struggling with this for about 20 hours now and i cannot move forward. I am hopeless and tired from all that searching. Dont know where else should i try to find the solution. At the begining i should probably say that i am not a terminal/composer/git user. I am trying to install the laravel 4 framework....
1
1,295
Angular 5 Service worker not working / Doesn't cache background-image
<p>I'm having trouble getting my angular5 service worker to work. I have two main problems:</p> <ol> <li>The service worker doesn't cache assets images that are used as background-images</li> <li>After simulating a network disconnect the service worker initially pulls files from the cache (except the the aforementione...
1
1,297
Getting a NPE while working with hibernate version column
<p>I am getting a NPE while trying to update a record. The entity class is annotated with @Version and the version column is not null with default(1) value. There are no records in the table with a null value in version field but still I am getting a NPE. Following is the error details:</p> <pre><code>Oct 23, 2013 9:0...
1
3,020
driver.get not working in Selenium Webdriver, Java
<p>When using <code>driver.get</code> on a certain website (<code>driver.get("http://steamcommunity.com/market/search?appid=730")</code>), I get this error: </p> <pre><code>Exception in thread "main" org.openqa.selenium.WebDriverException: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking fireEvent Bui...
1
2,615
ASP.NET MVC 5 - Cookies being not created
<p>I am having my controller action that calls a private method that handles a cookie. The problem is that the cookie is not being created at all. I read multiple posts on SO but I haven't found an answer as I think that my handling cookies in this code is correct.</p> <p>Is there any web.config setting that I need to...
1
1,215
Getting com.android.volley.ServerError
<p>PUT request using volley</p> <pre> Log.i("JsonObject is",finaljsonData.toString()); Output:- {"stats":[{"med_id":1,"med_name":"Evening","start_date":1476107306168,"end_date":1476193706168,"adherence":{"taken_on":[1476107704867],"missed_on":[]}}]} </pre> <p>Code:</p> <pre><code> JsonObjectHeader customRequest=...
1
1,558
Working with a pdf from the web directly in Python?
<p>I'm trying to use Python to read .pdf files from the web directly rather than save them all to my computer. All I need is the text from the .pdf and I'm going to be reading a lot (~60k) of them, so I'd prefer to not actually have to save them all.</p> <p>I know how to save a .pdf from the internet using urllib and...
1
1,620
log4j maven dependency download getting timed out
<p>I was trying to setup a web app using spring MVC. I'm getting "connection timed out" while maven tries to download dependencies for log4j. </p> <p>Following is the dependency added to pom.xml:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;log4j&lt;/groupId&gt; &lt;artifactId&gt;log4j&lt;/art...
1
3,720
AngularJS disable dropdown option which previously selected
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var demoApp = angular.module('myApp', []); demoApp.controller('QaController', function($scope, $http) { $scope.loopData = [{}, {...
1
1,092
Unable to import org.springframework.web.multipart.MultipartFile;
<p>I am using spring boot for rest API.. The rest API's uses the service methods...for service methods I have a different project - spring MVC application.. the jar is being created and provided to spring boot application.. I want to write some logic on <code>MultipartFile</code> But the problem is I unable to import t...
1
1,579
read and save images into SQLite database
<p>hey guys i am working on android to retrieve and save images from a SQLite database . here is my code ==>></p> <pre><code> public class MainActivity extends Activity implements OnClickListener { protected static TextView textView; protected static ImageView image1, image2; pr...
1
2,630
Stackoverflow exception on this.ResumeLayout(false);
<p>I have a problem with a program with a silent error. I don't understand what it means. It is something with the <code>this.ResumeLayout(false);</code> ==> on frominloggen</p> <p>and the window that popps up says this :</p> <blockquote> <p>An unhandled exception of type 'System.StackOverflowException' occurred ...
1
5,307
Invalid Post: 400 - Bad Request with Python requests
<p>I'm using PoliteMail's ODATA RESTful API (Doc: <a href="http://kb.politemail.com/?p=1389" rel="nofollow noreferrer">PoliteMail API Entity Directory</a>)</p> <p>I'm trying to create a Contact inside of PoliteMail with <code>requests.post()</code>.</p> <p>Below are my steps</p> <h2>Load Libraries</h2> <pre><code>i...
1
1,049
org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
<p>I am new in the Spring World and writing even my first Jquery. trying to get the JSON data from JSP page using Ajax call, to the controller. But i am getting error org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported. Please do help.</p> <p>Depende...
1
2,762
Webview reloading on Orientation Change in Honeycomb
<p>I have a webview which is loading a url. If I change the orientation of my tablet the webview load's the URL again. How can I retain the state of webview on orientation change so that it does not restart loading the url. So far I've tried this :-</p> <pre><code> @Override public void onSaveInstanceState(Bundl...
1
1,160
Which method (POST/GET) is using in the SoapClient to send HTTP requests?
<p>I don't know if I'm asking a correct question! But I think its answer will guide me to solve my problem...</p> <p>I'm trying to call a function by SoapClient,... It is a simplified version of my code:</p> <pre><code>class SOAP_AuthStruct { function __construct($user, $pass) { $this-&gt;Username = strva...
1
1,150
Using hibernate and ms sql server driver
<p>Microsoft doesn't supply jdbc jar to central maven repository. It needs register driver manually. But I make something wrong. I saw same exception trace:</p> <pre><code>Initial SessionFactory creation failed.org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver "com.microsoft.sqlserver...
1
1,166
jinja2.exceptions.UndefinedError: 'render_field' is undefined
<p>So I just started using <code>Wtforms</code> in conjunction with <code>Flask</code>, I set up basic class and defined all of my fields in <code>forms.py</code> as you can see here...</p> <pre><code>from wtforms import Form, TextField, validators, PasswordField, DateField class AddAccount(Form): username = Text...
1
2,139
No overload for 'textBox1_TextChanged' matches delegate 'System.EventHandler'
<p>Hello Everyone. This is my first Program and within in 5 minutes I have a error. I've only started to today using C#, so I know I should be really looking around, but I didn't think there was a problem with what I was doing.</p> <p>My Program is a Generator depending on what a user picks or types in all the textbox...
1
1,024
Import wsdl file to xsd file
<p>I want to generate class from soap xml via using xsd. I've been successful so far, but now, I've this soap message:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:tds="http://www.onvif.org/ver10/device/wsdl"&gt; ...
1
1,156
Android Switch Between Multiple Fragments In A Tab
<p>I have an application with a TabLayout that has a ViewPager that handles the tabs. The two tabs instantiate different fragments. </p> <p>What I am trying to achieve is to switch fragments within the same tab. Since each fragment within the same tab holds a different layout (as it relies on a specific user flow), us...
1
2,701
Xquery Get Position()
<p>This is a part of our xml file.</p> <pre><code> &lt;point distanceTotal="162" seqNo="189"&gt; &lt;lineSection id="395" track="1" direction="1"&gt; &lt;outInfos&gt; &lt;comment commentTypeId="4" priority="1"oneLiner="BOT"&gt; ...
1
1,605
Basic Roll the Dice number generator
<p>Hello im very new to C# and coding, so need some basic help. If the user chooses to roll multiple dices, (2,3,4,5,6,7,8 etc), what do you do to make it roll randomly on all the dices? For example: "Dices rolled: 2,5,3". Instead of it now being "Dices rolled: 2,2,2", or "4,4,4", basiaclly the same number.</p> <pre><...
1
1,253
Installing SQL 2012 Express Using Configuration.ini file
<p>I have created a configuration.ini file so I can do a quiet install of SQL 2012 Express. I installed the full version far enough to get the configuration file.</p> <p>Every time I run my batch file that calls the config file I get the following error at the end of my Detail.txt</p> <p>(01) 2014-03-07 13:21:42 Slp...
1
2,592
Getting build error: `duplicate entry: javax/annotation/CheckForNull.class`
<p>I am getting Getting build error: <code>duplicate entry: javax/annotation/CheckForNull.class</code> every time I try to generate a signed apk of my app. I've googled around, tried all the fix I've found and don't know what to do again. Please, help look at my <code>gradle</code> file and see if I've an issue there. ...
1
2,793
Download pdf file on form submit
<p>I have this form from zoho crm:</p> <pre><code> &lt;div id='crmWebToEntityForm' align='center'&gt; &lt;META HTTP-EQUIV ='content-type' CONTENT='text/html;charset = UTF-8'&gt; &lt;form action='http://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads1041232000000749005 method='POST' onSubmit='javascr...
1
1,440
re-render single datatable row
<p>i have a dynamic form based on <code>dataTable</code>, nested inside another <code>dataTable</code>.</p> <p>on selecting a row from nested <code>dataTable</code> i'd like to update corresponding row from parent <code>dataTable</code> using <code>&lt;p:ajax&gt;</code></p> <pre><code>&lt;h:form id="form"&gt; &l...
1
2,762
Itemtap and listening Event function Sencha Touch 2 List
<p>Hi all am finding it difficult to set set a call back function, i have a list and in my controller, am trying to listen to each of the items in the list so that once each item is being taped, it will display a map with a marker pointing at the specified lat and log specified in my store for that particular item. i ...
1
1,249
event.target/srcElement not working 100% in Chrome and Opera
<p>I'm trying to get the <code>target/srcElement</code> of an HTML <code>"area"</code> element for an image map.</p> <p>Here's what I have so far (pardon the data URI):</p> <pre><code>&lt;map name="dpad"&gt; &lt;area id="dpad"shape="rect" alt="" title="" coords="1,14,12,24" onmousedown="move('l',false,event);" targ...
1
1,637
How to set pts and dts of AVPacket from RTP timestamps while muxing VP8 RTP stream to webm using ffmpeg libavformat?
<p>I am using ffmpeg libavformat library to write a video only webm file. I recieve VP8 encoded rtp stream on my server. I have successfully grouped the rtp byte stream (from rtp payload) into individual frames, and constructed a AVPacket. I am NOT re-encoding the payload to VP8 here as it is already vp8 encoded. </p> ...
1
5,915
why is my Activity being logcat="WIN DEATH Killing ProcessRecord" when i mount sd card to computer
<p>My <code>Activity</code> have the <code>android.intent.action.SEND</code> in the manifest so<br> i select an image in the Android <code>Gallery</code> and my <code>Activity</code> open right. </p> <p>If i select from the <code>Notification</code> menu to mount the phone<br> to the computer the <code>Activity</cod...
1
7,396
GridView inside a Listview causing "Vertical viewport was given unbounded height" even when Expanded
<p>I'm still new to Flutter, and trying to create the following layout:</p> <p><a href="https://i.stack.imgur.com/kLZN3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kLZN3.png" alt="eLayout Of What I&#39;m trying to achieve"></a></p> <p>I've split my layout into 3 main components:</p> <ol> <li>The Title ...
1
2,849
Algorithm to generate an array with n length and k number of inversions in O(n log n) time?
<p>I'm writing an algorithm that will return an array with determined length and number of inversions (number pairs, where the left side number is larger than the right side number). I.e. array [3, 1, 4, 2] contains three inversions (3, 1), (3, 2) and (4, 2). So in practice, when given the length of n=3 and number of i...
1
1,342
jQuery dialog doesn't close from code behind after a Response.TransmitFile
<p>My problem is that using the quoted aspx page when i call the closing Dialog from Code Behind the dialog doesn't close. If i comment the Response Transmit file part of code then the dialog properly close, else the download starts but the dialog remains opened. Let me know if you have some suggestions, thanks!</p> <...
1
2,113
python, cv2.imshow(), raspberryPi and a black screen
<p>Currently trying write code with a GUI which will allow for toggling on/off image processing. Ideally the code will allow for turning on/off window view, real time image processing (pretty basic), and controlling an external board.</p> <p>The problem I'm having revolves around the <code>cv2.imshow()</code> function...
1
2,153
Oracle APEX how do I populate cascading select lists without page submit
<p>I have an APEX page with a few select lists, using collections to save and refresh the page. The "System" select list is dependent upon the "Brand" selected value. I have the page working how I want, but it requires the page to be submitted after a "Brand" value is chosen so that the "System" lov is properly popul...
1
1,371
java.io.EOFException: Short read of block. When scanning a multibranch pipeline in Jenkins
<p>I have a Jenkins box set up with a few different projects inside it, all of which run fine except this one. Below is the full error message, any help would be much appreciated.</p> <p>[Tue Feb 27 10:30:53 UTC 2018] Starting branch indexing...</p> <blockquote> <p>git --version # timeout=10</p> </blockquote> <p>u...
1
2,412
MongoDB .FindSync() result can not be serialized
<p>Tried to build a simple WebAPI with MongoDB, returns a Patient document based on value of _id.</p> <p>Definition of Patient, <strong>Patient.cs</strong></p> <pre><code>namespace PatientData.Models { public class Patient { [BsonElement("_id")] [BsonRepresentation(BsonType.ObjectId)] ...
1
1,459
How do I cross compile OpenCV for the Raspberry Pi with additional modules (highgui...)
<p>My goal is to cross-compile OpenCV for Raspberry Pi with CMake on an Ubuntu 16.04 Host. The Problem lies within the CMake toolchain file which is unable to handle the compilation process correctly. As soon as pkg-config comes into play, a lot of "fatal error: No such file or directory" errors arise (e.g. "fatal erro...
1
1,718
Populate Modelpopup with different page(View) in Mvc using jquery
<p>I am trying to load a view(not a partial view) inside a Model popup in mvc I have 2 .cshtml pages that is View's Modelpopup.cshtml and loadmodal.cshtml</p> <p>Modelpopup code</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { var $modal = $('#load_popup_modal_show_id'); ...
1
1,056
Calling method on navigation host fragment inside MainActivity
<p>I am developing my first Android app and I know that architecture could be a bit messy. I am using new Jetpack navigation in android. I have a navigation drawer where I added a recycler view from where the user can select the item in the recycler view and based on that main navigation host fragment should scroll to ...
1
2,003
Jssor Slider: Can I add video?
<p>I would like to add a video inside my image slider but I need to be able to have a play, pause and stop on the video as well as make that slide last longer than the previous slides.</p> <p><a href="http://www.piratesdinneradventureca.com/" rel="nofollow noreferrer">http://www.piratesdinneradventureca.com/</a></p> ...
1
3,394
Retrofit returns error 401, NullPointerException for android 4.4.2
<p>my code</p> <pre><code> private void autenticar(TipoLogin tipoLogin, Cidadao cidadao) throws Throwable { // Captura o tipo de opção de login final Integer opcao = tipoLogin.getCodigo(); this.apiAcessoDAO = FabricaDAO.criarApiAcessoDAO(this.context); Prefeitura prefeitura = null; PrefeituraDAO...
1
3,019
Replace missing values with mean
<pre><code> [1] 10 2 4 1 10 10 1 1 1 1 1 3 3 9 1 1 1 10 1 10 7 1 NA 1 7 1 1 1 1 1 1 5 1 1 1 1 1 10 7 NA 3 10 1 1 1 9 [47] 1 1 8 3 4 5 8 8 5 6 1 10 2 3 2 8 2 1 2 1 10 9 1 1 2 1 10 4 2 1 1 3 1 1 1 1 2 9 4 8 10 1 1 1 1 1 [93] 1 1 1 1 1 ...
1
1,366
Impossible to style a textarea generated by a Wordpress contact form plugin!
<p>In <a href="http://widerdesign.com.tw/contact/" rel="nofollow noreferrer">this page</a>, I'm trying to style a <strong>textarea</strong> generated by <a href="http://wordpress.org/extend/plugins/contact-form-7/" rel="nofollow noreferrer">Contact Form 7</a>, but it doesn't matter what I do I can't.</p> <p>code:</p> ...
1
1,083
How to hide zero values in a chart with amchart.js?
<p>How to hide zero value in chart using amchart.js ?</p> <p><a href="https://i.stack.imgur.com/u9BLn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u9BLn.png" alt="enter image description here"></a></p> <p>Here's my code to generate the chart :</p> <pre><code>function getStatsByFlowByOperation()...
1
1,230
using multiple validation with regex in VeeValidate and VueJs
<p>I am applying multiple validation using VeeValidate in a latest VueJs application but that is not working. This regex is to allow only alphabet,number,space and a few special characters. However, VeeValidate always returns false.</p> <pre><code> &lt;ValidationProvider name="Addr...
1
1,036
Scrolling TImage horizontally or vertically
<p>I am writing 2-3 Trees application in Lazarus for my school project.</p> <p>Everything's done, now playing with GUI (I get the same number of points for good GUI as I do for a good etc. Insert function, which is weird but nvm).</p> <p>When I have like 10+ nodes in the tree, my 300*200 image size just isn't large e...
1
1,122
PHP array json_encode adding extra quotes
<p>I have the following php array, and would like to print it as a clean JSON file, but i'm getting extra quotes around the brackets and comma's. Although the current JSON i get is valid JSON it's not how I want it formatted. See PHP array below, my json_encode output and the preferred json output:</p> <pre><code> ...
1
1,064
Order template when using _set.all
<p>I want to order some element of template by "anno" but I don't know how or where (if from views or template). I tried whit |dictsort: but I think i've miss something or wrong something else. Could you help me, please...???!!! Thanks...</p> <p>my models.py :</p> <pre><code>class Anno( models.Model ): anno = mod...
1
2,287
CSS display:inline-block changes text size on mobile?
<p>I have set up a very simple webpage which works the way I intend on a desktop browser, but shows strange results on mobile. Here is the code :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyp...
1
1,736
Thymeleaf list within list input
<p>I have a data structure like this :-</p> <pre><code>WorkHistory{ List&lt;Jobs&gt; jobs; } Jobs{ List&lt;String&gt; workDoneSentences; } </code></pre> <p>Basically, I am trying to collect all past jobs where a person has worked and the work that he hsa done there. So it is a list of list structure. I would l...
1
2,015
data val required not generated using Client Side Validation
<p>I am trying to use Client Side Validation in MVC using data annotations. Data val attribute is not generated and client side validation is not working.</p> <p>My approach is : </p> <pre><code> public partial class User : BaseEntity { public User() { this.UserRoles = new List&lt;Us...
1
1,204
How to use variables and avoid CMP0054 policy violations?
<p>We are catching errors during testing for CMP0054 policy violations. An example can be found online at <a href="https://ci.appveyor.com/project/noloader/cryptopp/build/1.0.367/job/yp3lip31cotc6o1e" rel="noreferrer">Build 367</a>.</p> <pre><code>cmake : CMake Warning (dev) at CMakeLists.txt:364 (if): At line:8 char:...
1
1,147
Laravel installation via composer
<p>When I try and run the following (Mac OS X Yosemite):</p> <pre><code>↦ composer global require "laravel/installer=~1.1" </code></pre> <p>I get the following error:</p> <pre><code>Changed current directory to /Users/USER/.composer ./composer.json has been updated Loading composer repositories with package informat...
1
1,744
Contact Us Form ASP.net MVC
<p>I have created contact us form with the following code:</p> <p><strong>ConatModels.cs</strong></p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace DemoVer1.Models { public class ContactModels { [R...
1
2,289
React-Native: Get rotation angle of react-native-maps
<p>i am building a ui for tracking a driver, i update the track as well as direction... And for the custom marker, I have used transform and the rotation of the driver's heading value, the marker animates very nicely with respective to the heading, but the problem comes when i rotate the map, after rotating the map the...
1
2,775
PySide2 and pyinstaller gui application won't run on certain windows computers
<p>I have built a small gui application using PySide2 as my gui framework and PyInstaller to make a one file exe file.</p> <p>The application works perfectly on some PCs (both Windows 7 and 10), however, on a few other PCs it won't launch - showing me the error message:</p> <p>'Fatal error!: Failed to execute script ...
1
2,383
How to hide or make it visible based on the condition given in the TextChanged event of the Textbox?
<p>I am having a textbox on my web form. Within this textbox I am using Jquery Auto Complete. I have taken two labels on my web form and trying to hide this label based on the condition I have given in the TextChanged event of the Textbox. But I am not able display the visible one. This is my aspx page-</p> <pre><code...
1
1,225