title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to read hidden form data in Flask function
<p>I am working on an assignment for a Flask application with a function that does different things based on the value of a hidden field in a form on the index.html page. I am to have only two routes: '/' (index.html) and '/process' (which performs actions on index.html).</p> <p>When I run this in Flask (python server...
1
1,156
Required a bean of type Repository that could not be found
<p>I am setting up a new Spring project for some fun learning/tutorial at home and I seem to run into a fairly common issue but I have tried all possible solutions I found on here but with no luck. Basically what I have is as follows:</p> <p>Controller class:</p> <pre><code>@RestController @RequestMapping(value = &quot...
1
1,672
Ansible Unable to set password for GRUB bootloader in Redhat
<p>As Salam-o-Alikum, I have written an Ansible playbook for setting GRUB bootloader password on RedHat and Ubuntu, there are no error and i can see changes in <strong><em>Grub2.cfg</em></strong> on both locations. It's weird that when i reboot my both machines, Ubuntu machine asks for username and password but Redha...
1
1,713
Does anyone have this issue? "To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method"
<p>I run into a following message while implementing react application. Does anyone have same issue like this? </p> <p>Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in ...
1
2,466
Unable to unpack comp 3 to numeric in java
<p>I referred a code on the internet to unpack comp 3 to numeric in java. I tried to pass a sample comp3 file to the code but I didn't get the proper unpacked data. I got some weird numbers. I am new to this concept(comp 3) so can you guys help me on this. Thanks in advance</p> <p><strong>Below is my code</strong></p>...
1
1,028
mkstemp() and fdopen() in Cygwin 1.7.28
<p>In the course of building some C++-based code under Cygwin (1.7.28-2, 64-bit) with GNU GCC 4.8.2, I ran into the following errors:</p> <pre><code>... SortDetails.cpp: In function ‘FILE* create_tmpfile(const char*, char**)’: SortDetails.cpp:127:20: error: ‘mkstemp’ was not declared in this scope fd = mkstemp(tmp...
1
2,199
Using tax_query creates a 0 = 1 in $wp_query->request
<p>This is my first attempt at modifying the main query using the <code>pre_get_posts</code> action/filter</p> <p>This is the function currently hooked to it:</p> <pre><code>function advanced_product_search_filter($query) { if(!is_admin() &amp;&amp; is_main_query() &amp;&amp; is_search() &amp;&amp; $quer...
1
1,402
Zend Framework 2 + Doctrine ODM, "The Class was not found in the chain configured namespaces" error?
<p>When setting up ZF2 + ODM, I'm getting the following error:</p> <pre><code>The class 'Application\Document\User' was not found in the chain configured namespaces </code></pre> <p>The current setup is as the following:</p> <p>ZF2 stable, installed doctrine ODM via composer.phar with content of composer.json</p> ...
1
1,333
Gets 401 error while user tries to do Fetch Get request after authentication
<p>I'm trying to get user details after user looged in but user is getting 401 error even user is looged in with 200 ok.</p> <ul> <li>Explanation of process:</li> <li>i have logged in user using fetch post request.</li> <li>stored username,role,staffid to async storage</li> <li>now i want to list all user (with <code>/...
1
1,587
Sending a Response to an ActiveMQ Temporary Queue using only the ReplyTo Name
<p>Lately, I've been trying to get the Reply-To pattern to work in Apache NMS /ActiveMQ and have been having problems sending messages to temporary queues using only the name of the temporary queue.</p> <p>The project is dispatcher service which retrieves requests from the bus and sends them to another process/runtime...
1
3,266
How to handle label size and location in the GUI form using PowerShell?
<p>I create a simple GUI. I want to execute the GUI in any resolution screen. In my work screen, it show picture 1. Once I execute it in other screen, the size label, position is different, showed in the picture 2. Anyone can help me please how to handle this? Thank you so much.</p> <p>Picture 1 <a href="https://i.stac...
1
2,962
CakePHP - Multiple forms with different actions on the same page
<p>My homepage has 2 different forms on it one for registering the user and one for the login. Both forms point to the same model but to different actions. The problem is that if you submit either form it will set off the action on the other form as well, so if I'm trying to login it will set off the registration actio...
1
3,669
iPad Doesn't Render H.264 Video with HTML5
<p>I have some H.264-encoded videos which render in HTML5 correctly in the web browser, but do not render correctly on the iPad. When I use a H.264 video I downloaded off the internet, my video renders correctly on the iPad, so it is not an HTML problem.</p> <p>Here is the ffmpeg info about my videos --</p> <p>My or...
1
1,251
Ajax POST and Stringify Confusion
<p>I am learning about POST with Ajax and I've noticed a lot of examples using stringify on static arrays.</p> <p>In my example I am building array via jQuery objects extracted from <code>&lt;input&gt;</code> values.</p> <h2>Jquery</h2> <pre><code> function PostEdit(vData){ var content = JSON.stringify(vD...
1
1,034
Qt QSerialPort Read Write
<p>I have issue with reading and writing from/to QSerialPort. I read what I have written. Here is some example code that proves that. Maybe I need to write and read from different channels. Code's provided below thx in advance. Provided log of the program with image. </p> <p>Log of the program here</p> <p><img src="h...
1
1,126
Logic App bypass Null in filter query
<p>I am building a Logic App that uses the Azure Resource connector to obtain a list of my resources. I would then like to filter the results to <code>Microsoft.Compute</code> resources that have a tag name and value of <code>stop</code> and <code>normal</code>.</p> <p>Here is a snippet of resource that I receive back...
1
1,136
Calling Asp.net MVC 5 controller using Angular 2 Http
<p>I'm new to angular 2 and trying to call MVC controller from Angular on button click but whenever I click on button my page refreshes . Please help .Thanks In advance</p> <p>My LoginComponent code </p> <pre><code>import { Component, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators, FormBui...
1
2,178
Can I pool imputed random effect model estimates using the mi package?
<p>It appears that the <code>mi</code> package has had a pretty big rewrite at some point within the past couple of years. </p> <p>The "old" way of doing things is well-outlined in the following tutorial: <a href="http://thomasleeper.com/Rcourse/Tutorials/mi.html" rel="nofollow">http://thomasleeper.com/Rcourse/Tutoria...
1
3,366
Starting vue js dev server gives eror: .plugins[0] may only be a two-tuple or three-tuple
<p>I am using Vue CLI version 3 to run a Vue application inside a Docker container. To start the development server, I run:</p> <pre><code>https://cli.vuejs.org/guide/cli-service.html </code></pre> <p>This gives the following error:</p> <pre><code> ERROR Failed to compile with 1 errors ...
1
1,107
Zend - Couldnt load Zend/Application.php (failed to open stream)?
<p>I have a structure as below (I'm using Zend 1.9.6): <br /></p> <p><a href="http://farm3.static.flickr.com/2605/4112306785_fc80d39833_o.gif" rel="nofollow">http://farm3.static.flickr.com/2605/4112306785_fc80d39833_o.gif</a> <br/>(I'm really sorry. I'm not enough reputation.)</p> <p>When I run program, I get an erro...
1
1,051
Java, convert string to a RSA publicKey
<p>i am trying ton convert a string representation of a public key into a publicKey java object use to encrypt data but i keep getting the following error below:</p> <pre><code> java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: Detect premature EOF at sun.security.rsa.RS...
1
1,862
ManagedObjectModel subclass doesn't work in Swift
<p>To summarize what I've done:</p> <ol> <li><p>Created a project named 2048.</p></li> <li><p>Created a subclass of NSManagedObject</p> <pre><code>class BestScore: NSManagedObject { @NSManaged var bestScoreModel: BestScoreModel func update(score: Int) { self.bestScoreModel!.score = score } } </cod...
1
1,250
Adding specific data for each section in UITableView - Swift
<p>I have a Table view with data compiled from a Dictionary array where the keys are the section headers:</p> <pre><code>var data: Dictionary&lt;String,[String]&gt; = [ "Breakfast": ["Oatmeal","Orange Juice"], "lunch": ["Steak","Mashed Potatoes","Mixed Veg"], "Dinner": ["Chicken","Rice"], "Snack": ["Nu...
1
1,028
PHP and Java hmac hash output matches in hex, doesn't match in raw binary. What's happening?
<p>I'm developing a game in Java that will be packaged as an applet, and I'm working on the networking aspect. I've designed a session flow that will work for the frequency of requests and the security needs, without requiring the use of SSL. The data transmission process is loosely based off of the way facebook signs ...
1
1,289
Extremely slow website on IIS
<p>I'm trying to run a website locally, and it is very slow. Website uses DotNetNuke and IIS7. When I create a new blank website - it runs fast. This particular one is slow.</p> <p>What have I tried:</p> <ol> <li><a href="http://mkdot.net/blogs/lz/archive/2009/06/30/how-to-make-firefox-and-cassini-fall-in-love-again....
1
1,148
dplyr: want to add only 1 y column during a join, not all y columns
<p>I need to join a table with itself in order to realize inheritance of a value in one column, as follows: There are two types of rows, <code>base</code> and <code>dep</code> (for "dependent"). All rows have a <code>key</code>, but <code>dep</code> rows also have a <code>basekey</code> referring to a <code>base</code>...
1
1,650
Java TelnetClient hangs at “press any key to continue”
<p>I have a Java program that runs on Linux and telnets into a remote server using <code>org.apache.commons.net.telnet.TelnetClient</code> and performs a few commands. The problem is that it hangs intermittently when it gets to an output display that asks the users to “press any key to continue…” The program hangs on...
1
1,729
Highcharts column + line combination chart with multiple series. Issue aligning line over the column
<p>I have a multi-series column chart (3 in this case). I wanted to overlay a line over the columns across all series. So i created a 3 more Line series' with the same column series data. This works perfectly when there is only one column and line series. With more than one series, the line renders at the center of the...
1
1,138
Google Directions API Transit returns Zero_Results, Manually Searching Google Maps returns result
<p>I have searched the documentation in Google Directions API, and also looked around online and cannot find an answer to my conundrum. My agency has developed an API to find the latest possible departure between origins and destinations using transit, and there are a few which are returning "No_Result" errors. However...
1
1,206
Unable to run the Regression group in testng.xml file for different browsers
<p>I have configured the testng.xml file to run the Regression group in different browsers.Below is the testng.xml code for the same. </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt; &lt;suite name="SeleniumSuite" verbose ="1" thread-count ...
1
1,074
Mapping user roles to oauth2 scopes/authorities
<p>We have a entitlements database which has application id, roles and users mapped to roles per application. Following the <a href="https://stackoverflow.com/questions/22417780/using-scopes-as-roles-in-spring-security-oauth2-provider">advice on thread</a> how do I map user roles to oauth2 scopes/authorities based on ...
1
4,230
Looking for fast image distortion algorithms
<p>I am trying to implement an application which uses shpere distortion filter. I am using an the algorithm from <a href="http://www.codeproject.com/KB/GDI-plus/displacementfilters.aspx" rel="nofollow">here</a> which changes pixels location by getPixel() and setpixel() methods. My problem is it is too slow for Android ...
1
1,482
How to split dataframe column in PySpark
<p>I have a .csv dataset containing Amazon book reviews. I looks like this:</p> <pre><code>B000F83SZQ|[0, 0]|5.0|I enjoy vintage books and movies so I enjoyed reading this book. The plot was unusual. Don't think killing someone in self-defense but leaving the scene and the body without notifying the police or hittin...
1
8,602
How to destroy fragment on Back press
<p>I have 2 fragments A and B. First opens A fragment, there is button. <code>onButtonClick</code> it goes to fragment B. In fragment B the user selects some languages, or something else and <code>onButtonClick</code> comes to fragment A. So when it comes to Fragment A and i click back on phone, it goes back again on F...
1
2,838
How to write Javascript coding in C# code behind?
<p>i am creating textboxes dynamically so how to call below javascript function for textbox 'onchange' event?</p> <pre><code>&lt;script type="text/javascript"&gt; debugger; function myFunction() { var btn = document.getElementById('&lt;%= temp.ClientID%&gt;').value; var btntemp = document.getEl...
1
1,093
How to get Id update panel that initial a request in javascript
<p>I want to know Id update panel that initial a request in JavaScript .I write this script but it return <code>undefined</code>.</p> <pre><code>var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest); function InitializeRequest(sender, ar...
1
1,185
python kubernetes API error when trying to mount volume
<p>I am using python with python-kubernetes with a minikube running locally, e.g there are no cloud issues. </p> <p>I am trying to create a job and provide it with data to run on. I would like to provide it with a mount of a directory with my local machine data. </p> <p>I am using <a href="https://github.com/kubernet...
1
2,221
Redis "--protected-mode no" not persistent data on disk
<p>I have install redis on redhat server. When i run redis server with below command</p> <pre><code>$ ./redis-server --protected-mode no </code></pre> <p>and then when i restart my redis-server all data which store in redis is deleted. but when i run normal redis server command to start then its working fine.</p> <p...
1
2,677
Vagrant stuck connection timeout retrying (Server refused our key)
<p>My vagrant was working perfectly fine last night. I've just turned the PC on, hit vagrant up, and this is what I get:</p> <pre><code>vagrant up Bringing machine 'machine1' up with 'virtualbox' provider... ==&gt; machine1: Chec...
1
1,995
Emulate the bootstrap side popover without javascript
<p>I have a site that supports only modern browsers.</p> <p>I like the bootstrap popover aesthetic but really dislike how it relies on a jquery widget and javascript to position the arrow. I understand why it used to be necessary but it really shouldn't be anymore.</p> <p>I'm trying to see if I can get something that...
1
1,178
Why is Union() not excluding duplicates like it should?
<p><b>EDIT:</b> Why is Union() not excluding duplicates like it should?</p> <p>I should have read the documentation before asking the original question. I didn't because everytime I used Union() was on lists of objects that didn't override Equals() and GetHashCode(), so even if the value of the fields of each of my ob...
1
2,035
Mockito fails to verify multiple invocations of methods from org.slf4j.Logger
<p><strong>I have a method that contains 2 conditions. In each condition the Logger.error method is invoked. The first test, that verifies the invocation of that method, succeeds, but any other test fails with</strong> </p> <blockquote> <p>Wanted but not invoked...Actually, there were zero interactions with this m...
1
1,874
DataSource not injected to @Resource annotated field with alwaysUseJndiLookup setting
<p>I've just read about <code>@Resource</code> annotation from this article (<a href="http://www.infoq.com/articles/spring-2.5-part-1" rel="nofollow">http://www.infoq.com/articles/spring-2.5-part-1</a>) and wish to use it on Tomcat 6.0.26 and Spring 3.0.3</p> <p>But it does not work -- field <code>ds</code> in <code>U...
1
1,437
How do I use data from Vue.js child component within parent component?
<p>I have a form component where I use a child component. I want to use data from the child component within the parent.</p> <p>My component in html:</p> <pre><code>&lt;candidates-form endpoint='/candidates/create' buttontext='Add Candidate'&gt;&lt;/candidates-form&gt; </code></pre> <p>Then here is the Vue instance:...
1
1,286
How to remove duplicates from array - javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/9673/remove-duplicates-from-array">Remove duplicates from array</a> </p> </blockquote> <p>Could you please help me out. I have this piece of code..</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;...
1
1,145
bad Disparity map using opencv StereoBM
<p>I am trying to use StereoBM to get disparity map of two images. I tried some sample code and images. They are working fine. However, when I try my own images, I got very bad map, very noisy.</p> <p><a href="https://i.stack.imgur.com/H2SZd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/H2SZd.jpg" alt="ent...
1
1,759
How to parallel run independent loops on Tensorflow in GPU
<p>I want to implement the algorithm to reconstruct Restricted Boltzmann Machines via simulation. The M is number of visible variables and N is number of hidden variables. In order to parallel run on GPU, I want to write it on tensorflow using python first.</p> <ol> <li><p>In my main function RBMIC(), I need to run M ...
1
2,179
Why does my FlywayMigrationStrategy call afterMigrate.sql twice?
<p>I work on a Spring-boot project and use Flyway for database migration. While working in dev-profile I want to fill the database with dummy data. In order to have the exact same initial data values I overrode the FlywayMigrationStrategy Bean so that it performs a flyway.clean() before the migration starts:</p> <pre>...
1
1,240
How can you connect OpenGrok to a SVN repository?
<p>I was able to install and use opengrok on WinXP using this blog entry</p> <p><a href="http://theflashesofinsight.wordpress.com/2009/05/11/install-opengrok-on-windows/" rel="nofollow noreferrer">http://theflashesofinsight.wordpress.com/2009/05/11/install-opengrok-on-windows/</a></p> <p>I now want to index a subvers...
1
1,576
I am trying to add up all the numbers in a file which contains numbers separated by space and are contained in multiple lines using MapReduce
<p>My output is coming wrong. The Input File is:</p> <p>1 2 3 4<br/> 5 4 3 2</p> <p>Output should be key: sum value: 24</p> <p>Output produced by MapReduce: key: sum value: 34</p> <p>I am using OpenJDK 7 in Ubuntu 14.04 to run the jar file whereas, the jar file was created in Eclipse Juna and the java ve...
1
1,741
Why are simple operations on pandas.DataFrames so slow compared to the same operations on numpy.ndarrays?
<p>Why are operations on <code>pandas.DataFrame</code>s so slow?! Look at the following examples. </p> <h3>Measurement:</h3> <ul> <li>Create a <code>numpy.ndarray</code> populated with random floating point numbers</li> <li>Create a <code>pandas.DataFrame</code> populated with the same numpy array</li> </ul> <p>The ...
1
1,165
java.lang.RuntimeException: error while reading /WEB-INF/components.xml
<p>I'm trying to deploy my Seam application on Jboss 5.1.0.GA but I'm getting a pretty strange error: </p> <p><strong>Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory</st...
1
7,075
Eclipse Error Loading WebappClassLoader
<p>I get this exception in the console when I start tomcat through eclipse. I dont understand what's wrong and can't find any way to fix it.</p> <pre><code>SEVERE: Error loading WebappClassLoader delegate: false repositories: ----------&gt; Parent Classloader: org.apache.catalina.loader.StandardClassLoader@63d6a00...
1
2,901
CSS - Align Content Below Fixed Navbar
<p>I'm trying to learn responsive <code>CSS</code> but having difficulty with some basic <code>css</code> design. I've created a fixed navbar as you may be able to see in the code below. But the problem i'm facing is that i'm not able to properly align content below it. The content is getting overlapped by the navbar. ...
1
4,262
JSF Bootsfaces style not reflecting in the pages
<p>I am creating webapplication, which i used bootfaces framework, for this i put <code>BootsFaces-OSP-dist-0.6.6.jar</code> file in <code>WEB-INF\lib</code> folder. while run my project the webpages displayed without any style. My project code is,</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit...
1
1,267
Spring boot oauth2: No userInfo endpoint - How to load the authentication (Principal) from the JWT access token directly in the client
<p>I am setting up an oauth 2.0 client application which will redirect the users to an external IDP (Authorization Server) to sign in. My app will undergo the regular oauth 2 Authorization code grant flow - 1)Redirect the users to sign in. 2)Obtain the access code first 3) Use the access code to obtain the token. Since...
1
2,018
UIAlertController and UIPopoverController in a Universal App?
<p>I am working on a universal app for the iPhone 6S / 6S Plus / and iPad form factors. Normally, presenting actionsheets / alertviews on an iPhone-only app is a simple manner. But my application crashes when I attempt to present these on an iPad, returning the following error:</p> <blockquote> <p>"Terminating app d...
1
1,295
XSL replace space with caret
<p>UPDATED CODE:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt; &lt;xsl:output method="xml" indent="no"/&gt; &lt;!-- overwritten by application with actual values --&gt; &lt;xsl:param name="calling" select="'SA...
1
1,965
How to connect localhost SOAP webservice to my android
<p><img src="https://i.stack.imgur.com/p3eD9.png" alt="My server image"></p> <p>I am working on <code>webservice</code> i don't have any ideas about webservices. I look same sample webservices (like live SOAP service) it work fine. I am to run the webservice in localhost <code>i dont know whether my URL,Namespace and ...
1
1,821
Proper JS currency format with commas and decimals
<p>I have looked through countless threads here and elsewhere for over 2 days and I cannot get this to work properly. </p> <p>I have a calculator working exactly the way I need it to, however, I can't seem to get one last thing complete. Comma separator by thousands with decimal. </p> <p>I have the decimal places, bu...
1
1,265
Deadlock on bulk inserts
<p>I have several clients running an external executable using a C++ DLL to do bulk inserts though OLEDB into the same SQL Server table. The table has no indices, just a check constraint and a default. After I upgraded from SQL Server 2005 to 2008, all of a sudden I'm seeing deadlocks. </p> <p>The deadlock XDL (anonym...
1
1,494
Problem getting the GNU linker (ld) to export a symbol
<p>I am using certain GNU tools, i.e. the GNU C++ Compiler (g++) and the GNU Linker (ld) to create a shared library (.so) file as well as a binary executable file.</p> <p>The binary executable file makes use of the <code>dlopen</code> function to dynamically load the shared library file at runtime. In addition to this...
1
1,828
How to fill an asp:DropDown client side?
<p>i have a web-page with two <code>&lt;asp:DropDown&gt;</code> controls:</p> <p><img src="https://i.stack.imgur.com/lJX0l.png" alt="enter image description here"></p> <p>When the user selects a <strong>Country</strong> i want to fill the list of states.</p> <hr> <h2>Attempt #1 - OnSelectedIndexChanged</h2> <p>The...
1
1,745
Android: How Intent-Filter works?
<p>I read another post: <a href="https://stackoverflow.com/questions/5515257/android-understanding-intent-filters">Android: Understanding Intent-Filters</a> but I still can't grasp what really Intent-filters do and how they work.</p> <p>For example:</p> <p>What is the difference between:</p> <pre><code> &lt;...
1
1,333
Canceling a custom drag function when mouse slides off div
<p>I have a draggable function in jquery to make it so I can drag and move elements on a div. Sometimes, when dragging the mouse comes off the div and I am not able to put back down the element.</p> <p>I'm trying to add a <code>keydown</code> event for the escape button or something so that when pressed, the same thing...
1
1,437
Map enum to a function/action using enum-specific method
<p>I'm working on an online booking site (airline) and I want to validate if the user/customer's chosen route is valid according to some settings. The existing codes uses a lot of enums and I found myself doing lots of if/if else/else to map a specific enum to a particular action that I wanted to happen. <code>What I w...
1
2,211
Cannot execute method for android:onClick
<p>I have this activity in my application wherein when a user clicks a button, it will execute <code>CameraUpdate</code> which is inside a method. Here's the code:</p> <p><strong>LocationsActivity.java</strong></p> <pre><code>public class TermLocActivity extends AppCompatActivity implements OnMapReadyCallback { ...
1
3,098
CS7036:There is no argument given that corresponds to the required formal parameter 'i'
<p>I am just learning C#, and I made two external classes with constructors, and one inherits from another one. But it is giving the Error: Severity Code Description Project File Line Suppression State Error CS7036 There is no argument given that corresponds to the required formal parameter 'i' of 'Engin...
1
1,579
Unable to use Let's Encrypt cert in Telegram bot webhook (Self-Signed cert works fine)
<p>I am trying to setup my <strong>Telegram bot webhook</strong> using a <strong>Let's Encrypt certificate</strong> but Telegram keeps saying <em>verification_failed</em>. Browsers, however, are totally fine with new Let's Encrypt certificate.</p> <p>My self-signed certificate is currently working fine in webhooks on ...
1
1,219
Write byte array to pdf file on click of view
<p>I am done with writing the file content to pdf file on click of view, But it's not opening automatically.Can any one help. Thanks in advance.And please correct me if anything wrong here.</p> <pre><code>@RequestMapping(value = { "/view" }, method = RequestMethod.GET) public static byte[] loadFile(@RequestPar...
1
1,181
Saving data into db using SqlAlchemy, object is not subscriptable
<p>I'm trying to insert some data into a database, unfortunately it fails and does not save, I suspect my data is structured in a bad way. The data gets printed nicely (1 title, link and date per object) in process_item before attempting to save "print(title, link, date)", however it fails to save it. Title, link and d...
1
1,082
How do I dynamically build a like clause in an executable sql stored procedure that uses EXEC sp_executesql?
<p>The following stored procedure works correctly execpt when I pass in the @NameSubstring parameter. I know I am not dynamically building the like clause properly. How can I build the like clause when this parameter also needs to be passed as a parameter in the EXEC sp_executesql call near the bottom of the procedure?...
1
2,206
Execute PHP from HTML form without redirecting to PHP
<p>I have a mail form on my HTML that calls a PHP. When I click Submit, It redirects to the PHP and shows various alerts about the form. </p> <p>I want it not to redirect to the PHP and show alerts on HTML. I tried to redirect back from PHP but in that case it didn't show any alerts.</p> <p>I couldn't manage to do ...
1
1,404
Scrolling to Bottom of UITableView When Messages Load
<p>I'm trying to figure out how to scroll to the bottom of the UITableView once the messages from the database load into it. I've tried using <code>tableView.setContentOffset(CGPointMake(0, CGFloat.max), animated: true)</code> but my table goes from having all the messages in it to nothing at all. I've also tried <...
1
1,244
Javamail sending mail with attachments works on Windows but not on Linux
<p>I'm having problems when sending emails with attachments through linux using Javamail on Tomcat 6.0 .</p> <p>When sending mails using Tomcat server on my machine (Windows 7 64), it works fine. I have tested it with both local smtp server and a gmail account as a relay. But when the mail is sent by my remote Tomcat ...
1
5,330
java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.clearCache()V
<p>I am getting this run-time error:</p> <pre><code>java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.clearCache()V </code></pre> <p>And part of stack trace:</p> <pre><code>Caused By: java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.clearCache()V ...
1
3,748
is it possible to get full path for user uploaded image through input type file
<pre><code> &lt;div id="image-preview"&gt; &lt;input type='file' data-ng-file-select onchange="scope.setFile(this)" id="imgInp"&gt; {{theFile.name}} &lt;img id="blah" src="{{imgeSrc}}" alt="Upload your picture" /&gt; &lt;/br&gt; &lt;/div&gt; </code></pre> <p><div class="snippet" data-lang=...
1
1,043
Unable to build default ASP.Net Core Web Application (.NET Core) on Visual Studio Team Services using Hosted Agent
<p>Having created a new ASP.Net Core Web Application (.Net Core) project in Visual Studio 2015 Update 3 and checked this in to a Visual Studio Team Services git repository. I am using the release version of .Net Core and ASP.Net Core. </p> <p>I am now trying to build this using the VSTS Build system using a build defi...
1
5,325
How validate form data read using JSON?
<p>I am workign creating a form wizard based on JSON data. I have created a form based on JSON feed and I got this working fine, next is how can i incorporate jquery validation.js into my code.</p> <p>I am using jquery.dfrom to generate a form based on JSON example here <a href="https://github.com/daffl/jquery.dform" ...
1
3,955
Sencha Touch 2 list/store
<p>I have a problem with an list-component on the sencha touch 2 framework. My problem is, that my list doesn't show the calculated distance between the current position and the places.<br> First I use an navigation view with a list (name + distance) when the user click the name more details about them appears (+ the b...
1
2,195
Output sorted python dict within django template
<p>I got a python dict, that looks like the following (Important informations were replaced with "xxx" due to privacy reasons). I would like to display this dict within a django template but it should be ordered, so it should start with "A", then continue with "B" instead of "H"</p> <p>This is my dict (shortened):</p>...
1
1,142
Error: More than one instance of overload function "findCircumference" matches the argument list
<p>I cannot figure out what to do? I get the error just like in the title: <code>Error: More than one instance of overload function "findCircumference" matches the argument list.</code></p> <p>I am using scopes and functions for this assignment. If I can just figure out this error I can continue to work on other proje...
1
1,354
Why is Python so slow at numeric calculations?
<p>Consider the following code which is a solution to the "circle stabbing problem" of computational geometry, namely finding the line that intersects a maximal number of non-intersecting circles. </p> <p>The main question here is why the Python code is 42x slower than the C++ code. Is it because some improper use of ...
1
6,825
packaging spring boot application with oracle as database
<p>i am trying to package my spring boot application so that i can deploy it on tomcat server. after watching a youtube video i extended SpringBootServletInitializer class and made some changes. </p> <pre><code> @ComponentScan("com.infodev.loksewa") @SpringBootApplication public class LoksewaApplication exten...
1
1,992
Kubernetes Ingress path based routing not working as expected
<p>I installed <a href="https://github.com/nginxinc/kubernetes-ingress" rel="nofollow noreferrer">NGINX Ingress</a> in kubernetes cluster. When i am trying to access the micro service end via Ingress Controller its not working as expected</p> <p>I have deployed two spring boot application</p> <p><strong>Ingress Rule...
1
1,708
org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process"
<p>I am trying to follow the direction to setup the Virgo sample project greenpages ( <a href="http://www.eclipse.org/virgo/documentation/greenpages-documentation-2.4.0.RELEASE/docs/html/ch02s03.html" rel="nofollow">http://www.eclipse.org/virgo/documentation/greenpages-documentation-2.4.0.RELEASE/docs/html/ch02s03.html...
1
1,141
onLongClick show menu options
<p>Its my first time here, I'm looking the answer for this question for 2 days and nothing works. Here is, I want to show the MenuOptions (edit,delete) when users hold the selected item, long press. My code:</p> <pre><code>public class ProjetoProTelefoneActivity extends ListActivity { public final static String ID_EXT...
1
1,640
Unit testing asp.net MVC controller with constructor injection
<p>How do i setup my test project so that i can unit test my controllers, I'm not able to call my controller actions from test method as it requires dependent interface object. I don't want to implement any mock repository. I want to use my existing database repository and business logic available same as integration t...
1
1,036
How to do text full history in Django?
<p>I'd like to have the full history of a large text field edited by users, stored using Django.</p> <p>I've seen the projects:</p> <ul> <li><a href="http://code.google.com/p/fullhistory/" rel="nofollow noreferrer">Django Full History (Google Code)</a></li> <li><a href="http://code.google.com/p/django-modelhistory/" ...
1
1,107
Error Could not find or load main class
<p>I have a embedded jetty java application, which starts itself up and serving requests at the mentioned routes. While testing it is working good. Now that I want to deploy this java application via war file it is giving me issues.</p> <ol> <li><p>While running <code>java -jar server--1.0-SNAPSHOT.war</code> : It is ...
1
4,440
Redirecting my jsp form to success page
<p>i have a jsp registration form which on providing valid inputs and on successful validation should be directed to Success.jsp in WEB-INF/WebPages.Am passing this jsp to a servlet- service and DAO using a DTO and then the data will be inserted inside the database. But now after successful registration how to redirect...
1
1,728
How to test presenter on android (MVP)?
<p>I've never create unit testing before. I'm planning to create UI test &amp; Unit test for my presenter &amp; datasource. I use Retrofit, RxJava, and Dagger in my apps. </p> <p>Here's what i've tried so far</p> <p>DataSource (My Datasource is coming from API)</p> <pre><code>public class DataSource implements DataS...
1
2,326
Bootstrap tabbed pane displaying all tabs on load
<p>my code is displaying all tabs on load. If I remove "active" from the other tabs, they won't display the graphs in their respective panes. How is this fixable? I'm using bootstrap.</p> <pre><code>&lt;div class ="container col-sm-12 col-md-12 col-lg-12"&gt; &lt;div id="monitor" class="panel panel-default tab-box"&gt...
1
1,187
how to create permanent table in spark sql
<p>in my project, I'm transferring data from MongoDB to SparkSQL table for SQL-based queries. But Spark SQL let me to create temporary files. When I want to query something, execution time is very high, because data transferring and mapping operation takes too much time. </p> <p>So, can I reduce execution time? Can I ...
1
2,051
Add legend to chart with D3 V4 Angular-cli
<p>I am using D3 charting library to create charts with Angular-cli. D3 version is 4.2.2. I create a multi-line chart and here is I am trying to add legend to the chart. Following code is my code look like.</p> <pre><code>import {Directive, ElementRef, HostListener, Renderer} from '@angular/core'; import * as D3 from ...
1
2,546
Problem linking to boost_thread
<p>I'm trying to link with boost 1.47 on xubuntu with gcc4.6 and glibc 2.13. So far I can't compile the following simple program, main.cpp:</p> <pre><code>#include &lt;cstdlib&gt; #include &lt;boost/ref.hpp&gt; #include &lt;boost/thread.hpp&gt; int main() { size_t n_threads = boost::thread::hardware_concurrency();...
1
1,375
Error: java.lang.NumberFormatException
<p>I'm having difficulties fixing my code. The error message I receive is:</p> <p>Exception in thread "main" java.lang.NumberFormatException: For input string: "60 45 100 30 20" at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at Lab3.main(Lab...
1
1,163
Could not commit JPA transaction; nested exception is javax.persistence.RollbackException when merging entity
<p>I'm new to spring. recently I've been trying to use spring JPA and hibernate to connect to database and insert data.</p> <p>I could insert entity into database, but I cant remove them.</p> <p>I created a main DAO which is abstract and all my DAO's have to extend it and add new methods if needed, separately.</p> <...
1
6,852
Flatten nested JSON array with JQ
<p>I have a JSON in the following format:</p> <pre><code>{ "@version": "2.7.0", "site": { "@name": "http://api:9999", "@ssl": "false", "alerts": [ { "pluginid": "10094", "desc": "&lt;p&gt;Base64 encoded data was disclosed by the application/web server&lt;\/p&gt;", "instanc...
1
1,246
How to update the GridView after checking some checkbox inside the GridView Fields?
<p>I am developing an intranet web application using ASP.NET. Now, I need to develop a training record for my department. The department consists of the four groups. For that, I developed this record as following: I used a Repeator and inside it I put GridView since I have three different types of training courses. And...
1
4,348