title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Invalid attribute value for 'name' in element 'element'
<p>I have an XML document as below:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;cbe:CommonBaseEvents xmlns:cbe="http://www.ibm.com/AC/commonbaseevent1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;cbe:CommonBaseEvent&gt; &lt;sourceComponentId component="25541"...
1
3,527
Modifying JSON file using Golang
<p>I am attempting to read in a JSON file in Golang, modifying this JSON file, and then creating a new JSON file/writing over this JSON file. I have seen several samples online, but can't seem to put two and two together to get the required result. I tried just making my own JSON str in GO and modifying that, but have ...
1
1,560
NSManagedObjectModel mergedModelFromBundles error
<p>I'm working with Core Data and having a lot of trouble's getting data into the database right off the start of my app.<br> Below is some of the code I've grabbed from a tutorial I followed. The point where I get the SIGABRT is outlined below. Any suggestions or help is appreciated Thanks</p> <pre><code>//THIS FUNCT...
1
1,105
How do we unit test a Mojolicious controller?
<p>We have created the following simple <a href="http://mojolicio.us" rel="noreferrer">Mojolicious</a> controller:</p> <pre><code>package SampleApp::Pages; # $Id$ use strict; use warnings; our $VERSION = '0.01'; use Mojo::Base 'Mojolicious::Controller'; sub home { my $self = shift; $self-&gt;render( 'tit...
1
1,327
Error while executing soap request on ws security with cxf interceptor
<p>I have developed a service in top down approach and it is working fine using apache cxf. Now I am trying to add basic authentication to the service. I have configured the server call back handler and spring bean (cxf-servlet.xml) as per the apache cxf documentation. But still I am getting below error executing a soa...
1
2,712
jQuery how to append data at table use input fields
<p>I am working with a table, and I am having some issues. In most normal cases, I have 4 input fields in which I can add some data and send it to the table in my view. But if it so happens that I have more the 4 values, and I need to add more, I have added a button called <strong>"Plus"</strong> which clears previous ...
1
1,117
Upgrading Spring Security OAuth2
<p>I am trying to upgrade Spring security OAuth2 configuration from 2.0.0.RC1 to 2.0.3.RELEASE. At the time I copied the configuration from sprklr sample and made it work. So it's based on a working example of xml based Spring Security OAuth2 configuration.</p> <p>Now, I've upgraded to Spring Security latest release (...
1
10,316
useLocation hook undefined on startup: TypeError: Cannot read property 'location' of undefined
<p>I am writing a typescript React application that will log a user in and update the <code>Dashboard</code> component to display the user information, such as their access tokens and their name. I am using the <code>useLocation</code> hook to pass the state from the fetch request in the <code>LoginCallback</code> comp...
1
2,357
Jest Tests Failing on Github Actions
<p>I have a Repo that i'm working on right now that uses clean architecture with TDD. When i run the tests locally on my machine everything is ok. but when i'm trying to use with Github Actions to run on every commit and PR i'm getting a lot of errors. I also have husky and lint-staged.</p> <p><a href="https://i.stack....
1
1,445
TYPO3 6.0.4 default controller for extension not found
<p>I created my third extension with the extension builder but this one won't install itself properly. I get the error:</p> <blockquote> <p>The default controller for extension "NtImpressions" and plugin "Gallery" can not be determined. Please check for TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin...
1
1,266
Getting NoServerForRegionException: Unable to find region when attempting to import from MySQL into HBase
<p>I'm having problems importing a table from MySQL into HBase using Sqoop. I'm working in a cluster with 3 nodes (1 master, 2 slaves).</p> <p>When I tried to run this command:</p> <pre><code> sqoop import --hbase-create-table --hbase-table (any_tablename) --column-family (any_cf) --hbase-row-key (any_rowkey) ...
1
1,176
failed to set database initializer
<p>I'm learning ASP.NET MVC5 to make a website. I created several classes in the model folder and used "scaffolding feature" in Entity Framework to create CRUD pages. Everything is fine in the Home page. But when I clicked the "Employee" link in the navigation bar, there was an error in this line: </p> <pre><code>publ...
1
3,596
Xml Signature for XmlElement fails to verify
<p>I apologize in advance for the rather lengthy block of code, but it's the smallest compilable example I could produce. I already omitted all error checking from the original code. I'm using Visual Studio 2012 and .NET 4.5, although this is nothing new to 4.5, it should work with any version.</p> <p>I am trying to s...
1
1,831
How to parse SAN from CSR using java or bouncy castle?
<p>I have generated the CSR using the openssl. Now i want to parse the CSR and display the ipaddress, Othername available in CSR.</p> <p>I have written following code. It is able to display the dns, url properly but i am not able to display ipaddress and othername in correct format.</p> <pre><code> public static voi...
1
1,074
How to get Spring Security to respond to Pre-Flight CORS request with OAUTH2
<p>I am not a Java programmer by profession. I am working on building an app for our lab. It started out as a Spring MVC app with JSP files. It has now migrated to a Spring REST API that uses OAUTH2 as a standalone authentication and authorization server. I am using a MySQL database to store my data and users. I can su...
1
3,090
Apache Commons IO Tailer delivers old log messages
<p>My code is given below.</p> <pre><code>public static void main(String[] args) { // TODO code application logic here File pcounter_log = new File("c:\development\temp\test.log"); try { Tailer tailer = new Tailer(pcounter_log, new FileListener("c:\development\temp\test.log",getLogPattern()), 5000,true);...
1
1,025
Cannot set custom CurrentSessionContext class in Spring Session Factory
<p>I am trying to implement a Session-Per-Conversation pattern in a JSF2-Spring-Hibernate Web App so I need my AnnotationSessionFactoryBean to build a Hibernate SessionFactory with a custom CurrentSessionContext class.</p> <p>I have been receiving this error log:</p> <pre><code>org.springframework.dao.DataAccessResou...
1
2,365
Android: AudioRecord.read() returns garbage
<p>I've been working on an app that could playback audio from the microphone in real time. It sets up an AudioRecorder, that inits without any errors. However, it just returns a bunch of zeors, or a lot of number close to the max value of short, when performing read operations. I'm really stuck, it would be very kind i...
1
1,163
Apache kafka consumer poll infinite loop on unexpected messages
<p>I'm doing integration tests of Kafka consumer implementation. I use wurstmeister/kafka docker image and Apache Kafka consumer. The scenario that buzzes me is when I send "unexpected" messages to a topic. The <code>kafkaConsumer.poll(POLLING_TIMEOUT)</code> seems to go in an infinite loop in RUN mode. When I DEBUG th...
1
1,490
Choice Between std::vector and std::unordered_map For Searching In Few Items Case?
<p>There are a few items to iterate and search by the key. And I already form a <code>std::vector</code> for iteration. Do I need to form a <code>struct</code> for searching such as <code>std::unordered_map</code>? </p> <p>I do know searching in <code>std::vector</code> resulted in <code>O(N)</code> and searching in ...
1
1,039
ids for this class must be manually assigned before calling save() hibernate 4.3
<p>I am trying to save data in table using hibernate. My entity looks like </p> <pre><code>@Entity public class Nemocnica implements java.io.Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) //@Column(name="N_ID") private BigDecimal NId; private String...
1
1,041
Filtering within DOM XPath query results
<p>So I'm using XPath to search a rather large XML document. What I'd like to do is after getting the initial results, search again within those results (and then search up to 2 more times). However, I'm not sure how to go about searching again. I tried this:</p> <p><strong>Multiple queries using '|' operator:</strong...
1
3,060
How to show on HTML the result from HTTP get angular
<p>I'm trying to show the result from a Http.get() on my HTML, but it only shows when I have an error, I mean, if I get a 404 not found, it will print only a message on my HTML, but now that I do not have a 404 I have a response, I'd like to know how to print it using HTML. I'll explain the structure of my project...</...
1
1,267
How to align multiple inputs inside <td>
<p>I work on small <code>jquerymobile</code> project and I need to align three inputs inside single <code>&lt;td&gt;</code> but I don't know how to do it. I have found several examples to do it with <code>css</code> and classes inside input tags, I have tried to do something but it doesn't work, maybe because I call js...
1
1,536
AJAX call with nodeJS and express successful, but not displaying data
<p>I have recently migrated from a codeigniter framework, to a nodejs with an express framework. Our codeigniter site had a lot of JS as it was, and we made a lot of AJAX calls because it is a single page app. We are messing around with node and express now, and I cannot get a simple AJAX call to function. It could be ...
1
1,281
E_WC_14: Accept.js encryption failed?
<p>I have a payment form as follows</p> <pre><code>&lt;body&gt; &lt;g:if test="${flash.message}"&gt; &lt;div class="message"&gt;${flash.message}&lt;/div&gt; &lt;/g:if&gt; &lt;div class="content"&gt; &lt;h1&gt;Secure Checkout&lt;/h1&gt; &lt;g:form name="paymentForm" method...
1
1,869
Android requestLocationUpdates without minDistance
<p>I have a need to get the gps location every 20 seconds or so, but ignoring the need to have the user move a certain number of meters, I tried setting the minDistance to zero but still no luck, its only when I manually send the location using the location control from DDMS that this gets activated and the location ge...
1
1,067
How to execute cmd commands via Java swing
<p>I have a file to print and I want to send him a custom water mark via java swing. i have 2 files NewJFrame.java and Test.java</p> <pre><code>package test; import java.io.IOException; import java.io.OutputStream; /** * * @author shaharnakash */ public class NewJFrame extends javax.swing.JFrame { /** *...
1
3,433
Custom leaflet divIcon not staying in fixed marker position when zoomed
<p>I have made a custom marker for use with leaflet maps, it seems to work fine but when I zoom in and out of the map it changes position drastically and I would like it to stay where it should with the point on the position. I have checked and tried changing anchor points and position but it just seems to make it wors...
1
1,163
FreeTDS fails to connect to SQL Server after recent Windows patches and TLS1 being disabled
<p>I'm having a weird problem with FreeTDS (MacOS 10.11.5) not connecting to SQL Server 2014 running on Windows Server 2012 r2 which I had been able to connect to previously (about a week or so ago). The server in the last week has been going through security hardening (most recent 2012 r2 patches, plus other things* w...
1
2,308
NHibernate Illegally attempted to associate a proxy with two open Sessions
<p>I am stuck from about 12 hours with this error so could any one help me at least to understand what is wrong </p> <p>Here is my code</p> <pre><code>public virtual void AssignAssets(IList&lt;long?&gt; assetsIds, ManualAssetAssignment&lt;TAsset&gt;.AssignmentMode mode, IQueryableRepository&lt;TAsset, long?&gt; asse...
1
1,354
Flatten hierarchy on self-join table
<p>I have data in a self-join hierarchical table where <strong>Continents</strong> have many <strong>Countries</strong> have many <strong>Regions</strong> have many <strong>States</strong> have many <strong>Cities</strong>.</p> <p><strong>Self-joining table structure:</strong></p> <pre><code>|------------------------...
1
1,446
ROS Linking errors using boost::filesystem library using C++ under linux
<p>I get the following errors:</p> <pre><code>CMakeFiles/ndt_visualiser.dir/src/fromFile.o: In function `boost::filesystem3::path::codecvt()': /usr/include/boost/filesystem/v3/path.hpp:377: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()' CMakeFiles/ndt_visualiser.dir/src/fromFile.o: In funct...
1
1,296
Can't get location on android studio
<p>I try for days to get my current location on android studio but I always get a null location. I already try lot of things like this solution : <a href="https://stackoverflow.com/questions/31577584/i-cant-get-location-on-android-real-phone">I can&#39;t get location on Android real phone</a> or this one : <a href="htt...
1
4,512
JAXB unmarshal return null for attributes
<p>After unmarshalling the XML file, all properties which are attributes in the XML file have the value NULL (fileDateTime, fileId, etc...)</p> <p>I don't really understand why as I have the correct annotations <code>@XmlAttribute(name = "FileDateTime")</code> and <code>@XmlAttribute(name = "FileId")</code></p> <p>As...
1
1,248
How to get all users in a telegram private channel using telethon?
<p>I am trying to get a list of users using telethon in a private telegram channel which I am the admin for, and print it to the console. I have tried the same code with a channel that is not private, and I'm having the same issues.</p> <p>What is the username reference I am suppose to use? I dont understand if that...
1
1,272
Spring Web service unmarshalling not happening correctly
<p>I have been trying to integrate the spring WS to test a SOAP webservice.Integration has hit a roadblock as I am not able receive the proper response in the unmarshelled object. Below are the details:</p> <p>Application Context is below:</p> <pre><code> &lt;!-- Define the SOAP version used by the WSDL --&gt; &lt;be...
1
3,398
Now.js module doesn't work (node path not found)
<p>I'm trying to install the Now.js module for Node.js. It gets installed, but it doesn't work. When I install it, here's what I get:</p> <pre><code>eustace@eustace-desktop:/var/www/nowjs$ sudo npm install now -g &gt; node-proxy@0.5.1 install /usr/local/lib/node_modules/now/node_modules/node-proxy &gt; make BUILDING...
1
1,118
Excel Python: Getting error during installation of xlwt and xlutil packages
<p>I am using <strong>Python 3.4</strong> on windows. I installed xlrt package. It is working fine. But while trying xlwt and xlutils I am getting following prints. Please help me out of this. While installing <strong>xlwt</strong>, I am experiencing following error,</p> <pre><code>D:\Software\Python34\Scripts&gt;pip....
1
1,114
AWS Cognito Authorization code grant flow without using the hosted UI
<p>Using AWS's Cognito without the hosted UI, given a username, and password I would like to receive an Authorization code grant without using the hosted ui.</p> <p>Is this possible? I am writing my own sign up, log in forms but cannot seem to find documentation on this subject.</p> <p>Currently I can use AWS.Cognito...
1
1,105
Apache 2 Mutual TLS Authentication Only Working with "SSLClientVerify optional_no_ca"
<p>I am trying to use Apache2 to provide a REST-API, with mutual TLS Authentication.</p> <p>If l set the <code>SSLVerifyClient</code> option to <code>require</code>, l don't get the client certificate due to the SSL connection not being established due to what looks like the Server/ Client certificate validation. I am ...
1
5,731
UILabel with Paragraph Style Line Spacing
<p>I'm trying to create a messaging application and am encountering a very strange issue.</p> <p><a href="https://i.stack.imgur.com/FjAnu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FjAnu.png" alt="enter image description here"></a></p> <p>The reason there is so much space between "Thomas" and ...
1
1,777
SQL Server 2005 "FOR XML PATH" Grouping
<p>I'm trying to generate a XML document from the SQL Server 2005 database by using "FOR XML" construct.</p> <p>There are two simple tables in the database with a one-to-many relationship:</p> <p>1) Magazines </p> <pre><code> | Id | Number | Name | ---------------------------- | 53 | 0001 | Magazine 1 | |...
1
2,404
Android Studio: java.lang.RuntimeException: Unable to start activity ComponentInfo...: java.lang.ClassCastException: java.util.ArrayList
<p>The full error: </p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{app.sunshine.android.example.com.sunshine/app.sunshine.android.example.com.sunshine.vudataActivity}: java.lang.ClassCastException: java.util.ArrayList at android.app.ActivityThread.performLaunchActivity(Ac...
1
2,397
Jquery: When Hover on Menu Item, Display Text
<p>I'm new to JQuery, but wish to use it in a site that I'm building.</p> <p>When the user mouses over an item in the menu with <em>li</em> class <code>hovertriggerssubhead</code>, I want to display some text below it, located in the div (nested inside the li) with id <code>NavSubhead</code>. I have looked at several ...
1
5,177
Setting viewpager height to content's height
<p>I have an expandablelistview which contains multiple viewpagers, and each viewpager contains multiple pages which each have a linearlayout of data. The data in the linearlayout is dynamic (there could be 5 rows or there could be 20), and each row has a dynamic height (it could have 1 line of text or 2-3). </p> <p>A...
1
3,468
Nim Game Example Static and Random Issues
<p>I'm having issues with my loop. The loop i think works fine in theory its just that when I try to you pile it says it needs to be static. I change it to static then generator for the Random number doesnt work anymore any suggestions would be appreciated.</p> <p>Question The game of Nim. This is a well-known game wi...
1
2,055
SQL Server Express 2008, Joins, and Timeout Expired Error Message
<p>I have a stored procedure that does quite a bit of joins. The query though runs pretty fast, around 3 seconds. I just cant figure out the below error poping up every once in a while. I event cache the document that uses this query for a minute so it doesnt get ran over and over. I am using Entity Framework 5, and...
1
1,880
Resource specification not allowed error
<p>I'm getting the following error when running this java code in eclipse.</p> <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problems: Resource specification not allowed here for source level below 1.7 The type Transaction is not visible tx cannot be resolved at neo4jTestin...
1
2,214
Unable to get property 'subscribe' of undefined or null reference
<p>I am experiencing an issue with Implementing knockout Js while subscribing a dropdown value change in my HTML Page. Here is my HTML</p> <pre><code> &lt;div&gt; &lt;span&gt;Request Types : &lt;/span&gt; &lt;select data-bind="options: requestTypes, optionsText: 'Name', ...
1
1,551
Cypress API Call Forbidden 403 Error ( "x-frame-options": "SAMEORIGIN, DENY" )
<p><strong>Issue :</strong></p> <ul> <li><p>I successfully Login and make a Post Call and receive for following error after making a cy.request( )POST API call :</p></li> <li><p>I was able to make cy.request( ) get API calls which retured 200 , so API call error seems specific to the above cy.request( ) POST API call ...
1
1,544
Flutter - FirebaseApp with name [DEFAULT] doesn't exist
<p>I'm working on a flutter application using firebase authentication system and Firestore. I worked for 3 months and I didn't encounter this error before. Now I published my application on play store and I found this error also for debug version with the emulator. I think to have configured properly the system because...
1
2,605
Android Studio: Cannot resolve symbol 'activity'
<p>In Android Studio, I get the error "Cannot resolve symbol 'activity'. </p> <p>I've looked at other questions and tried the following</p> <ul> <li>Invalidate Caches / Restart</li> <li>set "insert imports on paste" to all, checked "optimize imports on the fly" and checked "add unambiguous imports on the fly"</li> </...
1
1,734
Invalid Cast (check your mapping for property type mismatches)
<p><strong>Scenario</strong><br/> I have a category class in DB:</p> <pre><code>CREATE TABLE [dbo].[Category]( [pk_cat_id] [int] NOT NULL, [name] [varchar](50) NOT NULL, [parent_cat_id] [int] NULL CONSTRAINT [PK_Category] PRIMARY KEY NONCLUSTERED ( [pk_cat_id] ASC )) </code></pre> <p><img src="http...
1
1,606
Insert an image into a .docx file
<p>I am developing a program that has the feature to dynamically create DocX files. As the title suggests, I am having a problem inserting images into a DocX file. One of the issues, as I see it, is that I am using C# 2.0. (When answering this question, I would like to stress that I do not wish to switch to C# 3.0, so ...
1
2,170
ERROR Installing GeoIP-Python on windows
<p>I am trying to install GeoIP-Python-1.2.4 on Windows 7. Before I can do that, I need to install GeoIP-1.4.6. I am using README.MinGW instructions for installation. I used MinGW and got through ./configure. When I do 'make', I get following error:</p> <pre><code>*** Warning: This system can not link to static lib ...
1
2,171
Problem writing binary data with ofstream
<p>Hey all, I'm writing an application which records microphone input to a WAV file. Previously, I had written this to fill a buffer of a specified size and that worked fine. Now, I'd like to be able to record to an arbitrary length. Here's what I'm trying to do:</p> <ul> <li>Set up 32 small audio buffers (circular ...
1
1,095
Firebase Auth Custom claims not propagating to client
<p>I have a user with UID 1 where the custom claims are set as,</p> <pre><code>frompos=true </code></pre> <p>I am setting new custom claims to this user from the ADMIN SDK for java the following way:</p> <pre><code>Map&lt;String,Object&gt; claims = new HashMap&lt;&gt;(); claims.put("frompos",false); FirebaseAuth.g...
1
1,093
How to get data from firebase when page loading using vuejs?
<p>I have been trying to get current user data from firebase to display details in profile page. </p> <p>Here i am trying get data from firestore, when page loading. My table structure : users => Current user UID => email, firstname, lastname, businessname, etc.</p> <p>I have added functionality to get data from fire...
1
2,003
Heroku - apple-touch-icon-144x144-precomposed.png isn't precompiled
<p>My app is working fine in local, and even earlier this morning, I was able to get it to show in Heroku. However, now that it is pretty much done, I get that pesky message!</p> <p>Here is the Heroku log. I am not sure how to troubleshoot it:</p> <pre><code>2012-11-20T19:49:33+00:00 app[web.1]: 2012-11-20T19:49:33+...
1
7,261
Add forms in formset with Django and JS
<p>I would like to be able to add dynamically <code>django forms</code> in my <code>formset</code> with <code>Add</code> button.</p> <p>I tried to write different things but I don't overcome to get the expected result up to now.</p> <p>I have a <code>formset</code> defined in my <strong>forms.py</strong> file :</p> ...
1
1,377
how solve "unfortunately android app has stopped"
<p>I made app for shoutcast stream and work good but when I stop it and go back by back button this message appear <code>unfortunately android app has stopped</code> and this my code i want to close the app when i stop it by stop button and when press back button close do not unfortunately android app has stopped </p>...
1
3,159
How do I display menu items in front of images?
<p>I have a horizontal navigation menu and when you hover over the menu, the items display behind the images on the webpage as opposed to in front of. How would I fix this?</p> <p>CODE: <a href="http://jsfiddle.net/MvWkZ/" rel="nofollow">http://jsfiddle.net/MvWkZ/</a></p> <p>HTML: </p> <pre><code>&lt;div id="nav"&gt...
1
1,455
How to adjust cards with different image size but keep cards size
<p>I have svg images which each has different sizes, but the end result that I"m looking for, is, same card size for all cards, and the remaining space - give it to the image.</p> <p>The image should fill the height with the remaining height, the width can stay "auto" <strong>OR</strong> image with 50px for example bu...
1
1,054
How to handle routing in laravel modular application
<p>I know there are question/answer for routing in modules. But i have tried all that but i can't get any workaround.</p> <p>Let me show what i have done.</p> <p>My folder structure</p> <p><a href="https://i.stack.imgur.com/KF9Cv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KF9Cv.png" alt="ente...
1
1,114
How to make SonarQube module analyze the project only once when sonar analysis is bound to maven lifecycle in a multi-module project?
<p>What I am trying to achieve is integrate SonarQube analysis into the build process, so that whenever <code>mvn clean install</code> is run, the code is analyzed with SonarQube. We want to use it for local analysis and also for build on Jenkins. If new issues are found, than the build should fail (we want to use buil...
1
1,899
Hyperion Essbase 11.1.2.2 Unable to connect to Essbase Administrator Server from the Essbase Admin Console
<p>So I'm a newbie at Essbase - I've installed the EPM system - the Essbase admin services are up and running but for some reason, I'm not able to connect to the Admin Server through the EAS console. I get this error - <code>"Could not connect to Administration Service &lt;IP&gt;"</code>.</p> <p>So I looked at the log...
1
2,480
Setting up Django with mod_python, Apache on SuSE with Alias
<p>I'm having major problems getting Django working with my Apache configuration. I did not create the server, so I don't have too much leeway as to how the server works. Essentially there are three virtual hosts:</p> <p>board.site.org, students.site.org and insider.site.org</p> <p>The insider.site.org is the main ...
1
1,091
Invalid subscript in unity shader
<p>Im pretty new to shader coding but I made this one by grouping 2 unlit shaders When I try to make this shader, which is meant to create an outline and let me interpolate 2 textures unity tells me that there is this error: invalid subscript `vertex´ at line 61</p> <p>Ive tried some things but i dont get this shader ...
1
1,890
Python script works when I run from IDLE but not in command line?
<p>I'm working on a school project, and we have to make a script. Basically, whenever I'm in IDLE and I press F5 to run the script everything works fine, but when I double click the python file itself and go into command line, I only get to input one thing (R or L) and then the window closes. Why is this ? I think one ...
1
1,948
Accordion inside popup, colorbox / modal Bootstrap
<p>I want to achieve an accordion inside popup. Is it possible? I tried to do it with colorbox, but seems it's not feasible, so I try to use bootstrap modal, but seems I got confused.</p> <pre><code>&lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equiv="X-UA-Compatible" content...
1
1,132
How to fix JSON parse error in @requestbody and Enum value?
<p>I've two methods:</p> <ol> <li>&quot;JSON Body&quot; request</li> <li>&quot;Form param&quot; request</li> </ol> <pre class="lang-java prettyprint-override"><code>@RequestMapping(value = &quot;/orders.json&quot;, consumes = { &quot;application/json&quot; }, method = RequestMethod.POST) @Override public ResponseEntity...
1
1,310
Get all DIMM information from IPMI using FreeIPMI API
<p>Here is the output from <code>$ipmitool -sensor</code>, they show all DIMM info. But FreeIPMI only have the DIMM info that have been plug-in. How can I get all Memory DIMM information by using FreeIPMI API in C? </p> <pre><code>$ sudo ipmitool sensor CPU Temp | 59.000 | degrees C | ok | 0.000 | ...
1
3,943
express body-parser utf-8 error in test
<p>Super stumped by this. I have some server code that for some reason throws a UTF-8 error in my tests but works fine when running the server normally:</p> <p>code:</p> <pre><code>export default ({ projectId = PROJECT_ID, esHost = ES_HOST } = {}) =&gt; { let app = express(); app.use(cors()); app.use(bodyParser...
1
1,085
Android Canvas SurfaceView black screen
<p>I have a following class:</p> <pre><code>public class GameView extends SurfaceView implements SurfaceHolder.Callback { public static final int WIDTH = 860; public static final int HEIGHT = 480; int x = 0; GameLoop gameLoop; public GameView(Context context) { super(context); getHolder().addCallback(this)...
1
1,429
Parse HTML table columns with bash
<p>I'm trying to extract 3 columns from a table in HTML. I need hostname, product + region and date added. So they would be columns 1, 3, 4. </p> <pre><code>&lt;div class="table sectionedit2"&gt; &lt;table class="inline"&gt; &lt;tr class="row0"&gt; &lt;th class="col0 centeralign"&gt;hostname&lt;/th&gt; ...
1
1,387
iOS - Attempting to play mp3 file fails
<p>I'm trying to playback and mp3 file I retrieve from my server from my app doing the following:</p> <pre><code>- (IBAction)play:(UIButton *)sender { dispatch_queue_t downloadQueue = dispatch_queue_create("audio data downloader", NULL); dispatch_async(downloadQueue, ^{ NSURL *audioURL = [NSURL URLWith...
1
1,058
After ios 11 upgrade WKWebView does not load my website
<p>After ios 11 upgrade WKWebView does not load my website. I added the following methods to my renderer:</p> <pre><code> [Export("webViewWebContentProcessDidTerminate:")] public virtual void ContentProcessDidTerminate(WKWebView webView) { Console.WriteLine("ContentProcessDidTerminate"); } ...
1
1,523
Passing pointer to char* array into function to manipulate values on Arduino
<p>[PLEASE CHECK FINAL EDIT BELOW FOR UPDATE]</p> <p>My C++ is a bit rusty (to say the least) and I'm having an issue trying to pass a char array into a function to manipulate the values. Example code below:</p> <pre><code>void myFunction(char* splitStrings,String stringToSetInLoop) { char substringPtr[stringToSetI...
1
1,434
Making SVG Responsive based on width 100% like images
<p>All day long I am working on making SVG responsive and reading various articles, and testing different kind of code even in stack overflow. Unfortunatly I am unsucessful in making my svg expand based on the container div, like I normally do with images when I define max-width:100%</p> <p>I am using SVG stacks as te...
1
1,069
How to calculate Actual Memory usage for java using top linux?
<p>I need to find out What is the actual memory consumed by Java process in Linux, the tools like visualVM/jconsole shows accurate but I must calculate actual memory used by JVM through top command.</p> <p>I am looking at PID : 28169 if you look at top (linux) , it is saying 17.2g ( virtual ) , Res 10g , Shared : 15m...
1
1,333
How to handle TCPListener "An existing connection was forcibly closed by the remote host"
<p>I have a tcp server that uses TCPListener and the async method BeginAcceptTCPClient:</p> <pre><code> Imports System.Net.Sockets Imports System.Threading Imports System.Net Public Class TCPServer Private mPort As Integer Public Event IncomingMessage(ByVal Message As String, ByVal IP As String) 'This sig...
1
2,241
Undefined method "_path" in rails
<p>I am trying to create a new model and provide user a link to a form to fill the model object.</p> <p>My model (/models/paypal_order):</p> <pre><code>class PaypalOrder &lt; ActiveRecord::Base attr_accessor :card_number, :card_verification end </code></pre> <p>My controller (controllers/paypal_order_controller...
1
2,144
2 Codeigniter Controller Querys on One View
<p>How do you put two different function outputs from the same controller into the same view(page)? For example, I have a function going to the "article" div, and another function that I am trying to use within the "aside" div. (using HTML 5 nomenclature here)</p> <p>I have went as far as using the actual db query in ...
1
1,851
How do I directly mock a superclass with python mock?
<p>I am using the python mock framework for testing (http://www.voidspace.org.uk/python/mock/) and I want to mock out a superclass and focus on testing the subclasses' added behavior.</p> <p>(For those interested I have extended <em>pymongo.collection.Collection</em> and I want to only test my added behavior. I do no...
1
1,430
Supervisor is not started into my docker container (Laravel project)
<p>Supervisor is not started into my container and i am not able to run my <code>php artisan queue:work</code> command for my laravel project.</p> <p>Extract from my Dockerfile</p> <pre><code># Add worker to supervisor config file COPY laravel-worker.conf /etc/supervisor/conf.d/ CMD ["/usr/bin/supervisord"] </code><...
1
1,463
How to Convert Keras Prediction Output to desired Binary Value
<p>I have a network with 32 input nodes, 20 hidden nodes and 65 output nodes. My network input actually is a hash code of length 32 and the output is the word.</p> <p>The input is the ascii value of each character in the Hash divided by 256. The output of the network is a binary representation I have made. Say for exa...
1
1,090
how to add mat select in Angular input
<p>I'm finding away to add mat select on my input field but some reason when I click on the arrow, it's not working and not showing me all the list.</p> <p>I have autocomplete and usually when a user start typing it show all the list to select but I'm trying add mat-select also so that user can just click on the arrow...
1
1,519
JSONObject not a String Error
<pre><code> { "query": { "count": 1, "created": "2015-07-28T05:19:01Z", "lang": "en-US", "results": { "quote": { "symbol": "GITANJALI.NS", "Ask": null, "AverageDailyVolume": null, "Bid": null, "AskRealtime": null, "BidRealtime": null, "B...
1
2,468
How to set Android ListView's cell height as half of cell width?
<p>I am trying to use constraint layout as below. But the aspect ratio is not respected in the actual layout. Instead, the height is actually wrapping the content inside </p> <pre><code>&lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://...
1
1,684
Fullcalendar Resources not showing in version 4
<p>I was using resources well in fullcalendar version 3. I'm moving to version 4 and had some breaking changes. I can get the calendar to show my events properly but once I start to add resources, I get this error in my console:</p> <pre><code>main.js:145 Uncaught TypeError: Cannot read property 'ResourceDayGrid' o...
1
1,863
Cannot connect database oracle with symfony2
<p>what i need</p> <ul> <li><p>i need to connect oracle database with symfony2.</p></li> <li><p>i have checked by php -m</p> <ul> <li>oci8</li> <li><p>pdo_odbc</p></li> <li><p>odbc</p></li> </ul></li> </ul> <p>here is the link i follow <a href="https://gist.github.com/johnkary/6481664" rel="nofollow">https://gist.gi...
1
2,273
php/pdo/msql - access denied
<p>There is a little pdo problem, that I have been working on for a while now. Since I don't know what is wrong here, I thought about taking it to this list. Maybe some of you know more...</p> <p>I have a website with a login that checks a user and a password against a mysql driven database. When the pdo connection is...
1
1,599
Python - create tree from dictionary
<p>I have a problem, I must create a function that create a tree from a dictionary of any numbers of elements. Example of dictionaries:</p> <pre><code>D1 = {'name': 'musica', 'children': [ {'name': 'rock', 'children': [ {'name': 'origini', 'children': []}, {'name...
1
3,190
Maven jetty plugin using wrong resource file URL
<p>I am running a project within a vagrant box setup over my eclipse workspace. I am working on setting up a new maven project but I am having problems with the plugin using windows paths instead of the vagrant path. My windows workspace is setup in C:\Dev, so when I 'vagrant up', my entire workspace is available withi...
1
1,302
Unable to pick the values from Properties file and Bootstrap.yml in spring-boot
<p>I wanted to pick the values from the <strong>application.properties</strong> and <strong>bootstrap.yml</strong> file. When I try to do so I am getting Null on the console. Please suggest whats wrong here. </p> <p><strong>application.properties</strong> is as follows</p> <pre><code>restcall.erp.name=erp restcall.pl...
1
1,143
Errors when publishing my nuxtjs website on SSR mode
<p>I have some issues while trying to publish a nuxtjs site. Usually, I was using the generate command, but for this one I need to go full SSR, so I'm going for nuxt start.</p> <p>But after building and starting the app, it's a mess. The build goes perfectly in the console, and the application start. The problem is wh...
1
2,583
Buffer Queue has been abandoned
<p>I am writing an app to make a lantern by lighting the LED of an Android device. Most of the time it works well, but sometimes I see the message "E/BufferQueueProducer﹕ [unnamed-5260-0] queueBuffer: BufferQueue has been abandoned" at the logCat.</p> <p>After that, the app is not able to light the LED of the device. ...
1
7,785
Why are my composer dependencies not found inside a docker container but are natively on my mac?
<p>Within my php application, I have several dependencies which are installed via composer. When I build this application natively on my mac machine all the php dependencies are installed correctly. When the application is run the: namespaces, files and classes can all be found by composer's autoloader.</p> <p>However...
1
3,057
SQS maxNumberOfMessages
<p>Using a Java client application I am querying an SQS queue for messages. The queue has 12,000 messages as setup for testing. I am using openJDK with aws-java-sdk latest (software.amazon.awssdk 2.10.62) pom.xml is shown further down.</p> <p>The issue I am seeing is that despite setting the <strong>maxNumberOfMessage...
1
2,803