title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
JSON ajax SyntaxError: JSON.parse: unexpected character
<p>All I am trying to do is to build an object from the input elements typed in by the user without them clicking submit. These functions supposed to do the job, except I am not getting the $_POST array correctly at the host page:</p> <p>I started out thinking I can create a simple json object and stringify it then aj...
0
2,479
How to Clear or Remove the values from List in Robot Framework
<p>I wrote a Testcase, where it will read the login details from excel sheet and for each pair of details it will login and logout.</p> <p>I am reading data from Excel, each row details i am passing to list and sending that as input to the another keyword/function for login.</p> <p>After logout, i just want to remove...
0
2,065
Entity Framework 4 Stored Procedure Call Timing Out
<p>I have a stored procedure imported into EF4, and when I call it with certain parameters after 30 seconds it throws a time out error. In SQL Server profiler I can see the stored procedure call with the proper parameters taking just over 30 seconds, which is the timeout on my application. </p> <p>HOWEVER when I execu...
0
1,079
how to set onClick method with linearLayout?
<p>I am creating an application and posted a question yesterday <a href="https://stackoverflow.com/questions/15591147/how-to-start-activity-by-click-any-where-on-row">how to start activity by click any where on row</a>. Got an idea to do like below but I am getting this <strong>error:</strong></p> <blockquote> <p>Th...
0
5,336
Firebase Cloud Messaging iOS: No background push notification
<p>Using the newer Firebase cloud messaging with method swizzling i am successfully able to receive a payload in the <code>didReceiveRemoteNotification</code> method in my app delegate when my app is <em>foregrounded</em>. However i do not get any sort of payload and <code>didReceiveRemoteNotification</code> does not g...
0
1,537
Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package
<p>I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception:</p> <blockquote> <p>java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call LoginActivity with a null calling package. T...
0
2,416
ognl.OgnlException: target is null for setProperty...?
<p>I'm new to Struts 2. I'm creating a demo web application which allows a user to submit employee details on a jsp and show them on the next jsp. Following is the code:</p> <p><strong>struts.xml</strong></p> <pre><code>&lt;struts&gt; &lt;constant name="struts.custom.i18n.resources" value="ApplicationResources" /...
0
1,229
DomPDF render of large HTML file results in 500 error
<p>I'm using the most recent version of DomPDF (0.6.0 beta 3). </p> <p>PHP Version is 5.2.17. </p> <p>Unfortunately, I'm on a shared hosting account and upgrading PHP and similar actions are unavailable. I also don't have access to the apache error logs, which I don't think would be very helpful anyways. </p> <p>I'v...
0
1,368
Reading SharedPreferences data in Fragment, within FragmentActivity
<p>I'm trying to save the name the user enters on the log in screen below <code>Settings.java</code> to a <code>sharedPreference</code>, which will be read by <code>TestFragment2.java</code>, which is called from another FragmentActivity, <code>SampleTabsDefault.java</code></p> <p><img src="https://i.stack.imgur.com/T...
0
1,494
I can't install Gevent
<p>I need to install Gevent for python2.7 but after try almost all I still doesn't install it.<br> I have python 2.6.6 and here all work ok... but I need python2.7+ then I install python 2.7.9 and now have only problems... Before some part of my project work in python 2.6 ok, but now my project doesn't run witn 2.6 and...
0
3,009
“kubectl exec” results in "error: unable to upgrade connection: pod does not exist"
<pre><code>root@master2:/home/osboxes# kubectl get pods --all-namespaces -o wide NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE default hello-kubernetes-55857678b4-4xbgd 1/1 Running 1 18h 10.244.1.138 node default hel...
0
3,816
some problems were encountered while processing the POMs: [error] non resolvable import POM
<p>I want to start a new Jersey project but I failed in the first step because pom.xml show some errors and the project can't be built. the error : </p> <pre><code>some problems were encountered while processing the POMs: [error] non resolvable import POM: Could not transfer artifact org.glassfish.jersey: jersey-bom:...
0
1,173
C# Background worker setting e.Result in DoWork and getting value back in WorkCompleted
<p>C# 2008 SP1</p> <p>I am using the background worker</p> <p>If one of the conditions fails I will set e.cancel to true, and assign the string to the e.result. Everything works there.</p> <p>However, when the workCompleted fires, I test for the e.Result and I get an exception "e.result throw an exception of type sy...
0
1,189
Rounding Bootstrap 3 Carousel Corners
<p>I am trying to style a Bootstrap 3 carousel with CSS to have rounded corners. I am able to round the corners of the images in the carousel, but for some reason the background carousel edges remain unrounded. What am I doing wrong here?<img src="https://i.stack.imgur.com/FOAGY.jpg" alt="enter image description here">...
0
1,078
foreach + break vs linq FirstOrDefault performance difference
<p>I have two classes that perform date date range data fetching for particular days.</p> <pre><code>public class IterationLookup&lt;TItem&gt; { private IList&lt;Item&gt; items = null; public IterationLookup(IEnumerable&lt;TItem&gt; items, Func&lt;TItem, TKey&gt; keySelector) { this.items = items....
0
3,396
"An Authentication object was not found in the SecurityContext" - UserDetailsService Setup in Spring Boot
<p>In a Spring Boot application, I have an in-memory Spring Security setup. And it works as desired. </p> <pre><code>@Configuration @EnableGlobalMethodSecurity(prePostEnabled = true) class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Override public void configure(AuthenticationManagerBuilder aut...
0
1,262
DynamoDB The security token included in the request is invalid UnrecognizedClientException
<p>I have ~/.aws/credentials and config files and my code is below</p> <pre><code>clientConfiguration.setProxyHost("MYPROXY"); clientConfiguration.setProxyPort(port); clientConfiguration.setProxyUsername("username"); clientConfiguration.setProxyPassword("pw"); clientCon...
0
1,183
How to get a black statusbar on iPhone X on iOS 11
<p>By default the statusbar on an iPhone X looks like this:</p> <p><a href="https://i.stack.imgur.com/Pt4xc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Pt4xc.png" alt="enter image description here"></a></p> <p>But I would like to achieve this: </p> <p><a href="https://i.stack.imgur.com/Tp5vw.png" rel="...
0
1,051
Amazon EC2/SES SMTP Timeout
<p>I have an issue when trying to send emails from my EC2 instance using SMTP to SES. For some reason I am getting sporadic timeout issues, where I can no longer contact the SMTP host. It is important to note that sending through SES works probably 75% of the time. </p> <p>I will start with some details. My SES ac...
0
2,680
Flask is returning TypeError: The view function did not return a valid response
<p>I am new to Flask and trying to build simple userform page using flask and running into error. When I am trying to render just pure HTML, extending base.html, everything works perfectly, however when added macro, result is below. I tried everything and cannot solve the issue on my own. Any hints, what am I doing wro...
0
1,101
Enable or disable FCM push notifications by toggle button from application settings
<p>I have implemented push notifications through Firebase in my app. The notification is coming even when the notification is disabled from settings. The classes I have implemented for Firebase are:</p> <pre><code> public class MyFirebaseMessagingService extends FirebaseMessagingService { private stati...
0
1,812
Implicit (bool) and == operator override - handle if statements correctly
<p>I have a custom class with implement both the <code>==</code> and the <code>implicit</code> for boolean operator.</p> <p>Is this the correct way to handle all possible, if ==/!= statements and get the expected result? Like this:</p> <pre><code>public class Foo { public bool Result { get; set; } public sta...
0
1,029
Creating Table w PyHive & SqlAlchemy
<p>I'm trying to create a table in a Hive Database using SqlAlchemy ORM. My setting is Python 3.6 with <code>PyHive==0.6.1</code> and <code>SQLAlchemy==1.2.11</code> (with their relative dependencies) and <code>Hive 1.1.0-cdh5.15.1</code>.</p> <p>My approach is the following:</p> <pre><code>from sqlalchemy import cre...
0
1,810
How to get an instantiated delegate component from a GridView or ListView in QML
<p>My conundrum, phrased generally, is: through some action outside the GridView, I want to figure out the coordinates of a particular delegate item in the GridView based only on a particular model item or index selected before.</p> <p>I've got a GridView with a number of items in the model. The GridView's delegate c...
0
2,672
An ItemsControl is inconsistent with its items source - WPF Listbox
<p>I have a WPF window containing a ListBox control that is populated when a button click method is executed.</p> <p>XAML:</p> <pre><code>&lt;ListBox Name="ThirdPartyListBox" ItemsSource="{Binding}" Margin="0,70,0,0"&gt; &lt;ListBox.ItemTemplate&gt; &l...
0
1,593
Deploying PostgreSQL database with Kubernetes
<p>I am confused when it comes to deploying PostgreSQL database of my Django application with Kubernetes. Here is how I have constructed my deployment-definition.yml file:</p> <pre><code>apiVersion: apps/v1beta1 kind: Deployment metadata: name: postgres spec: replicas: 1 selector: matchLabels: app: pos...
0
1,410
Array null pointer exception error
<p>I am continuing with my project for school and have seemed to encounter another error. So what is happening is basically I am receiving a null pointer exception even though the code looks fine. I believe something is wrong with my array, and even after hours of searching I can't seem to find the error. Once again...
0
9,457
Manager isn't available; 'auth.User' has been swapped for 'polls.User'
<p>I have created a different version of the User model where there is no username field and I am now trying to implement a sign in feature, but I keep getting the error </p> <pre><code>Manager isn't available; 'auth.User' has been swapped for 'polls.User' </code></pre> <p>I have searched the rest of this site and tr...
0
1,545
org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI
<p>I referred to many posts but still I was unable to solve this problem.</p> <p><img src="https://i.stack.imgur.com/JADvi.gif" alt="enter image description here"></p> <p>I have tried putting this css folder in WEB-INF and within views folder as well.<br> But still the styles are not reflected in the view page.</p> ...
0
2,987
Hazelcast, HazelcastSerializationException: Failed to serialize 'com.hazelcast.spi.impl.operationservice.impl.operations.Backup'
<p>I have created custom entry processor for updating map entries by extending <code>AbstractEntryProcessor</code>. When my app is running in a cluster on two instances, and the entry processor is executed I receive following exception: </p> <pre><code>com.hazelcast.nio.serialization.HazelcastSerializationException: ...
0
3,197
reload datatable after ajax success
<p>I use JQuery DataTable. I send data to datatable onclick in json file at ajax succes .the first click everything is good,But the next click I get only the right data ANd wrong value of dataTables_info it display always the first value of dataTables_info And paginatio AND row too from the first result. This is the fi...
0
1,102
Tomcat is not getting started: Permission denied
<p>I am getting below error when trying to start the tomcat using <strong>systemd service</strong></p> <pre><code>systemd[1]: tomcat.service: Failed to execute command: Permission denied systemd[1]: tomcat.service: Failed at step EXEC spawning /opt/tomcat/bin/startup.sh: Permission denied </code></pre> <p><strong>Be...
0
1,103
Jenkins - java.lang.OutOfMemoryError: PermGen space -
<p>Environment: Linux/Windows7, Java 1.6.0.03/37 or 1.7</p> <p>I downloaded jenkins.war and after the initial setup using the following script/command, I downloaded some plugins(10-15) and tried to restart Jenkins, it worked. Then, I got some more plugins (30-40 in total) and either I chose Install or download+then+in...
0
1,942
java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter
<p>I'm trying to prototype some pretty simple Hibernate code originating from a tutorial and am getting an error I don't understand deep in cglib2 (the full stack trace is at the end of this post). I am probably trying to create 'productBoProxy' per my simple <em>main()</em> and bean XML (below).</p> <p>I've tried man...
0
1,482
Find elements inside forms and iframe using Java and Selenium WebDriver
<p>I'm trying to access elements that are present under <code>&lt;form&gt; &lt;iFrame&gt; &lt;form&gt; elements &lt;/form&gt; &lt;/iFrame&gt; &lt;/form&gt;</code>.</p> <p>Could you help me on accessing these <em>'elements'</em>, which I'm working with Selenium Webdriver and JAVA?</p> <p><strong>Issue Encountered:</st...
0
1,570
javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
<p>I am facing a problem while deploying a war on to tomcat instance,</p> <p>Tomcat version details,</p> <pre><code>D:\Kiran\Kiran\Softwares DH\Webservers\apache-tomcat-7.0.63\bin&gt;version.bat Using CATALINA_BASE: "D:\Kiran\Kiran\Softwares DH\Webservers\apache-tomcat-7.0.63" Using CATALINA_HOME: "D:\Kiran\Kiran...
0
1,051
Select all options in optgroup
<p>I have a <code>select</code> element with grouped <code>option</code>s. I need to select (or deselect) all <code>option</code>s in an <code>optgroup</code> when an <code>option</code> is clicked. I also need to be able to have multiple <code>optgroup</code>s being selected at once.</p> <p>The way I wish it to work...
0
1,100
Prevent div contents from spilling out
<p>I am having trouble preventing the contents of a div from spilling out. It seems to be related to Foundation's CSS, but I can't figure out what's causing it. Once I remove the Foundation CSS, it works fine.</p> <p>I'd really appreciate another set of eyes.</p> <p><a href="http://jsfiddle.net/UR5t9/" rel="noreferre...
0
1,697
Configure Webpack with Electron to use ES6 imports?
<p>I am trying to use <strong>Webpack</strong> since I want to use ES modules in my <strong>Electron</strong> application but having some hurdles. I just want to use <code>import</code> in my <code>main</code> as well as <code>renderer</code> processes.</p> <p>My application structure is as follows - </p> <pre><code>...
0
3,414
Struts2 java.lang.NoSuchMethodException
<p>I have a problem with Struts2, in my ActionClass I declared an:</p> <pre><code>private Integer table; + setter and getter methods </code></pre> <p>then I have a form in my .jsp:</p> <pre><code>&lt;s:form action="add-note" theme="simple"&gt; &lt;s:select name="table" list="tablesList.{tableNr}" cssCla...
0
4,878
javascript runtime error object doesn't support property or method 'tabs'
<p>Whenever i load my page this error got hit. My code is:</p> <pre><code>&lt;head runat="server"&gt; &lt;title&gt;Jai Jinendera&lt;/title&gt; &lt;meta charset="utf-8"/&gt; &lt;meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/&gt; &lt;link rel="stylesheet" hr...
0
1,053
Azure Shared Access Signature - Signature did not match
<p>I'm getting this error:</p> <pre><code>&lt;Error&gt; &lt;Code&gt;AuthenticationFailed&lt;/Code&gt; &lt;Message&gt; Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:6c3fc9a8-cdf6-4874-a141-10282b709022 Time:2014-07-30T10:48:...
0
1,073
Return a DTO Object in spring data repository method annotated with @Query
<p>I have a Repository and in this interface I have a method that would like to return a ComentarioEditalDto instead of an ComentarioEdital, but when I call this method an exception is thrown, telling me that I don't have a Converter, how can I convert to return a instance of another class?.</p> <pre><code>import br....
0
1,667
save data in sql server database using angularjs by asp.net
<p>i have this program n which i wan to save data in SQl data base using angularJS by ASP.net front end but i am not getting any response when i i am clicking on submit button </p> <p>I created a web service file UserService.asmx</p> <pre><code>using System; using System.Collections.Generic; using System.Configurati...
0
1,454
Slow scrolling down the page using Selenium
<p>I'm trying to scrape some data from flight search page. </p> <p>This page works this way: </p> <p>You fill in a form and then you click on the button search - this is ok. When you click the button you are redirected to the page with results and here is the problem. This page is adding continuously results for exam...
0
1,393
Ansible register result result.stdout result.rc etc dict variable not found, how to use until loop
<p>ansible/ansible-playbook version: 2.1.2.0 / 2.2.0.0</p> <p>I'm trying to install a package using yum/apt but as the repository for installing the package is sitting in packagecloud.io, sometimes I'm getting an error message (when I'm passing <code>-vvv</code> while running my ansible-playbook).</p> <pre><code>[Errno...
0
1,106
Java Programming - Where should SQL statements be stored?
<p>Where should an JDBC-compliant application store its SQL statements and why?</p> <p>So far, I managed to identify these options:</p> <ul> <li>Hardcoded in business objects</li> <li>Embedded in <a href="http://en.wikipedia.org/wiki/SQLJ" rel="noreferrer">SQLJ</a> clauses</li> <li>Encapsulate in separate classes e.g...
0
1,355
java.lang.UnsupportedOperationException: The user must supply a JDBC connection
<p>I get this exception but I can not figure out what is wrong with my configuration I am posting the relevent files thanks for any help<br> I am using Spring 3.1.0.RELEASE hibernate-entitymanager 3.6.10.Final (Should work with JPA 2)</p> <p>Trying to run the code from a JUnit file</p> <pre><code>package com.success...
0
2,175
@ComponentScan not working in test with spring-boot-starter-test
<p>I am attempting to test my <code>@Service</code> and <code>@Repository</code> classes in my project with spring-boot-starter-test and <code>@Autowired</code> is not working for the classes I'm testing. </p> <p>Unit test:</p> <pre><code>@RunWith(SpringRunner.class) @SpringBootTest @ContextConfiguration(classes = He...
0
1,113
panic: sync: negative WaitGroup counter
<p>My goal is to use goroutines and channel, i want to learn how to communicate between different goroutines and i want to avoid deadlock. I managed to use <code>sync.WaitGroup</code> and it is working just fine. </p> <p>However I received an error saying that </p> <blockquote> <p>1 panic: sync: negative WaitGroup ...
0
1,148
How to Run .asp page on vs2010 project
<p>My local pc os is windows7 .Work on vs2010 C# .In my project I have .aspx and .asp files.My project start up page is .asp.After run the project I get the error .</p> <p>The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review...
0
1,567
How to import CSS files into webpack?
<p>According to the <a href="https://webpack.js.org/guides/code-splitting-css/#importing-css" rel="noreferrer">documentation</a>, CSS file should just be <code>import</code>ed. </p> <p>I am just starting with <code>webpack</code> and tried to import a CSS file but I get a message about a module missing:</p> <pre><cod...
0
1,638
How to solve "Error: Uncaught (in promise): Error: No provider for" error in Ionic 3
<p>I'm learning Ionic 3 and I'm getting this error when trying to make a custom validator which checks for a unique username. I've tried my best but couldn't solve this issue.</p> <p>CustomValidators.ts</p> <pre><code>import { Directive, Input } from '@angular/core'; import { FormControl, Validator, AbstractControl ...
0
1,087
How do I edit .mca files from Minecraft?
<h1>Introduction</h1> <p>I want to combine my separate Minecraft worlds into a single world and it seemed like a relatively easy feat, but as I did research it evolved into the need to make a custom program.</p> <h2>The Struggle</h2> <p>I started by shifting the region files and combining them in one region folder, ...
0
1,158
java-simple-serial-connector read/write server
<p>I have modified the example shown on <a href="https://code.google.com/p/java-simple-serial-connector/wiki/jSSC_examples" rel="nofollow">https://code.google.com/p/java-simple-serial-connector/wiki/jSSC_examples</a> to show read/write from java program. I can run the program, however the data I send using serialPor...
0
1,221
C# : OperationCanceledException : The operation was canceled
<p>Below I am trying to send data to eventhub, it works for few minutes and then the <em>OperationCanceledException</em> is thrown. Any hint on where I am wrong in using CancellationToken (if that is what I should be using)? or how I could fix this issue?</p> <pre><code>public async void send&lt;T&gt;(IEnumerable&lt;T&...
0
1,830
node.js mongodb .. the (immutable) field '_id' was found to have been altered
<p>I have some problem when I try to upsert my object with new ones(parsed from xml file),but I got the following error: </p> <pre><code> MongoError: exception: After applying the update to the document {_id: ObjectId('55be3c8f79bae4f80c6b17f8') , ...}, the (immutable) field '_id' was found to have been altered to _id...
0
1,230
How to avoid banned dependency error in maven?
<p>I cannot build my project due to following error:</p> <pre><code>[WARNING] Rule 6: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message: Found Banned Dependency: de.lmu.ifi.dbs.utilities:common-extension-lib:jar:2.4.0 Found Banned Dependency: de.lmu.ifi.dbs.jfeaturelib:JFeatureLib:jar:1.6.1 ...
0
1,208
Can I update the value of a WPF binding from the C# code behind?
<p>I’m learning C# and building a UI that reads and writes integers to an XML config file. The UI uses a variety of custom user controls. I have a 3 radiobutton user control that binds to a single int variable (control returns 0,1,2). The control uses an event to trigger the update. It looks at the 3 isChecked properti...
0
2,713
How to run Tensorflow GPU in Pycharm?
<p>I want to run Tensorflow GPU in Pycharm on Linux Mint. </p> <p>I tried some guides like these</p> <p><a href="https://medium.com/@p.venkata.kishore/install-anaconda-tenserflow-gpu-keras-and-pycharm-on-windows-10-6bfb39630e4e" rel="nofollow noreferrer">https://medium.com/@p.venkata.kishore/install-anaconda-tenserfl...
0
1,532
Using video.js to play video inline on ios?
<p>I am trying to use video.js to maintain a consistent video skin across all platforms. The below code works for everything (chrome, firefox, ie, android) but safari on ios (haven't tested desktop version of safari). When attempting to play the video ios kicks over to it's default video player (quicktime?). This is a ...
0
1,082
All 3 ways of moving to new page on click of button in the ionic navbar dont work
<p>Ideally, all 3 methods ought to work. This codepen below shows all 3 methods well. </p> <p><strong><a href="http://codepen.io/gregorypratt/pen/oJcHx" rel="nofollow">Correct and working CodePen Demo app</a></strong></p> <p>Currently, neither of the 3 methods work; the navbar just dissappears upon clicking the butt...
0
1,282
Redirect URI using the Javascript SDK after authentication
<p>So I've set up a basic login/authentication flow on the home page of my site. After the authentication dialog, I want to redirect them to another page on my site. I've tried several variations of the existing code, changing the site url under basic settings in the developer app, trying different oauth flows, and sti...
0
1,217
No bean named 'cxf' is defined
<p>I am trying to setup a simple restful web application, using tomcat 6.0.32, cxf 2.4.1. Anytime I issue any call, I get back an exception "No bean named 'cxf' is defined", where cxf is my bus.</p> <p>Looking at the application log, I can see the cxf instance is created, and cached.</p> <p>================ APP LOG B...
0
1,768
MVC3 asp.net error: Value cannot be null. Parameter name: items on dropdownlist
<p>I am getting a dump ONLY in the server and not in my local system when trying to post the data. There is a page which submits some value to the database. I have also modeled the dropdown in the page as mandatory. However, when clicking on "Create", instead of giving an error like "Missing"; it throws a dump. </p> <...
0
3,893
Powershell logging from invoke-command
<p>I have a script that includes a function for logging. The function writes log to $msg variable then writes the message to the screen. i can redirect this output to a .txt file for logging.</p> <p>I need to run the script to multiple servers using invoke-command and write the log output to a txt file on the compute...
0
1,094
Java POS printer error
<p>I'm novice to Java, and I'm developing POS application using java. </p> <p>I bought an Epson POS printer for this project. Printer model is <code>EPSON TM-U220.</code></p> <p>I've installed <code>JavaPos</code> and, my code snippet as follows. but when running I get this error.</p> <p>Appreciate if anyone could h...
0
6,641
Build OSGi bundle include dependencies with maven-assembly-plugin
<p>I need to create an OSGi bundle include dependencies ,I'm using maven-assembly-plugin ,and this is my pom.xml</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/x...
0
2,244
jquery .show() and .hide() not working in safari - adding spinner to <a href
<p>I have some very basic code that acts as a loading gif for a webpage:</p> <p>The loading and content containers sit in my base template. The </p> <hr> <pre><code>//header &lt;a href="{{ url_for('welcome', id=id, profile=profile) }}" onclick="spinner();" class="home"&gt;Home&lt;/a&gt; //more html &lt;div id="lo...
0
1,884
How can I create a Maven build profile to conditionally copy files?
<p>I new to maven and I am trying to create pom.xml to build the war files for different environment using profiles</p> <p>So I created the build target</p> <pre><code>&lt;build&gt; &lt;finalName&gt;myacct_okc&lt;/finalName&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;src/main/java&lt;/directory&gt; ...
0
1,361
Height doesn't properly work on IOS (iphone)
<p>I've created <a href="https://codepen.io/salman15/project/live/DWbWpo/" rel="noreferrer">this</a> website on codepen. While trying to make it responsive for all platforms I ran into a problem. It appears a single div covers the whole page (only on IOS) and not all heights are working properly (meaning nothing fits)....
0
8,667
string in namespace std does not name a type
<p>This may just be a simple mistake that I'm not seeing, but I think I'm simply doing something wrong. Don't worry I'm not using namespace std in my header functions or anything which seemed to be this person's issue [Question I read similar to mine][1] [1]: <a href="https://stackoverflow.com/questions/5527665/weir...
0
1,344
CSS 3 Level Dropdown Menu
<p>so I've having problems with a 3-layer css dropdown menu. Levels 1 and 2 work just fine, but three is not showing up properly, I would like level three to branch to the right. Level three is the Anti-Matter and Deuterium tabs that should come from the "Fuel" link.</p> <p>I have a jsfiddle with my problem. For those...
0
3,026
Cross domain access permission denied in iframe
<p>I am trying to embed OWA (Microsoft Exchange Server 2010) in a web page within an <code>iframe</code> but I get a JavaScript error on the OWA page saying Access Denied and then none of the controls within the OWA window work.</p> <p>I have to use OWA in web page, I read in the form that cross domain does not work p...
0
1,099
C# - TextBox TextChanged event not firing
<p>I'm currently working on a project at work and for some reason the textchanged event of my textbox isn't firing. I've tried to put a breakpoint in my code but he doesn't get there so he the event isn't firing imo.</p> <pre><code>&lt;FooterTemplate&gt; &lt;asp:TextBox ID="TextBoxSiteAlias" runat="ser...
0
1,697
WPF ComboBox Binding not updating properly
<p><img src="https://i.stack.imgur.com/cYf8X.png" alt="enter image description here"></p> <p>I have an updating issue with Binding in my ComboBox. I have created a simplified example illustrate this problem. I will paste all the related code below.</p> <p>So in the image above, I have a TextBlock (in black) that sh...
0
2,131
Saving EditText content in RecyclerView
<p>I have list item with <code>EditText</code> in it, I don't know how many items there will be. I have a problem when I enter some text in <code>EditText</code>, and then scroll down a <code>RecyclerView</code>, after I've scroll up again there is no text in my first <code>EditText</code>.</p> <p>I am wondering what,...
0
1,462
how to load drl file from file system in drools 6.3.0
<p>Hi I am trying to load drl file from file system in drools 6.3.0. I got the code from drools project. Code that is used to load drl file is as follows.</p> <pre><code>package org.drools.examples.banking; import org.kie.internal.KnowledgeBase; import org.kie.internal.KnowledgeBaseFactory; import org.kie.internal.bu...
0
1,265
UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0)
<p>In the code below when I try to execute <code>Main.java</code> I am getting exception:</p> <pre><code>Exception in thread "main" org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.np.vta.test.pojo.Users at org.hibernate.internal.SessionFactoryImpl.locateEntityPersister(SessionFactoryImpl....
0
1,919
Setting the Viewport to Scale to Fit Both Width and Height
<p>I'm working on a website that fits within a specific width and height (an 885x610 div with a 1px border and 3px top margin). I would like the user to never have to scroll or zoom in order to see the entire div; it should always be fully visible. Since devices have a wide variety of resolutions and aspect ratios, the...
0
1,687
OpenGL Alpha Blending Issue, Blending ignored (maybe)?
<p>EDIT + BETTER SOLUTION:</p> <p>In case anyone happens to run into the problem I was running into, there are two solutions. One is the solution accepted, but that only applies if you are doing things how I <em>was</em>. Let me explain what I was doing:</p> <p>1.) Render star background to screen</p> <p>2.) Render ...
0
1,131
C++: Mean Median and Mode
<p>I've recently created a C++ program to find the mean median and mode of an array of values. I realize this would be much better to do within a class. However, my function to generate the mean is not spitting out the right number, although I'm pretty certain the logic is fine. </p> <p>Also, I was able to modify a sn...
0
1,528
Yii framework failed to open stream
<p>I am using Yii framework and I want to create user registration page. Everything seems to work fine but when i want to upload user image, I get an error message:</p> <pre><code>include(Self.php) [&lt;a href='function.include'&gt;function.include&lt;/a&gt;]: failed to open stream: No such file or directory </code></...
0
1,381
How to use BULK INSERT when rows depend on foreign keys values?
<p>My question is related to <a href="https://serverfault.com/questions/337600/any-known-sql-server-2008-management-studio-memory-leak-issues">this one I asked on ServerFault</a>.</p> <p>Based on this, I've considered the use of <a href="http://msdn.microsoft.com/en-us/library/ms188365.aspx" rel="nofollow noreferrer">...
0
1,463
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'property'
<p>I'm attempting to query <code>Version</code> where I wish to get objects back where their <code>max_version_number</code> attribute equals the <code>version_number</code>:</p> <pre><code>latest_versions = \ dbSession.query(Version).filter(Version.max_version_number == Version.number_version) </code></pre> <p>T...
0
1,437
C++: reading memory of another process
<p>I'd like to have a function that allows me to read the memory of another process. I was thinking about something like this (pseudo code):</p> <pre><code>staticAddress = 0x026E0DC4 processId = GetProcessIdByName(processName) processHandle = GetProcessHandle(processId) processBaseAddress = GetBaseAddress(processHandl...
0
1,445
Flutter - How to pass user data to all views
<p>I'm new to the flutter world and mobile app development and struggling with how I should pass user data throughout my app.</p> <p>I've tried several things, but none seem great and I'm sure there are best practice patterns I should be following.</p> <p>Because it makes examples easier, I'm using firebase for authent...
0
1,312
No podspec found for `React-Core` in `../node_modules/react-native/React`
<p>I'm using React Native. I get this issue when I try to upload pods. I've successfully installed node_modules, but I'm getting this problem. What is the problem? If we delete the package-lock.json and node_modules folder, I reinstalled npm. But I'm having this problem when I'm doing pod install.</p> <pre><code>platf...
0
1,299
Add Separator In Collapsed Nav Bootstrap
<p>I am trying to add a separator in the collapsed nav when viewed on mobile. Ideally the nav would look exactly the same as it does not when not collapsed, but when collapsed would have a separator between "About" and "Log In".</p> <p>Here is the code for the nav:</p> <pre><code>&lt;nav class="navbar navbar-default"...
0
1,543
Equal height children of flex items
<p>I'm having a problem creating a flexbox responsive grid and was hoping that someone can point me to the right direction.</p> <p>I want all the <code>.block</code> div's to be equal height, and the <code>.bottom</code> div absolutely positioned to the bottom. This is actually working in the current solution, but <st...
0
4,665
PostgreSQL: FATAL - Peer authentication failed for user (PG::ConnectionBad)
<p>I am working with PostgreSQL and I have a user with password matching the one specified in database.yml</p> <pre><code>postgres=# select * from pg_user ; usename | usesysid | usecreatedb | usesuper | usecatupd | userepl | passwd | valuntil | useconfig ------------+----------+-------------+----------+--------...
0
1,325
ReactJS + Axios "Uncaught (in promise) Error: Network Error" | "Uncaught TypeError: response.data is undefined"
<p>newbie here :)</p> <p>I am trying to learn about JWT Authentication following a tutorial with Django back end and React. <a href="https://hackernoon.com/110percent-complete-jwt-authentication-with-django-and-react-2020-iejq34ta" rel="nofollow noreferrer">https://hackernoon.com/110percent-complete-jwt-authentication-...
0
2,116
MultiThreading with a python loop
<p>I an trying to run this Python code on several threads of my processor, but I can't find how to allocate multiple threads. I am using <strong>python 2.7</strong> in Jupyter (formerly IPython). The initial code is below (all this part works perfectly). It is a web parser which takes <code>x</code> i.e., a url among m...
0
1,118
Gradient descent algorithm won't converge
<p>I'm trying to write out a bit of code for the gradient descent algorithm explained in the Stanford Machine Learning lecture (<a href="http://www.youtube.com/watch?v=5u4G23_OohI#t=25m" rel="nofollow noreferrer">lecture 2 at around 25:00</a>). Below is the implementation I used at first, and I think it's properly copi...
0
1,124
AngularJS Changing <body> class using global variable
<p>I just created a angularJS application.</p> <p>Here is my <strong>index.html</strong></p> <pre><code>&lt;html ng-app="MyApp"&gt; &lt;head&gt; &lt;!-- CSS files import --&gt; &lt;/head&gt; &lt;body class="{{bodylayout}}"&gt; &lt;div ng-view&gt;&lt;/div&gt; &lt;/body&gt; &lt;--! JS imports aung...
0
1,032
How to fix a "java.io.IOException: unexpected end of stream on Connection" exception in HTTPClient on .NetStandard
<p>I have been scratching my head with this one for a while. I'm building an Android app in Xamarin and I have a login POST request that mostly works, but will occasionally recieve this error. I notify the user and tell them to try again but I am still getting the error far too often and want to fix it so the app provi...
0
1,093
Convert Java to .app file for MacOSX using JarBundler
<p>All I'm trying to do is convert a simple java program into a macOSX .app file so I can distribute it as a simple executable file.</p> <p>I've read all over the place and everyone says the same things:</p> <ol> <li>Use Xcode - As far as I can tell, Xcode no longer supports Java Builds</li> <li><p>Use Jar Bundler - ...
0
1,445
bootstrap - full background image with nav bar over the top
<p>I am trying to create a full background image page with a nav bar that floats on top the image.</p> <p>I am getting a problem in that the navbar pushes the image down, the image is set on the background of the html element so I dont know why the navbar is having this effect.</p> <p>I am just using the css straight...
0
1,789
Child elements of scrollviewer preventing scrolling with mouse wheel?
<p>I'm having a problem getting mouse wheel scrolling to work in the following XAML, which I have simplified for clarity:</p> <pre><code>&lt;ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" CanContentScroll="False" &gt; &lt;Grid MouseDown="Editor_MouseDown" MouseUp...
0
1,476
How can I read GPS data under Linux?
<p>I used win7 before to read the GPS data from the com port. From now on I would like to read the data under Ubuntu but the same code is not working. Here is my code:</p> <pre><code>import serial, sys, time, threading from datetime import datetime, timedelta class MeasureModule(): def __init__(self, port, ba...
0
1,120