title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Extract encoder and decoder from trained autoencoder
<p>I want to divide the autoencoder learning and applying into two parts following <a href="https://blog.keras.io/building-autoencoders-in-keras.html" rel="nofollow noreferrer">https://blog.keras.io/building-autoencoders-in-keras.html</a> and using the fashion-mnist data for testing purposes:</p> <ol> <li>Load the imag...
1
1,643
Fixing an override func viewDidAppear
<p>I was following this guide:</p> <p><a href="https://codewithchris.com/iphone-app-connect-to-mysql-database/#app" rel="nofollow noreferrer">https://codewithchris.com/iphone-app-connect-to-mysql-database/#app</a></p> <p>and I'm having this problem with the override function:</p> <blockquote> <p>Argument names for...
1
1,747
Installing packages on Microsoft R Open fails
<p>I've never had any issues installing packages on R, but I always have issues installing packages on Microsoft R Open. For example, I attempted to install tidyverse. I received many errors, listed below:</p> <pre><code>&gt; Warning in system(cmd) : error in running command ERROR: compilation &gt; failed for package ...
1
10,168
Concurrent HTTP URL connections in Java
<p>I am developing a tool that grabs all the text files from a given folder. These text files contain bunch of http URL. The requirement is that I do a GET request to these URL's , log the response code and optionally print the input stream. I have to perform this in multi-threaded fashion and the thread count should ...
1
2,247
Java Swing JToolBar
<p>I have created <code>JToolBar</code> (Java Swing). I have set a Background image on frame which contains <code>JToolBar</code>. I want my <code>JToolBar</code> to be transparent so that the image kept on frame should be visible. I am using <code>setOpaque(false)</code> but it is not having any effect on my toolbar.....
1
1,462
Can't call javascript functions
<p>The page source:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Admin Search Results&lt;/title&gt; &lt;script type="text/javascript"&gt; function delete() { alert("abc"); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Admin Search Results&lt;/h1&gt; &lt;form id="modDel" action="modDel.pl" m...
1
1,046
ReferenceError: next is not defined
<p>I have Encomenda that has an array of Itens. Itens can have an array of itens. I have the following code:</p> <pre><code>const mongoose = require('mongoose'); const Schema = mongoose.Schema; var idvalidator = require('mongoose-id-validator'); let ItemSchema = new Schema({ produtoId:Number, itens:[{type:Sch...
1
1,612
D3.js How to update a global variable from d3.select()
<p>I'm stuck with a global/local variable issue.<br> Here, my code based on <a href="http://www.d3noob.org/2014/04/using-html-inputs-with-d3js.html" rel="nofollow">http://www.d3noob.org/2014/04/using-html-inputs-with-d3js.html</a></p> <p>index.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;m...
1
1,055
Reversing an entire paragraph of text instead of reversing each consecutive line
<p>I was trying to read a text file using FileInputStream and wanted to display all of the words in reverse (so the last word will be the first word etc.) I was able to display all the letters in reverse using a string tokenizer, but not the words.. I've tried a few different methods now and just couldn't seem to do th...
1
1,793
Background Image not working with HTML5 Boilerplate
<p>From an out of the box HTML5 Boilerplate install, i use the following code</p> <pre><code>body { background-image:url('img/bg.png'); background-repeat:repeat-y; } </code></pre> <p>In the style.css file and the background image does not appear, it still stays blank.</p> <p>Full css is here</p> <pre><code>/* HTML5...
1
1,850
Solr Exception: Document is missing mandatory uniqueKey field: id
<p>I get the above error while trying to insert a row...My schema is given below and im using the same id field</p> <pre><code>Python code: import solr # create a connection to a solr server s = solr.SolrConnection('http://127.0.0.1:8983/solr') # add a document to the index doc = dict( id="1", name='Lucene ...
1
2,497
java.lang.Throwable: addInArray in RecyclerView
<p>Here is the log, this log shows as many times as the itemView's number. but my app is still runing normally.</p> <pre><code>D/ViewGroup﹕ addInArray been called, this = android.support.v7.widget.RecyclerView{44dd4fc8 VFEDID 0,86-720,1140 7f0e01cc app:id/order_query_rv}call stack = java.lang.Throwable: addInArray ...
1
12,622
jquery live click event not working in IE8
<p>I'm using the following code, and it works fine in all browsers I've seen, IE9 is fine but then I come to IE8 and it doesn't work at all.. just for reference the <code>#cal_popup_table</code> element is dynamically added to the page..</p> <pre><code> $("#cal_popup_table tbody tr td a").live('click', function...
1
1,034
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component
<p>I deployed war on tomcat on localhost is fine, but when I deployed the war on my ec2 server, it had a error follow up: </p> <pre><code>Caused by: java.lang.AbstractMethodError: org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(Lorg/apache/logging/log4j/core/config/ConfigurationSource;)Lorg/...
1
4,155
Breadcrumbs on current page
<p>I have currently implemented my breadcrumbs like this:</p> <pre><code>&lt;div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"&gt; &lt;a href="HOME URL" itemprop="url"&gt; &lt;span itemprop="title"&gt;HOME TITLE&lt;/span&gt; &lt;/a&gt; &gt; &lt;/div&gt; &lt;div itemscope itemtype="http://...
1
1,303
Makefile: Target dependency - How to always-make it?
<p><sub>This will most probably be obvious and / or a banality. But since I am trying different approaches for hours without success...</sub></p> <p>I am on Linux Mint 19. I am entirely new to Makefiles. Excuse me, if the problem is trivial.</p> <p>Let it be clear, that I care for the <code>distrib</code> and <code>S...
1
1,182
Integrating Paypal Rest API SDK to laravel 5.2
<p>I am integrating paypal for the first time in laravel 5.2. I am using the PayPal SDK as the api but I have reached a point where I am stuck. when I submit a payment form I get the following error.</p> <p>"PayPalConnectionException in PayPalHttpConnection.php line 176: Got Http response code 400 when accessing <a hr...
1
1,616
How to get a Facebook access token that has enough rights to get the posts in which you're tagged in?
<p>The Facebook posts in which you're tagged in - using <code>@Name</code> - appear in your wall feed.</p> <hr> <p>A friend of mine posted a link and tagged me in it:</p> <p><img src="https://i.stack.imgur.com/uElk3.jpg" alt="The startup Guide"></p> <hr> <p>On the <a href="https://developers.facebook.com/docs/refe...
1
1,076
How do I fix the following gcc warnings?
<p>I've started learning OpenGL and managed to create a spinning cube using vertex buffer objects. However, when I compile my code, gcc issues the following warnings:</p> <pre><code>|| sdlogl.c: In function ‘initGL’: sdlogl.c|48| warning: implicit declaration of function ‘glGenBuffers’ sdlogl.c|50| warning: implicit d...
1
1,815
Android NDK Integration: Error:Unable to load class BuildType$Impl
<p>I am trying to integrate NDK into my project. I am using Gradle wrapper 2.9 and classpath:<code>gradle-experimental:0.6.0-alpha3</code>. </p> <p>Project level gradle:</p> <pre><code>buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experim...
1
1,500
Custom Library component is not a known element, but app compiles and runs
<blockquote> <p><strong>The Problem</strong></p> </blockquote> <p>My html files warn that my custom components/pipes 'are not a known element'. However building and running the application <strong>works as intended</strong>, and the custom components/pipes are functional. The dichotomy of the components working but sho...
1
1,064
How do I call a public function from within a private function in the JavaScript Module Pattern
<p><strong>How do I call a public function from within a private function in the JavaScript Module Pattern?</strong></p> <p>For example, in the following code,</p> <pre><code>var myModule = (function() { var private1 = function(){ // How to call public1() here? // this.public1() won't work } ...
1
1,243
What is CharsetDecoder.decode(ByteBuffer, CharBuffer, endOfInput)
<p>I have a problem with <code>CharsetDecoder</code> class.</p> <p>First example of code (which works):</p> <pre><code> final CharsetDecoder dec = Charset.forName("UTF-8").newDecoder(); final ByteBuffer b = ByteBuffer.allocate(3); final byte[] tab = new byte[]{(byte)-30, (byte)-126, (byte)-84}; //char € ...
1
1,408
Overriding equals in linked list
<p>Been searching for a solution to my problem. Been reading a lot about overriding equals to properly compare nodes of a linked list but have become stuck. Basically I am trying to search through my list and find a node that equals it and delete it. I have found the way to look through the linked list but when I retur...
1
1,199
Bcrypt illegal argument: number
<p>I'm having issues with bcrypt and I'm not sure why. Here is my code for a basic registration route:</p> <pre><code>const express = require('express'); const router = express.Router(); const bcrypt = require('bcryptjs'); const passport = require('passport'); // Register router.post('/register', function(req, res){ ...
1
1,120
Cannot import scripts Node.js server
<p>I'm creating an http server with node that reads a simple html file. This html file imports some scripts that are located in my computer. Node cannot load this scripts. Why?</p> <pre><code> var http = require('http'); var io = require('socket.io').listen(2210); var fs = require('fs'); http.createServer(function...
1
1,424
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Vector
<p>I have XML parsed data that I am trying to add into a DefaultTableModel. The DefaultTableModel takes in Vectors or Object[] as argument according to the documentation.</p> <p>But when I use a Vector I get this exception :</p> <pre><code>java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Vec...
1
1,379
Default linetypes in ggplot2?
<p>I am struggling here to figure out the default linetypes used in ggplot2. I have a dataframe as follows: </p> <pre><code>test &lt;- structure(list(time = c(151.04167175293, 151.125015258789, 151.20832824707, 151.29167175293, 151.375030517578, 151.45832824707, 151.54167175293, 151.625015258789, 151.70832824707, 15...
1
3,225
Convert JSON data to HTML table
<p>I have a JSON code like </p> <pre><code>{ "id": 114363527, "userId": "1", "uploadedBy": "JaisonJustus", "dataSource": "gdocs", "rowcount": "3", "colcount": "3", "data": { "0": { "rowName": "", "rowId": "2", "colName": "Category Name", "colId": "A", "value": "Beverages" ...
1
1,041
Delphi 6 - Create Excel chart from delphi application - data and chart on the same pagen
<p>I need to create a chart in excel in a delphi application based on some data from a table.</p> <p>I created the excel worksheet and filled n rows of data from the table. Now I need to make the chart based on the data.</p> <p>We have to add two Legent entries(categories) - D5:D15 and E5:E15 and one Horizontal(Categ...
1
1,037
How to configure cache in Angular Universal
<p>I followed a tutorial for integrating Universal in our Angular 9 app. Now we have server.ts configured.</p> <p>In every tutorial I see this:</p> <pre><code>// Example Express Rest API endpoints // app.get('/api/**', (req, res) =&gt; { }); </code></pre> <p>and then:</p> <pre><code>server.get( '*.*', ...
1
5,702
Firebase Auth login state persistence is not working
<p>On an ionic/AngularJS/Cordova IOS app.</p> <p>I'm trying to set a persistence login using mail/password (followed <code>Firebase documentation</code> : <a href="https://firebase.google.com/docs/auth/web/auth-state-persistence" rel="nofollow noreferrer">https://firebase.google.com/docs/auth/web/auth-state-persistenc...
1
1,054
Spring data elasticsearch aggregate sum - price, quantity
<p>I would like to aggregate data by using spring data elasticsearch. I want aggregate <code>sum(price)</code> , <code>sum(qty)</code>. What I should add to method <code>.addAggregation</code> to get that specific result and how to get it?</p> <pre><code>"properties": { "cat": { "store": true, ...
1
1,734
Use same navbar for multiple .html files?
<p>I'm trying to use the same header for multiple .html files. I'm following <a href="https://stackoverflow.com/questions/27139963/bootstrap-multiple-pages-divs-and-navbar">this thread</a> and <a href="https://stackoverflow.com/questions/31954089/html-css-navigation-bar-on-multiple-pages">some others</a>, but it doesn...
1
2,004
Soft Keyboard Hides Toolbar
<p>I have used Toolbar in my layout. Whenever I open the activity, and focus on the edit-text, it hides the toolbar. Please see below pictures</p> <p><a href="https://i.stack.imgur.com/hYidT.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/hYidT.jpg" alt="Before Soft Keyboard opens up"></a></p> <p><a href="h...
1
1,408
urlmon.dll FindMimeFromData() works perfectly on 64bit desktop/console but generates errors on ASP.NET
<p>I am creating a library of utilities to be used both in desktop environment in a web environment.</p> <p>It contains several features that I believe are often repeated in my applications, including utility to get the mime type of a file by its content (not the extension).</p> <p>The files that I'll have to check a...
1
1,070
Typescript: Load file data as Blob
<p>I am trying to load a file in angular7/typescript, to fulfill the following function:</p> <pre><code>public add3dModel(input?: Blob, observe?: 'body', reportProgress?: boolean): Observable&lt;string&gt;; public add3dModel(input?: Blob, observe?: 'response', reportProgress?: boolean): Observable&lt;HttpResponse&lt;s...
1
2,261
DuplicateMappingException on created_by field
<p>I have 2 tables <code>employee</code> and <code>employee_document</code>. Here is the mysql query for two tables - </p> <pre><code>CREATE TABLE employee ( id int(11) unsigned NOT NULL, name varchar(100) COLLATE utf8_unicode_ci NOT NULL, email varchar(50) COLLATE utf8_unicode_ci NOT NULL, password_hash varch...
1
2,516
Maven cannot download from Artifactory Repository
<p>I am attempting to connect our Jenkins servers to our Artifactory repository for builds. I've been successful with the Jenkins server at my office location, but I am having problems with a Jenkins server that's on another part of the corporate network.</p> <p>I've disabled the job, went into the workspace, and trie...
1
3,871
Subview implementation of gestureRecognizerShouldBegin: interferes with parent view's implementation of that method
<p>I have a ParentViewController whose view has a subview. I want ParentViewController to have the initial opportunity to evaluate gestures in its view, and only upon failure of those gestures should the subview then have the chance to evaluate the gesture. But instead things seem to be going the opposite direction, an...
1
1,368
Map.panTo not working
<p>So I have two KML files that load based on the different zoom levels. Then I parse the files and create links that are supposed to pan to the given lat lng based on the KML file. However whenever I click on one of the links it gives me this error:</p> <pre><code>Uncaught TypeError: Cannot call method 'panTo' of nul...
1
1,426
How to get one accordion tab open at a time Bootstrap
<p>I'm having trouble trying to get it so my Bootstrap accordion style form only has one step tab open at a time. What do I need to change to get only one tab to be open at a time?</p> <p>Here is a <a href="https://codepen.io/Frankk97/pen/VGpYaz" rel="nofollow noreferrer">CodePen</a> link to the full thing. Here is a ...
1
1,545
How to send modified IPv6 packet through RAW socket?
<p>I'm trying to send a custom IPv6 header through a RAW socket in C Linux.<br> I already succeded in IPv4 using the IP_HDRINCL socket option, however, there's not an equivalent for IPv6. <br> I found a workaround <a href="http://lists.openwall.net/netdev/2009/01/15/168" rel="noreferrer">here</a> suggesting to use <cod...
1
1,108
Transaction rollback in stateless session EJB 3.0
<p>I have a stateless session EJB as per 3.0 spec.</p> <pre><code>/*Remote Interface*/ package com.nseit.ncfm2.data.ejb; import java.sql.SQLException; import java.util.Collection; import javax.ejb.Remote; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.naming.NamingExce...
1
1,460
Hibernate sets null value for a column, instead of deleting the entire row on saveOrUpdate()
<p>I have a class CatastrophePerilAssoc that controls the mapping of a Catastrophe class to a Peril class, with a table CAT_PERIL_ASSOC that has three rows: id(primary key, auto-generated), catastrophe.id(mapped to a catastrophe), and peril.id(mapped to a peril)</p> <p>When I add or remove associations, new associatio...
1
1,028
Android release Build failing due to shrinkReleaseMultiDexComponents
<p>I'm having real difficulties building a release version of my app.</p> <p>This is part of the output I get when running <code>./gradlew assembleRelease --stacktrace --debug</code></p> <p>In Android Studio it spits out the same thing and I've crawled the net but haven't found a solution for this.</p> <pre><code>17...
1
5,540
Weird Tomcat outage, possibly related to maxConnections
<p>In my company we experienced a serious problem today: our production server went down. Most people accessing our software via a browser were unable to get a connection, however people who had already been using the software were able to continue using it. Even our hot standby server was unable to communicate with t...
1
1,027
How to use ".find()" with an array in vuejs
<p>I have the following code on my project components:</p> <pre><code>&lt;template&gt; &lt;div&gt; &lt;agent v-for="agent in agents" :uuid="agent.uuid" :key="agent.uuid" :socket="socket"&gt; &lt;/agent&gt; &lt;p v-if="error"&gt;{{error}}&lt;/p&gt; &lt;/div&gt; &lt;/template&gt; ...
1
1,091
Read all users from AD using Novell.Directory.Ldap.NETStandard
<p>I need to read all users from the AD. Here is code that I am using:</p> <pre><code>using Novell.Directory.Ldap; using Novell.Directory.Ldap.Controls; using System.Linq; namespace LdapTestApp { class Program { static void Main() { LdapConnection ldapConn = new LdapConnection(); ...
1
1,862
Yocto Bitbake Glibc build fails
<p>I'm trying to build a Yocto image but the build fails when compiling glibc.</p> <p>If I run just</p> <pre><code>bitbake glibc -c compile </code></pre> <p>I get a compilation error as follows:</p> <pre><code>/usr/src/debug/glibc/2.27-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle' | /media/...
1
1,283
Making a button appear on scroll with Javascript / jQuery
<p>The button already has Javascript this is why I'm including it below - this code is separate to my question though. This is to change the button into something else ON CLICK - I want to keep the button hidden, until scroll... Looked all over and I'm unable to find the right way. (very new to JS).. and whenever I fid...
1
1,195
What tool generates diagrams from SQL Server hierarchical data?
<p>Is there a tool that works with SQL Server to generate tree-like diagrams from a hierachical data model?</p> <p>I am working with a large geographical hierarchy, and would like to visualize it.</p> <p>Here is an example.</p> <p>I have a NodeHierarchy table that stores a hierarchical relationship among nodes. Each...
1
1,491
How to get values from the form array and form group functions..Angular
<p><a href="https://www.tektutorialshub.com/angular/nested-formarray-example-add-form-fields-dynamically/" rel="nofollow noreferrer">https://www.tektutorialshub.com/angular/nested-formarray-example-add-form-fields-dynamically/</a></p> <p>the code is from here</p> <pre><code> export class AppComponent { tit...
1
1,757
"Parsing error: Unexpected token < ..." using VueCli3 and airbnb eslint
<p>I know this may seem like a duplicate question, I still get this type of eslint errors after trying the following:</p> <ul> <li><p><a href="https://github.com/prettier/prettier/issues/3720" rel="nofollow noreferrer">https://github.com/prettier/prettier/issues/3720</a> (i already installed eslint-plugin-vue)</p> </l...
1
1,899
"The element 'X' has invalid child element 'Y'. List of possible elements expected: 'Z'."
<p>I am a bit new here and learning XSD Schema. I have a function which uploaded XML file, first it upload the schema then when it upload XML file it throws this exception:</p> <p><code>"The element 'X' has invalid child element 'Y'. List of possible elements expected: 'Z'."</code></p> <p>This is my XSD file:</p> <p...
1
2,510
Pagination in custom post type in wordpress
<p>I am try to put pagination in my custom post in wordpress. my custom post type name is videos. it appears the pagination but when I click on the pagination page it goes to 404 page.</p> <pre><code>&lt;?php $videos= new WP_Query(array( 'post_type'=&gt;'videos', 'posts_per_page' =&gt; 9, ));?&gt; &lt;?ph...
1
1,087
Watchservice in windows 7 does not work
<p>This code works fine in Linux but not in Windows 7: to get file contents update I have to click on the output file. Where is the trick?</p> <p>I am using Windows 7 prof, NetBeans IDE 8.0 RC1 (Build 201402242200) updated to version NetBeans 8.0 Patch 1.1, JDK 1.8</p> <pre><code>package watchfilethreadmod; import j...
1
3,985
warning: could not load any Objective-C class information after segue
<p>I am trying to use a custom segue in my ios app and when I preform the segue it always returns "warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available." as well as "EXC_BAD_ACCESS (code=2, address=0x7fff504faff8)" which seems to be some kin...
1
1,315
.NET Remoting Singleton memory leak, TCP, Marshal by Reference
<p>I am using the simplest example of remoting that I could find, sharing an object between a windows service and a windows forms program (client), running on the same machine.</p> <p>The service instantiates the object like this:</p> <pre><code>serviceConfigRemote = new serviceConfigDataRemote(); serverChannel = new...
1
1,139
Vue component returning multiple table rows
<p>I'm attempting to return two tr elements from a single component <code>v-design-row</code>. I know vue requires the template elements to be wrapped in a div, but I cannot wrap them in a div because of the tag structure html tables require. When I add the second <code>tr</code> in the <code>v-design-row</code> compon...
1
1,563
How to stream music from url with Java - Android
<p>I'm totally new to Android Development and to Android devices in general, so I don't know how things are working here.</p> <p>I want to make an app that will stream music from my url and still playing the song after I minimize the application.</p> <p>I searched my question but a lot of answers were for mp3 songs or ...
1
1,109
Spawning of multiple enemies randomly in Pygame
<p>Basically I am coding a programming project for my school at the moment, I was originally using a modular form of coding however it became apparent that OOP would be a more efficient way to code. I've been following some youtube tutorials as I am not that confident with OOP and seem to have hit a brick wall. I am cu...
1
3,110
"Message":"The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported
<p>I am not sure what i am missing. This code works perfectly fine on my local development machine and when I have deployed this on to a testing server it keeps throwing internal server error or "Message":"The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream'...
1
1,878
How to Parse Json to get value from "sub-column"?
<p>The column and sub-column are different for each set.</p> <p>I need to read column <code>"24"</code>. Then read sub-column <code>"11"</code> (but not <code>"6"</code> or any other) and get <code>"value": 1.66"</code>. I can't get AutoIt to read it.</p> <p>My Json file:</p> <pre><code>"24": { "alt_defindex": {...
1
1,448
How to change screen in react native with react-navigation on click of a button?
<p>I have defined all my routes/navigations in my root component (App.js) and am trying to access one of those screens (UserScreen) from a child component(LoginScreen) on click of a button.</p> <p>Here is my App.js</p> <pre><code>import React from 'react'; import { StyleSheet, Text, View, TextInput, TouchableHighligh...
1
1,298
LibGDX Stage and Actor, Events and Actor properties
<p>I'm just starting android game development with LibGdx framework. I read many online tutorial so far and the more I read the more I got confused: ApplicationListener, ApplicationAdapter, Stages, Game, Screens, Actors, Sprites, Images... not mentioning Input and Gesture listeners of all king).</p> <p>I finally under...
1
1,504
How can I write a function in separate class to display alert Box
<pre><code>package test; import test.DisplayAlert; public class AlertCall { int j; public int dis2(String phoneNumber) { DisplayAlert ob = new DisplayAlert(); j=ob.dis1(AlertCall.this, phoneNumber); return j; } } </code></pre> <p><strong>The class to display the dialog box</...
1
1,036
org.json.JSONException: Value <?xml of type java.lang.String cannot be converted to JSONObject
<p>I have a method from which I am fetching the data from webservice using http post in android.</p> <p>my code is,</p> <pre><code>public class PropertyRequestService { static String result; PropertiesList localProperty = new PropertiesList(); List&lt;PropertiesList&gt; Properties; List&lt;PropertiesList&gt; Proper...
1
2,542
My app crashes when opening tablayout activity
<p>I followed <a href="http://www.androidhive.info/2011/08/android-tab-layout-tutorial/" rel="nofollow">this</a> tutorial to implement a tab layout to my android application. I already have an existing android app that I'm deeloping so I had to adjust the tutorial to it a bit. I'm pretty sure I did everything exactly a...
1
2,528
Error "database error write ‘Invalid default value for" while installing wordpress site using duplicator plugin
<p>I have export one of my wordpress website using duplicator plugin. Now when trying to setup it on my localhost, it is not able to able to import few tables in database. Which cause site not running on localhost.</p> <p>While check the doplicator plugin log i got a lot errors, few are:</p> <pre><code>**************...
1
1,488
How to understand the error "TypeError: Cannot read property 'id' of undefined"?
<p>I'm trying to understand basic concept here. I know this is a common problem and pretty sure there's a simple explanation which I don't seem to get. Here I'm trying to access the different properties of my object which I'm unable to do so.</p> <p>Below is my array output using <code>console.log(val);</code> </p> <...
1
2,256
Logstash grok filter config for php monolog multi-line(stacktrace) logs
<pre><code>[2018-02-12 09:15:43] development.WARNING: home page [2018-02-12 09:15:43] development.INFO: home page [2018-02-12 10:22:50] development.WARNING: home page [2018-02-12 10:22:50] development.INFO: home page [2018-02-12 10:22:50] development.ERROR: Call to undefined function vie() {"exception":"[object...
1
1,499
Server-Side Paging with MySQL, PHP, and AngularJS
<p>This is my first post on this site, and while I have gone through the 2 min. tour please guide me in the right direction if this question seems misplaced or not in line with the site's rules.</p> <p>I have created/modified a PHP script (below), that puts a MySQL table in a JSON format. I'm working with 700,000+ row...
1
2,426
Koin + Retrofit adding header at run time
<p>I have a coin and retrofit based project in MVVM architecture. I want to print the data with 'viewmodel' and add the value of 'token' to the header at run time after I register this project. But I couldn't provide the context structure needed to get the token I saved in SharedPreferences. How can I handle this in it...
1
1,047
SeleniumRC FF3.5.x-3.6 lock file troubles
<p>With Selenium RC 1.0.1, and FF3.5.x or 3.6 I keep seeing this error when trying to run any test, </p> <blockquote> <p>Failed to start new browser session: Unable to delete file \parent.lock</p> </blockquote> <p>when running the server with either,</p> <p>java -jar selenium-server.jar -multiwindow</p> <p>or...
1
1,330
how to upload multiple files, store their paths in different columns in a mysql database row
<p>Hello i am trying to create a subscription form, that allows a user to fill in a form and upload multiple files. already i have gotten some directions on this site as regards uploading a file and storing their paths in a database using this.</p> <pre><code> &lt;form method="post" action="addMember.php" enctype...
1
1,583
asp.net mvc 3 and elmah.axd - yet another 404
<p>Hi all I know that this has been posted as a prior question several times, but I've gone through each question and their proposed solutions and I'm still not able to surmount my 404 issue. I'm running Elmah 1.1 32-bit. I've referred to <a href="https://stackoverflow.com/questions/2118248/asp-net-mvc-elmah-not-workin...
1
1,170
if @user.persisted? with Facebook omniauth | Devise
<p>My <strong>Omniauth_callbacks_controller.rb</strong></p> <pre><code>class Users::OmniauthCallbacksController &lt; Devise::OmniauthCallbacksController def facebook # You need to implement the method below in your model (e.g. app/models/user.rb) @user ||= User.find_for_facebook_oauth(r...
1
1,667
AsyncTask crashes in doInBackground()
<p>You see I'm trying to load some data on this adapter, but I can not make a AsyncTask to show a progress dialog so.</p> <p>This is the complete code of the program it gives me error. I completely revised so do not edit any of the UI.</p> <pre><code>public class MatchNowGames extends Activity { Games games = new Gam...
1
3,323
How to scale a background image in a modal?
<p>I have a modal, and I have a background image in it. The only thing I need to do is scale it down. However, when I change the "width", it actually changes the modal's width. I can't come up with a solution. I have read many other posts here on Stackoverflow as well as other sites (such as css tricks) but I can no...
1
1,361
ImageSpan.ALIGN_BASELINE when TextView has lineSpacing
<p>I want to align my <code>ImageSpan</code> to the baseline of the text, but I also need to add some spacing between the lines.<br> The problem is that when I add line spacing, the <code>ImageSpan</code> doesn't align to the baseline of the text, but to the <code>baseline+lineSpacing</code>, so it's appearing lower th...
1
1,160
Silverlight 3/Prism - Passing an enum value as a Command Parameter
<p>I'm trying to use Prism and the MVVM pattern to develop an application. In my UI, I have a previous and next button defined. For use in a calling web services, I've defined an enum that will tell me the direction I need to traverse. So, in this instance, the buttons map directly to an enum value. The enum defin...
1
1,445
Razor Syntax gives errors in View before compiling (No intellisense)
<p>I was going through the list of NuGet Packages and I was updating everything things like bootstrap, jQuery, etc. but while I was doing that, I unthinkingly updated <strong>Microsoft.Owin</strong> and another package (might have been EF or something else) and it was a <strong>major version</strong> update...woops.</p...
1
3,152
How to prevent infinite loop in react component?
<p>Hi I am new to react and unfortunately I get an infinite loop with this code, and am not sure why. This is the code in question:</p> <pre><code>if (projectInfo) { console.log('Length is', projectInfo.length); for (let i = 0; i &lt; projectInfo.length; i++) { setValues({ ...values, fromD...
1
1,755
java.lang.NoClassDefFoundError: scala/Function1
<p>I tried to start scala application in <code>jar</code>. </p> <p>The following code:</p> <pre><code>object Starter { def main(args: Array[String]): Unit = { args.foreach(path =&gt; { val (minX, maxX, minY, maxY) = MainStage.run(path) println(minX) println(maxX) ...
1
2,215
Enum and a function that returns the month name as a string
<p>This is the exercise:</p> <blockquote> <p>Write a function called <code>monthName()</code> that takes as its argument a value of type <code>enum month</code> (as defined in this chapter) and returns a pointer to a character string containing the name of the month. In th...
1
1,086
javax.jdo.JDOFatalUserException (maven + datanucleus + jetty + com.mysql.jdbc.Driver)
<p>Environment: Eclipse, Maven</p> <p>I have been following the <a href="http://www.datanucleus.org/products/accessplatform_3_2/jdo/guides/tutorial_rdbms.html" rel="nofollow">Datanucleus JDO Tutorial</a> to no avail as I am stuck at Step 4. It has "information", but with no clear way to find it given I am new to Maven...
1
1,039
how to draw line in opencv
<p>hello every ace i have some problem Here is my code who can teach me how to draw a straight line in the video at center? And how to reduce my green line in the video ,because i want to find the Vanishing Point.</p> <pre><code>#include &lt;opencv2/imgproc/imgproc.hpp&gt; #include &lt;opencv2/highgui/highgui.hpp...
1
2,090
Rijndael Padding Error
<p>Hello I am trying to encrypt / decrypt a string via Rijaendal. I simply can't figure out why the decryption blows up. I always end up with an incorrect padding error. One thing that throws me off is the result of my encryption which I return as HEX array. It has a length of 14 bytes. In my decryption function, the ...
1
1,892
Swagger configured in Spring Boot shows only methods with POST and GET mapping
<p>Swagger configured in Spring Boot shows only one method with <em>POST</em> mapping and one method with <em>GET</em> mapping from every controller. Swagger ignores another methods with <em>GET</em> and <em>POST</em> mapping and ignores all methods with <em>PUT</em> and <em>DELETE</em> mappings. My configuration:</p> ...
1
1,189
Unable to get Timestamp document field from Firestore
<p>When getting data from Firestore, I am unable to get a timestamp field.</p> <p>My Room document is structured like this:</p> <p><a href="https://i.stack.imgur.com/2BdpK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2BdpK.png" alt="enter image description here"></a></p> <p>and I'm getting the ...
1
1,874
Django: 'SessionStore' object has no attribute 'session'
<p>I'm trying to built an E-commerce following a tutorial on Udemy. I'm on the chapter on how to build the cart functionality (how to add items, see total cost and quantity). </p> <p>However, I'm having troubles adding products to cart. </p> <p><strong>AttributeError at /cart/add/4/ 'SessionStore' object has no attri...
1
2,269
Using Bootstrap modal on JSP page
<p>I have a users table with <code>Info</code>, <code>Edit</code> and <code>Delete</code> buttons for each row.</p> <pre><code>&lt;tbody&gt; &lt;c:choose&gt; &lt;c:when test="${not empty customers}"&gt; &lt;c:forEach items="${customers}" var="customer"&gt; &lt;tr&gt; &lt...
1
1,281
Xamarin Prism Forms: Application windows are expected to have a root view controller at the end of application launch
<blockquote> <p><strong>Solved:</strong></p> <p><strong>If you are having this error when using Xamarin Forms you should probably check if your initial page is properly constructed. This happens when XF fails to create your initial page and just continues running. It seems that this another case where Xamarin Forms fai...
1
1,307
nginx doesn't listen on port 80 twice?
<h2>Edit: Read this, first:</h2> <p>Apart from the accepted answer, these errors occur when nginx is started <em>without</em> systemd. Kill nginx: <code>ps -ax | grep nginx</code> → find the <kbd>nginx master pid</kbd> → <code>kill ###</code>; run nginx <em>with</em> systemd: <code>systemctl start nginx</code>.</p> ...
1
1,078
JavaFX - Music On/Off Toggle Button (Not Working)
<p>Below is the code sample, with other features left out. The code below encompasses the media player only. It's used on a menu screen for a project I'm working on. My issue is getting the musicButton (which is a toggle button- On/Off) to work properly. Using the following code, when I interact with the music toggle b...
1
1,065
PDO no database selected
<p>I have created a login system for a website however I receive the following error message:</p> <blockquote> <p>Warning: PDOStatement::execute(): SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in C:\wamp\www\Bitev3\core\classes\users.php on line 18 when trying to log the user in.</p> </blockquote...
1
3,841
Populate ListView In VB.Net
<p>Code to show the data in two tables display in ListView (CODE WORKS PERFECTLY):</p> <pre><code>#Region "FillListView" Sub FillListview() LV.Items.Clear() myqry = "SELECT AccResult.StudNo,AccResult.CNumber,AccResult.FirstName,AccResult.LastName,AccResult.YrandSec,Exercises.Exer1,Exercises.Exer2,E...
1
2,220
How to convert normal data(returned from room) to LiveData on ViewModel layer
<p>I am using the clean architecture with MVVM pattern so the room part goes into the data layer and I'm returning observables from there to domain layer and using them in presentation layer by wrapping them in a LiveData. Now, the problem is that after insertion/deletion/update the list is not getting updated immediat...
1
5,078
"'!_needsLayout': is not true" error in Flutter when changing between screens with BottomNavigationBar
<p>I have a <code>Scaffold</code> with <code>BottomNavigationBar</code>:</p> <pre><code>class Home extends StatefulWidget { @override _HomeState createState() =&gt; _HomeState(); } class _HomeState extends State&lt;Home&gt; { int _currentIndex = 0; final List&lt;Widget&gt; _children = [ const FirstPage(),...
1
4,157