title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Adding to database. No repeat on refresh | <p>I have this code:</p>
<p>Episode.php</p>
<pre><code> <?$feedback = new feedback;
$articles = $feedback->fetch_all();
if (isset($_POST['name'], $_POST['post'])) {
$cast = $_GET['id'];
$name = $_POST['name'];
$email = $_POST['email'];
$post = nl2br ... | 2 | 1,125 |
Webpack throws error with Emscripten: Can't resolve 'fs' | <p>I'm encountering errors in importing a javascript file into a vue.js component:</p>
<p>This is the content of /components sub-folder:</p>
<pre><code>/startingV/src/components$ ls -lah
total 132K
drwxr-xr-x 2 marco marco 4,0K dic 26 11:22 .
drwxr-xr-x 5 marco marco 4,0K dic 26 09:32 ..
-rw-r--r-- 1 marco marco 441... | 2 | 2,228 |
2D Arrays - Error with counting neighbours algorithm (Conway's Game of Life) | <p>I am having problems with Conways Game of Life, specifically using a 2D integer array to count the number of true value "neighbours" from a 2D Boolean array (all arrays were scaled down to 10x10 for simplicity).</p>
<p>I am using the following Algorithm for counting the number of neighboring cells within a 2D Boole... | 2 | 1,171 |
Having trouble with Django forms "OperationalError: no such table" error | <p>I'm trying to set up a form on Django that displays inputs on the page, but I get this error.</p>
<pre><code>django.db.utils.OperationalError: no such table: firstapp_post
</code></pre>
<p>This doesn't happen right away, but when I try to use the submit feature on my form.</p>
<p>Right now this is what I have as ... | 2 | 1,137 |
How do I send CSRF tokens from AngularJS front end to Spring REST service backend? | <p><strong>How do I set up CSRF protection between an AngularJS front end and a Spring Boot REST backend?</strong> Let's take the <code>http.post("/send-pin", JSONobject)...</code> call from the code below as an example. </p>
<p>I am getting the following error in the server logs when I try to call a Spring Boot RES... | 2 | 8,246 |
MemoryError at ... No exception message supplied | <p>I have a very simple ManyToMany relationship:</p>
<pre><code>@python_2_unicode_compatible
class Mot(BaseModel):
groupes_categories = models.ManyToManyField(GroupeCategories, blank=True,
through='MotGroupeCategories',
... | 2 | 1,077 |
Laravel error : Array to string conversion | <p>i want to select and store multiple data from my form the input name is "property_type", but i get that error 'Array to string conversion ' :
this is my migration :</p>
<pre><code> public function up() {
Schema::create('projects', function (Blueprint $table) {
$table->bigIncrements('id');
... | 2 | 1,063 |
ASP.NET Parent-Child DropDownList Controls with DetailsView | <p>After fixed from previous issue about paren-child dropdownlist, I wanted to make detailsview display result after when child dropdownlist(databasename) is selected. I tried to add control in sqldatasource in detailview, it seem doesn't work and it show blank. I added @Database in SelectCommand on SQLDataSource.
Her... | 2 | 12,805 |
Laravel 5 if condition not working on last condition (else) | <p>I have a text field <code>status-text</code> that allows users to submit their statuses.</p>
<p>I also have an image upload field to add a picture to the status.</p>
<p>In my if condition, I am checking first to see if the input has any data, then I check if the input has an image AND validator doesn't fail, then ... | 2 | 2,671 |
Multiple layout for Angular2 using Routing | <p>I'm building my website with Angular2 using Routing.</p>
<p>I faced a problem: how do I using multiple layout for my Angular2 app using Router.</p>
<p>For example: I have at least 2 layout such as Login, Signup... (1 column) and Home, Profile... (1 header, 2 columns, 1 footer).
My code for <code>index.html</code>:... | 2 | 1,564 |
Binding view with javascript knockout | <p>Here i have my get method that gets the data that i want to return in order to bind it with the view page. I am having trouble wrapping my head to how i could bind this information to the view. </p>
<p><strong>Get Method:</strong></p>
<pre><code>var getRoster = function () {
Ajax.Get({
Url: ....,
... | 2 | 1,508 |
MicroBatchExecution: Query terminated with error UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z | <p>Here I am trying to execute Structured Based Streaming with Apache Kafka. But in here not working and execute error (ERROR MicroBatchExecution: Query [id = daae4c34-9c8a-4c28-9e2e-88e5fcf3d614, runId = ca57d90c-d584-41d3-a8de-6f9534ead0a0] terminated with error
java.lang.UnsatisfiedLinkError:org.apache.hadoop.io.nat... | 2 | 6,784 |
Old Fragment is still visible after I perform a Fragment Transaction? | <p>Below is the code for my tabbed fragments. I've implemented the navigation drawer into my activity below. I'm also using Fragment Transactions as it works for my Navigation Drawer. When I run the app and click on the navaigation drawer whilst on the media_main page. The page changes however the three tabs are still ... | 2 | 5,483 |
Smooth scrolling with UIScrollView based on a timer, threads (based on iOS Metronome) | <p>I am working on an app that scrolls sheet music on the screen using a UIScrollView. As I need this to happen at regular time intervals and also play short sounds at evenly spaced intervales, I based my code on the now deprecated "Metronome" example provided by Apple.</p>
<p>The problem is that the scrolling is not ... | 2 | 2,299 |
Cannot connect to WCF service hosted in Docker container | <p>I'm trying to run an application that exposes a WCF service in a Docker container.</p>
<p>The application is built using TopShelf so it can run either as Windows Service or (in development) as stand-alone console program. </p>
<p>The problem I'm experiencing is that the WCF Test Client can't get the metadata. It's... | 2 | 1,534 |
Creating a QueryTable in an Open XML Spreadsheet using C# | <p>I have a number of report-generating ASMX webservices and would like to help our users by adding a link to download a .XLSX file containing a pre-configured and formatted Query Table for the webservice.</p>
<p>They will then be able to build their own graphs and derived reports as they currently do, but also be abl... | 2 | 1,533 |
Satellite Map Type not working | <p>Respected members, I am working on a basic Google Maps application. I have implemented some functionalities like GPS check, Internet check, working internet check etc for this app. I have just added an options menu at top with one single SATELLITE TYPE map. I have WRITTEN the correct code but whenever I click on SAT... | 2 | 3,183 |
yii CDbCriteria Join Column not found | <p>I've been struggling with converting the following SQL to CDBCriteria to be used with a CActiveDataProvider:
"SELECT PresetDeviceLink.<em>, Device.</em> FROM PresetDeviceLink INNER JOIN Device ON Device.id = PresetDeviceLink.deviceId WHERE Device.roomId = 1"</p>
<p>Table structure is as follows:</p>
<pre><code>mys... | 2 | 1,290 |
Swift Package Manager: add compile flag to a single file -fno-objc-arc | <p><strong>Overview</strong></p>
<p>I'm porting an C++ / ObjC++ library to Swift Package Manager. The library targets common Apple platforms (iOS, macOS). Currently, the library can be built using <code>xcodebuild</code> and a static library target.</p>
<p><strong>Question</strong></p>
<p>Since the library contains C++... | 2 | 1,381 |
What does "too many input arguments" mean? | <p>I'm trying to evaluate a function in matlab using quadtx but my code is giving me an error of "too many input arguments" and I am not sure what is wrong? Am I putting a wrong value in for varargin or is it something else?</p>
<p>I enter this in the MATLAB command prompt:</p>
<pre><code>>f = @(t)(1./sin(... | 2 | 1,056 |
How to search for text in a WebView Android? | <p>I have an app that uses WebViews (minSdkVersion 17). It would be very helpful if it was possible to add a search (and highlight found result(s)) function. The thing is that my programming skills are very low and the search for the Holy Grail returned no good answers.</p>
<p>I found this topics (and some moe, includ... | 2 | 2,444 |
Text and Image relative responsive using Bootstrap | <p>I am working on responsiveness of web page, for that I am using Bootstrap. </p>
<p>The web page consists of both image and text. I am able to make both of them responsive, but the image is getting responsive separately of the text. Both are not relative to each other.</p>
<p>I mean if an <code>img</code> is there ... | 2 | 1,377 |
Springboot fail to start if Redis is down | <p>Redis is optional in my application & this is one of the requirement that even if Redis is down, application MUST be able to start without any issue.<br>
I was able to handle this with <code>spring-data-redis</code> <strong>1.8.1</strong> version but it's causing issue when I upgraded to <strong>2.0.1</strong>.<... | 2 | 5,031 |
Application suddenly became incompatible with device(Galaxy Tab 2) | <p>I have an application that suddenly (today) became incompatible with a device it was working on just fine. The app is Dragon Lords and the device is Samsung Galaxy Tab 2. Anyone have an idea what could have happened here? </p>
<p>The last apk was uploaded 2 months ago and everything was working fine. Today I had a ... | 2 | 1,365 |
Module parse failed: Unexpected token but all loaders are installed | <p>I am having trouble getting my MERN boilerplate set up. I'm still learning so the answer may be obvious but I can't find an answer for the current version of webpack, react, babel. I am getting this error when I <code>npm run dev</code>:</p>
<pre><code>Module parse failed: Unexpected token (8:2)
You may need an appr... | 2 | 2,260 |
WPF: Close a secondary window when application shutdown without "programmer" intervention | <p>It's quite hard to explain this in the title, if someone would like to change it it's ok.</p>
<p>I have a situation where, in WPF, I create an "hidden" window which is <em>transparent</em> to the programmer.
What I mean is that this window is created in static constructor, hidden and moved outside of the screen and... | 2 | 1,928 |
XML Parser Error in .xhtml file | <p>After deploying our EAR file to Glassfish 3.1.2 Build 23, I receive this error in my Firefox browser:</p>
<p>XML Parsing Error: no element found Location: <a href="https://localhost:8181/TranscriptTool/welcome/index.xhtml" rel="nofollow">https://localhost:8181/TranscriptTool/welcome/index.xhtml</a> Line Number 1, C... | 2 | 1,322 |
Save image using JQuery and WebMethod | <p>I am trying to save image to a folder using JQuery and WebMethod in vb.net. But I got <strong>parameter is not valid</strong> exception while I am trying to convert the stream to image.</p>
<p>HTML</p>
<pre><code><div>
<input id="imgInput" type="file" name="file"/>
<img id="imagePr... | 2 | 1,233 |
HTML-Minifier removes the spaces between element's attributes | <p>I have implemented html-minifier over my html code to minify the html for production environment. Here I have observed that when my code gets minified along with the spaces between by attributes also gets removed. Below is my raw HTML snippet and the minified snippet:</p>
<p><strong>Raw HTML Snippet</strong></p>
<... | 2 | 1,339 |
GAE error (Error code 104) while creating a new blob | <p>On GAE this line of code:</p>
<p><strong>file_name = files.blobstore.create(mime_type='image/png')</strong></p>
<p>drops <strong>google.appengine.runtime.DeadlineExceededError</strong></p>
<p>Here is the full method code:</p>
<pre><code>class UploadsHandler(JSONRequestHandler):
def upload_blob(self, content,... | 2 | 1,196 |
How to load multiple child components in angular2 using ngFor? | <p>I have created few child components with given names using dynamic Component loader in angular2.
& I am able to load them using their selectors in static way.</p>
<p>for eg.
I can load my component using</p>
<p><code><DYNAMIC-BODY-1>Loading</DYNAMIC-BODY-1></code></p>
<p>But my problem is that the... | 2 | 1,775 |
Passing OSC messages between two computers over WAN via UDP and Node.js | <p>I'm trying to write some minimalist client-server code to pass OSC messages between two computers that are on different local networks. Specifically my end goal is to send and receive from MAX patches in Ableton, using MAX's UDPSend and UDPReceive functions, which simply listen on local ports. Here is the server cod... | 2 | 1,184 |
Change Color of gridview cell on click | <p>I have a gridview that contains text and images. When a user touches a cell in the grid, it changes color to show that it is selected and when selected again it returns to the default color to show that it is no longer selected. Any number of cells can be selected. The problem is when a user has to scroll through th... | 2 | 2,213 |
c++ player-wall collision with SFML | <p>My friend and I are developing a top down puzzle game.<br>
We have already implemented a player class that can walk and collide the walls, but the problem is after the collision itself. </p>
<p><strong>For example:</strong><br>
When the player hits a wall to its right, we set the velocity on the <strong><code>x</c... | 2 | 1,409 |
How can I make Bootstrap calendar without clicking the input file, this calendar will view when rendering any HTML page | <p>I want to show a calendar view in a html page but I do not have any idea how to do this one.<br/> Actually in my college project, I have to integrate a bootstrap calendar in a page, where in this page the first section will be a calendar and other two sections will be transaction details. I did the other two sectio... | 2 | 2,870 |
AndroidManifest error: android:exported needs to be explicitly specified for <activity> | <p>When I changed the target and compile SDK version from 30 to 31 I get an error. Something similar to <a href="https://stackoverflow.com/questions/70169206/androidexported-needs-to-be-explicitly-specified-for-activity">this question</a>, but it has no answers.</p>
<blockquote>
<p>Error: android:exported needs to be e... | 2 | 1,885 |
Unable to change filter mapping spring-boot | <p>I've got following class</p>
<pre><code>@Configuration
public class WebConfiguration {
@Bean
public ServletRegistrationBean slspServlet() {
ServletRegistrationBean testServlet = new ServletRegistrationBean(new TestServlet());
testServlet.addUrlMappings("/*");
testServlet.setAsyncSup... | 2 | 1,293 |
load values from database to combo box dynamically | <p>I am new to jsp and currently working in a simple project.</p>
<p>In that project I need to load values from database to combo box dynamically.</p>
<p>I followed some questions and answers from the web and from stackoverflow also, and found a way to do that.</p>
<p>The only difference is, in that all cases they h... | 2 | 1,256 |
how to check if any youtube video is being played in li of ul tag then do some actions accordingly | <p>I have embeded videos inside li(s) of ul tag like </p>
<pre><code> <ul class="slides">
<li>
<iframe id="ctl00_SliderContent_rptSlider_ctl01_framevid" width="400" height="200" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" style="border: solid 4p... | 2 | 1,075 |
Java Game of Life using Swing | <p>I am trying to make a replica of the Game of Life using swing, I admit i have used code from some 1 else as i am trying to get my head around it and then proceed with my own implementation. I have some understanding of their code, yet i wanted to implements 2 additional features to their code. However i am finding t... | 2 | 2,914 |
Command errored out with exit status 1 and access denied | <p>Recently I installed anaconda. Now, I uninstalled Anaconda and reinstalled python 3.6. I am not a able to install some packages because of the following error.</p>
<pre><code>Collecting pyinstaller
Using cached pyinstaller-4.0.tar.gz (3.5 MB)
Installing build dependencies ... error
ERROR: Command errored out w... | 2 | 4,557 |
View.getHeight() returns 0 when using getViewTreeObserver() | <p>I'm trying to get a textView height before draw it, so i use getViewTreeObserver code from other questions:</p>
<pre><code>private TextView mTextView;
private int mTextViewHeight = 0;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceS... | 2 | 2,500 |
How can I vertically align the text in an anchor tag? | <p>The question is simple enough: how can I vertically align the text in an anchor tag? </p>
<p>Here's a picture of what's going on:</p>
<p><img src="https://i.stack.imgur.com/BPE4h.png" alt="enter image description here"></p>
<p>Specifically, note "Publisher Search," "Add a New Publisher," and "Edit a Publisher." I... | 2 | 1,259 |
Error in phonegap plugin for changing the screen orientation | <p>I am getting this error .</p>
<blockquote>
<p>Uncaught TypeError: Object # has no method 'exec' at file:///android_asset/www/JS/pg-plugin-screen-orientation.js:4</p>
</blockquote>
<pre><code>var screenOrientation = function() {}
screenOrientation.prototype.set = function(str, success, fail) {
PhoneGap.exec(s... | 2 | 1,323 |
Cannot read ".parquet" files in Azure Jupyter Notebook (Python 2 and 3) | <p>I am currently trying to open parquet files using Azure Jupyter Notebooks. I have tried both Python kernels (2 and 3).
After the installation of <em>pyarrow</em> I can import the module only if the Python kernel is 2 (not working with Python 3)</p>
<p>Here is what I've done so far (for clarity, I am not mentioning ... | 2 | 1,996 |
Fixed Bootstrap navbar to top of dynamic width DIV - not full width of page | <h2>My problem</h2>
<p>I am using Bootstrap 3.0 and need to use a fixed navbar, which will stay at the top of a DIV on the left side and NOT extend all the way 100% of the width of the window (like I usually see Bootstrap's example do). I have some very simple code below, using ASP.NET MVC 4 which will explain the Ren... | 2 | 2,066 |
Why is a field in my Hibernate entity null? | <p>I added a new integer column to a table in my MSSQL database, and then updated the .hbm.xml and .java files accordingly for the Hibernate entity of this table. I can see that I have assigned a '1' to the column for a given row that I'm working with, yet the entity I am getting back for this row has a null value in i... | 2 | 1,359 |
Laravel 5.4 - @extends not working | <p>I have two main views in Laravel.</p>
<p>Both are called as follows, in web.php:</p>
<pre><code>Route::get('/characters', 'CharacterController@index');
Route::get('/characters/{char_id}', 'CharacterController@viewCharacter');
</code></pre>
<p>Here's their function in CharacterController:</p>
<p>/characters:</p>
... | 2 | 1,070 |
How to implement "_mm_storeu_epi64" without aliasing problems? | <p>(Note: Although this question is about "store", the "load" case has the same issues and is perfectly symmetric.)</p>
<p>The SSE intrinsics provide an <a href="http://msdn.microsoft.com/en-us/library/7ek6y8w1(v=vs.90).aspx" rel="noreferrer"><code>_mm_storeu_pd</code></a> function with the following signature:</p>
<... | 2 | 1,713 |
Issuing Tokens with AspNet.Security.OpenIdConnect.Server (RC2) - Invalid Client? | <p>I was able to pull this in RC1. The <code>OpenIdConnectServerProvider</code> has changed quite a bit.</p>
<p>I am interested in the resource owner flow, so my AuthorizationProvider looks like this:</p>
<pre><code> public sealed class AuthorizationProvider : OpenIdConnectServerProvider
{
public over... | 2 | 2,300 |
Login failed on Spring Security 5.0.1 after upgrade from 3.2 | <p>I'm updating libraries of a web app build with Maven and using Spring and Spring Security, running on Apache Tomcat. I'm not familiar with Spring and I'm having some troubles with authentication.</p>
<p>spring-security.xml (part about auth)</p>
<pre><code><security:authentication-manager>
<security:au... | 2 | 3,780 |
How to register android device for receiving Push notifications via App Engine backend? | <p>I have created the sample android project with Android app and App Engine as a backend using <a href="https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints" rel="nofollow">this tutorial</a>. But on the step 2.4, I am stuck in showing push notifications from GCM backend. When I de... | 2 | 1,564 |
Error:Execution failed for task ':app:processDebugManifest'. while running project | <p>My project was lost due to hard disc crash.But I had apk file. I decompiled it and used the manifist file from decompiled project in my last backup project. Now it's throwing error. I follow the suggestion given in error log but in vain.I'm putting here my error log and manifist file. Please help me for doing this j... | 2 | 3,608 |
JavaFX - navigation panel | <p>i am trying to make a navigation panel sliding out from left side. I have managed an animation already but i cannot solve one thing and that is green empty space left in left area of the program's window. Does anyone have an idea how to get rid of the green space on the left? Thanks</p>
<p>My code looks like this (... | 2 | 1,229 |
Flink HA Cluster JobManager issues | <p>I have a setup with flink 1.2 cluster, made up of 3 JobManagers and 2 TaskManagers. I start the Zookeeper Quorum from JobManager1, I get confirmation Zookeeper starts on the other 2 JobManagers then I start a Flink job on this JobManager1. </p>
<p>The flink-conf.yaml is the same on all 5 VMs this means jobmanager... | 2 | 4,684 |
Android Nested Fragments | <p>I'm trying to implement <code>nested fragments</code> but I have a problem.</p>
<p>When I add 2 different <code>fragments</code> with two different <code>tags</code> ("tag1", "tag2") in a <code>ChildFragmentManager</code> of one <code>fragment</code>, everything seems to be ok. </p>
<p>But when I call <code>getChi... | 2 | 1,024 |
Splitting one method into multiple methods - Java Chess | <p>I'm currently trying to build a simple chess piece movement program. I read in the chess movement notation from a text file. The chess notation goes something like this:</p>
<p>plb1 c3 = (p)pawn(l)white moves from position b1(b1) to position c3(c3).
my regex then parses the move. </p>
<p>In the code I match vario... | 2 | 2,257 |
GnuPG with IDEA support | <p>I'm attempting to "integrate" support for the IDEA cipher into my current system that uses the GnuPG command-line interface for encrypting/decrypting data files sent between my company and our partners. I've read all of the instructions I can find online for various ways to get this set up, and I'm still unable to ... | 2 | 1,352 |
$jQuery Tree from json data ---> .live is killing me | <p>I'm trying to build a tree from json data, this data are loaded on demand from php files. My problem is that i can't find a way to get to lvl 3 ;). Here is my code:</p>
<pre><code> $(document).ready(function()
{
//Get the screen height and width
var Height = $(document).height()/2;
... | 2 | 2,240 |
Issues with #import and @class cause _OBJC_CLASS_ referenced from error | <p>I have two classes. </p>
<h2>APPagine.h</h2>
<pre><code>#import <Foundation/Foundation.h>
@interface APPagineMedia : NSObject
@property (nonatomic, retain) NSString *Immagine;
@property (nonatomic, retain) NSString *Video;
@end
@interface APPagineDescription : NSObject
@property (nonatomic, retain) NSStri... | 2 | 1,211 |
Ansible template error while templating string: expected token 'end of print statement', got 'integer | <p>I have task which configure my docker-compose.yml
here is my docker-compose.yml file which i templated use the template module</p>
<pre><code>services:
zeebe:
# restart: always
container_name: chai_maker
image: registry.uzbekistan.uz/cicd/chai_s_molokom:0.26.0
ports:
- 26500:26500
- 2650... | 2 | 1,156 |
Can't update my database record in codeigniter, no error is appearing | <p>I'm quite new to php and there's no error appearing but appereantly, can't update my data in the database.</p>
<p><a href="https://i.stack.imgur.com/drTLU.png" rel="nofollow noreferrer">The controller</a></p>
<pre><code> public function update_user_view() {
$this->load->helper('form');
$user_id ... | 2 | 1,119 |
Error with parsing Hibernate Man.hbm.xml | <p>I can not run my hibernate application. I'm constantly getting this error:</p>
<pre><code>SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/MAG/.m2/repository/org/slf4j/slf4j-jdk14/1.7.2/slf4j-jdk14-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found bindin... | 2 | 2,170 |
Using AutoMapper QueryableExtensions with Entity Framework in ASP.NET MVC causes an "Operation could destabilize the runtime" exception | <p>Consider the following code:</p>
<pre><code>protected override IEnumerable<IListModel> GetListInternal(
IQueryModel2<Contact> queryModel) {
/// Causes exception
return this.Query(queryModel).Project().To<ContactListModel>().AsEnumerable();
/// Does not cause exception
return M... | 2 | 2,026 |
Local Push notification not working in Xamarin iOS | <p>I am using Xamarin.forms and implemented Local push notification for iOS. It is working successfully when I am debugging the app through visual studio even when the app is minimized, the app can able to receive the notification. But while running the app directly without debugging through visual studio, the app is n... | 2 | 1,900 |
iptables in kuberntes init container does't work | <p>Background:</p>
<p>I'm trying to use goreplay to mirror the traffic to other destination.
I found that k8s service is a load balancing on layer 4 which cause the traffic can not be capture by goreplay,So i decide to add a reverse-proxy sidecar inside pod just like istio does.</p>
<p>Here is my pod yaml:</p>
<pre cla... | 2 | 1,460 |
How to solve gaps and island problems in R and performance vs SQL? | <p>I was wondering whether the island and gaps problems can be solved in R efficiently, similar to SQL. I have the following data available, if we examine one ID:</p>
<pre><code>ID StartDate StartTime EndDate EndTime
1 19-05-2014 19:00 19-05-2014 20:00
1 19-05-2014 19:30 19-05-2014 23:30
1 19-05-... | 2 | 3,373 |
Set Ajax response on jsp not working | <p>Last few hours i am trying to solve this but i can not.I am sending ajax request using jquery and based on response i set data on jsp.actully i am checking login detail so if login fail it set error message on label problem is that error message is set for few second and removed i mean to say error message is set fo... | 2 | 1,466 |
Node Class to represent a binary tree C++ | <p>I have created a node.h class, defining a class called node for representing a binary tree(any type). It seems to be that the constructor isn't working. The errors are below.Ive only started writing constructors within classes like these, and this is the first ive encountered binary trees. Can anyone point me in the... | 2 | 1,318 |
Why does chrome respect the cache-control header for some resources, but does not for others? | <p>I have an AJAX application with the following setup:</p>
<ul>
<li>Dynamic content is served by a node.js server from localhost:8000</li>
<li>Static content is served by a jetty server from localhost:8080</li>
</ul>
<p>There are two kinds of dynamic content:</p>
<ul>
<li>Truly dynamic content based on result of SQ... | 2 | 12,879 |
A ServletContext is required to configure default servlet handling | <p>I am trying to figure out a issue for some days but no luck. I came across this issue but not able figure out what is the problem since i am not doing any test here. <a href="https://stackoverflow.com/questions/21516683/java-lang-illegalargumentexception-a-servletcontext-is-required-to-configure-de">java.lang.Illega... | 2 | 1,151 |
VBScript Converting XML Data to an ADODB RecordSet | <p>I have a situation in which I need to dump XML into an ADODB Recordset in VBScript. My XML is in the form below. What I would like to do in my code is convert the XML into a recordset with AddressObject rows. The code below I tried but keep running into one DomDocument error after another. Can anyone please help me ... | 2 | 1,824 |
Upgrading from .net core 1.1 to .net core 2.0 | <p>I am upgrading our existing platform from .Net Core 1.1 to .Net Core 2.0.
I upgraded the framework and Nuget packages associated with it.</p>
<p>My controllers no longer inherit from the Controller class.</p>
<p>However, my project is no longer building and throws cs0012 with message:
You must add a reference to a... | 2 | 1,149 |
Raspberry Pi live video streaming with Flask App works with default development server but not in Apache production | <p>I've hosted a simple Flask App on Apache webserver on a Raspberry Pi to stream real-time video from the PiCamera using tutorial from <a href="https://blog.miguelgrinberg.com/post/video-streaming-with-flask" rel="nofollow noreferrer">https://blog.miguelgrinberg.com/post/video-streaming-with-flask</a> . Everything wor... | 2 | 1,380 |
Could not determine access type for property "translations" in Symfony 3.2.* with Sonata admin project and Sonata translation bundle | <p>I have installed Sonata admin project in Symfony 3.2.* version.
Components that are being used in my project from composer.json file are as following:</p>
<p>composer.json file's package snippet</p>
<pre><code>"require": {
"php": ">=5.5.9",
"ext-pdo_sqlite": "*",
"a2lix/i18n-doctrine-bun... | 2 | 1,991 |
org.apache.tomcat.SimpleInstanceManager cannot be cast to org.apache.tomcat.InstanceManager | <p>I trying to upgrade my app to GWT 2.8 and Java 8 but no matter what I encounter with this problem. Note that I am using embedded Jetty.</p>
<pre><code>org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.tomcat.SimpleInstanceManager cannot be cast to org.apache.tomcat.InstanceManager
at o... | 2 | 3,199 |
Deleting a server file with unlink() | <p>I use this form for uploading files in the server and create the record in database sql.</p>
<p>How make for delete images from the server?</p>
<p>i've tried with method "unlink" in another file eliminaimg.php (transl: deleteimg.php), but not work!!!
Help me!!!</p>
<pre><code> <?php
@include 'config.php';... | 2 | 1,704 |
Failed To Copy Assets Error | <p>I have images files on assets folder assets/pictures/file.png and i tried to copy those files to SD card.But i get error Failed to copy asset file: " + "pictures/" + name</p>
<p>This is the code that i used to read and copy assets file to SD card</p>
<pre><code>String[] getImagesFromAssets() {
AssetManager ass... | 2 | 2,280 |
How to fill generated table with random values in JavaScript | <p>I want to make application teamaker, choose how many players and teams you need, then click button and application will generate a table with random values with a range from Player 1 - Value of input PlayersNum. My biggest problem is table is filling but columns have the same values. What should I do?</p>
<pre><cod... | 2 | 1,109 |
How to create an autocomplete search box in bootstrap? | <p>I am making a form for a web application and wanted to add a search bar component that can allow the user to autocomplete their search from a list. I am unable to integrate the HTML, JS, and CSS code together within the same HTML file.</p>
<p>Here is my code for the form:</p>
<pre><code><div align="center&qu... | 2 | 3,009 |
PHP: Delete || Confirm delete | <p>I am having a problem.</p>
<p>I am creating a script that allows a person to select a record by it's primary ID and then delete the row by clicking a confirmation button.</p>
<p>This is the code with the form:
"confirmdelete.php"</p>
<pre><code><?php
include("dbinfo.php");
$sel_record = $_POST[sel_record];
//... | 2 | 1,109 |
AngularJS 1.5 - same as above address | <p>I want to implement a 'same as above' mailing address and permanent address. But then i tick on the checkbox, it does not show that the mailing address and permanent address are the same. help? </p>
<p><strong>controller</strong></p>
<pre><code>$scope.candidateData.MailingAddress = {};
$scope.$watch('mailingSam... | 2 | 3,510 |
Java JLabel setText Method Not Working | <p>I've been trying to figure out what the problem is, but i cannot figure it out. I call a method from a class using w.setCandyAmountLabelText(numberofcandies); However it does not work. I am trying to change the text of a jlabel which is in another class. Here is the error and code.
error</p>
<pre><code>Exception in... | 2 | 1,931 |
Bootstrap table extending beyond the panel when resizing the browser | <p>I am trying to build a panel with a table inside. The code looks like this: </p>
<pre><code><div class="container">
<div class="row">
<div class="panel panel-default col-xs-12">
<div class="panel">
<div class="panel-heading bg-p... | 2 | 1,576 |
SeleniumError : org.openqa.selenium.SessionNotCreatedException | <p>On doing a <code>driver.close();driver.quit();</code> during the execution of java code, the following error is thrown:</p>
<blockquote>
<p>Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Tried to run command without establishing a connection
Build info: version: '3.6.0', revision... | 2 | 1,184 |
Cant get image iOS Rich Push notifications with Xcode, Swift3 | <p>I already posted a question following the <a href="https://stackoverflow.com/questions/48882711/ios-rich-push-notifications-with-xcode-swift3-but-cant-not-get-image">link</a>.</p>
<p>I tried the code in the answers but still cant get message.</p>
<p>i did customize answers code like this:</p>
<p><strong>Code:</st... | 2 | 5,192 |
Serverless Lambda function runs into a timeout when running Nuxt | <p>I just managed to deploy my Nuxt application via Serverless on AWS. Basically everything works as expected but in some cases the Lambda function just runs into a timeout and can't serve my Nuxt application. Since my application is a SPA the timeout only happens during a refresh of the browser window or when I visit ... | 2 | 1,384 |
Unity: VideoPlayer freezes for half of a second with .webm video | <p>I'm using windows 10 Pro and unity 5.6.4p2.
I've 2 planes with a videoplayer component (both videos are loaded from the streaming assets folder. One video is a .mp4 and the other is a .webm with transparency (alpha channel).
I've some scripts attached to the planes but I've this problem with and without scripts, so ... | 2 | 1,110 |
Uncaught TypeError: Cannot read property 'current' of null in useStyles of Material UI in React Developer Tools | <p>I am creating React within Laravel 6. When I ran the program in the browser there have no error showing in the Console Tab, but if I click the Components Tab in React Developer Tools these error shows in the console:</p>
<pre><code>react_devtools_backend.js:24 Uncaught TypeError: Cannot read property 'current' of ... | 2 | 2,092 |
deleting multiple rows using check boxes with jquery in django? | <hr>
<p>deleting multiple rows using check boxes with jquery in django???</p>
<hr>
<pre><code>def lead_delete(request, id):
success_dict = {}
task_del =Lead.objects.filter(id=id)
if request.method== "GET":
task_del.delete()
success_dict['success_msg'] = "Successfully Deleted lead"
... | 2 | 4,150 |
remove and add attribute to button with jquerymobile 1.4 | <p>I want to change add and remove disabled state for several buttons with one click. I use jquerymobile 1.4 and jquery 10.2 but the function doesn't work with those library versions.</p>
<p>Here is the html :</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>JQM latest</tit... | 2 | 1,065 |
codeigniter $this->save() not working | <p>I recently started using codeigniter. trying to create a new model for a new table. It seems save() method is not working properly. I am not able to see new records in my table.I did some research over net and stackoverflow, but no use. Can someone please check my code and advice. </p>
<p><div class="snippet" data-... | 2 | 1,682 |
Kotlin coroutines: Attempt to invoke virtual method 'void androidx.lifecycle.MutableLiveData.postValue(java.lang.Object)' on a null object reference | <p>I have some errors in <em>Retrofit2</em> and <em>Kotlin Coroutines</em> technologies. I need to dynamically query an info in my service.</p>
<p>For example, the URL is "https://exampleapidomain.com/api/sub_categories/read.php?id=2" I want to change <code>id</code> parameter dynamically.</p>
<p>My service:<... | 2 | 1,604 |
How to correctly finish RabbitMq consumer and wait to RabbitMq consumer threads (library consumer callbacks) after close connection and model? | <p>I have RabbitMq consumer (<code>RabbitMQ.Client.Events.EventingBasicConsumer</code>) that process incoming messages.</p>
<p>But I noticed that if close connection and model they does not wait to finish library processing threads. E.g.:</p>
<ol>
<li>If I will add thread sleep for several seconds to <code>EventingBasi... | 2 | 1,477 |
Spring MVC + Spring Security + LDAP | <p>I have this <code>WebSecurityConfig</code>:</p>
<pre><code>@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.author... | 2 | 5,713 |
Slick 3 join query one to many relationship | <p>Imagine the following relation</p>
<p>One book consists of many chapters, a chapter belongs to exactly one book. Classical one to many relation.</p>
<p>I modeled it as this:</p>
<pre><code>case class Book(id: Option[Long] = None, order: Long, val title: String)
class Books(tag: Tag) extends Table[Book](tag, "boo... | 2 | 1,796 |
Spring unable to read bean property from XML | <p>I'm having trouble setting a member value from my bean configuration XML. I've boiled this down to the simplest use case I could; the class here isn't intended to actually do anything. I noticed that the text value was never being set (always null), so I slapped a @Required on the setter method. This yields the Bean... | 2 | 1,881 |
How to keep uikit.sticky stay on top | <p>I tried to follow the main web <a href="http://getuikit.com/docs/sticky.html" rel="nofollow noreferrer">getuikit > component > sticky</a>, but problems when scroll down sticky is work, such as ".uk-panel" css class, it seems to be on top of ".uk-stick".</p>
<p>I need to fix.</p>
<p>Describe the problem with images... | 2 | 1,213 |
std::map iterate and delete valgrind errors | <p>I have a simple program which deletes the items in a std::map while iterating over the Map. If I am not wrong forward iterators are not invalidated by erase in a map. But valgrind throws invalid read errors. Can someone explain why.</p>
<pre><code>#include <map>
#include <iostream>
typedef std::map<... | 2 | 1,636 |
npm ERR! network getaddrinfo ENOTFOUND proxy proxy:00 | <p>I'm trying to install express-generator globally but keep running into this error</p>
<p><a href="https://i.stack.imgur.com/CTOCd.png" rel="nofollow noreferrer">error message</a></p>
<p>I'm using my android phone as a hotspot to connect to the internet and my internet is fine.</p>
<p>I'm not using a proxy to conn... | 2 | 1,376 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.