title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to make a dotnet webservice set minOccurs="1" on a string value
<p>I have an XSD:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://a.com/a.xsd" targetNamespace="http://a.com/a.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified"&gt; &lt;xs:element name="A"&g...
0
1,373
Row-major vs Column-major confusion
<p>I've been reading a lot about this, the more I read the more confused I get.</p> <p>My understanding: In row-major rows are stored contiguously in memory, in column-major columns are stored contiguously in memory. So if we have a sequence of numbers <code>[1, ..., 9]</code> and we want to store them in a row-major ...
0
1,037
How do I write multiple objects to the serializable file and read them when the program is used again?
<p>I want to maintain database of users of a Bank for my project. I am able to save the number of users in one serializable file. But when I try to save the user to database it adds only the latest one to database.</p> <p>Below is the sneak peak of code which writes the objects:</p> <pre><code>if(e.getSource()==submi...
0
3,105
Twitter Bootstrap carousel not working
<p>Do I need to download more library to run Twitter Bootstrap carousel? I just downloaded Twitter Bootstrap from <a href="http://twitter.github.io/bootstrap/index.html" rel="nofollow">http://twitter.github.io/bootstrap/index.html</a>. I think there is a problem with my javascript libraries. I can see images, left and ...
0
1,870
ionic: module has no exported member
<p>I am a newbie of ionic framework, just started now. I am working on windows. I created my app with this command:</p> <pre><code>ionic start ionic-welcome tabs ionic serve </code></pre> <p>I create a new page with below command</p> <pre><code>ionic g page welcome </code></pre> <p>I get this response in my console...
0
1,273
Uploading mp4 files using PHP
<p>I am able to upload png/jpegs/images using PHP upload script but am not able to upload mp4 files on my local server. Script is not displaying any error.</p> <pre><code>&lt;?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); //include authentication here/ Gmail is good solutio...
0
1,373
"error: expected identifier or ‘(’ before numeric constant" –?
<p>The error in the title occurs on the '<code>#define</code>' line for every single function-like macro in this header file (starting at line 45). Am I doing something wrong?</p> <pre><code>#ifndef ASSEMBLER_H #define ASSEMBLER_H /* Ports */ #define Input 0 #define Output 15 /* Registers */ #define Z ...
0
1,180
How to create a vertical carousel using plain JavaScript and CSS
<p>I am trying to create a vertical carousel using vanilla JavaScript and CSS. I know that jQuery has a carousel library but I want to have a go at building this from scratch using no external libraries. I started off by just trying to move the top image and then I planned to move on to making the next image move. I go...
0
1,260
Hibernate: how to call a stored function returning a varchar?
<p>I am trying to call a legacy stored function in an Oracle9i DB from Java using Hibernate. The function is declared like this:</p> <pre><code>create or replace FUNCTION Transferlocation_Fix (mnemonic_code IN VARCHAR2) RETURN VARCHAR2 </code></pre> <p>After several failed tries and extensive googling, I found <a ...
0
1,521
Sync SQLite Database to google drive without confirmation
<p>I have to implement synchronization in my android app. So, I need to use user's google drive to store and retrieve info. I have created functionality to store *.db file to drive. But problem is user has to confirm file upload operation every time. I want to upload file on every app close without confirmation. Is it...
0
2,460
The Name "___" does not exist in the current context
<p>I seem to be having an issue with my project in Visual Studio 2012 where I received 21 errors saying the names(ddlstud,hidId,txtName,txtCoverImage,txtReldate,gvVidGame) do not exist in the current context. I have my default.aspx file set to read from my default.aspx.cs file.</p> <p>Here is my default.aspx file</p> ...
0
1,345
Cannot open http://localhost:8080/ when Tomcat is running in Eclipse
<p>I got the same problem with the questions here : <a href="https://stackoverflow.com/questions/2280064/tomcat-started-in-eclipse-but-unable-to-connect-to-link-to-http-localhost8085">Tomcat started in eclipse but unable to connect to link to http://localhost:8085/</a>, that means I can't open <a href="http://localhost...
0
1,176
Login request validation token issue
<p>I have been going through the error logs of a development project and found the following error (name changed to protect the <strike>guilty</strike> innocent)-</p> <blockquote> <p>The provided anti-forgery token was meant for user "", but the current user is "admin".</p> </blockquote> <p>This was not an especi...
0
1,093
Matching query does not exist?
<p>This is the view:</p> <pre><code>def showProject(request, project_slug): project = Project.objects.get(slug=project_slug) tickets = Ticket.objects.filter(project=project) payload = { 'project':project, 'tickets':tickets } return render(request, 'project/project.html', payload) </code></pre> <p>This is the error:</...
0
1,659
MySQL MAX from SUM
<p>This is freaking me out! Got the following data:</p> <pre><code>+----+-----+-------+------------+ | ID | REG | VALUE | DATE | +----+-----+-------+------------+ | 1 | 1A | 100 | 2009-01-01 | | 1 | 1A | 100 | 2009-02-01 | | 1 | 1A | 100 | 2009-03-01 | | 2 | 1B | 100 | 2009-01-01 | | 2 | 1B | 1...
0
1,506
Gradle jacoco code coverage - Then publish/show in Jenkins
<p>I'm trying to setup code coverage for a Java application project.</p> <p>Project name : NewApp</p> <p>Project structure: </p> <ul> <li>src/java/** (source code)</li> <li>src/java-test (unit tests - Jnuit)</li> <li>test/it-test (integration test)</li> <li>test/at-tests (acceptance tests)</li> <li>tomcat/* (con...
0
1,170
Why does Eclipse Kepler SR1 error with : JAX-RS 2.0 requires Java 1.7 or newer
<p>I have a maven project that give the following two errors</p> <p>JAX-RS (REST Web Services) 2.0 can not be installed : One or more constraints have not been satisfied.<br> JAX-RS (REST Web Services) 2.0 requires Java 1.7 or newer.</p> <p>I have JDK 1.6 installed (I cant change this)</p> <p>The project facets does...
0
1,084
Getting python3 to work in jenkins
<p>I'm having trouble getting python3 to work in jenkins. Jenkins is currently running in a docker container and i'm using <code>pipeline</code> scripts to facilitate CI/CD</p> <p>This is my <code>Jenkinsfile</code> for a python repo</p> <pre><code>pipeline { agent any tools { nodejs 'nodejs' ...
0
1,208
NodeJS - Error installing with NPM
<pre><code>Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Windows\system32&gt;npm install caress-server npm http GET https://registry.npmjs.org/caress-server npm http 304 https://registry.npmjs.org/caress-server npm http GET https://registry.npmjs.org/jspack/0.0.1 npm http...
0
1,836
IntegrityError: ERROR: null value in column "user_id" violates not-null constraint
<p>Using: postgres (PostgreSQL) 9.4.5</p> <p>I just migrated a <code>sqlite3</code> db onto a <code>postgresql</code> db. For some reason since this migration, when I try to create a user, an error regarding the <code>user_id</code> (which is a primary key) is being raised. This was not an issue before with <code>sqli...
0
2,565
Translate validation message in laravel 5
<p>I have a problem translating the laravel messages. I have created a folder called <code>es</code> inside <code>lang</code> folder and I have translated the messages from English to Spanish. Also I have set <code>'locale' =&gt; 'es'</code> on <code>config/app.php</code>. But English messages continues appearing.</p> ...
0
6,701
Header, footer and large tables with iTextSharp
<p>I've added an header and a footer on my document by PdfPageEventHelper.</p> <p>The document has several "large" tables populated at runtime.</p> <p>I've tried to add those tables simply by "documen.Add(table)", but my header and my footer results overwritten.</p> <p>I've already tried both methods to add the tabl...
0
1,822
Hello world with boost python and python 3.2
<p>So I'm trying to interface python 3.2 and c++ using boost python, and have come across many many issues. I've finally gotten it to compile using the 2.7 libraries and it works, but I can't seem to make it work with python 3.2. </p> <p>Here's the c++ code</p> <pre><code>#include &lt;iostream&gt; using namespace st...
0
1,179
javax.persistence.TransactionRequiredException: Executing an update/delete query
<p>I am using JPA2.0+hibernate3.2+Spring3.0.5+MySql5.5 to implement DAO function,but it doesn't work and just throw javax.persistence.TransactionRequiredException when i tried to persist entity to DB. Please see my coding and configuration.</p> <p>1.Entity </p> <pre><code>@Entity @Table(name="booking_no") public cla...
0
6,469
Using JavaFX with Intellij IDEA
<p>I've followed a tutorial precisely and I can't seem to get it to work. The tutorial is under <code>JavaFX and Intellij</code> <code>Non-modular from IDE</code> sections: <a href="https://openjfx.io/openjfx-docs/#install-java" rel="noreferrer">https://openjfx.io/openjfx-docs/#install-java</a></p> <p>Here is the erro...
0
1,146
Connecting to a SQL server using ADODB from a C# dll
<p>I am writing a custom <code>Connection</code> class in C# for Excel to be able to connect to a SQL Server. When I use <code>SQLConnection</code> from <code>System.Data.SqlClient</code> library I am able to establish a connection. The working code I've got:</p> <pre><code>using System; using System.Collections.Gene...
0
2,287
How to find the "last page" in a view pager. Or the total 'number' of views. Android Development
<p>Thank you for your help in advanced. And sorry if this is a very silly question, but I cannot find it elsewhere. What I want, is basically, to determine the total amount of pages I have in my ViewPager when it is all set up, like in my code. I have tried (on a later version) adding the "size variable" to f as it's ...
0
4,623
vue.js: how to update state with object?
<p>I am a newcomer to vue.js, but I have some experience with React from before.</p> <p>I have read the vue guidelines and I am trying to understand vue through the concepts from React.</p> <p>I assume that the vue <code>data</code> is similar to the React <code>state</code>, since when it updates the app it will ren...
0
1,300
Django - how to save my hashed password
<p>I'm trying to save my hashed password in my database, but It keeps saving my plaintext password</p> <p><strong>Models:</strong></p> <pre><code>class StudentRegistration(models.Model): email = models.EmailField(max_length=50) first_name = models.CharField(max_length=20) last_name = models.CharField(max_...
0
1,077
Two simple IBM MQ client tests write to MQ queue - why does one work, but, NOT the other?
<p>I'm running two(2) client tests.</p> <p>Presumably they should both work. But, one does not, and I do not know why.</p> <p><strong><em>(1) This one works...</em></strong></p> <pre><code>package aaa.bbb.ccc; import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQQueueManager; import com.ibm.mq.MQQueue; import com....
0
7,675
Using primefaces p:tabView, the refresh of the tabs using p:ajax doesn't work fine. The first time refresh but the next times doesn't refresh
<p>I have a page with a tabView, with 3 tabs, each tab has a tree. The tree of the third tab (DEVICES CATEGORY/TYPE), depends on what I select in the tree of the second tab (CERTIFICATIONS SYSTEM/PROGRAM). I generate the tree of the third tab dynamically when tab changes, using the event "tabChange"</p> <pre><code>&lt...
0
4,161
Sprite Rotation in Android using Canvas.DrawBitmap. I am close, what am I doing wrong?
<p>I have this sprite rotating algorithm (its poorly named and just used for testing). It is so close, sprites drawn with it do rotate. Everyframe I can add +5 degrees to it and see my nice little sprite rotate around. The problem is, the other stuff drawn to the canvas now flickers. If I don't do the rotation the ...
0
1,198
How to re-render Formik values after updated it - React Native?
<p>I have a screen for update previously data "name, email, age, etc". at the first time I call a function that gets data from server name as <code>getProfileData()</code></p> <p>after user write the new data I send a POST request for that "update Profile"</p> <p>and it's a success, but after that, I want to re-rende...
0
1,730
My SetupDiEnumDeviceInterfaces is not working
<p>I am interested to find out if I am doing this right:</p> <pre><code>//DeviceManager.h #include &lt;windows.h&gt; //#include &lt;hidsdi.h&gt; #include &lt;setupapi.h&gt; #include &lt;iostream&gt; #include &lt;cfgmgr32.h&gt; #include &lt;tchar.h&gt; #include &lt;devpkey.h&gt; extern "C"{ #include &lt;hidsdi.h&g...
0
2,022
Angular2: rendering / reloading a component's template
<p>Ideally I would need to reload / rerender my component's template but if there is a better way to do this I will gladly implement it.</p> <p><strong>Desired behavior:</strong></p> <p>So, I have a component for a menu element. When <em>(in another component)</em> I click an IBO <em>(some sort of 'client', per say)<...
0
2,616
Django count on many-to-many
<p>I have the models:</p> <pre><code>class Article(models.Model): title = models.TextField(blank=True) keywords = models.ManyToManyField(Keyword, null=True, blank=True) class Keyword(models.Model): keyword = models.CharField(max_length=355, blank=True) </code></pre> <p>I want to get a count of how many a...
0
1,059
.... undeclared (first use in this function)?
<p>I have a simple code in lex language and i generate lex.yy.c with Flex. when i want to compile lex.yy.c to .exe file i get some error like "undeclared (first use in this function) " ! when i search in web i understand i need a Const.h file, so i want to generate that file. how i can do this ?</p> <p>Some Errors:</...
0
1,129
Why is my scoped_session raising an AttributeError: 'Session' object has no attribute 'remove'
<p>I'm trying to set up a system that elegantly defers database operations to a seperate thread in order to avoid blocking during Twisted callbacks.</p> <p>So far, here is my approach:</p> <pre><code>from contextlib import contextmanager from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session,...
0
1,121
Bootstrap SASS variable override challenge
<p><strong>EDIT:</strong> This question was marked as a duplicate of <a href="https://stackoverflow.com/questions/17089717/how-to-overwrite-scss-variables-when-compiling-to-css">this one</a>, but see the addendum near the end of this answer to see what that question doesn't ask, and what the answer doesn't answer.</p> ...
0
1,230
ERROR: Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom
<p>I am getting the below exception in my pom.xml when trying to run my application. I saw some posts regarding the error and followed them but no use. I understand the artifact(parent) is referred locally and is not present, but I don't know how to resolve this, could somebody please help me?</p> <p>The error is</p> <...
0
2,987
How to Run a Jmeter script within Java code?
<p>I'm unable to run the JMeter Java file with the below setup. Can anyone please help me and tell me what is wrong. I am using Eclipse with Maven integration.</p> <p>Referring the post: <a href="https://stackoverflow.com/q/19147235/3755692">How to create and run Apache JMeter Test Scripts from a Java program?</a></p>...
0
13,170
Apache Rewrite - Redirect Wildcard Subdomain and Handling Internal URL shortener
<p>I have problem in redirecting wild-card sub-domain and handing internal URL shortener.</p> <p>Let's say I have an internal URL shortener in my app</p> <pre><code>example.com/b/ABCDE </code></pre> <p>that will translate</p> <pre><code>example.com/book/12345678-the-book-name </code></pre> <p>the script referred b...
0
1,277
Android Eclipse failing to debug
<p>Debugging of my app is now suddenly broken. It has been fine up to now and I even reloaded a known good version of my entire code and it still fails to debug or even run. When I hit debug or run the app starts up and right when it is about to display the app, it crashes (before even entering the main view). I hav...
0
1,567
Error 422 Ajax Post using Laravel
<p>I'm trying to make a simple Ajax post using Laravel 5. I read that there is a issue with the Csrf Token matching and that i could put my uri into the VerifyCsrfToken expection to step around this. This part functions, however now I get a 422 error when i make the post. </p> <p><a href="https://i.stack.imgur.com/8gI...
0
1,160
Sending image over sockets (ONLY) in Python, image can not be open
<p>I want to upload the image from client to server using ONLY sockets in Python. I designed a very simple protocol flow of how I would like to do this:</p> <pre><code>CLIENT SERVER SIZE 512 (send image size) ----------------------------------&gt; ...
0
2,943
get value in array in json object android
<p>i have a json like this, <p></p> <pre><code>{ "id": 293, "type": "post", "slug": "a-box-rd", "url": "http:\/\/www.godigi.tv\/blog\/2013\/07\/01\/a-box-rd\/", "status": "publish", "title": "A Box R&amp;#038;D", "title_plain": "A Box R&amp;#038;D", "content": "", "excerpt": "", "date": "2013-07-0...
0
2,133
Revised Simplex Method - Matlab Script
<p>I've been asked to write down a Matlab program in order to solve LPs using the <strong>Revised Simplex Method</strong>. </p> <p>The code I wrote runs without problems with input data although I've realised it doesn't solve the problem properly, as it does not update the inverse of the basis B (the real core idea of...
0
2,074
Sort List of HashMaps based on hashMap values [not keys]
<p>Here is what I have- </p> <p>How I can include multiple keys and their values in comparison? Right now I am only using employeeId but I wanted to include departmentId and other in my comparison for sorting...</p> <pre><code>import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; impo...
0
1,872
How to return an ArrayList <Integer>?
<p>I am working on a question from an assignment. It is called the 3n+1 problem. The task is to get an integer from user (not 1 or negative number) and based on the number input (n), if it is even - divide by 2, and if it is negative - multiple n * 3 + 1.</p> <p>The method I MUST use is as follows:</p> <pre><code>pub...
0
1,961
Using Tables in RTF
<p>I need to create a table in an RTF file. However I am not familiar with RΤF. Here is an example of a text file that these RTF files are supposed to replace:</p> <pre><code> GENERAL JOURNAL Page 1 Date Descript...
0
1,289
iPad Safari IOS 5 window.close() closing wrong window
<p>We have an iPad application that's working on our older iPads.</p> <p>We open external links using var x = window.open(url)</p> <p>at the end of the day, when the user closes this part of the app, we go through all the windows it opened and do x.close() for each one and everything is okie dokie.</p> <p>Testing on...
0
1,113
Convert base64 encoding to pdf
<p>I tried multiple solution but every time I am getting error that pdf can not be open. This is the edited code with actual data stream that need to be converted in .pdf.</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Globalization; u...
0
1,621
iphone app - how to get the current location only once and store that to be used in another function?
<p>I've been working on this for the past 2 weeks - i have an app that shows a legible route on a map that goes from a start point to a destination point. the destination point is the users address (as defined/entered by the user in the settings menu we have set up) and if i hard code the start point, the map, route an...
0
2,057
ASP.NET Multiple controls with the same ID 'x' were found. FindControl
<p>Getting the following error</p> <p>Multiple controls with the same ID 'ltlItemCode' were found. FindControl requires that controls have unique IDs.</p> <p>This Error does not happen on page loads but when I change the value of a drop down which has AutoPostBack="true".</p> <p>Code is </p> <pre><code> //Numb...
0
1,900
How to make dynamic content display across a grid using Django with Bootstrap?
<p>I'm working on a Django project with a homepage similar to StackOverflow's: it displays snippets of incoming user-generated content in a single main column. However, I'd like those content snippets to display across rows of 3 filling up the homepage (think [Pinterest pinboard page][2] or a grid layout blog).</p> <p...
0
1,158
Open an UI Dialog on click of a button in JQuery
<p>My previous qstn in this forum was about assigning text dynamically to buttons in jquery dynamically and I got solution for that here. Now my question is, upon clicking that button, I have to open another UI dialog with 2 buttons. I have written the following code. I am able to open UI Dialog but buttons are not app...
0
1,377
Android java.lang.NullPointerException: println needs a message
<p>I have a problem with my app when I try to login.</p> <p>In fact, if I register (if the checkbox <code>remerberMe</code> <code>isChecked()</code> on register action, at the next connection the main activity is displayed otherwise the login activity appears) first, it works fine.</p> <p>However, the <code>Login</co...
0
5,857
Spread operator and EsLint
<p>I want to copy object and change one of its field. Something like this:</p> <pre><code>const initialState = { showTagPanel: false, }; export default function reducerFoo(state = initialState, action) { switch(action.type) { case types.SHOW_TAG_PANEL: console.log(state); return { ...sta...
0
1,215
eclipse android programming Error in an XML file: aborting build
<p>i am creating an android application, a simple calculator, but i am getting an "[2012-03-12 20:22:21 - Calculator] Error in an XML file: aborting build." which i couldn't solve. could you identify the problem?</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+i...
0
2,765
PrimeFaces TypeError: PF(...) is undefined
<p>I followed the DataTable Filter <a href="http://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml" rel="noreferrer">showcase</a> from PrimeFaces on my own DataTable. Every time the "onkeyup" event occurs I get a</p> <blockquote> <p>TypeError: PF(...) is undefined error in Firebug and a "Uncaught TypeEr...
0
2,797
How to create a custom top navigation bar in React Native
<p>Hi i am building an app in React Native and I want to have a customized tabbar. I have tried it with React navigation but I can't figure out how to style the way I want...</p> <p>This is what I want it to look like eventually:</p> <p><a href="https://i.stack.imgur.com/YsV0G.png" rel="noreferrer">The information page...
0
1,384
How to expose property of QObject pointer to QML
<p>I am giving very brief (and partial) description of my class to show my problem. Basically I have setup two properties.</p> <pre><code>class Fruit : public QObject { Q_OBJECT .... public: Q_PROPERTY( int price READ getPrice NOTIFY priceChanged) Q_PROPERTY(Fruit * fruit READ fruit WRITE setFruit NOTIFY fr...
0
1,404
How to submit a form using JS, Node, Mongo, and Express?
<p>I am a beginner programmer. I am wondering how to submit a form, composed of JQuery date picker and radio buttons, using a button. I want to submit the form to a Mongo Database called <code>test</code>. In my <code>home.html</code> file I call the different stylesheets and javascript files I need. Then I set up an i...
0
1,541
Create a count up timer in java (seconds and milliseconds only)
<p>I'm doing a <strong>count up timer in java</strong>. I found the following example: <a href="https://stackoverflow.com/questions/5745745/creating-a-count-up-timer-to-break-in-java">Creating a Count Up timer to Break in java</a>, and that's working fine. But I want to show the time in the <strong>format "mm:ss:SSS"</...
0
1,143
Android RecyclerView addition & removal of items
<p>I have a RecyclerView with an TextView text box and a cross button ImageView. I have a button outside of the recyclerview that makes the cross button ImageView visible / gone.</p> <p>I'm looking to remove an item from the recylerview, when that items cross button ImageView is pressed.</p> <p>My adapter:</p> <pre>...
0
1,454
Parser configuration exception parsing XML from class path resource
<p>I am trying to run a junit test case for testing whether the applicationcontext is initialized and it throws the following error. Is it something related to the xml or the java version. How do I fix this?</p> <pre><code> org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception...
0
2,329
How to implement single search form in yii2
<p>Yii2 has a <code>searchModel</code> to search each field in the <code>GridView</code>. Is it possible to just create a single search field outside the <code>GridView</code> where the user can input keywords and by the time Search button is hit, the results will display in the <code>GridView</code> based on the keywo...
0
2,553
Designing CardView while it's Parent is ConstraintLayout?
<p>I messed up while editing RelativeLayout inside Cardview that contains Relativelayout ! ConstraintLayout will change wrap_content of relative layout to 0 and adds tools:layout_editor_absoluteX="10dp" all textview inside Relative layout will collapse top right of the cardview !!! (element in the nested C...
0
1,186
Can not extract resource from com.android.aaptcompiler
<p>Can not extract resource from com.android.aaptcompiler.ParsedResource@636e1e76.</p> <pre><code>Execution failed for task ':app:mergeDebugResources'. &gt; A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable &gt; Resource compilation failed (Failed to compile values res...
0
7,097
how to add image from photo library or camera to my Ipad application?
<p>I want to add images from photo library or by using camera to my ipad application. I had used same coding as iphone . But the application is crashing. I think this is not the right way to add picture from library to ipad application. If anyone knows please help me.</p> <pre><code>-(void)ctnPhotoSelection { isM...
0
3,283
react-native componentWillUnmount not working while navigating
<p>I am doing this simple steps but unmount was not calling I don't know why. Please I need a solution for this I need unmount to be get called while navigating to another screen...</p> <pre><code>class Homemain extends Component { constructor(props) { super(props); } componentWillMount(){ ...
0
1,289
How can I perform flood fill with HTML Canvas?
<p>Has anyone implemented a flood fill algorithm in javascript for use with HTML Canvas?</p> <p>My requirements are simple: flood with a single color starting from a single point, where the boundary color is any color greater than a certain delta of the color at the specified point. </p> <pre><code>var r1, r2; // red...
0
4,288
How should I handle "java.net.SocketException: Connection reset" in multithread AWS S3 file upload?
<p>I have a ThreadPoolExecutorService to which I'm submitting runnable jobs that are uploading large (1-2 GB) files to Amazon's S3 file system, using the AWS Java SDK. Occasionally one of my worker threads will report a java.net.SocketException with "Connection reset" as the cause and then die.</p> <p>AWS doesn't use ...
0
1,377
Best approach to real time http streaming to HTML5 video client
<p>I'm really stuck trying to understand the best way to stream real time output of ffmpeg to a HTML5 client using node.js, as there are a number of variables at play and I don't have a lot of experience in this space, having spent many hours trying different combinations.</p> <p>My use case is:</p> <p>1) IP video ca...
0
1,888
Error: deleted_client The OAuth client was deleted
<p>How can you delete an old clientID?</p> <p>I have created and generated a new clientID in the google developer console</p> <p><a href="https://i.stack.imgur.com/LQpqh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LQpqh.png" alt="google developer console"></a></p> <p>the new clientID does not ...
0
1,548
DTrace missing Java frames with ustack(). Running on Joyent SmartOS infrastructure container
<p>I cannot get any Java stack with dtrace in a Joyent SmartOS instance. </p> <p>I tried the <code>java:15.1.1</code> image and a plain SmartOS 'base64' image, where I installed openjdk 8.</p> <p>I most basic example: cat Loop.java </p> <pre><code>[root@7e8c2a25-c852-4967-b60c-7b4fbd9a1de5 /demo]# cat Loop.java cla...
0
2,027
Make draggable element sortable within droppable using jQuery UI
<p><strong>RESOLVED</strong></p> <p>So I studied <code>sortable()</code> with the <code>connectWith</code> attribute a bit more and found the solution was simpler than I expected, but I was thinking about it sort of backwards because of <code>draggable()</code> and <code>droppable()</code>.</p> <p>Here's the fiddle: ...
0
1,620
Can't bind to 'ngIf' since it isn't a known property of 'md-card-title'
<p>I am learning <code>Angular2 RC5</code> with Angular2 material libraries and getting it to run in a <code>AspNetCore 1.0</code> app using <code>VisualStudio 2015.</code> I took a perfectly running <code>Angular2 RC5</code> single page application and tried to introduce lazy loading where only the login page will loa...
0
2,168
Rewrite spring-security redirect URLs
<p>I'm trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I've got is that when spring-security notices that an anonymous user is trying to access a protected resource it redirects to a URL which includes the servlet path.</p> <p>What I'd like is, by example:</p> <pre><code>&gt; GET http...
0
1,824
Conditional Output Shiny UI
<p>I have survey data. I want to use Shiny to share results of my univariate and bivariate analyses with collaborators. In the survey there are numeric and factor variables. Depending on whether the person viewing the Shiny applications is interested in univariate/bivariate summaries, and depending on the variable type...
0
1,907
Android DrawerLayout - No drawer view found with gravity
<p>When I click on my drawer toggle I get the following exception:</p> <blockquote> <p>java.lang.IllegalArgumentException: No drawer view found with gravity LEFT</p> </blockquote> <p>This is my <code>activity_drawer.xml</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v4.wi...
0
1,057
How to assign which MenuItems open onClick when multiple Menus are present on the material-ui Appbar using React?
<p>I created an AppBar with a menu based on the examples given on <a href="https://material-ui-next.com/demos/app-bar/" rel="noreferrer">the material UI site</a> and it works fine with one menu. But when I try adding a second dropdown menu, on clicking either icon, I get the same set of MenuItems showing up as seen in ...
0
2,360
Java 8 is not maintaining the order while grouping
<p>I m using Java 8 for grouping by data. But results obtained are not in order formed.</p> <pre><code>Map&lt;GroupingKey, List&lt;Object&gt;&gt; groupedResult = null; if (!CollectionUtils.isEmpty(groupByColumns)) { Map&lt;String, Object&gt; mapArr[] = new LinkedHashMap[mapList.size()]; ...
0
1,092
Jest: Cannot spy the property because it is not a function; undefined given instead
<p>I'm trying to write a Jest test for a simple React component to confirm that a function has been called when I simulate a click. </p> <p><strong>However, when I use spyOn method, I keep getting TypeError: Cannot read property 'validateOnSave' of undefined.</strong> My code looks like this:</p> <p><strong>OptionsVi...
0
2,554
AADSTS90019: No tenant-identifying information found in either the request or implied by any provided credentials
<p>Hi i want to implement the Office365 SSO login. I've created an account and following now this documentation: <a href="https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx</a></p> <p>I'm at the point where i got the code and now ...
0
2,542
How to fetch local html file with vue.js?
<p>I am following <a href="https://jsfiddle.net/coligo/mfxb9aeh/" rel="noreferrer">this example</a></p> <p>I am trying to load a html file with vue.js and add into my template.</p> <p>my attempt:</p> <p>HTTML:</p> <pre><code>&lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;link rel="sty...
0
1,665
WCF: A registration already exists for URI
<p>I have the below in my WCF Web.Config. When I try to access the WCF service I am getting the "A registration already exists for URI" error. The WCF Service is hosted in an SSL enviroment.</p> <p>Can anyone help please?</p> <pre><code> &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&g...
0
1,196
Dynamic loading of external modules in webpack fails
<p>I am trying to set up the following architecture: a core React application that gets built with some basic functionality, and the ability to load additional React components at runtime. These additional React components can be loaded on-demand, and they are not available at build time for the core application (so th...
0
1,129
How many ways are there to configure the Spring framework? What are the differences between them technically? (Not pros or cons..)
<p>I am studying <a href="https://rads.stackoverflow.com/amzn/click/com/1118892925" rel="noreferrer" rel="nofollow noreferrer">this</a> book (which I would highly recommend), and I am confused about how the authors explain the way Spring framework can be configured.</p> <p>You can see some code examples that are used i...
0
1,528
Toggle Show And Hide Only Some Table Rows
<p>I am trying to show/hide (via a toggle mechanism) only certain rows in my table. I have gotten somewhat close, code is below. What I was reading about in other questions regarding this is the use of style id's and I have tried that but it fails for me. So that is why I used 'hide=yes' and pass that into the togg...
0
1,117
Relational attribute in Yii2 form
<p>I am trying to get to figure out the proper way of handling a form receiving relational data in Yii2. I haven't been able to find any good examples of this. I have 2 models Sets and SetsIntensity, every Set may have one SetsIntensity associated with it. I'm am trying to make a form where you can input both at the sa...
0
1,082
Rails: FATAL - Peer authentication failed for user (PG::Error)
<p>I am running my development on Ubuntu 11.10, and RubyMine</p> <p>Here is my development settings for the database.yml: which RubyMine created for me</p> <pre><code>development: adapter: postgresql encoding: unicode database: mydb_development pool: 5 username: myuser password: </code></pre> <p>when I t...
0
3,592
This constraint cannot be enabled as not all values have corresponding parent values
<p>I have three nested tables in a dataset. I display the data based on the language ID, ie: EN is 1 FR is 2 and NL is 3. French and english exist in the database but Dutch does not exist yet and when the user selects NL I get the following error:</p> <blockquote> <p>This constraint cannot be enabled as not all valu...
0
1,087
Writing Byte Array To Binary File Javascript
<p>I am trying to write a script that generates random numbers these number then are converted to groups of 4Bytes each then these 4-bytes-groups are put into an Uint8Array finally I try to save the array to binary file. Here is my code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Raandom Number Generator&lt...
0
1,101
Apache POI Java Excel Performance for Large Spreadsheets
<p>I have a spreadsheet I'm trying to read with POI (I have both xls and xlsx formats), but in this case, the problem is with the xls file. My spreadsheet has about 10,000 rows and 75 columns, and reading it in can take several minutes (though Excel opens in a few seconds). I'm using the event based reading, rather tha...
0
3,719
Visual Studio Error: "Object reference not set to an instance of an object" when clicking on a project and opening Properties
<p>I have a weird behavior of Visual Studio 2013 (and 2010), that i cant seem to fix.</p> <p>I know this is not directly related to programming (similar questions achieve the same error message via code, so i assume it is code within VisualStudio that has a problem).</p> <p>My projects are C++.</p> <p>Whenever i cli...
0
1,331
How to pass props to Screen component with a tab navigator?
<p>This is my first post on StackOverflow, so apologies if I'm not following the correct format.</p> <p>I'm building my first app using <code>tab navigator from React Navigation v 5.x</code> and have run into a big problem when passing props from one screen to another</p> <p>What I want to achieve is to:</p> <ol> <li>M...
0
1,443
Application error with MyFaces 1.2: java.lang.IllegalStateException: No Factories configured for this Application
<p>For my app I'm using <strong>Tomcat 6.0.x</strong> and <strong>Mojarra 1.2_04</strong> JSF implementation. It works fine, just I would like to switch now to <strong>MyFaces 1.2_10</strong> impl of JSF.</p> <p>During the deployment of my app a get the following error:</p> <pre><code>ERROR [org.apache.catalina.core...
0
2,139
Error in Angular ng serve static ɵfac: i0.ɵɵFactoryDef<ShepherdService>
<p>I had to install a project in another pc, I use Angular v 9.1.0 but after I run npm install I have this error:</p> <blockquote> <p>ERROR in node_modules/angular-shepherd/lib/shepherd.service.d.ts:64:18 - error TS2314: Generic type 'ɵɵFactoryDef' requires 2 type argument(s).</p> <p>64 static ɵfac: i0.ɵɵFa...
0
1,789
Attempt to invoke virtual method 'int java.lang.String.hashCode()'
<p>I'm trying to load images from URL into girdview using Volley Library. For this I'm following <a href="http://www.101apps.co.za/index.php/articles/using-volley-to-download-cache-and-display-bitmaps.html" rel="noreferrer">this</a> tutorial. When I run my project, it collects all URLs from server database and then sto...
0
1,857