title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Define an element in XSD which is an ENUM and has one attribute
<p>I'd like to have the XSD for the following xml:</p> <pre><code>&lt;root&gt; &lt;tag&gt; &lt;child1&gt;value1_1&lt;/child1&gt; &lt;child2 att="att1"&gt;value2_1&lt;/child2&gt; &lt;/tag&gt; &lt;/root&gt; </code></pre> <p>With the following XSD</p> <pre><code>&lt;?xml version="1.0" encoding="...
2
1,096
Unable to start the Phusion Passenger logging agent: it seems to have been killed with signal SIGKILL during startup
<p>While starting Passenger with apache, I am getting the following error:</p> <pre><code>[ 2014-09-29 08:35:08.7694 18178/7f4ed722d700 apache2/Hooks.cpp:1303 ]: Initializing Phusion Passenger... [ 2014-09-29 08:35:08.7806 18179/7fc2336a7720 agents/Base.cpp:1591 ]: Random seed: 1411994108 [ 2014-09-29 08:35:08.7807 18...
2
2,683
Dynamic chart allocation QML with cpp
<p>I have a series of data approx 722 values and I want to plot this data using qml and cpp. How do I dynamically change the values of x and y axis for line charts ? and how do I append the data ?</p> <p>I went through the oscilloscope example but it uses a viewer and I am writing a code for the already made GUI can so...
2
1,080
Laravel 5 confirmation error message display in wrong field
<p>I would like to check if there is an error in my code I did not realize but why is my confirmation field's error message keep on displaying in the wrong filed? Suppose I have a password field and a password_confirmation field, but every time when user made a mistake in the password_confirmation field, the error disp...
2
1,478
Google Drive REST API - Invalid permission value for only one user
<p>I implemented Google Drive file permissions into my application. Everything works perfectly, only for one user (email), when I try to <a href="https://developers.google.com/drive/v2/reference/permissions" rel="nofollow noreferrer">insert a permission</a>, I get </p> <blockquote> <p>bad request (400): Invalid perm...
2
1,305
Python ADO + ODBC function
<p>I am writing a small module to help a transfer from M$-Access to SQLite (database needs to be portable), but I'm struggling in interpreting the error message that follows from this code (and of course to get it to work). </p> <pre><code>import pyodbc import win32com.client def ado(db, sqlstring='select * from tabl...
2
1,226
need to delete selected rows through checkbox with a single Delete button
<p>okay this is the updated main php page now, ive cleared my previous post to make this clean, FYI...what im posting here are just my test page which is he exact replica of my actual page..just have different php page name...</p> <pre><code> &lt;link href="jquery-ui-1.10.2.custom/css/dark-hive/jquery-ui-1.10.2.cus...
2
4,477
i18n load translations from s3bucket
<p>I am using the <code>i18n</code> module in my react app which is hosted as an app (which I will refer to as live app) on <code>S3</code> and has <code>cloudfront</code> sitting in front of it.</p> <p>I want to store the s3 url in a config file as to avoid having it hardcoded in my app so that I can work against tran...
2
1,129
Lazy loading a module hangs the angular web app
<p>I am sure I am missing something really simple, but I've spent hours on it and I can't figure it out.</p> <p>In my app-routing.module, I am lazy loading modules (Angular 8):</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="...
2
1,244
Ruby using variables in print statements
<p>I have the following code, which is called by selecting option 1 from the menu in my program:</p> <pre><code>def self.addModuleToScheme =begin Create an empty hash for the schemes =end schemes = Hash.new() =begin Allow user to enter scheme names into a set of variables, and use each scheme name as a hash/ array of...
2
1,042
How to initialize room persistent library database with retrofit retrieved model information?
<p>im having trouble understanding how to use retrofit with <a href="https://developer.android.com/topic/libraries/architecture/room.html" rel="nofollow noreferrer">android persistent library room</a>.</p> <p>Lets say i have the following model entity defined:</p> <pre><code>Entity(tableName = MY_EVENT_TABLE) public ...
2
1,044
aggregateRating within Review object
<p>We're trying to use the <code>aggregateRating</code> tag but we're getting this warning in the <a href="https://search.google.com/structured-data/testing-tool" rel="nofollow noreferrer">SDTT</a>:</p> <blockquote> <p>The <code>aggregateRating</code> property inside a <code>Review</code> object applies to the revie...
2
1,188
Error 10054 api recv with Delphi SocketServer
<p>This question is about this message <code>"socket error: an existing connection was forcibly closed by the remote host (10054), on api 'recv'"</code></p> <p>We have a multitier application that we created using Delphi and uses Borland Socket Server on application server.</p> <p>This solution is installed on severa...
2
1,298
Creating a NavigationLink in SwiftUI without NavigationView
<p>So I <a href="https://stackoverflow.com/questions/58562063/create-a-navigationlink-without-back-button-swiftui">found</a> this amazing piece of code which uses <code>presentationMode</code> environment variable to archive transition between views without NavigationView:</p> <pre><code>import SwiftUI struct View2: V...
2
1,364
Ansible append dict results for all hosts
<p>I am attempting to use Ansible to send a command to several hosts that returns a dict. I then want to append the the dict results of each host to accumulate the results of all the hosts. Finally, I want to print the dict of accumulated results for later processing or to write to a file. It appears I am failing to c...
2
1,315
Java: Unable to access the remote MySQL database using JDBC
<p>I am trying to access the MySQL database, which is installed in my Web server, using my Java code. My Java application is a Swing application, running in my PC. Below is my Java code.</p> <pre><code>import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.sql.Connection; import java....
2
1,664
How to find a dependency in maven, dependency:tree doesn't work
<p>In a effective pom I see</p> <pre><code>&lt;plugin&gt; &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt; &lt;version&gt;3.3&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;default-site&lt;/id&gt; &lt;phase&gt;site&lt;/phase&gt; &lt;goals&gt; &l...
2
1,280
Error Deserializing XML (C#): There is an error in XML document (2, 2) (but XmlSerializer created it)
<p>I know, I know questions on failure to deserialize XML with error "There is an error in XML document (2, 2)." are littered across the internet but I'm still stumped.</p> <p>I have an XML document created using XmlSerializer from a c# class. This document is failing to deserialize with Exception:</p> <pre><code>The...
2
1,086
How to change controller method that JSP page will not refresh after POST method. Spring MVC, AJAX
<blockquote> <p>Here i have got AJAX script and i need to correct my controller</p> </blockquote> <p>I need to do that when I'll send data to my controller from the form it will not refresh my page. I have got a <code>&lt;form&gt;</code> at my JSP page and AJAX <code>&lt;script&gt;</code> that transfer my data from ...
2
1,519
Looping a program to start again after finish checking
<p>I'm trying to make a program where the user would input a string over a and b, and the program would check whether it is accepted or not. Now i managed to make the program exit if the user input "exit", but i haven't been able to figure out how to loop the program and make it start again when it finished checking a ...
2
1,766
Menu button can only be clicked one time
<p>I added a custom menu to the menu button using the following code:</p> <pre><code>@Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); if (getDisplayedView() instanceof WorkspaceView) { ((WorkspaceView) getDisplayedView()).showEditMenu(); ...
2
1,147
In OS X, why does using println() cause my program to run faster than without println()
<p>I've run into a really strange bug, and I'm hoping someone here can shed some light as it's way out of my area of expertise.</p> <p>First, relevant background information: I am running OS X 10.9.4 on a Late 2013 Macbook Pro Retina with a 2.4GHz Haswell CPU. I'm using JDK SE 8u5 for OS X from Oracle, and I'm running...
2
1,483
Click link inside iframe
<p>I want to click with the help of javascript on a link inside iframe, but this doesn't work. index.php load redirect.php inside frame then creat button outside iframe that click on the link <a href="http://www.yoursite.com/" rel="nofollow">http://www.yoursite.com/</a>. index.html:</p> <pre><code>&lt;html xmlns="http...
2
1,089
Bluetooth app not working on devices running on Lollipop
<p>I made a Bluetooth app. It works fine in <code>Nougat</code>, <code>Marshmallow</code>, <code>Jelly Bean</code>, <code>KitKat</code> but for reason, it crashes in Android <code>Lollipop</code> when <code>Discover</code> button (which discovers all the discoverable devices) is clicked. </p> <p>Here is the method whi...
2
2,862
Java Error - NoClassDefFoundError while running a java program from command prompt
<p>Team,</p> <p>I am struck with a basic error for quite sometime. Can someone pin point what i am missing here.</p> <p>Created a simple java program (which would connect to a socket and send a message). Code mentioned below</p> <pre><code>package client.sever.socket.example; import java.io.*; import java.io.DataOu...
2
2,001
Outlook 2003 - Recurring items showing the first occurrences start/end date
<p><strong>Background</strong>: I'm writing an application in C# (.NET 3.5), that looks at multiple users Outlook 2003 calendars (using COM objects), gets the appointments and inserts the data for those appointments into a database.</p> <p><strong>Problem:</strong> After the first users calendar, any recurring items ...
2
5,257
Getting @media queries to work correctly with buttons
<p>I'm trying to do a few things here: </p> <ol> <li>make these buttons responsive to each screen size</li> <li>to have the buttons shift down when the screen size gets to Mobile- size and smaller (but keeping at least 4 buttons per row so I can add more buttons later)</li> <li>when the screen size gets to 768px or ...
2
2,185
Getting Hibernate mapping exception with java.util.list
<p>HI, I am getting a problem with a data member of a class. The data member is ContactNumbers. The ContactNumbers is a java.util.list and I am getting errors when hibernate maps the list in the database. What I want is that hibernate creates an array for the contactnumbers in the database postgresql. When I remove the...
2
3,076
Spring Boot 1.4.3 / servlet api 3.1 Request cannot be cast to custom CustomServletRequestWrapper which extends standard HttpServletRequestWrapper
<p>I have implemented a custom servlet request wrapper which extends standard <code>HttpServletRequestWrapper</code> for XSS security vulnerabilities.</p> <p>However when I hit my application URL configured via Spring Boot 1.4.3 both (Jetty or Undertow) display error message as :</p> <pre><code>Request cannot be cast...
2
7,106
Android Studio 4.X.1 with error trustAnchors parameter must be non-empty
<p>Guys I have started with stater project on Ionic using Capacitor. Trying to build Android build and seems like Android studio is failing with Gradle issues.</p> <p>I have done below</p> <p>ionic capacitor run android</p> <p>My build.gradle file</p> <pre><code>// Top-level build file where you can add configuration o...
2
1,905
Group map elements and sum their values in Java
<p>I read the below data from a CSV file. </p> <pre><code>Pedro|groceries|apple|1.42 Nitin|tobacco|cigarettes|15.00 Susie|groceries|cereal|5.50 Susie|groceries|milk|4.75 Susie|tobacco|cigarettes|15.00 Susie|fuel|gasoline|44.90 Pedro|fuel|propane|9.60 </code></pre> <p>I wanted to group the expenses of each cust...
2
1,052
Async Recursive Function
<p>I am attempting to create a node js alexa app to control my local kodi instance. I am using <a href="https://github.com/martinverup/node-kodi" rel="nofollow noreferrer">Node-Kodi</a> as a wrapper for the JsonRPC API. Throughout the app I have been using Async/await with no issues. My code can be seen <a href="https:...
2
1,941
Spark Sql UDF throwing NullPointer when adding a filter on a columns that uses that UDF
<p>SPARK_VERSION = 2.2.0</p> <p>I ran into an interesting issue when trying to do a <code>filter</code> on a dataframe that has columns that were added using a UDF. I am able to replicate the problem with a smaller set of data.</p> <p>Given the dummy case classes:</p> <pre><code>case class Info(number: Int, color: S...
2
3,542
Getting error while running Webservices on Tomcat7 server - Ubuntu 16.04 LTS
<blockquote> <p>Technical Environment:-</p> <ul> <li>Ubuntu 16.04 LTS</li> <li>Tomcat 7</li> <li>Java 7</li> <li>Eclipse Luna</li> </ul> </blockquote> <p>I have imported a webservice into my eclipse luna workspace and tried to run that service on tomcat7 server. But I'm getting the following error.</p...
2
4,306
Google Maps API v2 API key can't be found; using ABS
<p>I have been trying to convert an app over from the old Google Maps API to the new Google Maps API v2 and have been running into several frustrating roadblocks. The error that I currently trying to figure out is this:</p> <pre><code>01-16 14:59:38.414: E/AndroidRuntime(29059): Caused by: java.lang.RuntimeException:...
2
1,851
inputstream on android - large json fails to read all data
<pre><code>Android Studio 1.5 </code></pre> <p>I have built a java library that I copy into Android Studio. The java library works ok running in my test cases running on Linux. However, when I copy the library into Android studio and test it on actual devices. It fails to read all the JSON. Only ~half gets read. The J...
2
1,564
Input class not found in laravel 5
<p>I want to save file uploaded through form into a json file for this I need to get post data which is easily get through Request or Input class methods.</p> <p>The problem is whenever I use Request or Input I can't get methods such as getClientOriginalName to get name of file and other parameters of file.</p> <p>My...
2
1,083
How to edit excel file with large data using SXSSF change cell color
<p>I have read all previous ask question but there is solution I found.</p> <p><a href="https://stackoverflow.com/questions/58500415/how-to-edit-existing-large-excel-file-with-sxssf-streaming-api">How to Edit existing large excel file with SXSSF Streaming api</a></p> <p><a href="https://stackoverflow.com/questions/32...
2
7,725
objective-c: Webservice, How to tell about specific method to access
<p>I am trying to access <a href="http://services-staging.cmtnyc.com/payment/payment.asmx" rel="nofollow">http://services-staging.cmtnyc.com/payment/payment.asmx</a> web service and </p> <p><strong>AuthorizeCreditTrip</strong> I checked this webservice on .Net application and its working fine but in objective-c it doe...
2
3,395
Rendering a 2D Map in a Game - Cropping and Scrolling
<p>OK. I'm in essense trying to make my own interpretation of the NES hardware, so I can make a game that ideally would resemble what a NES game would look like. I'm currently stuck with how to adjust how to draw the playfield to the video memory (back buffer).</p> <p><strong>BACKBUFFER</strong></p> <p>The NES had r...
2
1,086
Uncaught TypeError: Cannot read property 'push' of undefined with correct import being available
<p>I am using <code>react-router</code> and have seen the other questions asked already. May be I am blind or this may be a valid issue.</p> <p><code>index.js</code> has</p> <pre><code>const Root = () =&gt; ( &lt;MuiThemeProvider&gt; &lt;Router history={browserHistory}&gt; &lt;div&gt; ...
2
1,893
Hibernate/JPA returns null when the underlying query has results
<p>I'm using JPA's entitymanager.find(T, pk) to find a record. This is in an existing app where entitymanager.find() is used successfully, but this is the first instance of using a composite primary key. Here is the entity class:</p> <pre><code>@Entity @Table(name = "host_property", schema = "app") @IdClass(HostProp...
2
2,015
PyAudio not capturing correct audio data
<p>I can't get a PyAudio stream to capture audio data from my USB microphone.</p> <p>I'm running a Python program on Ubuntu trusty (Ubuntu 14.04.3 LTS). I've configured ALSA to set my USB microphone as the default sound card, and tested that this work's properly by running:</p> <p><code>arecord -D plughw:0,0 -f cd te...
2
2,862
Modify arguments to typing.NamedTuple prior to instance creation
<p>I was looking forward to using the somewhat new <code>typing.NamedTuple</code> class, which allows the creation of named tuple classes using the usual Python class syntax (including the ability to add docstrings and methods, provide default values, type hints, etc etc).</p> <p>However: the class at the bottom is p...
2
1,103
Spark starting more executors than specified
<p>I'm running Spark 1.5.1 in standalone (client) mode using Pyspark. I'm trying to start a job that seems to be memory heavy (in python that is, so that should not be part of the executor-memory setting). I'm testing on a machine with 96 cores and 128 GB of RAM.</p> <p>I have a master and worker running, started usin...
2
1,515
LZW Encoder Decoder - Symbol Table
<p>My LZW Compression works when I use a symbol table(dictionary) of length 256, Encoder and Decoder both work with 256 and everything works fine but when I increase this number for example to 512, 1024, 4096 the decoded file output is not the same with the first input file...Any hints?</p> <p>Source Code:</p> <p>LZW...
2
2,721
Can't Retrieve image from my SQL Server database using vb.net
<p>I created a table in my database which stores the user's information and his/her picture. My picture column has an <code>image</code> data type.</p> <p>I completed my registration form and successfully added data to my database using this code:</p> <pre><code> Private Sub cmdRegister_Click(ByVal sender As Object, ...
2
1,257
Collision detection not working in pygame
<p>I am making a game at the moment and I am experiencing problems with collision detection. I am making an end of level block but it can not detect if the player is standing on it to change to level 2. The collision detection for the block is found in player.updater(). As well as this the block is a class and in a gro...
2
6,492
Python numpy MemoryError - Loading multiple CSV files into HDF5 store and reading into DataFrame
<p>(Using Python 3.3 and Pandas 0.12)</p> <p>My question consists of two parts.</p> <h1>First</h1> <p>I'm trying to iteratively read/append multiple csv files - that amount to about 8GB in total - into a HDF5 store based on <a href="https://stackoverflow.com/questions/14262433/large-data-work-flows-using-pandas">thi...
2
2,972
Unsatisfied dependency Exception
<p>I have a spring boot application where I need to store image into a local folder and its details like id,name and path in db.I done this with no problem. Now I want to edit the name in the folder as well as in db. I succeeded in renaming the file in the folder and i want to rename in db as well. I have written code ...
2
1,522
Core Data - NSManagedObject returning nil
<p>I wrote two seperate functions <code>fetchRecords</code> and <code>displayRecords</code> written in <code>Appdelegate</code> Class. <code>fetchRecords</code> function will fetch all records from the entity and it is working fine.<code>displayRecords</code> function accepts the return value from <code>fetchRecords</c...
2
1,027
Multiple calls to a Alamofire request, get reference for each call
<p>I have used Alamofire for uploading images in multipart form data. I am successful in achieving my target. Each time I upload an image, I call the "uploadDocWebService" function. So the number of times the function is called, is equal to the number of images. I am hopeless in identifying the result of each call. My ...
2
1,940
terraform to generate a file, zip and upload to s3
<p>I would like to generate a file dynamically, zip it and upload it to s3 using terraform. Below is what I have so far.</p> <pre><code>#Setup a local variable with docker container information locals { file_content = jsonencode({ &quot;AWSEBDockerrunVersion&quot; : &quot;1&quot;, &quot;Image&quot; : { ...
2
1,087
C convert iso ISO−8859-1 to UTF-8 with libconv
<p>I need to encode Latin ISO−8859-1 chars into to UTF-8 (and the reverse operation too). </p> <p>I first used this answer <a href="https://stackoverflow.com/questions/11156473/is-there-a-way-to-convert-from-utf8-to-iso-8859-1">Is there a way to convert from UTF8 to iso-8859-1?</a> to perform the operation and it work...
2
1,861
Why is repository null
<p>I'm making an API and I'm making API calls.<br/> I created an repository named <code>IPartnerRepository</code><br/> When I run my call It gives the nullexception error.<br/> When I debug my code I see that <code>IPartnerRepository</code> is null.<br/> My visual studio doesn't show any errors or mistypings.<br/> Why ...
2
1,852
Getting "EHOSTUNREACH" when trying to connect to API using Axios + Express.js
<p>I started playing around with the Philips Hue Bridge API by sending it requests using Postman. I was able to authenticate myself, create a user and even successfully turn lights on or off. Conclusion: I am able to reach the API.</p> <p>Next I made a mini test javascript file to do the exact same using Node.js and <...
2
1,732
Error executing hdfs namenode -format
<p>I am new to hadoop, hdfs.. I have do the next steps:</p> <p>I have started zookeeper in the three namenodes:</p> <pre><code>*vagrant@172:~$ zkServer.sh start </code></pre> <p>I can see the status:</p> <pre><code>*vagrant@172:~$ zkServer.sh status </code></pre> <p>Result Status:</p> <pre><code>JMX enabled by de...
2
3,369
IllegalArgumentException when trying to populate fragments for a ViewPager within a DialogFragment
<p>I'm launching a DialogFragment which has a ViewPager in it, which in turn will have multiple fragments in it.</p> <p>When i try to actually add the fragments inside the ViewPager though, I get an IllegalArgumentException saying the view is not found:</p> <pre><code>03-14 16:44:11.989 3617-3617/com.mycompany.app...
2
2,995
ASP.NET Core 2.0 app targeting .NET 4.6.1 fails to host on IIS
<h2>The problem</h2> <p>IIS ASP.NET Core module is unable to start an ASP.NET Core 2.0 app.</p> <p><strong>Browser:</strong> HTTP Error 502.5 - Process Failure</p> <p><strong>Windows Event Log:</strong> Application ‘<code>MACHINE/WEBROOT/APPHOST/AppSite</code>’ with physical root ‘<code>C:\inetpub\apps\AppFolder\</c...
2
1,333
Multiple Ajax run syncronus in .each loop
<p>I want to run AJAX requests for multiple time to get data from different folders and at the last one more AJAX will fire to make a zip of the data. every thing is done but the biggest issue is some files runs after the file file run so they can't be include in zip file. Please suggest what to do?</p> <pre><code>$('...
2
1,268
WPF Window Chrome styling
<p>I'm using <a href="https://msdn.microsoft.com/en-us/library/system.windows.shell.windowchrome(v=vs.110).aspx" rel="nofollow noreferrer">WindowChrome class</a> for solving problem with different icons in task bar and app header. Here is my window.style example:</p> <pre><code>&lt;Window.Style&gt; &lt;Style Targe...
2
1,230
If(isset)$_POST trouble
<p>I'm really battling with this and I've tried every youtube / google page I could find about this, nothing seems to fix the problem.</p> <p>When clicking submit the database collects only 'idContactForm' but not the rest (name/email/subject/message)</p> <p>I've tried everything I could find using the if(isset)$_POS...
2
1,684
Stop top-fixed element when reach div
<p>I have a page with 2 navbars. The first one is fixed at the top of the page. The second, in the middle of the page, become "top-sticky" when I scroll.</p> <p>I would like to stop the 1st navbar just before reaching the 2nd. So that when you scroll after the 2nd navbar, only this one is visible, the 1st stays upper/...
2
1,174
Foundation - Top Bar and Icon Bar in one template
<p>I'm working on <code>Foundation Zurb</code> template and I'm trying to get it working. I have <code>Top Bar</code> at the top of the screen <em>(full width)</em>, <code>Icon Bar</code> at the left side <em>(full height)</em>. I know that Foundation has 12 grid system.</p> <p>According to Foundation:</p> <blockquo...
2
1,710
Java SSL context not initialised
<p>Hello i'm trying to run a SSL server and client program. I'm first creating a certificate with the cmd command &quot;keytool -genkey -keystore mySrvKeyStore -keyalg RSA&quot;. 123456 is the password after i fill in the info. I put the certificate in the same folder as the server and client, i run the server and I ge...
2
2,353
How can I display an array in a tree view structure?
<p>I want to build a tree view made of departments(parent) and sub-departments(child). In my database I think I have a good structure which is like this:</p> <pre><code>-------------------------------------------- Dep_name | dep_id | dep_parent_id -------------------------------------------- Accounting ...
2
2,083
Forward declaration to break cyclic dependency in C++20 modules doesn't work
<p>I've been banging my head on this problem for days, I read a lot of documentation and posts about new C++20 modules among which <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1103r3.pdf" rel="noreferrer">this official one</a>, <a href="https://vector-of-bool.github.io/2019/03/10/modules-1.html" re...
2
1,756
'nil' is not an ActiveModel-compatible object for searches
<p>Ok I was able to overcome the mountain with my searches and getting the results to display properly. However, I have notice that only one of my search options work. The rest gives a "'nil' is not an ActiveModel-compatible object that returns a valid partial path." even when I return the coding back to old. This is s...
2
1,316
How to prevent Excel from crashing when renaming a sheet in a workbook with UDFs
<p>I have a worksheet which contains two UDFs. The contents of them (apart from one line) isn't that interesting for the problem at hand, but for the curious, here they are:</p> <pre><code>Function finn_prioritert_oppgave(nummer As Long) As String Dim i As Long, r As Range, c As Range Set r = Range(PDCA.Range("N1...
2
1,130
read write object in codenameone storage
<p>I'm developing a j2me application based on codenameone. I implements some codes and Now I wanna add database to my application. After search a lot I found Storage class of codenameone that simplify database concept in mobile application.</p> <p>In this appliaction I create a class for each entity (like person, city...
2
1,398
Swiper React Breakpoints on React Page Load (Bootstrap)
<p>I'm using <a href="https://swiperjs.com/react" rel="nofollow noreferrer">Swiper React</a> with React.</p> <p>As far as I'm aware, I'm not able to control the 'slides per view' with Bootstrap. If I could, I'd simply create the necessary columns and put the swiper slides inside them.</p> <p>Instead I'm using the Swipe...
2
1,863
Download huge number of images reading a JSON file
<p>My task is to parse a large json data (consists of 1 million URLs) and download images to local server, but while downloading we are losing large no of data (around 50k) which are not captured in log files</p> <p>We are splitting large json file into several small json files. We have written a program in nodeJS whi...
2
1,125
Google Play Store: "This app is incompatible with your device"
<p><em>Not a duplicate</em></p> <p><strong>Situation</strong>:<br/> My app is designed for smartphones and currently on the Google Play Store it displays that <strong>my app is not compatible with my device and as well as no devices are supported</strong>. I have uploaded my application's APK on Google Play Store <str...
2
3,165
ffserver streams webm data, but nothing is displayed
<p>I'm trying to stream webcam data over the internet on a lubuntu machine. To achieve this, I've installed ffmpeg and ffserver. However, I can't seem to get this to work. I would like to use the webm format to integrate it as an HTML5 video. I found several examples of this on the internet, so that is where I based my...
2
1,239
How to avoid UIWebView on Firebase/Auth
<p>I need to get a Firebase/Auth version where UIWebView has been replaced with WKWebView</p> <p>After an AppStore rejection due to use of UIWebView I'm trying to update to a version of Firebase pods which are not using it. But after pod update, pod install, pod deintegrate ... the Firebase/Auth version I can get Fire...
2
3,525
Cross-Compiling Boost on Windows for Raspberry Pi using SysGCC Toolchain and MinGW
<p>I currently trying to cross-compile <strong>Boost 1.64.0</strong> on <strong>Windows 7 (64bit)</strong> for the <strong>Raspberry Pi</strong> (running Jessie) using the <a href="http://gnutoolchains.com/raspberry/" rel="nofollow noreferrer">Raspberry SysGCC 4.9.2 Toolchain</a> and <a href="https://mingw-w64.org/doku...
2
2,190
Why does a composer update need access to the database
<p>I am working with Symfony 2.8 and running into some issues launching a simple <code>composer update</code> command. </p> <p>This error comes on my development environment. I am using a vagrant virtual machine. Here is the error:</p> <pre><code>[Doctrine\DBAL\Exception\ConnectionException] ...
2
1,823
Vagrant - Port forwarding behavior with private networks
<p>I am testing nginx setup with vagrant but I seem to be missing some minute detail because of which when I try to reach nginx from host on a static ip, the connection times out. My Vagrant file:</p> <pre><code> # -*- mode: ruby -*- # vi: set ft=ruby : $script = &lt;&lt;-SCRIPT sudo apt-get -y update ...
2
1,982
Out of memory on a byte allocation setContentView
<p>code file url <a href="http://expirebox.com/download/63a713a00e712b22ed282da15771c3b8.html" rel="nofollow noreferrer">http://expirebox.com/download/63a713a00e712b22ed282da15771c3b8.html</a> Every time when i open my app shows this log and (MainActivity.java:185) is setContentView(R.layout.activity_main);</p> <pre><...
2
2,096
GKE ESP Failed to fetch service account token
<p>I got gRPC service in GKE with 3 pods. Each pod got attached ESP container with rollout_strategy=managed and backend pointing to gRPC.</p> <p>Sometimes when I hit http endpoint I got</p> <pre><code>{ "code": 13, "message": "Failed to fetch service account token", "details": [ { "@type": "type.googleapis.co...
2
2,433
How to use notifyDataSetChanged() after updating a row
<p>I have a custom adapter as following (declared global e)</p> <pre><code>CustomAdapter adapterE; </code></pre> <p>I am making a database call for updating a row in the db in the <code>onItemClick</code> listener of the <code>listView</code> <code>listItem</code>. the db row is updating properly</p> <p>after that i...
2
1,029
Zend Framework 2: Zend\Mvc\Router\Http\Regex optional value
<p>I have a controller and action which take a customer name and then do a search on the database to match the customer. Some customers may have a middle name, and some don't.</p> <p>I have the following two routes for this:</p> <pre><code> 'full-name' =&gt; array( 'type' =&gt; 'regex', ...
2
1,701
Mysterious "progressive slowing" problem in run loop / drawRect
<p>Here's a real mystery.</p> <p>Imagine you are doing the conventional process of drawing a complex image offscreen (CGLayer), and you are updating the image on to the screen intermittently as you draw.</p> <p>As you know the way to do this is: run the large drawing process in the background, and call to the foregro...
2
5,717
How to call user-defined function in RcppParallel?
<p>Inspired by the artical <a href="http://gallery.rcpp.org/articles/parallel-distance-matrix/" rel="noreferrer">http://gallery.rcpp.org/articles/parallel-distance-matrix/</a>, I try to use RcppParallel to run brute-force search in high-dimensional parametric space for backtesting using multithreads. I am stuck in how ...
2
2,296
Android MVP + Google Dagger 2 + SQLite
<p>I am working on a school project where I have to code an android project in MVP architectural pattern. I started doing a bit of research on Google Dagger 2 as well. For now I am simply trying to check if a user exists in the database or not. The problem, as everyone knows is passing the context. I looked for a conci...
2
1,998
Transparent header on scroll to full colour - Nav overlay issue
<p>Currently my site has a transparent navbar when on scroll will change to full colour. The issue i am having is that the navbar also switches colour when the page is scrolled on the fullscreen navigation. </p> <p>How can i stop the navbar switching colour when the fullscreen navigation is open? Would i need to chang...
2
3,649
adding percentage label to Bokeh Pie chart
<p>I want to add percentage as a label to my Bokeh donut chart. I have accomplished it! with a bit of mathematics! but I think that there must be a better built-in solution. I saw some solutions but they were from an older version of Bokeh and did not work for me. I am sharing my code and result:</p> <pre><code>from m...
2
1,036
Parsing a table with no id/class in a specific <div> with beautifulsoup
<p>I am trying to parse data from a section of an HTML page I grabbed with Beautiful Soup.</p> <p>I have two problems. There are numerous tables around the website, but they don't have unique identifiers to navigate easily. </p> <p>I have tried the following just as a test, to no avail:</p> <pre><code>for tag in sou...
2
14,517
Select the current div element on hover using class in Javascript
<p>I am making a Wordpress blog and editing a plugin's PHP files. The plugin displays all post using a <strong>while</strong> loop. On hover the original the current div of <code>class=&quot;myClass2</code>&quot; &amp; <code>id=&quot;div2&quot;</code> should be replaced with corresponding div of <code>class=&quot;myCla...
2
1,673
Cordova SQLite plugin only works on first call
<p>I have a cordova app with two pages, the first has a search field and the second displays the results of the first. The <code>displayResults</code> function</p> <pre><code>function displayResults(){ var query = localStorage.getItem('search'); var db = window.sqlitePlugin.openDatabase({name:"Store-DB", locat...
2
1,147
pdoc3 ValueError: File or module 'xxx' not found if imported from other package
<p>pdoc3 is a nice tool to generate documentation from code. In one of my projects, I got some exception. Wonder if it is caused by project structure. These are the folder structure of my two projects.</p> <pre><code>proj_A -src -automation -hl7ctl (has a definition of HL7CtlClient) proj_B -src ...
2
1,177
How to control react-bootstrap carousel with custom buttons?
<p>here i need to control carousel slides with custom buttons i achieved this with the help of this <a href="https://react-bootstrap.github.io/components/carousel/#controlled" rel="nofollow noreferrer">Example</a>.</p> <p>This is the code for it..</p> <pre><code>import React, { useState } from &quot;react&quot;; import...
2
1,085
How do I select multiple table rows from filtered results of a Searchbar and SearchDisplayController?
<p>I understand that UISearchDisplayController got deprecated in iOS 8.0 but there's not a lot of good documentation around the new UISearchController so I used the former instead. Do bear with me.</p> <p>Right now, I'm using XIB files. I know that for a regular tableview, you can allow multiple cell selection by goin...
2
1,933
Thymeleaf How can I display a column from one table based on a value from another table
<p>I'm working on a small project trying to learn thymeleaf. I have 3 tables Timetables which contains an id, assignment id as a foreign key and other stuff, Assignments which contains and id and project id as a foreign key and Projects which contains and id and project name.</p> <p>I need to display Timetables in an ...
2
1,145
object-curly-spacing when the property is on it's own line
<p>My indent settings is 4 spaces, but as you can see in my screenshot, this snippet is auto-fixing to 2 spaces, then eslint is throwing the error.</p> <p><a href="https://i.stack.imgur.com/RFJ9b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFJ9b.png" alt="2 spaces eslint error"></a></p> <p>here...
2
1,340
Flask Registration Form Condition if elif else doesn't work
<p>When I try to register an user, I don't know why, but if the email I'm trying to register does not exist in the db, the for loop ends, though there's an elif end else statement.</p> <p>Someone know why?</p> <p>This is the web.py file</p> <pre><code>from flask import Flask, session, redirect, url_for, escape, requ...
2
1,929
parent content height not expanding with tabs content height
<p>I am trying to display tabs content in pure css, but i am unable to fix this height for parent. if content is more in tabs content parent content(red area) not expanding. please help to to expanding the parent (red area) when content is more and after clicking on other tab, previous tab content not hidden. please ne...
2
1,749
jboss standalone-full.xml ,min-pool-size and max-pool-size issue
<p>need a help, i have a java application which is running on jboss -6. recently we got a requirement to keep our min-pool-size and max-pool-size same, along with prefill value should be &quot;true'.</p> <pre><code>&lt;pool&gt; &lt;min-pool-size&gt;100&lt;/min-pool-size&gt; &lt;max-pool-size&gt;100&lt;/max-pool-size&g...
2
1,159
primefaces datatable with ajax pagination recreates viewscoped bean
<p>I have a Primefaces datatable with pagination enabled (which I think it uses ajax requests when we move between pages clicking the links of the paginator).</p> <p>In every row I have a commandbutton for editing the row. The method action of this commandbutton sets a managed bean property to hide the datatable and t...
2
1,639
create a proxy for a datapower application
<p>I am trying to consume a IBM datapower webservice in c#, wcf. But this is the error the vendor has sent.</p> <pre><code> May 23 10:29:44 [error] wsgw(MedsHistoryWSP): trans(308571109)[request][ ]: Required elements filter setting reject: expression /*[local-name()='Envelope' and (namespace-uri()='http://schema...
2
1,470