title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Quartz JDBCJobstore doesn't work
<p>I have downloaded Quartz and I am trying to run a sample.</p> <p>I have a sample that uses <code>JDBCJobStore</code> which doesn't work but this sample works fine with <code>RAMJobStore</code>.</p> <p>Just when I choose <code>JDBCJobStore</code> and exception get raised.</p> <p>I am using quartz-1.6.5.</p> <p>c...
1
1,987
mvc4 ajax updating same page
<p>I have a list of users on a page, they are loaded during an ajax event when I click on a tab (easytabs). I then ajax load a create new user partial view to the same tab. I then create a new user using this form, but I do not know how to re-load the first partial view with a new list of users (including the newly c...
1
3,873
2 Finger Pan in ScrollView w/ Other Gestures - iOS SDK
<p>I have a main UIView, which contains a scrollview. I have set up UIGestureRecognizer for the main view for 4 types of swipes using this code:</p> <pre><code>UISwipeGestureRecognizer *swipeUpRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(upCommand)]; [swipeUpRecognizer setDirecti...
1
1,124
HTTP Status 404 Spring MVC Passing Parameters
<p>I want to start work with Spring MVC, but can not adjust a simple example. I want to just pass one parameter form one jsp to another, but have error:</p> <blockquote> <p>HTTP Status 404 - /controller/results.jsp type Status report message /controller/results.jsp description The requested resource (/controller...
1
1,866
IndexOutOfBoundsException in jexcel API
<p>I'm having an indexoutofboundsexception, i've scoured the internet and looked at several different solutions, but had no luck with this code. </p> <p>here is my error message: </p> <pre><code>Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayLi...
1
1,621
How to add ws-security header in .net core?
<p>I'm trying to make a call to a webservice and want to manually add the ws-security headers into the request because .net core 2.2 currently does not support ws-security.</p> <p>I have created my custom security header class:</p> <pre class="lang-cs prettyprint-override"><code>public class SoapSecurityHeader : Mess...
1
2,793
FTDI LibMPSSE SPI
<p>I recently purchased the FTDI C232HM-DDHSL-0 USB cable for use with SPI and I2C devices; my goal is to read the memory from an SPI memory chip that I removed from a router. However, I am having issues getting the libMPSSE library &amp; 2xx drivers to send signals to a connected device.<strong>I hooked the leads of t...
1
2,631
Playing a Video In Android App
<p><strong>EDIT------------</strong> <em>I want to have multiple videos and when you slide your finger across the screen it goes to the next video with the pause and play buttons.</em></p> <p>LINK TO MY FILES: <a href="http://www.mediafire.com/?ap12kiibfe438bf" rel="nofollow">http://www.mediafire.com/?ap12kiibfe438bf<...
1
2,532
Excel to Json Conversion In Java
<p>I have a problem where I would like to convert the below Excel data into a JSON format containing children. Here is the information about what I am talking about.</p> <p><a href="https://i.stack.imgur.com/ghi9R.jpg" rel="nofollow noreferrer">Given excel data</a></p> <p>This data needs to be converted to the below ...
1
1,395
ElasticSearch Delete by Query is not working
<p>I am trying to delete the docs from my index whose id is greater that 1500001. i have copied the code from the elastic documentation but it is not giving me any results. The code is</p> <pre><code>POST /us_data_master/_delete_by_query { "query": { "range" : { "id" : { "gte" : 1500001 ...
1
1,981
EF 5.0 new object: assign foreign key property does not set the foreign key id, or add to the collection
<p>EF 5.0, using code-first on existing database workflow. Database has your basic SalesOrder and SalesOrderLine tables with <em>required</em> foreign key on the SalesOrderLine as follows;</p> <pre><code>public class SalesOrder { public SalesOrder() { this.SalesOrderLines = new List&lt;SalesOrderLine&g...
1
2,093
Debugging in XCode: Exception Breakpoints
<p>I'm debugging a random SIGTRAP crash right now that just happens in the background. It's probably something that has to do with an <code>NSManagedObjectContext</code> somewhere. </p> <p>Besides that, I'm trying to debug it using an exception breakpoint to at least find out where it's originating from. The only prob...
1
1,752
How to Export from PHP to Excel (xlsx)
<p>I am trying to export to an xlsx file from a MSSQL query in PHP. I don't have access to the servers that my website is hosted on so i can't use anything that isn't already built into PHP. I'm using PHP 5.4. So far I've created a <code>&lt;a&gt;&lt;/a&gt;</code> that references a php page that should pull data from m...
1
1,652
Need to resolve HMONITOR --> deviceName (or deviceName --> HMONITOR) in windows
<p><strong>EDIT</strong> - See Update at end </p> <p>This is for Delphi 7.0 Build 4.453</p> <p><strong>Summary</strong></p> <p>I need to be able to take the Handle property from a TMonitor object (an element in the Monitors array in the TScreen component) which is a HMONITOR, and turn it into the string you would us...
1
1,041
NullPointerException on using setBackgroundResource()
<p>I am developing an android application to show images in a grid. I am following the steps listed in the <a href="https://www.youtube.com/watch?v=xKMoxP4im44" rel="nofollow">youtube tutorial</a>. On running the app, the getview method encounters a NullpointerException. I am unable to figure out the reason of this e...
1
4,081
"define" and "endef" syntax-rules in makefile
<p><strong><em>From the <a href="https://www.gnu.org/software/make/manual/html_node/Multi_002dLine.html#Multi_002dLine" rel="nofollow">docs</a>:</em></strong></p> <blockquote> <p>Note that lines beginning with the recipe prefix character are considered part of a recipe, so any <code>define</code> or <code>endef</c...
1
1,067
OpenId Connect middleware not setting auth cookie in an WebForms app
<p>I'm trying to integrate OpenId Connect into long-time existing webforms application. I was able to migrate the app to use OWIN and I'm using OpenIdConnectAuthenticationMiddleware to authenticate against my IdP provider. All goes fine until the point where I need to construct new identity obtained from IdP and set th...
1
1,475
foreach (var item in Model), Object reference not set to an instance of an object
<p>I used the "List View" in the Controller to generate an storeList.cshtml file, within this view file, there is a line:</p> <pre><code>foreach (var item in Model) {} </code></pre> <p>When I run the app, this line keeps getting the "Nullreference" error, and the "Object reference not set to an instance of an object"...
1
1,865
Jackson JSON Can not construct instance of "About" : deserialize issue
<p>I've make HttpsURLConnection to receive some information about my server. The result of response is : </p> <pre><code>{"about":{"title":"NiFi","version":"1.1.0","uri":"https://localhost:443/api/","contentViewerUrl":"/nifi-content-viewer/","timezone":"CET"}} </code></pre> <p>How is possible to extract all attribute...
1
1,029
Schemas validity error : Element 'game': No matching global declaration available for the validation root
<p>I have checked the related questions and i have been looking around to solve this problem but i guess I wont find a remedy. Here is my code to my xml file</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;game xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ga...
1
3,985
Normal Mapping, Specular Mapping and Ambient Mapping
<p>I have been using <a href="http://www.opengl-tutorial.org/" rel="nofollow">http://www.opengl-tutorial.org/</a> and my shaders below are derived from his tutorials, mainly I have changed variable names and I removed the tag v coord inversion because I am using a dds image. I did replace a vec3 with a value from an am...
1
1,805
CSS to get circle carousel indicators back in Bootstrap 4.1?
<p>After 4.1 release, they are not circles but flat lines. How can I style them back to what they were? </p> <p>I tried to give them <code>border-radius</code> but they became ellipsis. Do I really need to add fixed <code>width</code> and <code>height</code> for all the breakpoints to keep them both mobile friendly an...
1
1,385
How to read or write the a s h r i file attributes on Windows using Python and ctypes?
<p>For the records:</p> <ul> <li><code>a</code> means 'archivable'</li> <li><code>s</code> means 'system'</li> <li><code>h</code> means 'hidden'</li> <li><code>r</code> means 'readonly'</li> <li><code>i</code> means 'indexable'</li> </ul> <p>My current solution to read/write these attributes from Python scripts is to...
1
1,283
How to create a more efficient simulation loop for Monte Carlo in R
<p>The purpose of this exercise is to create a population distribution of nutrient intake values. There were repeated measures in the earlier data, these have been removed so each row is a unique person in the data frame.</p> <p>I have this code, which works quite well when tested with a small number of my data frame ...
1
2,981
R data.frame columns with the same name check.names=FALSE not working
<p>Im initializing a data.frame as the following:</p> <pre><code>combdat &lt;- data.frame(matrix(nrow=50), check.names=FALSE) </code></pre> <p>In a loop I want now to fill in additional columns. This happens like this:</p> <pre><code>combdat[,mkr] &lt;- mkrgeno </code></pre> <p>Where mkr is a certain character and ...
1
17,878
Angular filter json object
<p>I'm trying to implement a filter based on the answer to this <a href="https://stackoverflow.com/questions/17793751/how-to-filter-by-object-property-in-angularjs">question</a>, but it isn't working for me. For code:</p> <pre><code>function MyCtrl($scope, $timeout) { $scope.tweets = [ { create...
1
1,463
Async and sync versions of method
<p>Ok so I have been reading up a lot and working on the best ways to use <code>async methods</code> and <code>task</code>, etc. I believe I'm (mostly) understanding it but I want to check to make sure.</p> <p>I did start making <code>async wrappers</code> for sync tasks using <code>Task.Run()</code> but recently rea...
1
1,487
Is delete allowed to modify its parameter?
<p>In an answer, <a href="https://stackoverflow.com/a/704568/8157187">https://stackoverflow.com/a/704568/8157187</a>, there is a quote from Stroustrup:</p> <blockquote> <p>C++ explicitly allows an implementation of delete to zero out an lvalue operand, and I had hoped that implementations would do that, but that...
1
1,173
Android <include/> works but ViewStub doesn't, why?
<p>I am using ViewStub inside FrameLayout so that I can inflate it with a tutorial view the first time the app is opened. </p> <p>My Activity.xml</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment_container" android:layout_width="match_parent" android:l...
1
1,058
What is the correct constant for the exit system call?
<p>I am trying to learn x86_64 assembly, and am using GCC as my assembler. The exact command I'm using is:</p> <pre><code>gcc -nostdlib tapydn.S -D__ASSEMBLY__ </code></pre> <p>I'm mainly using gcc for its preprocessor. Here is <code>tapydn.S</code>:</p> <pre><code>.global _start #include &lt;asm-generic/unistd.h&g...
1
1,177
Haproxy custom error pages only work sometimes
<p>I have Apache operating as a reverse proxy which redirects to a HaProxy server set up which load balances between two backend servers using cookies. It's not elegant but everything works fine ...</p> <p>The backend servers run a web application which uses basic authentication (it's all it offers) and if users ente...
1
1,505
Is there a calculation error in my program?
<p>Apparently there is a calculation error somewhere in my program, but I simply can’t find it.</p> <p>The only information I have as to why there is a calculation error is this following feedback given by MyProgrammingLab (A site that automatically tests code to see if it's incorrect or not). I don't know what values...
1
1,210
Xml-RPC.Net Response Mapping with Struct Arrays
<p>I am trying to work with a couple of different XML-RPC API services provided by a third party. I am using the xml-rpc.net library from Cook Computing: <a href="http://xml-rpc.net/" rel="nofollow noreferrer">http://xml-rpc.net/</a></p> <h2>TLDR</h2> <p>I need help mapping <strong>Array</strong> response types from an...
1
5,049
Fill canvas area with an image instead of color
<p>Using below code i'm able to draw an area on an image loaded into a canvas and fill the drawn area with some color. </p> <p>Now i need to fill the drawn area with an image instead of a color. some thing like:</p> <p>canvas.fillStyle = 'url(myimage.jpg)';</p> <p>instead of</p> <p>canvas.fillStyle = '#123456' // e...
1
2,573
Request type over curl - Trying to get xml file to output/download correctly
<p>So I'm building an app that phrases an xml file... It needs to get the file with curl.</p> <p>I'm using this command:</p> <pre><code>curl -L -o /Users/MyName/Desktop/fileName.xml http://www.aviationweather.gov/adds/dataserver_current/httpparam?dataSource=metars&amp;requestType=retrieve&amp;format=xml&amp;stationS...
1
2,929
Error: The method 'getPositionStream' isn't defined for the class 'Geolocator'
<p>Using flutter I try to retrieve the current position using StreamSubscription and getPositionStream in geo locator. But I keep getting the error: Error: The method 'getPostionStream' isn't defined for the class 'Geolocator'.</p> <p>Here is my function:</p> <pre><code>void getLocationUpdates(){ StreamSubscription&lt;...
1
1,292
Using Celery with SQLAlchemy and Pyramid
<p>I'm creating the web app using Pyramid-1.2.1 with SQLAlchemy as database backend.<br> Now I need to do some periodic tasks along with this app and I want to use Celery as a task processor and SQLAlchemy as the message queue and the result backend. </p> <p>1) I've installed Celery-2.1.4 but I can not figure out how...
1
2,681
Error in running h2o.ensemble
<p>I am getting error while running h2o.ensemble in R. This is the error output </p> <pre><code>[1] "Cross-validating and training base learner 1: h2o.glm.wrapper" |======================================================================| 100% [1] "Cross-validating and training base learner 2: h2o.randomForest.1" |=...
1
1,619
How to calculate frequency level from audio recorder mic input data
<p>I am doing sound analyzer application in android.I can generate 18 khz to 20 khz ultrasonic sound using AudioTrack Api.i can record audio using AudioRecord Api.But i don't know how to calculate frequency form mic input data.i saw multiple question <a href="https://stackoverflow.com/questions/7674877/how-to-get-frequ...
1
1,737
Const method that modifies *this without const_cast
<p>The following pattern has arisen in a program I'm writing. I hope it's not too contrived, but it manages to mutate a <code>Foo</code> object in the const method <code>Foo::Questionable() const</code>, without use of any const_cast or similar. Basically, <code>Foo</code> stores a reference to <code>FooOwner</code> ...
1
1,048
JSF 2.0 composite component into jar
<p>I'm trying create a composite component to use across my projects, so, I've created a project called "componentes-ui-web" and putted 2 xhtml files that are my components.</p> <p>The structure of the project is like this:</p> <pre><code>src &gt; |-&gt; main &gt; &gt; |-&gt;java &gt; &gt; |-&gt;META-I...
1
4,240
Donut Pie Chart labels overlapping
<p>This is my problem: <a href="https://i.stack.imgur.com/7FGOs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7FGOs.jpg" alt="enter image description here"></a></p> <p>I'm having trouble so that these labels do no overlap, i tried to move the start and endangle but with no success, it just makes t...
1
2,528
Connecting Rasa chatbot to Webchat
<p>I am trying to connect this webchat widget to rasa (<a href="https://github.com/mrbot-ai/rasa-webchat" rel="nofollow noreferrer">https://github.com/mrbot-ai/rasa-webchat</a>), but I am getting this <a href="https://i.stack.imgur.com/iTEVY.png" rel="nofollow noreferrer">error</a> in my console, and also this <a href=...
1
1,127
Random "Missing type map configuration or unsupported mapping." Error in Automapper
<p>Please see <a href="https://stackoverflow.com/questions/16303452/automapper-random-errors/16772435#16772435">this post</a> for the solution.</p> <blockquote> <p>Ok, I finally figured it out. The: AppDomain.CurrentDomain.GetAssemblies() piece of my code sometimes does not get my mapping assembly so while it is...
1
2,233
WPF Input KeyBinding for a ListBox Item
<p>I'm having a WPF Application, programatically I'm setting the focus to the ListBox Item, after that using <strong>UP / Down arrow</strong> I'm navigating from one Item to another Item. I need to Implement <strong><code>ENTER Key</code>Event</strong> for that appropriate Item, it should trigger the <strong><code>ICom...
1
1,035
How can I add a row number at each grouping header in .rdlc report?
<p>I have problem when I try to add row number for each group parent group ("Group1") which have child group ("group2","group2")using RowNumber Function with group scope Like that <code>=RowNumber("Group1")</code> group with the previous Function I get the report like that :?</p> <p>parent group :Row No:2 Group1: 1 ...
1
1,157
looping through range and copying to range
<p>I am having a really hard time copying rows from a loop to a loop. The destiniation loop is all blank cells. I have been stuck on this for 3 days now, i feel so unproductive. What am i missing? </p> <pre><code>Sub Testloop() Dim a As Range, b As Range, d As Range Sheets("SAP Output DATA").Select Range(Cells(2, "A"...
1
1,351
Java-Read Text Files And Store Them As Arrays
<p>I have the following piece of code. I do not understand why its not working.</p> <p>I'd really appreciate help on this.</p> <pre><code>import java.util.Scanner; import java.io.*; class ReadFiles { String [] codes = new String[99]; int i = 0; private Scanner readCodes; public void openCodesFile()...
1
1,065
Force a single re-render with useSelector
<p>This is a follow-up to <a href="https://stackoverflow.com/questions/60678759/refactoring-class-component-to-functional-component-with-hooks-getting-uncaught">Refactoring class component to functional component with hooks, getting Uncaught TypeError: func.apply is not a function</a></p> <p>I've declared a functional...
1
2,698
React: cant handle async function on event
<p>I got a problem when I try to trigger async function on event onClick at the second file in <code>h2</code>. I don't know where is the problem. I catch error with a type <code>TypeError: Cannot read property 'props' of undefined.</code> Just take a look at the code.</p> <pre><code>import React from 'react' import ...
1
1,101
Crash on calligraphy library by chris Jenx for Android Q
<p>I have a calligraphy library I am using for custom fonts which seems to work on all versions except for android Q , where it crashes my app right on launch.Any one else has had to deal with the same issue lately? Here's my crash report :</p> <pre><code>Caused by: android.view.InflateException: Binary XML file line ...
1
1,104
ListView and GridView inside ScrollView. ScrollView won't scrolling
<p>First of all i want to apollogize for my english, i am from Russia and i hope that google translater helps me to describe my problem=). So problem is - i have a gridView and ExpandableListView inside ScrollView, i know that i shouldn't put a something scrollable View inside ScrollView, but for my goal i cant find a...
1
1,154
Unable to run Django with a MySQL backend
<p>I'm trying to setup Django with a MySQL backend, previously I've only used sqlite, and I've got a rather odd error. <code>Error was: No module named mysql.base</code></p> <p>I'm running Ubuntu with Nginx and uwsgi, and I have python-mysqldb installed. And following this I've started to get a 502 so I hope thats rel...
1
1,336
Is it possible to display tabs without using fragments in android 3.0?
<p>Is it possible to display tabs without using fragments in android 3.0?I have created actionbar with tabs extending fragments.But without using fragments and by extending activity will i be able to display tabs.I need to achieve that.pls help.I have posted my code also.</p> <p><strong>Java Code :</strong></p> <pre>...
1
1,322
Android: ListView with TextView header problem
<p>I have a main activity like :</p> <pre><code>public class TestActivity extends Activity{ List&lt;String&gt; users; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.usersview); showList(); } private v...
1
1,538
Flex 3 simple chat: code review request; is it good for a real life application?
<p>i managed to put together a simple chat using flex 3 / AS3, and i want to know if it is good for a real life application?</p> <p>here is the mxml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();"&gt; &lt;m...
1
1,119
Ms Access Comparing two recordsets
<p>I am trying to compare two recordsets. the first rs1 has random records. The second rs2 has the standard values for those records. Initially I am looking to take each of the records and see if they match with the standard set of values in the second recordset. There are four fields in each record set to be compared ...
1
1,085
Java + Command Pattern + Spring + remoting : How to inject dependencies to Command object?
<p>In my current project I'm dealing with EJBs implementing huge interfaces. Implementation is done through a business delegate, which implement the same interface and contains the real business code.</p> <p>As suggested by some articles like</p> <ul> <li><a href="http://code.google.com/intl/fr/events/io/2009/sessio...
1
1,070
How can I write this query as a full join instead of a union left/right join?
<p>here's the code, showing the inputs and the required output. </p> <p>Basically, I'm trying to self-join to match the results of my broker's statement with my internal records. So left set of columns is broker's list, right side is my list. If broker has a position, and I don't, NULLs on the right. If I have a p...
1
1,091
Get a dynamic object for JsonConvert.DeserializeObject making properties uppercase
<p>I am not sure how to seek help and this is kind of unusual I agree, so please pardon me. I'll try to explain as below:</p> <p>• I am consuming JSON using POST and getting a dynamic object. I need to convert all incoming properties in dynamic object to uppercase. </p> <p>• I am using what <strong><em>I think</em></...
1
1,620
jsPDF black background and wrong styles
<p>I'm looking to convert a section of my HTML page to a pdf and am using jsPDF. When I download the pdf, the styles are all messed up and the image won't show. It is also showing as a black background. </p> <p>Here is a picture of what shows up</p> <p><a href="https://i.stack.imgur.com/mv6c6.png" rel="nofollow noref...
1
1,406
Google Maps not shown / blank
<p>I've found different topic about this, but neither got me the maps working in my activity. I've followed the guide provided by google about using maps from google play service:</p> <ol> <li>I've download and added to my libraries google play services</li> <li>I've created a new activity based on the Service > Map A...
1
1,258
DateTime default value ASP.net core
<p>For a student project, I want to add default value - in the date field(ReleaseDate) but still have a calendar and the option of choosing a date.</p> <p><img src="https://i.stack.imgur.com/hU1aV.png" alt="Here is a screenshot of what it looks like"></p> <p>My code in Models/Post.cs:</p> <pre><code>[Display(Name = ...
1
2,898
Static images with Webpack not loading
<p>I am working with React using Webpack and I am having trouble getting static images to load. The loader seems to be correctly converting the image to a URL but it doesn't seem to work as the img src when the page is rendered. The relative path of the images are correct. Here is my code below:</p> <p>webpack.config....
1
1,147
How to compare dropdownlist text with static string
<p>Ok, a clearer picture (I hope)...</p> <p>In the HTML I have a combobox (dropdownlist) (<code>id= "program"</code>) ie: you click and select a value. The prompt text on the combobox (dropdownlist) is "Select a program..."</p> <p>Beneath this, on the page, I display a button (<code>id="addChosen"</code>). After the ...
1
2,804
runtime error:Invalid memory Address or nil pointer dereference-golang
<p>I am new to golang, am trying develop a login page with sesions. the code is building successfully but when I run in browser its saying 404 page not found.can any one help for me. Thanks in advance. Here is my code</p> <pre><code>// main.go package main import ( _ "HarishSession/routers" "github.com...
1
1,467
class org.springframework.security.core.userdetails.User cannot be cast
<p>I use SpringSecurity in my web-project. When I try to login with username and password, I have this error in my stacktrace :</p> <pre><code> class org.springframework.security.core.userdetails.User cannot be cast to class com.cesi.cuberil.service.JwtUser (org.springframework.security.core.userdetails.User and com.ce...
1
1,818
How to record a video directly on Helix Server from my Android device?
<p>I am new to server side development. I want to work on an application and I need to record a video on Helix Server from my Android device through my application. I have installed the Helix Server on a Windows Server PC.</p> <p>In the Android application, I am trying to upload a recorded video on the Helix Server. I...
1
1,797
Cannot log out while using the Facebook SDK - Android
<p>I have been trying to learn this Facebook SDK for a couple days now and i seem to be stuck. I am building a basic application for a school project, when a user logs in for THE FIRST TIME, Facebook allows you to type in an email and your password and it signs you in. Once the user clicks "Log Out" i log out.. To my k...
1
1,594
error: ISO C++ forbids declaration of ‘iterator’ with no type
<p>I am trying to build/run an old C++ system. I've already been able to built it in Ubuntu 9.10 with g++4.4</p> <p>Now I'm trying to build in Ubuntu 8.04 with g++4.2. And I am getting the following errors:</p> <pre><code>stringmap.h:353: erro: ISO C++ forbids declaration of ‘iterator’ with no type stringmap.h:353: e...
1
9,651
Getting Error : "NoClassDefFoundError: Failed resolution of: Landroidx/databinding/DataBinderMapperImpl" when running Espresso Instrumentation Test
<p>I'm running Espresso Tests in a multi-module project with modules:- :app, :core. I have added following code snippet in both the modules:-</p> <pre><code>dataBinding { enabled = true } </code></pre> <p>The app is running fine. But when I run Espresso tests (in :core module), it giving me following error:</p> ...
1
1,126
Get error while running Enable-Migrations
<p>I got below error while running Enable-Migrations on my ASP.NET MVC5 project (Powershell v5 &amp; Visual Studio 2015). I have tried to uninstall and re-install EntityFramework (v6.1.3) but no lucky. Does anyone know how to solve it?</p> <blockquote> <p>Type name 'Microsoft.VisualStudio.Shell.Package' is ambiguous...
1
1,520
Move Assignment incompatible with Standard Copy and Swap
<p>Testing out the new Move Semantics.</p> <p>I just asked about an issues I was having with the Move Constructor. But as it turns out in the comments the problem is really that the "Move Assignment" operator and "Standard Assignment" operator clash when you use the standard "Copy and Swap" idiom.</p> <p>This is the...
1
1,556
Failed to rename ; Access denied Tensorflow
<p>I am trying to build a machine learning code with tensorflow 2.0 in jupyter using the mnist dataset . The data set is being taken from tensorflow-datasets but during the initial downloading of the dataset , after it downloads its showing an error that it is unable to rename the dataset and then aborting the whole ...
1
1,877
Best way to load image url swift 2 in UITableView
<p>I want to create A Ui TableView with a list of image link with swift 2:</p> <p>for example : <code>var images = ["link1","link2",...,linkN"]</code></p> <p>I create a custom cell to display the image :</p> <pre><code> let cell = tableView.dequeueReusableCellWithIdentifier(CurrentFormTableView.CellIdentifiers.Ima...
1
1,149
Django Rest Framework - object of type 'type' is not json serializable error
<p>I am creating rest api using Django Rest Framework. I am using Djanfo 2.0.5 and python 3. I am getting error "Object of type 'type' is not JSON serializable." at the time of submitting form in browser. I tried with POSTMAN and also getting same error. I have attached snaps of my code of model, serializers and view c...
1
1,100
How to solve Unhandled rejection TypeError: Converting circular structure to JSON for jwt.sign
<p>When I try to create a token for a user like in <strong>this code</strong> :</p> <pre><code>const jwt = require('jsonwebtoken'); const passport = require('passport'); const Patient = require('../models').Patient; module.exports = { retrieve(req, res) { return Patient .find({ ...
1
1,488
Rendering Polygons and MultiPolygons From GeoJSON and/or Dynamically in different Fill Colors, Labels Etc
<p>I am trying to render polygons with different fill colours but from geoJson and am also open to doing so after rendering, dynamically. I would actually like to see both approaches. </p> <p>My current code has colour set in the geojson but it is only rendering as the default (black).</p> <pre><code>&lt;!DOCTYPE htm...
1
2,394
How to create nested directories in Phonegap
<p>I have tried <a href="https://stackoverflow.com/questions/10961000/nested-directory-creator-phonegap">this</a>, but it didn't satisfy my request at all. I write a new one:</p> <pre><code>var file_system; var fs_root; window.requestFileSystem(LocalFileSystem.PERSISTENT, 1024*1024, onInitFs, request_FS_fail); functi...
1
1,316
Setting default values and Creating into Database using Yii
<p>I'm trying to create a new user but I'm having trouble trying to create the user because some of the values that are needed to create a user must be default values that I'm not quite sure how to set. I also need to input into a different table while the actual "create" happens from a different controller.</p> <p>He...
1
2,285
Curly quotes causing Java Scanner hasNextLine() to be false -- why?
<p>I've been having an issue getting the java.util.Scanner to read a text file I saved in Notepad, even though it works fine with others. Basically, when it tries to read the problem file, it comes up completely empty handed -- hasNextLine() is false, buffer is empty, etc. I narrowed it down to the fact that it won't e...
1
1,166
Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1), thread 1894
<p><img src="https://i.stack.imgur.com/xBnQ8.jpg" alt="enter image description here"></p> <pre><code>private String recholder = "not"; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); outputFile = Environment.getExternalStorageDirectory(). getAbsolutePath() + "/recor...
1
2,551
Change some checkout fields type using jQuery for a specific state in Woocommerce
<p>I am trying to implement some conditional fields on checkout in Woocommerce.</p> <p>Objective: If user selects a specific state (CO) change the BILLING/SHIPPING CITY and POSTCODE text fields to select fields. Shipping needs to update according to value of POSTCODE.</p> <p>I am using Jquery to update the CITY and P...
1
2,166
RuntimeError: Python version 2.7 or >= 3.4 required
<p>I am trying to use keras in the LXPLUS cluster for CERN users.</p> <p>For that I am using a CMSSW release that already has python installed, just missing install keras... but...</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre clas...
1
1,178
java.nio.charset.MalformedInputException: Input length
<p>Code that reads word from file creates file with that name and writes content is it something to do with sw changes cause it worked fine till recently. Changed code and also the charset still the error</p> <pre><code>public class ForRwWr { public static void main(String[] args) { BufferedWriter bw = nu...
1
1,619
java.lang.NumberFormatException: Invalid double: "" at java.lang.StringToReal.invalidReal
<p>Hi I'm taking a value from edittext and converting displaying that value in other text but getting run time error java.lang.NumberFormatException: Invalid double: "".at java.lang.StringToReal.invalidReal. In my setAdapter its taking only franheit that means only todetails. I didn't understand where the bug is</p> <...
1
2,264
Oracle Max value via join two tables
<p>Oracle Max value via join two tables what am I doing wrong?</p> <p>tblKG:</p> <pre><code>KG_USER KG_DATE KG_TK_NO KG_SQ_NO KG_CNG_IND --------------------------------------------------------- 123456 200820 1 1 B 123456 200820 2 1 A 123456 200820 ...
1
1,733
How to fix CA Dispose objects before losing scope?
<p>CA throw the following message:</p> <pre><code>CA2000 Dispose objects before losing scope. In method 'GetMatchingJobsDeferred(BackgroundJobSearchParameters)', object '&lt;&gt;g__initLocal0' is not disposed along all exception paths. Call System.IDisposable.Dispose on object '&lt;&gt;g__initLocal0' before all refer...
1
1,235
How to solve large-scale nonlinear optimization problems with Ceres?
<p>I need to optimize a surface represented by a 2D grid of points to produce normal vectors of the surface that align with provided target normal vectors. The grid size is likely to be between 201x201 and 1001x1001. That means that the number of variables will be 40,000 to 1,000,000, as I am only modifying the z-coord...
1
4,925
'full-calendar' is not a known element:
<p>Hey I am new to Angular... So far I want to try out the fullcalendar. I try to run the module before and it works. However today I created a new Project and just followed the Steps which are described in the angular doc Furthermore I went trough all the steps in the fullcalendar doc but it is still not working. </p>...
1
2,830
Iterating ICollection from ViewModel within View
<p>I have two autogenerated database models (<strong>Product</strong> and <strong>ProductDetails</strong>) which I merged into a ViewModel so I can edit all data at once. </p> <p>What confuses me is the part where I am supposed to iterate through ICollection of Product_ProductCategoryAttributes (within ProductDetail m...
1
1,025
NIM game and AI player using Minimax algorithm - AI makes losing moves
<p>I've got an assignment to write a NIM game with a human player and an AI player. The game is played "Misere" (last one that has to pick a stick loses). The AI is supposed to be using the Minimax algorithm, but it's making moves that make it lose faster and I can't figure out why. I've been on a dead end for days now...
1
2,641
Forcing buttons to be horizontal in bootstrap
<p>Been trying to build an app with some buttons, and it seems impossible to force them to be horizontal, almost like they by default want to be vertical aligned for the fun of it. </p> <p>As far as I can tell, it is somehow related to the width of the page, and as far as I can tell its based on column system</p> <p>...
1
1,575
Vivado: post-synthesis simulation fails to start, although behavioral runs
<p>I have a module in Xilinx Vivado that fails to run post-synthesis simulation with followinf errors:</p> <pre><code>Starting static elaboration ERROR: [VRFC 10-380] binding entity insertion_sort does not have generic array_length ERROR: [VRFC 10-718] formal port &lt;sort_in&gt; does not exist in entity &lt;inserti...
1
1,838
Gatsby GraphQL error: Variable "$slug" is never used in operation "BlogPostQuery"
<p>I am unable to pull in the data of my Ghost blog using Gatsby. I am using Ghost as my back end and I am using a package to get the Ghost blog as a source. The problem is just getting the individual posts on the page. Here is <code>blog-post.js</code>:</p> <pre><code>import React from "react"; export default ({ dat...
1
1,228
README.md - image in svg with space in the upper and lower margins
<p>I am writing a <code>README.md</code> which is inserting this <code>svg</code> image:</p> <pre><code>Some text &lt;p align="left"&gt; &lt;img width="256" height="256" src="https://github.com/DavidCdeB/Trial/blob/master/Images/extract2.svg"&gt; &lt;/p&gt; Other text </code></pre> <p>Some blank space is ...
1
1,111
jquery mobile trigger('create')
<p>I have a situation where I am generating a list from an AJAX call then switching to the page. When I do this, I get the following error:</p> <pre><code> TypeError: d[0] is undefined [Break On This Error] ...-corner-all");this._addThumbClasses(h);this._addThumbClasses(e.find(".ui-link-in... </code></pre> <p>Th...
1
1,302
Navigation from Full-Screen View to Master-Detail View SAPUI5
<h2>Dear Gurus,</h2> <p>As my title, I'm tryig to create an App which contains a Full-screen Menu page with some tiles, and when user presses on one, it navigate to another Master-Detail page. My problem is I can't show the detail page. My code works as below:</p> <p><code>manifest.json</code>:</p> <pre><code> "r...
1
1,034
How to pass props to reducer? ReactJs and Redux
<p>I'm struggling with react-redux thing quite a lot of hours. I want to show to user <code>&lt;Alert /&gt;</code> when <code>isVisible</code> value is true. I'm still don't understand well architecture of redux. So, I'm trying to pass value to reducer but it doesn't work. What I'm doing wrong? </p> <p>Alert component...
1
1,364
How to resize table width based on screen size
<p>I'm working on this page which contains a table inside modal-body.</p> <p>The screen i work on is 22 inch and the table looks perfect on that. But when I see it on my laptop Macbook 13 inch, the table extends to the width of the screen. How do I resize automatically ? <a href="https://i.stack.imgur.com/cuSWK.png" ...
1
1,465