title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Bootstrap 4 input field in popover
<p>The problem is described in title. I have a Bootstrap 4 modal and one popover with input field with buttons. In IE 11 everything is ok, but in Firefox input loses focus.</p> <p>Popover:</p> <pre><code>$('[data-toggle="popover"]').popover({ container: "body", sanitize: false, content: function () { ...
0
3,478
Using RenderAction(actionname, values) in MVC4 issue
<p>I need to display some child objects (<code>Items</code>) of an entity <code>Request</code>. Instead of Request I found it better to pass in a view that contains more info than the original Request Entity. This view I called <code>RequestInfo</code>, it also contains the original Requests <code>Id</code>.</p> <p>Th...
0
1,222
Fetch table values using alembic and update to another table.
<p>I have <code>oauth secret</code> and <code>oauth key</code> in <code>client</code> table. Now I moving them to <code>oauth credentials</code> table which will be created during migration. Alembic produced following schema for upgrade. </p> <pre><code>from myapp.models import Client, ClientCredential from alembic im...
0
1,445
tmux no server running on /tmp/tmux-*/default - Windows msys2 terminal
<p>I'm new to tmux and have been trying to get a <code>.tmux.conf</code> that suits me and build a script to setup a session. At some point I started getting this error </p> <pre><code>no server running on /tmp/tmux-1065767/default </code></pre> <p>This message only appears when there is no active session and I run a...
0
1,468
Google AppEngine Session Example
<p>I just <a href="http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions" rel="noreferrer">enabled Session</a> in my Google AppEngine/Java + GWT application. And how do I use it? How do I get session ID and play will all good stuff from it? Are there any real examples of simple login page w...
0
1,262
Getting Null Context when trying to retrieve PackageInfo
<p>Spent the entire day on this but can't get it to work.</p> <p>I'm trying to create an app drawer. I want get a list of currently installed applications and then put it in an GridLayout.</p> <p>I'm getting a nullPointerException when I try to call <code>getPackageManager</code> from a class that extends my MainActi...
0
1,169
How do I use WS-Addressing properly in an Axis2 client?
<p>All, I'm attempting to write a Junit test that calls a Web Service client in Axis2.1.5, and I've gotten confused about how to exactly to set it up to use WS-Addressing.</p> <p>I've generated a client stub using wsdl2java, and I'm using the axis2.xml and modules repository from the axis2 binary distribution.</p> ...
0
1,034
Docker Buildx Cannot Pull From Local for Inherited Image
<p>I have 2 Dockerfiles on my Host Machine ( Ubuntu 20.04 ). I am running docker-ce version Docker version 19.03.12, build 48a66213fe with Experimental Features enabled. I am able to build each of them with &quot;docker buildx&quot; for the ARM architecture and successfully run them on my embedded Linux ARM board.</p> ...
0
2,933
Making Async Calls With Vuex
<p>I'm just starting to learn Vuex here. Until now I've been storing shared data in a <code>store.js</code> file and importing <code>store</code> in every module but this is getting annoying and I'm worried about mutating state. </p> <p>What I'm struggling with is how to import data from firebase using Vuex. From what...
0
1,698
DIV moves when I put text in it
<p>I spent some time creating a pedigree out of div layers on <a href="http://dev4.peeknpoke.co.uk/dogs/jester.php" rel="noreferrer">this site</a> and I got it all nicely aligned.</p> <p>But when I put text in it, whether just in the div or in p tags, it moves the div layer down significantly.</p> <p>It doesn't seem ...
0
1,138
I implemented a google sign in in ios app. Now, how can I verify if user is logged in and if not - return him to the login page with Swift?
<p>As I wrote in the title of this question - I went through this tutorial <a href="https://developers.google.com/identity/sign-in/ios/sign-in" rel="noreferrer">https://developers.google.com/identity/sign-in/ios/sign-in</a> and now I'm able to log in the user to my app based on his google credentials. </p> <p>The way ...
0
2,974
dropdownlist in kendo ui grid not selecting any value
<p>Currently i have inline editing grid as in the following, I have drop down list in coloumn CStatusID, However, it does not selected value into when trying to save to database</p> <p><strong>VIEW:</strong></p> <pre><code>@(Html.Kendo().Grid(Model) .Name("SList") .HtmlAttributes(new { @Style = "align:cen...
0
1,211
Could not load file or assembly 'PDFNet' or one of its dependencies. An attempt was made to load a program with an incorrect format
<p>I'm trying to build a sample web application from a blank web form template in VS2012, and add the PDFNet dll to it. If I run the project in .NET 3.5 no problem. If I run it in .NET >= 4 I get this error: </p> <p>Could not load file or assembly 'PDFNet64' or one of its dependencies. An attempt was made to load a pr...
0
2,156
How to fix python-selenium error "connection refused" when initializing a selenium webdriver?
<p>I am running very complex python-selenium tests on non-public webpages. In most cases these tests run fine, but sometimes one of these tests fail during the initialization of the webdriver itself. </p> <p>Hint: This error happens when trying to initialize a webdriver, i.e. when doing something like this:</p> <pre>...
0
4,217
How to hide "Deprecated: mysql_connect()" warning?
<p>I have problem.. Well.. The code that I am using is working like a dream but this message makes page look awful</p> <pre><code>Deprecated: mysql_connect(): The mysql extension is deprecated and </code></pre> <p>I want to hide this message from the page. Is it possible and if so.. How?</p> <p>It shows that message...
0
1,065
Setting private key permissions with PowerShell
<p>I have a PowerShell script that installs pfx certificate into the <em>LocalMachine</em> certificate store. The function looks like this:</p> <pre><code>function Add-Certificate { param ( [Parameter(Position=1, Mandatory=$true)] [ValidateNotNullOrEmpty()] [string]$pfxPath, [Parameter(Position=2, Man...
0
1,211
Leaflet maxBounds - bounds do not work
<p>I tried out Leafletjs maxBounds with <a href="https://www.mapbox.com/mapbox.js/example/v1.0.0/maxbounds/" rel="noreferrer">example code I found at Mapbox</a>.</p> <p>Below you find my complete code, also in a <a href="http://jsfiddle.net/wolfmuc/1zyL4q4a/6/" rel="noreferrer">jsfiddle here</a>.</p> <pre><code>&lt;!...
0
1,073
Raw socket packet sniffer in Python 3.6 on Windows
<p>I am trying to sniff packets but i am getting strange output and i don't understand the reason..<br> So that's my code <strong>please</strong> help me<br> (I'm using Python 3.6 on Windows 8.1)</p> <h2>Code:</h2> <pre><code>import socket import struct import binascii import textwrap def main(): # Get host ...
0
1,077
How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0?
<p>In ASP.NET Core RC 1 I used the following code to retrieve the value of context (full address of the page). Then I recorded this value in the configuration.</p> <pre><code>public class Startup { public IConfigurationRoot Configuration { get; set; } private IHostingEnvironment CurrentEnvironment { get...
0
1,448
Android Studio: Error Code 1: Gradle: Execution failed for task ':app:processDebugResources'
<p>I want to compile a project, I got <code>Error:Gradle: Execution failed for task ':app:processDebugResources'.</code></p> <p>here is the exception:</p> <blockquote> <p>Error:Gradle: Execution failed for task ':app:processDebugResources'. com.android.ide.common.internal.LoggedErrorException: Failed to run comma...
0
1,051
org.apache.jasper.JasperException: An exception occurred processing JSP page /editinfo.jsp
<p>I have this jsp code where I am trying to edit information for the user my web page. I am new to jsp programming and I'm experiencing errors. Here is my code:</p> <pre><code>&lt;%@page import="DatabaseTransactions.UserPhotosDataContext"%&gt; &lt;%@page import="java.sql.ResultSet"%&gt; &lt;%@page contentType="text/h...
0
3,215
pom.xml file error due to dependencies and/or plugins
<p>I seem to have a pom.xml file error with dependencies/plugins, I generated this pom.xml file by converting the project to Maven which then only generated this pom file. View the error codes below. The Java code itself does not contain errors according to Eclipse STS (Java Spring), all jar files required by imports i...
0
3,505
ASP.NET MVC Html.BeginForm Problem
<p>I have a partial view:</p> <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;DomainModel.Entities.Product&gt;" %&gt; &lt;div class="item"&gt; &lt;h3&gt;&lt;%= Model.Name %&gt;&lt;/h3&gt; &lt;%= Model.Description %&gt; &lt;% using (Html.BeginForm("AddToCart", "Cart")) ...
0
1,527
Sencha Touch 2 - How to get form values?
<p>I've got a Sencha Touch 2 MVC app with a form as a view. I'm trying to get it's values from the controller with no success.</p> <p>How could this be done? I'm posting my view/controller code for this one.</p> <p>View:</p> <pre><code>Ext.define('MyApp.view.LoginForm', { extend: 'Ext.form.Panel', config: { ...
0
1,268
Validating against a Schema with JAXB
<p>I've been looking for solutions to this problem for far too long considering how easy it sounds so I've come for some help.</p> <p>I have an XML Schema which I have used with xjc to create my JAXB binding. This works fine when the XML is well formed. Unfortunately it also doesn't complain when the XML is not well...
0
1,394
npm run build doesn't work."Opening index.html over file:// won't work."
<p>I'm trying to use Vue(v2) to build a single page application. Running the command <code>npm run build</code> doesn't work; I don't find a static file created in my folder. Although I don't get any error message, I see this in the command line after executing <code>npm run build</code>:</p> <blockquote> <p>Build c...
0
2,174
How to use two datasets in chart.js doughnut chart?
<p>On the <a href="http://www.chartjs.org/samples/latest/charts/doughnut.html" rel="noreferrer">chart.js website</a>, if you click the "Add Dataset" button under the chart, you get a doughnut inside a doughnut. Here's a screenshot of what it looks like:</p> <p><a href="https://i.stack.imgur.com/CIq6u.gif" rel="norefer...
0
1,462
groovy.lang.MissingPropertyException: Could not get unknown property 'manifestOutputFile'
<p>After upgrading my app from RN 0.42 to RN 0.59.10 this issue came up, unable to build my project.</p> <pre><code>FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. &gt; groovy.lang.MissingPropertyException: Could not get unknown property 'manifestOutputFile'...
0
3,389
RecyclerView is cutting off the last item
<p>I have a fragment with a toolbar and a recyclerView inside it.</p> <p>I am populating the recyclerView with dummy data and then try to show them. For some reason, the last element of the recyclerView is getting cut-off.</p> <p>This is the XML of the fragment:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"...
0
3,503
TensorFlow: Dst tensor is not initialized
<p>The <code>MNIST For ML Beginners</code> tutorial is giving me an error when I run <code>print(sess.run(accuracy, feed_dict={x: mnist.test.images, y_: mnist.test.labels}))</code>. Everything else runs fine. </p> <p>Error and trace:</p> <pre class="lang-py prettyprint-override"><code>InternalErrorTraceback (most rec...
0
1,560
HTML file input control with capture and accept attributes works wrong?
<h1>My problem:</h1> <p>Then user click the <code>input type=file</code> user must get the <code>upload file + camera</code> dialog. I'm using for this html attributes <code>accept</code> and <code>capture</code>. But on some modern devices this doesn't happen. Below there are the code examples and the table which of ...
0
1,467
Creating a Rechart barchart with rounded edges
<p><a href="https://i.stack.imgur.com/7GUCs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7GUCs.png" alt="enter image description here"></a></p> <p>I'm trying to create a barchart like this, where the bar is X length, and each segment of the bar is proportional in length to the % of the data it contains. I...
0
1,031
Understanding the "left_index" and "right_index" arguments in pandas merge
<p>I am really struggling to understand the "left_index" and "right_index" arguments in pandas.merge. I read the documentation, searched around, experimented with various setting and tried to understand but I am still confused. Consider this example:</p> <pre><code>left = pd.DataFrame({'key1': ['K0', 'K0', 'K1', 'K2']...
0
1,197
Can't connect to jboss server - Operation failed with status WAITING
<p>Got this exception while trying to connect to local jboss server (wildfly-8.2.0.Final)</p> <pre><code> javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: Operation failed with status WAITING] at org.jboss.naming.remote.client.ClientUtil.namingExc...
0
1,146
Karma - Chrome failed 2 times (cannot start). Giving up
<p>I've been trying to run my tests using <strong>karma-chrome-launcher</strong>, but everytime I run my tests it throws this error:</p> <pre><code>INFO [launcher]: Starting browser Chrome ERROR [launcher]: Cannot start Chrome INFO [launcher]: Trying to start Chrome again (1/2). ERROR [launcher]: Cannot start Chrome ...
0
1,286
org.hibernate.AssertionFailure: possible non-threadsafe access to the session
<p>I am developing a web application with AngularJs as front-end and Spring+Hibernate as the service layer. Service Layer has a set of REST API's that are consumed by AngularJs. The front end of the application has no major issues. But in the service layer, I am facing some concurrency issues. For some scenarios, I hav...
0
6,291
Left-joining the same table multiple times
<p>Suppose I have a game that can be played by 2, 3 or 4 players. I track such a game in my database (MySQL 5.1) in three tables, given below. I am hoping that the fields are self-explanatory:</p> <pre><code>create table users (id int, login char(8)); create table games (id int, stime datetime, etime datetime); create...
0
1,505
227 Entering Passive Mode (124,153,94,30,242,138)
<p>I am uploading images thro FTP using SimpleFTP.java code. Am getting the error mentioned in title and not able to upload images. It just saves the images in database with a size of 0KB. Please help me to resolve this issue as I searched a whole day but not able to find a correct solution.</p> <pre><code>public clas...
0
2,944
Lombok and Maven
<p>I'm trying to use Lombok with Maven and VRaptor on IntelliJ but it doesn't work.</p> <p>I already read some info in stackoverflow but none solved my problem, i already enabled the Annotation Processor in Intellij but still nothing.</p> <p>I tryied to compile it from command-line too (Windows) and didn't work.</p> ...
0
3,588
IDX:20803 Unable to obtain configuration from... - Web API
<p>Hi I am trying to test a simple WebApi application with JWT token. Mainly, I have followed the example <a href="https://jasonwatmore.com/post/2019/10/11/aspnet-core-3-jwt-authentication-tutorial-with-example-api" rel="nofollow noreferrer">here</a></p> <p>I am using https.</p> <p>For the time-being, Authorization i...
0
1,521
How to set SoapClient HTTP content type to application/soap+xml
<p>I need to change the content type from "text/xml; charset=utf-8" to "application/soap+xml; charset=utf-8". </p> <p>I'm sending a request from PHP to another server (Oracle server) using SoapClient class that exist by default in PHP. I'm using PHP v7.0.10.</p> <p>As per SoapClient documentation I should just set th...
0
2,106
Why the compiler complains that std::thread arguments must be invocable after conversion to rvalues?
<p>Why the compiler complains if the the thread function delaration is changed to <code>void thr(std::shared_ptr&lt;Base&gt;&amp; p)</code>.Complie error:</p> <blockquote> <p>gcc-10.1.0/include/c++/10.1.0/thread: In instantiation of 'std::thread::thread(_Callable&amp;&amp;, _Args&amp;&amp; ...) [with _Callable = v...
0
1,554
How to generate a JWT access token with some custom claims in it?
<p>I'm trying to have my authorization server generate a JWT access token with some custom claims in it.</p> <p>Here is what the Bearer token returned by the authorization server <code>/auth/token</code> endpoint looks like: <code>51aea31c-6b57-4c80-9d19-a72e15cb2bb7</code></p> <p>I find this token a bit short to be ...
0
2,152
OpenSSL Config error when generating self-signed certificate string too long
<p>With the following OpenSSL Config</p> <pre><code>[ req ] default_bits = 2048 default_md = sha256 default_keyfile = drone-ci-web.company.com.key.pem distinguished_name = subject req_extensions = req_ext x509_extensions = x509_ext string_mask = utf8only prompt = no e...
0
1,828
Hive doesn't work on install
<p>I get the following error in Hive when executing any command.</p> <pre><code>hive&gt; show tables; FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Unexpected exception caught. NestedThrowables: java.lang.reflect.InvocationTargetException FAILED: Execution Error, return code 1 from org.apache.hadoop....
0
1,344
ASP.NET MVC 3 - Unable to find the requested .Net Framework Data Provider
<p><strong><em>Background-info:</em></strong> </p> <p>I'm using Microsoft Visual Web Developer 2010 Express.<br> Info about my (lack of) experience: the problem occured within the first tutorial that I'm trying to work through. </p> <p>Some additional-info:</p> <ul> <li>I'm comfortable with C#, Postgres, Rails (s...
0
1,333
Inflated layout's buttons onClick listener not working
<p>All my other onClick methods work except the ones in which I have to inflate the layout to get the button! What am I doing wrong! Here is some code:</p> <pre><code>package com.games.think; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOExcept...
0
4,028
Why do I keep getting this big error in python. Traceback (most recent call last)..... and AttributeError
<p>I have been learning python and getting different things off the internet and putting them all into this game I am making: "You wake up..." It's a text based assci RPG (Roll playing game). It worked until I got this error:</p> <pre><code>Traceback (most recent call last): File "C:\Users\William\Desktop\Programmin...
0
5,115
Understanding "corrupted size vs. prev_size" glibc error
<p>I have implemented a JNA bridge to FDK-AAC. Source code can be found in <a href="https://github.com/sheinbergon/jna-aac-encoder" rel="noreferrer">here</a></p> <p>When bench-marking my code, I can get hundreds of successful runs on the same input, and then occasionally a C-level crash that'll kill the entire process...
0
2,634
Scale an image to maximally fit available space and center it
<p>I am building a single page application. In one of the views I want to show an image which must take as much available space as possible:</p> <ul> <li><strong>most important:</strong> it must keep the aspect ratio</li> <li>it must not be cropped</li> <li>it must be stretched horizontally and/or vertically (without c...
0
1,032
Spring Boot and Security with custom AngularJS Login page
<p>I'm implementing a custom AngularJS login page for Spring Security and having issues authenticating.</p> <p>Followed this tutorial/example, and their <a href="https://github.com/dsyer/spring-security-angular/tree/master/single" rel="noreferrer">example works fine locally</a>.</p> <p>However, when I try to implemen...
0
4,001
docker can't build because of alpine error
<p>Hi I am trying build a docker and Docker file looks like this.</p> <pre><code>FROM alpine LABEL description "Nginx + uWSGI + Flask based on Alpine Linux and managed by Supervisord" # Copy python requirements file COPY requirements.txt /tmp/requirements.txt RUN apk add --no-cache \ python3 \ bash \ ng...
0
1,384
HelloWorld example for sending an object over RabbitMQ via EasyNetQ between two different applications
<p>Hi I am attempting to send a simple object like through RabbitMQ via EasyNetQ. I'm having issues deserializing that object on the subscription side. Anyone able to show me a sample of how this works. Keep in mind the object being sent is defined in it's own project and not shared among the publisher and subscribe...
0
1,512
What is the right way to add an environment configuration to angular.json?
<p>I just updated angular cli to version 6. And of course my app is broken and have been trying to look at docs and SO questions trying to figure out how to add an environment to angular.json? I want to be able to run the equivalent of ng serve --env=local and then have it run a local build in the local server... I hav...
0
3,688
Spring Security 3 - Not granted any authorities
<p>i'm tring to use ldap for authentication on Weblogic Server but I have this problems always:</p> <p>Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffe3f86: RemoteIpAddress: 127.0.0.1; SessionId: WhgyMmQddKLfnFjhTLn5Thl421hWZ8sLV732ctYLSLhQpQLW1JFR!-860386732!...
0
2,820
Unable to Destroy activity Error
<p>Im new in android... when i press back button it gives me the below Error...<code>12-01 11:10:07.952: E/AndroidRuntime(3171): FATAL EXCEPTION: main 12-01 11:10:07.952: E/AndroidRuntime(3171): java.lang.RuntimeException: Unable to destroy activity {com.example.IranNara/com.example.IranNara.FirstPage}: java.lang.NullP...
0
3,004
How do you reference attribute list from Apache Tiles template
<p>I am trying to define an attribute list in the base template that includes all css links and sub definitions would append additional css links as needed. I defined the list in the tiles definition configuration file and attempted to use the list in the template.jsp file, but i get the following error:</p> <blockquo...
0
8,811
NHibernate - not-null property reference a null or transient value
<p>I'm getting this exception (Full exception at the bottom):</p> <pre><code>NHibernate.PropertyValueException was unhandled by user code Message="not-null property references a null or transient valueClearwave.Models.Encounters.Insurance.Patient" Source="NHibernate" EntityName="Clearwave.Models.Encounters.Insuranc...
0
2,226
Why would a database timeout?
<p>when i run queries to the database im constantly getting this</p> <pre><code>System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Generated: Tue, 18 Aug 2009 08:05:39 GMT System.Web.HttpUnhandledException: Exception of...
0
1,917
Laravel using where clause on a withCount method
<p>I am trying to do a where clause on withCount method of laravel's eloquent query builder using this piece of code.</p> <pre><code>$posts = Post::withCount('upvotes')-&gt;where('upvotes_count', '&gt;', 5)-&gt;get(); </code></pre> <p>and this code is giving me this error.</p> <blockquote> <p>SQLSTATE[42S22]: Colu...
0
1,191
dbunit test fails with NoSuchTableException, but table exists
<h1>Error</h1> <pre><code>java org.junit.runner.JUnitCore TestCase JUnit version 4.10 .E.. Time: 0.28 There was 1 failure: 1) testDbNoChanges(TestCase) org.dbunit.dataset.NoSuchTableException: Did not find table 'EVENTS' in schema 'null' </code></pre> <h1>Question</h1> <p>What does this error mean? What am I doing w...
0
1,289
ERROR Error: StaticInjectorError(AppModule)[StorieControllerComponent -> DataService]:
<p>I am getting this error and I already check all the import and Modules.</p> <p>I am trying to access to a <code>JSON</code> file inside my project and use that data in an object but I not sure what is the problem here. I have my object well define with my <code>JSON</code> and I am not sure that the problem is with...
0
1,368
Styled-Components vs SASS (SCSS) or LESS
<p>I came across a ReactJS Boilerplate which had good reps and is community driven. Styling section emphasized more on styled component CSS but never stopped from switching to conventional CSS styling methodologies. Although this pulled my interests what makes the Styled-Component CSS stand out and why need to adopt it...
0
1,052
java.lang.VerifyError: Incompatible argument to function
<p>I have a mavenized Spring 3 project that builds and runs fine on one machine. The <em>exact same</em> project builds fine on a second machine, but when I try to hit a page (one that works fine on the other machine), I get the following stacktrace:</p> <pre><code>java.lang.VerifyError: (class: org/apache/jsp/tag/web...
0
2,077
Java REST ful client code is problem
<p>I am trying to create the REST-ful web service in java. This REST-ful web service contains both Hibernate configuration and Rest-ful configuration. Actually the java web service is working perfect. but when i am try to execute the client code for that web service.</p> <p>The jar files that am using is</p> <pre><co...
0
1,924
Unable to start Docker Service in Ubuntu 16.04
<p>I've been trying to use <strong>Docker (1.10) on Ubuntu 16.04</strong> but installation fails because <strong>Docker Service doesn't start</strong>. I've already tried to install docker by <em>docker.io</em>, <em>docker-engine</em> apt packages and <code>curl -sSL https://get.docker.com/ | sh</code> but it doesn't w...
0
2,895
Remove focus from a EditText in Android
<p>I have two <code>EditText</code>s and one <code>CheckBox</code> and a <code>Button</code> in my layout in the above order. After entering the values to the <code>EditText</code>, the user has to accept terms and conditions by clicking the <code>Checkbox</code>. I need to remove focus from <code>EditText</code>s afte...
0
1,602
How do I use local state along with redux store state in the same react component?
<p>I have a table that displays contacts and I want to sort the contacts by first name. The contacts array comes from the redux store, which will come then come through the props, but I want the local state to hold how those contacts are sorted, since it's local UI state. How do I achieve this? I so far have placed con...
0
1,647
WordPress Sub Menu - Show On Hover
<p>I have a WordPress site set up with some navigation. Each of the parent nav links contains sub menus.</p> <p>What I want to do in psuedoish code is as follows:</p> <ul> <li>If current page, then show current page sub menu;</li> </ul> <p>BUT</p> <ul> <li>Even if current page, if another parent link is hovered on...
0
1,187
Hibernate configuration file
<p>It seems that I have a problem with my configuration file but I really don't find out what it could be.</p> <p>I used to use hibernate 3.6, I now use hibernate 4.2, there are proly some important changes that I ignore, but the doc seems to not change this part.</p> <p>Here is my configuration file:</p> <pre><code...
0
1,518
Getting __init__() got an unexpected keyword argument 'instance' with CreateView of Django
<h1>Some details:</h1> <pre><code>Request Method: GET Request URL: http://localhost:8080/user/create Django Version: 1.5.1 Exception Type: TypeError Exception Value: ____init____() got an unexpected keyword argument 'instance' Exception Location: /place/venv/local/lib/python2.7/site-packages/django/views/generic/edit.p...
0
1,069
What is reason for getting ProducerFencedException during producer.send?
<p>Trying to load around 50K messages into KAFKA topic. In the beginning of few runs getting below exception but not all the time.</p> <pre><code>org.apache.kafka.common.KafkaException: Cannot execute transactional method because we are in an error state at org.apache.kafka.clients.producer.internals.TransactionMana...
0
1,135
React auto scroll to bottom on a chat container
<p>I am trying to build a chat page using react. And I have obviously come to a problem where the chat bubbles container doesn't automatically scroll down to bottom on componentDidMount and Update. </p> <p>I was looking through the previous Q&amp;A but couldn't find any decent solution.</p> <p>Here is the comoponent....
0
1,165
How to record video from ARKit?
<p>Now I'm testing ARKit/SceneKit implementation. The basic rendering to the screen is kinda working so then I wanna try recording what I see on the screen into a video. </p> <p>Just for recording of Scene Kit I found <a href="https://gist.github.com/lacyrhoades/7eb42d4a9059396e2f33767b9eecc2df" rel="noreferrer">this ...
0
4,568
NullPointerException in eclipse in Eclipse itself at PartServiceImpl.internalFixContext
<p>I have a problem about eclipse IDE, I can't open any file in my work space; if I try to open file, eclipse will alert the following error dialog </p> <pre><code>"An error has occurred. See error log for more details. java.lang.NullPointerException" </code></pre> <p>I go to see .log file in .meta at workspace and I...
0
2,015
Testing createAsyncThunk Redux Toolkit Jest
<p>I am newbee with the redux toolkit library and especially when it comes to testing. I looked through the documentation and read a bunch of posts and articles in regards to this subject but still struggle. I build a simple todo app and included a couple of API requests to cover asynchronous cases. Testing those turne...
0
2,038
Python cannot allocate memory using multiprocessing.pool
<p>My code (part of a genetic optimization algorithm) runs a few processes in parallel, waits for all of them to finish, reads the output, and then repeats with a different input. Everything was working fine when I tested with 60 repetitions. Since it worked, I decided to use a more realistic number of repetitions, 200...
0
1,341
Pass Parameters to Tap Gesture Xamarin Forms
<p>I am trying to pass parameters from a page to another page. These passed parameters will be used to select from an SQL table. The page is built as follows: (The code behind)</p> <pre><code>private MainRoutePageViewModel mainroutepageviewmodel; private List&lt;RouteInfo&gt; routeinfo; </code></pre> <p>Constructor:<...
0
3,306
PHP Manual GZip Encoding
<p>I was testing my website with Page Speed and the result was around 70/100. Enable Compression was the first and most important factor in slowing it down.</p> <p>I know that I can do that by modifying the php.ini to automatically do that but I was more interested in the manual method (<code>gzencode</code>). </p> <...
0
1,056
Android Firebase DynamiteModule: Failed to load module descriptor
<p>Since upgrading to the newest version of Firebase (9.0.0), I can't get rid of the following two errors when authenticating a user through <code>signInWithEmailAndPassword()</code>. Does anyone have an idea what's going on?</p> <pre><code> 05-19 18:09:49.245 23550-23589/[PACKAGE] E/DynamiteModule: Failed to load ...
0
1,071
getDatabase called recursively
<p>My first time asking a question here, so be gentle, Lol.</p> <p>Anyway. Ive been working on an Android and my latest build ran flawlessly.. Until yesterday, when IT gave me a new workstation. Since getting this new workstation, I keep getting the following error: </p> <p><code>04-11 17:34:53.282: E/AndroidRunti...
0
1,725
Uncaught Reference Error: google is not defined
<p>I saw a dozen of questions with the same title &amp; the problem. After going through all those problems &amp; making changes in the code, I wasn't able to resolve this issue.</p> <p>My Google map works fine. But in the console, this error is shown. Can anyone please help me figure out this problem.</p> <p>I speci...
0
1,564
Creating a button on an HTML5 canvas using JavaScript
<p>I'm trying to write a simple game to teach some basic Welsh using the HTML5 canvas and JavaScript.</p> <p>I currently have a web page, which displays a canvas, and on the canvas, the 'start button' has been drawn, which the user will click to start the game.</p> <p>I now want to add the functionality to that butto...
0
3,390
Check the inheritance chain from module; it may not be inheriting a required module or a module may not be adding its source path entries properly
<p>I want to create a gwt maven project with multiple gwt modules. some of them are just utility modules means they have no entry point. Basically I have already a gwt project with multiple gwt modules in it and I have converted it to maven but while compilation its giving me following exception :</p> <blockquote> <...
0
1,981
Java Drag and Drop and Mouse Listeners
<p>I am using logic like the following with a touch interface, so I'd like to be able to use mousePressed to initiate a drag, yet at the same time be able to use mouseClicked or mouseReleased if the user does not drag.</p> <p>On mousePressed, I have a drag being started. On mouseClicked, I want it to print out "mouse...
0
1,327
Docker [Errno 111] Connect call failed ('127.0.0.1', 6379)
<p>I am trying to follow the tutorial here <a href="https://channels.readthedocs.io/en/latest/tutorial/part_2.html" rel="noreferrer">https://channels.readthedocs.io/en/latest/tutorial/part_2.html</a> and check if channel layer can communicate with Redis. The only different thing I'm doing is that I'm using docker-compo...
0
1,329
How to configure Prettier to format Styled Components conditional rendering
<p>I'm using Prettier, Eslint and Styled components - backtick style declaration. It works so far but Prettier formats the conditional rendering of the Styled components in the way that Eslint doesn't allow and after the formatting Eslint starts to complain and the build fails.</p> <p>Let me show you the problem via ...
0
1,666
Problem with Java Applet to connect our server to call a PHP file
<p>We are facing a problem with lastest JRE 6 update 22 and 23. The problem is we are running a site which uses Java Applet to stores/retrieve datas by calling a PHP file. For last 7 years we never had a single issue but now with latest JRE are we having a problem. The Java applet is loaded fine but failed to connect o...
0
1,345
How to delete selected row from a datagridwith context menu in Silverlight?
<p>I need to be able to delete a selected row from a datagrid with "Delete” context menu item. I have hard time finding the path to the selected row. I am wondering if someone can look at the code below and let me know what will be the appropriate to do within my code. Thank you in advance.</p> <p>XAML:</p> <pre><cod...
0
2,451
CMAKE missing sysroot when cross compiling
<p>I am having some troubles setting up cross compiling with CMAKE. The toolchain I am using is created in yocto which works perfectly outside of cmake.</p> <p>I have followed a tutorial to setup the following toolchain file:</p> <pre><code>SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_VERSION 1) SET(CMAKE_SYSTEM_PRO...
0
1,405
Trigger state in button tag using ui-sref
<p>What is the elegant way to trigger a state with <code>angular-ui-router</code> by clicking <code>&lt;button&gt;</code>?</p> <p>I am using <code>ui-sref="main"</code> and it doesn't seem to work although it works with <code>&lt;a&gt;</code> though. </p> <p><strong>HTML:</strong></p> <pre><code>&lt;!DOCTYPE html&gt...
0
1,106
Sequelize findAll with association and foreign key
<p>I'm using sequelize to model a mySql-database schema in my node-application. Let's say I have 3 table: Project, User and Role.</p> <p>It's a "Many to Many" association between Project and User through "Project_User" where is defined the role of a user for a project.</p> <p><strong>Project Model :</strong></p> <pr...
0
1,204
Uncaught InvalidValueError: initMap is not a function
<p>I am trying to load a google map with some specific parmeters. I understand the problem is most likely that the initMap function needs to be declared globally. However, I have no idea how, even after searching a number of StackOverflow post with similar problems.</p> <p>The rest</p> <pre><code> &lt;script&gt; va...
0
3,025
An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - invalid flag: -author
<p>Hi am facing some maven plugin issues, when am trying to deploy java-webservices project, My project was not downloading <code>"maven-javadoc-plugin : 2.4"</code> plugins, I manually installed <code>"maven-javadoc-plugin 2.5"</code> version jar into my .m2/repository. Am getting</p> <pre><code>"An error has occurre...
0
2,828
SLF4J NoSuchMethodError on LocationAwareLogger
<p>This is a question that has been asked before, but unfortunately no solution seems to work for me. I am facing this exception (with abridged stack trace):</p> <pre><code>java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava...
0
7,974
Terraform Creating map dynamically using local variable instead of input variable
<p>Requirements: I have a bunch of EC2s. Which I am grouping according to the Tags. in this example total number of group =4 and each group has 7 EC2 : 1 parent-6 Child. here i am sharing code of child whose naming matters.</p> <p>working code:Here I am sharing the child EC2 code which is working perfectly fine with th...
0
1,108
TypeError: Cannot read property 'kind' of undefined at getAssignmentTargetKind
<p>This problem started to occur when updating my Angular 6 project to 7.x.</p> <p>I opened an issue on the angular-cli github repo but they couldn't help.</p> <p>So what I did is create a new project and add all components one by one to "hopefully" notice what caused the problem.</p> <p>Unfortunately I couldn't ide...
0
1,262
Sending Email from Visual Basic
<p>I am working on a project and part of this project is to send emails to a list of email addresses located in SQL. I am using the following code, which, when sent, just throws a "Sending Failed" error. Nothing else.</p> <p>Can anyone please help me out with this one? I would really appreciate it.</p> <pre><code> ...
0
1,051
Using a List, Lookup or Dictionary for a large list of data
<p>I have a static class in my Class Library called Lookup, I am using this class to look up different values (in this case Locations). </p> <p>These values can number into the hundreds. Since 95% of my customers install my app on a machine without Internet access I have to assume that my applications will not have in...
0
1,269
Bootstrap change $grid-gutter-width
<p>I am using Bootstraps grid system and I need about a <strong><code>2px</code> space between each column</strong>. I've tried Column-Gap but nothing. </p> <p>Could anyone help? </p> <p>Code HTML:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-md-3" id="one"&gt; &lt;h3&gt;Pi...
0
1,129