title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
LexisNexis SUDS SOAP Request | <p>I am also having SOAP problems. I am trying to implement an interface using python with SUDS. </p>
<p>I am trying to create an application that authenticates and searches LexisNexis in python. So if anyone knows if that has been implemented already that would also be great. I have searched around quite a deal, and ... | 2 | 1,257 |
Android Fragments drag or move to left to right or right to left | <p>My requirement is need to adjust or move left to right or right to left fragment. My main layout contain two fragment. I need to drag & resize the fragment width like android setting screen / message (on tablet) divider moving right to left or left to right.</p>
<p>My application consider only tablet only. &... | 2 | 2,520 |
Android - Push notification blank when not on top of the bar | <p>I'm having a small issue with android push notifications</p>
<p>If there are 3 Notifications and only one of these displays the title and the message. The one which is on the top of the bar. If anyone has any idea what might be the issue please let me know</p>
<p>Refer image on this link, this is how i am able to ... | 2 | 1,760 |
How to refresh the tkinter table in specific interval(for updation)? | <p>Spec:</p>
<p>Python3,
Postgresql,
psycopg2,
tkinnter</p>
<p>Thanks in advance</p>
<pre><code>class MultiColumnListbox(object):
"""use a ttk.TreeView as a multicolumn ListBox"""
def __init__(self):
self.tree = None
self._setup_widgets()
self._build_tree()
def _setup_widgets(self):
s = """WOW CALL... | 2 | 1,280 |
JavaScript runtime error: cannot call methods on jtable prior to initialization; attempted to call method 'load' | <p>i am using jtable when i search records a i am getting this error
JavaScript runtime error: cannot call methods on jtable prior to initialization; attempted to call method 'load' i am getting this error only in IE 9</p>
<pre><code> var Visits = new Array();
var Procedures = new Array();
... | 2 | 1,251 |
How do I use Signed URLs to upload to Google Storage bucket in Python? | <p>I am able to create signed URLs and just need to know what to do with them after they are created.</p>
<p>There are several examples using Javascript to upload via a signed URL, but I cannot find any in Python. I am trying to use signed URLs as a workaround for the 32 MB limit imposed by Google App Engine for my Fla... | 2 | 2,596 |
Xamarin.iOS Crashs Without Any Exception | <p>I'm using xamarin.iso indie version and xamarin studio to develop a small application.
At begining, everything gos well, but after I add the search function which involves the UISearchDisplayController and UISearchDisplayDelegate, then I always get the application crash.
everytime, if I search for the firs time, the... | 2 | 9,996 |
How to change mapreduce temporary working directory /tmp to other folder | <p>I am using hive and I want to change the mapreduce temporary working directory from /tmp to some other directory. I tried everything which could I find on internet but nothing is working. I can see by du -h command that /tmp is filling up during the mapreduce task. Please somebody help me to change the directory.</p... | 2 | 5,605 |
Calling bringSubviewToFront gives error | <p>I have been working three days straight to try and integrate ads into my iPhone game. I chose mobfox and it's been going well except a minor detail that is directly linked to my less than appropriate level of Objective-C skills.</p>
<p>I have everything working except that the ads get's obscured by a UI element. So... | 2 | 1,136 |
There are not enough rules to produce a node with desired properties | <p>I would like to use calcite volcano planner to optimise a query. It doesn't work and return me the exception:</p>
<p><strong>There are not enough rules to produce a node with desired properties: convention=NONE, sort=[]. All the inputs have relevant nodes, however the cost is still infinite.
Root: rel#18:RelSubset#4... | 2 | 1,428 |
Laravel 5.4 translations with constant values | <p>I'm facing a problem with translations. I'm pretty new with them, as I never tried to add translations into a project. I've this model for notifications in Laravel 5.4:</p>
<pre><code>// /App/Notification.php
class Notification extends Model
{
const NO_STATUS = 0;
const SENT = 100;
const ACCEPTED ... | 2 | 1,112 |
AJAX call by anchor ID | <p>I'm building a Codeigniter app that utilizes AJAX with jQuery. In one of my views, I have:</p>
<p><strong>views/users/index.php</strong></p>
<pre><code><?php echo anchor('users/edit', 'Edit Profile', array(
'class' => 'user-link',
'id' => 'edit'
));?>
<?php echo anchor('users/private_mess... | 2 | 1,334 |
jQuery get count of Overflow hidden elements | <p>I have a ul with many li in it and have given a height to the ul with overflow hidden, now I need to find either the number elements which have not gone overflown or which have overflown. I tried using length() function, but it returns all li count</p>
<pre><code><ul id="am-container" class="am-container thumbs ... | 2 | 1,041 |
How to make diagonal div | <p>I'm trying to make diagonal div, so i could create this shape:
<a href="https://i.stack.imgur.com/k4qaP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k4qaP.png" alt="How to make diagonal div "></a>
I use bootstrap grid, and I already made three div containers for the shape.</p>
<p>It will be m... | 2 | 1,080 |
Grails setup problems | <p>So i have tried to find this answer but everything seems different from the problem that I am having. I am trying to set grails up so that I can alter an existing program. The problem is that I keep getting errors when ever I try and run the program, I would get NoClassDefFoundErrors and ClassNotFoundException. So I... | 2 | 1,302 |
Did I implement this minimax function correctly? | <p>It's for a game of checkers. See revision history for older versions of code.</p>
<pre><code> private static Move GetBestMove(Color color, Board board, int depth)
{
var bestMoves = new List<Move>();
var validMoves = board.GetValidMoves(color);
int highestScore = int.MinValue;
... | 2 | 1,147 |
MinGW exe cleaning | <p>What is the purpose of these strange strings that are automatically included inside my exe bytes?</p>
<p>I found these things at the strings section of my exe while opening it with an hexadecimal editor :</p>
<blockquote>
<p>libgcj-16.dll._Jv_RegisterClasses... @.Mingw runtime failure:..
VirtualQuery failed for %d b... | 2 | 3,250 |
How to Convert Applet to JFrame | <p>This is Our code for our game. we had it as an applet viewer before and we tried converting to jframe but it keeps giving us <code>ClassCastException</code> errors. Please help us convert from applet to jframe. Here's the code and tell us what to do?</p>
<pre><code>import java.awt.*;
import java.awt.event.*;
impor... | 2 | 1,606 |
Custom Observable List implementation, notifying consumers of changes | <p>I have created a custom ObservableList implementation for a list of TreeItems. My custom implementation can listen to various notifications from inside my app (using OSGi EventAdmin), and update itself accordingly. I then expect its consumer (a TreeView widget) to be updated with the changes to the list. However, I ... | 2 | 2,514 |
JSON data to place markers in Google Maps | <p>I am trying to place markers according to coordinates that are placed in JSON, but I think I'm not doing things quiet right. </p>
<pre><code> public class Stadiums
{
public int ID { get; set; }
public string Team { get; set; }
public decimal Latitude { get; set; }
public decimal Longitude { ge... | 2 | 1,497 |
Compiler errors using boost::asio/windows7/visual studio 2010 | <p>I'm struggling since several hours trying to compile a boost::asio program on my system (win7, vs2010, boost 1.49). Boost has been properly builed and linked to my vs project. I made a test run with boost::regex and everything worked ok.</p>
<p>The compiler complain about 2 headers (in6addr.h, ws2ipdef.h), about 90... | 2 | 1,948 |
Can not connect to weblogic server (application) via apache proxy module | <p>I deployed my application to WebLogic Server Version: 10.3.6.0 and enabled the SSl port:7002 on it. i can browse my application locally fine . then want to browse it via apache web server (version 2.2) using the weblogic proxy module. i set all the parameters required in httpd config file. also i create self singed ... | 2 | 1,831 |
savon HTTPI POST EOFError: end of file reached | <p>I tried to use the SOAP service using savon v2.0.3 and its throwing error which I am not able to debug.</p>
<p>I have the following code</p>
<pre><code>client = Savon.client(wsdl: $APP_CONFIG["billing_url"])
response = client.call({{method_name_in_symbolic_form}}, message: {:numbers => "50608289"})
</code></pre... | 2 | 1,400 |
PDF displayed as PHP page losing Signature Certificates | <p>I have a workflow that requires a PDF to be opened in a new window (not save as) that needs to be downloadable with all of the properties on it (including Signature Certificates).</p>
<p>If I host the PDF on the server, I can link to that and it does this juts fine. But my requirement is I can't save data to the se... | 2 | 16,065 |
Connect Qslider and MatplotlibWidget | <p>I am a real beginner in python and try to connect a qslider to a matplotlibwidget.
That means if I change the value of the slider the graph should change. It seems that the value changes correctly, while the graph stays the same. Can anyone tell me how to connect the change of the slider with the graph? Here is m... | 2 | 2,797 |
PHP - Reacting on a dynamic created "Delete-Button" | <p>Hope you´re doing well today. ;)</p>
<p>First of all, here is my problem:</p>
<p>Im loading data from my database table dynamic in a HTML-table. So far, so good.
The dynamic loading of the data in my HTML table works pretty well...</p>
<p>Now, I want to check if the delete button is pressed and also want the ID f... | 2 | 1,181 |
Why PLM creates massive objects and fails to open them | <p>I am working on a large (but not enormous) data base of 1.1mln observations x 41 variables. Data are arranged as an unbalanced panel. Using these variables I specified three different models and I run each of them as a 1) fixed effects, 2) random effects and 3) pooled OLS regression.</p>
<p>The original .RData file... | 2 | 3,797 |
Bootstrap 4 navbar overlapping on mobile | <p>I am making a project at school and I am using Bootstrap 4 and I am pretty new to it.</p>
<p>I have my navbar brand as an image centered in the middle of the navbar. But when I switch over to a smaller screen some of the navbar items get moved down under the navbar. And that also creates a space between the carouse... | 2 | 2,292 |
Why do I get an "inherited platform declaration clash" error in a derived class? | <p>Having an interface (defined from a dependent SDK and cannot making change, the BaseDelegate is from the sdk as well) and a base class:</p>
<pre><code>interface ViewDelegate {
fun getDataType() : String
fun getItemViewType() : Int
fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
... | 2 | 1,195 |
Constraint layout center vertically if place | <p>I center my two Input layout vertically in my view using chaining. I also have an image view and a text view on top of this two Input layout. I would like to have this Input Layout center <strong>only</strong> if the view enough space. </p>
<p>Right now the Input layout are always center and the text go over the im... | 2 | 2,096 |
StreamCorruptedException with ObjectInputStream and ByteArrayInputStream | <p>I have a number of objects written to disk using ObjectOutputStream. During reading, I firstly retrieve the file as a ByteArray for some implementation reasons, I want to read the buffered array and decode the data from it. Here is a code snippet</p>
<pre><code>byte [] fileArray=org.apache.commons.io.IOUtils.toByte... | 2 | 1,358 |
Trying to make checkerboard | <p>I am trying to make a checkerboard given a template from a CS class I am taking. However, when I run it, nothing comes up on the screen. I am guessing I am missing some code to actually draw the squares onto the screen but I have tried a lot of things and still nothing.</p>
<pre><code> import java.applet.Applet;
... | 2 | 1,151 |
How to show hide the next div on button click in jquery? | <p>I have design a flight search listing page in HTML.
Now want to show/hide (slidUp/slideDown) the next div on button click.</p>
<p>Here my html markup:</p>
<p><a href="http://qubedns.co.in/codes/design/rnp/flight-listing-1.html" rel="nofollow">http://qubedns.co.in/codes/design/rnp/flight-listing-1.html</a></p>
<p>... | 2 | 12,907 |
Terragrunt for_each value, can't retrieve data in other resources | <p>I have an issue with my terragrunt/terraform code as below.
I don't know the right way to retrieve my both crawlers created by my <code>for_each</code> loop.</p>
<p>Normally I create it with for and <code>count</code>.
I can't retrieve the correct values in my action triggers (main.tf).</p>
<p>terragrunt file (input... | 2 | 1,106 |
code exited -1073741515 (0xc0000135) 'A dependent dll was not found' | <p>I am trying to write a simple program. Vs 2019, Windows 10 64bits</p>
<p>Debug->x64</p>
<p>Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1]</p>
<pre><code>#include <windows.h>
#include "res/resource.h"
#include <iostream>
#include <core_api/lsproject.h>
#include <core_ap... | 2 | 1,438 |
CSS / Firefox / Mac - Weird vertical scrolling behavior inside div | <p>I have a very weird problem. This ONLY affects Firefox on Mac, using the trackpad (so far as I know), but inside the div that is supposed to be horizontal scrolling only, you are able to scroll vertically too. There seems to be some extra "padding" below the 2nd "<code>container</code>" div which you can see if yo... | 2 | 1,215 |
Dynamically adding 3d objects to a scene in Unity3d | <p>I am working on an Unity3d project in which I want to dynamically add 3d objects to the scene, at the same position, orientation, upon a keyPress. For doing so, I imported these objects and made a prefab for all of these.. I am using the following script to do so.. bt it doesn't do the needfull.. The new object gets... | 2 | 1,171 |
MIPS converting 32-bit signed 2s-com number, decimal number, or an 8-digit signed hexadecimal | <p>interactively read a String value representing a 32-bit signed 2s-complement binary (S2CB) number, a decimal number that can be represented as a 32-bit S2CB number, or an 8-digit signed hexadecimal number. Your program must display the specified value in all three number bases. </p>
<p>So far the program asks the u... | 2 | 1,473 |
Vuejs App works in dev breaks in production -- build errors | <p>My Vuejs app runs successfully in dev localhost but once I run the build command I get these difficult-to-debug errors. I deployed it successfully last week. </p>
<p>I'm assuming its my package.json file not containing the right dependencies so I copied that file from the successful build, deleted my node_modules f... | 2 | 2,796 |
Linking image to post url | <p>I have a custom blogger template which displays image and post title(linked to the post) of posts on home page.
What i need to do is linking that image to the post url, i have tired link the image but the whole code breaks</p>
<p>Heres the java script code which is in head section</p>
<pre><code><script type='t... | 2 | 1,286 |
Google Analytics code line break for _gaq.push(['_addTrans' | <p>Trying to get GA set up with our ecommerce store and running into an issue where the actual product items aren't publishing at all to GA. The total price is working fine, but none of the item data comes through.</p>
<p>Using the Google Analytics debugger in Chrome, it seems as though this is happening because the v... | 2 | 3,777 |
getline() until end of input C++ | <p>Here is my code. It is supposed to get input until end of input and place that input into the string <strong>data</strong>. Then it is supposed to tokenize the input using the delimiter "<strong>#</strong>". I then repeatedly call my function nexttoken() to store the tokens in variables.</p>
<pre><code>std::istream... | 2 | 2,968 |
pysnmp - get output from NET-SNMP-EXTEND-MIB extend script? | <p>How can I properly invoke an SNMP extend script by MIB with pysnmp 4.3?</p>
<p>I have this entry in the remote server's snmpd.conf file:</p>
<pre><code>extend check_fd_wap /app/users/nagios_checks/check_fd_wap.sh
</code></pre>
<p>which in turn can be invoked by:</p>
<pre><code>snmpwalk -t 60 -v2c -c greendale re... | 2 | 1,078 |
Create RelativeView inside CardView programmatically android studio | <p>I am trying to create a history activity page for my app. I get data from an sql table with the users data, and set that to a card. I have created the first card in my History activity, and I do not want to pre-create all the cards, but I do not know how to programmatically add more card views. I have a relative lay... | 2 | 2,172 |
Spark1.4.0 cannot connect to Hbase 1.1.0.1 | <p>it raise the error </p>
<blockquote>
<p>Caused by: java.lang.NoSuchMethodError:
org.apache.hadoop.hbase.util.Addressing.getIpAddress()Ljava/net/InetAddress;</p>
</blockquote>
<p>while I can success connect to hbase by using spark shell. could anyone knows where the problem is?</p>
<p>the detail error</p>
<pr... | 2 | 1,437 |
React setState does not set the state | <p>I am doing a simple react application and I have an App component which keeps track of the state and then renders it. At first the state it is an empty string. Afterwards when I access the /signin I click on a button that changes the state from "" to "Marc" and pass it via props to the Profile component who renders ... | 2 | 1,223 |
HttpURLConnection Fixed Length Mode Causes Time Out | <p>I'm using an HttpURLConnection to send a POST to a website to log a user in. My code:</p>
<pre><code>byte[] queryBytes = query.toString().getBytes();
/* Open the connection to the login page */
URL url = new URL( urlString );
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setC... | 2 | 1,231 |
android: bundle string-array from one activity to another | <p>I am making a quiz where the question and answer lists are needed to pass from activity 1 to activity 2. Relevant Codings extracted as follows:</p>
<h2>Activity 1: Num_index.java</h2>
<pre><code> String[] NUM_ALLL_QuestionNames;
String[] NUM_ALLL_AnswerNames;
@Override
public void onCreate(Bundle s... | 2 | 3,718 |
Unknown host exception while using Java APIs to index documents (RestHighLevelClient) Elasticsearch | <p>I am using the vpc endpoint for elastic search to index my documents using RestHighLevelClient.</p>
<p>I am using java high level rest client v6.2.2 to connect Elasticsearch version 6.0 </p>
<p>I am able to access my cluster endpoint without the need of any authentication - <a href="https://vpc......us-east-1.es.a... | 2 | 1,873 |
Angular 5 processing results from a POST request | <p>I'm trying to convert an app from Angular 1.x to Angular 5. The app makes a POST request to the server that responds with the results in the form of string, string and array. Depending upon the value of the 2 strings I then need to use the array in a *ngFor loop to display the results. This was very easy to achie... | 2 | 1,059 |
Loop through items with painless but 'No field found' | <p>I'm trying to make a select query with a Painless script, but I keep getting an error in the response that the script is not valid.</p>
<p>What I'm trying to do in this simplified script is to check if my given param ages are both adult following the age in 'unit.info'.</p>
<p><strong>Error:</strong></p>
<pre><co... | 2 | 3,065 |
XSD to Jaxb does not generate package-info.java | <p>I have this sample XSD - I am trying to generate Java classess using Jaxb. Java classes are getting generated but we do not see package-info.java class getting generated, because the package-info.java is not getting generated marshalling fails with QName error. Please help.</p>
<pre><code><?xml version="1.0" enc... | 2 | 1,747 |
Multiple namespaces with XmlSerializer | <p>This is the scenario:</p>
<p>I have nested classes and need to serialize then in an xml document</p>
<pre><code>[XmlRoot(Namespace="http://www.foo.bar/myschema")]
public class root
{
[XmlAttribute]
public string version { get; set; }
[XmlElement]
public child child { get; set; }
...
}
[XmlR... | 2 | 1,340 |
How to get position of pixel of bitmap touched in imageview | <p>There have been many questions exactly like this. I have gone through them but couldn't get it working.</p>
<p>My Activity</p>
<pre><code>public class MainActivity extends Activity {
private static final String TAG = "GT:MA";
private ImageView imageView;
Bitmap original;
@Override
protected void onCreate(Bund... | 2 | 5,053 |
Configure Sensu to send metrics in Influxdb | <p>I'm trying to send metrics to influxdb in UDP with sensu. </p>
<p>I set my influxdb database : </p>
<pre><code># echo "cpu value=1" | nc -C -w 1 -u localhost 8089
# echo "select * from cpu" | influx -database sensu
name: cpu
time value
1490898218118704438 1
</code></pre>
<p>I installed the plugin f... | 2 | 1,925 |
Why do I get an error when starting ruby on rails app with mongrel_rails | <p>Why do I get following error when trying to start a ruby on rails application with <pre>mongrel_rails start</pre>?</p>
<pre>
C:\RailsTest\cookbook2>mongrel_rails start
** WARNING: Win32 does not support daemon mode.
** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongr
el.log for info.
*... | 2 | 1,059 |
Trying to get response from server with Ext.Ajax call in sencha 2 | <p>I'm trying to create a login form where I post username and password to the server and get the response for processing thorough an Ext.Ajax call. Below is my code:</p>
<p><strong>My login form</strong></p>
<pre><code>Ext.define('GS.view.Main', {
extend: 'Ext.form.Panel',
config: {
fullscreen: true,... | 2 | 1,363 |
How to set SA_ONSTACK flag | <p>My Go application connect to IBM MQ.</p>
<p>When my application throws segmentation violation error (signal SIGSEGV), signal handlers registered by IBM MQ make my application throw "non-Go code set up signal handler without SA_ONSTACK flag".</p>
<p>So how can I set that flag?</p>
<h2>My code</h2>
<pre><code>pack... | 2 | 2,734 |
Can't find objects which reference entity framework entity | <p>I'm running into an InvalidOperationException because "An entity object cannot be referenced by multiple instances of IEntityChangeTracker." on the first line of EntityFrameWorkRepository.Create().</p>
<p>I know this is due to having multiple database contexts, but in this case I'm a bit lost as the code has no obv... | 2 | 1,365 |
Silverlight 3 - Rotating a rectangle around an ellipse | <p>I have a Silverlight user control that looks like a compass. I would post the image but i'm a new user and can't post images yet. :(. </p>
<p>Essentially think of a an outer ellipse and on the inside is an inner ellipse in the center w/ a rectangle serving as the 'hand' of the compass. I posted the xaml below.... | 2 | 2,450 |
Android Studio IDE is not starting | <p>I am trying to start Android studio but before start, it shows some exception. I don't know how to solve this issue. Please help. I am using android studio 3.1.1.</p>
<p>This is the log message:</p>
<blockquote>
<p>I have deleted Android studio and reinstall after that it is working fine. All the mentioned solut... | 2 | 1,184 |
Bootstrap Uncaught TypeError: $(...).modal is not a function | <p>I'm trying to automatically close the modal after submitting the data to Mailchimp. But that's where the above issue occurs. I tried several existing solutions here, but they didn't seem to fix the issue. I have firing bootstrap events but still no use. I have pasted below the modal with the mailchimp api code (I've... | 2 | 2,866 |
Creating security groups for a custom module in odoo 10 | <p>I have created a custom module on odoo 10. Now I wanted to create security groups with users where each group have a particular menu of my custom module. I've already asked this question and I followed the answers that I got but I did not get the results (I definitely messed up at some point but I can't see where, t... | 2 | 1,289 |
Metis: libmetis.a disappeared and reinstallation creates libmetis.so instead | <h2>The fact</h2>
<p>I have got <strong>metis 5.1.0</strong> installed on a desktop running on Ubuntu 12.04 LTS.</p>
<p>Recently I compiled a piece of software in parallel configuration that could not find the file /opt/metis/metis-5.1.0/lib/<strong>libmetis.a</strong> and threw a fatal error. </p>
<p>This looks ... | 2 | 1,083 |
Error during SonarScanner execution after executing SonarScanner end command | <p>I am getting error during SonarScanner execution, while executing the third command:</p>
<ol>
<li>dotnet begin /k:"project-key"</li>
<li>dotnet build </li>
<li>dotnet end</li>
</ol>
<p>Below is the screen shot of the exception:</p>
<p>ERROR: Error during SonarScanner execution
INFO: ---------------------... | 2 | 2,649 |
ajax.beginform() not updating partial view mvc | <p>I am trying to do something like updatepanel in asp.net. Page A display stuff and a div that partial render another view (Page B) with 2 buttons in it. Depend on which the button, the partial view (Page B) will re-update it content. The 1st time the page load, the partial view display correct. When a button click ... | 2 | 1,385 |
Generate numpy array using multiple columns of pandas dataframe | <p>Sorry for the long post.
I'm using python 3.6 on windows 10.I have a pandas data frame that contain around 100,000 rows. From this data frame I need to generate Four numpy arrays. First 5 relevant rows of my data frame looks like below</p>
<pre><code>A B x UB1 LB1 UB2 LB2
0.2134 0.786... | 2 | 1,123 |
Android Facebook Integration - Predefined Wall Post | <p>I want to add functionality to my app where a user can share with their friends that they are using my app. I want the post to have a predefined message, but all I can get working is a regular post from my app. Is there anyway I can do this and maybe with an image as well. but that's not as important.. Any ideas?</p... | 2 | 1,341 |
flask server running in virtual box is not accessible from the windows host | <p>I have tried running it from host='0.0.0.0' and it is still inaccessible. I can ping my windows machine ip 192.168.1.109 from my virtualmachine, but I can not ping my Ubuntu VirtualMachine ip from ifconfig 10.0.2.15 from my windows side. I am using virtualbox if that helps.</p>
<p>run.py</p>
<pre><code>#!flask/bin... | 2 | 1,165 |
How to Rock Paper Scissors game with images in PHP and HTML | <p>first page-im using radio buttons..so the user will click
rock for example and the computer will play paper but i want it
to be using images.. i just started coding and so very lost</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Rock Paper Scissors Game</title>
<... | 2 | 1,113 |
knockout push not updating GUI | <p>I am struggeling with knockout and getting the UI too update when i add an item to an observableArray. The intial listing and deleteEmployee are working fine and update the UI appropriatley but when i try to add an employee the the UI is simply not updated. Below is the viewmodel and the html. Appreciate any help i ... | 2 | 1,979 |
Reset while loop conditions in python to "play the quiz again" | <p>I'm still new at this. Essentially, I just need the code to reset the while loop.</p>
<p>When the user reaches the end of the quiz, it asks if the user would like to play again. If the user inputs a <code>y</code> the quiz should restart.</p>
<p>My code:</p>
<pre><code>print("Moose Quiz")
question = 0 # Tells... | 2 | 1,711 |
Block access by IP Address Range on Tomcat 7 when accessing URL | <p>How do you configure the web.xml file on tomcat/application such that the following can be achieved:</p>
<p><strong>Allowed:</strong></p>
<ul>
<li>localhost/app/foo/bar/*</li>
</ul>
<p><strong>Disallowed:</strong></p>
<ul>
<li>localhost/app/foo</li>
</ul>
<p>Is there a way to do it without changing the source c... | 2 | 1,100 |
SSL: CERTIFICATE_VERIFY_FAILED error when curator access elasticsearch | <p>Im trying to setup elasticsearch-curator (version 5.6.0) to delete indices in elasticsearch (version 7.3.1).</p>
<p>Theirs versions should be compatible (<a href="https://www.elastic.co/guide/en/elasticsearch/client/curator/current/version-compatibility.html" rel="nofollow noreferrer">https://www.elastic.co/guide/e... | 2 | 3,697 |
Apache camel Junit keep Context running | <p>We have some JUnits for testing camel routes and business logic, at some point there is a need to have camel context running, until response response received from server for one of the JUnit tests. We are using CamelSpringTestSupport. The problem is, no other JUnits running after that.</p>
<p>MyTest.java is below<... | 2 | 2,383 |
Installing SpaCy English module in Conda | <p>While I am able to install spacy in a windows python3 anaconda environment, I cannot get the english module to download</p>
<pre>
C:\Users\Smith>activate myenvt
(myenvt) C:\Users\Smith> **python -m spacy download en**
Traceback (most recent call last):
File "C:\Users\Smith\Anaconda2\envs\myenvt\lib\r... | 2 | 1,232 |
Importing xlsx and parsing to json | <p>I've set up a "drag and drop file" area on my webpage using material-ui-dropzone. Next, I installed SheetJS js-xlsx, which lets you parse xlsx data. My struggle is in getting the two to work together. I think I have the drag and drop file part working ok. But I am not sure how to deal with the next part. I... | 2 | 1,795 |
Web API 2 /Token return more information | <p>I am using OAuth to generate tokens for my application, specifically JWT. I have this code in my startup class:</p>
<pre><code>private void ConfigureOAuthTokenGeneration(IAppBuilder app)
{
// Configure the db context and user manager to use a single instance per request
app.CreatePerOwinContext(DatabaseCon... | 2 | 2,343 |
Dynamically create CSV file using select statement in c# | <p>I have a website which allows users to download data using specific search criteria (country and dates) to a CSV File. They pick all the information from a dropdown list and a JQuery datepicker.</p>
<p>The export works perfectly for small data sets, but as soon as you try and download 10000 rows of data, it takes a... | 2 | 1,939 |
Error: The page you requested can not be displayed right now | <p>Integrated facebook sdk 2.3 to android app here after entering the credentials getting the above error.here i am placing the login() code.suggest me suitable solution.This is login method.</p>
<pre><code>public void loginToFacebook() {
mPrefs = getPreferences(MODE_PRIVATE);
String access_token = mP... | 2 | 1,282 |
Android StringArray with settext | <p>I'm developing an app that displays some textviews for the user, and I thought that I would store the text in an array and load the information accordingly to chosen item from a listview</p>
<p>Each StringArray has a name and 4 items. I'm using an if statement to know which array to use and then set the text accord... | 2 | 1,430 |
circleci only 1 subschema matches out of 2 | <p>i'm trying to create a circleci automated testing for my electron apps.<br />
i followed the intruction from here: <a href="https://circleci.com/blog/electron-testing/" rel="nofollow noreferrer">https://circleci.com/blog/electron-testing/</a><br />
my repo: <a href="https://github.com/dhanyn10/electron-example/tree/... | 2 | 1,237 |
JavaFX ToggleButton get in and out of an infinite loop | <p>I want to create a toggle button in JavaFX that will execute a loop, and will stop only when the user clicks the button again; while active, the loop will continuously change the text in the TextField...</p>
<p>Here is the code for the ToggleButton:</p>
<pre><code>toggleButton.setOnAction(event -> {
try {
... | 2 | 2,145 |
How to return multiple values from a function in R for each iteration of a loop? Simple life history simulation | <p>I am trying to return three variables( <code>walkpop</code>, <code>cathpop</code>, <code>abovepop</code>) from a function for each iteration of a loop for every combination of other variables in the data; this function is a life history simulator. I can return and create the correct output in a dataframe for one of ... | 2 | 1,173 |
Error while connecting with wrong user | <p>I have a project where I use Spring Boot, Spring Security and Spring MVC.
I configure Spring Security to authenticate with our company ldap.</p>
<p>When I try to log-in with a correct user, it works. But when I log-in with a wrong password or a wrong user, it returns an error :</p>
<blockquote>
<p>Servlet.servic... | 2 | 6,016 |
VSTS : dotnet with Docker fail to publish tests | <p>I try to publish my unit tests on VSTS during the continuous integration, I use docker, and at the time the Publish task is played, I still get the following error, thus the xml file resulting from the <strong>dotnet test</strong> command can"t be found.</p>
<pre><code>No test result files matching **\test-results.... | 2 | 1,098 |
Adding buildFeatures { viewBinding true } results in "Cannot find a setter for <... android:visibility> that accepts parameter type 'int' | <p>I want to start using <code>viewBinding</code> in <a href="https://github.com/mycelium-com/wallet-android" rel="noreferrer">our project</a> but the mere addition of the configuration results in a compile error:</p>
<pre><code>android {
buildFeatures {
dataBinding true
viewBinding true // new line... | 2 | 1,222 |
Pandas cumulative sum with window function | <p>I am using the dataset <code>tips</code> from seaborn:</p>
<pre><code>import pandas as pd
import seaborn as sns
tips = sns.load_dataset("tips")
tips['rowid'] = tips.index
</code></pre>
<p>I would like to create a column that will be a cumulative count of people who tipped more than 3, with filter male and dinner. ... | 2 | 1,404 |
Passport Error - Strategy.ParseErrorResponse | <p>Hi there I've been trying to find a solution for this error for 2 days and to no avail! I have already searched on Stack Overflow. The errors are simply not related to mine. Here is the stack trace I am receiving.</p>
<pre><code>Error
at Strategy.parseErrorResponse (/Users/jeremy/projects/thinkful_capstone_2/no... | 2 | 1,069 |
Double Quotes Break HTML Attributes and JS | <p>So I have some ajax requests that pull data from our product pages. These product pages can have a <strong>"</strong> <em>(double quote)</em> in their URL somewhere. This is a necessary evil, I'd explain why, but please just accept that I have to keep the double quotes in these URLs.</p>
<p>In a nutshell, I am pull... | 2 | 1,232 |
C++ UDP two way client/server delivery | <p>I'm building a UDP server for handling of position updates in a flight simulator (so, the packets will be rapid and guaranteed delivery isn't needed). The server creates and binds a UDP socket as per "session" in the server. The server then communicates the position information from the master to the viewers. This l... | 2 | 1,196 |
React-Native Android CodePush setup not downloading updates | <p>I'm having trouble setting up CodePush into my React-Native Android application. On my dashboard, it's not showing that any apps have downloaded the update or installed it.</p>
<p>NOTE: iOS Codepushing works for this mobile app, just not Android.</p>
<p>I currently have my codePush options set up like this:</p>
<pre... | 2 | 1,422 |
ClassNotFoundException when compiling JRXML with Maven | <p>I use in my JRXML some object of my application <strong>A</strong> like this :</p>
<pre><code><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.... | 2 | 1,715 |
TwoWay Binding a Class that implements INotifyPropertyChanged, nothing happens | <p>I have followed a couple of examples on the Microsoft website, the first involving ItemsSource:</p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol.itemssource%28v=VS.85%29.aspx" rel="nofollow">ItemsControl.ItemsSource Property</a>
the second:</p>
<p><a href="http://msdn.mi... | 2 | 1,842 |
Using code from objective c .m file in swift | <p>I've been assigned a project in objective C, though i need to add on top of it with swift. I added a bridging header file and can access the methods in my .h file. </p>
<p>I'm trying to access IBOutlets in my .m file although I can't access them (for they aren't public). I can I access these outlets? Or rather, how... | 2 | 1,219 |
search function issue | <p>I have a search function within my program that looks for the name or a person within my arraylist. This can find the name of the person, but I am unable to get the other information I need. I'm guessing it's because I have not declared something. I am uncertain of how to proceed.</p>
<p>First class which holds my ... | 2 | 3,068 |
MASSIVE GOOGLE MAPS. 5000 places, 5MB. How to make it faster? | <p>I'm trying to load a Google Maps v3 that shows 5000 markers clickable. My JS contains 10 lines per place:</p>
<pre><code> var myLatlng_4821 = new google.maps.LatLng(43.0754329,-71.4699752);
var contentString_4821 = "<b>Place 1</b>";
var infowindow_4821 = new goo... | 2 | 1,285 |
long running @Scheduled Job lead to DB connection leakage | <p>We have a Springboot 1.5 Application. There are multiple <code>@Scheduled</code> jobs inside <code>@Transactional</code> Services, which may run for multiple minutes. In these jobs, JPA is used to read/write entities -> DB-Connections are used. The </p>
<p>Since we have a lot of exceptions like below</p>
<pre><cod... | 2 | 1,777 |
UITableViewController vs UITableView | <p>I have 2 Controllers within one app as I am trying out these different settings.</p>
<p>One is a UITableViewController which the way I understand has the Delegate and the Datasource are drawn from the Superclass.</p>
<p>Now going by that theory I now also have a UIViewController with a UITableView on it and in the... | 2 | 1,080 |
OpenCart2 vqmod replace,before and after all replacing? | <p>Please take a look at the following xml file in the vqmod folder.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Drop Shipping</id>
<version>2.0.0</version>
<vqmver required="true">2.4.0</vqmver>
<author... | 2 | 1,914 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.