title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Getting error - Unrecognized command "run-android", when running react native,
<p>I get this error when try and run react native on my emulator, <code>react-native run-android</code></p> <blockquote> <p>error Unrecognized command "run-android".</p> </blockquote> <p>My emulator is connected and working, any ideas?</p> <p>Package.json:</p> <pre><code>{ "name": "iaapp", "version": "0.0.1",...
1
1,300
Java creating a custom Map
<p>I have two questions regarding my following code:</p> <p>1) Is there any way I can <code>implement Map</code> in this case, rather than extend just one direct implementation of the interface? I do not wish to write a whole Map implementation though. But it could be nice seeing that my implementation does not care w...
1
1,438
Promise timeouts and WS.get Timeout in PlayFramework 2.1 JAVA
<p>I am trying to access to an URL using WS on Play Framework 2.1 using JAVA api.</p> <p>Here is what I want:</p> <ol> <li>Some where in the code, start a WS request using <code>WS.get()</code> (I set timeout <strong>1000ms</strong>)</li> <li>If WS.get times out or another exception happens, I don't want my Promise t...
1
1,426
Excel file with openxml with multiple sheets in single workbook
<p>I am trying to insert data to multiple sheets. For my excel, I have two sheets which are "charts" and "ChartData". I'm able to update the data in sheet2, chartdata sheet, but I'm unable to insert data to sheet1. Here is code which I have tried to insert data into excel sheets. Here data is coming from database.</p> ...
1
2,903
Wpf's InteropBitmap together with GDI+: high cpu usage
<p>I've created a little wpf test application which renders some random rectangles every 30 msec using <strong>System.Drawing.Graphics</strong> and wpf's <strong>InteropBitmap</strong>. I thought InteropBitmap would be faster than WriteableBitmap: It has the ability to update itself from the memory section.</p> <p>Whi...
1
1,801
Running all tests from a @Category using Maven
<p>I want to run only a subset of my unit tests, the ones defined by a specific <code>@Category</code>.</p> <p>So I read several SO questions, such as <a href="https://stackoverflow.com/questions/3100924/how-to-run-junit-tests-by-category-in-maven">this one</a> (which is exactly what I am looking for), and also <a hre...
1
1,694
UnsupportedOperationException on clipPath
<p>I am getting an UnsupportedOperationException when using Canvas clipPath.</p> <p>This is happening on an HTC Sensation XE (4.0.3). It works perfectly on other 4.0.3 devices.</p> <p>This is the code:</p> <pre><code> @Override protected void dispatchDraw(Canvas canvas) { canvas.save(); canvas.clipPath(th...
1
1,735
Categories with sub PHP / MYSQL
<p>I have some troubles with subcategories in my code.</p> <p>My expectation:</p> <blockquote> <ul> <li>Bakery <ul> <li>Canned food</li> <li>Dairy Products</li> <li>Meat <ul> <li>subcategory</li> <li>subcategory</li> <li>...</li> <li>subcategory</li> </ul></li> <li>Sweets and Snacks <ul> ...
1
1,498
Configure Spring Boot's with custom SSLContext programmatically (for mTLS)
<h2>Problem</h2> <p>Programmatically configure Spring Boot's to use my custom <code>SSLContext</code>. And use for mTLS.</p> <h2>Context</h2> <p>Spring's <a href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-configure-webserver" rel="nofollow noreferrer">documentation</a> provides only on...
1
1,156
Error with running ReactJS/TailwindCSS/Heroku: React Refresh runtime should not be included in the production bundle
<p>Working on a webfolio in ReactJS using TailwindCSS. Deployed it to Heroku, builds successfully, but opening the App always gives the error: ERROR: React Refresh runtime should not be included in the production bundle.</p> <p>Really not sure what I could've done wrong other than not configure tailwindcss to be deploy...
1
1,274
my compiler says that this thing __attribute__ is wrong, a syntax error
<p>The following is inside GNU m4 sources in a file called lib/verror.h : </p> <pre><code>/* Declaration for va_list error-reporting function Copyright (C) 2006-2007, 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Ge...
1
1,670
Java web project + JPA/JDBC "Error connecting to server localhost on port 1527 with message Connection refused"
<p>I have this old web project which is called "Drinks Archive". You can, among other things, add, remove, list and edit drinks. It runs fine locally from NetBeans but when I deploy my project as a .war file to a server, which uses Tomcat 6, it gives the following error every time I try to do a database operation (e.g....
1
2,208
Backslash throws unexpected beginning of statement error
<p>So I have this SQL Script for bulk loading my data:</p> <pre><code>INSERT INTO DeliveryMethod (deliveryMethod) VALUES ('Bicycle'); INSERT INTO DeliveryMethod (deliveryMethod) VALUES ('Car'); INSERT INTO DeliveryMethod (deliveryMethod) VALUES ('Van'); INSERT INTO DeliveryMethod (deliveryMethod) VALUES ('None'); ...
1
1,533
How to make my toy android calculator UI fits with the device screen
<p>I want to create a simple calculator as my first android project (instead of Helloworld), the calculaotr UI is shown below, which I uses <code>GridLayout</code> to arrange the result display <code>TextView</code> and the control <code>Button</code>s, the <code>GridLayout</code> takes 6 rows and 4 columns. ( I simpli...
1
1,094
SLF4J: Failed toString() invocation on an object of type [com.datastax.driver.core.Responses$Result$Rows]
<p>Using </p> <ul> <li>cassandra core: 2.1.0</li> <li>slf4j: slf4j-api-1.7.6.jar</li> <li>slf4j-log4j: slf4j-log4j12-1.7.2.jar</li> </ul> <p>I am getting this message printed in the tomcat catalina.out quite frequently without any loss of functionality in the application:</p> <pre><code>SLF4J: Failed toString() invo...
1
2,096
How to extract DH parameters from a DH key in PEM format
<p>I have generated a Diffie-Hellman key using certain <code>g</code> and <code>p</code> parameters, like this:</p> <pre><code>$ cat dhparam.pem -----BEGIN DH PARAMETERS----- MIIBCAKCAQEAnc5+uXl2K09Nrp1oxN/KbIcIYLg8HXCu9UNW7gFknkHil7OVAKHR Km0Dc8IjqhJpDfoNKFoDo2Vd0KB9moSkDmhFmidcXO7Q8zSq0Z4BXFTO61OMukdd dul1ovbleqfH4D...
1
1,401
Filling Select2 Dropdown using ASP.net MVC4
<p>I am trying to fill a dropdown which use Select2 Jquery add-on using asp.net mvc4. I have already search the stackoverflow and found the related topic as below ;</p> <p><a href="https://stackoverflow.com/questions/14853643/fill-select2-dropdown-box-from-database-in-mvc-4">Fill Select2 dropdown box from database in ...
1
1,552
Best practices to benchmark deep models on CPU (and not GPU) in PyTorch?
<p>I am little uncertain about how to measure execution time of deep models on CPU in PyTorch ONLY FOR INFERENCE. I list here some of them but they maybe inaccurate. Please correct them if required and mention more if required. I am running on PyTorch version 1.3.1 and Intel Xeon with 64GB RAM, 3.5GHz processor and 8 c...
1
1,108
Vue: How do you add E2E tests after not including them in initial webpack template?
<p>To start my project, I ran <code>vue init webpack my-project</code>, but I excluded E2E tests. Now I changed my mind and <em>do</em> want to include E2E tests. How can I add them to my project?</p> <p>Note to readers: <a href="https://stackoverflow.com/a/49870159/1927876">Tarun Lalwani's answer</a> worked great for...
1
1,986
Passing variable value as a condition in if statement with React.js
<p>I'm a student and I'm trying to make a summary of a cart for an e-commerce site with React.js for a homework assignment. I need to set a shipping cost (there are two options for the shipping cost: the first is <em>free</em>, the second is <em>$20</em>) based on the selected radio button, but I'm not able to do it. I...
1
4,541
WebRequest From SQL CLR Error
<p><strong>UPDATE:</strong><br> Thanks to j.v.'s answer I am able to run this but now I am seeing a lot of the following error in rapid succession:</p> <pre><code> A first chance exception of type 'System.Security.SecurityException' occurred in mscorlib.dll A first chance exception of type 'System.Security.Secu...
1
1,419
Calling C# code behind method using javascript without ajax
<p>I have 2 buttons in my asp.net File</p> <pre><code>&lt;asp:Button ID="BTN_Send_LA" runat="server" Text="Save" OnClientClick="ConfirmSendData()"&gt;&lt;/asp:Button&gt; //The button the client will click &lt;asp:Button ID="UploadButton" runat="server" Text="" OnClick="BTN_Send_LA_Click"/&gt; //Dummy Button for the J...
1
1,310
mod_proxy_ajp error: renders html as text/plain, prompts user to "save as..."
<p>We have an odd, intermittent error that occurs with mod_proxy_ajp, i.e. using apache as a front end to a tomcat server.</p> <p><strong>The error</strong></p> <ul> <li>User clicks on a link browser prompts user to "save as...." (e.g. in Firefox "You have chosen top open thread.jsp which is a application/octet-strea...
1
3,032
pending pod on minikube kubernetes : insufficient cpu
<p>Running an application with <code>three services</code> on my local <code>minikube</code> while was installed on a server with <strong>16 cpus and 64 GB of memory</strong> , one <code>replicas</code> of which is 2, I only set resources.limits for each service, as shown below</p> <pre><code>resources: limits: ...
1
1,177
can't run flutter project on iOS simulator
<p>I have been developing e-commerce app for about 3 months, I switched to MacOs recently. I have a problem when I run my code in iOS Simulator every time I run it I get this message.</p> <pre><code> CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` ...
1
9,978
Custom erosion results do not match with OpenCV erosion
<p>I am new to image processing and was trying to write a custom method for erosion and dilation. I then tried to compare my results with OpenCV erosion and dilation function results. I give one padding of zeros to the input image and then overlap the kernel with padded image. Here is my function:</p> <pre><code>impor...
1
2,467
Updatepanel inside usercontrol ascx file not updating gridview
<p>I'm trying to be slick and I'm putting this user control in a div that covers the whole page. However when I click on the search button I get a full postback. Any ideas on how to get it to not postback and just update the gridview?</p> <p>And just to be clear. The following control is in a ascx file. Which is calle...
1
1,186
javax.xml.bind.UnmarshalException: XML document structures must start and end within the same entity
<p>I am trying to unmarshall an XML that I got as a BLAST output from NCBI. Unfortunately it seems to fail where it shouldn't. The stacktrace I get is:</p> <pre><code>org.xml.sax.SAXParseException; systemId: file:/C:/blast_output.xml; lineNumber: 578; columnNumber: 17; XML document structures must start and end within...
1
1,242
DataTables Ajax data not working
<p>Refer to my codes below, it's working when <code>innerData</code> is used but when <code>outerData</code> is used it's not working and telling me:</p> <blockquote> <p>Requested unknown parameter 'badge' for row 0</p> </blockquote> <p>My <code>innerData</code> and <code>outerData</code> looks the same, only the v...
1
1,081
getpeername() from listening(server) socket
<p>I'm trying to do socket programming. I made some example, which is getting ip and port from sockets.</p> <p>I tried to get IP and port in server and client both.</p> <p>server has two sockets, listening socket and socket for data transfer with client(I named it "Client socket"). and client has one socket. I wanted...
1
2,663
symfony2 apply transformer to entity form field - empty array?
<p>I am trying to get a dataTransformer to work on an entity field in symfony 2.</p> <p>context:</p> <ul> <li><p>form displays sails that user can select (checkboxes)</p></li> <li><p>this is the first step in a multi-step sail ordering process (later steps display options available for each sail, colors, etc)</p></li...
1
1,215
Reading FormData from HttpContext in .Net Core 2.0
<p>In Core 2.0, trying to read in my FormData posted from front end. I can manage to read the array of JSON objects, but not the <code>Files[]</code> array I'm also posting in the Form Data.</p> <p>Here's the <code>Angular</code> component code which builds <code>FormData</code> :</p> <p><div class="snippet" data-lan...
1
1,886
Highcharts : How to update Plotoptions pointStart on Ajax call?
<p>I have a simple chart in my MVC web application. Now I have some filters that will update the chart on their <code>click</code> event. Actually click event will use an ajax call to update the chart. </p> <p>This is my chart :</p> <pre><code> $('#performance-cart').highcharts({ chart: { type: 'area', ba...
1
1,417
RecycleView layout manager list items are taking the whole screen
<p>So i just made this simple fragment that contains a RecycleView. The recycle view has a custom made relative layout with two TextViews and a CheckBox. The problem is that a single list item takes up the whole AVD seceen's space and the listener I set for the list item is not working.</p> <p><a href="http://i.stack....
1
2,026
How should I import JSON in Node?
<p>I want to import <code>package.json</code> into <code>test.js</code>, both files are in same directory.</p> <p>I tried with <code>require</code> :</p> <pre><code>const jsonfile = require(&quot;./packages.json&quot;); console.log({ jsonfile }); </code></pre> <p>it throws error:</p> <pre><code>file:///home/.../test.j...
1
1,035
«HTTP::Message content must be bytes» error when trying to post
<p>I have the following code:</p> <pre><code>... sub setImage { my $self=shift; my $filename=shift; unless(-r $filename) { warn "File $filename not found"; return; } my $imgn=shift; my $operation=&amp;URI::Escape::uri_escape_utf8( (shift) ? "Удалить! (Delete)" : "Сохрани...
1
1,199
How do I properly save this JSONB into PostgreSQL using node-postgres (pg)?
<p>So I have information coming in the GET URL, which needs to get passed into JSON and then saved (aggregated with increasing IDs to be correct) in the PostgreSQL DBMS. I wrote the following code, which seems to not save anything with no errors:</p> <pre><code>// Pg initialization const { Client } = require('pg') cli...
1
1,623
NSInternalInconsistencyException when using KVO
<p>I'm trying to use a KVO example I got from an iPhone tutorial book, but get this exception</p> <pre><code> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '&lt;UINavigationController: 0x139630&gt;: An -observeValueForKeyPath:ofObject:change:context: message was received but n...
1
2,373
Why is angular provider not defined?
<p>I'm trying to integrate <a href="http://adodson.com/hello.js/" rel="nofollow">hello.js</a> into <a href="https://github.com/rdash/rdash-angular" rel="nofollow">rdash-angular</a> using <a href="https://github.com/gonzalo123/ngHello" rel="nofollow">ng-hello</a> see also the ng-hello <a href="http://gonzalo123.com/2015...
1
1,400
How to vertically center text in a div, overlapping another div
<p>I have a css problem. Im trying to vertically center the text in a div, which is overlaying another div, but the text won't budge. </p> <p>EDIT: Here's teh JSFiddle url: <a href="http://jsfiddle.net/wgSEw/3/" rel="nofollow">http://jsfiddle.net/wgSEw/3/</a></p> <p>The html is as follows:</p> <pre><code>&lt;div id=...
1
1,543
how to insert , delete , select records into database using datagridview cells and datagridview events using c#?
<p>I have designed a windows form application with only <code>DataGridView</code> control. I bind data from database programmatically . I have also written the code for updating records of database from the <code>DataGridView</code> cells. But i don't know how to insert a new record into database from these <code>Cell<...
1
1,572
Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
<p>First, I know this a duplicate question from <a href="https://stackoverflow.com/questions/50006049/handshake-failed-with-fatal-error-ssl-error-ssl">this link</a> but the asker seems to not answer anymore... but i still have the problem and need help!</p> <p>So, When I use the command <code>composer install</code> I...
1
2,681
Active Admin: Form with datepicker on custom page
<p>Alright I made a custom page in Active Admin called "Newest Rooms" and it shows a table with the Hotel Rooms of the current date.</p> <p>Now I want to add a form the this custom page where I can pick the Date. I've managed to make the form appear with the Datepicker through:</p> <pre><code>&lt;%= semantic_form_for...
1
1,197
netkit: Connecting 3 routers and trying to ping router 3 to router 1
<p>hey guys, I am using Netkit to simulate a network, I am using the static routing lab provided by Netkit and I am trying to set up 3 routers. I have 3 routers each with a pc connected.</p> <p>pc1 on r1 can ping pc2 on r2 and vice versa.</p> <p>pc3 on r3 can pnig pc2 on r2 and vice versa.</p> <p><em><strong>but pc1...
1
1,045
Restore Android back stack after app has been closed
<p>What's the best practise to manage / restore application <a href="http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html" rel="noreferrer">back stack</a> between multiple sessions ?</p> <p>Exemple of a Workflow :</p> <ol> <li>Activity A started (stack: A)</li> <li>Activity B started (stac...
1
1,817
swift - UICollectionView issue "fatal error: unexpectedly found nil while unwrapping an Optional value"
<p><strong>EDIT:</strong></p> <p>After adding exception breakpoint (thanks to Daniel T), I found out that it was my </p> <pre><code>cell.askingUsernameLabel.text = NSString(string: arr[indexPath.row]) </code></pre> <p>which was returning nil.</p> <p>The solution to this problem is that within swift, registering Sub...
1
10,059
CXF logs not appending to Log file
<p>I want to log the Apache CXF inbound and outbound interceptors logs inside the File instead of Console</p> <p><strong>Maven project :</strong></p> <p>1) Created a file named 'org.apache.cxf.Logger' under META-INF\cxf and placed the below text</p> <p>META-INF\cxf\org.apache.cxf.Logger</p> <pre><code> org.ap...
1
2,180
Print Binary search tree from biggest number to smallest using Java
<p>I need a way, <code>recursive</code> / <code>non recursive</code> to print BST from biggest to smallest number, Example : for this tree <a href="https://i.stack.imgur.com/RRucF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RRucF.png" alt="BST"></a> came threw the answer of how to print BST </p...
1
1,024
Create schema in HSQL database(in memory) using Hibernate(Annotation method)
<p>Was creating JUNIT cases for hibernate project(based on annotations) using hsqldb(in memory).But the tables are not getting created. The error(<em>org.hsqldb.HsqlException: invalid schema name: TEST</em>) is happening because of the <strong>catalog</strong> property for <strong>entity</strong>. If it is removed i do...
1
3,445
How do I modify the kendo UI menu's default html?
<p>Kendo UI's default menu is great but Bootstrap's menu is awesome. What must I do in order to keep the same Bootstrap menu's structure while calling the menus via kendo ui ?</p> <p>bootstrap menu structure:</p> <pre><code>&lt;div style="height: 0px;" class="nav-collapse clr collapse"&gt; &lt;ul cla...
1
2,771
Memory leaks with AddressBook framework
<p>I'm having some memory leaks with both ABAddressBookGetPersonWithRecordID and ABPersonSetImageData. I've been looking for solutions before posting here but I still don't understand. If I play quite a long time with the iPhone 3GS or with only a few contacts with iPhone 3G, actually the application crashes. Here is ...
1
3,415
How do I determine the Delphi version which created a Delphi project
<p>I am trying to automatically figure out which Delphi version (of Delphi 5 to XE2 installed on my computer) to use to open a given project without upgrading that project by mistake.</p> <p>Up to Delphi 7 there is a .dof file in .ini format for each project. Delphi 5 does not have any entry which might help, but start...
1
1,108
AndroidRuntime(1130): FATAL EXCEPTION: main
<p>Please need help on this.When I am trying to run my app on emulator I got these error in my Logcat and my UI Crashes</p> <p><strong>logcat errors</strong> </p> <pre><code>07-04 15:54:08.453: W/dalvikvm(1130): threadid=1: thread exiting with uncaught exception (group=0x2bd39930) 07-04 15:54:08.870: E/AndroidRun...
1
5,658
Customize JPA field name mapping using EclipseLink
<p>I need to map camel-case names to underscore-separated names in my current project, which uses EclipseLink, due to historical reasons. I know we can customize name mapping individually in JPA, but we have a long list of camel-case names to change, so we want to avoid that kind of boilerplate codes if all possible. <...
1
1,339
Login and authentication system with .txt file
<p>I'm trying to code a simple login system with authentication. I first try to give user two choices of login or registering. Then if user chose to register, and the information will be stored in the .txt file to then used to compare with the login details to check whether this user existed or password is valid. I enc...
1
1,109
SQL Server INSERT ... SELECT Statement won't parse
<p>I am getting the following error message with SQL Server 2005</p> <blockquote> <p>Msg 120, Level 15, State 1, Procedure usp_AttributeActivitiesForDateRange, Line 18 The select list for the INSERT statement contains fewer items than the insert list. The number of SELECT values must match the number of INSERT col...
1
1,389
Android Copy Image to clipboard/clipdata
<p>Long press on images in the web or at other places gives me the opportunity to copy an image to the clipboard of my device. See here:</p> <p><a href="https://i.stack.imgur.com/8fTtt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8fTtt.png" alt="Example"></a></p> <p>Now I want to implement this into my a...
1
1,123
Upload Profile Picture in Laravel Registration failed
<p>I want to upload a profile picture at the registration</p> <p>Before i had to register the user and after that i could change the default user.jpg into my own profile picture </p> <p>but now i want to upload my profile picture at the registration </p> <p>this is the part of my view where i want to upload the pict...
1
1,625
How to split string in XML
<p>I have this kind of XSL</p> <pre><code>&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt; &lt;xsl:output indent="yes"/&gt; &lt;xsl:template match="dataroot"&gt; &lt;xml&gt;&lt;xsl:apply-templates/&gt;&lt;/xml&gt; &lt;/xsl:template&gt; &lt;xsl:template m...
1
1,716
get values entered on jsp to action class
<p>How Can I get the value when I type something new into the jsp and then submit the list to the actionclass? Currently I am able to submit to the action class from the jsp and see the new list that I create inside my action. But I would like to be able to retirieve the values that I type into the jsp. </p> <p>Employ...
1
1,904
RNGestureHandlerModule.attach Gesture Handler got 3 arguments, expected 2
<p>I am building an app with React Native and have a login, Home, and member screen. when the user is admin I let him go to the home screen and when he is member I let him go to the member screen. and inside the Home screen, I have also the AddMember screen so I build stack navigation and drawer navigation inside stack...
1
1,808
NIO fail when writing more data than reading
<p>I've been playing around with the NIO and non-blocking sockets expecting to code a simple and high performant server where I could easily throttle the input data if and when the writing or the middle processing takes more time than it should. Unfortunately it seems I'm failing to understand some concepts of the sele...
1
8,432
Build fail using maven android with ActionBarSherlock and Roboguice
<p>I've started an Android project in my spare time a couple months ago. To allow friends to easily collaborate I want to use maven, but I fail to build my project.</p> <p>My project use ActionBarSherlock and Roboguice (and the Roboguice Sherlock lib to allow this collaboration). After hours trying to hack my pom I ca...
1
7,255
Cordova Platform add android issues
<p>I'm trying to add the android platform however this is the error message I keep getting </p> <blockquote> <p>C:\Users\Xavier\Desktop\Mtek_DM\Mtek>cordova -d platform add android cordova library for "android" already exists. No need to download. Continuing. Checking if platform "android" passes minimum requi...
1
1,184
How to implement onRequestPermissionsResult in the following program
<p>I am making a music player app and created a playlist in it. For the marshmallow devices(API 6.0.0), I need to get the permission READ_EXTERNAL_STORAGE. So I created a class Permission.java to ask for permission whenever I need one (All the methods about checking the permission and requesting it are implemented in i...
1
4,412
CakePHP: Setting up ACL allow/deny not working (tables not being updated)?
<p>I am trying to set up my ACL with the following action in my UsersController:</p> <pre><code>class UsersController extends AppController { var $name = 'Users'; var $helpers = array('Html', 'Form'); function beforeFilter() { parent::beforeFilter(); $this-&gt;Auth-&gt;allow('*'); }...
1
1,636
python dropbox api - save token file?
<p>I want to avoid having to authorise this script over and over. In other words, when I launch the script from the terminal, it gives me a link I have to open in a browser then click on the 'Allow' button in the browser then go back to the terminal...I guess there's a way to save the authentication details but how? </...
1
1,081
How to set up nginx config for a React.js app deployed on AWS ECS with path-based routing load balancer
<p>I have an application which consists of two containers:</p> <ul> <li>a backend node.js server on express.js, referred to as 'app-server'</li> <li>a front-end react.js client based on create-react-app, referred to as 'app-client'. This one uses an nginx server to set up reverse proxy for <code>/api</code> requests to...
1
1,786
First-chance exception at 0x00998876 in Project4.exe: 0xC0000005: Access violation writing location 0x00000000
<p>I am writing a hangman game. I cannot proceed with debugging because I do not understand this error: </p> <blockquote> <p>First-chance exception at 0x00998876 in Project4.exe: 0xC0000005: Access violation writing location 0x00000000. Unhandled exception at 0x00998876 in Project4.exe: 0xC0000005: Access violat...
1
2,494
Looping through input array in Laravel 5
<p>I have a basic UI where users can add a simple list with a label and a value. I want to loop through that list to store the data in a "Detail" model.</p> <p>I have the following code.</p> <p>Controller:</p> <pre><code>$details = $request-&gt;input('detail_label'); foreach($details as $key =&gt; $value) { if(...
1
1,281
ora-01861 literal does not match format string
<pre><code>select contract.contract_id from swcd.scd_contract contract left join SCD.COMPANY_TIMELINE_VIEW customer on (customer.company_id=contract.customer_company_id and to_char(to_date(case when contract.ANNOUNCEMENT_DATE is null then case when contract.ANNOUNCEMENT_QUARTER='Q1' then '1-JAN-' when contract.ANNOUN...
1
2,155
Laravel 5.2 Event Testing: expectsEvent not seeing the event fired although it is being fired
<p>I have been trying to test events and I had it working yesterday. That was before I started to refactor the test code to keep it from being too repetitious. I added the setUp method call to generate the fake data using ModelFactories. This was done in each test case yesterday and as stated it was working.</p> <p...
1
2,249
Upload an image to PHP from an iPhone
<p>I am uploading an image to PHP from an iPhone but in PHP the image is not visible. The image was saving in bytes. </p> <pre><code> -(void)uploadMyImage:(UIImage *)img { NSData *data = UIImageJPEGRepresentation(img, 90); NSMutableString *urlString = [[NSMutableString alloc] init]; [Ba...
1
1,595
CSS Table: bottom borders that don't touch and rounded corners
<p>Here's the fiddle for what I'm working on:</p> <p><a href="http://jsfiddle.net/rSUhL/" rel="nofollow noreferrer">http://jsfiddle.net/rSUhL/</a></p> <p>I'm trying to replicate this image:</p> <p><img src="https://i.stack.imgur.com/Mr3bo.png" alt="http://unbouncepages-com.s3.amazonaws.com/www.mastermindtalks.com/d9...
1
1,319
Soap Call to http://www.w3schools.com/webservices/tempconvert.asmx
<p>I have written a soap client to the mentioned service.</p> <p>But the response I get always shows me an error as answer. I can't really find out where the problem lies. Maybe someone can help me.</p> <p>Below my code:</p> <pre><code>public static void main(String[] args) throws SOAPException { try { ...
1
1,654
Receive and send continuous data from TCP Socket
<p>I'm already going crazy. So I decided to ask for help.</p> <p>Scenario: In a web page, connect to the server via TCP socket, and in a loop I get the data byte by byte. These data are continuous.</p> <p>Question: How do I make a WebSocket that receive and send data to the player ( html5 tag).</p> <p>Default.aspx</...
1
3,275
$httpBackend.flush(); causes Karma to fail
<p>When I run <code>grunt jasmine</code> all my specs pass, but when I run <code>grunt karma</code> Karma basically silently fails since "Warning: Task 'karma:unit' failed. Use --force to continue. Aborted due to warnings." tells me close to nothing. If I remove all of my $httpBackend checks then <code>grunt karma</cod...
1
1,599
VS2013 CodeCoverage.exe runsettings file never parses
<p><strong>Environment:</strong> Visual Studio 2013 Premium, Win7Ultimate, CodeCoverage.exe</p> <p><strong>Goal:</strong> Code Coverage Report that excludes test project code to later be converted to a .coveragexml for reporting to SonarQube 5.1.</p> <p><strong>Annoyance</strong> I wouldn't even know of this parse er...
1
1,599
Listbox within a DataGrid
<p>Could someone please point me in the right direction regarding the above?</p> <p>I have a datagrid returning multiple rows via sqlite query. Within each row I need a listbox which should return multiple items associated with that row. I’m returning the reference id from the parent table in the datagrid as a column ...
1
1,121
achartengine clear renderers in XYMultipleSeriesRenderer
<p>My goal is create a graph that will hide and show a series depending on user actions. I thought to do that by first clearing the graph and dataset and renderers and then reinserting the new values. Much like the <code>.clear()</code> method of Arraylists, I was wondering if there was some type of similar functionali...
1
1,857
Error: Invalid src prop on `next/image`, hostname "res.cloudinary.com" is not configured under images in your `next.config.js`
<p>I'm creating an array of objects where I have an image src property whose name is <code>coverSrc</code>, and I'm exporting &amp; importing it into my main component. In my main component, I m using the Material UI CardMedia component to display images. but it gives me the following error:</p> <blockquote> <p>Invalid...
1
1,348
code to detect browser back button click for any(all) browser
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/54539/prevent-use-of-the-back-button-in-ie">Prevent Use of the Back Button (in IE)</a><br> <a href="https://stackoverflow.com/questions/87422/disabling-back-button-on-the-browser">Disabling Back button on the bro...
1
1,278
What account to use in sessionstate connectionstring
<p>I am working on a Website that was donated to our institution, right now I'm trying to decide exactly how to set up two connection strings (CS) in the Web.config file (some of the details in these connection strings were redacted by the donator). The CS I have a question about is referenced in sessionState:</p> <p...
1
1,217
Unable to build : How to add Android Build Config for new Module
<p>Now i am converting my android code to modularized architectural approach. Facing issues when trying add a dependency on "app" module from "chat" module.</p> <p><strong>I have the following build config for the "app" module.</strong></p> <pre><code>android { lintOptions { checkReleaseBuilds false abortOnE...
1
1,891
How to use get_it (flutter dependency injection) in the widget test?
<p>When I use dependency injections in a project, my widget tests fails.</p> <p>My error is as follows:</p> <pre><code>Testing started at 10:07 AM ... C:\src\flutter\bin\flutter.bat --no-color test --machine --plain-name &quot;Exist FloatingActionButton&quot; test\features\announcement\presentation\widgets_test\announc...
1
1,629
Errors occur while using mysql with liferay
<p>I'm using Liferay v6.1 CE. I switched from Liferay's HSQL to MySQL v5.1.23 by following the instructions on <a href="http://thiranjith.com/2011/09/17/setting-up-liferay-with-mysql/" rel="nofollow">this page</a> and other similar pages which have same instructions. But when I start the server, I get following errors ...
1
10,171
Problem with running WebService in separate thread in Delphi
<p>I have never asked questions in any community as I always solved problems by myself or could find them online. But with this one I came to dead end and need Help! To make it very clear – I converted a simple app, found elsewhere to make it use a Tthread object. The idea is simple – the app checks online using webser...
1
1,223
Hibernate many-to-many collection filtering
<p>I have the following POJO with a Set inside:</p> <pre><code>class Word { private Long id; private String word; private int type = WordListFactory.TYPE_DEFAULT; private Set&lt;Word&gt; refs = new HashSet&lt;Word&gt;(); ... } </code></pre> <p>Here's the mapping XML:</p> <pre><code> &lt;class name=...
1
1,621
Merge and Perfectly Align Histogram and Boxplot using ggplot2
<p>since yesterday I am reading answers and websites in order to combine and align in one plot an <code>histogram</code> and a <code>boxplot</code> generated using <code>ggplot2</code> package.</p> <p>This question differs from others because the <code>boxplot chart</code> needs to be reduced in <code>height</code> an...
1
1,143
Object of type 'InlineKeyboardButton' is not JSON serializable
<p>my code is here</p> <pre><code>def forwards(update:Update, context:CallbackContext): query = update.callback_query next_index = int(query.data.split(&quot;_&quot;)[1]) + 1 current_index = int(query.data.split(&quot;_&quot;)[1]) html = &quot;&quot; # if context.user_data[&quot;totalPage&quot;] == ...
1
1,326
Can't add sources with gem
<p>I'm trying to add <a href="http://rubygems.org/" rel="noreferrer">http://rubygems.org/</a> in my sources because I can't use 'gem install NAME' (this error : Could not find a valid gem 'dashing' (>= 0) in any repository).</p> <p>So, I did this command : gem sources -a <a href="http://rubygems.org/" rel="noreferrer"...
1
1,379
sys.path.insert cannnot import other python files
<p>What the title says. I have the following file structure inside the path<code>C:\Users\User\Desktop\all python file\5.0.8</code>:</p> <pre><code>5.0.8\ tree one\ little main.py sample_tree1.py tree two\ sample_tree2.py </code></pre> <p>the following is what's inside <code>little main.py</c...
1
1,090
Having trouble exporting from an Angular2 module
<p>I'm a beginner with Angular 2, and am trying to understand how to export a class from a feature module, and import it into my main module.</p> <p>When I try to compile this in typescript, I receive the following two errors:</p> <ul> <li><p>app/app.component.ts(11,21): error TS2304: Cannot find name 'AddService'. <...
1
1,178
Dozer not working with spring boot
<p>I'm making a little microservice and I need dozer in my project.</p> <p>I've downloaded a starter pack from <a href="http://start.spring.io/" rel="nofollow noreferrer">http://start.spring.io/</a> with the dependencies: Web, actuator and config client.</p> <p>So, for dozer I've made this changes:</p> <p>In pom.xml...
1
5,154
expat undefined reference to `XML_SetElementHandler'
<p>I am getting these linker errors when i build my program using expat xml library . </p> <pre><code>3288 /tmp/ccFZziQa.o: In function `xml::node::load_xml(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;)': 3289 node.cpp:(.text+0xdec): undefined reference to `XML_Set...
1
1,120
converting VGG functional model into sequential model in Keras
<p>I am actually trying to get a Sequential model version of VGG16 with Keras. The functional version can be obtained with:</p> <pre><code>from __future__ import division, print_function import os, json from glob import glob import numpy as np from scipy import misc, ndimage from scipy.ndimage.interpolation import zo...
1
8,054
How to Update ASP.NET GridView Row with ObjectDataSource with Code Behind Programmatically
<p>I am having problem with implementing editable GridView using ObjectDataSource on CodeBehind; I wonder what missing pieces I need to add in my code behind (events): </p> <p><strong>ASPX Code:</strong></p> <pre><code>&lt;asp:GridView ID="grdPlayer" runat="server" AutoGenerateColumns="False" AutoGenerat...
1
1,591
React Onclick button change forms
<p>I need help to change the pages of my app. I searched a lot but still don't know how to do that.</p> <hr> <p><strong>Here is my index file:</strong></p> <pre><code>import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './regis...
1
2,273
Sharing data on Android with Intent
<p>I'm having a problem with sharing content on android between apps, with Intent I can successfully share plain text (on G+, Facebook and Facebook Messenger) The code is the following: </p> <pre><code>Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_TEXT...
1
1,087
Getting unexpected error (type=Method Not Allowed, status=405) error while access /refresh actuator is not working
<p>I created one @RestController class and trying to use /refresh actuator values from config server. /refresh actuatoris not working. I am getting below error. Spring boot version is 2.0.0-Release. I can not upgrade spring boot version.</p> <p><a href="http://localhost:8888/secondservice/admin/refresh" rel="noreferre...
1
1,175