title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How Use SliverPersistentHeader and TabBarView Together in Flutter?
<p>I have Main Page With <code>SliverPersistentHeader</code> and <code>TabBarView</code> Like Below code :</p> <pre><code> @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Theme.of(context).backgroundColor, body: DefaultTabController( length: 3, child: ...
0
2,243
Spring boot multiple data sources using EntityManager
<p>I'm trying to setup a Springboot (v2.0.0.BUILD-SNAPSHOT) project with multiple datasources using this tutorial from INFOQ</p> <p><a href="https://www.infoq.com/articles/Multiple-Databases-with-Spring-Boot" rel="noreferrer">https://www.infoq.com/articles/Multiple-Databases-with-Spring-Boot</a></p> <p>But instead of...
0
4,472
Catch empty String. Which exception to use?
<p>As the title suggests I am trying to catch an empty String. I have a class (the class of the object I am trying to create) that throws an Exception when the String is null or empty (check with str.isEmpty). When I try to create the object with an empty String in another class it works as intended and throws an Excep...
0
1,172
How do I use RestSharp to POST a login and password to an API?
<p>I'm trying to write a C# application that will call an api for Pacer.gov. First thing I need to do it get a cookie to pass with my request. I'm using Chrome's Postman app to try to generate a POST request. Can someone explain what I'm doing wrong?</p> <p>The instructions I got from Pacer.gov to get the authentic...
0
1,886
C: Implicit declaration of function
<p>I am working on an assignment in which we are developing our own RPC client. Upon compiling my server portion, I receive warnings for the following:</p> <pre><code>implicit declaration of function 'read' implicit declaration of function 'write' </code></pre> <p>I understand that I would typically receive this warn...
0
1,193
How to check if a MySQL connection is open in Python?
<p>I am using MySQLdb (<a href="http://mysql-python.sourceforge.net/" rel="noreferrer">http://mysql-python.sourceforge.net/</a>). It seems that connection.open and connection.sqlstate() do not work for me. Below is the code:</p> <pre><code>def open(self): #TODO: check the connection's status # self.__conn.open...
0
1,408
How to use Golang to compose raw TCP packet (using gopacket) and send it via raw socket
<p>I would like to craft custome TCP packets using gopacket and then send them using raw sockets.</p> <p>Here is a short and readable example go program that demonstrates what I'd like to do:</p> <pre><code>package main import ( "code.google.com/p/gopacket" "code.google.com/p/gopacket/examples/util" "cod...
0
1,167
How to dynamically load assemblies in dotnet core
<p>I'm building a web application, where I would like separate concerns, i.e. having abstractions and implementations in different projects.</p> <p>To achieve this, I've tried to implement a composition root concept, where all implementation must have an instance of <code>ICompositionRootComposer</code> to register se...
0
1,252
textbox validation with jquery
<p>I am new to JQuery. I want to do the validation to four text box using jquery.</p> <p>Coding i have done</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"&gt; &lt;script src="//code.jquery.com/jquery-1.10.2.j...
0
1,686
Java client listening to WebSphere MQ Server?
<p>I need to write a Java client listening to WebSphere MQ Server. Message is put into a queue in the server. </p> <p>I developed this code, but am not sure it is correct or not. If correct, then how can I test it? </p> <p>This is a standalone Java project, no application server support. Which jars I should put into ...
0
1,733
Calling php classes from other files
<p>I am working on some custom post types. I finished the first one and realized that the metabox code I was using could be re-used by other, future, custom post types (as well as pages, posts, etc). So I put the class in its own php file and included it from the functions.php file of my child theme. I've never used...
0
3,823
PostgreSQL query not using index in production
<p>I'm noticing something strange/weird:</p> <p>The exact same query in development/production are not using the same query path. In particular, the development version is using indexes which are omitted in production (in favor of seqscan).</p> <p>The only real difference is that the dataset is production is signific...
0
2,609
Build Failed in Sencha CMD
<p>I have today downloaded and installed Sencha Touch 2.0, I watched the tutorial video and all was going well until I tried to build the App.</p> <p>AT first I had a problem with Compass, the tutorial doesn't mention having to install Compass and therefore having to get Ruby running on your system, and then get the c...
0
7,642
has a SelectedValue which is invalid because it does not exist in the list of items. How do you debug?
<p>I am having problems with asp.net binding to a dropdownlist and I have no clue on how to debug. I checked out the other questions about this on stack but nothing has helped. As far as I can see the "name" it should select is in the list. </p> <pre><code>&lt;asp:DropDownList ID="dd1" runat="server" DataSourceID="ADa...
0
1,895
Connect pyodbc to Postgres
<p>Trying to connect to Postgres using pyodbc.</p> <p>I can connect to the DB with isql:</p> <pre><code>echo "select 1" | isql -v my-connector </code></pre> <p>Returns:</p> <pre><code>+---------------------------------------+ | Connected! | | | | sql-...
0
1,161
Value cannot be null. Parameter name: dataSource. Editing Datagrid and Save to Database
<p>Hello I'm having a problem here. The code looks like this.</p> <pre><code>private void Form3_Load(object sender, EventArgs e) { string connectionString = "Server=localhost;" + "Database=oroderm;" + "User ID=root;" + "Password=root;" + "Pooling=false"; string query = "Select * fro...
0
1,082
error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath
<p>I can't compile my Android Kotlin project.</p> <p>I have no idea what is this...</p> <p><strong>Gradle log:</strong></p> <p>error: supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class android.support.v7.app.AppCompatActivity, unresolve...
0
1,549
Moving a span element from one div to another with jQuery?
<p>I want to move (on page load) the <code>&lt;span&gt;votes&lt;/span&gt;</code> part at the bottom and place it inside the <code>.rating-result</code> div:</p> <pre><code>&lt;div class="topic-like-count average"&gt; &lt;h4&gt; &lt;div style="display: none"&gt;UN:F [1.9.10_1130]&lt;/div&gt; &lt;div class="thumblo...
0
1,198
Homebrew command to update PHP : Error: No available formula for php56
<p>I am trying to update PHP on my Mac OS X machine using Homebrew, and I am receiving the following output:</p> <pre><code>*********:Library *********$ brew install php56 Error: No available formula for php56 ==&gt; Searching formulae... ==&gt; Searching taps... homebrew/php/php56-amqp homebrew/php/php56-pha...
0
1,656
Error in Postman 500 Internal server error api
<p>i'm building an api using flask for a web i already have a database and the GET request works but when i try POST it gives me This error</p> <blockquote> <p>500 INTERNAL SERVER ERROR</p> </blockquote> <p>This is the code i wrote</p> <pre><code>#User_schema class UserSchema(ma.Schema): class Mata: fields = ('...
0
1,964
ErrorListener missing when using maven-jaxb-plugin with eclipse and m2e
<p>I have setup a project just for the plugin "<code>org.jvnet.jaxb2.maven2:maven-jaxb2-plugin"</code>. It works but I don't like the error message displayed within the Eclipse editor for the "pom.xml". The message states: </p> <pre><code>Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:gener...
0
5,091
AWS Lambda: Unable to import module
<p>please forgive me, I am totally new at Lambda and Node.</p> <p>I am trying to replicate <a href="https://gist.github.com/bhberson/7a2847888596e67fd69b" rel="noreferrer">this</a> git to order a pizza using an AWS IoT button.</p> <p>My current code is:</p> <p><div class="snippet" data-lang="js" data-hide="false" da...
0
1,731
How can I install GRPCIO on an Apple M1 Silicon laptop?
<p>Every time I try to install a <code>pip</code> package with GRPCIO as a dependency inside a <code>.direnv</code> project I get a build failure due to my architecture being arm64. How can I work around this while waiting for the GRPCIO crew to release an update?</p> <pre><code> Using cached grpcio-1.34.0.tar.gz (21....
0
1,143
Axis labels on two lines with nested x variables (year below months)
<p>I would like to display months (in abbreviated form) along the horizontal axis, with the corresponding year printed once. I know how to display month-year: </p> <p><a href="https://i.stack.imgur.com/3Koi6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3Koi6.png" alt="enter image description here"></a></p...
0
4,085
Android Fused Location API. Location Always null
<p>I am trying to implement fused location for getting the current location. I am doing it with the help of this <a href="http://javapapers.com/android/android-location-fused-provider/" rel="nofollow noreferrer">link</a></p> <p>My googleAPiCLient is connected. But location is always null</p> <p>In my Manifest file I ...
0
2,018
‘NSInternalInconsistencyException’ when running UITesting with Xcode 7
<p>Ok, I’ve not been able to run this test in any betas so far. Some of the issues I’ve encountered are <a href="https://stackoverflow.com/questions/31713931/xcode-7-beta-4-crashes-on-ui-recording">here</a> and <a href="https://stackoverflow.com/questions/32215892/xcode-7-beta-6-pre-release-app-wont-launch-in-simulator...
0
1,168
Wsimport fails during Maven build
<p>I'm trying to use wsimport to generate classes from a WSDL.</p> <p>I'm using the Maven POP generated by Netbeans (7.1) but I get the following output when I attempt to build it:</p> <pre><code>[jaxws:wsimport] Processing: C:\Users\...\src\wsdl\ShipService_v5.wsdl jaxws:wsimport args: [-s, C:\Users\...\target\gener...
0
1,860
Crawl a website, get the links, crawl the links with PHP and XPATH
<p>I want to crawl an entire website , I have read several threads but I cannot manage to get data in a 2nd level.</p> <p>That is, I can return the links from a starting page but then I cannot find a way to parse the links and get the content of each link...</p> <p>The code I use is:</p> <pre><code>&lt;?php // ...
0
1,414
how to pass a java object to oracle stored procedure with following details
<p>I have my ORACLE table with structure as </p> <pre><code>desc extraction_log1 Name Null Type ...
0
3,137
Refresh a materialized view automatically using a rule or notify
<p>I have a materialized view on a PostgreSQL 9.3 database which seldom changes (about twice a day). But when it does, I'd like to update its data promptly.</p> <p>Here is what I was thinking about so far:</p> <p>There is a materialized view <code>mat_view</code> which gets its data from tables <code>table1</code> and ...
0
1,204
change Jtable Cell Value
<p>I have a jtable that keep book file records and sho them.</p> <p>I create a "Borrow" jbutton that when clicked to a row that not borrowed, The "Borrow Status" of that row should change to "Yes".</p> <p>I use this codes, but did not changed!</p> <pre><code>public class user_AllBooks extends AbstractTableModel{ Boo...
0
1,332
Post error: Either BinaryRead, Form, Files, or InputStream was accessed before the internal storage
<p>Any post in my Asp.net MVC generate this error:</p> <pre><code>Server Error in '/' Application. Either BinaryRead, Form, Files, or InputStream was accessed before the internal storage was filled by the caller of HttpRequest.GetBufferedInputStream. Description: An unhandled exception occurred during the execution ...
0
3,275
How can I use Laravel's baseurl on the vue.js 2?
<p>I have 2 component</p> <p>Component 1, The name is SearchResultVue.vue component</p> <p>The component is like this :</p> <pre><code>&lt;template&gt; ... &lt;span class="pull-right" v-show="totalall&gt;8"&gt; &lt;pagination :data="list" :baseUrl="this.Laravel.baseUrl" :total="totalPage" :ne...
0
1,025
retrofit expected begin_array but was begin_object at line 1 column 2 path $
<p>I'm learning retrofit following a youtube video but right now I'm stuck. It shows me an error "retrofit expected begin_array but was begin_object at line 1 column 2 path $" I'm trying to get json data from this site. <a href="http://servicio-monkydevs.rhcloud.com/clientes/" rel="nofollow">http://servicio-monkydevs.r...
0
1,864
Intermittent asp.net mvc exception: “A public action method ABC could not be found on controller XYZ.”
<p>I'm getting an intermittent exception saying that asp.net mvc can’t find the action method. Here’s the exception:</p> <blockquote> <p>A public action method 'Fill' could not be found on controller 'Schoon.Form.Web.Controllers.ChrisController'.</p> </blockquote> <p>I think I have the routing set up correctly ...
0
1,086
Flutter - NoSuchMethodError: The method '[]' was called on null
<p>I am encountering an error while trying to fetch data from Firestore using FutureBuilder. If a user logs in and I print (snapshot.data), I get a correct snapshot been pulled from the firestore:</p> <pre><code>flutter: FirebaseUser({displayName: null, providerId: Firebase, uid: UFubdB2xPCTUu8ESgQikOr9WOe52, phoneNum...
0
7,744
JSONObject.put string method adding extra \ character to JSON String
<p>I have a json string which has pid, name, price as elements. I'm displaying it in logcat. But this string changes as i use the put method to add a json string to json object. When i print the json object '\' charcater is added to every key value pair. I'm not able to figure out what is actually causing the problem.<...
0
3,511
Scikit-learn predict_proba gives wrong answers
<p>This is a follow-up question from <a href="https://stackoverflow.com/questions/16937243/how-to-know-what-classes-are-represented-in-return-array-from-predict-proba-in-s">How to know what classes are represented in return array from predict_proba in Scikit-learn</a></p> <p>In that question, I quoted the following co...
0
1,501
KSoap2 and KvmSerializable - How to Send complex Objects like Stringarrays
<p>I want to send a complex object from my Ksoap Client to my webservice. It’s an object of my Class Category. The Code is based on the example of this tutorial:</p> <p><a href="http://seesharpgears.blogspot.de/2010/10/ksoap-android-web-service-tutorial-with.html" rel="nofollow">http://seesharpgears.blogspot.de/2010/1...
0
5,034
How to enable CORS in an Azure App Registration when used in an OAuth Authorization Flow with PKCE?
<p>I have a pure Javascript app which attempts to get an access token from Azure using OAuth Authorization Flow with PKCE.</p> <p><strong>The app is not hosted in Azure. I only use Azure as an OAuth Authorization Server.</strong></p> <pre><code> //Based on: https://developer.okta.com/blog/2019/05/01/is-the-oauth-i...
0
3,405
How to inner join two already filled DataTables in VB.NET
<p>I marked Der Golem's answer as correct as it was the right answer for the specific problem I said I was having.</p> <p>Unfortunately, I failed to detect the fact that the records in datatable2 aren't unique, which obviously doesn't jive well with performing an "inner join" on the two tables for the result I was wan...
0
1,595
Pandas DataFrame.merge MemoryError
<h2>Goal</h2> <p>My goal is to merge two DataFrames by their common column (gene names) so I can take a product of each gene score across each gene row. I'd then perform a <code>groupby</code> on patients and cells and sum all scores from each. The ultimate data frame should look like this:</p> <pre><code> patie...
0
1,365
xamarin component failed to resolve assembly
<p>I am trying to build a xamarin component. I have a created a SomeLibrary.dll from a Binding project. Using this SomeLibrary.dll and the Component Template(<a href="https://components.xamarin.com/guidelines" rel="noreferrer">https://components.xamarin.com/guidelines</a> ), I have generated a SomeLibrary-1.0.xam compo...
0
2,048
Rails validation over redirect
<p>I'm trying out the <a href="http://github.com/courtenay/altered_beast" rel="noreferrer">beast</a> forum written in rails and will use this as an example of a problem I keep facing.</p> <p>The forum has a topics/show action and view with a form at the bottom to create a new post within the topic.</p> <p>Submitting ...
0
1,163
Runtime exception with Composer install/update on shared hosting w/ Symfony2
<p>I seem to be having some problems with cache permissions on shared hosting. Specifically, when I try to install/update vendors via Composer, I get a runtime exception:</p> <pre><code>$ php composer.phar update -v -o Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-updat...
0
1,056
WPF Binding on multiple criterias
<p>In my MVVM, in view I have a DataGrid where I want to enable the row elements based on 2 criteria. DataGrid has checkbox in 1 col (that is bound to IsRowChecked property) and a header checkbox in another col. I want to enable the row element if 1) IsRowChecked is true AND 2) Header checkbox is selected.</p> <p>I...
0
3,009
AutoLayout, Constraints and Animation
<p>Let's assume that I have this <code>UIView</code>:</p> <p><img src="https://i.stack.imgur.com/6SwF4.png" alt="enter image description here"></p> <p>with these relative constraints:</p> <pre><code>@property (strong, nonatomic) IBOutlet NSLayoutConstraint *leftMarginConstraint; @property (strong, nonatomic) IBOutle...
0
2,363
How to prevent app running in phone-gap from scrolling vertically?
<p>I'm trying out phone gap and I want my application to not scroll up and down when the user drags their finger across the screen. This is my code. Can anyone tell me why it's still allowing scrolling?</p> <pre><code> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &...
0
1,124
Spring JMS - redelivery by sending message back to same queue instead of rollback transaction
<p>this is my first post here so I apologize in advance if I don't respect formatting rules or other general rules.</p> <p>I have a Spring JMS based client application that reads from a queue using multiple consumers. My constraints are: guaranteed redelivery in case of failure and message duplication detection.</p> ...
0
1,102
How to delete a row from UITableView
<p>I'm trying to delete a row from my table view and so far have been unsuccessful. I keep getting this error:</p> <blockquote> <p>"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an exi...
0
2,505
Unity Container, Resolve Individual Objects
<p>I am beginning to learn about the Unity Container and Dependency Injection. I'm having difficulty understanding what my object model should look like.</p> <p>For my example, I created a really simple Employee class (I've omitted the Constructor, because that's what I'm confused about):</p> <pre><code>public class...
0
1,080
How to use ViewModel in a fragment?
<p>I'm using the MVVM architecture. I have an activity and a few fragments, I would like to make a request in the API in the activity, and then using ViewModel, thanks to the obtained data, to display them in the fragment. How should I do this? My current solution that doesn't work:</p> <p>Activity:</p> <pre><code>view...
0
1,050
Send data to a php script with AngularJS
<p>I'm new in AngularJS and following some tutorials I was able to create a simple page and a simple form.</p> <p>The problem is that every time I submit the form seems that the script is sending empty data.</p> <p>This is my html:</p> <pre><code>&lt;div class="jumbotron text-center"&gt; &lt;h1&gt;Contatti&l...
0
1,671
Exception in thread "main" java.lang.NumberFormatException: For input string: "" (I entered digits, but it seems to have read an empty string)
<p>There is something wrong in this section:</p> <pre class="lang-java prettyprint-override"><code>BufferedReader cin = new BufferedReader(new InputStreamReader(System.in)); String faaltu = cin.readLine(); String inp = cin.readLine(); String[] part = inp.split("\\s"); for(int k = 0; k &lt; part.length; k++) { Sys...
0
1,397
Using custom simpleCursorAdapter
<p>I am trying to access a list-activity using custom adapter.I have tried it directly without using any custom adapter it was working good but because I want to add more functions in list-view I want to implement a custom adapter.Now I have tried it but I am getting an empty list-view with no data visible. List-Activi...
0
1,262
How to find the length of a string using ARM Assembly on a Raspberry Pi
<p>I am currently learning assembly using my RPI that has ARM architecture. I have created the code below. However, when I input a string ("hi" for example) a few things go wrong. I do not receive the correct length. Example: "Hi" -> length of 8 (obviously incorrect). I will also segfault when the input is larger t...
0
1,456
Spring Boot & Kafka, Producer thrown exception with key='null'
<p>I'm trying to use <code>Spring Boot</code> with <code>Kafka</code> and <code>ZooKeeper</code> with <code>Docker</code> :</p> <p><code>docker-compose.yml:</code></p> <pre><code>version: '2' services: zookeeper: image: wurstmeister/zookeeper restart: always ports: - "2181:2181" kafka: image: wurstmeister/k...
0
6,849
Testing useContext() with react-testing-library
<p>I think I found another way to test a component using the <code>useContext</code> hook. I have seen a few tutorials that test if a value can be successfully passed down to a child component from a parent Context Provider but did not find tutorials on the child updating the context value.</p> <p>My solution is to ren...
0
1,083
Android Paint: .measureText() vs .getTextBounds()
<p>I'm measuring text using <code>Paint.getTextBounds()</code>, since I'm interested in getting both the height and width of the text to be rendered. However, the actual text rendered is always a bit wider than the <code>.width()</code> of the <code>Rect</code> information filled by <code>getTextBounds()</code>.</p> <...
0
1,352
PySpark error: "Input path does not exist"
<p>I am new to Spark and I code in Python.</p> <p>Following exactly my "Learning Spark" guidelines, I see "You don't need to have Hadoop installed to run Spark"</p> <p>Yet when I simply try to count the lines in one file using Pyspark I get the following error. What am I missing?</p> <pre><code>&gt;&gt;&gt; lines = ...
0
3,005
Balancing a binary search tree
<p>Ok, I am trying to get a binary search tree to balance, and I know why it's not working, but I don't know how to fix it. This is what I have for my balancing methods.</p> <pre><code> public void balance(){ if(isEmpty()){ System.out.println("Empty Tree"); return; } if(!isEmpty()){ ...
0
1,312
How do I implement a hamburger dropdown in my React navbar
<p>I am having trouble implementing a simple hamburger dropdown using bootstrap in my React project to make my header responsive. </p> <p>I'm importing the raw css for Bootstrap in my index.html in the as so. </p> <pre><code> &lt;link rel="stylesheet" href="https://cdn.rawgit.com/twbs/bootstrap/48938155eb24b4ccdde0...
0
1,191
ElementTree findall() returning empty list
<p>I am trying to write a small script for interacting with the last.fm API. </p> <p>I have a small bit of experience working with <code>ElementTree</code>, but the way I used it previously doesn't seem to be working, it instead returns an empty list.<br> I removed the API key as I don't know exactly how private it sh...
0
1,679
GO causes error when used in EXEC: "Incorrect syntax near 'GO'."
<p>I've created this stored procedure which dynamically creates the same trigger for all my tables:</p> <pre><code>USE [MyDatabase] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO --Drop Stored Procedure BEGIN TRY DROP PROCEDURE [dbo].[sp_CreateDataChangedTrigger] END TRY BEGIN CATCH END CATCH GO --Create...
0
1,372
background-image: url("images/plaid.jpg") no-repeat; wont show up
<p>I can't seem to make my plaid.jpg the background on any of my pages, let alone all of them, I've tried selecting it by body, html, *, the specific id of "home". nothing works. The image is 300 x 421 pixels. I don't need it to show up pretty, i just want it to show up, behind everything. how would my css look for thi...
0
1,985
Widget's didUpdateWidget method called when screen rotates with MaterialApp routes
<p>When I use <code>routes</code> in <code>MaterialApp</code> the child widget's (<code>MyHomePage</code>) <code>didUpdateWidget</code> is called whenever I rotate the screen/open the keyboard etc.</p> <pre><code>class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return Materi...
0
1,312
How to resolve error: An unexpected 'StartArray' node was found when reading from the JSON reader. A 'StartObject' node was expected.?
<p>I am trying to add an entity to Dynamics 2016 On Premise using the Web API. The Entity references three other entities. When I try to post the Entity, I receive the following error.</p> <blockquote> <p>An unexpected 'StartArray' node was found when reading from the JSON reader. A 'StartObject' node was expected...
0
1,506
Node.js app has periodic slowness and/or timeouts (does not accept incoming requests)
<p>This problem is killing the stability of my production servers.</p> <p>To recap, the basic idea is that my node server(s) sometimes intermittently slow down, sometimes resulting in Gateway Timeouts. As best as I can tell from my logs, something is blocking the node thread (meaning that the incoming request is not a...
0
1,277
java.util.ConcurrentModificationException in Android animation
<p>There is something I miss with the notion of Synchronizing code in Android.</p> <p><strong>Scenario</strong></p> <p>There are always 3 items drawn on the screen. Each image is stored in a ArrayList (lstGraphics). For this purpose I use a SurfaceView. Once the user taps on a image, the image get's market to be remo...
0
1,437
Angular JS Redirecting to another page
<p>I am working on angular js on a login form. If user name and password is correct then it should redirect to a success page. I am displaying a message for now but got struck on how to redirect to a success page once user enter correct credentials. any help ?</p> <pre><code>LOGIN.html : &lt;!DOCTYPE html&gt; &lt;htm...
0
1,986
how to align text under image in css menu
<p>I want to align menu text at the bottom of image how to i achieve it?</p> <p><strong>Expected output:</strong></p> <pre><code>Image Image Image Image [menutext] [menutext][menutext] [menutext] </code></pre> <p><strong>Actual output :</strong></p> <pre><code>Image[menutext] Image[menutext] ...
0
1,112
matplotlib and libpng issues with ipython notebook
<p>I was trying to use ipython notebook . I installed all the dependency libraries. However, I cannot use either the "--pylab=inline" option when launching ipython or "savefig" function in the Ipython console. When I tried to do either of them, an error message was returned "RuntimeError: Could not create write struct...
0
1,280
Keep getting "No default constructor found" for controller
<p>I`m using Spring MVC with Jackson library for JSON(going to use the AngularJS then). Here is the problem when I launch tomcat the "No default constructor found" error comes. Here is the error log:</p> <pre><code>SEVERE: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creatin...
0
3,221
Angular 7, Reactive Forms, How to format Date as 'YYYY-MM-DD'?
<p>I need to send post data to an API server. I have a form and it has a date picker field. Now, If I send the data to the server, it sends the date formatted as such that the server rejects it.</p> <p>Here is the representation of the whole data is sent:</p> <pre><code>{ address: "Address", department: 1, dob:...
0
4,251
Python: FileNotFoundError: [WinError 3] The system cannot find the path specified: ''
<p>I am creating a program in Python to automatically backup my flash drive to. The first backup, it works great, but when it repeats the process to backup again, I get this error message. </p> <pre><code>File "D:\Programming\_Languages\Python\Automatic_Backup\Automatic_Backup.py", line 51, in &lt;module&gt; shut...
0
1,472
Launch Mailchimp evil popup onclick
<p><strong>Styling</strong></p> <pre><code>&lt;link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css"&gt; &lt;style type="text/css"&gt; #mc_embed_signup{position:absolute; top:0; left:0; width:100%; height:100%; background-color:rgba(0,0,0,.8);display:none;z-index:1000...
0
6,967
How to use multiple criteria with .Find in VBA?
<p>I am trying to .FindLast to search for a specific record, and it was working with one criteria, but when I tried to use .FindLast with multiple criteria it stopped working. However, I use almost the same statement with .FindFirst and it works which is why I am confused. </p> <p>The error I get is "Data type mismatc...
0
1,679
inject() must be called from an injection context
<p>I am trying to export my Angular app as an npm module to be consumed by other applications, but am running into some difficulties. I have not been able to find this error anywhere else on the internet, and am at my wit's end.</p> <p>I followed this tutorial: <a href="https://medium.com/@nikolasleblanc/building-an-an...
0
1,993
Android socket connection timeout
<p>My android app is connected to the server through socket, which is coded in node.js. When the is left in the foreground for 15 minutes it losses connection to the server. The following is the code that connects the sockt to the server</p> <pre><code>public void connect() { this.connectionStatus = CONNECT_STATUS...
0
2,380
Sequelize create through association
<p>I'm working on a create method for an association between two classes. The sequelize documentation indicates that this can be done in one step using includes</p> <pre><code>IntramuralAthlete.create(intramuralAthlete,{ include: [Person] }).then((data,err)=&gt;{ if(data)res.json(data); ...
0
1,319
Set dynamic URL on state in AngularJS with Ui-Router
<p>I have an ng-include rendering partials on my page but as is the nature of ng-include I do not need a state to load the partials. I would like the URL to update when the ng-include updates its view so my analytics track it as a page change. I am wondering the best way to do this.</p> <p>Also I am using angular-ui-r...
0
2,003
How to forward a subzone
<p>I'm using Bind9 as the DNS server for my office. </p> <p>We have a zone: example.com. which has to be resolved from our DNS server as authoritative. </p> <p>On the other hand, we have a sub.example.com. zone, which has to be forwarded to other DNS server.</p> <p>Bind answers propery when we query for any record a...
0
1,332
How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS?
<p>When trying to compile an JavaFX application in the environment:</p> <pre><code>java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03) OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.0...
0
1,079
SLF4J Binding Error
<p>Im am new to maven and the last two days i try to integrate maven into a small web project. (I use Eclipse Juno as IDE). First I generated a new project (structure) with the "mvn-archetype-webapp" command and copied the sources from the project into this structure. Then I added all dependencies to the pom.xml so t...
0
2,776
React Native does not support development on Windows (yet)?
<p>I believe masses of people are very excited about React Native now finally supporting Android too.</p> <p>BUT there will be a huge disappointment that it does not support developing on Windows machines - which in many cases will prevent the uptake of React Native in bigger companies which can't just change their ma...
0
3,713
How do I use a ItemTemplateSelector together with a HeaderTemplate in a WPF ListView?
<p>Suppose the following XAML defined window:</p> <pre><code>&lt;Window x:Class="LayoutTests.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:LayoutTests" Title="Window1"&gt; &l...
0
1,063
iOS/iPhone Reachability - How to only check when internet is lost/not reachable using Reachability.m/.h
<p>Currently i am using the class by apple reachability.m/.h and it works, except it notifies me for any change, where as i would like to only notify the user if the network is not reachable. Currently if i have a internet connection and then loose the network it tells me. However when you reconnect to the network it a...
0
1,062
Uncaught TypeError: Cannot call method 'call' of undefined jquery validate
<p>I have my form as below</p> <pre><code>&lt;div id="new_image" title="Add Image"&gt; &lt;form id="new_image_form" action="/reg_new_img" method="POST" enctype="multipart/form-data"&gt; &lt;table width="0" border="0" cellspacing="0" cellpadding="6" class="table100"&gt; &lt;span class="astrix"&gt;&lt;/span&...
0
1,982
Angular routing with multiple routes and router-outlet
<p>I'm trying to add navigation to components in addition to the navigation of the app root, but it is not navigating to component route.</p> <p>I'm using two router-outlet:</p> <ul> <li>router outlet for the app root (app.component.html)</li> <li>router outlet for users component (users.component.html)</li> </ul> <...
0
1,325
C#, Operator '*' cannot be applied to operands of type 'double' and 'decimal'
<p>This error should be a simple one but I cant seem to make it work. The problem lies in the fact that this very same code works earlier in the program. I don's see any reason for it to be sending an error on this instance and not the four previous ones. Reference the code below, and feel free to provide any criticism...
0
1,526
OpenCsv writes wrong column names with BeanToCsv + HeaderColumnNameTranslateMappingStrategy
<p>I'm using <code>opencsv 3.6</code> in order to create a csv file starting from a java bean.</p> <p>First of all, I tried this code:</p> <pre><code>import com.opencsv.CSVReader; import com.opencsv.CSVWriter; import com.opencsv.bean.BeanToCsv; import com.opencsv.bean.HeaderColumnNameTranslateMappingStrategy; import...
0
1,533
Laravel 5 redirect loop error
<p>I trying to make a login and admin script, the problem is that I have a redirect loop I dont know why. </p> <p>I want the login users and can be in the <code>/</code> path not <code>/home</code>. </p> <p>If change <code>return new RedirectResponse(url('/'));</code> to <code>return new RedirectResponse(url('/anothe...
0
1,050
Multiple Colors for Each Item in JComboBox
<p>I'm trying to make a ComboBox that uses different colors for different items. I wrote out some test code but it doesn't seem to work. Adding in the renderer causes the program to crash but commenting it out makes the box display on in the frame.</p> <p>Is there anything I'm missing or am I doing this the wrong way?...
0
1,371
Why am I getting this error 'ModuleNotFoundError: No module named 'binance.client'; 'binance' is not a package' after binance installed?
<p>I am using visual studio code to try and pull candles from binance but i keep getting the following error: </p> <pre><code>ModuleNotFoundError: No module named 'binance.client'; 'binance' is not a package </code></pre> <p>heres the line of code that is causing the error:</p> <pre><code>from binance.client import ...
0
3,260
Hibernate Mapping Parent/Child Relationship
<p>I have a database table which contains a simple self parent/child relationship (categories) like this:</p> <pre><code>+------------+----------+--------------------+ | categoryid | parentid | category_name | +------------+----------+--------------------+ | 1 | 0 | Java | | ...
0
2,939
C1189: #error : "No Target Architecture"
<p>I have the following error when compiling :</p> <blockquote> <p>c:\program files (x86)\windows kits\8.0\include\um\winnt.h(146): fatal error C1189: #error : "No Target Architecture"</p> </blockquote> <p>Anyway I do not use Windows Kit in my project (or I didn't see it was included). And I tried to change the ar...
0
1,096
Android Error While using ExifInterface
<p>I am trying to check the orientation of bitmap and flip it if there is a need, but I have error while applying the code. Here is my code while i am trying to flipp the image using ExifInterface:</p> <pre><code>@RequiresApi(api = Build.VERSION_CODES.N) public void flipping(Bitmap b) { ByteArrayOutput...
0
2,095
Angular Material - Triggering Table Data Refresh
<p>I have a <code>angular-material</code> table with the <code>datasource</code> coming from a <code>variable array</code></p> <p>The array can have elements pushed to by the onscreen form. This works fine, and the element is pushed and to ensure it I print out the entire datasource and my the new object is reflected ...
0
1,101
Tensorflow Type Error: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64
<p>I am trying to create a DCGAN and I'm running into this error when I think I'm trying to use a linear() method:</p> <pre><code>Traceback (most recent call last): File "spritegen.py", line 71, in &lt;module&gt; tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line...
0
1,983
Unable to add a ribbon button to a custom list
<p>Edit: Updated with input from Omlin</p> <p>I am attempting to add a custom button to the ribbon. I want the button associated with a custom list named “Products”. I am able to get the button to show for a built-in list, such as a Shared Documents, but not the custom products list. </p> <p>Below are examples of ...
0
1,799