title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Android - Custom Dialog is too large | <p>I'm having some serious problems defining my own alert-style dialog, with sexy colours and logos and stuff. It all works nicely and I'm nearly there, just one little problem. </p>
<p>The dialog fills the entire screen when there is a lot of text. Looking at normal alert dialogs, when the message is very long, there... | 2 | 4,620 |
Ansible setup module fails | <p>I have a lot of hosts managing by ansible
and on the one hosts setup module fails:</p>
<pre><code>user@Work:~ >> ansible -vvvv -i "10.10.10.2," all -m setup [20:00:24]
Using /etc/ansible/ansible.cfg as config file
Loaded callbac... | 2 | 2,505 |
Getting line number information in the Semantic Analysis Phase (using Alex,Happy) | <p>I am doing semantic analysis for an experimental language. I am using Alex and Happy to generate the lexer and the parser (actually I am using BNFC tool to generate Alex and Happy files). I wanted to get an error message with the line number and the column number whenever there is a semantic error, say, a type erro... | 2 | 1,476 |
How to set up two Nginx containers as a reverse proxy in an active-passive set up with failover? | <p>I have set up a Nginx container on a Linux-EC2 server. My Nginx config file is as follows:</p>
<pre><code>server {
listen 80;
server_name client-dev.com;
location / {
proxy_pass http://dev-client.1234.io:5001/;
proxy_redirect off;
##proxy_set_header Host ... | 2 | 1,075 |
TypeError: Expected float32, got 'auto' of type 'str' instead | <p>I'm trying to use Keras' functional API to handle multiple inputs, and with a custom loss function RMSLE. Below is my code:</p>
<pre><code>import tensorflow as tf
from tensorflow.keras.layers import *
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras import backend as K
from tensorflow.kera... | 2 | 1,876 |
Spring batch hangs with no status update | <p>I initiated my spring batch job ( which has 16 steps) last evening around 6:00pm. Since it is the first time run, I expected it to take a few hours and completed by this morning. However, the job hung after reading and writing about 1 million records in the first step. I have put in a mechanism to restart the job in... | 2 | 1,755 |
No file path in dynamic web project in java eclipse | <p>I have a dynamic web project in eclipse. When I'm executing just WordFreq.java it works. If I want to execute same code in MyServlet.java > doGet method, I get this error: HTTP Status 500 - text.txt (The system cannot find the file specified).
I copied my file (text.txt) everywhere :</p>
<ul>
<li>The project root f... | 2 | 2,453 |
Undefined method, avatar and name for nil:NilClass | <p>undefined method <code>avatar?' for nil:NilClass
undefined method</code>name' for nil:NilClass</p>
<p>Hi, I'm receiving the following errors in my partial. The reason I listed both is because after commenting out the line causing the first error message, I get the second error which leads me to believe the problem ... | 2 | 1,514 |
Ember Not Initializing Store Properly: Cannot read property 'find' of undefined | <p>All my versions:</p>
<pre><code>Ember: 1.9.0
Handlebars: 2.0.0
jQuery: 2.1.3
Ember Data: 1.0.0-beta.12
</code></pre>
<p>All I'm trying to do is make a simple Ember Data <code>store.find()</code> call and everything seems to be going horribly wrong. <strong>It gets even weirder too. If I wrap <code>this.store.find(... | 2 | 1,479 |
Angular HttpErrorResponse 401 (Unauthorized) | <p>I'm making an web app on Angular and Loopback but when trying to login from frontend, it throws the following error:</p>
<p><code>POST http://localhost:3000/api/usuarios/login?include=User 401 (Unauthorized)</code></p>
<p><code>ERROR HttpErrorResponse {headers: HttpHeaders, status: 401, statusText: "Unauthorized",... | 2 | 1,181 |
Properties file load to replace value in spring batch XML | <p>Since a day i'm working on an issue. To make my code easier to maintain, I want to set all the constant i need in Spring Batch in a propertie file (My_Project/src/main/resources/spring/batch/config/batch.properties).</p>
<p>I search on the web several example ans nothing works. For this I replace my constant by ${c... | 2 | 2,892 |
jQuery-UI: sortable() placeholder feel sticky | <p>I'm trying to use <code>$.sortable</code> to implement a simple puzzle:</p>
<pre><code><html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<style>
span {
display: inline-block;
... | 2 | 2,216 |
How do I disable Accordion propagation after it has been clicked for the first time? | <p>I have an <code>Accordion</code> with a <code>TextField</code> in the <code>AccordionSummary</code> (Material-UI) which when clicked opens the <code>AccordionDetails</code> with the rest of the form however, I can't work out how to stop multiple clicks on the field from triggering propagation to open and close the a... | 2 | 3,509 |
Uncaught (in promise): TypeError: this.auth.user$.map is not a function | <p>I'm new to Angular and while doing development the below code works fine (I'm using Visual Studio Code as the code editor) </p>
<p>when i click on the menu links below error occur in the console window </p>
<h2>ng-version="6.0.9"</h2>
<pre><code>npm list --depth=0
+-- rxjs@6.2.2
+-- rxjs-compat@6.2.2
</code></pr... | 2 | 1,777 |
fabric js load single objects to canvas from mysql database | <p>I have a canvas that lives on top of a video. When a user pauses the video they are able to add fabricjs objects to the canvas. When an object is added to the canvas it is saved to a table in a mysql database as JSON.</p>
<p>When the user clicks a button it will query the mysql database for records and return vi... | 2 | 1,414 |
asp.net uploading big files: throws System.OutOfMemoryException | <p>I'd like to upload big files via ASP.NET to WCF service. Until 100 MB is not a problem, my configuration works perfectly, but above 100 MB it throws System.OutOfMemoryException.</p>
<p>The uploading method works with FileStream, but before that, I save the file to a temporary folder. Not sure if this is the problem... | 2 | 1,174 |
AttributeError in Py2exe | <p>I made my <code>py</code> file executable using <code>py2exe</code>. My <code>setup.py</code> is as follows:</p>
<pre><code>from distutils.core import setup
import py2exe
setup(windows=['main.py'])
</code></pre>
<p>When I tried to run <code>main.exe</code>, I get an error and was referred to <code>main.log</code>... | 2 | 1,345 |
Django channels with redis setup on heroku leaking memory | <p>I followed the somewhat outdated guide here:
<a href="https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django" rel="nofollow noreferrer">https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django</a></p>
<p>And successfully setup django app with c... | 2 | 1,093 |
Open links in new window with JavaScript | <p>hi I have a Js image changer with corresponding links how to I open links in new window ?</p>
<pre><code> <script type="text/javascript">
//#1 SPECIFY number of slideshows
var number_of_slideshows=3
// (2000=2 seconds)
var interval=3500
//#3 SHOULD each slide be ... | 2 | 1,072 |
Docbook-XML, Webhelp and XSLT / Xalan error | <p>Processing a xml test file of 11907 lines total 325.050 bytes.</p>
<pre><code>D:\projekte\dashboard>ant webhelp
Buildfile: D:\projekte\dashboard\build.xml
validate:
clean:
[delete] Deleting directory D:\projekte\dashboard\docs
chunk:
[mkdir] Created dir: D:\projekte\dashboard\docs
[xslt] Processi... | 2 | 1,554 |
Adding a link to each stacked bar chart item | <p>I have a stacked bar chart I am trying to make each item in the chart that is clicked open the sharepoint view based on what was clicked.</p>
<p>I am building the data here</p>
<pre><code>seriesData.push({ name: xStatus[i], data: dataArray, url: countArray[i].url });
</code></pre>
<p>my chart code looks like this... | 2 | 2,972 |
How to click on Javascript using Selenium under perl $sel->click | <p>I've been using Selenium IDE and Selenium Remote Driver to test a website. When I export the file to perl and try running it I get error trying to open a link which is a Javascript. Here's the code I've been trying:</p>
<pre><code>#!/usr/bin/perl
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::... | 2 | 1,141 |
MongoDB query returns null even though it is available in the collection after migrating from mlab to mongoDB atlas | <p>I am migrating a database from Mlab to MongoDB Atlas. We had to upgrade the npm version of mongodb to <code>3.4.1</code> as the MongoDB atlas database version is <code>4.2.5</code>.</p>
<p>The connection function has been updated as said in this <a href="https://stackoverflow.com/questions/47662220/db-collection-is-... | 2 | 1,153 |
Typescript issue using 'this' inside class constructor for instance method | <p>I have a very simple use case in TypeScript:
A class, with a constructor, and an instance method. </p>
<p>I want to call this instance method from the constructor, but using "this" resolves incorrectly. </p>
<p>What is the proper way to have a class with instance methods, and call them from the constructor? </p>
... | 2 | 1,415 |
Protractor - Jasmine - TypeError: expect is not a function | <p>I have defined the use of Jasmine in my conf.js file </p>
<pre><code>exports.config = {
framework: 'jasmine',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome',
},
</code></pre>
<p>And I am using the following code to click a button on a page a... | 2 | 1,503 |
Video Recording on Android from Frames using javaCV | <p>I am using this library <a href="https://github.com/bytedeco/javacv" rel="nofollow">javaCV</a> to record video on android. They have provided a sample VideoRecording Activity But There is some bug which I could not figure out what I am doing it wrong or what is missing which causing this bug.</p>
<pre><code>package... | 2 | 8,538 |
How to count and rename duplicate rows in a DataTable | <p>I found plenty of stuff on deleting duplicates, but I couldn't find any guidance for the problem below anywhere...</p>
<p>I'm looking for a way to rename any duplicate rows in a C# DataTable that I've imported to from a CSV. My data looks something like:</p>
<pre class="lang-none prettyprint-override"><code>**Name... | 2 | 1,153 |
How to fill a ListView with a list using ObjectDataSource | <p>What i'm I missing?</p>
<p>My line "<code>foreach (ProductCrash productCrash in _fiveLastest)</code>" is wrong, but I can't see any alternatives. I wont to get ride out the foreach and let the ListView <em>do its magic for me</em>.. does any know how to do this? It would really help me out.</p>
<p>I can only show ... | 2 | 1,885 |
KTDatatables - Search within a column that has a template | <p>I'm trying to use a search dropdown and it doesn't seem to work if it searches for a column that has a template on it. Also trying other types of input other than select but still to no avail. I've been trying to replicate what the demo file is doing and is still failing without any error from the console.</p>
<p>He... | 2 | 1,585 |
gcc-4.2 failed with exit code 1 in Xcode | <p>I'm working with Xcode 3.2.3 and iOS 4.0.1 and I have downloaded an open source iPhone game to learn from but without editing anything I tried to run it in the simulator and it throws this error message:</p>
<blockquote>
<pre><code> ProcessPCH /var/folders/-r/-r6hd0CEEASnoGYBU9KSlk+++TI/-Caches-/com.apple.Xcode.... | 2 | 1,305 |
How can I use a PreviewView inside jetpack compose? | <p>I was trying to use a CameraX <code>PreviewView</code> inside of a <code>Composable</code> via <code>AndroidView</code>, but the preview is stretched and the right half is clipped as you can see in the <a href="https://i.stack.imgur.com/Ih6lg.jpg" rel="noreferrer">screenshot</a>.
Nevertheless the view seems to occup... | 2 | 1,861 |
Using go with redis - not able to connect | <p>I'm trying to connect to Redis service in azure</p>
<p>I use the following code:</p>
<pre><code> import (
"fmt"
"os"
"github.com/go-redis/redis"
)
func main() {
uri := os.Getenv("uri")
fmt.Println("uri is", uri)
opt, err := redis.ParseURL(uri)
if err != nil {
... | 2 | 1,305 |
React Native: Why is image stretching vertically to fill container and how to prevent it? | <p>In my React Native app, I have a red box of height 300 that I want to center vertically, and an image that I want to sit inside and at the top of this red box. Here is my code so far:</p>
<pre><code>import React, { Component } from 'react';
import { View, Image} from 'react-native';
export default class Login exte... | 2 | 1,079 |
Ajax, Django, Jquery Model Form | <p>Built a successful working ModelForm and its fully functional.</p>
<p>My next step was to add Ajax to it and it also worked out pretty well. The Jquery that I used was 1.3.2 version which is pretty old but it worked.</p>
<p>The problem came up when I tried to add <a href="http://www.eyecon.ro/bootstrap-datepicker/... | 2 | 14,479 |
WPF bind control width to ListBox column width | <p>I wrote XAML as follows:</p>
<pre><code><UserControl.Resources>
<GridViewColumnCollection x:Key="gvcc">
<GridViewColumn Header="Klient"
DisplayMemberBinding="{Binding CustomerName}"
Width="80">
</GridViewColumn>
<GridViewCol... | 2 | 2,548 |
QUdpSocket writeDatagram() returns error 7 (Unable to send a message) | <p>I am working on Qt app, which is basically <code>QTcpServer</code> containing several <code>QTcpSocket</code> and <code>QUdpSocket</code> objects. Now, once app is started, the <code>QTcpServer</code> is started and for now, for simplicity <code>QUdpSocket</code> is started and I am sending broadcast data to <code>L... | 2 | 2,073 |
Web Security is authenticated always return "false" | <p>i have a issue with my websecurity authentication , i can't login is. authenticated retrurn always false
When I login always it sends me to login page. I debugged it and I found a problem httpContext.Request.IsAuthenticated always return false , any help ..
Controller : </p>
<pre><code>public ActionResult Login(s... | 2 | 1,582 |
Python POM parser replace text | <p>xml
<a href="https://i.stack.imgur.com/8MNGp.jpg" rel="nofollow noreferrer">enter image description here</a></p>
<p>I need change version marked on screen.</p>
<p>I try:</p>
<pre><code>with open(PathPom,'r') as f:
tree = ET.parse(f)
root = tree.getroot()
for elem in root.getiterator():
try:
... | 2 | 1,710 |
Angular Jasmine unit test for promise | <p>I want to write a unit test that just displays the behavior of creating two promises, wrapping them up into one with $q.all and then test that the promises are both resolved at the same time.</p>
<pre><code> describe("Application controller", function() {
var scope;
var controller;
beforeEach(module('... | 2 | 1,076 |
App does not become the preferred MediaButtonReceiver when calling setActive(true) a second time | <p>I have tried to implement media button control per <a href="https://youtu.be/XQwe30cZffg?t=20m21s">Google's talk</a></p>
<p>I set the receiver in manifest:</p>
<pre><code><receiver android:name="android.support.v4.media.session.MediaButtonReceiver">
<intent-filter>
<action android:name="... | 2 | 1,085 |
CSS3 Horizontal div alignment | <p>So what I'm trying to do is</p>
<pre><code>|-------------------------------------------------------------|
|-------|leftdiv-250px|centerdiv-1000px|rightdiv-250px|-------|
|-------------------------------------------------------------|
</code></pre>
<p>So here's the HTML</p>
<pre><code><div id="header">
... | 2 | 1,157 |
Materialize button inside ng-repeat not triggering modal | <p>I am using materialize.js for a project and I have an ng-repeat element with contents of my user array:</p>
<pre><code> `<div id="userObj" ng-repeat="user in allUsers">`
</code></pre>
<p>The standard button <code><a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a&g... | 2 | 2,350 |
AngularJS: Listen to events, one after the other | <p>is there an angular-way to listen for events that occur one after the other? For example, I want to listen on a <code>$rootScope</code> for the <code>$routeChangeSuccess</code> and the <code>$viewContentLoaded</code> event. When the first event occurs, and after that, the second event occurs, I want to call a callba... | 2 | 1,374 |
Gradle DSL method not found: 'appengine()' | <p>My project consists of an Android application and an Appengine Backend, I moved from eclipse to android studio and following some examples online as well as generating an appengine module from Android Studio I came up with this.</p>
<p>The android application's Gradle file</p>
<pre><code>apply plugin: 'android'
d... | 2 | 1,990 |
Get bounding box of individual countries from topojson | <p>I want to get bounding boxes for each country from a topojson, but when I add them as svg rectangles they are bundled together towards 0,0. </p>
<p><a href="https://i.stack.imgur.com/MVBJ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MVBJ1.png" alt="enter image description here"></a></p>
<p>I... | 2 | 1,111 |
WCF MaxStringContentLength error | <p>I making simple WCF service
Server Side running on iis
Client WinForms.</p>
<p>When I trying to send big string to server i have following exception:</p>
<blockquote>
<p>The formatter threw an exception while trying to deserialize the
message: Error in deserializing body of request message for operation
'Cr... | 2 | 1,336 |
Info from two sql tables to one HTML table | <p>I Have tables like invoice & expenses output looks like this:</p>
<p>invoice
<a href="https://i.stack.imgur.com/u6u4N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6u4N.png" alt="enter image description here"></a></p>
<p>expenses:
<a href="https://i.stack.imgur.com/lTnv5.png" rel="nofollo... | 2 | 1,074 |
Selenium vba xpath contains text | <p>I am working on a selenium vba macro. I want to fetch the td element containing "18" by Xpath.</p>
<p>Following is my html.</p>
<pre><code><table class="text-center"><thead><tr><td class="text-muted" style="padding: 5px;"><small>Sun</small></td><td class="text-muted" st... | 2 | 1,769 |
Android scrolling issue webview inside scrollview with viewpager | <p>I have a <code>viewpager</code> which contains a layout with <code>scrollview</code> as parent and <code>webview</code> as child.I had never faced a problem with portrait mode however in landscape mode it's acting very strange.</p>
<p>The screen is taking portrait height(which i'm assuming) in landscape too.
So the... | 2 | 1,239 |
OpenIddict Roles/Policy returns 403 Forbidden | <p>Good morning. I am having an issue with Authorize in controllers and using Roles and / or Policy set up. It is always returning a 403 forbidden, with the following in the logs:</p>
<pre><code>info: OpenIddict.Server.OpenIddictServerDispatcher[0]
The request address matched a server endpoint: Token.
info: OpenIdd... | 2 | 8,647 |
How to pass state up to Router component? | <p>I'm pretty new to React and I'm trying to create a simple game. All the data is in state in <strong>App</strong> component. I want to redirect page to <strong>Battle</strong> component with couple of props using Router. Can I pass state from App up to the Router so Router can pass it down to Battle component like th... | 2 | 1,331 |
React and ReactDOM not loading using webpack, babel | <p>I am setting up a React project using webpack and babel, but I am getting the error that <strong>React and ReactDOM can't be resolved.</strong></p>
<p>Is the problem is with the version of Webpack or Babel?</p>
<pre><code>PS C:\Users\abhi\Desktop\mern-app> npm run webpack
> mern-app@1.0.0 webpack C:\Users\a... | 2 | 1,296 |
NSWindow spanning multiple screens in Mavericks | <p>I have a full screen application that opens an NSWindow that will cover all available displays.</p>
<pre><code>NSRect screenArea = {{0,0},{0,0}};
for(int i=0; i<[[NSScreen screens] count]; i++) {
screenArea = NSUnionRect(screenArea, [[[NSScreen screens] objectAtIndex:i] frame]);
}
self.fullScreenView = [[MD... | 2 | 1,252 |
Encoding UTF-8 not working in maven | <p>I have a problem with the Maven project. When I want to use a special character, it returns '?'.</p>
<pre><code>String text = "Hello World! ";
System.out.println(text);
</code></pre>
<p>Print console: </p>
<pre><code>------------------------------------------------------------------------
Building Elliugh 1.0-SNA... | 2 | 1,092 |
Android Session cookies without using CookieManager | <p>My application makes multiple web calls in order to get authentication. I need to store this session in a cookie. I wanted to use Cookie Manager but after doing some research, I found out it is only available to API 9 and above and my application needs to be backward compatible. </p>
<p>I make my web connections us... | 2 | 1,131 |
HtmlRenderer.PdfSharp: Some Pages Blank In Acrobat Reader Only When Images Present | <p>I'm using HtmlRenderer (1.5.0.6) and PdfSharp (1.32.3057) to generate PDFs from HTML that is generated by passing a hunk of data into a Razor template. The data gets rendered into a table of some header values arranged in four columns of label and value pairs, and the body which is a series of divs for section heade... | 2 | 2,584 |
React: Passing values to a context returns: 'TypeError: Right side of assignment cannot be destructured' | <p>I have a search function for which I'm attempting to raise the state into a parent component.</p>
<p>However, on attempting to submit the form I am presented with the error <code>TypeError: Right side of assignment cannot be destructured</code> and in reference to the line <code>const {searchValues, setSearchValues}... | 2 | 1,444 |
Provider component's useEffect is running before mounted | <p>I have a Provider component which passes down some data through its props, which will later be used across the app.</p>
<p>It looks something like this:</p>
<pre class="lang-js prettyprint-override"><code>export const MyContext = createContext({});
MyContext.displayName = 'My Context';
export const MyProvider = ({... | 2 | 1,088 |
ITelephony .java not generating properly | <p>I followed the right procedure to generate the ITelephony.java class in my eclipse project. </p>
<p>But it does not seem to generate properly since I've got frequencea lot red warning in the file. I'm running under ubuntu 12.04 64 bits. Strange thing though, it does work on my work PC running under windows . Thing ... | 2 | 1,605 |
csv file insert into MYSQL tables using c# | <p>I am using c# to parse all .csv files in a directory and insert each file into separate MYSQL tables. Parsing each file-name works, but I have a problem with insertion.</p>
<p>All the csv files have the same format:</p>
<pre><code>Name,Mike,John,Parker,Joanne,Claire
4/26/2012 12:20,88.1,98.2,87.4,92.5,78.2
5/16/20... | 2 | 1,787 |
Custom Notification with dynamic layout in remote view | <p>I am creating custom notification with dynamic layout instead of xml layout in remote views but end up with following error.</p>
<pre><code>03-12 14:42:59.907: E/AndroidRuntime(2399): android.app.RemoteServiceException: Bad notification posted from package com.example.notificationexample: Couldn't expand RemoteView... | 2 | 1,965 |
Sitefinity: Dynamic Content query optimization with field values | <p>I will attempt to be as specific as possible. So we are using <strong>Sitefinity 8.1.5800</strong>, I have a couple dynamic content modules named ReleaseNotes and ReleaseNoteItems. ReleaseNotes has some fields but no reference to ReleaseNoteItems. </p>
<p>Release Note Items has fields and a related data field to Re... | 2 | 1,976 |
JSF refuses to process a deeply nested composite component. No, really: "JSF1098: [...] This is a waste of processor time [...]" | <p>The premise is quite straightforward: I have a page layout that relies on nested composite components (CC) to do the rendering, i.e. one JSF page references a CC, which itself references another CC, which contains a call to a third CC. - Source below.</p>
<p>Now, when that third CC wants to execute a bean method us... | 2 | 2,369 |
NHibernate Object reference not set to an instance of an object | <p>This is my first time using NHibernate and i am trying to create an application using MVC 4, here is my configuration file:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory >
<property name="connec... | 2 | 1,206 |
Merge daily and monthly Timeseries with Pandas | <p>I have two dataframes, "bio" with monthly data, where I only need the column bio['Bio_Avg'].
And another one "tc" with daily data.
Both with Datetime index.</p>
<p>What I need is to merge both keeping daily granularity but adding monthly data repeating the value of the column bio['Bio_Avg'].</p>
<pre><code>print(b... | 2 | 1,307 |
jquery mobile popup disappers on ipad when keyboard visible | <p>I have popup working. When use IPAD and click on input field, keyboard shows and popup disappears when text input field got focus. Here popup panel code. Please help.</p>
<pre><code><div data-role="panel" data-id="popover1" data-panel="popover" class="ui-element-fixed-top ui-triangle-top
ui-mobile-viewpor... | 2 | 1,448 |
Error "Requested value 'UpdateDatabaseOperation' was not found" when attempting to generate an idempotent Code First Migration script | <p>I'm using dotConnect 7.3.115.0 with EntityFramework 6.0.2.</p>
<p>When I try to generate a script for my migration, I get the error "Requested value 'UpdateDatabaseOperation' was not found."</p>
<p>Here are the details and stack trace:</p>
<pre><code>PM> Update-Database -Script -SourceMigration: $InitialDataba... | 2 | 1,159 |
android websocket connection timeout with wAsync (atmosphere) | <p>I previously wrote a Java SE client based on wAsync. It works rock-solid with version 1.0.RC1 connected to Atmosphere 1.1.RC1. I followed this example from Jeanfrancois to accomplish <a href="https://github.com/Atmosphere/wasync/blob/master/samples/android-chat/src/main/java/org/atmosphere/wasync/andoid/wAsyncChat.j... | 2 | 2,744 |
WinForm with user selection; Which way to go? | <p>I'm writing an Addin for Revit with the template of Jeremy Tammik, which creates me a Ribbon with Buttons.
I'm reading in an excel file, selecting lines and a starting point.
<br/><br/>
<a href="https://imgur.com/u6NzquX" rel="nofollow noreferrer">My Ribbon</a>
<a href="https://imgur.com/Rvzfw1S" rel="nofollow noref... | 2 | 2,158 |
Problems with `track by $index` with Angular UI Carousel | <h3>$index in track by index does not start at zero when pagination is used</h3>
<p>I have created a carousel using angular ui bootsrap.
Since am loading so many images(over 1,000), I used a filter to display 500 pictures in the pagination.</p>
<pre><code>.filter('pages', function () {
return function (input, curre... | 2 | 1,276 |
XML schema complexType within an complexType | <p>I am writing XSD for the following XML:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="WS.xslt" ?>
<interface name="WS">
<package>com.example</package>
<import>java.rmi.RemoteException</import>
<import>java.io.... | 2 | 1,329 |
NLog MySql .Net Core 3.0 logging not saving to database | <p>I have setup NLog on my project that will save the logging to my audit database (separate from the default database). However, it is failing to write to the database. I have a console logger target as well and that is logging as expected. No errors are shown or given. It merely fails to write to the database.</p>
<... | 2 | 1,409 |
mmap: performance when using multithreading | <p>I have a program which performs some operations on a lot of files (> 10 000). It spawns N worker threads and each thread mmaps some file, does some work and munmaps it.</p>
<p>The problem I am facing right now is that whenever I use just 1 process with N worker threads, it has worse performance than spawning 2 proc... | 2 | 1,987 |
Video transcoding problem in IONIC with iOS 13.0 | <p>We have an existing IONIC App and since iOS 13.0 has been released we ran into a problem with transcoding videos.
When file path is read from camera.getPicture (with sourceType=PHOTOLIBRARY), and passed to videoEditor.transcodeVideo(), it indefinitely keeps calling the progress callback with value 0. It won’t throw ... | 2 | 2,469 |
Form not valid. ID: Select a valid choice. That choice is not one of the available choices | <p>When I run this code, even the whole data is correct.
<code>demobilized_formset.is_valid()</code> gives me <code>False</code> and <code>demobilized_formset.errors</code> gives <code>{u'id': [u'Select a valid choice. That choice is not one of the available choices.']}</code></p>
<p>I don't know why an error comes to... | 2 | 1,682 |
How to dynamically take table rows and create an Excel sheet | <p>I have the following script which takes the first row (<code>TH</code>) and adds it to a table dynamically which will then be exported to an Excel sheet. For some reason, it keeps adding and stacking on top of the next table row.</p>
<p>Here is the script:</p>
<pre><code>var decode_entities = (function () {
//... | 2 | 2,747 |
Storing injected Spring Beans in a HashMap | <p>This is a question about the use of Spring for business objects and how they are stored after being injected into classes that need them.</p>
<p>In a typical Spring setup, you might have a business object as follows:</p>
<pre><code>package app.service.impl;
public class MaintainStudent implements app.service.intf... | 2 | 2,578 |
No provider for OktaAuth but OktaAuth define? | <p>Regards to th Okta Documentation : <a href="https://developer.okta.com/docs/guides/sign-into-spa/angular/main/#configure-the-sdk" rel="nofollow noreferrer">https://developer.okta.com/docs/guides/sign-into-spa/angular/main/#configure-the-sdk</a>, I've configured my application to authentificate with Google.</p>
<p>So... | 2 | 1,973 |
PySide: QThread event handling | <p>I have been researching the following issue on PySide threading, but I have found very little documentation so here goes a long post on my findings hoping for some concise feedback about how it goes.
Supposing we are building a multi-threaded GUI application that invokes some linux processes.
We will be using QThrea... | 2 | 1,370 |
disable button in specific time using js | <p>I am trying to disable the button base on time. If the time exceeds 5pm then the button will disable. I got my code but I don't know if it is the proper. Please help me to solve this . sorry I'm not that good in javascript.</p>
<p>Here is the code:</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<h... | 2 | 1,149 |
In Perl, how can I skip an empty key when traversing a hash? | <p>This is my problem, I'm not very knowledgeable in Perl, and I have this function that needs to be fixed.</p>
<p>When this function <code>deviceModelMenu()</code> is called, the CLI displays the following text:</p>
<pre>The following models are available
==================================================
1.
2. C... | 2 | 1,491 |
How to model game object rendering and behavior in modular way? | <p>I'm making a Java shoot em up game for Android phones. I've got 20 odd enemies in the game that each have a few unique behaviors but certain behaviors are reused by most of them. I need to model bullets, explosions, asteroids etc. and other things that all act a bit like enemies too. My current design favors composi... | 2 | 1,152 |
Bug in Label ASP.ViewState implementation? | <p>EDIT 2: Well, I went to the code. Note what they are doing here. They are saying load viewstate, and then turning around and setting the Text property to what was in the viewstate. After LoadViewState is called though viewstate tracking is on, and that results in the behavior I'm seeing. I think what the code should... | 2 | 1,239 |
Custom view not shown in Horizontal scroll view Not working | <p>When i try to add my custom view to horizontal scroll view it's not showing.
but same custom view is shown in other layout like Relative and Linear Layout.</p>
<pre><code> layout=new LinearLayout(this);
layout.setBackgroundColor(Color.YELLOW);
layout.setLayoutParams(new LayoutParams(LayoutParams.WRA... | 2 | 1,249 |
Stay on selected item on drop down menu using Javascript | <p>What is happening is I'm trying to get the drop-down menu to STAY on what was selected but it keeps switching to the default after I hit submit. Can someone help me with the javascript code because I know for sure that's the issue? Thanks everyone I'm trying to self-learn this.</p>
<p><div class="snippet" data-lang... | 2 | 1,271 |
RequiredIf Validation Attribute for Boolean, String and FileUpload | <p>Could someone write me an example of a Validation Attribute that validates a Dependent field that could be Boolean, String or a HttpPostedFile value. I've been looking but the examples that I've tried don't work for all those situations. e.g or if you could figure out why my page doesn't submit after validation - th... | 2 | 1,925 |
Angular2 pipe causing '...has changed after it was checked' dev error | <p>I know why this error is thrown, but I don't understand how to organize my code to fix it. Here is the issue</p>
<pre><code>@Component({
selector: 'article',
templateUrl: 'article.html',
moduleId: module.id,
directives: [Toolbar]
})
export class Article {
public toolbar: Array<IToolbarItem>... | 2 | 1,690 |
Implementing merge sort for an array list of objects in java | <p>I'm looking to implement a merge sort using an array list of objects. Ideally, I would like to have a static method that takes the array list to be sorted and a boolean as parameters. The boolean, if true, would implement merge sort recursively, and if false would implement the sort using just loops rather than recu... | 2 | 2,385 |
Open File PDF automatically After Download Completed | <p>I have a problem. I have code for download and open file PDF. I want after download completed, PDF will open automatically.</p>
<p>This is my code for download pdf file :</p>
<pre><code> private EditText ids;
private TextView no;
private TextView per;
private EditText surat_fi;
private EditText disp;
pr... | 2 | 1,999 |
jQuery hover menu not disappearing | <p><strong>EDIT:</strong> See this in action here: <a href="http://jsbin.com/emobi/5" rel="nofollow noreferrer">http://jsbin.com/emobi/5</a> -- and that's using mouseenter/mouseleave.</p>
<p>I have a basic menu using some nested UL's, which is pretty standard I think. When hovering over an LI from the "root" menu, I ... | 2 | 4,178 |
Rails loading my javascript only after a page reload | <p>I have this problem in Rails that when I enter the page, my javascript is not loaded. I have to reload the page after entering it and only then it loads.</p>
<p>This is how my javascript file looks like:</p>
<pre><code>$(function() {
initPage();
});
$(window).bind('page:change', function() {
initPage();
})... | 2 | 2,185 |
ArrayAdapter not binding data to ListView | <p>I am trying learn Android and building a very basic ListView, the data set up using ArrayAdapter is not showing up. My <code>Activity</code> code is:</p>
<p><strong>MainActivity Class(default no changes)</strong></p>
<pre><code>`public class MainActivity extends AppCompatActivity {
@Override
protected voi... | 2 | 2,162 |
jqGrid with Web Service is not working in jsonreader format | <p>What i want to do is, i have a web service which returns number of products (from sample Northwind database) in json format and i want to bind returned row to my jqGrid. I tried <a href="https://stackoverflow.com/questions/5160045/jqgrid-cannot-call-asp-net-webmethod-but-can-with-ajax?lq=1">JQGrid - Cannot call ASP.... | 2 | 1,997 |
Center a div text on a liquid CSS | <p>I've been working on a CSS fluid layout for my website, and I am trying to center the div that contains the copyright on the bottom of the page.
For some reason, the text on the div wont center correctly, and it is driving me crazy.
This is a link of what I am working on:
<a href="http://fenixflame.net/Templates/New... | 2 | 5,365 |
issues in table alias in codeigniter | <p>Here, I am creating an alias for the inner selection, but it automatically adds the table prefix to the alias table. My sql query is as follows:</p>
<pre><code>SELECT
`tb1`.*, `tb2`.*, `tb3`.`client_name`,
`cms_tb4`.*, `tb1`.`project_status` AS pstat
FROM
(`cms_projects` tb1)
JOIN `cms_project_type` t... | 2 | 1,123 |
yum install package "Error unpacking rpm package xxxxx cpio:xxxx" | <p>Since I send <code>Ctrl+C</code> to the command line with the <code>yum update</code> running on my server(centos6.7), the yum cannot install packages for days.</p>
<p>I was suggested to run <code>yum-complete-transaction</code>, but I could not install the package yum-utils with the same error.</p>
<p>Someone tol... | 2 | 2,317 |
Getting "cursor "_django_curs_140244427998976_3" does not exist" error | <p>I am creating modelforms. I have managed to pull the fields i want to use from my tables (using postgresql):</p>
<p>Table:</p>
<pre><code>class Response(models.Model):
Question = models.ForeignKey(Question, on_delete=models.CASCADE)
Topic = models.ForeignKey(Topic, on_delete=models.CASCADE)
Response = ... | 2 | 1,323 |
JAVA Apache POI and large result set from DB2 runs into exception | <p>I try to create from a result set an XLSX file with Apache POI. The data comes from a local DB2 instance. The table I am querying has 580,000 entries.</p>
<p>Everything goes well, if I query for example the first 15k of rows, but when I try to query for all rows I get the following exception and the file is corrupt... | 2 | 2,185 |
How can I add drag and drop div with jquery? | <p>I would like to make html page like kanban template. There are Todo, Doing and Done column lists in html page. And an user can move div to another column list under this lists. But I couldn't manage to drag and drop div components with jquery. Is there problem with javascript code or anything else? I will very plea... | 2 | 2,327 |
set width of columns when using RecycleView | <h1>user.py</h1>
<pre><code>import kivy
kivy.require('1.9.0') # replace with your current kivy version !
import sqlite3 as lite
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import BooleanProperty, ListProperty, StringProperty, ObjectProperty,NumericProperty
from kivy.lang im... | 2 | 1,796 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.