title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do partial views access the index of an array that is located in the calling method? | <p>Trying to work out how MVC gets the index of an array within a partial view.</p>
<p>I have the following code to demonstrate.</p>
<pre><code>public class HomeController : Controller {
public ActionResult Index() {
return View(new[] {
new Customer() {
Order... | 2 | 1,244 |
RPC using EventMachine & RabbitMQ | <p>I've been starting to play around with RabbitMQ <a href="http://rubyamqp.info/articles/patterns_and_use_cases/#code_example" rel="nofollow">RPC sample code</a> provided in AMQP gem doc, trying to write very simple code performing <em>synchronous</em> remote calls:</p>
<pre><code>require "amqp"
module RPC
class B... | 2 | 2,054 |
Selenium: Get all visible text in Tableau view | <p>I am trying to get all visible text from a Tableau view using Selenium. I define all visible text as any text that can be searched using any browser's search functionality (i.e. <kbd>Ctrl</kbd>+<kbd>F</kbd>).</p>
<p>I have already searched many other answers to related questions but none of them worked for my case.... | 2 | 1,166 |
Drawing a polygon when the mouse is clicked | <p>Consider this code:</p>
<pre><code>#include <stdlib.h>
#include <stdarg.h>
#include <GLUT/GLUT.h>
#include <OpenGL/OpenGL.h>
double width=600;
double height=600;
void processMouse(int button, int state, int x, int y)
{
glColor4f(1.0,0.0,0.0,0.0);
glBegin(GL_POLYGON);
glVertex3f... | 2 | 1,534 |
How can I animate shrinking of a uiwebview? | <p>I'm trying to shrink a webview smoothly when the keyboard appears, but I'm having trouble with the animation. As soon as the animation is created, the webview's content shrinks to its new frame. After the animation delay, the webview itself animates properly to its new size.</p>
<p>The screenshots below show what i... | 2 | 2,526 |
EF + MVC3: How to Create DropDownList Filter when page model is IPagedList? | <p>I've been following the excellent tutorial from asp.net about creating pagination and filtering: <a href="http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/sorting-filtering-and-paging-with-the-entity-framework-in-an-asp-net-mvc-application" rel="nofollow">http://www.asp.net/mvc/tutorials/getting-st... | 2 | 1,455 |
Android app keeps crashing with tabhost | <p>My goal is to have two tabs created, each with a different activity. I want the tabs to always be visible at the top so I can easily switch between the two. I believe to have everything set up to create two tabs using tabHost, however the app crashes on start up when I run it. </p>
<p>Here is the logcat:</p>
<pre>... | 2 | 2,819 |
Problems POSTing data to an asp.net webpage (problem in Desktop C# end) | <p>Thank you so much for taking the time to read my post! I am having a problem POSTing data from a C# Desktop application to a C# asp.net web page. I believe that the problem lies in the Desktop application (or at least one of the problems does!) I will also post the asp.net code I am using. If asp.net is not your spe... | 2 | 1,156 |
passing data to php script with Ajax and vanilla JavaScript | <p>I try to send POST data from html form to PHP script by using Ajax (XML httprequest ) with vanilla JavaScript then retrieve that data and display it to a specific html element.</p>
<p>the problem is when i click the button to submit the form , seems that the code in Ajax part does not send data to php script and
at ... | 2 | 1,720 |
Why ConditionEvaluationReportLoggingListener never invoked in failed context tests using ApplicationContextRunner? | <h2>Expected behavior</h2>
<p>As a spring-boot developer</p>
<ul>
<li>in order to diagnose failed context startup in tests using <code>ApplicationContextRunner</code></li>
<li>I need <code>ConditionEvaluationReportLoggingListener</code> to print report as documented in</li>
</ul>
<p><a href="https://docs.spring.io/spri... | 2 | 1,955 |
Generating python client from a .proto with (well-known) timestamp | <p>When I take a simple <code>hello.proto</code> file</p>
<pre><code>syntax = "proto3";
package helloworld;
//import "timestamp.proto";
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
string name = 1;
//google.protobuf.Timestamp smth = 2;
}
message HelloReply {
st... | 2 | 1,303 |
How to have a <div> element that groups <li> elements inside of <ul> | <p>OK so for my site we have a navbar that uses a list. We have a section of elements that float left, and a section that floats right. My code works perfectly, it's just that the W3 validator constantly tells me that I can't have a div element inside of a ul element. If I assigned each individual li element the class ... | 2 | 1,577 |
Leak when using blocks, collections and ARC | <p>I'm trying to understand why this code is leaking, using ARC:</p>
<pre><code>- (IBAction)block2:(id)sender {
NSMutableString *aString = [[NSMutableString alloc] init];
void (^aBlock)() = ^{
NSMutableString __unused *anotherString = aString;
};
NSMutableDictionary *dict = [NSMutableDictiona... | 2 | 1,960 |
JUnit, @ControllerAdvice and lack of checked exceptions in Kotlin | <p>I wrote a <a href="http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/" rel="nofollow noreferrer">validation advisor</a> in Kotlin which throws <code>EntityValidationException</code> when validation fails:</p>
<pre><code>@Aspect
@Named
class ValidationAdvisor
@Inject constructor(val validator: Enti... | 2 | 2,525 |
Entity Framework 6 Timeout exception and retry but the query succeeded | <p>We are using Entity Framework 6.1.2 in an Azure Cloud Service.
We have added both the RetryStrategy and the CommitFailureHandler.</p>
<p>When a request is received we are trying to insert a new row into a table using the raw SQL part of Entity Framework.</p>
<p>We first check to see if the row exists for the ID we... | 2 | 1,417 |
YouTube Iframe Api Javascript Errors because of loading time | <p>I am currently implementing the Youtube iFrame API into my website. It's all working pretty neet. Everything is working, all functions work but I still get javascript errors.</p>
<p>The functions don't destroy any of the functionality or anything on the website, and all the functions do their jobs. The errors say t... | 2 | 1,854 |
Nginx error in a docker container | <p>I have a flask app that I'm trying to run in a docker container. Docker-compose build and docker-compose up both run fine, but when I go to <em>localhost</em> I'm getting 502 Bad Gateway from nginx. Here is there nginx error log</p>
<pre><code>2018/05/06 14:06:37 [error] 10#10: *12 connect() failed (111: Connection... | 2 | 1,190 |
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() | <p>I am using the following <code>MainActivity</code>, and I am still getting the following error message:</p>
<pre><code>Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>... | 2 | 2,218 |
How to install Scikit-Learn for Julia (Jupyter notebook) | <p>So I currently have Scikit-Learn installed via anaconda for Python. However I wish to use Scikit-Learn in Julia on a Jupyter notebook, (see the link I am using) <a href="http://scikitlearnjl.readthedocs.io/en/latest/quickstart/" rel="nofollow noreferrer">http://scikitlearnjl.readthedocs.io/en/latest/quickstart/</a>.... | 2 | 1,282 |
Razor adding extra newline character and white spaces to hyperlinks | <p>I'm writing a web application that parses a text file and replaces line numbers with hyperlinks so that the user can easily navigate to a specific line number of the text file they inputted. </p>
<p>I'm printing a list of objects stored in the Viewbag within a .cshtml View. When I print everything as normal text, e... | 2 | 1,127 |
Custom Pipe Angular, TypeError: Cannot read property 'reduce' of undefined | <p>I am fetching the courses from the Firebase database as so:</p>
<pre><code> this.fetchItems()
.subscribe((res) => {
this.coursesFiltered = res.filter((filtered: any) => {
return filtered.courseStatus === 2 || filtered.courseStatus === 3
... | 2 | 1,083 |
RequestProductPurchaseAsync throws “Cannot change thread mode after it is set” | <p>I'm using monogame as a framework for games and I'm trying to implement a in-app-purchase-functionality in an UWP-App which throws an exception when I'm calling <code>RequestProductPurchaseAsync</code>. It states:</p>
<blockquote>
<p>Cannot change thread mode after it is set. (Exception from HRESULT:
0x80010106... | 2 | 1,070 |
Serialize DataTable (Dataset) to Object | <p>I have one class and one query from the database, filling DataTable in the DataSet. I would like to populate the object with the data from the DataTable & DataSet. How can I do so?</p>
<p>Object: </p>
<pre><code> public class Marks
{
public List<Mark> MarkList { get; set; }
public Ma... | 2 | 1,103 |
Error 400 Bad Request Ajax JQuery to Spring Controller | <p>I'm facing am error 400 when trying to post a form data to Spring Controller, I tried some posts here, but nothing worked with form data, I used the same pattern I used in others ajax posts, but some is using @ModelAtributte, and in this case I needed to load two ModelAndView, wich I don't know</p>
<p>the serialize... | 2 | 1,172 |
Connection could not be established with host free.mboxhosting.com [Connection refused #111] with laravel in free hosting | <p>I've been hosted my laravel project in a free hosting (in awardspace). Everything works ok, except sending email. When I try to send an email by compiling the form from the contact page of my project, it returns me this error: </p>
<pre><code>Swift_TransportException
Connection could not be established with host fr... | 2 | 1,083 |
How to make buttons to be only clicked once using Tkinter in Python? | <p>So I made a sill calculator that just takes an input of 'banana' and 'milk' when the user does such calculation: banana + milk, then it returns 'banana milk' and so on. Since these strings are not a number, I want the buttons to be only clickable once so that it will never be 'banana banana + milk' but only 'banana ... | 2 | 1,139 |
On stopping and restarting my application, I receive an address already in use error for JMX | <p>I'm writing a script to stop and restart my service. Ideally, it will be called by the JVM options, set in my gradle.build file, in the event of an out of memory error. So far, it has been called and successfully killed the process, but when it calls the start script, I receive an error that says that the JMX port... | 2 | 2,803 |
Running Ant task on maven: copy, delete files within the projects | <p>I had a <code>deploy.ant</code> file in which the whole build process was done, including copying files, executing the protobuf compiler and all that. Now that I am switching to maven, I have <code>pom.xml</code> files which are supposed to do these tasks. I am done almost all, except the <code>deploy.ant</code> scr... | 2 | 2,277 |
Which font should I use for the newest Unicode characters? | <p><em>Note: They aren't new. Just "not supported", somehow.</em></p>
<p>I'm trying to make simple controls for a element on my website, along the lines of a simple "mute" or "not mute" control.<br>
However, I haven't been able to find any fonts capable of handling the newer Unicode symbols, such as the speaker symbol... | 2 | 1,044 |
Exporting Android Studio Project to GIT | <p>I've recently started trying Android Studio and I've decided I want to make an app. The app is on it's way, but I want't to put it on a git repository where co-workers can collaborate.</p>
<p>I tried just copying the project on to a git repository and use this .gitignore file that I found on another thread.</p>
<p... | 2 | 2,874 |
How to add dynamic header values to feign-client through Feign interceptor from current request? | <p>I am new to Spring-cloud-openfeign. I am trying to build a micro-service based system. To make things look simpler, just take 3 of those services, which are Gateway, Service-A, Service-B. When I make a request from my frontend to Service-A through Gateway, the gateway will verify the JWT token in the request, and ex... | 2 | 1,086 |
Critique my non-intrusive heap debugger | <p>This is a follow-up to <a href="https://stackoverflow.com/questions/2830272/critique-my-heap-debugger">Critique my heap debugger</a> from yesterday. As suggested by bitc, I now keep metadata about the allocated blocks in a separate handwritten hashtable.</p>
<p>The heap debugger now detects the following kinds of e... | 2 | 3,901 |
Mvc4: N tier architecture | <p>Tools: Mvc4, Sql server, Nhibernate</p>
<p>I am learning Ntier architecture and plan to learn this with a small example. This will be a student registration application which will have a form for
a. first name
b. last name
c. address
d. Student Id
The application will be able to
a. Get student by Id
b. Get all s... | 2 | 1,165 |
reset a drop down list value to previous value | <p>I am using javascript to validate some drop down list selections. One selection is for the length of a buildings frame. The other 3 drop down are for garage doors that can be added to the side. I have the code alerting me if the total door widths have exceeded the frame length. I need the if condition to take the pr... | 2 | 1,733 |
How to set different content to tabs using ViewPager? | <p>Is there any way to set different content to tabs using <code>ViewPager</code>? I mean <strong>without creating fragments for every tab.</strong> </p>
<p>So I have 1 fragment, which is applied to every tab. But the <strong>content of each should be different</strong>. And in my case all 3 tabs have same items.</p>
... | 2 | 1,501 |
angular x-editable deselecting selection to clear text input not working | <p>UPDATE: changing post to a more simplified example.</p>
<p><a href="http://jsfiddle.net/bphein1980/avfozhx4/1/" rel="nofollow">http://jsfiddle.net/bphein1980/avfozhx4/1/</a></p>
<p>QUESTION: When the x-editable selection is changed to "option3" and the $scope.condition1value is set to zero (0) in $scope.changeCond... | 2 | 1,034 |
SSH example does not work with docker:git / dind image | <p>I'm reading the documentation: <a href="https://gitlab.ida.liu.se/help/ci/ssh_keys/README.md" rel="nofollow noreferrer">https://gitlab.ida.liu.se/help/ci/ssh_keys/README.md</a></p>
<p>I'm using the current gitlab-ci.yml:</p>
<pre><code>image: docker:git
services:
- docker:dind
stages:
- node_test
- docker_one
vari... | 2 | 1,436 |
Running Dataproc BigQuery example on local machine | <p>I am trying to run the connector example on local machine but keep getting UnknownHostException. How do I configure the access to BigQuery using the Hadoop Connector?</p>
<pre><code>package com.mycompany.dataproc;
import com.google.cloud.hadoop.io.bigquery.BigQueryConfiguration;
import com.google.cloud.hadoop.io.b... | 2 | 2,670 |
VCPKG_ROOT not defined for CMake | <p>I am trying to set up vcpkg with a CMake project. Since I intend to have multiple people with different platforms working on this project, I wanted to use an Environment Variable to set CMAKE_TOOLCHAIN_FILE instead of a command line argument as recommended here for cmake: <a href="https://vcpkg.readthedocs.io/en/lat... | 2 | 1,244 |
Geotools with Glassfish: Failed to connect to the EPSG database | <p>I have an application that uses Geotools. It works fine with tomcat, with glassfish however I get the following error. Here is a stacktrace:</p>
<pre><code>org.opengis.referencing.FactoryException: Failed to connect to the EPSG database.
at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBacking... | 2 | 4,779 |
Android: LocationServices.FusedLocationApi.requestLocationUpdates keep running and doesn't return | <p>I am trying to retrieve the current user location to pin point the user on map, since this is the first time of emulator getting user' s location, LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient) returns a null location. Then I am trying to get the location with this LocationServices.FusedLocation... | 2 | 4,320 |
How to get the roles from a JWT token from a web api in Angular | <p>I need to get the roles from my JWT token which was created in asp.net core using claims. This is the token I get:</p>
<pre><code>FirstName: "Juan"
LastName: "Dela Cruz"
MiddleName: "A."
UserId: "2"
aud: "http://192.168.1.6:13735"
exp: 1590001134
http://schemas.microsoft.com/ws/2008/06/identity/claims/role: Array(2... | 2 | 1,235 |
Iterate Through Custom LinkedList Class of Objects | <p>I have created my own <code>LinkedList</code> class and created a <code>LinkedList</code> that will contain object Song (contains title, artist, album, length). The error I am having is that when trying to iterate through the list I am getting the "Can only iterate over array of java.lang.Iterable." I think my issue... | 2 | 1,242 |
Compatibility issue with Chrome/Firefox | <p>My site is available at: <a href="http://www.innexdesign.co.uk/dev" rel="nofollow">http://www.innexdesign.co.uk/dev</a> . The site works perfectly in IE and most pages are also fine in Firefox and Chrome.
However if we navigate to the "Designs" Menu and hover down the choices: "Designs for Drinking", "Designs for E... | 2 | 10,805 |
SSIS importing Excel data via C# to SQL Server | <p>I've just got started with SSIS and the processing of Excel files via C# when I stumbled over this article:</p>
<p><a href="http://www.codeproject.com/Articles/368530/Dynamic-Excel-file-loading-with-SSIS" rel="nofollow">Link</a></p>
<p>The article explains how to load Excel data via SSIS into a SQL Server database... | 2 | 2,207 |
Why can't I shutdown my own ExecutorService under a SecurityManager? | <p>Under the default security manager, if I create an <a href="http://download-llnw.oracle.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html" rel="noreferrer">ExecutorService</a> (<a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/ThreadPoolExecutor.html" rel="noreferrer">ThreadPoo... | 2 | 2,645 |
Google Sheet App Script - For Specific Sheet Hide Rows that are empty then export to PDF | <p><a href="https://docs.google.com/spreadsheets/d/1nFgdpoIdUUufvDTmkFvNR1NQ7BBxDiDe1xXf2JSyG0o/edit?usp=sharing/%22Google%20Sheet%20Link%22" rel="nofollow">Google Sheet Link</a></p>
<p><strong>Updated</strong> with working script</p>
<p>I am having a little bit difficulty figuring how to hide ranges of rows.
I also... | 2 | 1,127 |
Unable to instantiate driver class "com.microsoft.sqlserver.jdbc.SQLServerDataSource" - Failure deploying sqljdbc4.jar in Wildfly 10 | <p>I have big issues using sqljdbc4.jar in Wildfly 10.
When I start the server I get the following issue: </p>
<pre><code>Unable to instantiate driver class "com.microsoft.sqlserver.jdbc.SQLServerDataSource"
</code></pre>
<p>... and several exceptions ...</p>
<pre><code>08:32:12,570 ERROR [org.jboss.msc.service.fa... | 2 | 1,345 |
Android Bluetooth LE - Read float characteristic | <p>I am trying to read the float characteristic of a connected Bluetooth LE device(Genuino 101). For testing purposes, the device provides a FloatCharacteristic with the hardcoded Value '55.3'. While I am able to receive a string that somehow resembles the float, I cannot read an actual float value.<br>
Here's the code... | 2 | 1,312 |
Google Analytics Reporting API v4 missing required authentication credential | <p>I'm new to using this API, and I am struggling with retrieving my data using <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/" rel="nofollow noreferrer">Google Analytics Reporting API v4</a>. I am only attempting to retrieve the analytics for a website so I can build a dashboard. I am f... | 2 | 1,363 |
How to disable usage of public maven repo | <p>I've setup a maven repository(Artifactory) in my LAN which has no internet access. I've also change my maven settings.xml to use this internal repo only. However when I try to create a maven project, it still try to access the public repo(<a href="http://repo1.maven.org/maven2" rel="nofollow">http://repo1.maven.org/... | 2 | 1,769 |
Too deeply nested at just fourth nesting level using pandoc with markdown? | <p>The following code is not accepted by <code>pandoc</code>:</p>
<pre><code>1. Code Behaviors
1. Logging
1. No "bare" `System.out.println`'s
1. Logging level can be calibrated by simple change(s) to logging.xml and/or log4j.properties
1. Errors and exceptions go to appropriate WARN and/or ... | 2 | 1,106 |
StructureMap IoC in Application_Start | <p>I cannot get StructureMap to inject a value into the constructor of the MvcApplication of the Global.asax.cs file. I have created a brand new and clean project and used StructureMap.MVC5 package to generate the necessary structures inside the DependencyResolution subfolder.</p>
<p>My class to be injected is simple:... | 2 | 1,330 |
Adding a primary key to existing entity that has a unique constraint on two fields in Symfony | <p>I have an existing Symfony entity:</p>
<pre><code>/**
* MyApp\AppBundle\Entity\UserSelection
*
* @ORM\Table(name="user_selection",uniqueConstraints={@ORM\UniqueConstraint(name="unique", columns={"user_id", "selection_id"})})
* @ORM\Entity(repositoryClass="MyApp\AppBundle\Entity\UserSelectionRepository")
*/
cla... | 2 | 1,492 |
with 100% height and automatically scroll the bootstrap 3 | <p>Good Afternoon person following'm doing my personal website and I am facing a problem when I put in the resolution below 640x960 resolution. 'm New to bootstrap 3, I'm learning now and I need your help. </p>
<p>Follow my code html:</p>
<pre><code><body>
<header class="navbar navbar-default navbar-fixe... | 2 | 2,657 |
Getting List<ViewModel> from View into Controller | <p>I have a <code>View</code> which allows editing a <code>List</code> of <code>ViewModel</code>. The code works till the displaying functionality. But I am unable to get the value in the same list back from the view. </p>
<pre><code> public ActionResult Funtion()
{
List<ViewModel> Vie... | 2 | 1,201 |
My Discord-Bot stopped executing its commands | <p>Just today I've realized that my bot didn't do anything after a new user joined, even though he is supposed to automatically assign a role as he did before. After a quick check, he doesn't respond to any commands at all anymore, even though it worked just fine yesterday.</p>
<p>My Bot still connects to the server an... | 2 | 1,907 |
Cannot find module 'setupDevtools' React-Native | <p>I am getting the following error:</p>
<pre><code>Cannot find module 'setupDevtools' from 'setup.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:169:17
</code></pre>
<p>My JSON.package file looks like this:</p>
<pre><code>{
"name": "MiBase",
"version": "0.0.1",
"private": true,
"... | 2 | 1,139 |
‘ptr_fun(isalnum)’ won't compile in g++? | <p>I am attempting to compile a program in g++ which compiled fine in Visual Studio 2012.</p>
<p>I am receiving the error : <code>error: no matching function for call to ‘ptr_fun(<unresolved overloaded function type>)’</code></p>
<p>To the best of my knowledge, I have included all the library and header files ... | 2 | 2,598 |
Unable to read XML file with ApplicationContext into a InputStream | <p>I am trying to load a XML file into a input stream with spring-mvc's <code>ApplicationContext</code>. But I am not able to read the file and I am getting conflicting information. </p>
<p>I am trying to load a xml file into a <code>InputStream</code> and find the file via:</p>
<pre><code>ApplicationContext ctx =
... | 2 | 1,358 |
Store multiple TcpClient Connections - VB.NET | <p>I'm building an application that can communicate and send commands to game servers. In the gaming world we call this “rcon” for remote console, but in reality it's just a telnet session. After successful authentication, a text command can be issued to the server and a text response is sent back to the client.</p>
<... | 2 | 2,824 |
Fastest idiomatic I/O routine in Rust for programming contests? | <p><em>My question has been partially answered, so I've revised it in response to things I've learned from comments and additional experiments.</em></p>
<p>In summary, I want a fast I/O routine for programming contests, in which problems are solved with a single file and no external crates. It should read in a sequenc... | 2 | 1,494 |
Why #pragma warning disable S2068 does not work? | <p>I have the following piece of code in a tool:</p>
<pre><code>var o = new OptionSet()
.Add("password=|pwd=|p=", "The database password. Only when using SQL authentication.", p => password = p.TrimQuotes())
...
;
</code></pre>
<p>My PR build promotes Sonar warnings to compilation errors ... | 2 | 1,287 |
Camel Simple Expression | <p>My Initial requirement is I need to call the web service for n no times. If I get the response with in n times I need to update the status code success. If n time exceeds then i need to update the failure in DB. For this I try some POC. I am getting the Exception while validating the simple expression the Code </p... | 2 | 3,092 |
cert-manager - Acme Http Solver Returns 404 | <p>Have a kubernetes cluster with an nginx ingress to a service which I am trying to set up with https access using <code>cert-manager</code> and ACME <code>ClusterIssuer</code>.</p>
<p>The steps I have followed from cert-manager I am reasonably happy with but I am currently at the stage where a challenge is made to ht... | 2 | 1,168 |
NSTimer in AppDelegate never fires | <p>I need to start an NSTimer arbitrarily that will repeat every N seconds until I stop it. <strong>It's not repeating.</strong></p>
<p><strong>I've tried SO solutions</strong> described <a href="https://stackoverflow.com/questions/10553480/nstimer-not-repeating-from-appdelegate">here</a>, <a href="https://stackoverfl... | 2 | 1,208 |
Tomcat startup issue | <p>I am using tomcat6(distribution) integrated with Netbeans 6.5. It was working with no issues and now suddenly stopped working. Now if i try to start Tomcat from netbeans in console it prints server starts up in some millisecond and all other things abut even after that , netbeans keep on showing the status bar of "s... | 2 | 1,048 |
How to get rid of weird characters in my RSS feed? | <p>I've created a utf8 encoded RSS feed which presents news data drawn from a database. I've set all aspects of my database to utf8 and also saved the text which i have put into the database as utf8 by pasting it into notepad and saving as utf8. So everything should be encoded in utf8 when the RSS feed is presented to ... | 2 | 1,136 |
Wiring up JavaScript handlers after a Partial Postback in ASP.NET | <p>I am trying to use LinkButtons with the DefaultButton property of the ASP.NET Panel in an UpdatePanel. I have read and used the various other answers that are around describing the wiring up of the click event so that a full postback is not done instead of a partial postback. When the page loads, I wire up the .cl... | 2 | 1,818 |
inline edit in jqgrid not working | <p>I have my jQuery code like this</p>
<p><code></p>
<pre><code>$(document).ready(function () {
var lastsel;
$('#jqgProducts').jqGrid({
//url from wich data should be requested
url: '@Url.Action("CompOff")',
//type of data
datatype: 'json',
//url acc... | 2 | 1,724 |
c# tcpListener listen for connection status of multiple clients | <p>I am attempting to connect multiple clients to a <em>server</em> and monitor their connection...</p>
<p>I am trying to get a better understanding of <code>TcpListener</code> and <code>TcpClient</code> while creating these programs.</p>
<p>I found my server code from another stackoverflow answer as I am looking to ... | 2 | 2,712 |
Save Data to Localstorage and use it to populate fields after submit | <p>I have optin popup of two steps, first step is to capture email and name, when user click submit the data is captured, and another popup appears, the new popup has a form with more fields to get more info, plus email and name field.</p>
<p>what I want to do is to automatically populate the email and name field from... | 2 | 1,883 |
Application Controller and Application.Run() - Stop Program When UI Ends | <p>I have an application controller with navigation workflow like so:</p>
<pre><code>namespace Ordering.UI.Workflow
{
public static class ApplicationController
{
private static INavigationWorkflow instance;
private static string navigationArgument;
public static void Register(INavigati... | 2 | 1,142 |
Cant Gradle Sync after clicking update Gradle in Android Studio - Error:Gradle 2.14.1 requires Android Gradle plugin 2.1.3 (or newer) | <p>This is the exact error I am getting when trying to <code>Gradle Sync</code> in <code>Android Studio</code>. All I did was click the update button when the newer version of Gradle dialog came up.</p>
<p><code>
Error:Gradle 2.14.1 requires Android Gradle plugin 2.1.3 (or newer) but project is using version 2.1.0.
&l... | 2 | 2,863 |
Rotating a square matrix by 90 degrees | <p>Here's my code for rotating a square matrix clockwise by 90 degree in Java.</p>
<pre><code>import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
// write your code here
int size = 4;
int[][] matrix = new int[size][size];
for (int i = 0; i < siz... | 2 | 1,064 |
EL1008E: Property or field 'applicationName' cannot be found on object of type 'java.lang.String' - maybe not public or not valid? | <p>Been stuck with this error for a while now.</p>
<blockquote>
<p>EL1008E: Property or field 'applicationName' cannot be found on object of type 'java.lang.String' - maybe not public or not valid?</p>
</blockquote>
<p>I'm trying to get the records from database through thymeleaf, but always gets this error. I think I'... | 2 | 1,673 |
inserting data through a servlet using JDBC | <p>I am trying to make a Social network site where a user can log or register. Once logged in with correct credentials, the user could search in a friends list and invite him/her to be friend.</p>
<p>So far I have made 2 jsp files-
<a href="http://i.stack.imgur.com/iVpe2.jpg" rel="nofollow">1</a> index.jsp [2] UserReg... | 2 | 1,143 |
JQuery DataTables mRender button - how do I get button click | <p>I have the following ajax call:</p>
<pre><code> $('#stlmtddel').click(function(event) {
var customerid = "<%=customerid%>";
var appointofcaid = "<%=appointofcaid%>";
var kindcontrolid = "<%=kindcontrolid%>";
var auditorid = "<%=auditorid%>";
var ins... | 2 | 2,538 |
Validating Arrays of radio buttons in laravel | <p>I am using Laravel 5.1 and homestead.</p>
<p>My issue is when validation fails, the radio buttons do not repopulate with data from the original user's input.</p>
<p>My validation rules from PostRequest.php</p>
<pre><code>public function rules()
{
//validating input text field --> this one works
... | 2 | 1,362 |
ClientDisconnectedError from aiohttp | <p>I have a websocket server built with aiohttp.
I keep getting this exception in the server error stream.</p>
<pre><code>Task exception was never retrieved
future: <Task finished coro=<read() done, defined at /usr/local/lib/python3.4/dist-packages/aiohttp/streams.py:576> exception=ClientDisconnectedError()&g... | 2 | 2,121 |
How do I get my route to show up on my map with React Google Maps? | <p>I've successfully been able to render the Markers for react-google-maps, but when I started trying to use DirectionsRenderer, I ran into this 'google is not defined' issue. I scoured StackOverflow and the web in general for solutions to this, anywhere from declaring 'google' as a global to playing around with the wi... | 2 | 1,332 |
struts :404 status The request resource not found | <p>i am writing my first struts example .i followed the exact steps but even then facing this problem,dont know whats wrong code was working on my teacher's machine but on mine not ,i think there is a small mistake i am doing plz help me to locate
1) i have index.jsp</p>
<pre><code><%@ taglib uri="/struts-tags" pre... | 2 | 3,754 |
AmazonServiceException: Unable to find credentials | <p>I started running into this error after updating the sdk core to version 3.3.10.2 on my production environment only. I am deploying a .net api on 4 ec2 instances in a load balancer. All Windows Server 2012 R2.</p>
<p>The odd part, and really the part that is driving me nuts, is the application runs without issue if... | 2 | 2,926 |
Intermittent "Could not load type 'System.Net.Http.Formatting.FormUrlEncodedMediaTypeFormatter'" Error | <p>I am working on a project that includes an ASP.NET WebAPI component.</p>
<p>Intermittently, I get the following error: </p>
<blockquote>
<p>Could not load type
'System.Net.Http.Formatting.FormUrlEncodedMediaTypeFormatter' from
assembly 'System.Net.Http.Formatting, Version=5.2.3.0,
Culture=neutral, PublicKe... | 2 | 1,466 |
Arduino sending data to Xively | <p>i have multiple temperature and humidity sensors conected to arduino board mega(DHT22, DS18b20,...) In my program i get the temperature from the sensors and i put them into datastream and send it to Xiviely, and here comes the problem. When i put the fake float number into the stream (e.g. float number 100.12) i got... | 2 | 2,075 |
Fatal exception (java.lang.IllegalStateException) | <p>I've been trying to search for an answer but the only thing i understood is there's something wrong at line 22 of my code, but i don't get why. I'm sure it's something stupid, but i started yesterday to code android, so forgive me please!</p>
<p>My code is:</p>
<pre><code>import android.content.Intent;
import andr... | 2 | 2,008 |
JavaFX Event Handler No longer working | <p>In My code I created an event handler that originally worked; however after adding more code it stopped working so I restored to before my changes and it still won't work. Is there something that I have done wrong? Also, I am using eclipse if that is helpful in determining a cause.</p>
<p>Main.java:
package app... | 2 | 3,428 |
Undefined method `__metadata' when I'm trying to update a User with embedded document using mongoid, devise in Rails 4 | <p>I'm new in RoR, I'm trying to make a simple form where a user has two Positions in one company, so I'm using devise to manage the authentication and the creation of users. I just create a class Position to embed into the User and allow the admin select from a list of Positions which Position will have each user into... | 2 | 1,797 |
Help me xml parsing in php | <p>I have an xml response from zoho recruit API. I just need to parse it get values of a few attributes and nodes(whatever you call it). And then update them and submit back. The xml is given below.
Like If i want to check what is first name it should return TEst1
and when I want to update it I should get updated and t... | 2 | 1,842 |
java.lang.IllegalStateException: Failed to add the track to the muxer | <p>I am trying to merge audio and video, but I am getting <code>java.lang.IllegalStateException: Failed to add the track to the muxer</code>. I think the problem is I can not add <code>.weba</code> audio to the muxer. If that the case how can I go about merging them?</p>
<pre class="lang-kotlin prettyprint-override"><... | 2 | 1,471 |
super resolution of low resolution images using delaunay triangulation, negative pixel values for the resultant High resolution image | <p>i have to do super resolution of two low resolution images to obtain a high resolution image.</p>
<p>2nd image is taken as base image and the first image is registered with respect to it . i used SURF algorithm for image registration . A Delaunay triangulation is
constructed over the points using a built-in MATLAB ... | 2 | 4,236 |
Facebook & iOS Login Bug since January 2012 - Even with ShareKit or SDK | <p>Since the last week in January we've seen most of our iOS apps, and those commercially available on the app store have problems logging in and posting to Facebook. We've also seen this with apps using ShareKit to post to FB.</p>
<p>I've filed bugs with FB and got nowhere other than that people confirm they are seei... | 2 | 1,937 |
How to deploy to different environment in Azure Devops using YAML file | <p>Can you please help me with below.</p>
<p>I am building Azure Function app V3 and using Azure Devops YAML pipeline to build and deploy Azure function app and ARM infra to Dev environment. Now I want to deploy the same to UAT. I am not sure how to have different environment using YAML.
please find my <code>azure-pipe... | 2 | 2,019 |
Phalcon php orm can't relate tables | <p>I'm trying to setup a 3 tables relationship in phalcon, but it doesn't seem to work. Could anyone plese tell me what am I doing wrong? Here is a ERD of these tables: <a href="http://tinypic.com/view.php?pic=k4h4ee&s=8#.U1D_6Pl_s1M" rel="nofollow">(ERD diagram)</a> Here is my code from models and controller</p>
... | 2 | 1,154 |
Cannot load SharePoint powershell cmdlets in visual studio pre-deployment script | <p>
</p>
<p>While working on a SharePoint 2010 solution in Visual Studio 2012, I want to run a PowerShell script to remove a lookup field from one of my lists, allowing Visual Studio to automatically resolve the script deployment conflict by deleting the existing list and replacing it with the one in my solution.</p>
... | 2 | 1,389 |
How do I receive an external app's broadcast metadata? | <p>I am trying to add a feature to my app which receives broadcast data/intent-actions from Spotify and does something with that data. However, I am not sure how to proceed. I've been able to piece together the following code with the help of previous questions, however those questions do not go into detail on <strong>... | 2 | 1,034 |
CodeIgniter On Azure Connection to Windows Virtual Machine MySql | <p>I'm working on a CodeIgniter web project that is being hosted on Azure and i decided to use MySQL on a virtual machine running Windows Server 2012 R2 in Azure following this tutorial as it seemed to be the best solution. <a href="https://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-mysql-windows... | 2 | 1,091 |
Integrity constraint violation – yii\db\IntegrityException Yii2 | <p>When I signup and input data username, email and password. Field username is null, i don't know why. And then when I input again data username, email and password the result is error. The description error can see in the picture. </p>
<p>Code for models/User.php : </p>
<pre><code><?php
namespace app\models;
u... | 2 | 8,179 |
SCNCamera made programmatically not in the correct position | <p>I am trying to programmatically create a camera for my <code>MainScene.scn</code> file.</p>
<p>I need to create the camera in code, as I am wanting to make a <a href="https://stackoverflow.com/questions/25654772/rotate-scncamera-node-looking-at-an-object-around-an-imaginary-sphere/25674762">camera orbit</a> node, a... | 2 | 1,024 |
SharePoint Online authentication failure | <p>I have a C# app which authenticates to SharePoint Online by using web requests. It works great for me, but someone else is getting the following error:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/... | 2 | 1,977 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.